<sharkman>
i scrape ipchicken with mechanze and get an IP address, then i disconnect from a proxy and scrape ipchicken again and get the SAME ip addres
<sharkman>
this is part of the code, you wouldnt be able to recreate it since i have port forwarding set up on my computer to a server
moeabdol has joined #ruby
<Arcaire>
Why wouldn't you just net::http.get icanhazip.com or something
duderonomy has joined #ruby
<sharkman>
cause i will need to fill in forms
<Arcaire>
ah okay so you're using it lter
<Arcaire>
later *
<sharkman>
yup. im just trying to set it up now
<al2o3-cr>
TCPSocket::socks_server, where's this from?
<sharkman>
socksify gem
JakFrist has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<al2o3-cr>
sharkman: why don't use set the proxy on mechanize agent itself?
<sharkman>
id like to. but mechanze does not support socks proxy
<al2o3-cr>
ah, socks thought was http
<al2o3-cr>
let me check
<sharkman>
okay thanks
mnrmnaugh has quit [Ping timeout: 250 seconds]
lxsameer has quit [Ping timeout: 276 seconds]
stardiviner has joined #ruby
moeabdol has quit [Ping timeout: 250 seconds]
dikaio has joined #ruby
<sharkman>
i kind of want to find a way to change Mechanize so it can accept a socks proxy, but that is probably above my skill level. i cant even figure out this much simpler problem
<al2o3-cr>
just tried too, same ip address
chosen1 has quit [Quit: Leaving]
<al2o3-cr>
give me minute not to familiar with these gems
ta_ has joined #ruby
rbennace_ has quit [Read error: Connection reset by peer]
<sharkman>
so i guess mechanize is caching the page somewhere? even though i start different instances. i dont see anything in the documentation about this
LoneHerm_ has quit [Remote host closed the connection]
<Arcaire>
It's honestly probably not caching the page.
<Arcaire>
Primarily because there's a bunch of gems specifically to enable Mechanize caching.
<Arcaire>
So given their existence I'd venture that it doesn't do it by default.
<al2o3-cr>
it doesn't cache
tildes_ has quit [Ping timeout: 276 seconds]
ta_ has quit [Ping timeout: 276 seconds]
braincrash has quit [Quit: bye bye]
tildes_ has joined #ruby
CloCkWeRX has joined #ruby
<sharkman>
yeah good pont
<sharkman>
point
<sharkman>
yup i am stumped!
zast has joined #ruby
binaryplease1 has joined #ruby
saneax is now known as saneax_AFK
htmldrum has quit [Ping timeout: 260 seconds]
kobain has quit [Read error: Connection reset by peer]
smathy is now known as smathy_afk
pawnbox has joined #ruby
kobain has joined #ruby
yfeldblum has quit [Remote host closed the connection]
<sharkman>
if i add the command "sleep(6)" in between scrapes than it gets different IP addreses
<sharkman>
but if its just sleep(4) then it still gets the same IP
binaryplease has quit [Ping timeout: 276 seconds]
braincrash has joined #ruby
htmldrum has joined #ruby
Limix has joined #ruby
stannard has joined #ruby
agent_white has joined #ruby
Caerus|Away is now known as Caerus
d0lph1n98 has joined #ruby
<sharkman>
any ideas al2o3-cr
<agent_white>
Evenin.
<Caerus>
hello #ruby :)
pawnbox has quit [Ping timeout: 244 seconds]
stannard has quit [Ping timeout: 252 seconds]
<al2o3-cr>
sharkman: been messing about for 15 minutes, still no further in why this is happening :(
<sharkman>
okay thank you
<sharkman>
its a tricky issue right
binaryplease1 is now known as binaryplease
<al2o3-cr>
upto now yes :p
<sharkman>
:)
karmatr0n has joined #ruby
yfeldblum has joined #ruby
d0lph1n98 has quit [Ping timeout: 260 seconds]
statelesscode has quit [Quit: statelesscode]
GnuYawk has quit [Read error: Connection reset by peer]
d0lph1n98 has joined #ruby
gix- has quit [Ping timeout: 276 seconds]
x77686d has joined #ruby
gix has joined #ruby
Vile` has quit [Ping timeout: 252 seconds]
smathy_afk is now known as smathy
ismaelga has joined #ruby
brendan- has quit [Ping timeout: 276 seconds]
<zacts>
is mechanize inspired by perl's WWW::Mechanize?
segy_ has joined #ruby
Xeago_ has joined #ruby
dikaio has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
segy has quit [Ping timeout: 260 seconds]
segy_ is now known as segy
<sharkman>
i dont know zacts
mnrmnaugh has joined #ruby
<zacts>
hrm... does mechanize automate navigating web pages?
<zacts>
if so it's probably a similar lib
<zacts>
(which I'll be learning about soon)
moeabdol has joined #ruby
Xeago_ has quit [Ping timeout: 276 seconds]
segy_ has joined #ruby
<smathy>
...inspired at least in name.
auzty has joined #ruby
smathy has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<zacts>
This library was heavily influenced by its namesake in the Perl world. A big thanks goes to Andy Lester, the author of the original Perl module WWW::Mechanize which is available here. Ruby Mechanize would not be around without you!
PedramT has quit [Remote host closed the connection]
PedramT has joined #ruby
dikaio has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
Moosashi has joined #ruby
whathappens has joined #ruby
duncannz has joined #ruby
isxek has joined #ruby
freerobby has quit [Quit: Leaving.]
dikaio has joined #ruby
KensoDev has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
tildes_ has quit [Ping timeout: 260 seconds]
Xeago_ has joined #ruby
djbkd has quit []
heftig_ is now known as heftig
karmatr0n has quit [Ping timeout: 240 seconds]
Macaveli has joined #ruby
aghalarp has joined #ruby
Macaveli has quit [Client Quit]
ruby[bot] has joined #ruby
Xeago_ has quit [Ping timeout: 250 seconds]
rojomisin has quit [Ping timeout: 240 seconds]
pawnbox has quit [Remote host closed the connection]
jenrzzz has quit [Ping timeout: 250 seconds]
pawnbox has joined #ruby
jenrzzz has joined #ruby
jenrzzz has quit [Ping timeout: 244 seconds]
moeabdol has joined #ruby
Es0teric has quit [Remote host closed the connection]
ur5us has quit [Remote host closed the connection]
aghalarp has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
solars has joined #ruby
SparkMasterTape has quit [Remote host closed the connection]
whathappens has quit [Remote host closed the connection]
nippysaurus has joined #ruby
polysics has quit [Ping timeout: 276 seconds]
d0lph1n98 has joined #ruby
bluOxigen_ has joined #ruby
bluOxigen has quit [Ping timeout: 276 seconds]
zzak has quit [Remote host closed the connection]
craysiii has joined #ruby
zzak has joined #ruby
bobbycvi has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<craysiii>
I'm trying to set up Jenkins CI on a VPS for a Rails project. Every time i try to run a build, when bundler is invoked, I keep getting an error that states Could not find gem 'rails_12factor' in any of the gem sources listed in your Gemfile or available on this machine. (Bundler::GemNotFound)
<craysiii>
i am able to install these gems through gem install on the command line, but for some reason when Jenkins is doing the work it says they don't exist according to my Gemfile sources.
Macaveli has joined #ruby
tref has joined #ruby
whathappens has joined #ruby
<craysiii>
any ideas?
ponga has joined #ruby
blur3d has quit [Quit: blur3d]
whathappens has quit [Remote host closed the connection]
<matt_d>
craysiii: perhaps bundler is not being invoked with any production env vars set, your gemfile has the rails_12factor gem under the production group
yfeldblum has quit [Remote host closed the connection]
infernix has quit [Ping timeout: 276 seconds]
blaxter has joined #ruby
n008f4g_ has quit [Ping timeout: 260 seconds]
claw has quit [Ping timeout: 260 seconds]
bronson has joined #ruby
PedramT has joined #ruby
claw has joined #ruby
User458764 has joined #ruby
bronson has quit [Ping timeout: 252 seconds]
aufi has joined #ruby
PedramT has quit [Ping timeout: 260 seconds]
Ox0dea has joined #ruby
<Ox0dea>
al2o3-cr: It's right there in the docs for #frexp.
silentpo1t has joined #ruby
slackbotgz has joined #ruby
Xeago_ has joined #ruby
ponga has quit []
Mia has joined #ruby
Rickmasta has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
roadt_ has quit [Ping timeout: 250 seconds]
d0lph1n98 has quit [Ping timeout: 252 seconds]
FooMunki has quit [Quit: FooMunki]
hanmac has quit [Remote host closed the connection]
sdothum has joined #ruby
madgen has quit [Ping timeout: 252 seconds]
elaptics is now known as elaptics`away
skade has quit [Quit: Computer has gone to sleep.]
FooMunki has joined #ruby
elaptics`away is now known as elaptics
PedramT has joined #ruby
johnmilton has joined #ruby
moeabdol has quit [Ping timeout: 250 seconds]
pawnbox has quit [Remote host closed the connection]
roadt_ has joined #ruby
PedramT has quit [Ping timeout: 260 seconds]
moeabdol has joined #ruby
chipotle has quit [Ping timeout: 240 seconds]
charliesome has joined #ruby
charliesome has quit [Read error: Connection reset by peer]
charliesome has joined #ruby
jds has joined #ruby
GodFather has joined #ruby
charliesome has quit [Read error: Connection reset by peer]
pawnbox has joined #ruby
ur5us has quit [Remote host closed the connection]
d0lph1n98 has joined #ruby
skade has joined #ruby
rbr has quit [Ping timeout: 240 seconds]
charliesome has joined #ruby
zacstewart has joined #ruby
rbr has joined #ruby
slackbotgz has quit [Remote host closed the connection]
chipotle has joined #ruby
Xeago_ has quit [Remote host closed the connection]
zacstewart has quit [Ping timeout: 244 seconds]
pawnbox has quit [Remote host closed the connection]
pawnbox has joined #ruby
User458764 has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
<adaedra>
0xGreetings.
Snowy has joined #ruby
Xeago_ has joined #ruby
charliesome has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
RegulationD has joined #ruby
inukshuk_ has joined #ruby
inukshuk_ has quit [Client Quit]
<Ox0dea>
I want to understand.
RegulationD has quit [Ping timeout: 276 seconds]
JakFrist has joined #ruby
silentpo1t has quit [Ping timeout: 240 seconds]
pawnbox_ has joined #ruby
pawnbox has quit [Ping timeout: 240 seconds]
PedramT has joined #ruby
User458764 has joined #ruby
awer has quit [Ping timeout: 250 seconds]
solars has quit [Ping timeout: 276 seconds]
PedramT_ has joined #ruby
PedramT has quit [Ping timeout: 240 seconds]
pawnbox_ has quit [Ping timeout: 240 seconds]
PedramT has joined #ruby
Xeago_ has quit [Remote host closed the connection]
vondruch has quit [Quit: Ex-Chat]
nofxx has joined #ruby
nofxx has quit [Changing host]
nofxx has joined #ruby
PedramT_ has quit [Ping timeout: 260 seconds]
polysics has quit [Ping timeout: 276 seconds]
Guest94592 is now known as ndrst
vondruch has joined #ruby
PedramT has quit [Ping timeout: 260 seconds]
vondruch has quit [Client Quit]
madgen has joined #ruby
vondruch has joined #ruby
jaguarmagenta has joined #ruby
rbr has quit [Ping timeout: 240 seconds]
rbr has joined #ruby
symm- has quit [Quit: Leaving...]
mrgrieve1 has quit [Ping timeout: 276 seconds]
mrgrieve1 has joined #ruby
saneax is now known as saneax_AFK
jaguarmagenta has quit [Ping timeout: 244 seconds]
Xeago_ has joined #ruby
ldnunes has joined #ruby
Xeago_ has quit [Read error: Connection reset by peer]
Xeago_ has joined #ruby
diegoviola has joined #ruby
SHyx0rmZ has joined #ruby
pawnbox has joined #ruby
linuxuser9000 has quit [Read error: Connection reset by peer]
hanmac has joined #ruby
Snowy has quit [Remote host closed the connection]
Rickmasta has joined #ruby
n008f4g_ has joined #ruby
polysics has joined #ruby
pawnbox_ has joined #ruby
PlasmaStar has quit [Ping timeout: 250 seconds]
Azure|dc has joined #ruby
pawnbox has quit [Ping timeout: 260 seconds]
ItSANgo has joined #ruby
gnufied has joined #ruby
diegoaguilar has joined #ruby
tlaxkit has joined #ruby
Azure has quit [Ping timeout: 260 seconds]
Azure|dc has quit [Max SendQ exceeded]
Xeago_ has quit [Remote host closed the connection]
polysics has quit []
aufi has quit [Ping timeout: 240 seconds]
diego1 has joined #ruby
synthroid has joined #ruby
PlasmaStar has joined #ruby
Azure has joined #ruby
Azure has quit [Read error: Connection reset by peer]
duckpuppy has joined #ruby
<hanmac>
shevy: what do you think about that Fixnum and Bignum does colide? xD
diego2 has joined #ruby
diego2 has quit [Changing host]
diego2 has joined #ruby
diegoviola is now known as Guest48263
diego2 is now known as diegoviola
Guest48263 has quit [Ping timeout: 244 seconds]
diego1 has quit [Ping timeout: 246 seconds]
isxek has joined #ruby
<Ox0dea>
They're not "colliding"; they're being unified.
<Ox0dea>
It's obviously a Good Thing.
ismaelga has quit [Remote host closed the connection]
skade has quit [Quit: Computer has gone to sleep.]
ismaelga has joined #ruby
ismaelga has quit [Remote host closed the connection]
stannard has joined #ruby
blackmes1 has quit [Ping timeout: 240 seconds]
saneax_AFK is now known as saneax
jhill has quit [Ping timeout: 260 seconds]
tref has joined #ruby
stannard has quit [Ping timeout: 260 seconds]
jhill has joined #ruby
skade has joined #ruby
Snowy has joined #ruby
swills has quit [Ping timeout: 260 seconds]
<apeiros>
it's also mostly an implementation detail and all you have to consider is Integer
Snowy has quit [Read error: Connection reset by peer]
karapetyan has joined #ruby
Snowy has joined #ruby
Xiti has joined #ruby
GodFather has quit [Ping timeout: 246 seconds]
Madplatypus has quit [Quit: Connection closed for inactivity]
bronson has joined #ruby
govg has joined #ruby
brendan- has joined #ruby
User458764 has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
flashpoint9 has joined #ruby
<hanmac>
Ox0dea: they are colliding together like two big galaxies XD
gregf has quit [Quit: WeeChat 1.4]
tref has quit [Quit: tref]
bronson has quit [Ping timeout: 252 seconds]
nando293921 has quit [Ping timeout: 250 seconds]
anisha has quit [Quit: This computer has gone to sleep]
anisha has joined #ruby
<apeiros>
hanmac: in other words - it'll be a problem in millions of years but not now?
<hanmac>
apeiros: or it could mean the end of million lifeforms XD
<apeiros>
somewhen a couple of million years in the future…
User458764 has joined #ruby
giz|work has quit [Ping timeout: 244 seconds]
banister has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
ledestin has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
User458764 has quit [Client Quit]
Snowy has quit [Remote host closed the connection]
Ispira has joined #ruby
<igam`>
Galaxy collisions are basically harmless for life on planets on those galaxies.
Xeago_ has joined #ruby
<igam`>
You would need to be very unlucky to live on a planet whose star would pass close enough to a star of the colliding galaxy to perturbate your orbit catastrophically.
rbennacer has quit [Remote host closed the connection]
karmatr0n has joined #ruby
FooMunki has quit [Quit: FooMunki]
rbennacer has joined #ruby
gregf has joined #ruby
<tobiasvl>
what are the tests?
<adaedra>
what is it expected to do?
<mrgrieves>
basically we get an array of five names which we process from left to right (names) and a digit representing a position in the queue (r). when we process the first name we double it and move those 2 names to the back of the queue the idea of the method is to return the name that's going to be in position r
madgen has quit [Ping timeout: 250 seconds]
dopamean_ has quit [Ping timeout: 252 seconds]
ismaelga has quit []
jaguarmagenta has quit [Ping timeout: 276 seconds]
<mrgrieves>
1< r < 1000000000
<tobiasvl>
shift removes the first entry from the array, you know? that doesn't sound like what you want
<apeiros>
that's a funny algorithm…
pLaToOn has quit [Read error: Connection reset by peer]
<tobiasvl>
oh wait that is what you want
<apeiros>
so with r = 1000000000, you end up with 2000000000 items in the queue
DoubleMalt has quit [Remote host closed the connection]
saneax_AFK is now known as saneax
<apeiros>
you can probably make the given algorithm academically faster by choosing the right methods, but I doubt it'll solve your "too slow" problem. I assume the algorithm is required to be implemented like that?
Xeago_ has joined #ruby
firstdayonthejob has joined #ruby
<apeiros>
the alternative would be to just calculate the name
CloCkWeRX has quit [Remote host closed the connection]
stannard has joined #ruby
ndrst has quit [Ping timeout: 250 seconds]
<mrgrieves>
apeiros: yes calculate the name - Return the single line the name of the person who is at the top of the queue on the r-th turn.
ruby-lang956 has joined #ruby
<tobiasvl>
what's the purpose of this method?
<apeiros>
mrgrieves: your method does not calculate it
<apeiros>
it "explores" it
ta_ has quit [Remote host closed the connection]
n008f4g_ has quit [Ping timeout: 260 seconds]
zacstewart has joined #ruby
<mrgrieves>
apeiros: you are right, my maths are crap
CloCkWeRX has joined #ruby
<apeiros>
if you want to figure the formula to calculate it - given names.size = 5, inspect the array at those values for r: 0, 5, 15, 35, 75
madgen has joined #ruby
charliesome has joined #ruby
stannard has quit [Ping timeout: 276 seconds]
moeabdol has joined #ruby
bim has joined #ruby
<apeiros>
and I was wrong, with r= 1000000000, you get quite a lot more than 2000000000 items in the queue. you probably would run out of memory.
bim is now known as Guest54109
<apeiros>
oh, meh, or actually maybe not :)
freerobby has quit [Quit: Leaving.]
BSaboia has joined #ruby
<mrgrieves>
apeiros: I think you are on the right path with inspecting and figuring out the formula
lxsameer has quit [Quit: WeeChat 1.4]
Snowy has joined #ruby
Phasee has joined #ruby
madgen has quit [Ping timeout: 252 seconds]
skade has quit [Quit: Computer has gone to sleep.]
moeabdol has quit [Ping timeout: 276 seconds]
ndrst has joined #ruby
ndrst is now known as Guest53755
madgen has joined #ruby
giz|work has joined #ruby
anisha has quit [Quit: Leaving]
kobain has joined #ruby
FooMunki has joined #ruby
kobain has quit [Max SendQ exceeded]
kobain has joined #ruby
dopamean_ has joined #ruby
n008f4g_ has joined #ruby
ruby-lang956 has quit [Ping timeout: 250 seconds]
bronson has joined #ruby
ChiefAlexander has quit [Remote host closed the connection]
charliesome_ has joined #ruby
DoubleMalt has joined #ruby
smathy has joined #ruby
charliesome has quit [Ping timeout: 240 seconds]
stannard has joined #ruby
stannard has quit [Remote host closed the connection]
stannard has joined #ruby
perlgod has joined #ruby
ChiefAlexander has joined #ruby
codecop has quit [Remote host closed the connection]
charliesome_ has quit [Client Quit]
zast has joined #ruby
infernix has joined #ruby
Xeago_ has quit [Remote host closed the connection]
SilverKey has joined #ruby
mihail has joined #ruby
<mihail>
dd
DoubleMalt has quit [Remote host closed the connection]
mihail has quit []
IrishGringo has joined #ruby
deadnull_ has quit [Quit: Bye]
whippythellama has joined #ruby
Limix has joined #ruby
pandaant has quit [Remote host closed the connection]
mustmodify has joined #ruby
diegoaguilar has quit [Remote host closed the connection]
jhack has joined #ruby
freerobby has joined #ruby
hobodave has joined #ruby
dhollinger has joined #ruby
ixti has joined #ruby
jimcroft_ has quit []
jimcroft_ has joined #ruby
chey has quit [Ping timeout: 252 seconds]
jimcroft_ is now known as jimcroft
LastWhisper____ has joined #ruby
n008f4g_ has quit [Ping timeout: 260 seconds]
rojomisin has joined #ruby
saneax is now known as saneax_AFK
kareeoleez has joined #ruby
Rickmasta has joined #ruby
openstruct has joined #ruby
hxegon_afk is now known as hxegon
borodin has joined #ruby
kareeoleez has quit [Remote host closed the connection]
Devalo has joined #ruby
emilford has joined #ruby
weemsledeux has joined #ruby
hhee has quit [Ping timeout: 246 seconds]
pawnbox has quit [Ping timeout: 260 seconds]
Blaguvest has joined #ruby
aganov has quit [Remote host closed the connection]
polishdub has joined #ruby
chey has joined #ruby
blackmes1 has joined #ruby
znz_jp has quit [Quit: kill -QUIT $$]
skade has joined #ruby
pawnbox has joined #ruby
zacstewart has quit [Ping timeout: 260 seconds]
freerobby has quit [Quit: Leaving.]
madgen has quit [Ping timeout: 276 seconds]
freerobby has joined #ruby
znz_jp has joined #ruby
aegis3121 has quit [Ping timeout: 276 seconds]
maokomioko has joined #ruby
PedramT has joined #ruby
aegis3121 has joined #ruby
rodfersou has quit [Ping timeout: 246 seconds]
mark_66 has left #ruby ["PART #RubyOnRails :PART #elixir-lang :PART #crystal-lang :PONG :orwell.freenode.net"]
dionysus69 has quit [Ping timeout: 276 seconds]
giz|work has quit [Ping timeout: 260 seconds]
PedramT has quit [Ping timeout: 252 seconds]
zacstewart has joined #ruby
PedramT has joined #ruby
ruby-lang880 has joined #ruby
GinoMan2440 has joined #ruby
freerobby1 has joined #ruby
freerobby has quit [Read error: Connection reset by peer]
the_drow has quit [Quit: This computer has gone to sleep]
troulouliou_div2 has joined #ruby
blandflakes has joined #ruby
bronson has quit [Remote host closed the connection]
sgambino has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
enslavedtuna has joined #ruby
<enslavedtuna>
Hey guys quick question. I want to acces x[:test] but "test" is a string as in z = "test". how do i use z in the first statement? x[:#{z}] does not work
<apeiros>
z.to_sym
<adaedra>
x[z.to_sym]
rojomisin has quit [Ping timeout: 276 seconds]
<apeiros>
but if z is user-input, you should reconsider why you're using symbols as keys in the first place
n008f4g_ has joined #ruby
<adaedra>
go back to ninja school, apeiros
c_nick has joined #ruby
mjuszczak has joined #ruby
<enslavedtuna>
thanks a lot guys! did not know about to_sym
<apeiros>
why go back? I'm still a sensai there
<apeiros>
*sensei
<c_nick>
i am calling an exe using system(executable *args) How to output a log file with the status of the exe?
Limix has quit [Quit: Limix]
shadeslayer_ is now known as shadeslayer
<adaedra>
the status?
<enslavedtuna>
oh the : symbol is not part of the string, but I do need it in the index, is there a better way than to add : to the string?
<enslavedtuna>
ohh, I'm such a noob. Thanks again!
Yiota has joined #ruby
<kyle__>
It's been a while, but I __thought__ I used to be able to do something like this: r=/something (?<a>\S+) (?<b>\S+)/;File.read("somefile").scan(r)
<kyle__>
And get an array of matches with named captures. Is my memory fault here? Is that just something I wanted to happen and didn't?
<c_nick>
adaedra: yeah I trued with `` and with system surprisingly p gives me the output of the invoked cmd for both while one was supposed to tell me whether the call was successful or not
<c_nick>
since i am using team city i can let the output be displayed on the stdout only the success and failure of the command is what i am worried about
* adaedra
hits `derpy on the head
<adaedra>
then you can just use system() then check $?
<soahccc>
Is there a way to use OptionParser but not raising an InvalidOption exception? I just want it to treat unknown options as normal arguments... any chance? I tried with ex.recover but that doesn't resume processing and I need to not interrupt the order of arguments
<c_nick>
i think team city fails the job if the process status is failed
akem has quit [Ping timeout: 250 seconds]
rbr has quit [Disconnected by services]
<adaedra>
also, if the only thing you're doing is passing down the status to make the build fail, you can also exec(), which will transform your current process to the new one and remove the need of passing down the status.
<c_nick>
ah! i dont want that .. because the script is doing two interdependent things
<c_nick>
if i use exec() it will lose out on the second part
Limix has quit [Read error: Connection reset by peer]
duderonomy has quit [Ping timeout: 250 seconds]
akem has joined #ruby
bronson has quit [Remote host closed the connection]
kareeoleez has quit [Remote host closed the connection]
SilverKey has quit [Quit: Halted.]
Spami has quit [Read error: Connection reset by peer]
Spami has joined #ruby
rbr has quit [Ping timeout: 244 seconds]
sgambino has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
openstruct has quit []
<chey>
what do you guys use to write in ruby?
Limix has joined #ruby
<jackdaniel>
emacs (:
<chey>
using linux?
<jackdaniel>
yes, but emacs works fine on windows too
<chey>
thanks bro
<jackdaniel>
sure. be aware that emacs has somewhat steep learning curve, I knew it before
whathappens has joined #ruby
madgen has joined #ruby
<chey>
no worries i learn pretty fast
kareeoleez has joined #ruby
<jackdaniel>
sure, just a warning
duderonomy has joined #ruby
andikr has quit [Remote host closed the connection]
duderonomy has quit [Max SendQ exceeded]
DarkBushido has joined #ruby
DarkBushido has quit [Changing host]
DarkBushido has joined #ruby
SilverKey has joined #ruby
<chey>
yea i was just trying to find an ide to no avail
duderonomy has joined #ruby
moeabdol has joined #ruby
cocotton has joined #ruby
<smathy>
chey, for Linux?
duderonomy has quit [Max SendQ exceeded]
<chey>
yea
duderonomy has joined #ruby
enslavedtuna has quit [Ping timeout: 250 seconds]
kareeoleez has quit [Ping timeout: 260 seconds]
synthroid has quit [Remote host closed the connection]
<adaedra>
?ide
<ruby[bot]>
an IDE is not necessary to develop with ruby. A decent text editor is sufficient. If you truly want an IDE, take a look at RubyMine by JetBrains (https://www.jetbrains.com/ruby/).
LastWhisper____ has quit [Read error: Connection reset by peer]
<chey>
i just finished ruby on codecademy i did it twice
sgambino has joined #ruby
<adaedra>
twice!
Xeago_ has joined #ruby
<chey>
just to make sure
oncall-pokemon has joined #ruby
LastWhisper____ has joined #ruby
<chey>
hehe
moeabdol has quit [Ping timeout: 252 seconds]
jaguarmagenta has joined #ruby
Coldblackice has joined #ruby
stannard has quit [Remote host closed the connection]
CausaMortis has quit [Ping timeout: 260 seconds]
idefine has quit [Ping timeout: 244 seconds]
stannard has joined #ruby
idefine has joined #ruby
<soahccc>
c_nick: thanks I think that will work :)
terminal_ has joined #ruby
jaguarmagenta has quit [Ping timeout: 276 seconds]
RH72 has joined #ruby
Grantlyk has quit [Remote host closed the connection]
synthroid has joined #ruby
<chey>
emacs is quality thanks
whathappens has quit [Quit: Leaving...]
aegis3121 has quit [Ping timeout: 276 seconds]
LastWhisper____ has quit [Ping timeout: 260 seconds]
crystal77 has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
RegulationD has joined #ruby
rodfersou is now known as rodfersou|lunch
moeabdol has joined #ruby
kareeoleez has joined #ruby
Couch has quit [Ping timeout: 276 seconds]
stannard has quit [Remote host closed the connection]
emilford has quit [Ping timeout: 250 seconds]
Sot has joined #ruby
stannard has joined #ruby
dikaio has joined #ruby
Xeago_ has quit [Ping timeout: 246 seconds]
yardenbar has quit [Ping timeout: 250 seconds]
[Butch] has joined #ruby
Stephen321 has joined #ruby
<Stephen321>
Anyone ever find or develop a documentation standard for Web Forms?
kareeoleez has quit [Ping timeout: 240 seconds]
Xeago_ has joined #ruby
sp4rrow has joined #ruby
Elvin has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
infra-red has joined #ruby
Stephen321 has quit []
<chey>
what sort of situation do you put two ends at the end guys?
<chey>
if indented?
tlaxkit has quit [Quit: ¡Adiós!]
rbennacer has quit [Remote host closed the connection]
<smathy>
chey, two ends?
<chey>
yea
<smathy>
chey, in English, repeating something someone said with a question mark following it is shorthand for "I don't understand what this meant, please elaborate."
gdp has quit [Quit: Leaving]
rojomisin has joined #ruby
<chey>
there was a tutorial that i spent ages on the answer cus i had to put end under end
bqscott has quit [Ping timeout: 244 seconds]
<chey>
at the end of the script
bronson has joined #ruby
<chey>
but then sometimes i dont even put end at the end of a script
<toretore>
lol
<chey>
strange haha
newjersey has joined #ruby
newjersey has quit [Max SendQ exceeded]
bqscott has joined #ruby
blur3d has quit [Quit: blur3d]
p0p0pr37 has quit [Ping timeout: 240 seconds]
<chey>
and to think i have an alevel in english!
nrd_pxs has joined #ruby
pawnbox has joined #ruby
platzhirsch has left #ruby [#ruby]
kareeoleez has joined #ruby
Snowy has quit [Remote host closed the connection]
evidex has quit [Remote host closed the connection]
sneakerhax has joined #ruby
IrishGringo has quit [Ping timeout: 276 seconds]
mrgrieve1 has quit [Ping timeout: 276 seconds]
hobodave_ has joined #ruby
kareeoleez has quit [Ping timeout: 260 seconds]
IrishGringo has joined #ruby
stannard has quit [Remote host closed the connection]
stannard has joined #ruby
rkazak has quit [Ping timeout: 250 seconds]
Grantlyk has joined #ruby
Grantlyk has quit [Read error: Connection reset by peer]
djbkd has joined #ruby
stannard has quit [Remote host closed the connection]
Grantlyk has joined #ruby
djbkd has quit [Read error: Connection reset by peer]
charliesome has joined #ruby
mikecmpbll has quit [Ping timeout: 276 seconds]
Dimik has joined #ruby
djbkd has joined #ruby
S_Waqas has quit [Ping timeout: 244 seconds]
S_Waqas has joined #ruby
blackmes1 has quit [Ping timeout: 260 seconds]
hobodave has quit [Ping timeout: 260 seconds]
Xeago_ has quit [Ping timeout: 240 seconds]
stannard has joined #ruby
stannard has quit [Remote host closed the connection]
idefine has quit [Remote host closed the connection]
rbennacer has joined #ruby
stannard has joined #ruby
idefine has joined #ruby
wldcordeiro has joined #ruby
Grantlyk has quit [Ping timeout: 244 seconds]
malconis has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
whathappens has joined #ruby
ivanskie has joined #ruby
mitt3ns has joined #ruby
S_Waqas has quit [Ping timeout: 260 seconds]
malconis has joined #ruby
malconis has quit [Remote host closed the connection]
PedramT has quit [Remote host closed the connection]
S_Waqas has joined #ruby
mikecmpbll has joined #ruby
jhack has quit [Quit: jhack]
diegoaguilar has quit [Remote host closed the connection]
antgel has quit [Ping timeout: 246 seconds]
<mitt3ns>
Moin
silentpost has joined #ruby
benlieb has joined #ruby
Snowy has joined #ruby
Don_John has joined #ruby
agent_white has quit [Disconnected by services]
Logico has joined #ruby
mitt3ns is now known as agent_white
lsmola has quit [Ping timeout: 252 seconds]
RH72 has quit []
Don_John has quit [Client Quit]
drusepth has joined #ruby
bronson has quit [Remote host closed the connection]
hobodave_ has quit [Quit: Computer has gone to sleep.]
ChiefAlexander has joined #ruby
kareeoleez has joined #ruby
Ebok has quit [Quit: Leaving]
Ebok has joined #ruby
nando293921 has quit [Ping timeout: 252 seconds]
bklane has joined #ruby
salty_solution has joined #ruby
nando293921 has joined #ruby
`tim` has joined #ruby
ramfjord has quit [Ping timeout: 260 seconds]
BSaboia has quit [Quit: Leaving]
BSaboia has joined #ruby
<c_nick>
nemish: what is the issue
<salty_solution>
Has anyone played with the new rails 5.0 api goodness?
kareeoleez has quit [Ping timeout: 244 seconds]
dikaio has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
mikecmpbll has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<shevy>
the people on #rubyonrails have!
Ishido has joined #ruby
diegoaguilar has joined #ruby
mikecmpbll has joined #ruby
<c_nick>
nemish: comment line 28
nando293921 has quit [Ping timeout: 260 seconds]
* apeiros
sobs
igam` has quit [Ping timeout: 260 seconds]
<apeiros>
nemish: unless `role` is a method, which i doubt it is, you really should revisit my statement.
nando293921 has joined #ruby
tildes_ has quit [Ping timeout: 260 seconds]
Ebok has quit [Quit: This computer has gone to sleep]
blackmes1 has joined #ruby
openstruct has joined #ruby
jaruga___ has quit [Quit: jaruga___]
marr has joined #ruby
whathappens has quit [Remote host closed the connection]
Guest54109 has quit [Remote host closed the connection]
S_Waqas has quit [Read error: Connection reset by peer]
whathappens has joined #ruby
choke has joined #ruby
Cohedrin has joined #ruby
kareeoleez has joined #ruby
zast has quit [Remote host closed the connection]
the_drow has joined #ruby
mjuszczak has quit []
kareeoleez has quit [Remote host closed the connection]
zzz has joined #ruby
the_drow has quit [Read error: Connection reset by peer]
mesamoo has joined #ruby
whathappens has quit [Remote host closed the connection]
kareeoleez has joined #ruby
the_drow has joined #ruby
whathappens has joined #ruby
bronson has joined #ruby
chouhoul_ has joined #ruby
dionysus69 has quit [Remote host closed the connection]
thorgi_ is now known as thorgi
dionysus69 has joined #ruby
Sot has quit [Ping timeout: 250 seconds]
nando293921 has quit [Ping timeout: 260 seconds]
<benlieb>
Can anyone help me understand why ruby-install says it has installed ruby 2.2.3 but then it doesn't list it as available, and can't find it when 2.2.3 is in .ruby-version file?
<benlieb>
or am I misunderstand the default output of ruby-install?
chouhoulis has quit [Ping timeout: 252 seconds]
<havenwood>
benlieb: It is successfully installed, but ruby-install doesn't set GEM_HOME, GEM_PATH or modify PATH.
chipotle has quit [Read error: Connection reset by peer]
silentpost has quit [Ping timeout: 260 seconds]
<havenwood>
benlieb: chruby will detect the Ruby automatically in that location
<workmad3>
benlieb: also, if you're using chruby, then it evaluates its list of available rubies when you load the script... if you install a new ruby, you need to reload chruby for it to find the new one
<benlieb>
haven I'm using chruby which should switch
chipotle has joined #ruby
<benlieb>
I tried in a new terminal window...
<havenwood>
benlieb: chruby doesn't automatically switch unless you set it up to
drewo has joined #ruby
RegulationD has quit [Remote host closed the connection]
<benlieb>
it is set up to, and finds 2.2.4, 2.3, etc
<benlieb>
is it because it's not "stable"
drewo has quit [Client Quit]
<benlieb>
? I just started a project that is using 2.2.3
<workmad3>
benlieb: no... chruby doesn't care about that... it only cares about what rubies it can see
toretore has quit [Ping timeout: 240 seconds]
<havenwood>
benlieb: restart your terminal
freerobby1 has joined #ruby
the_drow has quit [Quit: This computer has gone to sleep]
<havenwood>
benlieb: RUBIES gets populated when you source chruby
cjbottaro has joined #ruby
freerobby has quit [Read error: Connection reset by peer]
nando293921 has joined #ruby
aupadhye has quit [Quit: Leaving]
drewo has joined #ruby
charliesome has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
Phasee has quit [Quit: Leaving]
<benlieb>
havenwood: yeah that worked
<benlieb>
had to be another window, not another tab, hm
TheHodge has quit [Ping timeout: 260 seconds]
SCHAAP137 has joined #ruby
PedramT has joined #ruby
dopie_ has joined #ruby
braderhart has quit [Ping timeout: 260 seconds]
ELCALOR has quit [Ping timeout: 240 seconds]
yardenbar has joined #ruby
jimcroft has quit [Ping timeout: 260 seconds]
lipoqil has quit [Ping timeout: 260 seconds]
jmcc___________ has quit [Ping timeout: 260 seconds]
err_ok has quit [Ping timeout: 260 seconds]
jlyndon has quit [Ping timeout: 260 seconds]
ggherdov has quit [Ping timeout: 260 seconds]
TheWhip has joined #ruby
idefine has quit [Remote host closed the connection]
bronson has quit [Remote host closed the connection]
sp4rrow has quit [Read error: Connection reset by peer]
Lightsword has quit [Quit: ZNC]
rodfersou|lunch is now known as rodfersou
lipoqil has joined #ruby
jlyndon has joined #ruby
discounted has joined #ruby
jmcc___________ has joined #ruby
dopie has quit [Ping timeout: 260 seconds]
sp4rrow has joined #ruby
shinnya has quit [Ping timeout: 252 seconds]
TheHodge has joined #ruby
ELCALOR has joined #ruby
PedramT has quit [Ping timeout: 246 seconds]
discounted has quit [Client Quit]
Elvin has joined #ruby
discounted has joined #ruby
chouhoul_ has quit [Remote host closed the connection]
Phasee has joined #ruby
Asher has quit [Quit: Leaving.]
idefine has joined #ruby
chouhoulis has joined #ruby
err_ok has joined #ruby
jimcroft has joined #ruby
p0p0pr37 has joined #ruby
Lightsword has joined #ruby
chouhoul_ has joined #ruby
Asher has joined #ruby
choke has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
Karunamon has quit [Ping timeout: 264 seconds]
dikaio has joined #ruby
idefine has quit [Ping timeout: 252 seconds]
idefine has joined #ruby
ggherdov has joined #ruby
braderhart has joined #ruby
chouhoulis has quit [Ping timeout: 240 seconds]
Karunamon has joined #ruby
whathappens has quit [Remote host closed the connection]
chouhoul_ has quit [Ping timeout: 246 seconds]
whathappens has joined #ruby
<nemish>
apeiros: maybe I'm not fully understanding your statement? You said I'm overriding role = facts[role]. role isn't currently set (only inside the facts hash). I'm trying to print out facts[role] and it's empty
toretore has joined #ruby
djbkd has quit [Remote host closed the connection]
ramfjord has joined #ruby
bronson has joined #ruby
Phasee has quit [Quit: Leaving]
karapetyan has joined #ruby
<nemish>
c_nick: I can and just did comment out line 28... but the 2 puts above it are printing blank values
bklane has quit [Read error: Connection reset by peer]
govg has joined #ruby
sp4rrow has quit [Quit: The Internet needs a break and I need a cookie]
<nemish>
My Role is
<nemish>
My FactsRole is
<nemish>
nothing evaluating for either
Rickmasta has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
rbennacer has joined #ruby
Lomex has joined #ruby
discounted has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<nemish>
is it because it's within the same context?
bklane has joined #ruby
<zacts>
hi rubyists
charliesome has joined #ruby
roadt__ has joined #ruby
roadt__ has quit [Max SendQ exceeded]
Phasee has joined #ruby
roadt__ has joined #ruby
elifoster has joined #ruby
roadt__ has quit [Max SendQ exceeded]
codecop has joined #ruby
roadt_ has quit [Ping timeout: 250 seconds]
roadt__ has joined #ruby
xcesariox has quit [Read error: Connection reset by peer]
charliesome has quit [Client Quit]
jaguarmagenta has joined #ruby
ta_ has joined #ruby
salty_solution has quit [Ping timeout: 250 seconds]
Lomex has quit [Remote host closed the connection]
<zacts>
oh nice
sdothum has quit [Quit: ZNC - 1.6.0 - http://znc.in]
<pipework>
zacts: I suggest you share your feelings with the gem. It might be scary, but if there are shared feelings, it might be the best thing in the world. Alternatively, it might crush you… but I say go for it!
idefine has quit [Ping timeout: 252 seconds]
<nixfreak>
Just one Ruby for now
replay has joined #ruby
RegulationD has quit [Ping timeout: 246 seconds]
benlieb has joined #ruby
Ox0dea has joined #ruby
<shevy>
zacts teach me too! I used to play with it years ago, then some changes happened, nokogiri was added and acted weird and I lost interest for a while. But I need some way to interact with remote websites from some ruby scripts eventually
<nixfreak>
I'm just trying to figure out how many depends I need
roadt_ has quit [Ping timeout: 252 seconds]
freerobby1 has quit [Quit: Leaving.]
jenrzzz has joined #ruby
<havenwood>
nixfreak: tar -xjvf ruby-2.3.1.tar.bz2 && cd ruby-2.3.1 && ./configure && make && sudo make install
<havenwood>
nixfreak: You can just copy ruby-2.3.1.tar.bz2 to your server and install it by hand if you'd like ^
freerobby has joined #ruby
<havenwood>
nixfreak: Then it's easy to install local gems.
SilverKey has quit [Quit: Halted.]
mrgrieves has quit [Quit: leaving]
<zacts>
shevy: well I think nokogiri has both XPath and CSS styles of navigating recursive XML/HTML structures
sdothum has joined #ruby
<nixfreak>
yeah I will have to build it which is fine , but then do I just download all of the gems and install
idefine_ has quit [Remote host closed the connection]
perlgod has joined #ruby
<pipework>
shevy: mechanize has a nice API.
<shevy>
nixfreak the .gem files are easy, just put them all onto a USB stick
<zacts>
it looks like this Oga gem uses only XPath
diegoaguilar has joined #ruby
<zacts>
Oga seems cool for certain applications
<shevy>
ruby itself you may have to compile, either on the offline computer, or build it on another one, then copy the respective files (should work without problem if it is the same arch)
<pipework>
zacts: Read the whole readme.
<zacts>
but I would have to try it
<zacts>
pipework: ah ok
<zacts>
ah I see
<zacts>
cool
<havenwood>
zacts: It's not just XPath, there're CSS queries as well.
<nixfreak>
ok great sounds like I answered my own questions , I'm new at ruby so I wanted to get a better opinon
<zacts>
neato
<pipework>
havenwood: And sax parsing!
<havenwood>
pipework: :D
<pipework>
So kinda like almost but does that even?
rcvalle has joined #ruby
<zacts>
perhaps I may prefer oga over nokogiri, I'll have to try it out
Gandalf has joined #ruby
Gandalf is now known as Guest28754
yardenbar has quit [Ping timeout: 260 seconds]
Pumukel has quit [Ping timeout: 276 seconds]
<pipework>
zacts: Lots of gems depend on nokogiri, but I suspect if you're using those you don't often care about the underlying library.
drewo has joined #ruby
CloCkWeRX has quit [Ping timeout: 246 seconds]
whathappens has quit [Remote host closed the connection]
chouhoulis has joined #ruby
perlgod_ has joined #ruby
blackmes1 has joined #ruby
davedev24 has joined #ruby
perlgod has quit [Read error: Connection reset by peer]
Pumukel has joined #ruby
chouhoul_ has joined #ruby
ptx0 has joined #ruby
whathappens has joined #ruby
<zacts>
ah yeah
skade has quit [Quit: Computer has gone to sleep.]
c_nick has joined #ruby
c_nick has left #ruby [#ruby]
<shevy>
hmmm one of my gems has a Gem::MissingSpecError
chouhoulis has quit [Ping timeout: 276 seconds]
<shevy>
aha... I do a rescue Gem::LoadError
blackmes1 has quit [Ping timeout: 276 seconds]
nando293921 has quit [Ping timeout: 276 seconds]
TheWhip has quit [Remote host closed the connection]
Rush has joined #ruby
RushPL has joined #ruby
synthroid has quit [Remote host closed the connection]
<akkad>
tragedy: ode to goats. the last song in a Dionysian play
<baweaver>
akkad no need for name calling in any case
northrup has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
DoubleMalt has joined #ruby
chandlerbing has joined #ruby
synthroid has quit []
discounted has quit [Client Quit]
<pipework>
I think it's amusing. It's not like the CVE isn't in a public database too...
<pipework>
there's greater need for calling people idiots who don't subscribe to security mailing lists for everything they use than there is for someone spending the money to buy a domain and name a bug.
karapetyan has quit [Remote host closed the connection]
<akkad>
domain registration over a CVE?
<pipework>
akkad: When you have loads of cash from your high paying software engineering job, you wouldn't even think twice, likely.
<adaedra>
For what a domain costs nowadays
<pipework>
Get one! Buy all the domains!
<pipework>
Name all the CVE's!
<baweaver>
wasn't it like $10 a year?
roadt__ has joined #ruby
<pipework>
You can get them less, but generally around there, yeah
<baweaver>
yeah, but those sites are pains to work with
<pipework>
I mostly do gandi, then namecheap, then nic.<tld>
nofacade has quit [Ping timeout: 260 seconds]
<adaedra>
Anyway, we're offtopicying here.
Lomex has joined #ruby
<baweaver>
yessir
<baweaver>
?ot
<ruby[bot]>
this seems to be off-topic. Please move your discussion to #ruby-offtopic, to keep this channel free for Ruby related topics. Thanks!
graft has quit [Quit: Lost terminal]
chopin has joined #ruby
discounted has joined #ruby
roadt_ has quit [Ping timeout: 246 seconds]
karapetyan has joined #ruby
ixti has quit [Quit: WeeChat 1.4]
whathappens has joined #ruby
ixti has joined #ruby
shark has joined #ruby
shark is now known as Guest37414
freerobby has quit [Quit: Leaving.]
SCHAAP137 has quit [Ping timeout: 250 seconds]
ur5us has joined #ruby
cloaked1 has joined #ruby
cloaked1 has quit [Changing host]
cloaked1 has joined #ruby
freerobby has joined #ruby
<chopin>
Hi all, quick question on best practices. I've read the patterns and good practices section on rubygems.org and done some googling but haven't found a complete answer.
<majuscule>
that's not a question!
workmad3 has joined #ruby
<pipework>
chopin: There isn't one.
<chopin>
I'm building my first gem which is a wrapper for an API. What's the best place to set a constant for the gem. Say for example the base url for said API?
DoubleMalt has quit [Remote host closed the connection]
<adaedra>
That sounds more like some configuration.
<pipework>
chopin: I don't necessarily like singleton constants for that. I prefer a configuration object.
<pipework>
singletons/constants*
<chopin>
Excellent. I guess it did feel 'weird'. I will do some more Googling. ty!
mjuszcza_ has quit []
`tim` has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
DoubleMalt has joined #ruby
hobodave has quit [Quit: Computer has gone to sleep.]
workmad3 has quit [Ping timeout: 260 seconds]
tvw has quit []
skade has joined #ruby
felltir has quit []
skade has quit [Client Quit]
SCHAAP137 has joined #ruby
Moosashi has quit [Quit: Moosashi]
drusepth has quit [Ping timeout: 246 seconds]
ldnunes has quit [Quit: Leaving]
dikaio has joined #ruby
Grantlyk has joined #ruby
chopin has quit [Remote host closed the connection]
GinoMan2440 has quit [Ping timeout: 244 seconds]
Grantlyk has quit [Read error: Connection reset by peer]
Grantlyk has joined #ruby
mjuszczak has joined #ruby
pawnbox has joined #ruby
mjuszcza_ has joined #ruby
mjuszcza_ has quit [Max SendQ exceeded]
kareeoleez has quit [Remote host closed the connection]
rbennacer has quit [Remote host closed the connection]
mjuszcza_ has joined #ruby
mjuszcza_ has quit [Max SendQ exceeded]
wldcordeiro has joined #ruby
Grantlyk has quit [Ping timeout: 244 seconds]
mjuszcza_ has joined #ruby
rbennace_ has joined #ruby
roadt__ has quit [Ping timeout: 250 seconds]
mjuszczak has quit [Ping timeout: 240 seconds]
pawnbox has quit [Ping timeout: 244 seconds]
hobodave has joined #ruby
kareeoleez has joined #ruby
dgncn has quit [Excess Flood]
rbennace_ has quit [Ping timeout: 244 seconds]
djbkd has joined #ruby
htmldrum has joined #ruby
DoubleMalt has quit [Remote host closed the connection]
dgncn has joined #ruby
GinoMan2440 has joined #ruby
karapetyan has quit [Remote host closed the connection]
rojomisin has joined #ruby
karapetyan has joined #ruby
dionysus69 has quit [Ping timeout: 250 seconds]
djbkd has quit [Remote host closed the connection]
karapetyan has quit [Remote host closed the connection]
karapetyan has joined #ruby
discounted has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
dhollinger has quit [Quit: WeeChat 1.4]
rojomisi1 has quit [Ping timeout: 244 seconds]
djbkd has joined #ruby
rkoller has joined #ruby
rkoller has quit [Client Quit]
mjuszcza_ has quit []
Lomex has quit [Remote host closed the connection]
Devalo has joined #ruby
northrup has joined #ruby
BSaboia has quit [Ping timeout: 244 seconds]
moei has joined #ruby
johnmilton has quit [Quit: Namaste]
Devalo has quit [Ping timeout: 250 seconds]
hhee has quit [Ping timeout: 260 seconds]
yfeldblum has joined #ruby
drewo has joined #ruby
dikaio has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
heyimwill has quit [Ping timeout: 260 seconds]
slackbotgz has joined #ruby
IrishGringo has joined #ruby
Kami has joined #ruby
GinoMan2440 has quit [Ping timeout: 250 seconds]
sgambino has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
johnny56_ has joined #ruby
mjuszczak has joined #ruby
Ishido has quit [Quit: Roads? Where We're Going We Don't Need Roads.]
sp4rrow has quit [Quit: The Internet needs a break and I need a cookie]
dopamean1 has joined #ruby
whathappens has quit [Remote host closed the connection]
minimalism has quit [Ping timeout: 250 seconds]
Kami has quit [Client Quit]
gnufied has quit [Quit: Leaving]
whathappens has joined #ruby
dopamean1 has quit [Client Quit]
johnny56 has quit [Ping timeout: 264 seconds]
dopamean1 has joined #ruby
minimalism has joined #ruby
dopamean_ has quit [Ping timeout: 244 seconds]
dopamean1 has quit [Client Quit]
sp4rrow has joined #ruby
Limix has quit [Quit: Limix]
dopie has joined #ruby
Infinite_182 has joined #ruby
spectra has quit [Ping timeout: 260 seconds]
heyimwill has joined #ruby
mjuszczak has quit [Client Quit]
Gasher has quit [Ping timeout: 276 seconds]
swills has quit [Ping timeout: 276 seconds]
mjuszczak has joined #ruby
[Butch] has quit [Ping timeout: 260 seconds]
Gasher has joined #ruby
chey has quit [Quit: Leaving]
weemsledeux has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
drusepth has joined #ruby
haylon has quit [Quit: WeeChat 1.4]
davedev24 has quit []
flashpoint9 has joined #ruby
djbkd has quit [Remote host closed the connection]
hobodave has quit [Quit: Computer has gone to sleep.]
Yiota has joined #ruby
GinoMan2440 has joined #ruby
last_staff has quit [Quit: last_staff]
Grantlyk has joined #ruby
Snowy has quit [Read error: Connection reset by peer]
yqt has joined #ruby
Snowy has joined #ruby
blaxter has joined #ruby
sgambino has joined #ruby
GinoMan2440_ has joined #ruby
hobodave has joined #ruby
Yiota has quit [Ping timeout: 240 seconds]
jaguarmagenta has joined #ruby
flashpoint9 has quit [Remote host closed the connection]
bronson has joined #ruby
<Infinite_182>
anyone know if you can put two attributes added together into the same collection_select?
biberu has quit []
GinoMan2440 has quit [Ping timeout: 276 seconds]
djbkd has joined #ruby
malconis has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
jaguarmagenta has quit [Ping timeout: 252 seconds]
TomyLobo has quit [Ping timeout: 276 seconds]
Snowy has quit [Quit: ragequit]
silentpo1t has joined #ruby
<zacts>
zombie chopin cool!
<zacts>
(kidding)
bronson has quit [Ping timeout: 252 seconds]
dikaio has joined #ruby
Grantlyk has quit []
spectra has joined #ruby
spectra has quit [Changing host]
spectra has joined #ruby
hobodave has quit [Ping timeout: 276 seconds]
flashpoint9 has joined #ruby
prooftechnique has quit [Ping timeout: 264 seconds]
<zacts>
if chopin were alive today, he would dig Ruby. That's all I can say. Anyway, back to #ruby
maokomioko has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
scepticulous has quit [Ping timeout: 276 seconds]
sp4rrow has quit [Quit: The Internet needs a break and I need a cookie]
sp4rrow has joined #ruby
<shevy>
ruby is like poetry, art and music combined
nemish has quit [Ping timeout: 264 seconds]
salty_solution has quit [Quit: Page closed]
rc0r has quit [Ping timeout: 264 seconds]
nemish has joined #ruby
<zacts>
indeed
prooftechnique has joined #ruby
nibbo has quit [Ping timeout: 276 seconds]
kareeoleez has quit [Remote host closed the connection]
flashpoint9 has quit [Ping timeout: 250 seconds]
shadows has joined #ruby
nibbo has joined #ruby
<akkad>
baweaver: oh the person who names the bug and not the exploit is clearly one who spends a lot of time alone, justifying the label
<baweaver>
akkad again, don't be rude
Limix has joined #ruby
workmad3 has joined #ruby
cdg has joined #ruby
aswen has quit [Quit: WeeChat 1.4]
<shadows>
given x = [[a,b,c],[1,2,3],[4,5,6],[d,e,f],[7,8,9]] ; smallest ruby-way to split x with regex ; result something like [ [[a,b,c],[1,2,3],[4,5,6]], [[d,e,f],[7,8,9]] ] ; I've got a working bit of code but it's ugly
<shadows>
tried messing with zip and map, only to end up in a big conditional loop
<shadows>
not super awesome how I have it right now
<baweaver>
you didn't mention the condition
<baweaver>
I just see an arbitrary split
<akkad>
baweaver: no rudeness. merely your neurological association of said word being projected on others.
<baweaver>
!rude akkad
<baweaver>
that's nice
slackbotgz has quit [Remote host closed the connection]
BSaboia has joined #ruby
<shadows>
baweaver: the input is a text dump from Wireshark and I'm only interested in pretty-ifying the bytes outputs; will pastebin sample input if it's somehow relevent
<baweaver>
use gist if you could
<baweaver>
A few in/out samples would do wonders to understanding the problem
bronson has joined #ruby
<pipework>
shadows: What we're seeing is that you have an array and want to split it taking the first three and the last two as two arrays that are the 0th and 1st elements of a new array.
<pipework>
Nothing you've said has made the necessity of regex plain.
<baweaver>
^
<shadows>
pipework: i'd like to do this if alphanumeric i.e.
workmad3 has quit [Ping timeout: 276 seconds]
<pipework>
shadows: regex are for string-like content.
<shadows>
ohh yeah I meant quoted letters
<shadows>
they're not variables
<shadows>
I'd better just come up with the input... will pastebin
<pipework>
I don't think either of us has any clue about what the other is saying.
ChiefAlexander has quit [Remote host closed the connection]
Azure has joined #ruby
nixfreak has quit [Ping timeout: 250 seconds]
<baweaver>
real data will help that
<shadows>
sorry for confusion will try to be more clear yes
<pipework>
Here's how you take x and split it. [x[0,2], x[3,-1]]
Ebok has quit [Quit: This computer has gone to sleep]
northrup has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
araujo has quit [Ping timeout: 244 seconds]
<baweaver>
shadows so this line type? '0000 c0 b4 44 9b 00 88 ff ff 53 02 00 04 08 00 00 00'
idefine has joined #ruby
<shadows>
yeah kind of
<pipework>
By giving us the desired outputs and inputs with some seemingly non-sequitur piece of code seems more like you've come up with a puzzle where the answer is the puzzle to solve the answer initially given.
<pipework>
A veritable Jeopardy+mastermind
rc0r has joined #ruby
rc0r is now known as Guest64287
<shadows>
baweaver: I don't care about that "block" of lines unless the first line in the block is /^[\w ]+ \(\d+ bytes\)\:.*\n/
<pipework>
shadows: I think what might help here is if you described using inputs that are real, what should be done to them in order to reach your intended result. Describe the logic involved.
<shadows>
wireshark byte display output splits on 8 byte margins (I couldn't find any common setting in Wireshark to change this and it's got to be repeatable without hacking up source)
<baweaver>
shadows nothing matches that regexp
tax has quit [Ping timeout: 260 seconds]
<pipework>
shadows: Hm, so you want to take some text and extract some of the values from it, right?
CausaMortis has joined #ruby
<pipework>
Miaow I assume you've got maybe like a line of the file in hand and you want to remove or extract some data, right?
whathappens has quit [Remote host closed the connection]
VeryBewitching has quit [Quit: Konversation terminated!]
<pipework>
So you've got a line and miaow you need to find values within it to purportedly do something else with.
<shadows>
oh paste.ubuntu wants login to view / download oops
<shadows>
the interesting lines don't happen until around line 30 or so
<shadows>
and I didn't even provide enough lines to make that happen
<shadows>
baweaver: I'm really not doing so hot today huh
<pipework>
We prefer gist
mikecmpbll has joined #ruby
<pipework>
See the topic.
<shadows>
looking thanks
davedev24 has joined #ruby
whathappens has joined #ruby
<baweaver>
It happens. Anyways, I'd better head off, still recovering from some sickness
chouhoul_ has joined #ruby
<shadows>
thanks for trying baweaver ... assembling better prepared question now with gist example
karapetyan has quit [Remote host closed the connection]
LastWhisper____ has quit [Ping timeout: 246 seconds]
crystal77 has joined #ruby
zenlot has joined #ruby
<shadows>
most of it is junk I don't want, so what I'm looking for are these blocks of text (ending in \n\n) that begin with a text label ending in "\(\d+ bytes\)\:"
nerium has quit [Quit: nerium]
diegoaguilar has quit [Remote host closed the connection]
mjuszczak has quit []
howdoico1 has quit [Ping timeout: 260 seconds]
<pipework>
shadows: Why use regex when you can use the String class?
polishdub has quit [Quit: Leaving]
weemsledeux has joined #ruby
Guest43 has joined #ruby
<pipework>
String#split is pretty cool, look at the arguments you can pass it.
weemsledeux has quit [Remote host closed the connection]
zenlot6 has quit [Ping timeout: 244 seconds]
nettoweb has quit [Ping timeout: 244 seconds]
<Guest43>
Hello. Would this be a good place to ask for some help with a dashing job? (dashing.io)
<pipework>
Guest43: When you say 'job' what do you mean?
<shadows>
pipework: well, currently I parse from stdin... so I should not try to wait until forever to parse... hmm
<Guest43>
pipework the actual rb script dashing is executing
madgen has quit [Ping timeout: 252 seconds]
swills has joined #ruby
<shadows>
pipework: interesting thought about String#split but I don't think I can do nested regexp groups
<shadows>
or can we?
<pipework>
shadows: So buffer up a string until it contains the delimeter yo uwant
<pipework>
Then fix that.
<pipework>
shadows: I'm still not sure you need any regular expressions yet.
charlespl has quit [Remote host closed the connection]
<shadows>
and then turn that into one line 57 00 20 10 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 30 06 W. .................0.
<shadows>
yeah
<ytti>
(i don't know what i'm talking about, i didn't really even read the url, sorry)
<ytti>
but hopefully you got some tools
<shadows>
you're still helpful thanks
ta_ has quit [Read error: Connection reset by peer]
Gasher has quit [Quit: Leaving]
rojomisin has quit [Ping timeout: 260 seconds]
IrishGringo has quit [Ping timeout: 244 seconds]
kirun has quit [Quit: Client exiting]
<ytti>
maybe
<ytti>
hex = hex.lines.map{|e|e.split(' ')[1]}
<ytti>
hexes << hex.lines.map{|e|e.split(' ')[1]}
ta_ has joined #ruby
n008f4g_ has quit [Ping timeout: 244 seconds]
crystal77 has quit [Ping timeout: 260 seconds]
jpterry has joined #ruby
csmb has joined #ruby
seitensei has joined #ruby
seitensei has quit [Changing host]
seitensei has joined #ruby
chopin has joined #ruby
whathappens has quit [Remote host closed the connection]
whathappens has joined #ruby
Xeago_ has quit [Remote host closed the connection]
Xeago_ has joined #ruby
Xeago_ has quit [Remote host closed the connection]
kfpratt has quit [Remote host closed the connection]
jhack has joined #ruby
zapata has quit [Ping timeout: 260 seconds]
silentpo1t has quit [Quit: leaving]
RegulationD has quit [Remote host closed the connection]
<Guest43>
https://gist.github.com/csbogdan/0474bdff604fb7be2877f2a9732585fa Any ideas as to why that file trows: /usr/local/rvm/gems/ruby-1.9.3-p551/gems/dashing-1.3.6/lib/dashing/app.rb:137:in `send_event' /vagrant/dashing/dashing/jobs/Mashery-jen.rb:57:in `block in <top (required)>' please?
n008f4g_ has joined #ruby
symm- has joined #ruby
CausaMortis has quit [Ping timeout: 260 seconds]
davedev24 has quit []
devbug has joined #ruby
shadowdf has joined #ruby
SilverKey has quit [Quit: Halted.]
chouhoulis has joined #ruby
chouhoulis has quit [Remote host closed the connection]
chouhoulis has joined #ruby
dopamean_ has joined #ruby
smathy is now known as smathy_afk
Infinite_182 has joined #ruby
elifoster has joined #ruby
ChiefAlexander has joined #ruby
ChiefAlexander has quit [Client Quit]
zapata has joined #ruby
rbennacer has joined #ruby
jhack has quit [Quit: jhack]
chopin has quit [Ping timeout: 244 seconds]
rbennace_ has joined #ruby
rbennacer has quit [Read error: Connection reset by peer]
oncall-pokemon has quit [Quit: Connection closed for inactivity]
mikecmpbll has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
robbyoconnor has joined #ruby
mjuszczak has joined #ruby
mikecmpbll has joined #ruby
mikecmpbll has quit [Client Quit]
Infinite_187 has joined #ruby
dikaio has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
chipotle has quit [Ping timeout: 252 seconds]
Vile` has joined #ruby
drewo has joined #ruby
dikaio has joined #ruby
Infinite_182 has quit [Ping timeout: 276 seconds]
mjuszcza_ has joined #ruby
Limix has joined #ruby
mjuszczak has quit [Ping timeout: 244 seconds]
benlieb has joined #ruby
madgen has joined #ruby
Emmanuel_Chanel has quit [Ping timeout: 246 seconds]
Devalo has joined #ruby
howdoico1 has quit [Ping timeout: 250 seconds]
justin_pdx has quit [Quit: justin_pdx]
whathappens has quit [Quit: Leaving...]
karapetyan has joined #ruby
CloCkWeRX has joined #ruby
Devalo has quit [Ping timeout: 250 seconds]
cjbottaro has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
ta_ has quit [Read error: Connection reset by peer]
<graft>
for some reason rack is barfing on multipart uploads, the problem seems to have something to do with Tempfile.new
<graft>
Rack does this: Tempfile.new(["RackMultipart", ::File.extname(filename)])
<Radar>
graft: Filename there seems weird, like it's being munged by something before it gets to Rack.
<Radar>
graft: Does Rails 4.2.6 fix this by any chance?
<graft>
4.2.6? hmm
<graft>
thing is this works on my production machine running ruby 2.2.0, but not on my dev machine running ruby 2.3.0 (yes, i know, don't yell at me)
idefine_ has joined #ruby
<graft>
the really, really weird thing is that between that Tempfile.new line in rack's parser.rb, and initialize in ruby's tempfile.rb, the first argument mutates from an Array (the one above) to a Hash (the one in the error)
mjuszczak has joined #ruby
mjuszczak has quit [Max SendQ exceeded]
<graft>
i have no idea how this could possibly happen
Spami has quit [Quit: This computer has gone to sleep]
<graft>
i feel like i'm taking crazy pills here
chipotle has joined #ruby
madgen has quit [Ping timeout: 260 seconds]
<graft>
and, again, all of this code works fine on my production machine
ledestin has joined #ruby
rbennace_ has quit [Remote host closed the connection]
mjuszczak has joined #ruby
sp4rrow has quit [Quit: The Internet needs a break and I need a cookie]
idefine has quit [Ping timeout: 276 seconds]
idefine__ has joined #ruby
djbkd has quit [Remote host closed the connection]
idefine has joined #ruby
s00pcan has quit [Remote host closed the connection]