moeSeth has quit [Quit: Connection closed for inactivity]
akem has quit [Quit: Bye]
firstdayonthejob has quit [Ping timeout: 240 seconds]
mary5030 has joined #ruby
s00pcan has joined #ruby
dwfait has quit [Quit: dwfait]
devbug has quit [Ping timeout: 246 seconds]
_stu_ has joined #ruby
bubbys has quit [Ping timeout: 255 seconds]
bubbys has joined #ruby
hxegon has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
pwnd_nsfw has joined #ruby
_djbkd has quit [Quit: My people need me...]
millerti has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
djbkd has quit [Remote host closed the connection]
hxegon has joined #ruby
seitensei has joined #ruby
mary5030 has quit [Remote host closed the connection]
sigurding has quit [Quit: sigurding]
radgeRayden_ has joined #ruby
radgeRayden has quit [Read error: Connection reset by peer]
shanemcd has joined #ruby
seitensei has quit [Ping timeout: 260 seconds]
<Ox0dea>
Wait, what exactly is wrong with "subtractive" composition? I reckon samgerber might be onto something.
samgerber has quit [Remote host closed the connection]
samgerber has joined #ruby
<Ox0dea>
"Carving" some specific class out of the marble of some more general one seems an idea worth pursuing a little further.
snapcase has quit [Quit: Lost terminal]
<Ox0dea>
I suppose it's not the done thing by dint of its being difficult to do in most languages, but Ruby makes it very easy to remove behavior.
snapcase has joined #ruby
Rickmasta has joined #ruby
idefine has joined #ruby
sandstrom has quit [Quit: My computer has gone to sleep.]
CloCkWeRX has joined #ruby
idefine has quit [Ping timeout: 256 seconds]
hxegon has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
ruu_ has joined #ruby
idefine has joined #ruby
slucx has joined #ruby
Sucks has quit [Remote host closed the connection]
ruu_ has quit [Ping timeout: 240 seconds]
idefine has quit [Ping timeout: 272 seconds]
lipoqil has joined #ruby
decoponio has quit [Quit: Leaving...]
Sucks has joined #ruby
Sucks has quit [Read error: Connection reset by peer]
stannard has quit [Remote host closed the connection]
Sucks has joined #ruby
_stu_ has quit [Quit: _stu_]
joneshf-laptop has quit [Remote host closed the connection]
joneshf-laptop has joined #ruby
nerium has quit [Quit: nerium]
shanemcd has quit [Remote host closed the connection]
<YankNYC>
anyone else ever get an rmagick error when using it with carrierwave gem
marr has quit []
Sucks has quit [Read error: Connection reset by peer]
<YankNYC>
isn't an uploader a basic thing and as long as I use a white list for extensions and validations it's secure
<YankNYC>
and decouple it with a cdn
chouhoulis has joined #ruby
<YankNYC>
cause the carrierwave project has failing builds. other then that there's paperclip
pawnbox has joined #ruby
spacesebi has joined #ruby
RegulationD has joined #ruby
symm- has quit [Quit: Leaving...]
railswebdev has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
Sucks has joined #ruby
chouhoulis has quit [Ping timeout: 240 seconds]
shortdudey123 has quit [Read error: Connection reset by peer]
Waheedi has left #ruby [#ruby]
SCHAAP137 has joined #ruby
<Papierkorb>
YankNYC: and now, why is a whitelist for file extensions a "security feature"?
RegulationD has quit [Ping timeout: 256 seconds]
pawnbox has quit [Ping timeout: 256 seconds]
<Papierkorb>
That would be news to me
railswebdev has joined #ruby
<spacesebi>
Hey guys, really noob question here that I've been trying to find the answer to for the last hour: I wrote a script that parses ARGV values that contain quotation marks. Now that's all good and well while in my IDE / RubyMine, but if I call it using zsh/sh/any other shell, the quotes get removed. See http://pastie.org/10642444 for my minimised exam
<spacesebi>
ple.
<Papierkorb>
spacesebi: That's expected behaviour of your shell. Why are you looking for quotation marks?
Rickmasta has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
zast has joined #ruby
<Papierkorb>
spacesebi: If you want to really pass a quotation mark to a process from your shell, backslash-escape it
Sucks has quit [Read error: Connection reset by peer]
<adaedra>
spacesebi: replace your line 6 by `curl_args += "foo#{args}foo"`, you should see another difference.
<Papierkorb>
Another solution to really-pass-quotes would be putting them in "opposite" quotes. Double quotes in single quotes and vice-versa. Do note that double and single quotes have different behaviour, comparable to what ruby does with them
<spacesebi>
@papierkorb: does that mean that RubyMine does not produce standard behaviour?
<adaedra>
It may be just that it doesn't do shell escape.
<Papierkorb>
spacesebi: apparently. Whatever it does, it does not invoke your shell (or it escapes the quotes itself before invoking the shell)
<adaedra>
It's like the difference between system when using it with one string or multiple strings.
Rickmasta has joined #ruby
tomphp has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<spacesebi>
papierkorb: so far I am using regexes with the quotation marks to determine certain behaviours. Can you propose any alternative to how to to parse this without getting rid of the quotation marks? Unfortunately I am limited by external factors when it comes to the layout of the commands.
<hightower4>
Hey, did someone successfully read keyboard input from /dev/input/eventXX and if so, how?
<adaedra>
that's not the place for ads.
dsdeiz has quit [Changing host]
dsdeiz has joined #ruby
<Papierkorb>
spacesebi: xy problem. What problem are you trying to solve? The quotes are a symptom of your problem, but not the problem itself.
<adaedra>
hightower4: do you need to read from here? There are way better ways of obtaining keyboard input.
ohaibbq_ has joined #ruby
<adaedra>
more portables ones, furthermore.
<spacesebi>
papierkorb: sorry, that was horribly worded. I want to be able to parse commands in the style -H 'header files', -D 'data storage' and whatnot. I thought using a whole CLI parsing framework would be a bit overkill.
<Papierkorb>
spacesebi: Just use the OptionParser class. it's part of ruby, and can do that easily
<Radar>
Highly recommend using something like OptionParser or Thor for this.
<spacesebi>
papierkorb: thank you, I'll look into that.
<Papierkorb>
Radar: OOOOHHHHHAAAAYYYYOOOO
Vitor has quit [Ping timeout: 260 seconds]
<Radar>
Papierkorb: hey hey
<hightower4>
adaedra, well, I am reading input from a device that emulates a keyboard (letters, numbers, newline). How would you read it?
jottr_ has quit [Quit: WeeChat 1.3]
shortdudey123 has joined #ruby
ornerymoose has joined #ruby
idefine has joined #ruby
<adaedra>
hightower4: from stdin
<hightower4>
adaedra, it's not sending its events to X or the terminal
<hightower4>
(Because it must not act as a system keyboard)
<Papierkorb>
hightower4: is that some kind of PIN input keypad?
<hightower4>
It's a barcode scanner
<Papierkorb>
hightower4: Libusb
skarn has joined #ruby
<Papierkorb>
hightower4: but usually those things just send key presses to the computer. it's a feature. why not use it?
<hightower4>
Papierkorb, because it must not act as a system keyboard. I need to be able to open it as a separate device
hxegon has joined #ruby
blackmesa has quit [Ping timeout: 255 seconds]
idefine has quit [Ping timeout: 256 seconds]
<Papierkorb>
With LibUSB you can act as driver for a USB device (If it's not a USB device .. good luck?). Didn't go that far yet, but you may have to implement the USB HID protocol if you go that route. Never did anything with reading from /dev/input though.
<hightower4>
It must be comparably simple in Ruby, but I was trying with libevdev gem, and I wasn't getting good data out from it
spacesebi has joined #ruby
hxegon is now known as hxegon_AFK
<Papierkorb>
hightower4: "didn't work" ?
<Papierkorb>
hightower4: are you running the script as root?
dsdeiz has quit [Ping timeout: 240 seconds]
scripore has joined #ruby
blackmesa has joined #ruby
bronson has joined #ruby
troulouliou_div2 has joined #ruby
griffindy has quit [Ping timeout: 246 seconds]
nocd has joined #ruby
devbug has joined #ruby
hxegon_AFK has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
hectortrope has quit [Read error: Connection reset by peer]
blackmesa has quit [Ping timeout: 265 seconds]
blackjid has quit [Max SendQ exceeded]
blackjid has joined #ruby
bronson has quit [Ping timeout: 265 seconds]
Vitor has joined #ruby
zzz_ has joined #ruby
solocshaw has quit [Ping timeout: 256 seconds]
jottr has joined #ruby
mistermocha has joined #ruby
mistermocha has quit [Remote host closed the connection]
<YankNYC>
Papierkorb you're right whitelisting wouldn't help. thanks for pointing it out
mistermocha has joined #ruby
zzz has quit [Ping timeout: 240 seconds]
kirun has quit [Quit: Client exiting]
<Papierkorb>
YankNYC: What I was trying to get at was that you're really feeding (could be) malicious data into Image Magick. IMO, you should at least log every encountered error, maybe even with the file copied to some 'quarantine'. Magick could have a bug which could cause it to run shellcode (that is, machine code or program code) on your server with the permissions of the process it started it (Probably your rails server or a sidekiq runner)+#
<Papierkorb>
User input is scary :)
ecksit has joined #ruby
<YankNYC>
wow so Magick shouldn't be used
<kallisti5>
adaedra: not really an ad... just posting once that the internet archive (not for profit) is doing a 24-hour fund raiser. Since archive.org archives a lot of ruby-related sites it's slightly relevant :P
<YankNYC>
i have been using Agile rails Primer and it builds an unploader from scratch but sometimes in these books it may not be quite complete for production code
<Papierkorb>
YankNYC: Well no it's fine to use in theory. In general, you need to take into account that a library you're using has some bug which could have horrendous effects on your system
zzz_ has quit [Quit: Leaving...]
<Papierkorb>
YankNYC: Any library and gem. If you're using Devise, and a security bug in it was found, you'd be screwed too :)
<YankNYC>
lol right but using devise is still more secure then rolling you're own at an intermediate level
<YankNYC>
i rolled my own using hartl's tutorial but haha... not production quality
<Ox0dea>
Papierkorb: Blame the tools, you say?
<YankNYC>
also the concepts of roles with cancancan is favorable for current project
<Papierkorb>
Ox0dea: No, blame yourself for thinking that your tools are perfectly safe 100% of the time.
<YankNYC>
nothing is ever safe lol
<Papierkorb>
Ox0dea: and then blame the tool for having an astrocious bug by filing a ticket :P
nofxx has quit [Ping timeout: 260 seconds]
<YankNYC>
do the best you can then when you have time try to hack your api and learn how to reinforce
nofxx has joined #ruby
nofxx has quit [Changing host]
nofxx has joined #ruby
<Ox0dea>
> astrocious (adj.): of or relating to astrocity, the quality of being simultaneously stellar and terrible.
dsdeiz has joined #ruby
ecksit has quit []
<Papierkorb>
Ox0dea: you have to admit that some exploits that are found are pretty ingenious
ledestin has joined #ruby
Rickmasta has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
nocd has quit [Ping timeout: 260 seconds]
<Ox0dea>
I do, don't I?
<Ox0dea>
Imagine the ingenuity of the ones which remain undiscovered!
DavidDudson has joined #ruby
Rickmasta has joined #ruby
_stu_ has joined #ruby
hxegon has joined #ruby
<Papierkorb>
The Juniper one from yesterday was pretty interesting. Not because exploiting a weak random number generator is unheard of (at least in theory), but because of IMO that a security company did really trust a gov's security agency to not leave a backdoor behind, which itself is so deeply rooted in the RNG that mere numbers, which look arbitrary, and "almost everything will do here", to the untrained eye (that includes mine), are the cause for it.
idefine has quit [Remote host closed the connection]
idefine has joined #ruby
jottr has quit [Quit: WeeChat 1.3]
s1kx has quit [Quit: bai]
chouhoulis has joined #ruby
baweaver has joined #ruby
chouhoulis has quit [Ping timeout: 260 seconds]
scripore has quit [Remote host closed the connection]
railswebdev has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
s00pcan has quit [Ping timeout: 255 seconds]
charliesome has joined #ruby
s00pcan has joined #ruby
shoutsid has joined #ruby
scripore has joined #ruby
shoutsid has quit [Client Quit]
stannard has joined #ruby
shoutsid has joined #ruby
bronson has quit [Remote host closed the connection]
shoutsid has quit [Client Quit]
Vitor has quit [Ping timeout: 240 seconds]
moshef has joined #ruby
sulky has joined #ruby
scripore has quit [Quit: This computer has gone to sleep]
<moshef>
hi, would appreciate some regex help. https://gist.github.com/bigimot/debe0095a5c28cafdc66 I’m trying to grab the value of the second id tag. the full text is longer so I thought maybe I can look up the id="EWT" tag (static) and look for the next id tag, which is what I want..
railswebdev has joined #ruby
houhouli_ has joined #ruby
<Papierkorb>
moshef: Use Nokogiri
<moshef>
Papierkorb I am, but I still can’t get to the attribute
<moshef>
there is no attribute there, just a big array with bunch of values (each one is parsed as a node)
<moshef>
I attached an example of a node in the array (there are about 100 of these)
troulouliou_div2 has quit [Remote host closed the connection]
<moshef>
i only know the name of the element which is an attribute inside the attribues array
<Papierkorb>
moshef: so you're actually looking for tags with a name of 'ANSWER'?
c355e3b has quit [Quit: Connection closed for inactivity]
<moshef>
not exactly. for each node there is answer tag (each node represent an attribute)
<moshef>
so I’m looking for the node who holds the attribuet I’m looking for (id=“EDT”)
<moshef>
and in that node I’ll grab the answer..
_stu_ has quit [Quit: _stu_]
shanemcd has joined #ruby
<Papierkorb>
What's up with all those random ids? Can you, please, give me plain and simple, a complete example XML document (no unreadable nokogiri tree), and the expected output?
<moshef>
lol, so I can just use #EWT and it works
fexilal has quit [Ping timeout: 256 seconds]
<moshef>
sorry, it’s structured that way when I print it, but I’ll just use what you suggest (at_css tag)
<moshef>
thanks a lot!
<Papierkorb>
cheers
<Papierkorb>
also, good night.
s00pcan has quit [Ping timeout: 240 seconds]
<moshef>
gn
moshef has quit [Quit: moshef]
dlitvak has quit [Remote host closed the connection]
bb010g has quit [Quit: Connection closed for inactivity]
shanemcd has quit [Ping timeout: 246 seconds]
s00pcan has joined #ruby
blackmesa has joined #ruby
rgtk has quit [Remote host closed the connection]
ElFerna has joined #ruby
_stu_ has joined #ruby
stannard has quit [Remote host closed the connection]
dlitvak has joined #ruby
seitensei has joined #ruby
charliesome has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
nonopposition has quit [Remote host closed the connection]
seitensei has quit [Ping timeout: 265 seconds]
diego1 has joined #ruby
diego1 has quit [Changing host]
diego1 has joined #ruby
jcdesimp has joined #ruby
lessless has joined #ruby
diegoviola has quit [Ping timeout: 255 seconds]
idefine has quit [Remote host closed the connection]
<theRealGent>
Hi. I’m looking to get logstash running on my local ruby install. I’m using rvm and jruby. For some reason, whenever I launch logstash, i get the error “LoadError: no such file to load -- bundler”
<theRealGent>
But I can run bundler
<theRealGent>
I do a gem show and can see it ~/.rvm/gems/jruby-9.0.4.0/gems/bundler-1.11.2
mistermocha has joined #ruby
guacamole has joined #ruby
andykingking has quit [Client Quit]
guacamole has quit [Client Quit]
DavidDudson has joined #ruby
dwfait has quit [Read error: Connection reset by peer]
diegoviola has quit [Ping timeout: 240 seconds]
mistermo_ has joined #ruby
stannard has joined #ruby
diego1 has joined #ruby
chouhoulis has quit [Ping timeout: 256 seconds]
duderonomy has quit [Ping timeout: 256 seconds]
mistermocha has quit [Ping timeout: 240 seconds]
yqt has quit [Ping timeout: 272 seconds]
diego1 has quit [Changing host]
diego1 has joined #ruby
diego1 is now known as diegoviola
ElFerna has quit [Ping timeout: 255 seconds]
idefine has joined #ruby
mistermo_ has quit [Ping timeout: 265 seconds]
stannard has quit [Ping timeout: 256 seconds]
mistermocha has joined #ruby
idefine has quit [Ping timeout: 256 seconds]
bronson has joined #ruby
cmoneylulz has quit [Remote host closed the connection]
mistermo_ has joined #ruby
mistermocha has quit [Ping timeout: 246 seconds]
<Radar>
theRealGent: I see your problem ".rvm"
<Radar>
theRealGent: what OS are you on?
<theRealGent>
Radar: OS X
dwfait has joined #ruby
mistermo_ has quit [Read error: Connection reset by peer]
<Radar>
theRealGent: rvm implode --force, and then
dlitvak has quit [Remote host closed the connection]
DLSteve has joined #ruby
Jardayn has quit [Read error: Connection reset by peer]
charliesome has joined #ruby
nateberkopec has quit [Quit: Leaving...]
wildlander has quit [Quit: Saliendo]
ornerymoose has joined #ruby
charliesome has quit [Client Quit]
yfeldblum has quit [Ping timeout: 260 seconds]
ruby-lang492 has quit [Quit: Page closed]
idefine has joined #ruby
dwfait has joined #ruby
lockdown has joined #ruby
xcesariox has joined #ruby
spacesebi has joined #ruby
hxegon_AFK has quit [Ping timeout: 260 seconds]
idefine has quit [Ping timeout: 256 seconds]
spacesebi has quit [Client Quit]
madcodes has quit [Ping timeout: 240 seconds]
colegatron has quit [Ping timeout: 240 seconds]
dwfait has quit [Read error: Connection reset by peer]
ruu_ has joined #ruby
Rickmasta has joined #ruby
DLSteve has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<pontiki>
Radar: can i just fangirl a sec? i plugged your ubuntu instructions in place of the ones that were being used on rails.mn (not published yet, still a PR)
ruu_ has quit [Ping timeout: 246 seconds]
moeabdol has quit [Quit: WeeChat 1.3]
<pontiki>
complete install of an ubuntu/trusty64 vm to a rails "hello world" controller in 20 minutes
charliesome has joined #ruby
sankaber has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<Radar>
woot woot :D
lockdown has quit [Remote host closed the connection]
<pontiki>
that's doing it as a student would, by typing everything out, no scripts, ansible, etc
<pontiki>
so, thank you for writing them out clearly and succinctly
mooe has joined #ruby
<Radar>
no worries :)
devbug has quit [Ping timeout: 255 seconds]
colegatron has joined #ruby
dlitvak has joined #ruby
agent_white has joined #ruby
chouhoulis has joined #ruby
ibouvousaime has quit [Ping timeout: 256 seconds]
seitensei has joined #ruby
radgeRayden_ has quit [Read error: Connection reset by peer]
radgeRayden__ has joined #ruby
DavidDudson has quit [Max SendQ exceeded]
dlitvak has quit [Ping timeout: 256 seconds]
scripore has joined #ruby
DavidDudson has joined #ruby
Drakevr has quit [Ping timeout: 240 seconds]
chouhoulis has quit [Ping timeout: 240 seconds]
railswebdev has joined #ruby
* St1gma_
throws Radar a cookie
<Radar>
hi
<St1gma_>
lol
solocshaw has joined #ruby
stevenxl has quit [Ping timeout: 260 seconds]
stevenxl has joined #ruby
stevenxl has quit [Changing host]
stevenxl has joined #ruby
bronson has joined #ruby
_stu_ has quit [Quit: _stu_]
moeabdol has joined #ruby
idefine has joined #ruby
davedev2_ has quit [Ping timeout: 260 seconds]
moeabdol has quit [Client Quit]
bronson has quit [Ping timeout: 265 seconds]
Rickmasta has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
moeabdol has joined #ruby
yashinbasement has joined #ruby
idefine has quit [Ping timeout: 256 seconds]
rattatmatt has quit [Quit: Leaving]
hxegon has joined #ruby
braincrash has quit [Quit: bye bye]
yeticry has quit [Read error: Connection reset by peer]
yeticry has joined #ruby
nertzy has quit [Quit: This computer has gone to sleep]
rgtk has joined #ruby
Yiota has quit [Ping timeout: 255 seconds]
scripore has quit [Quit: This computer has gone to sleep]
nateberkopec has joined #ruby
cassioscabral has joined #ruby
SCHAAP137 has quit [Remote host closed the connection]
rgtk has quit [Ping timeout: 246 seconds]
braincrash has joined #ruby
braincrash is now known as braincras
hxegon is now known as hxegon_AFK
hxegon_AFK is now known as hxegon
lessless has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
nanoz] has joined #ruby
spacesebi has joined #ruby
nateberkopec has quit [Ping timeout: 256 seconds]
nertzy has joined #ruby
nanoz has quit [Ping timeout: 240 seconds]
spacesebi has quit [Client Quit]
hxegon is now known as hxegon_AFK
hxegon_AFK is now known as hxegon
ruu_ has joined #ruby
hxegon has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
YankNYC has quit [Quit: Connection closed for inactivity]
bronson has joined #ruby
AncientAmateur has quit [Ping timeout: 272 seconds]
DavidDudson has quit [Quit: Goodbye all, and thankyou.]
Dimik has joined #ruby
Rickmasta has joined #ruby
bronson has quit [Ping timeout: 265 seconds]
hxegon has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
lessless has joined #ruby
cyfr0n1 is now known as cyfr0n
dh64 has quit [Quit: Konversation terminated!]
jschmid has joined #ruby
stevenxl has quit [Quit: leaving]
Mon_Ouie has quit [Quit: WeeChat 1.3]
xcesariox has joined #ruby
AncientAmateur has joined #ruby
jschmid has quit [Ping timeout: 256 seconds]
howdoi has joined #ruby
DavidDudson has joined #ruby
St1gma has quit [Quit: Leaving]
nateberkopec has joined #ruby
moei has quit [Quit: Leaving...]
pawnbox has joined #ruby
sdothum has quit [Quit: ZNC - 1.6.0 - http://znc.in]
spacesebi has joined #ruby
ledestin has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
nateberkopec has quit [Ping timeout: 240 seconds]
spacesebi has quit [Client Quit]
pawnbox has quit [Ping timeout: 272 seconds]
ruu_ has joined #ruby
dlitvak has joined #ruby
ruu_ has quit [Ping timeout: 240 seconds]
dlitvak has quit [Ping timeout: 240 seconds]
last_staff has joined #ruby
varunwachaspati has joined #ruby
jessemcgilallen has joined #ruby
diegoviola has quit [Quit: WeeChat 1.3]
yfeldblum has joined #ruby
chouhoulis has joined #ruby
ruu_ has joined #ruby
yashinbasement has quit [Quit: Leaving]
chouhoulis has quit [Ping timeout: 255 seconds]
DavidDudson has quit [Quit: Goodbye all, and thankyou.]
jcdesimp has quit [Remote host closed the connection]
nertzy has quit [Quit: This computer has gone to sleep]
blub has quit [Remote host closed the connection]
stannard has joined #ruby
seitensei has quit [Remote host closed the connection]
DavidDudson has joined #ruby
moei has joined #ruby
moei has quit [Client Quit]
last_staff has quit [Remote host closed the connection]
last_staff has joined #ruby
stannard has quit [Ping timeout: 256 seconds]
nertzy has joined #ruby
Rickmasta has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
rgtk has joined #ruby
pawnbox has joined #ruby
last_staff has quit [Remote host closed the connection]
last_staff has joined #ruby
rgtk has quit [Ping timeout: 246 seconds]
pawnbox has quit [Ping timeout: 240 seconds]
Tempesta has joined #ruby
ruu_ has quit [Remote host closed the connection]
indiebrain has joined #ruby
nateberkopec has joined #ruby
hakunin has quit []
spacesebi has joined #ruby
dlitvak has joined #ruby
nateberkopec has quit [Ping timeout: 256 seconds]
darkf has joined #ruby
alon has quit [Remote host closed the connection]
idefine has joined #ruby
spacesebi has quit [Client Quit]
pawnbox has joined #ruby
dlitvak has quit [Ping timeout: 255 seconds]
idefine has quit [Ping timeout: 256 seconds]
jessemcgilallen has quit [Quit: jessemcgilallen]
devbug has joined #ruby
solocshaw has quit [Ping timeout: 240 seconds]
indiebrain has quit [Ping timeout: 265 seconds]
lessless has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
phroa has joined #ruby
<phroa>
so I'm doing day 12 of Advent of Code - "extract all the numbers from a string and add them up". my code is apparently failing to produce the right output, even though it works for all the examples they give. does anyone see any obvious errors in my code? https://gist.github.com/phroa/bd28d2d5834038297651
<Ox0dea>
phroa: You're failing to account for the hyphens that prefix negative numbers.
<Ox0dea>
Erm, no, you're not. :<
<phroa>
that's what the '-?' at the start of the regex does
<phroa>
yeah :P
yardenbar has joined #ruby
<phroa>
(and the error says I guessed too low, so it wasn't the issue regardless)
<Ox0dea>
Oh, you're only matching at most one digit.
<phroa>
oh, golly
<Ox0dea>
I used /[-\d]+/.
<phroa>
I'm mildly annoyed none of the provided test cases are longer than one digit. (excluding hyphens). cheers
<camus>
Ox0dea: Basically, if I run it with a file that has more than 5 email addresses it crashes, and if I try to do it 5 at a time, it isn't appending, but overwriting each time.
cassioscabral has joined #ruby
cassioscabral has quit [Client Quit]
<Ox0dea>
camus: Well, you'll want to figure out the cause of that crash, no?
<camus>
Yes, I was thinking it is because the response is too big.
<Ox0dea>
If you do it with appends, you'll then face the problem of deciding where to pick back up in the list so as not to have your output contain duplicates.
<Ox0dea>
It's more likely the case you're being rate-limited.
AncientAmateur has quit [Ping timeout: 240 seconds]
<Ox0dea>
But I understand your use case might be simple enough as not to warrant a full-blown wrapper.
<camus>
Thanks, I saw that library but was thinking I would have to build an --- yeah, exactly.
mooe has quit [Quit: Connection closed for inactivity]
<Ox0dea>
Then, yeah, you'll probably want to just check the response headers and #sleep accordingly.
<Ox0dea>
No sense in waiting a whole <n> seconds when you don't have to.
<camus>
Thanks again for your help.
<Ox0dea>
Sure thing.
charliesome has joined #ruby
Emmanuel_Chanel has joined #ruby
Emmanuel_Chanel has quit [Remote host closed the connection]
charliesome has quit [Client Quit]
karapetyan has joined #ruby
Emmanuel_Chanel has joined #ruby
karapetyan has quit [Ping timeout: 255 seconds]
govg has quit [Ping timeout: 256 seconds]
nixmaniack has joined #ruby
jcdesimp has joined #ruby
blackgoat has joined #ruby
agent_white has left #ruby [#ruby]
underplank has joined #ruby
chouhoulis has joined #ruby
varunwachaspati has quit [Quit: Connection closed for inactivity]
lessless has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
lictor36 has joined #ruby
madcodes has joined #ruby
jcdesimp has quit [Ping timeout: 256 seconds]
rippa has joined #ruby
chouhoulis has quit [Ping timeout: 265 seconds]
dionysus69 has joined #ruby
z3uS has joined #ruby
z3uS has quit [Client Quit]
z3uS has joined #ruby
underplank has quit [Quit: underplank]
z3uS has quit [Client Quit]
govg has joined #ruby
slawrence00 has joined #ruby
hakunin has joined #ruby
spacesebi has joined #ruby
spacesebi has quit [Client Quit]
slawrence00 has quit [Ping timeout: 255 seconds]
hakunin_ has joined #ruby
agit0 has quit [Quit: zzzZZZ….]
samgerber has quit []
hakunin has quit [Read error: Connection reset by peer]
nixmaniack has quit [Read error: Connection reset by peer]
PedramT has joined #ruby
agit0 has joined #ruby
matp has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
psy_ has quit [Ping timeout: 240 seconds]
manquer has quit [Ping timeout: 272 seconds]
nixmaniack has joined #ruby
agit0 has quit [Ping timeout: 256 seconds]
moei has joined #ruby
manquer has joined #ruby
AccordLTN has joined #ruby
trwyth has joined #ruby
rgtk has joined #ruby
buzz07630072 has quit [Ping timeout: 240 seconds]
PedramT has quit [Remote host closed the connection]
karapetyan has joined #ruby
trwyth has quit [Read error: Connection reset by peer]
rgtk has quit [Ping timeout: 246 seconds]
greenride has joined #ruby
<greenride>
Are there any production quality CI servers written in Ruby?
PedramT has joined #ruby
matp has joined #ruby
pawnbox has quit [Remote host closed the connection]
pawnbox has joined #ruby
PedramT has quit [Ping timeout: 240 seconds]
IrishGringo has quit [Ping timeout: 272 seconds]
arup_r has quit [Remote host closed the connection]
nixmaniack has quit [Read error: Connection reset by peer]
govg has quit [Ping timeout: 260 seconds]
nixmaniack has joined #ruby
arup_r has joined #ruby
pawnbox has quit [Remote host closed the connection]
pawnbox has joined #ruby
nateberkopec has joined #ruby
ur5us has joined #ruby
<atmosx>
Travis?
<greenride>
hmm... yes... now that I see the answer... I realize I asked the wrong question. ... meant to ask... Are there any open source production quality CI servers written in Ruby?
tvw has joined #ruby
nateberkopec has quit [Ping timeout: 240 seconds]
nertzy has quit [Quit: This computer has gone to sleep]
govg has joined #ruby
PedramT has joined #ruby
RegulationD has joined #ruby
nixmaniack has quit [Read error: Connection reset by peer]
PedramT has quit [Ping timeout: 265 seconds]
nixmaniack has joined #ruby
nixmaniack has quit [Changing host]
nixmaniack has joined #ruby
chouhoulis has joined #ruby
Mon_Ouie has joined #ruby
cwong_on_irc has quit [Quit: Leaving.]
marr has joined #ruby
RegulationD has quit [Ping timeout: 246 seconds]
medvedu has joined #ruby
Edward_ has joined #ruby
chouhoulis has quit [Ping timeout: 272 seconds]
arup_r has quit [Remote host closed the connection]
sandstrom has joined #ruby
meatchicken has quit [Ping timeout: 240 seconds]
nixmaniack has quit [Read error: Connection reset by peer]
n1x has joined #ruby
devbug has quit [Ping timeout: 240 seconds]
z3uS has joined #ruby
sigurding has joined #ruby
theRealAlexz has joined #ruby
nonopposition has quit [Ping timeout: 246 seconds]
shanemcd has joined #ruby
Dimik has quit [Ping timeout: 240 seconds]
seitensei has joined #ruby
shanemcd has quit [Ping timeout: 265 seconds]
arup_r has joined #ruby
arup_r has quit [Client Quit]
seitensei has quit [Ping timeout: 256 seconds]
devoldmx has quit [Remote host closed the connection]
firstdayonthejob has joined #ruby
zast has quit [Quit: Leaving.]
setient has quit [Read error: Connection reset by peer]
setient has joined #ruby
Mon_Ouie has quit [Ping timeout: 255 seconds]
toretore has quit [Quit: Leaving]
s2013 has joined #ruby
sandstrom has quit [Quit: My computer has gone to sleep.]
yfeldblum has quit [Ping timeout: 260 seconds]
spider-mario has joined #ruby
DoubleMalt has joined #ruby
radgeRayden_ has joined #ruby
colegatron has quit [Ping timeout: 240 seconds]
n1x has quit [Read error: Connection reset by peer]
radgeRayden__ has quit [Ping timeout: 246 seconds]
nixmaniack has joined #ruby
dionysus69 has quit [Ping timeout: 240 seconds]
tomphp has joined #ruby
z3uS has quit [Quit: /dev/null]
Snowy has joined #ruby
z3uS has joined #ruby
jcdesimp has joined #ruby
blackgoat_ has joined #ruby
blackgoat has quit [Ping timeout: 265 seconds]
ur5us has quit [Remote host closed the connection]
jcdesimp has quit [Ping timeout: 240 seconds]
nixmaniack has quit [Read error: Connection reset by peer]
karapetyan has quit [Remote host closed the connection]
karapetyan has joined #ruby
Kn|t3 has joined #ruby
joshua1 has joined #ruby
xcesariox has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
Ishido has quit [Quit: Roads? Where We're Going We Don't Need Roads.]
pwnd_nsfw has quit [Ping timeout: 260 seconds]
ElFerna has joined #ruby
<ineb>
does someone now a nice way to do http uploads (POST, multipart) with progress options and bandwith limit?
<ineb>
i tested curb for curl bindings. no feature for bandwith throttling there. i thinks its possible to hack it in, since libcurl supports it. but first i want to ask if there is another nice solution
tildes has quit [Ping timeout: 255 seconds]
ElFerna has quit [Ping timeout: 256 seconds]
BTRE has quit [Quit: Leaving]
stevenxl has joined #ruby
stevenxl has quit [Changing host]
stevenxl has joined #ruby
shock_one has joined #ruby
xcesariox has joined #ruby
pwnd_nsfw has joined #ruby
agit0 has joined #ruby
cashnguns has joined #ruby
xcesariox has quit [Client Quit]
BTRE has joined #ruby
shanemcd has quit [Remote host closed the connection]
bkxd has joined #ruby
rgtk has quit [Remote host closed the connection]
nehaljwani has joined #ruby
<nehaljwani>
Hi! How to read atmost x amount of bytes from a tcpsocket in ruby?
shanemcd has joined #ruby
Yzguy has quit [Quit: Zzz...]
chouhoulis has joined #ruby
bkxd has quit [Ping timeout: 240 seconds]
agit0 has quit [Quit: zzzZZZ….]
cwong_on_irc has joined #ruby
cwong_on_irc has quit [Max SendQ exceeded]
cwong_on_irc has joined #ruby
dwfait has joined #ruby
arup_r has quit [Remote host closed the connection]
chouhoulis has quit [Ping timeout: 240 seconds]
karapetyan has quit [Remote host closed the connection]
arup_r has joined #ruby
karapetyan has joined #ruby
rodfersou has joined #ruby
kknight has quit [Quit: Leaving]
jbrhbr has joined #ruby
<nehaljwani>
got it.. readpartial()
s00pcan has quit [Remote host closed the connection]
s00pcan has joined #ruby
karapetyan has quit [Remote host closed the connection]
karapetyan has joined #ruby
cyfr0n1 has joined #ruby
yardenbar has joined #ruby
tildes has joined #ruby
AlphaAtom has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
tomphp has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
cyfr0n has quit [Ping timeout: 240 seconds]
govg has quit [Ping timeout: 256 seconds]
shock_one has quit [Remote host closed the connection]
ruu_ has joined #ruby
dlitvak has joined #ruby
infoget has quit [Quit: Leaving.]
ruu_ has quit [Remote host closed the connection]
<apeiros>
nehaljwani: read with an arg should work too
zotherstupidguy has joined #ruby
VladGh has quit [Ping timeout: 245 seconds]
nonopposition has quit [Remote host closed the connection]
tomphp has joined #ruby
<apeiros>
though, actually readpartial is probably what you want, since read() will block until it has read x bytes (or met EOF)
seitensei has joined #ruby
seitensei has quit [Changing host]
seitensei has joined #ruby
dionysus70 has joined #ruby
ruu_ has joined #ruby
govg has joined #ruby
ruu_ has quit [Remote host closed the connection]
jds has joined #ruby
yardenbar has quit [Ping timeout: 260 seconds]
cyfr0n1 is now known as cyfr0n
dionysus69 has quit [Ping timeout: 272 seconds]
dionysus70 is now known as dionysus69
bithon has joined #ruby
nonopposition has joined #ruby
<hightower4>
Hey, I'm using the libevdev gem to read /dev/input/eventXX, and it is producing correct results, but the events are buffering somewhere and even though my loop is just fine: "loop do; Libevdev.next_event(evdev, Libevdev::READ_FLAG_NORMAL, event.pointer)", the next_event() function is blocking even though events are already available, and I need to generate even more events to cause next_event() to continue and process them all. Any ideas?
<havenwood>
seems avant garde versioning is gaining popularity in various Rubies :P
<havenwood>
Drop a digit, add a digit, maybe some letters!
dlitvak has joined #ruby
icarus has joined #ruby
eytanfb has quit [Read error: Connection reset by peer]
eytanfb has joined #ruby
ruid has joined #ruby
devoldmx has joined #ruby
<diegoviola>
does rbx still wants to change the ruby langugae?
<diegoviola>
language
<diegoviola>
rubinius-x
<havenwood>
diegoviola: Rubinius is an implementation of the Ruby language. RubiniusX isn't Ruby.
<havenwood>
I don't know its status.
<nofxx>
diegoviola, just as jruby or maglev, it's another VM
pwnd_nsfw has quit [Ping timeout: 260 seconds]
<diegoviola>
right
<diegoviola>
but RubiniusX is something that is built on top of RBX?
<diegoviola>
like a separate language?
<diegoviola>
that runs in the RBX VM?
<nofxx>
there used to have a spec, everyone said would use, but there's was some divergencies and nobody uses it.
<nofxx>
that's still true?
<havenwood>
diegoviola: Actually, Rubinius X is retired I see based on this email.
<diegoviola>
what email?
dlitvak has quit [Ping timeout: 256 seconds]
bronson has joined #ruby
<shevy>
havenwood imagine if we could count our versions BACKWARDS
devoldmx has quit [Ping timeout: 256 seconds]
<Ox0dea>
shevy: Those are called negative numbers.
hxegon is now known as hxegon_AFK
<havenwood>
diegoviola: "I've decided to retire the idea of "Rubinius X" as a separate project, but not the goal of providing a powerful way to extend your investment in Ruby while taking advantage of the changing environment for building applications and Software as a Service."
InvGhostt has joined #ruby
<shevy>
Ox0dea no, you just end at version 0.0.1 and that will be the final one!
<diegoviola>
that sounds vague to me
last_staff has quit [Quit: last_staff]
<diegoviola>
but ok
InvGhost has quit [Read error: No route to host]
<havenwood>
diegoviola: TL;DR: No X.
<diegoviola>
ok
devbug has quit [Read error: Connection reset by peer]
bronson has quit [Remote host closed the connection]
bronson has joined #ruby
<Ox0dea>
edj_: Press cun troll C.
<havenwood>
edj_: Ctrl-C to flee!
colegatron has quit [Ping timeout: 272 seconds]
elaptics is now known as elaptics`away
<edj_>
oooooooooooh
<edj_>
thank you
<edj_>
too bad my computer is already on fire
<havenwood>
cancel, cancel!
jessemcgilallen has quit [Quit: jessemcgilallen]
<havenwood>
edj_: go back to your last savepoint
<shevy>
Ox0dea that's not how you spell control!
davedev24 has joined #ruby
shanemcd has joined #ruby
ferr has joined #ruby
devoldmx has quit [Ping timeout: 240 seconds]
jcdesimp has joined #ruby
djbkd has joined #ruby
roshanavand has joined #ruby
blackjid has quit [Max SendQ exceeded]
blackjid has joined #ruby
<havenwood>
?pry edj_
<ruboto>
edj_, Pry, the better IRB. Includes easy object inspection via `ls`, `history`, docs view with `?`, source view with `$` and syntax highlighting, among other features (see `help` for more). It can also be used for easy debugging by putting `binding.pry` directly in your source code. Visit https://pryrepl.org/ or get it now with: gem install pry pry-doc
<Ox0dea>
shevy: Misspelling "control" is cruise control for antidisestablishmentarian.
gizless has joined #ruby
shanemcd has quit [Ping timeout: 264 seconds]
agit0 has joined #ruby
tomphp has joined #ruby
bronson has quit [Remote host closed the connection]
jcdesimp has quit [Ping timeout: 272 seconds]
grill has joined #ruby
futilegames has joined #ruby
bronson has joined #ruby
edj_ has quit [Quit: Page closed]
gizmore has quit [Ping timeout: 260 seconds]
ss_much has quit [Quit: Connection closed for inactivity]
gizmore has joined #ruby
Uptime has quit [Changing host]
Uptime has joined #ruby
colegatron has joined #ruby
gizless has quit [Ping timeout: 250 seconds]
railswebdev has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<tobiasvl>
it "maps" each element x in an iterable to its counterpart f(x)
<ellistaa>
tobiasvl: seems like it would make more sense to call it match
<ellistaa>
oh actually i guess if u imagine a grid and the argument is given to the function it would be mapping it ….
tvon has joined #ruby
tvon has quit [Client Quit]
ElFerna has joined #ruby
tvon has joined #ruby
<tobiasvl>
yes, it maps each element. it doesn't "match" it, it calls a method on each one in turn
<havenwood>
ellistaa: mapping (noun): an operation that associates each element of a given set (the domain) with one or more elements of a second set (the range).