havenwood changed the topic of #ruby to: Rules & more: https://ruby-community.com || Ruby 2.4.0, 2.3.3 & 2.2.6: https://www.ruby-lang.org || Paste >3 lines of text to: https://gist.github.com || Rails questions? Ask in: #RubyOnRails || Logs: https://irclog.whitequark.org/ruby
BTRE has quit [Quit: Leaving]
kirun has quit [Quit: Konversation terminated!]
oryman has joined #ruby
cyphase has joined #ruby
aryaching has quit [Ping timeout: 240 seconds]
GodFather has quit [Read error: Connection reset by peer]
duckpupp1 has joined #ruby
oryman has quit [Client Quit]
pilne has quit [Quit: Quitting!]
<baweaver> I'm doing a lot of pure ruby writeups over the next few months
<baweaver> so if there's anything you've wanted to have some good coverage let me know on there
Ropeney has joined #ruby
Rodya_ has quit [Remote host closed the connection]
<baweaver> In particular I've found that anything regarding Ops tooling and Cloud Admin has been weak in terms of content
ecuanaso has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
willdrew has joined #ruby
paradisaeidae has joined #ruby
paradisaeidae_ has joined #ruby
duckpupp1 has quit [Ping timeout: 240 seconds]
g_maeda has quit [Remote host closed the connection]
ecuanaso has joined #ruby
nowhere_man has joined #ruby
nvms has joined #ruby
nankyokusei has joined #ruby
xlegoman has joined #ruby
willdrew has quit [Ping timeout: 256 seconds]
paradisaeidae has quit [Quit: ChatZilla 0.9.93 [Firefox 50.1.0/20161208153507]]
paradisaeidae_ has quit [Quit: ChatZilla 0.9.93 [Firefox 50.1.0/20161208153507]]
nankyokusei has quit [Ping timeout: 248 seconds]
pilne has joined #ruby
maddmaxx has quit [Quit: Going offline, see ya! (www.adiirc.com)]
YeagorShilovChic has quit [Read error: Connection reset by peer]
nofxx has quit [Remote host closed the connection]
nofxx has joined #ruby
BTRE has joined #ruby
nvms has quit [Quit: This computer has gone to sleep]
ecuanaso has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
nvms has joined #ruby
Guest59451 is now known as ged
ecuanaso has joined #ruby
nvms has quit [Client Quit]
ged is now known as Guest62960
flashbang has quit [Ping timeout: 240 seconds]
sepp2k has quit [Read error: Connection reset by peer]
nvms has joined #ruby
Technodrome has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
androsynth has joined #ruby
androsynth has quit [Quit: WeeChat 1.7]
Andrevan has joined #ruby
Andrevan has quit [Client Quit]
Andrevan has joined #ruby
matrix9180 has joined #ruby
Rodya_ has joined #ruby
nowhere_man has quit [Ping timeout: 260 seconds]
Rodya_ has quit [Remote host closed the connection]
Andrevan has quit [Quit: WeeChat 1.7]
Rodya_ has joined #ruby
Rodya_ has quit [Remote host closed the connection]
BTRE has quit [Quit: Leaving]
JoshS has quit [Ping timeout: 258 seconds]
Rodya_ has joined #ruby
Rodya_ has quit [Remote host closed the connection]
Rodya_ has joined #ruby
BTRE has joined #ruby
Rodya_ has quit [Remote host closed the connection]
saneax is now known as saneax-_-|AFK
jdbrowne has joined #ruby
dc4 has joined #ruby
nankyokusei has joined #ruby
nvms has quit [Ping timeout: 240 seconds]
nvms has joined #ruby
arescorpio has joined #ruby
dc4 has quit [Ping timeout: 255 seconds]
nankyokusei has quit [Ping timeout: 240 seconds]
hightower3 has joined #ruby
_sfiguser has quit [Ping timeout: 240 seconds]
hightower2 has quit [Ping timeout: 255 seconds]
Ropeney has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
xlegoman has quit [Ping timeout: 255 seconds]
Ropeney has joined #ruby
Lord_of_Life has quit [Changing host]
Lord_of_Life has joined #ruby
Lord_of_Life has joined #ruby
Ropeney has quit [Client Quit]
djuber has quit [Ping timeout: 256 seconds]
jdbrowne has quit [Quit: WeeChat 1.4]
hightower3 has quit [Ping timeout: 245 seconds]
djbkd has quit [Remote host closed the connection]
Puffball has quit [Remote host closed the connection]
Derperperd has quit [Ping timeout: 260 seconds]
Puffball has joined #ruby
_sfiguser has joined #ruby
username_ has joined #ruby
nvms_ has joined #ruby
pilne has quit [Read error: Connection reset by peer]
nvms has quit [Ping timeout: 240 seconds]
pilne has joined #ruby
Ropeney has joined #ruby
pilne has quit [Read error: Connection reset by peer]
Technodrome has joined #ruby
MyMind has quit [Ping timeout: 240 seconds]
Technodrome has quit [Client Quit]
Technodrome has joined #ruby
Technodrome has quit [Client Quit]
maloik has quit [Remote host closed the connection]
Technodrome has joined #ruby
Technodrome has quit [Client Quit]
maloik has joined #ruby
Guest62960 is now known as ged
Technodrome has joined #ruby
ged is now known as Guest57401
Technodrome has quit [Client Quit]
Technodrome has joined #ruby
patarr has joined #ruby
Technodrome has quit [Client Quit]
matrix9180 has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
Technodrome has joined #ruby
Technodrome has quit [Client Quit]
nankyokusei has joined #ruby
mikecmpbll has quit [Quit: inabit. zz.]
binaryplease has joined #ruby
nankyokusei has quit [Ping timeout: 240 seconds]
patarr has quit [Ping timeout: 240 seconds]
JoshS has joined #ruby
myk267 has joined #ruby
meshsmith has joined #ruby
Azure has quit [Ping timeout: 258 seconds]
zacts has joined #ruby
ddffg has quit [Ping timeout: 255 seconds]
nvms_ has quit [Quit: This computer has gone to sleep]
Technodrome has joined #ruby
harai has joined #ruby
bmurt has joined #ruby
MyMind has joined #ruby
myk267 has quit [Quit: Uh oh!]
dc4 has joined #ruby
harai has quit [Ping timeout: 240 seconds]
harai_ has joined #ruby
blackmes1 has quit [Ping timeout: 240 seconds]
Azure has joined #ruby
alexar has joined #ruby
dc4 has quit [Ping timeout: 240 seconds]
blackmes1 has joined #ruby
MissionCritical has joined #ruby
acalycine has joined #ruby
alan_w has joined #ruby
blackmes1 has quit [Ping timeout: 258 seconds]
duckpupp1 has joined #ruby
xall has joined #ruby
binaryplease has quit [Quit: Hermes - Material IRC Client - https://numixproject.org/]
username_ has quit [Ping timeout: 258 seconds]
meshsmith has quit [Remote host closed the connection]
govg has quit [Quit: leaving]
duckpupp1 has quit [Ping timeout: 255 seconds]
xall has quit [Ping timeout: 245 seconds]
Derperperd has joined #ruby
Qwertii has joined #ruby
<Qwertii> hi
ecuanaso has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<Qwertii> Does anyone know how I could use nokogiri to find an element with the attribute itemprop="price"
nankyokusei has joined #ruby
Derperperd has quit [Ping timeout: 264 seconds]
Xentil has quit [Ping timeout: 240 seconds]
Xentil has joined #ruby
alexar has quit [Remote host closed the connection]
kazlock has quit [Quit: This computer has gone to sleep]
nankyokusei has quit [Ping timeout: 245 seconds]
fedruantine has quit [Ping timeout: 248 seconds]
zeroDi has quit [Quit: WeeChat 1.6]
hanmac has quit [Ping timeout: 276 seconds]
yqt has quit [Ping timeout: 240 seconds]
charliesome has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
fedruantine has joined #ruby
astrobunny has joined #ruby
d^sh has quit [Ping timeout: 264 seconds]
<al2o3-cr> Qwertii: what do you have now?
d^sh has joined #ruby
<Qwertii> I just tried html.css(span[itemprop="price"]) but there were some other issue in my code so I havent been able to check if it works yet
myk267 has joined #ruby
<al2o3-cr> can you gist your code sample/
alexar has joined #ruby
hanmac has joined #ruby
Guest57401 is now known as ged
ged is now known as Guest51474
<acalycine> How do you escape spaces in arguments in Python?
<acalycine> *ruby
<acalycine> lmao
<acalycine> I get the error "Main-v3(cricapi).rb:22:in `<main>': uninitialized constant Zealand (NameError)"
<acalycine> When I try to run a method with these args: "core_summary(New Zealand)"
Rodya_ has joined #ruby
djuber has joined #ruby
<havenwood> acalycine: Spaces and Constants don't mix. No spaces in Constants, just CamelCase or SCREAMING_SNAKE CASE.
gajus has quit [Quit: Connection closed for inactivity]
<acalycine> Lol
<acalycine> How would I convert the input "New Zealand" to a readable input for Ruby?
<acalycine> Splat or?
<havenwood> What do you mean by "readable?"
<havenwood> "New Zealand" #=> ?
<havenwood> acalycine: What's the desired output ^ above?
<acalycine> That's basically my question, how can "New Zealand" be readable by Ruby?
<Radar> ?xy
<ruby[bot]> it seems like you are asking for a specific solution to a problem, instead of asking about your problem. This often leads to bad solutions and increases frustration for you and those trying to help you. More: http://meta.stackexchange.com/a/66378
<acalycine> "New Zealand" is the () for a method
<Radar> acalycine: This would work a lot better if you showed us the code that you're using.
<acalycine> Sure, give me a minute.
dionysus69 has quit [Ping timeout: 260 seconds]
<acalycine> That "core_summary(New Zealand)" is just a testing example, the actual input comes from external Discord
jeyraof has joined #ruby
<Radar> acalycine: core_summary("New Zealand")
<al2o3-cr> acalycine: you have to quote it
<acalycine> Yep, that would work. But I'm aiming so the user doesn't have to enter "" for the input.
<Radar> acalycine: Or if it's a variable, team = "New Zealand", then score_summary(team)
<acalycine> Hmm, that might work.
<Radar> I don't understand how this wouldn't be working already.
nankyokusei has joined #ruby
patarr has joined #ruby
<acalycine> The team in the score_summary(team) would be "New Zealand"
<acalycine> Without the quotes
<acalycine> That's the pure user input from Discord
<Radar> It would be a string. Which is
<Radar> "New Zealand"
kazlock has joined #ruby
charliesome has joined #ruby
<acalycine> Hmm. What does p do exactly?
<acalycine> remove whitespace or?
<Radar> acalycine: Did you try it?
<acalycine> trying now
nankyokusei has quit [Ping timeout: 240 seconds]
<acalycine> Still get the same error I got before. I'll try putting p team in the method
<Radar> omg
<Radar> acalycine: Did you remove line 23 or not?
<Radar> This line is completely invalid Ruby.
<acalycine> Yeah I removed it.
<Radar> Ok. Show us the new stacktrace in a Gist please.
<acalycine> it was testing if it worked or not
<acalycine> The errors are specific to the Discord API thingo
<acalycine> But OK
<Radar> This line is now the error.
<acalycine> Due to the team, right?
<Radar> Which I can deduce because line 3 of your most recent Gist points at line 11: https://gist.github.com/camr12/4fea1182cab1fef843d9f615ce24eb23#file-gistfile1-txt-L3-L4
<Radar> o.m.g.
<Radar> No.
<Radar> Please stop obsessing over the team variable.
<Radar> We are now past that.
<acalycine> OK
Rodya_ has quit [Remote host closed the connection]
<Radar> match_list_hash is returning nil, and you're trying to call [] on nil on line 11.
sspreitz has quit [Ping timeout: 258 seconds]
<Radar> You need to validate what you're getting back from the response generated on lines 7-10.
<acalycine> match_list_hash shouldn't be retuning nil, if I use any other input on team I get expected results?
Xentil has quit [Quit: http://quassel-irc.org - Chat comfortably. Anywhere.]
nofxx has quit [Remote host closed the connection]
<acalycine> The response is good
nofxx has joined #ruby
<Radar> Bullshit.
<acalycine> I'll prove it.
<Radar> acalycine: Are you specifying an API key on line 7?
<acalycine> yes, i've hidden it for the sake of gist
<Radar> acalycine: When the code reaches line 10, what is the value of match_list_hash?
sspreitz has joined #ruby
<acalycine> Doing that now.
cyphase has quit [Ping timeout: 256 seconds]
benlieb has quit [Quit: benlieb]
<acalycine> Output and code put in
ecuanaso has joined #ruby
<acalycine> score_summary() now needs '' for some reason
<Radar> Thank you. Taking a look.
<Radar> Where did this score url come from?
<Radar> I thought we were debugging match_list_hash?
<acalycine> Ah, I'll do that. that's the final output
<acalycine> in order to get to score_url it needs to get the hash
<Radar> ok, glhf. I've tried to help but now I need to go do real work.
cyphase has joined #ruby
<acalycine> Thanks anyway. Just needed to know if there was a way to automatically put '' around the input I get from Discord...
Derperperd has joined #ruby
<Radar> acalycine: For the love of all that is precious. The input you get from discord already has the quotes around it.
jared_nyc has joined #ruby
<Radar> acalycine: You can verify this, as I showed before, by doing p team.
<Radar> I am frustrated because I was trying to help you get to the bottom of what match_list_hash was, and then you show me some completely different code about scores.
<Radar> Like, what are we even trying to debug here? Are you having difficulty focus? I sure as shit am.
<Radar> focussing*
<Radar> Anyway, back to work.
djbkd has joined #ruby
patarr has quit [Ping timeout: 276 seconds]
Derperperd has quit [Ping timeout: 248 seconds]
patarr has joined #ruby
<acalycine> Yeah, sorry about that. I'm sure it's not the API or hashes acting up, as other requests work, as shown in this screenshot. https://puu.sh/twb8d/8328cba51f.png Once I try !score New Zealand it throws the same error message in this gist. https://gist.github.com/camr12/4fea1182cab1fef843d9f615ce24eb23
<Radar> Did you see what the value of match_list_hash was yet?
harfangk has joined #ruby
<acalycine> Oops.
<acalycine> If it weren't that, a command like !score Bangladesh wouldn't work...
duckpupp1 has joined #ruby
* baweaver skims through chat
patarr has quit [Ping timeout: 255 seconds]
patarr has joined #ruby
Derperperd has joined #ruby
<baweaver> acalycine: line 11 won't work how you think it will
<baweaver> assuming that you're using the datasource in that second gist
<acalycine> Which one's that?
<acalycine> Why not?
<acalycine> I think somebody here suggested that
<baweaver> Also you have an odd habit of putting a variable on everything, fairly verbose
<baweaver> &ri Hash#key
<baweaver> the key names are team-1 and team-2
nankyokusei has joined #ruby
<baweaver> your team is something like 'New Zealand'
<baweaver> they won't match
<acalycine> Yep, I'm checking if either team-1 or team-2 is New Zealand
<baweaver> how?
<acalycine> Via that
<baweaver> No you're not
<baweaver> how?
<baweaver> read that link above
<acalycine> I got that code suggested from here, I'll read the link
<acalycine> It seemed to work.
<acalycine> my scrollback isn't that far so i can't find it
<baweaver> Hrm, so that does work.
<acalycine> Yeah, it seemed to work.
<baweaver> ok, so just to get it to one question: what are you currently trying to do?
<acalycine> Fix this error I get when I enter two words as input
<acalycine> Oh in the program?
<baweaver> The input on line 23 needs quote marks around it
Technodrome has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<baweaver> the input on line 31 does not
optiz0r has quit [Quit: No Ping reply in 180 seconds.]
<baweaver> The API would return things of a type of String
<acalycine> I've since fixed the code since then, but the API already puts quotes around the string I was told
<baweaver> that's an odd way of looking at it
<baweaver> a string is a string
<baweaver> the API doesn't put quotes around it
nankyokusei has quit [Ping timeout: 240 seconds]
duckpupp1 has quit [Ping timeout: 276 seconds]
yosafbridge has joined #ruby
yosafbridge` has quit [Quit: Leaving]
<acalycine> Radar told me it did
<acalycine> my terms must be mixed up
<baweaver> he's right, but you're misinterpreting it
patarr has quit [Ping timeout: 255 seconds]
nvms_ has joined #ruby
<baweaver> line 18
<acalycine> latest
<baweaver> you're saying there's a string "score"
<baweaver> that's you giving it a string
<acalycine> In the JSON
<acalycine> It's an object (?)
<baweaver> It's a string
optiz0r has joined #ruby
<baweaver> >> require 'json'; {test: 1}.to_json
<ruby[bot]> baweaver: # => "{\"test\":1}" (https://eval.in/721872)
<baweaver> >> require 'json'; {test: '1'}.to_json
<ruby[bot]> baweaver: # => "{\"test\":\"1\"}" (https://eval.in/721873)
<baweaver> >> require 'json'; JSON.parse {test: '1'}.to_json
enterprisey has joined #ruby
<ruby[bot]> baweaver: # => /tmp/execpad-fef03914e982/source-fef03914e982:2: syntax error, unexpected ':', expecting '}' ...check link for more (https://eval.in/721874)
<baweaver> >> require 'json'; JSON.parse({test: '1'}.to_json)
<ruby[bot]> baweaver: # => {"test"=>"1"} (https://eval.in/721875)
<baweaver> now what type is that value?
<baweaver> We can even ask it if we want
<acalycine> ?
<baweaver> >> require 'json'; JSON.parse({test: '1'}.to_json).values.first.is_a? String
<ruby[bot]> baweaver: # => true (https://eval.in/721876)
SuperLag has quit [Quit: brb]
<baweaver> Look at your JSON, those are strings
SuperLag has joined #ruby
<acalycine> The code fetches the "score" from the JSON fine with other args
<acalycine> It's just when I introduced "New Zealand", two words
<baweaver> Nope, you gave it two constants
<baweaver> >> New Zealand
<ruby[bot]> baweaver: # => uninitialized constant Zealand (NameError) ...check link for more (https://eval.in/721877)
<baweaver> >> "New Zealand"
<ruby[bot]> baweaver: # => "New Zealand" (https://eval.in/721878)
<acalycine> That's basically my question
<acalycine> is it possible to auto put quotes around it
<baweaver> No
<acalycine> what about splat
<baweaver> and it's a very silly question
<baweaver> no
Technodrome has joined #ruby
<baweaver> you need to put quotes around it if you input it
fedruantine has quit [Ping timeout: 258 seconds]
<baweaver> the API is telling the method a string
<baweaver> you're telling it you want a couple of constants named New and Zealand
<acalycine> yeah.
<baweaver> that doesn't work
<baweaver> and there's no way to make it work
<acalycine> The API says I need splat to insert quotes around the input
<baweaver> Where?
<acalycine> I asked them, so I'll probably ask them again.
<acalycine> This isn't the right channel for it probs
<acalycine> anyway thanks for your help :)
<baweaver> fair warning, most are going to think you're being purposely obtuse.
<baweaver> might want to go back over some basics.
<acalycine> "Ruby allows you to use the splat operator (*) before a parameter in a block to greedily grab all arguments that aren't already covered by others. This is useful when making a command that takes a text as an argument that might also contain spaces, but you don't want to have to use quotes"
<acalycine> Is this true?
<baweaver> for the input the code gives, yes
<baweaver> which is already a string
<baweaver> but you literally put in two constants
<acalycine> Yeah, I can see what you're saying.
<acalycine> That's an issue (probably not an issue) with the API though, right?
<baweaver> It's not
<acalycine> Yep.
<baweaver> When you input something to slack that's what it's grabbing
<baweaver> when you put it directly to the code though
StoneCypher has joined #ruby
<acalycine> Yeah. It's just not very user-friendly to put quotes around "New Zealand" though.
<baweaver> ...
<acalycine> Why not?
<baweaver> On line 23 of your program it is required absolutely
<baweaver> the slack input is already a string
<baweaver> so putting quotes around that part would be silly
<acalycine> You mean "score_summary(team='Bangladesh')"
<acalycine> etc?
<baweaver> .........
<acalycine> That was just a test to see if it worked
fedruantine has joined #ruby
<acalycine> the input comes from
<acalycine> bot.command :score do |event, team|
<acalycine> score_summary(team)
<acalycine> end
<baweaver> I'm aware of this
<acalycine> Yes.
<baweaver> you use a splat on team
<baweaver> bot.command watches for the command score
<baweaver> so it sees: score cricket New Zealand
<baweaver> and assigns that to.....
<acalycine> an array
<baweaver> >> event, team = %w(cricket New Zealand); [event, team]
<ruby[bot]> baweaver: # => ["cricket", "New"] (https://eval.in/721879)
<baweaver> compare to splat:
<baweaver> >> event, *team = %w(cricket New Zealand); [event, team]
<ruby[bot]> baweaver: # => ["cricket", ["New", "Zealand"]] (https://eval.in/721880)
<acalycine> There's no cricket, just "!score New Zealand".
<baweaver> then your code is wrong there
<baweaver> event isn't needed
<acalycine> What's wrong with pushing it into an array and then converting that array into a string?
Guest51474 is now known as ged
<baweaver> ....
<baweaver> the input that block gets is: New Zealand
ged is now known as Guest43356
<baweaver> it treats every word as its own thing
<acalycine> Yeah, as a constant
<baweaver> ..............
<baweaver> that's in your code
<baweaver> Anyways, I don't think I can really help you.
<baweaver> you're showing severe confusion on some very fundamental issues
<acalycine> Ah, well thanks anyway.
fedruantine has quit [Ping timeout: 252 seconds]
electrostat has quit [Quit: uwotm8]
<baweaver> you might want to read through a book on Ruby to clear a few of them up
<Radar> [14:44:57] <baweaver>might want to go back over some basics.
<Radar> ^ Strongly recommend this
<Radar> It looks like you're using this as a way to learn Ruby... and you're conflating constants and strings.
<baweaver> Eloquent Ruby and The Well Grounded Rubyist are good places to look
<acalycine> You're right. I'll have a look at those books, thanks heaps for your efforts guys.
electrostat has joined #ruby
prawnzy has joined #ruby
chouhoulis has quit [Remote host closed the connection]
bmurt has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
nankyokusei has joined #ruby
alexar has quit [Remote host closed the connection]
Dragonai has joined #ruby
nankyokusei has quit [Ping timeout: 245 seconds]
creat has quit [Quit: ZNC 1.6.4 - http://znc.in]
creat has joined #ruby
redhedded1 has quit [Ping timeout: 248 seconds]
LiquidInsect has quit [Ping timeout: 264 seconds]
LiquidInsect has joined #ruby
Dragonai has quit [Quit: <3]
gix has quit [Ping timeout: 248 seconds]
xall has joined #ruby
kazlock has quit [Quit: This computer has gone to sleep]
hightower2 has joined #ruby
gix has joined #ruby
xall has quit [Ping timeout: 255 seconds]
TomyLobo has quit [Ping timeout: 255 seconds]
djuber has quit [Ping timeout: 248 seconds]
Immune_ has joined #ruby
Immune has quit [Ping timeout: 240 seconds]
toretore has joined #ruby
hightower3 has joined #ruby
<al2o3-cr> acalycine: it's not the API; http://imgur.com/a/7w6T1
<acalycine> Yep, the cricapi works fine.
xen0fon has joined #ruby
xen0fon has quit [Client Quit]
hightower2 has quit [Ping timeout: 260 seconds]
Immune_ is now known as immune
xall has joined #ruby
hightower2 has joined #ruby
nankyokusei has joined #ruby
hightower3 has quit [Ping timeout: 245 seconds]
CloCkWeRX has quit [Ping timeout: 255 seconds]
hinbody has quit [Quit: leaving]
nankyokusei has quit [Ping timeout: 258 seconds]
kazlock has joined #ruby
hinbody has joined #ruby
aupadhye has joined #ruby
s2013 has joined #ruby
hightower3 has joined #ruby
arescorpio has quit [Read error: Connection reset by peer]
ur5us has quit [Remote host closed the connection]
ur5us has joined #ruby
hightower2 has quit [Ping timeout: 260 seconds]
acalycine has quit [Quit: bye]
harai_ has quit [Ping timeout: 255 seconds]
acalycine has joined #ruby
skweek has quit [Ping timeout: 240 seconds]
ur5us has quit [Ping timeout: 240 seconds]
c355e3b has quit [Quit: Connection closed for inactivity]
CloCkWeRX has joined #ruby
username_ has joined #ruby
raul782 has joined #ruby
Guest43356 is now known as ged
ged is now known as Guest49655
raul782 has quit [Ping timeout: 240 seconds]
enterprisey has quit [Remote host closed the connection]
matp has quit [Remote host closed the connection]
username_ has quit [Ping timeout: 240 seconds]
matp has joined #ruby
nankyokusei has joined #ruby
millerti has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
jshjsh has joined #ruby
blackbombay has quit [Ping timeout: 260 seconds]
UserJosh has joined #ruby
blackbombay has joined #ruby
JoshS has quit [Ping timeout: 240 seconds]
nankyokusei has quit [Ping timeout: 252 seconds]
jshjsh has quit [Ping timeout: 240 seconds]
UserJosh is now known as JoshS
valeth has joined #ruby
rajat has joined #ruby
djellemah has quit [Ping timeout: 240 seconds]
alexar has joined #ruby
valeth1 has quit [Ping timeout: 240 seconds]
Channel6 has quit [Quit: Leaving]
Robtop__ has joined #ruby
xall has quit [Ping timeout: 264 seconds]
harai_ has joined #ruby
raul782 has joined #ruby
xall has joined #ruby
s2013 has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
nvms_ is now known as nvms
pwnd_nsfw` has quit [Ping timeout: 260 seconds]
vali_ has joined #ruby
Cohedrin_ has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
nvms has quit [Quit: Leaving]
vali_ has quit [Client Quit]
nvms has joined #ruby
kazlock has quit [Quit: This computer has gone to sleep]
nvms has quit [Client Quit]
xall has quit [Ping timeout: 264 seconds]
nankyokusei has joined #ruby
nvms has joined #ruby
astrobunny has quit [Remote host closed the connection]
nankyokusei has quit [Ping timeout: 240 seconds]
alexar has quit [Remote host closed the connection]
renchan has joined #ruby
alexar has joined #ruby
alexar has quit [Remote host closed the connection]
raul782 has quit [Read error: Connection reset by peer]
raul782 has joined #ruby
_sfiguser has quit [Ping timeout: 240 seconds]
astrobunny has joined #ruby
pavelz has joined #ruby
Cohedrin_ has joined #ruby
nvms has quit [Quit: Leaving]
nvms has joined #ruby
s2013 has joined #ruby
jeyraof has quit [Quit: This computer has gone to sleep]
chouhoulis has joined #ruby
s2013 has quit [Client Quit]
s1kx has quit [Quit: s1kx]
chouhoulis has quit [Ping timeout: 255 seconds]
SteenJobs has quit [Quit: SteenJobs]
dn` has quit [Ping timeout: 276 seconds]
ifctj has joined #ruby
Guest49655 is now known as ged
ged is now known as Guest95085
chussenot has joined #ruby
nankyokusei has joined #ruby
brent__ has joined #ruby
nowz has joined #ruby
__Yiota has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
ecuanaso has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
ecuanaso has joined #ruby
dc4 has joined #ruby
crankharder has quit [Ping timeout: 240 seconds]
nankyokusei has quit [Ping timeout: 264 seconds]
jeyraof has joined #ruby
saneax-_-|AFK is now known as saneax
mark[oz] has joined #ruby
s2013 has joined #ruby
Technodrome has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
s2013 has quit [Client Quit]
wugy has joined #ruby
brent__ has quit []
Rich_Morin has joined #ruby
Technodrome has joined #ruby
Rich_Morin1 has quit [Ping timeout: 240 seconds]
brent__ has joined #ruby
NeverTired has quit [Quit: Connection closed for inactivity]
anisha has joined #ruby
govg has joined #ruby
brent__ has quit [Remote host closed the connection]
brent__ has joined #ruby
harai_ has quit [Ping timeout: 252 seconds]
xall has joined #ruby
jeyraof has quit [Quit: This computer has gone to sleep]
djellemah has joined #ruby
brent__ has quit [Ping timeout: 240 seconds]
last_staff has joined #ruby
anisha_ has joined #ruby
jeyraof has joined #ruby
anisha has quit [Ping timeout: 264 seconds]
nankyokusei has joined #ruby
walterheck has joined #ruby
govg has quit [Ping timeout: 240 seconds]
nankyokusei has quit [Ping timeout: 240 seconds]
harai_ has joined #ruby
Derperperd has quit [Ping timeout: 255 seconds]
matp has quit [Remote host closed the connection]
s2013 has joined #ruby
govg has joined #ruby
matp has joined #ruby
walterheck has quit [Ping timeout: 258 seconds]
mark[oz] has quit []
jeyraof has quit [Quit: This computer has gone to sleep]
<zacts> hello rubyists
<zacts> I'm reading the Well Grounded Rubyist now
<zacts> 2nd edition
<zacts> I'm 1/2 way through it
markholmes has quit [Quit: Leaving]
<zacts> it's pretty good
brent__ has joined #ruby
<zacts> (just noticed this book was just mentioned)
<zacts> :-)
Xiti` has joined #ruby
brent__ has quit [Remote host closed the connection]
brent__ has joined #ruby
jeyraof has joined #ruby
crankharder has joined #ruby
davezd has quit [Quit: Leaving]
Xiti has quit [Ping timeout: 255 seconds]
SteenJobs has joined #ruby
matrix9180 has joined #ruby
brent__ has quit [Ping timeout: 256 seconds]
tildes has joined #ruby
ur5us has joined #ruby
nankyokusei has joined #ruby
lxsameer has joined #ruby
FrankD has joined #ruby
nankyokusei has quit [Ping timeout: 248 seconds]
<FrankD> Hi, can anyone recommend a GUI binding for Ruby? I guess Qt or WxWidgets as backends would be fine
ecuanaso has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<dminuoso> FrankD: GUI is sadly something that is not widely used or supported.
<FrankD> that is sad
<FrankD> itd be good for rapid prototyping
<dminuoso> FrankD: Most GUI bindings are kind of outdated or the support is meh, or they lack features.
<FrankD> hell even TCL had Tk!
<dminuoso> FrankD: In our last project we separated the GUI entirely, developed it in C++ and connected the Ruby logic through an object request broker.
<FrankD> yeah
<dminuoso> Made things fucktons easier because you don't get shot in the back by things such as the the GVL
<FrankD> well my first thought was.. Ruby for IRC Client scripting
<FrankD> then I was like eh why not write the whole thing in Ruby :P
<dminuoso> There's official curses bindings
<FrankD> lol, not looking to remake epic/irssi
<dminuoso> Im just saying. ;-)
<dminuoso> FrankD: The main issue with the qtbindings library linked above is that they don't suport qt 5.0 yet..
<FrankD> ah
<dminuoso> Which is ultra sad, considering it's 4 years old.
<FrankD> and no native support for winblows SDKs?
<FrankD> i dont even know what the windows API is called now :P
<dminuoso> FrankD: Actually, there is!
<dminuoso> FrankD: You can call the entire Win32 API natively.
<FrankD> wrapper for that?
<dminuoso> Without any gems in fact.
<FrankD> o.O
<FrankD> got any links?
<FrankD> atleast i could write a shim and do a *nix version later
<dminuoso> FrankD: Oh well, there's a wrapper library to ease things up win32-api
<dminuoso> But it's basically just an FFI wrapper
chussenot has quit [Quit: chussenot]
<dminuoso> No logic in it
<FrankD> thats ok, as gross as the api is.. I've worked with Win32 a bit
matrix9180 is now known as matrix9180[away]
* FrankD shudders
<dminuoso> Oh interestingly it's more than just an FFI wrapper
<dminuoso> didn't know
<dminuoso> Ah well.
<dminuoso> FrankD: But if you insist you can call it natively from Ruby.
<FrankD> maybe i should just write it in RoR
<FrankD> and let the browser draw it
<FrankD> :P
cibs has quit [Ping timeout: 245 seconds]
<FrankD> and just use CodeMirror or something to edit/upload client-side code
<FrankD> or Ace
cibs has joined #ruby
Guest95085 is now known as ged
ged is now known as Guest63187
<FrankD> dminuoso, how tough was it to implement it your way? C++ core with Ruby bindings?
raul782 has quit [Read error: Connection reset by peer]
<FrankD> effing Hexchat has Python (bleh) and LUA (BLEH!).. maybe toss some Ruby in dere
govg has quit [Quit: leaving]
raul782 has joined #ruby
tildes has quit [Ping timeout: 248 seconds]
<FrankD> although i dont really like Hexchat's GUI.. it'd still be nice
<dminuoso> FrankD: Depending on what you do, it may even be easier to approach this from the other way around. Write the UI and other components in C++, and then embed ruby with the semi-official MRuby
ta has quit [Remote host closed the connection]
<dminuoso> boost asio is fun ;-)
<FrankD> screw it, ill write my scripts in plain C
pandaant has joined #ruby
<FrankD> _without_ libc!
<FrankD> and just dynamically load objects.
jeyraof has quit [Quit: This computer has gone to sleep]
<dminuoso> FrankD: You can't write it in plain C without libc.
<dminuoso> FrankD: Without a libc its not C.
conta has joined #ruby
<FrankD> uclibc :P
jenrzzz has joined #ruby
<dminuoso> FrankD: I recommend musl
<dminuoso> uclibc is dead
<FrankD> oh is it?
<dminuoso> Yes.
<dminuoso> musl is the current state of the art miniature C library
matrix9180[away] is now known as matrix9180
matrix9180 is now known as matrix9180[away]
<dminuoso> Though even those are real C standard libraries.
<FrankD> yeah
<FrankD> the without libc was more of a joke
blaxter has joined #ruby
nankyokusei has joined #ruby
<dminuoso> FrankD: Point of interest, implementations must provide a so called "freestanding environment", in which only a very small subset of the C library (mostly just types) must be available.
<FrankD> aye, i do a lot of AVR8 stuff
Snickers has joined #ruby
blaxter has quit [Client Quit]
<dminuoso> Cool :)
<dminuoso> FrankD: As a hobby or professionally?
ddrmanxbxfr has quit [Remote host closed the connection]
<FrankD> dminuoso, hobby
<FrankD> i got annoyed at hand-testing JFET characteristics by hand
<dminuoso> You just made me lookup what JFETs are.
<FrankD> so i whipped up a PCB with a 24-bit ADC and 16-way muxer, SPI to an ATTiny.. which has a shit USI (Universal Serial Interface)
<FrankD> so I wound up just bitbanging SPI
<FrankD> yeah you try to match them, Idss and Vpp aka Vgs(off) are two important characteristics
charliesome has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<FrankD> so I could test 16 at a time that way without flipping a switch to go between Idss/Vpp and then manually writing it in a spreadsheet and tagging the JFET..
nankyokusei has quit [Ping timeout: 264 seconds]
charliesome has joined #ruby
<dminuoso> SPI, ATTiny, USI, Idss, Vpp, Vgs...
<dminuoso> You lost me.
<dminuoso> :S
<FrankD> spi is a serial communications protocol
<dminuoso> My understanding of processor stops at the architectural level.
<FrankD> you send a bit, you receive a bit
<dminuoso> Oh right.
<FrankD> 1 data line, 1 clock line
cajone has quit [Ping timeout: 258 seconds]
dionysus69 has joined #ruby
<FrankD> so you shift a bit out an IO line, then you shift a bit in on the same line.. the USI is supposed to make that easy
<dminuoso> What kind of characteristics are you testing on JFETs?
raul782 has quit [Remote host closed the connection]
<dminuoso> Their switching speed?
<FrankD> no
ifctj has quit [Ping timeout: 276 seconds]
<FrankD> "Pinchoff voltage" and saturation current for Drain to Source (Idss)
<FrankD> for audio applications
<dminuoso> Ahh.
<FrankD> they're generally well liked, atleast in the guitar world because theyre depletion mode devices like vacuum tubes
<FrankD> and at mild drive levels dont sound like #@)$%^* like a BJT or MOSFET.. or a diode clipper
govg has joined #ruby
<dminuoso> Something tells me this conversation would go lots better if I read a book or two on electronics.
<dminuoso> MOSFET! I know what that is.
<FrankD> im using a tiny MOSFET.. 6 pin, P/N pair to make a NOT gate to drive my CPU fans
<dminuoso> But I guess you might feel the same way if I started talking about blackhole thermodynamics.
<FrankD> gotta make a microcontroller do it.. but this works for now, the fans I got take an inverted tach signal
<FrankD> indeed
TomyLobo has joined #ruby
govg has quit [Client Quit]
<dminuoso> FrankD: So you're the guy I should talk to when I buy my first guitar and then need a guitar amp.
<FrankD> so the inverted tach signal.. means inverted duty cycle, so if i didnt put a NOT gate, the fans would slow down the hotter the CPU got
<dminuoso> o.o
<FrankD> absolutely, the BEST thing you can do in a passive pickup guitar is put in a 9v battery and 1-2 JFETs
<FrankD> atleast 1 will drive the cable
<FrankD> a lot of people dont realize it when they start playing, but if you use more than a ~6' cable, the capacitance kills your highs
<FrankD> you throw a JFET in there to actively drive the cable, and your guitar sounds like it should
jenrzzz has quit [Ping timeout: 258 seconds]
Derperperd has joined #ruby
walterheck has joined #ruby
ledestin has joined #ruby
<FrankD> http://www.till.com/articles/GuitarPreamp/ <-- something *like* that
charliesome has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
Mortomes|Work has joined #ruby
matrix9180[away] is now known as matrix9180
nofxx has quit [Remote host closed the connection]
Derperperd has quit [Ping timeout: 276 seconds]
nofxx has joined #ruby
charliesome has joined #ruby
<djellemah> I asked this yesterday, no answer so I'm trying again: I need to parse some yaml with tags (eg !ruby/object:PhusionPassenger::Utils::TeeInput). I've had a go at telling Psych (alternatively Syck) to ignore tags that it can't resolve to classes, and just return them as hashes. Seems the only way to do that is to override various things in Psych (alternatively Syck). Am I missing the obvious way to do this easily?
acalycine has quit [Quit: bye]
cajone has joined #ruby
charliesome has quit [Client Quit]
nankyokusei has joined #ruby
nofxx has quit [Remote host closed the connection]
nofxx has joined #ruby
teclator has joined #ruby
dionysus69 has quit [Ping timeout: 256 seconds]
nankyokusei has quit [Ping timeout: 240 seconds]
xall_ has joined #ruby
xall has quit [Ping timeout: 245 seconds]
SesMan has joined #ruby
sebastia_ has joined #ruby
unreal has quit [Ping timeout: 255 seconds]
unreal has joined #ruby
bigkevmcd has joined #ruby
sebastiansier has quit [Ping timeout: 252 seconds]
pandaant has quit [Remote host closed the connection]
vondruch has quit [Ping timeout: 260 seconds]
tpendragon has quit [Ping timeout: 255 seconds]
antgel has joined #ruby
nankyokusei has joined #ruby
legionas has joined #ruby
nankyokusei has quit [Ping timeout: 240 seconds]
aufi has joined #ruby
Guest35314 has quit [Quit: ZNC - http://znc.in]
Silthias has joined #ruby
aganov has joined #ruby
charliesome has joined #ruby
Snickers has quit [Ping timeout: 240 seconds]
nowhere_man has joined #ruby
ur5us has quit [Remote host closed the connection]
Guest63187 is now known as ged
ur5us has joined #ruby
ged is now known as Guest98558
mark_66 has joined #ruby
xall has joined #ruby
patarr has joined #ruby
Fernando-Basso has joined #ruby
dn` has joined #ruby
giraffe has joined #ruby
blackmes1 has joined #ruby
vondruch has joined #ruby
giraffe is now known as Guest54596
Silthias1 has joined #ruby
tpendragon has joined #ruby
Derperperd has joined #ruby
Silthias has quit [Ping timeout: 258 seconds]
xall_ has quit [Ping timeout: 248 seconds]
Burgestrand has joined #ruby
vdl has quit [Ping timeout: 240 seconds]
ur5us has quit [Ping timeout: 276 seconds]
matrix9180 has left #ruby ["*drops mic*"]
nankyokusei has joined #ruby
patarr has quit [Ping timeout: 240 seconds]
andikr has joined #ruby
Technodrome has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
xall has quit [Ping timeout: 240 seconds]
Derperperd has quit [Ping timeout: 240 seconds]
djbkd_ has joined #ruby
nankyokusei has quit [Ping timeout: 240 seconds]
ta has joined #ruby
A_Drone has joined #ruby
Silthias has joined #ruby
bahamas has joined #ruby
Silthias1 has quit [Ping timeout: 248 seconds]
ddffg has joined #ruby
koldbrutality has quit [Remote host closed the connection]
Macaveli has joined #ruby
flying has joined #ruby
govg has joined #ruby
nofxx has quit [Remote host closed the connection]
pwnd_nsfw` has joined #ruby
nofxx has joined #ruby
nankyokusei has joined #ruby
hlmjr has joined #ruby
herbmillerjr has quit [Ping timeout: 255 seconds]
Robtop__ has quit [Ping timeout: 258 seconds]
SteenJobs has quit [Quit: SteenJobs]
nankyokusei has quit [Ping timeout: 260 seconds]
chussenot has joined #ruby
mikecmpbll has joined #ruby
frozengeek__ has joined #ruby
frozengeek__ has quit [Remote host closed the connection]
frozengeek__ has joined #ruby
Macaveli has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
Macaveli has joined #ruby
s2013 has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
harai_ has quit [Ping timeout: 245 seconds]
Ropeney has quit [Ping timeout: 256 seconds]
djbkd_ has quit [Remote host closed the connection]
nowhere_man has quit [Ping timeout: 264 seconds]
nowhere_man has joined #ruby
dionysus69 has joined #ruby
nankyokusei has joined #ruby
jsrn_ has joined #ruby
charliesome has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
nankyokusei has quit [Ping timeout: 252 seconds]
drptbl has joined #ruby
blackmes1 has quit [Ping timeout: 240 seconds]
minimalism has quit [Quit: minimalism]
tomphp has joined #ruby
charliesome has joined #ruby
Semtex-h has joined #ruby
pwnd_nsfw has joined #ruby
araujo has quit [Read error: Connection timed out]
tomphp has quit [Client Quit]
blackmes1 has joined #ruby
mostlybadfly has quit [Quit: Connection closed for inactivity]
neuraload has joined #ruby
smswmedia has joined #ruby
pwnd_nsfw` has quit [Ping timeout: 255 seconds]
govg has quit [Ping timeout: 248 seconds]
astrobunny has quit [Remote host closed the connection]
xall has joined #ruby
tomphp has joined #ruby
jenrzzz has joined #ruby
jenrzzz has joined #ruby
jenrzzz has quit [Changing host]
nankyokusei has joined #ruby
xall_ has joined #ruby
supergeek has joined #ruby
blackmes1 has quit [Ping timeout: 252 seconds]
badeball_ is now known as badeball
nankyokusei has quit [Ping timeout: 240 seconds]
xall has quit [Ping timeout: 245 seconds]
supergeek has quit [Client Quit]
nvms has quit [Quit: This computer has gone to sleep]
Mortomes|Work has quit [Ping timeout: 260 seconds]
Derperperd has joined #ruby
araujo has joined #ruby
araujo has joined #ruby
araujo has quit [Changing host]
troulouliou_div2 has joined #ruby
JeanCarloMachado has joined #ruby
deuterium has joined #ruby
supergeek[m] has joined #ruby
Derperperd has quit [Ping timeout: 264 seconds]
pwnd_nsfw` has joined #ruby
Guest98558 is now known as ged
nankyokusei has joined #ruby
ged is now known as Guest60449
pwnd_nsfw has quit [Ping timeout: 240 seconds]
fertapric has joined #ruby
andi has joined #ruby
nankyokusei has quit [Ping timeout: 240 seconds]
Mortomes|Work has joined #ruby
govg has joined #ruby
djbkd_ has joined #ruby
Beams has joined #ruby
nankyokusei has joined #ruby
marr has joined #ruby
andikr has quit [Remote host closed the connection]
nankyokusei has quit [Ping timeout: 255 seconds]
djbkd_ has quit [Remote host closed the connection]
walterheck has quit [Ping timeout: 248 seconds]
xall_ has quit [Ping timeout: 255 seconds]
xall_ has joined #ruby
chouhoulis has joined #ruby
mim1k|work has quit [Ping timeout: 255 seconds]
mim1k|wo1k has joined #ruby
nankyokusei has joined #ruby
rajat has quit [Ping timeout: 245 seconds]
chouhoulis has quit [Ping timeout: 255 seconds]
nhhc has joined #ruby
byte512 has joined #ruby
govg has quit [Quit: leaving]
mim1k|work has joined #ruby
govg has joined #ruby
mim1k|wo1k has quit [Ping timeout: 260 seconds]
meshsmith has joined #ruby
nankyokusei has quit [Ping timeout: 264 seconds]
bahamas has quit [Quit: leaving]
Cohedrin_ has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
flashbang has joined #ruby
Semtex-h has quit [Ping timeout: 260 seconds]
psychicist__ has joined #ruby
astrobunny has joined #ruby
nankyokusei has joined #ruby
flying has quit [Read error: Connection reset by peer]
flying has joined #ruby
nettoweb has joined #ruby
nankyokusei has quit [Ping timeout: 260 seconds]
ericP has left #ruby [#ruby]
neuraload has quit [Ping timeout: 240 seconds]
nankyokusei has joined #ruby
neuraload has joined #ruby
araujo has quit [Quit: Leaving]
ledestin has quit [Quit: Textual IRC Client: www.textualapp.com]
Cohedrin_ has joined #ruby
Pumukel has joined #ruby
nankyokusei has quit [Ping timeout: 256 seconds]
chromity has joined #ruby
jenrzzz has quit [Ping timeout: 252 seconds]
Cohedrin_ has quit [Client Quit]
nankyokusei has joined #ruby
charliesome has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
tvw has joined #ruby
mim1k|work has quit [Ping timeout: 264 seconds]
patarr has joined #ruby
mim1k|work has joined #ruby
ldnunes has joined #ruby
nankyoku_ has joined #ruby
Derperperd has joined #ruby
nankyokusei has quit [Ping timeout: 252 seconds]
patarr has quit [Ping timeout: 245 seconds]
Derperperd has quit [Ping timeout: 264 seconds]
drptbl has quit [Quit: My MAC has gone to sleep. zZz..]
nankyoku_ has quit [Ping timeout: 240 seconds]
chromity has quit [Ping timeout: 240 seconds]
volkerh_de has joined #ruby
tvl has joined #ruby
tvl is now known as tobiasvl
govg has quit [Quit: leaving]
govg has joined #ruby
govg has quit [Client Quit]
govg has joined #ruby
jenrzzz has joined #ruby
fulgore_ has joined #ruby
psychicist__ has quit [Ping timeout: 255 seconds]
Guest60449 is now known as ged
ged is now known as Guest32429
chussenot has quit [Quit: chussenot]
nertzy has quit [Ping timeout: 260 seconds]
frozengeek__ has quit [Quit: frozengeek__]
JoshS has quit [Ping timeout: 240 seconds]
danieldocki has joined #ruby
walterheck has joined #ruby
xall has joined #ruby
charliesome has joined #ruby
JoshS has joined #ruby
xall_ has quit [Ping timeout: 258 seconds]
nowhere_man has quit [Ping timeout: 252 seconds]
drptbl has joined #ruby
nankyokusei has joined #ruby
nankyokusei has quit [Client Quit]
mim1k|wo1k has joined #ruby
mim1k|work has quit [Ping timeout: 240 seconds]
CloCkWeRX has quit [Quit: Leaving.]
bokayio has quit [Ping timeout: 240 seconds]
bokayio has joined #ruby
Guest35507 has quit [Ping timeout: 276 seconds]
mim1k|wo1k is now known as mim1k|work
jameser has joined #ruby
neuraload has quit [Ping timeout: 252 seconds]
neuraload has joined #ruby
chromity has joined #ruby
meshsmith has quit [Remote host closed the connection]
jameser has quit [Client Quit]
chromity has quit [Max SendQ exceeded]
govg has quit [Ping timeout: 256 seconds]
chromity has joined #ruby
chromity has quit [Max SendQ exceeded]
chromity has joined #ruby
chromity has quit [Max SendQ exceeded]
chromity has joined #ruby
deuterium has quit [Ping timeout: 256 seconds]
chromity has quit [Max SendQ exceeded]
chromity has joined #ruby
mim1k|work has quit [Ping timeout: 245 seconds]
chromity has quit [Max SendQ exceeded]
chromity has joined #ruby
chromity has quit [Max SendQ exceeded]
jameser has joined #ruby
chromity has joined #ruby
mim1k|work has joined #ruby
chromity has quit [Max SendQ exceeded]
elena_ has joined #ruby
Derperperd has joined #ruby
jameser has quit [Client Quit]
jameser has joined #ruby
charliesome has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
Macaveli has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
Derperperd has quit [Ping timeout: 248 seconds]
SesMan has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
xall_ has joined #ruby
charliesome has joined #ruby
walterheck has quit [Ping timeout: 260 seconds]
Macaveli has joined #ruby
charliesome has quit [Client Quit]
xall has quit [Ping timeout: 255 seconds]
ecuanaso has joined #ruby
jenrzzz has quit [Ping timeout: 240 seconds]
Burgestrand has quit [Quit: Closing time!]
charliesome has joined #ruby
Burgestrand has joined #ruby
Burgestrand has quit [Client Quit]
anisha_ has quit [Quit: Leaving]
nowhere_man has joined #ruby
Burgestrand has joined #ruby
Burgestrand has quit [Client Quit]
Burgestrand has joined #ruby
Burgestrand has quit [Client Quit]
walterheck has joined #ruby
Burgestrand has joined #ruby
Burgestrand has quit [Client Quit]
astrobunny has quit [Remote host closed the connection]
Burgestrand has joined #ruby
jameser has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
Burgestrand has quit [Client Quit]
jameser has joined #ruby
Burgestrand has joined #ruby
Guest32429 is now known as ged
xen0fon has joined #ruby
ged is now known as Guest63746
Burgestrand has quit [Client Quit]
jshjsh has joined #ruby
Burgestrand has joined #ruby
stan has joined #ruby
Burgestrand has quit [Client Quit]
anisha has joined #ruby
mostlybadfly has joined #ruby
JoshS has quit [Ping timeout: 276 seconds]
Burgestrand has joined #ruby
willdrew has joined #ruby
jameser has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
Burgestrand has quit [Client Quit]
xall_ has quit [Ping timeout: 240 seconds]
Burgestrand has joined #ruby
Macrobiotic has joined #ruby
anisha has quit [Client Quit]
Burgestrand has quit [Client Quit]
xen0fon has quit [Quit: xen0fon]
anisha has joined #ruby
jameser has joined #ruby
Burgestrand has joined #ruby
frozengeek__ has joined #ruby
elena_ has quit [Quit: WeeChat 1.7]
elena_ has joined #ruby
elena_ has quit [Client Quit]
elena_ has joined #ruby
millerti has joined #ruby
ecuanaso has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
anisha has quit [Quit: Leaving]
ecuanaso has joined #ruby
matp has quit [Remote host closed the connection]
matp has joined #ruby
walterheck has quit [Ping timeout: 245 seconds]
elena_ has quit [Quit: WeeChat 1.7]
Semtex-h has joined #ruby
frozengeek__ has quit [Quit: frozengeek__]
SesMan has joined #ruby
tk__ has joined #ruby
ecuanaso has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
anisha has joined #ruby
walterheck has joined #ruby
volkerh_de has quit [Quit: volkerh_de]
jameser_ has joined #ruby
andikr has joined #ruby
volkerh_de has joined #ruby
c355e3b has joined #ruby
patarr has joined #ruby
jameser has quit [Ping timeout: 255 seconds]
Derperperd has joined #ruby
antgel has quit [Ping timeout: 258 seconds]
astrobunny has joined #ruby
nankyokusei has joined #ruby
patarr has quit [Ping timeout: 276 seconds]
astrobunny has quit [Remote host closed the connection]
antgel has joined #ruby
nekomune has quit [Ping timeout: 272 seconds]
jameser_ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
flvzsch50 has joined #ruby
Derperperd has quit [Ping timeout: 240 seconds]
jameser has joined #ruby
swills has joined #ruby
nankyokusei has quit [Ping timeout: 252 seconds]
jameser has quit [Client Quit]
antgel has quit [Ping timeout: 276 seconds]
pwnd_nsfw has joined #ruby
fertapric has quit [Quit: Textual IRC Client: www.textualapp.com]
anisha has quit [Quit: Leaving]
csk has joined #ruby
frozengeek__ has joined #ruby
pwnd_nsfw` has quit [Ping timeout: 255 seconds]
millerti has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
antgel has joined #ruby
saneax is now known as saneax-_-|AFK
xall_ has joined #ruby
xall_ has quit [Ping timeout: 240 seconds]
zapata has quit [Ping timeout: 240 seconds]
antgel has quit [Ping timeout: 276 seconds]
antgel_ has joined #ruby
anisha has joined #ruby
harai_ has joined #ruby
supergeek[m] has left #ruby ["User left"]
bmurt has joined #ruby
nowhere_man has quit [Ping timeout: 260 seconds]
harai_ has quit [Ping timeout: 264 seconds]
astrobunny has joined #ruby
sepp2k has joined #ruby
astrobunny has quit [Remote host closed the connection]
Guest63746 is now known as ged
ged is now known as Guest34137
zapata has joined #ruby
govg has joined #ruby
synthroid has joined #ruby
nettoweb1 has joined #ruby
synthroid has quit [Client Quit]
kht has joined #ruby
synthroid has joined #ruby
charliesome has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
nettoweb has quit [Ping timeout: 276 seconds]
aupadhye has quit [Ping timeout: 248 seconds]
tyang has joined #ruby
neuraload has quit [Ping timeout: 260 seconds]
neuraload has joined #ruby
aredridel has quit [Ping timeout: 240 seconds]
alxs has joined #ruby
Tempesta has quit [Quit: See ya!]
mwlang has joined #ruby
<mwlang> does gem.add_dependency 'railties', '~> 3.0' lock the gem into Rails 3.x series or does it allow 3.x, 4.x, 5.x, etc?
alan_w has quit [Quit: WeeChat 1.4]
psychicist__ has joined #ruby
<kke> should instance methods use instance variables or require arguments? sounds like a stupid question to me too. talking about something like this: https://gist.github.com/kke/acd13f7e3d6d6ae5100563fc159d9ca6 .. my vote goes for A
Tempesta has joined #ruby
tvw has quit [Ping timeout: 240 seconds]
<sonOfRa> kke: if you use A, what's the point in having the instance variable at all?
workmad3 has joined #ruby
<kke> sonOfRa: hmm? i would think just the opposite, what's the point of the instance variable in b?
<herwin> in case B: Why is run_task an instance method? It doesn't use anything of the object
<sonOfRa> kke: err, yes. That's what I meant.
<djellemah> mwlang: '~> 3.0' allows 3.x, '>= 3.0" would allow 3.x, 4.x etc
<mwlang> djellemah: thanks for confirming.
rfoust has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<djellemah> mwlang: um hangon that's in Gemfile. Not sure that works in .gemspec files as well.
<kke> mwlang: i got screwed with the ~> 3.0 earlier, it indeed takes 3.* not 3.0.*.
nowhere_man has joined #ruby
bruce_lee has joined #ruby
bruce_lee has joined #ruby
bruce_lee has quit [Changing host]
<mwlang> kke: I updated to a newer version of someone’s gem and they added that ~> 3.0 in the last release, breaking code that was previous working for Rails 4.x, so it looks like I’ll send a PR out to fix that.
aredridel has joined #ruby
bmurt has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<mwlang> finally found the actual explanation in Bundler’s docs: Most of the version specifiers, like >= 1.0, are self-explanatory. The specifier ~> has a special meaning, best shown by example. ~> 2.0.3 is identical to >= 2.0.3 and < 2.1. ~> 2.1 is identical to >= 2.1 and < 3.0. ~> 2.2.beta will match prerelease versions like 2.2.beta.12. ~> 0 is identical to >= 0.0 and < 1.0.
jrafanie has joined #ruby
Derperperd has joined #ruby
vali_ has joined #ruby
gnufied has quit [Quit: Leaving]
Mortomes|Work has quit [Ping timeout: 260 seconds]
ifctj has joined #ruby
Derperperd has quit [Ping timeout: 255 seconds]
vali_ has quit [Quit: Textual IRC Client: www.textualapp.com]
Snowy has joined #ruby
saneax-_-|AFK is now known as saneax
DaveTaboola has joined #ruby
Silthias1 has joined #ruby
gnufied has joined #ruby
Silthias has quit [Ping timeout: 240 seconds]
is_null_ has quit [Quit: github.com/jpic]
mathys has joined #ruby
Silthias has joined #ruby
al2o3-cr has quit [Ping timeout: 240 seconds]
Silthias2 has joined #ruby
Beams has quit [Quit: .]
Silthias1 has quit [Ping timeout: 276 seconds]
Silthias has quit [Ping timeout: 248 seconds]
kht has quit [Ping timeout: 255 seconds]
tyang_ has joined #ruby
Beams has joined #ruby
__Yiota has joined #ruby
binaryplease has joined #ruby
tyang has quit [Ping timeout: 256 seconds]
<z64> hi all, wondering if someone can point me in the right direction to learn how to do some things concurrently. basically, i have four different calls to make to an API using a library, generated from an #each block. since the API is 'pretty slow', i'd like to make all four calls at once and just wait until each thread is done.
Ropeney has joined #ruby
<z64> since i've never done this kind of thing before, my google-fu is failing me pretty bad :(
hoov has joined #ruby
JoshS has joined #ruby
nettoweb1 has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<sonOfRa> z64: maybe you're looking for this? https://github.com/grosser/parallel
hoov has quit [Client Quit]
last_staff has quit [Quit: last_staff]
UserJosh has joined #ruby
hoov has joined #ruby
Ropeney has quit [Client Quit]
<z64> hmm that looks like it would do the trick, though my task seemed simple enough to do in concept without introducing another dependency
<z64> since its always the same four calls, too
jshjsh has quit [Ping timeout: 255 seconds]
JoshS has quit [Ping timeout: 240 seconds]
ramortegui has joined #ruby
eclm has quit [Quit: WeeChat 1.4]
wugy has quit []
_geoff has joined #ruby
hightower2 has joined #ruby
tk__ has quit [Quit: ばいばい]
djbkd has quit [Ping timeout: 240 seconds]
ifctj has quit [Ping timeout: 245 seconds]
SesMan has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
hightower3 has quit [Ping timeout: 240 seconds]
Guest34137 is now known as ged
ged is now known as Guest1574
<djellemah> threads = 4.times.map{ Thread.new{ do_your_call } }; threads.map{|th| th.value}
is_null has joined #ruby
jshjsh has joined #ruby
neuraload has quit [Ping timeout: 256 seconds]
neuraload has joined #ruby
is_null has quit [Changing host]
is_null has joined #ruby
duckpupp1 has joined #ruby
workmad3 has quit [Ping timeout: 248 seconds]
<z64> that will block until all 4 threads are done?
malconis has joined #ruby
prestorium has joined #ruby
rfoust has joined #ruby
UserJosh has quit [Ping timeout: 258 seconds]
LoneHerm_ has quit [Remote host closed the connection]
SesMan has joined #ruby
patarr has joined #ruby
millerti has joined #ruby
araujo has joined #ruby
mistym- has quit [Ping timeout: 256 seconds]
maleghast has joined #ruby
Derperperd has joined #ruby
nankyokusei has joined #ruby
nowhere_man has quit [Read error: Connection reset by peer]
nowhere_man has joined #ruby
anisha has quit [Quit: This computer has gone to sleep]
Derperperd has quit [Ping timeout: 245 seconds]
`tim` has joined #ruby
nankyokusei has quit [Ping timeout: 258 seconds]
govg has quit [Ping timeout: 240 seconds]
govg has joined #ruby
nowhere_man has quit [Ping timeout: 256 seconds]
polishdub has joined #ruby
<djellemah> z64: it will
rippa has joined #ruby
DLSteve has joined #ruby
blackwind_123 has joined #ruby
Xentil has joined #ruby
govg has quit [Ping timeout: 240 seconds]
neuraload has quit [Ping timeout: 240 seconds]
walterheck has quit [Ping timeout: 255 seconds]
flashbang has quit [Quit: ERC (IRC client for Emacs 25.1.1)]
<z64> alright. i'll play with that a bit. another lib i'm already using depends on concurrent-ruby, i'm thinking i can use Futures that are bundled with it too..
ferr1 has quit [Quit: WeeChat 1.6]
legionas has quit [Quit: Konversation terminated!]
_geoff_ has joined #ruby
Snowy has quit [Remote host closed the connection]
Snowy has joined #ruby
_geoff has quit [Ping timeout: 240 seconds]
bmurt has joined #ruby
ecuanaso has joined #ruby
dionysus69 has quit [Ping timeout: 255 seconds]
tyang__ has joined #ruby
harai_ has joined #ruby
binaryplease has quit [Quit: binaryplease]
djbkd has joined #ruby
Snowy has quit [Ping timeout: 264 seconds]
tyang_ has quit [Ping timeout: 256 seconds]
harai_ has quit [Ping timeout: 264 seconds]
saneax is now known as saneax-_-|AFK
Snowy has joined #ruby
zapata has quit [Ping timeout: 258 seconds]
ta has quit [Remote host closed the connection]
cdg has joined #ruby
chouhoulis has joined #ruby
al2o3-cr has joined #ruby
Silthias has joined #ruby
ianmethyst has joined #ruby
Silthias2 has quit [Ping timeout: 240 seconds]
patarr has quit [Ping timeout: 240 seconds]
LoneHerm_ has joined #ruby
SteenJobs_ has joined #ruby
zapata has joined #ruby
SteenJobs_ has quit [Client Quit]
aufi has quit [Quit: Leaving]
LoneHerm_ has quit [Ping timeout: 245 seconds]
xall_ has joined #ruby
Guest1574 is now known as ged
ged is now known as Guest57620
emilkarl has joined #ruby
vdl has joined #ruby
DevilTiger has joined #ruby
<emilkarl> How would you timeshift a "weekday" array.. [1,3,5] (mon, wed, fri) lets say I want the same array but 2 days forward [3,5,7] or back [6,1,3]. How would you do that in a nice ruby way?
douglascorrea has joined #ruby
antoniobeyah has joined #ruby
enterprisey has joined #ruby
<Burgestrand> >> [1, 3, 5].map { |day| (day + 1) % 7 }
<ruby[bot]> Burgestrand: # => [2, 4, 6] (https://eval.in/722353)
nowz has quit [Quit: Leaving]
<Burgestrand> emilkarl ^ sunday will be on day 0
<Burgestrand> emilkarl or well, whatever you want it to be really as long as you're consistent ;) days go from 0-6
<emilkarl> hmm yes but in my case synday is 7 :/
<Burgestrand> Guess you'll have to adjust the zeroes then :)
UserJosh has joined #ruby
<emilkarl> yes but with % 7, it is just the zeros that goes wrong?
<emilkarl> right?
<emilkarl> 0 means 7
Derperperd has joined #ruby
<Burgestrand> emilkarl Yeah, for you it does
nhhc has quit [Ping timeout: 252 seconds]
<ytti_> i would make days 0-6 internally
<Burgestrand> (it's not uncommon for sundays to be 0 in programming environments)
jshjsh has quit [Ping timeout: 240 seconds]
<emilkarl> no i know
mistym has joined #ruby
mistym has quit [Changing host]
mistym has joined #ruby
<emilkarl> but I am using something that uses 1 as monday
<emilkarl> hmm
Xavaier has joined #ruby
opt9 has quit [Quit: Bye bye]
<emilkarl> I guess I have to figure that out because 0-6 would mean %7 always works
<emilkarl> that would be much easier
raul782 has joined #ruby
<emilkarl> i would always do [2,4,6] { |d| ((d-1)-2)%7+1 }
opt9 has joined #ruby
<emilkarl> hehe
<emilkarl> or no..because -1 would fail
<emilkarl> Darn
nettoweb has joined #ruby
Derperperd has quit [Ping timeout: 258 seconds]
icey has joined #ruby
icey has quit [Changing host]
icey has joined #ruby
<Burgestrand> Just make a second pass and convert all 0s to 7s :)
[reed] has quit [Ping timeout: 240 seconds]
<Burgestrand> Do `map` again, so to say
<ytti_> 7:44 < emilkarl> i would always do [2,4,6] { |d| ((d-1)-2)%7+1 }
<ytti_> i think this solution works
<dminuoso> Burgestrand: I learned that the hard way. I set up my mobile phone anew, setting an alarm clock for the first 5 days without thinking. On friday I was late for a meeting.. quite embarrassing.
<ytti_> test:
<ytti_> [26] pry(main)> [2,4,6].map { |d| ((d-1)+7)%7+1}
<ytti_> [27] pry(main)> [2,4,6].map { |d| ((d-1)-7)%7+1}
<ytti_> => [2, 4, 6]
<ytti_> => [2, 4, 6]
catphish has joined #ruby
<Burgestrand> dminuoso Oh wow, ouch!
<dminuoso> Burgestrand: Yeah. I'm a little unsure what Google's reasoning behind this is, perhaps the majority of folks views sunday as the first day..
<ytti_> US views sunday first
<ytti_> EU views sunday last
bmurt has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<dminuoso> ytti_: Figures. This is actually reflected in German language as well, since the German word for "wednesdays" is short for "middle of the week"
<ytti_> from abrahamic religion POV, god rested on last day, whish is saturday (sabbato in greek)
chouhoul_ has joined #ruby
<dminuoso> Though this is not reflected in any German calendar.
<Burgestrand> dminuoso I run into this problem every now and then since I prefer to have my interfaces in english, and in my culture sunday is the last day but quite often putting things in english also gives me sunday as first day. :)
<ytti_> so really, we should be starting work sunday
<dminuoso> ytti_: Amazing to start the week with.. not working!
<dminuoso> I love the attitude.
chouhoul_ has quit [Remote host closed the connection]
<dminuoso> It's almost Italian.
<emilkarl> Thanks
chouhoul_ has joined #ruby
<Burgestrand> ytti_ Huh, wow, didn't know saturday translated to the actual sabbath in Greek, that's cool.
<ytti_> in middle east friday+saturday is weekend
<ytti_> and work starts sunday
<Burgestrand> TIL!
<ytti_> Burgestrand, me neither, until i moved to greek speaking country and saw store opening hours :/
chouhoulis has quit [Ping timeout: 240 seconds]
nhhc has joined #ruby
saslam has joined #ruby
<Burgestrand> ytti_ hehe
rajat has joined #ruby
Beams has quit [Quit: .]
emilkarl has quit [Quit: emilkarl]
Technodrome has joined #ruby
<catphish> i'm looking for a way to allow untrusted users to execute very simply code under ruby, the kind of code one might enter into a spreadsheet cell, is there any obvious solution?
gajus has joined #ruby
Beams has joined #ruby
ianmethyst has quit [Quit: WeeChat 1.7]
cajone has quit [Ping timeout: 252 seconds]
pwnd_nsfw` has joined #ruby
gix has quit [Ping timeout: 252 seconds]
nowhere_man has joined #ruby
pwnd_nsfw has quit [Ping timeout: 245 seconds]
gix has joined #ruby
Burgestrand has quit [Quit: Closing time!]
shinnya has joined #ruby
rajat has quit [Ping timeout: 256 seconds]
alxs has quit [Ping timeout: 260 seconds]
douglascorrea has quit [Ping timeout: 258 seconds]
<ytti_> catphish, $SAFE=4 and eval?
[reed] has joined #ruby
[reed] has joined #ruby
[reed] has quit [Changing host]
<Papierkorb> catphish: What do you mean, like ruby code? Solution: DON'T
<Papierkorb> ytti_: loop{}
<Papierkorb> ytti_: aaaand I broke it
<catphish> ytti_: i just googled that, and it looks like bad news https://bugs.ruby-lang.org/issues/8468
<ytti_> yeah it might be better to just write some small dsl
<Papierkorb> catphish: It is really complex to do it correctly. Any sandboxing gem you'll find is a hoax, it's not possible to do it safely in-process. And if you fork() for it, there are so soo sooooo many things to consider
<catphish> Papierkorb: to clarify, i had rather discounted eval'ing ruby, i was thinking more of a simple interpreted language implemented in ruby
<Papierkorb> catphish: if all you need are math equations, parse and evaluate them manually, using a proper parser and everything
<Papierkorb> ytti_: Never *ever* give a user access to an eval-like functionality
<catphish> but i have not the skills to write the parser, so i was hoping something might exist in the form of a "safe" ready made interpreted language written in ruby
Semtex-h has quit []
shinnya has quit [Ping timeout: 240 seconds]
tercenya has quit [Remote host closed the connection]
tercenya has joined #ruby
brent__ has joined #ruby
nowhere_man has quit [Remote host closed the connection]
benlieb has joined #ruby
dgarstang has joined #ruby
<dgarstang> How can I dump a json object without all the quotes being \"escaped\" ?
nettoweb has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<Papierkorb> dgarstang: dump where? to stdout for debugging purposes?
<dgarstang> Papierkorb: Yes
<Papierkorb> dgarstang: I just use the `#display` method for that: foo.to_json.display
<Papierkorb> Wouldn't use it for anything else
<dgarstang> i'll give it a try
govg has joined #ruby
<dgarstang> Papierkorb: Nope. I still get ... "create_instance_tags":"{\"Version\":\"2012-10-17\",\"Statement\":[{
<Papierkorb> What's your code line?
StoneCypher has quit [Ping timeout: 252 seconds]
mark_66 has quit [Remote host closed the connection]
<dgarstang> Papierkorb: puts inline_policies.to_json.display
<Papierkorb> no puts.
<Papierkorb> display already writes
<dgarstang> ugh
xall_ has quit [Ping timeout: 248 seconds]
Derperperd has joined #ruby
saslam has quit [Ping timeout: 255 seconds]
bweston92 has quit [Quit: Connection closed for inactivity]
<dgarstang> Papierkorb: inline_policies.to_json.display ... same result
douglascorrea has joined #ruby
<dgarstang> Ruby.. only language I've seen that implicitly turns a variable into a statement based on a method suffixed at the end. Yeah, that's real clear
<Papierkorb> ...?
<Papierkorb> display takes `self` and #write's it to STDOUT
<Papierkorb> It's a really simple method
<dgarstang> Papierkorb: There's no statement in front of it
s2013 has joined #ruby
<Papierkorb> ..huh?
<dgarstang> Papierkorb: inline_policies is a variable
<Papierkorb> `puts` isn't a statement either
<Papierkorb> it's a normal method
<Papierkorb> in fact, statements are hard to find in ruby.
unshadow has quit [Ping timeout: 260 seconds]
<dgarstang> Papierkorb: in any case, the weirdness of ruby still won't print it as a json object
<Papierkorb> And something is overwriting your display method.
<Papierkorb> ["foo"].to_json.display
<Papierkorb> Works as intended
ecuanaso has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<dgarstang> It's ruby. Of course it is. Thanks anyway.
<apeiros> "json object"
<Papierkorb> Giving: ["foo"]=> nil Note that the =>nil is output from pry on my end.
antgel_ has quit [Ping timeout: 276 seconds]
aganov has quit [Remote host closed the connection]
<dgarstang> I know. I'll just remove all the escapes by hand. That will take about an hour
<Papierkorb> ...
unshadow has joined #ruby
blackmes1 has joined #ruby
<Papierkorb> Yeah because writing STDOUT.write(asdasd) is really hard as workaround
<Papierkorb> But please, rage on
<apeiros> you did notice that they have a string with quotes in them in the json, yes?
<Papierkorb> And waste your time while blaming ruby
<apeiros> so no wonder they're escaped…
<dgarstang> apeiros: No. I have no idea
<Papierkorb> apeiros: Lol that I didn't see.
ecuanaso has joined #ruby
alxs has joined #ruby
<apeiros> dgarstang: that much I gathered from your rant :-p
<dgarstang> Papierkorb: STDOUT.write(inline_policies) = same result
<Papierkorb> dgarstang: you're putting JSON into JSON. What do you expect? Ruby magically knowing that the string in the object is in fact is another JSON object?
<Papierkorb> dgarstang: Working as intended. Fix your input.
<Papierkorb> It's GIGO. Garbage In, Garbage Out.
xall_ has joined #ruby
<dgarstang> If I'm printing json as json, you'd expect puts inline_policies to work, but it doesn't
despai has joined #ruby
hobodave has joined #ruby
<Papierkorb> ... huh? JSON as JSON?
<dgarstang> "you're putting JSON into JSON"
alexar has joined #ruby
<apeiros> Papierkorb: I wish you good luck. I don't think I'd have the patience.
workmad3 has joined #ruby
<Papierkorb> a JSON serialized object as string into a JSON object dgarstang
<dgarstang> Ok, well we've tried several methods and none seem to work, so thanks anyway
<Papierkorb> apeiros: Ah it's entertaining seeing people raging on and blaming ruby for things their shitty input is at fault at
<havenwood> dgarstang: JSON is a serialization format. You serialize Ruby to a JSON String. It's just a regular String at that point, a String that has JSON in it. If you deserialize your JSON and it has more JSON in it, you're in JSON inception, on level deep. Don't forget to bring a top.
<baweaver> be nice
username_ has joined #ruby
<apeiros> >> require 'json'; puts {'key' => '"value " with " quotes"'}.to_json
<ruby[bot]> apeiros: # => /tmp/execpad-f1b33ae96455/source-f1b33ae96455:2: syntax error, unexpected =>, expecting '}' ...check link for more (https://eval.in/722363)
<apeiros> >> require 'json'; puts({'key' => '"value " with " quotes"'}.to_json)
<ruby[bot]> apeiros: # => {"key":"\"value \" with \" quotes\""} ...check link for more (https://eval.in/722364)
<apeiros> the quotes are both correct and expected
<havenwood> >> require 'json'; JSON.parse({[].to_json => {}.to_json}.to_json) # <- dgarstang consider this
<ruby[bot]> havenwood: # => {"[]"=>"{}"} (https://eval.in/722365)
jshjsh has joined #ruby
<apeiros> *the backlashes
avril14th has joined #ruby
<apeiros> of course you can remove the backslashes and turn your valid json into invalid json
<apeiros> and then I guess you can continue to blame ruby for not parsing broken json
Macaveli has quit [Quit: Textual IRC Client: www.textualapp.com]
joevandy1 is now known as joevandyk
<dgarstang> havenwood: I would if I could understand it
UserJosh has quit [Ping timeout: 240 seconds]
<havenwood> dgarstang: So if you have this JSON: "{\"[]\":\"{}\"}"
<havenwood> dgarstang: And deserialize it, you'll end up with this String: "{\"[]\":\"{}\"}"
<havenwood> dgarstang: bad paste
<havenwood> dgarstang: You'll end up with this Hash: {"[]"=>"{}"}
avril14th has quit [Remote host closed the connection]
slappy16 has joined #ruby
<havenwood> dgarstang: Try it in your REPL (irb or pry)
<havenwood> dgarstang: What is the key and value in the resulting, deserialized Hash?
<havenwood> dgarstang: Both JSON!
nettoweb has joined #ruby
<havenwood> dgarstang: It's serialized more than one level deep. That might be a mistake in your case.
<chrisarcand> Does anyone know if the Octokit gem is considered threadsafe?
<apeiros> chrisarcand: does the documentation state that it is threadsafe?
nankyokusei has joined #ruby
UserJosh has joined #ruby
<chrisarcand> I cannot find any information regarding threadsafety (be it safe or not) about the gem anywhere, hence my asking here. Hoping for someone who's used it who might have experienced issues or not.
<baweaver> Most Ruby is not written in such a manner
<apeiros> rule of thumb is: if it is threadsafe, it's documented as such
<baweaver> so unless explicitly stated it's probably not
<havenwood> dgarstang: If you go on and deserialize the key and value, the key is an Array and the Value a hash. Just examples, but keep in mind you can serialize to JSON, then serialize the resulting String to JSON again. It's confusing if you do.
<apeiros> otherwise it's almost certainly not
alexar has quit [Ping timeout: 276 seconds]
<havenwood> dgarstang: Make any sense?
Guest57620 is now known as ged
<apeiros> note: that does not mean that it's unusable in a threaded application
<baweaver> It more of means proceed with caution
ged is now known as Guest16853
<chrisarcand> Fair. Thanks for the input.
jshjsh has quit [Ping timeout: 256 seconds]
tercenya has quit [Remote host closed the connection]
<havenwood> dgarstang: Or maybe this is a better example: ''".to_json.to_json.to_json
nankyokusei has quit [Ping timeout: 248 seconds]
tercenya has joined #ruby
<havenwood> >> require 'json'; ''.to_json.to_json.to_json # dgarstang
<ruby[bot]> havenwood: # => "\"\\\"\\\\\\\"\\\\\\\"\\\"\"" (https://eval.in/722375)
yehowyada has joined #ruby
aufi has joined #ruby
unshadow has quit [Ping timeout: 240 seconds]
cibs has quit [Ping timeout: 248 seconds]
StoneCypher has joined #ruby
marxarelli has joined #ruby
unshadow has joined #ruby
nhhc has quit [Quit: Leaving]
cibs has joined #ruby
nanoz has joined #ruby
<dgarstang> havenwood: nah, thanks anyway
<havenwood> dgarstang: I'd be happy to try to explain in more detail if you're interested. Or if you're tired of serialization that's okay too. :-)
xall_ has quit [Ping timeout: 240 seconds]
<dgarstang> havenwood: I'm tired of ruby, :) but thanks anyway
workmad3 has quit [Ping timeout: 260 seconds]
troulouliou_div2 has quit [Quit: Leaving]
alan_w has joined #ruby
yehowyada has quit [Quit: Textual IRC Client: www.textualapp.com]
Rodya_ has joined #ruby
Technodrome has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
andikr has quit [Remote host closed the connection]
jsrn_ has quit [Read error: Connection reset by peer]
tercenya has quit [Remote host closed the connection]
<al2o3-cr> dgarstang: you've hurt rubys feelings
tercenya has joined #ruby
dionysus69 has joined #ruby
anisha has joined #ruby
blackmes1 has quit [Ping timeout: 240 seconds]
cdg has quit [Remote host closed the connection]
cdg has joined #ruby
crankharder has quit [Remote host closed the connection]
markholmes has joined #ruby
SesMan has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
harai_ has joined #ruby
alxs has quit [Ping timeout: 255 seconds]
[Butch] has joined #ruby
<unshadow> XD
cajone has joined #ruby
harai_ has quit [Ping timeout: 245 seconds]
[Butch] has quit [Client Quit]
slappy16 has quit [Quit: Leaving.]
LoneHerm_ has joined #ruby
jaegerca has joined #ruby
[Butch] has joined #ruby
conta has quit [Ping timeout: 240 seconds]
LoneHerm_ has quit [Ping timeout: 240 seconds]
raul782 has quit [Remote host closed the connection]
raul782 has joined #ruby
duderonomy has quit [Ping timeout: 256 seconds]
Rodya_ has quit [Remote host closed the connection]
milardovich has joined #ruby
tomphp has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
alexar has joined #ruby
Beams has quit [Quit: .]
`tim` has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
MrPunkin has joined #ruby
redhedded1 has joined #ruby
montanonic has joined #ruby
despai has quit [Quit: This computer has gone to sleep]
<MrPunkin> Is there a shorter way to write x = (x || 0) + y? Basically looking to use the x += y where x may not have been set yet.
flying has quit []
<apeiros> MrPunkin: you may not like the answer - the shorter way is to ensure x is set ;-)
<apeiros> it's also a good practice
mikecmpbll has quit [Ping timeout: 240 seconds]
despai has joined #ruby
<MrPunkin> Sure, makes sense. I was just hoping for something more shorthand
<MrPunkin> :)
<Papierkorb> MrPunkin: I agree with apeiros, but as far your snippet goes, that's as short as it gets
xen0fon has joined #ruby
drptbl has quit [Quit: My MAC has gone to sleep. zZz..]
* baweaver types maniacally
<apeiros> baweaver scares me
<baweaver> x = x.to_i + y
<baweaver> >> x = nil; x = x.to_i + y
<ruby[bot]> baweaver: # => undefined local variable or method `y' for main:Object (NameError) ...check link for more (https://eval.in/722403)
<baweaver> ...
<baweaver> >> x, y = nil, 5; x = x.to_i + y
<ruby[bot]> baweaver: # => 5 (https://eval.in/722404)
<baweaver> >> x, y = 3, 5; x = x.to_i + y
<ruby[bot]> baweaver: # => 8 (https://eval.in/722405)
<baweaver> :D
<Papierkorb> >> x, y = 3.5, 6; x = x.to_i + y # But beware
<baweaver> touche.
synthroid has quit [Remote host closed the connection]
<baweaver> Do you even auth bro?
<MrPunkin> Right, and since I’m working with currencies that could be a potential issue. I’ll stick with just making sure it’s set.
<baweaver> >> x, y = 3, 5; x = x.to_f + y
<ruby[bot]> baweaver: # => 8.0 (https://eval.in/722406)
<baweaver> though floats and currencies....
rcoutinho has joined #ruby
<rcoutinho> Theres a way to see source code from method typed on IRB?
<baweaver> There is in Pry
<baweaver> not sure on IRB but I don't think so.
<rcoutinho> baweaver: thanks..
catphish has quit [Quit: Leaving]
dc4 has quit [Ping timeout: 248 seconds]
frozengeek__ has quit [Quit: frozengeek__]
smswmedia has quit [Ping timeout: 240 seconds]
alxs has joined #ruby
enterprisey has quit [Ping timeout: 240 seconds]
Pumukel has quit [Ping timeout: 240 seconds]
[[thufir]] has joined #ruby
aufi has quit [Quit: Leaving]
BackEndCoder has quit [Excess Flood]
BackEndCoder has joined #ruby
hahuang61 has joined #ruby
mikeXsh has joined #ruby
patarr has joined #ruby
s2013 has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
patarr has quit [Client Quit]
Guest16853 is now known as ged
ged is now known as Guest62888
[[thufir]] has quit [Remote host closed the connection]
cibs has quit [Ping timeout: 256 seconds]
milardovich has quit [Read error: Connection reset by peer]
milardov_ has joined #ruby
cibs has joined #ruby
Snowy has quit [Remote host closed the connection]
Snowy has joined #ruby
`tim` has joined #ruby
alexar has quit [Remote host closed the connection]
tercenya has quit [Remote host closed the connection]
alexar has joined #ruby
alexar has quit [Remote host closed the connection]
tercenya has joined #ruby
alexar has joined #ruby
Snowy has quit [Ping timeout: 264 seconds]
anisha has quit [Quit: This computer has gone to sleep]
benlieb has quit [Quit: benlieb]
weaksauce has quit [Quit: Textual IRC Client: www.textualapp.com]
__Yiota has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
alexar has quit [Remote host closed the connection]
alexar has joined #ruby
cdg has quit [Ping timeout: 256 seconds]
mikecmpbll has joined #ruby
alxs has quit [Ping timeout: 255 seconds]
csk has quit [Ping timeout: 276 seconds]
UserJosh is now known as JoshS
splud has joined #ruby
<antoniobeyah> if I have a directory structure: fruits/<fruit_group>/<fruit_type>/<fruit_name> is there an easy way to generate that in table form?
<baweaver> define table form
<antoniobeyah> | fruit group | fruit type | fruit name |
<antoniobeyah> rows and columns
<baweaver> There is a potentially easy one
<baweaver> Look into directory globbing
<apeiros> antoniobeyah: you can use Dir.glob + String#split
<baweaver> yep, and split on /
<baweaver> for the file name
Lord_of_Life has quit [Excess Flood]
milardov_ has quit [Remote host closed the connection]
<antoniobeyah> cool, are there any libraries that will print a table?
Lord_of_Life has joined #ruby
<antoniobeyah> from that data
milardovich has joined #ruby
<baweaver> CSV probably has some stuff
LoneHerm_ has joined #ruby
<antoniobeyah> thanks, I'll check it out
<apeiros> if you just want an ascii table - there are gems
<apeiros> it's not too difficult to do with plain printf, though
pilne has joined #ruby
milardovich has quit [Ping timeout: 240 seconds]
<antoniobeyah> true, i just didn't want to deal with it ;)
LoneHerm_ has quit [Ping timeout: 240 seconds]
<apeiros> gem then. I'm sure ruby-toolbox has something for you :)
__Yiota has joined #ruby
nvms has joined #ruby
nvms has quit [Max SendQ exceeded]
gusrub has joined #ruby
nvms has joined #ruby
_djbkd has joined #ruby
whathappens has joined #ruby
nofxx has quit [Remote host closed the connection]
Xeago has quit [Ping timeout: 240 seconds]
nofxx has joined #ruby
nofxx has joined #ruby
nofxx has quit [Changing host]
nvms has quit [Client Quit]
Xeago has joined #ruby
benlieb has joined #ruby
unshadow_ has joined #ruby
Technodrome has joined #ruby
Technodrome has joined #ruby
Technodrome has quit [Changing host]
diego_ has joined #ruby
gusrub has quit []
unshadow has quit [Ping timeout: 255 seconds]
biberu has joined #ruby
milardov_ has joined #ruby
<Fetch> I'm running into GH-1513 with Ruby 2.4.0. The fix has been committed to trunk, how long and what does the process look like to get that added to the 2.4 branch for 2.4.1?
synthroid has joined #ruby
Guest22916 is now known as rprimus
alphor has quit [Quit: Bye!]
benlieb has quit [Quit: benlieb]
alphor has joined #ruby
__Yiota has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
frozengeek__ has joined #ruby
duderonomy has joined #ruby
raul782 has quit [Remote host closed the connection]
nankyokusei has joined #ruby
renchan has quit [Quit: Leaving...]
gusrub has joined #ruby
benlieb has joined #ruby
nankyokusei has quit [Ping timeout: 240 seconds]
gusrub has quit [Client Quit]
benlieb has quit [Client Quit]
__Yiota has joined #ruby
amclain has joined #ruby
gusrub has joined #ruby
tomphp has joined #ruby
gusrub has quit [Client Quit]
dc4 has joined #ruby
harfangk has quit [Ping timeout: 252 seconds]
gusrub has joined #ruby
tolerablyjake has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
mikecmpbll has quit [Quit: inabit. zz.]
Technodrome has quit [Read error: Connection reset by peer]
milardov_ has quit [Read error: Connection reset by peer]
milardovich has joined #ruby
milardovich has quit [Remote host closed the connection]
nettoweb has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
csk has joined #ruby
harfangk has joined #ruby
minimalism has joined #ruby
nettoweb has joined #ruby
walterheck has joined #ruby
nvms has joined #ruby
ramfjord has joined #ruby
ta has joined #ruby
rcoutinho has quit [Quit: http://www.kiwiirc.com/ - A hand crafted IRC client]
dionysus69 has quit [Remote host closed the connection]
tomphp has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
amclain has quit [Quit: Leaving]
Guest62888 is now known as ged
ged is now known as Guest94565
tomphp has joined #ruby
tolerablyjake has joined #ruby
alxs has joined #ruby
frozengeek__ has quit [Quit: frozengeek__]
nettoweb has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
tomphp has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
aryaching has joined #ruby
SeepingN has joined #ruby
amclain has joined #ruby
patarr has joined #ruby
nvms has quit [Quit: This computer has gone to sleep]
frozengeek__ has joined #ruby
frozengeek__ has quit [Remote host closed the connection]
raul782 has joined #ruby
nvms has joined #ruby
tercenya has quit [Remote host closed the connection]
tercenya has joined #ruby
zeroDi has joined #ruby
enterprisey has joined #ruby
saslam has joined #ruby
alexar has quit [Remote host closed the connection]
unshadow has joined #ruby
raul782 has quit [Read error: Connection reset by peer]
balazs has joined #ruby
unshadow_ has quit [Ping timeout: 276 seconds]
alexar has joined #ruby
nvms has quit [Quit: This computer has gone to sleep]
Snowy has joined #ruby
frozengeek__ has joined #ruby
jhack has joined #ruby
tomphp has joined #ruby
cajone has quit [Ping timeout: 256 seconds]
vnzvg has joined #ruby
James123 has joined #ruby
marxarelli is now known as marxarelli|afk
<James123> In ruby is there something equivalent to this: x = 0 if foo == "bar" else 1 ?
xen0fon has quit [Quit: xen0fon]
<Zarthus> >> x = "foo" == "bar" ? 0 : 1
<ruby[bot]> Zarthus: # => 1 (https://eval.in/722436)
Xentil has quit [Quit: http://quassel-irc.org - Chat comfortably. Anywhere.]
drptbl has joined #ruby
<James123> thank you :)
<Zarthus> I think ruby only supports one-hand operations like that (e.g. x = 0 if foo == "bar") otherwise.
<elomatreb> No, else works too. https://eval.in/722440
<Zarthus> oh, neat.
<Zarthus> does it work on one line?
<Zarthus> nope, needs a ;
<Papierkorb> >> x = if true then 1 else 0 end
<ruby[bot]> Papierkorb: # => 1 (https://eval.in/722445)
<elomatreb> Welp
Macrobiotic has quit [Quit: Connection closed for inactivity]
<Zarthus> oh, missed the then :P
<Papierkorb> Zarthus: you may need a `then` for a one-liner, though that's not really ruby-ish
<Zarthus> Papierkorb, one could say it is ... rubbish
<Papierkorb> Zarthus: The ternary operator is much more common
drptbl has quit [Quit: My MAC has gone to sleep. zZz..]
<Zarthus> yeah, the ternary operator is pretty widespread knowledge among programmers of any language.
benlieb has joined #ruby
aswen has joined #ruby
ocbtec has joined #ruby
marxarelli|afk is now known as marxarelli
byte512 has quit [Ping timeout: 260 seconds]
alexar has quit [Remote host closed the connection]
<djellemah> >> vals = %i|one two tre kvt|; case :one when *vals then :yay end # uncommon one-liners
<ruby[bot]> djellemah: # => :yay (https://eval.in/722447)
alexar has joined #ruby
tomphp has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
ramfjord has quit [Ping timeout: 240 seconds]
drptbl has joined #ruby
nowhere_man has joined #ruby
tomphp has joined #ruby
psychicist__ has quit [Read error: Connection reset by peer]
blackmes1 has joined #ruby
`tim` has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
volkerh_de has quit [Quit: volkerh_de]
duckpuppy has joined #ruby
alexar has quit [Ping timeout: 240 seconds]
Cohedrin_ has joined #ruby
duckpupp1 has quit [Ping timeout: 245 seconds]
Cohedrin_ has quit [Client Quit]
ecuanaso has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
Cohedrin_ has joined #ruby
kht has joined #ruby
ifctj has joined #ruby
drptbl has quit [Quit: My MAC has gone to sleep. zZz..]
ecuanaso has joined #ruby
hightower3 has joined #ruby
hoov has quit [Quit: Leaving]
LoneHerm_ has joined #ruby
last_staff has joined #ruby
benlieb has quit [Quit: benlieb]
hightower2 has quit [Ping timeout: 240 seconds]
benlieb has joined #ruby
benlieb has quit [Client Quit]
hightower2 has joined #ruby
alexar has joined #ruby
benlieb has joined #ruby
cajone has joined #ruby
hightower3 has quit [Ping timeout: 240 seconds]
LoneHerm_ has quit [Ping timeout: 255 seconds]
diego_ has quit [Quit: Leaving]
JeanCarloMachado has quit [Ping timeout: 248 seconds]
valkyr2e has quit [Ping timeout: 256 seconds]
alexar has quit [Ping timeout: 248 seconds]
sebastia_ has quit [Read error: Connection reset by peer]
sebastiansier has joined #ruby
Guest94565 is now known as ged
ged is now known as Guest65325
harai_ has joined #ruby
douglascorrea has quit [Remote host closed the connection]
benlieb has quit [Quit: benlieb]
JoshS has quit [Quit: Leaving]
Devalo has joined #ruby
ecuanaso has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
douglascorrea has joined #ruby
benlieb has joined #ruby
bmurt has joined #ruby
Devalo_ has joined #ruby
ionte has quit [Ping timeout: 256 seconds]
<James123> Can someone explain the following: add_quotes = -> x{"'#{x}'"} (I get the "'#{x}'" bit)
ta__ has joined #ruby
ldnunes has quit [Quit: Leaving]
markholmes has quit [Ping timeout: 255 seconds]
leah2 has quit [Ping timeout: 255 seconds]
hightower3 has joined #ruby
Devalo has quit [Ping timeout: 240 seconds]
ionte has joined #ruby
benlieb has quit [Ping timeout: 276 seconds]
ta has quit [Ping timeout: 240 seconds]
douglascorrea has quit [Ping timeout: 256 seconds]
valkyr2e has joined #ruby
<Papierkorb> James123: maybe easier to read (ungolfed): add_quotes = ->(x){ "'#{x}'" }
benlieb has joined #ruby
hightower2 has quit [Ping timeout: 276 seconds]
<Papierkorb> James123: creates a lambda which takes `x` as only argument, and returns a string which interpolates that x between single-quotes
<James123> Papierkorb, thank you for the explanation :)
blackbombay has quit [Ping timeout: 264 seconds]
nowhere_man has quit [Ping timeout: 248 seconds]
raul782 has joined #ruby
vnzvg has quit [Ping timeout: 255 seconds]
rippa has quit [Quit: {#`%${%&`+'${`%&NO CARRIER]
tomphp has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
alexar has joined #ruby
<FrankD> anyone know of ANY Ruby apps with a GUI (wxWidgets, GTK, QT, Win32 and successors) ?
alexar has quit [Remote host closed the connection]
tomphp has joined #ruby
<mnemon> I've made a few, just because :D But no, never ran into anything that was actually useful.
drptbl has joined #ruby
raul782 has quit [Read error: Connection reset by peer]
Devalo_ has quit [Remote host closed the connection]
last_staff has quit [Read error: Connection reset by peer]
`tim` has joined #ruby
last_staff has joined #ruby
dionysus69 has joined #ruby
kht has quit [Ping timeout: 248 seconds]
hightower2 has joined #ruby
skweek has joined #ruby
tomphp has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
despai has quit [Quit: Leaving]
workmad3 has joined #ruby
drptbl has quit [Quit: My MAC has gone to sleep. zZz..]
hightower3 has quit [Ping timeout: 240 seconds]
ecuanaso has joined #ruby
raul782 has joined #ruby
ramfjord has joined #ruby
StoneCypher has quit [Ping timeout: 264 seconds]
veduardo has joined #ruby
blackbombay has joined #ruby
tomphp has joined #ruby
ecuanaso has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
raul782 has quit [Read error: Connection reset by peer]
harfangk has quit [Quit: Textual IRC Client: www.textualapp.com]
nankyokusei has joined #ruby
ramfjord has quit [Ping timeout: 240 seconds]
hightower3 has joined #ruby
ecuanaso has joined #ruby
gloscombe has joined #ruby
blackbombay has quit [Ping timeout: 240 seconds]
marxarelli has quit [Quit: Textual IRC Client: www.textualapp.com]
benlieb has quit [Quit: benlieb]
Snowy has quit [Remote host closed the connection]
nankyokusei has quit [Ping timeout: 256 seconds]
hightower2 has quit [Ping timeout: 240 seconds]
Snowy has joined #ruby
nanoz has quit [Read error: Connection reset by peer]
<djellemah> FrankD: I did a couple with gtk years ago. And one with qt that I still use quite often for myself.
workmad3 has quit [Ping timeout: 276 seconds]
marxarelli has joined #ruby
Pumukel has joined #ruby
gajus has quit [Quit: Connection closed for inactivity]
Pumukel has quit [Remote host closed the connection]
benlieb has joined #ruby
Alina-malina has quit [Ping timeout: 245 seconds]
tomphp has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
duckpupp1 has joined #ruby
Snowy has quit [Ping timeout: 264 seconds]
leah2 has joined #ruby
Pumukel has joined #ruby
duckpuppy has quit [Ping timeout: 264 seconds]
ramfjord has joined #ruby
douglascorrea has joined #ruby
danieldocki has quit [Quit: Linkinus - http://linkinus.com]
tomphp has joined #ruby
Alina-malina has joined #ruby
squ has quit [Ping timeout: 245 seconds]
Pumukel has quit [Ping timeout: 260 seconds]
spacheco has joined #ruby
spacheco has quit [Client Quit]
Pumukel has joined #ruby
StoneCypher has joined #ruby
douglascorrea has quit [Remote host closed the connection]
<FrankD> anything i can take a look at?
alexar has joined #ruby
Pumukel has quit [Ping timeout: 255 seconds]
Pumukel has joined #ruby
ramfjord_ has joined #ruby
vnzvg has joined #ruby
unshadow has quit [Ping timeout: 258 seconds]
ramfjord has quit [Ping timeout: 240 seconds]
tyang_ has joined #ruby
patarr has quit [Ping timeout: 252 seconds]
alexar has quit [Ping timeout: 255 seconds]
<djellemah> Wow, I still have the source :-O I'm going to sleep now, I'll put it somewhere tomorrow. Will you be around?
unshadow has joined #ruby
hightower2 has joined #ruby
tyang has joined #ruby
workmad3 has joined #ruby
<FrankD> yea
Pumukel has quit [Ping timeout: 255 seconds]
<FrankD> i may as well have a keyboard glued to my hands :D
kht has joined #ruby
<FrankD> thanks :) good night
<djellemah> ;-)
nofxx has quit [Remote host closed the connection]
tyang__ has quit [Ping timeout: 256 seconds]
hightower3 has quit [Ping timeout: 240 seconds]
nofxx has joined #ruby
tyang_ has quit [Ping timeout: 256 seconds]
Alina-malina has quit [Changing host]
Alina-malina has joined #ruby
hightower3 has joined #ruby
workmad3 has quit [Ping timeout: 248 seconds]
SteenJobs_ has joined #ruby
hightower2 has quit [Ping timeout: 264 seconds]
SteenJobs_ has quit [Client Quit]
cdg has joined #ruby
_djbkd has quit [Quit: My people need me...]
ur5us has joined #ruby
marxarelli is now known as marxarelli|afk
tomphp has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
ecuanaso has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
tomphp has joined #ruby
workmad3 has joined #ruby
Guest65325 is now known as ged
tomphp has quit [Client Quit]
ged is now known as Guest10208
csk has quit [Quit: Bye]
marxarelli|afk is now known as marxarelli
marxarelli has quit [Quit: Textual IRC Client: www.textualapp.com]
Devalo has joined #ruby
walterheck has quit [Ping timeout: 240 seconds]
vnzvg has quit [Ping timeout: 240 seconds]
veduardo has quit [Ping timeout: 248 seconds]
alexar has joined #ruby
kht has quit [Ping timeout: 240 seconds]
synthroid has quit []
Devalo has quit [Ping timeout: 240 seconds]
dc4 has quit [Ping timeout: 258 seconds]
tyang has quit [Ping timeout: 256 seconds]
tomphp has joined #ruby
marxarelli has joined #ruby
workmad3 has quit [Ping timeout: 252 seconds]
workmad3 has joined #ruby
Xav_ has joined #ruby
raul782 has joined #ruby
skweek has quit [Ping timeout: 255 seconds]
ifctj has quit [Ping timeout: 240 seconds]
Xav__ has joined #ruby
gloscombe has quit [Quit: gloscombe]
gloscombe has joined #ruby
Xavaier has quit [Ping timeout: 252 seconds]
workmad3 has quit [Ping timeout: 240 seconds]
Xavaier has joined #ruby
Pumukel has joined #ruby
raul782 has quit [Read error: Connection reset by peer]
Xav_ has quit [Ping timeout: 240 seconds]
_djbkd has joined #ruby
hutch34 has joined #ruby
duckpupp1 has quit [Ping timeout: 240 seconds]
rfoust has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
Xav__ has quit [Ping timeout: 240 seconds]
Ishido has quit [Remote host closed the connection]
_geoff_ has quit [Ping timeout: 248 seconds]
[Butch] has quit [Quit: I'm out . . .]
TomyLobo has quit [Ping timeout: 255 seconds]
douglascorrea has joined #ruby
douglascorrea has quit [Remote host closed the connection]
_geoff has joined #ruby
douglascorrea has joined #ruby
eam_ is now known as eam
d^sh has quit [Quit: ZNC 1.6.1 - http://znc.in]
d^sh has joined #ruby
LoneHermit has joined #ruby
<frewsxcv_old> Anyone know if it's possible to do somehting like this:
LoneHermit has quit [Ping timeout: 260 seconds]
alexar has quit [Remote host closed the connection]
<frewsxcv_old> @some_variable ||= { foo = some_expensive_calculation(); foo }
stroncode has quit [Quit: Lost terminal]
<frewsxcv_old> Where { and } are delimiters of a block that return an expression
<SpComb> what do you need the block for?
<frewsxcv_old> In reality, it's a block that's like 10 lines long
benlieb has quit [Quit: benlieb]
<frewsxcv_old> So it only executes if @some_variable is false-y
Xav_ has joined #ruby
whathappens has quit [Remote host closed the connection]
<Papierkorb> frewsxcv_old: You want to memoize the result of an expensive calculation? I suggest moving the block into its own method, so the line becomes a simple `@foo ||= something_expensive`
whathappens has joined #ruby
jackjackdripper has joined #ruby
<frewsxcv_old> So then the answer is "it's not possible" ?
<Papierkorb> frewsxcv_old: Hard to tell, could you please give us more context what you'
<frewsxcv_old> I know ways to get around it, I'm just wondering if Ruby has some way to accomplish what I said
<Papierkorb> *what you're trying to accomplish=?
<frewsxcv_old> What other context do you need?
Xavaier has quit [Ping timeout: 240 seconds]
Xav_ is now known as Xavaier
<frewsxcv_old> In Rust, you can do something like: let x = { some_function(); 5 };
lucz has joined #ruby
nvms has joined #ruby
<frewsxcv_old> Not that you'd want to with this simple of an example, but all blocks are expressions
d^sh has quit [Ping timeout: 255 seconds]
<lucz> hey folks, I can't actually code in ruby and I'm just wondering how to run this script? https://github.com/discourse/discourse/blob/master/script/import_scripts/bbpress.rb
whathapp_ has joined #ruby
whathappens has quit [Read error: Connection reset by peer]
blackwind_123 has quit [Ping timeout: 258 seconds]
nvms has quit [Client Quit]
<Papierkorb> frewsxcv_old: I don't know Rust, if you're trying to memoize that you called some expensive method already, it won't get much shorter than what you have. Though if you have a 10 line begin ... end block there, I'd still move it into its own method
d^sh has joined #ruby
dionysus69 has quit [Ping timeout: 240 seconds]
blackwind_123 has joined #ruby
<frewsxcv_old> Darn, that's unfortunate. I don't see the value in creating another method for this, unless it was just a dummy internal function
cdg has quit [Remote host closed the connection]
<frewsxcv_old> if defined? @some_variable; @some_variable; else; some_expensive_stuff(); end
<frewsxcv_old> Even that seems nicer than a new method
vnzvg has joined #ruby
Zamyatin has joined #ruby
<Radar> @some_variable ||= some_expensive_stuff ?
cdg has joined #ruby
<frewsxcv_old> Actually, it'd be:
<Radar> oh I see that Papierkorb suggested that already.
vnzvg has quit [Client Quit]
<frewsxcv_old> @some_variable = if defined? @some_variable; @some_variable; else; some_expensive_stuff(); end; @some_variable
<Radar> frewsxcv_old: You've written ||= in the longest way I know.
alexar has joined #ruby
<frewsxcv_old> Right, but I want to keep the logic in the method
<Papierkorb> I'd wager that even a ternary operator would be nicer, though if @some_variable can't be legitimately be nil or false, you should prefer the ||= version
millerti has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
flvszch50 has joined #ruby
<Papierkorb> frewsxcv_old: And the added value of having it in its own method would be to increase readability. As this is (also) personal taste, won't talk you into doing it. I guess you can make a case that if the method really just returns a memoized @some_variable then it's fine
willdrew_ has joined #ruby
willdrew_ has quit [Client Quit]
<Papierkorb> like `def foo; @foo ||= begin ... end; end`
__Yiota has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<frewsxcv_old> Oh, begin...end is what I was looking for
workmad3 has joined #ruby
benlieb has joined #ruby
<Papierkorb> Please note that using begin...end like that could be regarded as a hack frewsxcv_old
nvms has joined #ruby
<frewsxcv_old> For what reasons?
willdrew has quit [Ping timeout: 240 seconds]
alexar has quit [Ping timeout: 240 seconds]
flvzsch50 has quit [Ping timeout: 256 seconds]
jhack has quit [Quit: jhack]
<baweaver> begin ... end for cache is not uncommon
strongcode has joined #ruby
<baweaver> I've seen it done with lambdas as well
alexar has joined #ruby
dgarstang has quit [Ping timeout: 240 seconds]
<baweaver> the other common way is a memoize decorator: memoized def method_name ... end
chouhoulis has joined #ruby
`tim` has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
markholmes has joined #ruby
<frewsxcv_old> Are there pitfalls with begin...end? I don't see any issues with this
Pumukel has quit [Remote host closed the connection]
Pumukel has joined #ruby
<Papierkorb> frewsxcv_old: There aren't
workmad3 has quit [Ping timeout: 255 seconds]
jhack has joined #ruby
tvw has joined #ruby
chouhoul_ has quit [Ping timeout: 245 seconds]
MrPunkin has quit [Quit: MrPunkin]
nvms has quit [Quit: This computer has gone to sleep]
alxs has quit [Ping timeout: 255 seconds]
chouhoulis has quit [Ping timeout: 240 seconds]
biberu has quit []
nvms has joined #ruby
sballert has joined #ruby
<James123> Does anyone know a function that can normalise text e.g. russian / greek etc. characters to latin ones?
polishdub has quit [Quit: Leaving]
sballert has quit [Client Quit]
last_staff has quit [Quit: last_staff]
ecuanaso has joined #ruby
<zenspider> that sounds like a bad idea... can (should?) you even do that? very little overlap
<apeiros> James123: the term you have to look for is transliteration
nvms has quit [Client Quit]
<zenspider> destruction :P
sameerynho has joined #ruby
<lucz> can anyone help me to run this script? I'm not sure what I need to do to get it work (it's the mysql bit that throws me off) https://github.com/discourse/discourse/blob/master/script/import_scripts/bbpress.rb
<frewsxcv_old> "normalise" seems like a bad name for such a method
<lucz> I don't know ruby
choke has joined #ruby
Lord_of_Life has quit [Excess Flood]
enterprisey has quit [Ping timeout: 264 seconds]
lxsameer has quit [Ping timeout: 255 seconds]
dogweather has joined #ruby
kht has joined #ruby
Lord_of_Life has joined #ruby
Lord_of_Life has quit [Excess Flood]
Lord_of_Life has joined #ruby
sballert has joined #ruby
sballert has quit [Client Quit]
sballert has joined #ruby
jenrzzz has joined #ruby
benlieb has quit [Quit: benlieb]
sballert has quit [Remote host closed the connection]
<lucz> Radar: yeah I saw that, it's how I got to the script, but the mysql bit throws me off, the server is a new server, so would I need to run a mysql backup and restore it onto the server im running the script on?
Guest10208 is now known as ged
sballert has joined #ruby
<lucz> Radar: and then enter the local mysql authentication?
ged is now known as Guest16921
<Radar> lucz: I don't know past what I can google.
sballert has quit [Client Quit]
<lucz> Radar: okay mate, thanks anyways
Lord_of_Life has quit [Excess Flood]
<lucz> Radar: appreciate the help :)
<Papierkorb> Radar: OHAYO btw
<Radar> Papierkorb: OHAYO
ecuanaso has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
ecuanaso has joined #ruby
benlieb has joined #ruby
duderonomy has quit [Quit: Textual IRC Client: www.textualapp.com]
jenrzzz has quit [Ping timeout: 252 seconds]
ramortegui has quit [Quit: Ex-Chat]
KaitoDaumoto has joined #ruby
sameerynho has quit [Quit: WeeChat 1.6]
raul782 has joined #ruby
Puffball has quit [Remote host closed the connection]
Lord_of_Life has joined #ruby
redhedded1 has quit [Quit: Textual IRC Client: www.textualapp.com]
ruby328 has joined #ruby
<James123> apeiros: Thank you :)
ruby328 has quit [Client Quit]
Puffball has joined #ruby
raul782 has quit [Read error: Connection reset by peer]
teclator has quit [Ping timeout: 276 seconds]
teclator_ has joined #ruby
_djbkd has quit [Remote host closed the connection]
nankyokusei has joined #ruby
_djbkd has joined #ruby
ur5us has quit [Ping timeout: 258 seconds]
ddffg has quit [Ping timeout: 276 seconds]
tomphp has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
ur5us has joined #ruby
tercenya_ has joined #ruby
nankyokusei has quit [Ping timeout: 260 seconds]
_djbkd has quit [Ping timeout: 252 seconds]
aswen has quit [Quit: WeeChat 1.5]
JeanCarloMachado has joined #ruby
unshadow has quit [Ping timeout: 240 seconds]
nvms has joined #ruby
Lord_of_Life has quit [Excess Flood]
_djbkd has joined #ruby
ur5us has quit [Ping timeout: 240 seconds]
tercenya has quit [Ping timeout: 255 seconds]
nvms has quit [Client Quit]
unshadow has joined #ruby
tomphp has joined #ruby
saneax-_-|AFK is now known as saneax
ur5us has joined #ruby
tercenya_ has quit [Client Quit]
hobodave has quit [Quit: Computer has gone to sleep.]
Lord_of_Life has joined #ruby
kht has quit [Ping timeout: 252 seconds]
jenrzzz has joined #ruby
__Yiota has joined #ruby
alexar has quit [Remote host closed the connection]
jenrzzz has quit [Changing host]
jenrzzz has joined #ruby
mathys has quit [Quit: Leaving]
tomphp has quit [Ping timeout: 255 seconds]
Rodya_ has joined #ruby
James123 has quit [Quit: Lost terminal]
nadir is now known as notnadir
duderonomy has joined #ruby
Pumukel has quit []
ur5us has quit [Ping timeout: 248 seconds]
jhack has quit [Ping timeout: 240 seconds]
JeanCarloMachado has quit [Ping timeout: 255 seconds]
ur5us has joined #ruby
saslam has quit [Ping timeout: 248 seconds]
skweek has joined #ruby
CloCkWeRX has joined #ruby
benlieb has quit [Quit: benlieb]
JeanCarloMachado has joined #ruby
tercenya has joined #ruby
Azure has quit [Excess Flood]
username_ has quit [Ping timeout: 276 seconds]
alexar has joined #ruby
prestorium has quit [Quit: Leaving]
alexar_ has joined #ruby
whathapp_ has quit [Remote host closed the connection]
jhack has joined #ruby
Sammichmaker has quit [Ping timeout: 258 seconds]
<al2o3-cr> is it me or does String#unpack1 in (ruby 2.4.0) have unexpected behaviour with (H and B) directives?
<zenspider> haven't played with unpack1
chouhoulis has joined #ruby
<zenspider> how strange... why is there such a thing?
<zenspider> well... I've used unpack plenty... I'm guessing no shenanegans
<zenspider> esp if unpack1 is just unpack.first
Azure has joined #ruby
<al2o3-cr> pbkdf2_hmac_sha1("psk", "ssid", 1<<12, 1<<5).unpack('H*') #=> ["9be14a338b34ad9bf49325b3183d7ab71fac19b33ea372bdf106dbda18c0f20c"]
alexar has quit [Ping timeout: 276 seconds]
<al2o3-cr> unpack1 should just give "9be14a338b34ad9bf49325b3183d7ab71fac19b33ea372bdf106dbda18c0f20c" with using unpack('H*')[0]
teclator_ has quit [Remote host closed the connection]
<al2o3-cr> but unpack1 seems to just spit out random bytes of memory
whathappens has joined #ruby
<zenspider> UGH... that's... not good. give me a sec
<al2o3-cr> kk
chouhoulis has quit [Ping timeout: 255 seconds]
<zenspider> apparently this works on trunk
<zenspider> on 2.4.0.p0 I'm getting what looks like random memory traversal:
<al2o3-cr> hmm..
<zenspider> => "\x00\x00\x00\x00\x00\x00\x00\xD0\x195lQ\xFB\a\x00\xD0\x05\x00/versions/2.4.0/lib/ruby/2.4.0/x86_64-darwin16"
<al2o3-cr> yeah, weird isn't it
LoneHerm_ has joined #ruby
prawnzy has quit [Remote host closed the connection]
kht has joined #ruby
LoneHerm_ has quit [Ping timeout: 252 seconds]
millerti has joined #ruby
RickHull has joined #ruby
StoneCypher has quit [Ping timeout: 240 seconds]
<RickHull> what's a good way to interface with some kernel based C structures? for example, how can I determine from ruby whether a kernel timeval struct is a different size on 32 bit vs 64 bit platform?
Lord_of_Life has quit [Excess Flood]
nettoweb has joined #ruby
DoctorMonocular has joined #ruby
<DoctorMonocular> hey everyone
<RickHull> or, what the byte length is on "my" platform
Lord_of_Life has joined #ruby
sepp2k has quit [Read error: Connection reset by peer]
ur5us has quit [Ping timeout: 258 seconds]
alxs has joined #ruby
<DoctorMonocular> Weird requirement I'm hoping I can get help with. I solved it in a shitty way, hoping I can do better. I have a string that I want to gsub all vowels out of, and replace them with random numbers, so I use gsub to match a number, and use a block that generates a random number. The problem is that I want all the numbers to be unique within the string, so I need a way to track which replacements have been made
<DoctorMonocular> already so I don't duplicate any.
blackbombay has joined #ruby
<DoctorMonocular> The shitty solution I have is to store each random replacement in an array as part of the gsub block, then check at the end if all values in that array are unique. If not I try again, until all values are unique
<DoctorMonocular> the code is gross and inefficient and confusing, I hate it, even though it technically works
<RickHull> would you replace e.g. "a" with say 5 the first occurrence and then anything other than 5 (or another number already used) for the second?
<al2o3-cr> RickHull: can get that information with fiddle, it's in the ruby core
<DoctorMonocular> RickHull: yes
<RickHull> doing "random" substitutions while ensuring uniqueness for the generated numbers is an ugly problem
<RickHull> e.g. GUIDs and UUIDs
NeverTired has joined #ruby
alxs has quit [Ping timeout: 264 seconds]
<RickHull> DoctorMonocular, if space is important, then you can store which numbers have been used in a bitmap
mikecmpbll has joined #ruby
<RickHull> but this means lots of bitwise operations to register a newly used number
<RickHull> al2o3-cr, will check it out, thx
<al2o3-cr> np
<RickHull> and you'll want to limit your scope of available numbers
<RickHull> or you can just store your used numbers as hash keys (or set members)
<RickHull> DoctorMonocular, a more efficient way to have unpredictable substitutions without collision
<RickHull> would be to just generate a list of unique numbers ahead of time, and pop the stack as needed
<RickHull> rather than generate, test for collision, regenerate
<RickHull> for example, you could shuffle 1..100
Derperperd has quit [Ping timeout: 245 seconds]
<RickHull> though shuffling itself can be grossly inefficient
jhack has quit [Quit: jhack]
choke has quit [Quit: Textual IRC Client: www.textualapp.com]
<RickHull> but it's another way to look at the problem
Guest16921 is now known as ged
benlieb has joined #ruby
ged is now known as Guest3878
nowhere_man has joined #ruby
<DoctorMonocular> RickHull: nice, this gives me stuff to think about, thanks a lot
gloscombe has quit [Read error: Connection reset by peer]
frozengeek__ has quit [Quit: frozengeek__]
<RickHull> cheers :)
naprimer_2 has quit [Ping timeout: 258 seconds]
<RickHull> a simple (and inefficient) way to think about the bitmap version: an array of nil/non-nil
ur5us has joined #ruby
Derperperd has joined #ruby
<RickHull> if ary[new_num] # collision
<RickHull> as the array fills up (subject to your chosen upper bound) you will have more an more collisions
Ruby_Rocks_007 has joined #ruby
<RickHull> at some point you could just walk the array to find an empty slot
gloscombe has joined #ruby
<RickHull> but this starts being predictable
<RickHull> there should be an efficient way to generate a shuffled sequence of unique numbers
shinnya has joined #ruby
<RickHull> al2o3-cr, any pointers for how to get started with Fiddle? for example I have: https://git.kernel.org/cgit/linux/kernel/git/torvalds/linux.git/tree/include/uapi/linux/input.h#n26
naprimer_2 has joined #ruby
<RickHull> struct input_envent, includes timeval
<RickHull> do I need to load an object file? or can I just load this header?
<RickHull> and then I can find the transitive dependencies to resolve the full type of the struct?
<RickHull> (I am super rusty with C)
alibby has quit [Read error: No route to host]
nettoweb has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<al2o3-cr> RickHull: are you trying to get the size of the struct?
<RickHull> I suppose the object files are already linked and don't require looking at the filesystem
<RickHull> yeah
alibby1 has joined #ruby
<al2o3-cr> you'd have to create a fiddle c struct then and use the sizeof method
<RickHull> makes sense. not sure what the first couple statements would be to start using Fiddle
naprimer_3 has joined #ruby
<al2o3-cr> i'll give eg
<RickHull> dlopen $something
frozengeek__ has joined #ruby
naprimer_2 has quit [Ping timeout: 255 seconds]
DoctorMonocular has quit []
workmad3 has joined #ruby
jaegerca has quit [Remote host closed the connection]
cdg has quit [Ping timeout: 264 seconds]
<al2o3-cr> >> require 'fiddle/struct'; Fiddle::CStructBuilder.create(Fiddle::CStruct, *Fiddle::CParser.parse_struct_signature(["void *ptr", "int a"])).malloc
<ruby[bot]> al2o3-cr: # => uninitialized constant Fiddle::CParser (NameError) ...check link for more (https://eval.in/722589)
<al2o3-cr> >> require 'fiddle/struct'; require 'fiddle/cparser'; Fiddle::CStructBuilder.create(Fiddle::CStruct, *Fiddle::CParser.parse_struct_signature(["void *ptr", "int a"])).malloc
<ruby[bot]> al2o3-cr: # => undefined method `parse_struct_signature' for Fiddle::CParser:Module (NoMethodError) ...check link for more (https://eval.in/722590)
<RickHull> in this method -- I would be translating the linux files "by hand" into Fiddle commands?
<al2o3-cr> RickHull: oh yeah
<RickHull> i was hoping to just read some stuff off the system
<RickHull> i.e. my running linux system, assuming the source is on the filesystem in a known location
<al2o3-cr> not possible with fiddle then
<al2o3-cr> afaik anyway
redhedded1 has joined #ruby
<RickHull> hmmm
<RickHull> i would think it does -- that timeval is part of a C library on my system
<RickHull> fiddle should let me interact with it
benlieb has quit [Quit: benlieb]
FrankD has quit [Ping timeout: 240 seconds]
<al2o3-cr> not without creating it first
<RickHull> hm. i know i have to create some stuff like the wrapper