<pie_>
i cant remember who the fancy people who i as talking to about dynamic linking stuff was last time but maybe some of you fabulous people can help
<pie_>
im trying to use dlopen in chicken scheme to load C APIs at runtime
<pie_>
which is fine
<pie_>
but then i want to actually call the funcitons somehow, and its not clear to me how i can write a wrapper that just takes a variable number of arguments of whatever types and then calls the function pointer
<pie_>
should i write a format string interpreter for function pointers? :V
<MichaelRaskin>
pie_: do you know how to do it with chicken for a fixed number of arguments?
<pie_>
MichaelRaskin, so far it looks like just calling inline C
<pie_>
This facility uses libffi and dynamic loading (via dlopen(3)) to load shared libraries and construct foreign calls at runtime and in interpreted code.
<pie_>
its for the last major versin tough
<pie_>
wonder how hard it would be to port
<pie_>
hmm its also got an unported dependency >.>
__monty__ has quit [Quit: leaving]
pie_ has quit [Ping timeout: 258 seconds]
endformationage has joined #nixos-chat
drakonis_ has quit [Ping timeout: 244 seconds]
drakonis_ has joined #nixos-chat
pie_ has joined #nixos-chat
emily has quit [Ping timeout: 250 seconds]
<infinisil>
I finally detached the last couple hoses from apple
<infinisil>
Using self-hosted mail now, self-hosted contacts, calendars and such
jasongrossman has quit [Quit: ERC (IRC client for Emacs 26.2)]
<infinisil>
(which I still need for my iPhone)
<infinisil>
Well I still depend on apple hardware, but at least not icloud anymore
<infinisil>
The only thing left is that the apple email forwards everything to my new one
<infinisil>
Eventually I should be able to turn that off too and delete my icloud account (if that's even possible..)
<eyJhb>
*and throw out the iPhone too
<eyJhb>
? :p
<infinisil>
eyJhb: I'm waiting on my Librem 5, so yes!
<infinisil>
Eventually
<MichaelRaskin>
Could we please go back to thick 5'' smartphones?
* infinisil
wouldn't mind
<eyJhb>
infinisil: will you give me to me too??
<infinisil>
eyJhb: error: parse error on input 'me to me'
<infinisil>
(I don't get that question)
<eyJhb>
infinisil: bad parser.
<eyJhb>
Will you give one to me too**
<infinisil>
Ahh
<infinisil>
I only got one, so nope :)
<eyJhb>
Does.. Does that make sense? I am not quite sure I work anymore
<infinisil>
But you can still order them
<infinisil>
I think
<eyJhb>
I just ordered my trip to Cape Town with Uni. I have to live off oatmeal and air pretty much :p
<infinisil>
I sure like to have air around me
<infinisil>
You could say I am a fan of air
<infinisil>
Hah
<eyJhb>
I kinda feel like it invades my personal space :(
<infinisil>
I feel ya
<joepie91>
[18:23] <infinisil> You could say I am a fan of air
<joepie91>
then you are about to become a valuable commodity in the Netherlands...
<joepie91>
the run on air-cooling devices has started
<joepie91>
(forecasted 39 celsius next friday)
drakonis has joined #nixos-chat
drakonis has quit [Read error: Connection reset by peer]
drakonis has joined #nixos-chat
drakonis_ has quit [Ping timeout: 248 seconds]
<manveru>
yeah, such fun weather next week, just when i get back from holidays :P
<manveru>
just setup my portable air-conditioner again to hopefully make my office survivable, living under a roof sucks :(
<aanderse>
manveru: i took a brief look at the bundlerApp stuff for redmine and became confused...
<manveru>
anything i can help with?
<aanderse>
any examples with bundlerApp that src is provided?
<aanderse>
i didn't see any examples of bundlerApp with that
<manveru>
i don't think that's a thing
<aanderse>
oh
<aanderse>
i don't think we can use bundlerApp for redmine then
<manveru>
you use bundlerApp to expose a single executable of a built Gemfile.lock
<aanderse>
ah
<aanderse>
ok
<manveru>
(or more)
<aanderse>
thanks for clarifying then
<manveru>
i'm not familiar with redmine, but usually it should work with that too
<aanderse>
redmine has a gemfile but the gemfile doesn't provide the actual source code for redmine, just the deps (i think)
<aanderse>
not a ruby guy... so could be wrong
<manveru>
yeah, that's usual for rails apps for example
<manveru>
you'd still use bundlerApp to execute `rails` for example inside the source directory
<manveru>
inside the service definition
<manveru>
i think gitlab uses that for example
<aanderse>
ok, i'll take a look at gitlab
<aanderse>
thanks
<manveru>
hm, no, they still use bundlerEnv
<aanderse>
ah
<manveru>
that makes my eyes hurt :(
<aanderse>
ha ha ha
<manveru>
looking at the redmine module atm
<manveru>
`bundle exec` is never acceptable :)
<aanderse>
help from ruby pro appreciated!
<manveru>
if you use bundlerApp you can directly call `rake` or `rails`
<aanderse>
ok, so use bundlerApp to package rails, not redmine?
<eyJhb>
This is after a rough... Parsing... Feel like I need to implement a couple of checks, and call it a day
<eyJhb>
E.g. tried to just take everything after the last /, buuut.. THen we have `Stjernepladsen 19/27`
<eyJhb>
Bastards
<joepie91>
eyJhb: right, so, the short answer is "don't try to parse address data, throw the entire thing into Google and let it figure it out"
<joepie91>
address data is a nightmare to parse
<joepie91>
even in the best of circumstances
<eyJhb>
Of course, if I had any alternative, I would not do this
<eyJhb>
Not like I think it is fun :p
<joepie91>
eyJhb: right, so what is the concrete issue you're running into here?
<joepie91>
from a glance at that code, the address format looks fairly consistent
<eyJhb>
joepie91: parsing a website, to display students apartments up for rent on Google Maps, with better filtering etc.
<eyJhb>
Yeah, but then you get the edge cases
<joepie91>
eh, at that list *
<eyJhb>
Which I don't manually want to tune each time
<joepie91>
the edge cases don't seem awful in that list
<eyJhb>
As they could add/remove apartments
<eyJhb>
Nope, should be fairly doable
<eyJhb>
Just need to implement the checks...
<joepie91>
eyJhb: so, rough approach: every slash followed by 2+ alpha characters constitutes an address separator
<joepie91>
eyJhb: detect end of the address section by detecting the start of the postal code
emily has joined #nixos-chat
<eyJhb>
Postal code+city I am in control of, everything after ;, is postal code + city
<joepie91>
dash seems to fairly consistently mean house number range
<joepie91>
even for extensions like letters
<joepie91>
comma being a list of numbers
<joepie91>
that covers about all the edge cases, no?
<joepie91>
oh, I missed the +
<joepie91>
which is equivalent to comma
<joepie91>
and for the ranges of house numbers, you look at whether the second component starts with a number or a letter to determine whether it is a number range or an extension range
<joepie91>
eyJhb: anything I missed? :P
<joepie91>
actually, lemme roll some code that parses this real quick, for funsies
<MichaelRaskin>
Good thing you can ignore appartment numbers sometimes being floor+direction
<eyJhb>
joepie91: I ended up with this, seeing as it just needs to be really rough :p - https://termbin.com/wb12
<eyJhb>
It is just to give a idea of the location of the apartments
<eyJhb>
It can be off by meters, and it will be fine :p
<eyJhb>
But kilometers, not fine anymore :p
<joepie91>
eyJhb: ah, right, I assumed you also needed to know the affected house numbers :P
<joepie91>
since right now you're treating what is probably a block of houses as a single one
* joepie91
resumes his attempt to parse this Properly
<eyJhb>
joepie91: yeah I am :p No need for anything more precise :D