jancel has quit [Remote host closed the connection]
horaceheaven has quit [Quit: horaceheaven]
dopamean1 has joined #ruby
freerobby has joined #ruby
horaceheaven has joined #ruby
dopamean_ has quit [Ping timeout: 260 seconds]
elifoster has joined #ruby
|ifei5g00d has quit [Ping timeout: 265 seconds]
zacstewart has quit [Ping timeout: 246 seconds]
horaceheaven has quit [Client Quit]
weemsledeux has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
horaceheaven has joined #ruby
horaceheaven has quit [Client Quit]
electrostat has quit [Quit: uwotm8]
cdg has quit [Remote host closed the connection]
bronson has joined #ruby
djbkd has joined #ruby
cdg has joined #ruby
horaceheaven has joined #ruby
kareeoleez has joined #ruby
|ifei5g00d has joined #ruby
horaceheaven has quit [Client Quit]
bronson has quit [Ping timeout: 252 seconds]
karmatr0n has quit [Ping timeout: 265 seconds]
horaceheaven has joined #ruby
cdg has quit [Ping timeout: 260 seconds]
Trynemjoel has joined #ruby
arescorpio has joined #ruby
|ifei5g00d has quit [Remote host closed the connection]
CausaMortis has quit [Ping timeout: 240 seconds]
horaceheaven has quit [Client Quit]
kareeoleez has quit [Ping timeout: 246 seconds]
|ifei5g00d has joined #ruby
electrostat has joined #ruby
whathapp_ has quit [Remote host closed the connection]
jzigmund_ has quit [Ping timeout: 244 seconds]
whathappens has joined #ruby
idefine has quit [Remote host closed the connection]
kareeoleez has joined #ruby
horaceheaven has joined #ruby
chipotle has quit [Quit: cheerio]
karapetyan has joined #ruby
Musashi007 has quit [Quit: Musashi007]
finisherr has quit [Quit: finisherr]
Trynemjoel has quit [Ping timeout: 264 seconds]
raeoks has joined #ruby
karapetyan has quit [Ping timeout: 244 seconds]
kareeoleez has quit [Ping timeout: 260 seconds]
bluOxigen has quit [Ping timeout: 265 seconds]
gregf has joined #ruby
gregf has quit [Client Quit]
aegis3121 has quit [Ping timeout: 250 seconds]
symm- has quit [Ping timeout: 240 seconds]
chipotle has joined #ruby
jobewan has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
idefine has joined #ruby
sharkman has joined #ruby
chopin has joined #ruby
<sharkman>
im trying to make a ruby program that talks to an API. and the API is giving me a feed that has a "last" variable with times that look like this 72392666
Ebok has quit [Quit: This computer has gone to sleep]
<sharkman>
any idea what time that is? how i can translate it into something human readable
JoshGlzBrk has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
ekinmur has joined #ruby
jdawgaz has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
tatsuo has joined #ruby
kareeoleez has joined #ruby
workmad3 has joined #ruby
Trynemjoel has joined #ruby
tatsuo has quit [Read error: No route to host]
tatsuo_ has joined #ruby
djellemah_ has quit [Ping timeout: 240 seconds]
<Radar>
sharkman: is that an actual example or did you make itup
jdawgaz has joined #ruby
Ebok has joined #ruby
<sharkman>
that number is real
<sharkman>
i wonder if its time from a totally arbitrary clock they have and i just have to store the number they give me
<sharkman>
in a table
kareeoleez has quit [Ping timeout: 250 seconds]
raeoks has quit [Ping timeout: 244 seconds]
<Radar>
Do you have some other representation of that time on a non-API version?
workmad3 has quit [Ping timeout: 240 seconds]
<Radar>
Does the "last" value increase on subsequent requests, or stay the same?
<sharkman>
well, its given to the client under the variable last, and its supposed to be sent to the API with the variable name "since"
Trynemjoel has quit [Ping timeout: 244 seconds]
<Radar>
What a weird attribute.
<Radar>
It's in no format that I can recognise.
<sharkman>
yeah. their documentation sucks. it just says to use the number received on the most recent request for LAST the next time you send a request under the SINCE parameter
Trynemjoel has joined #ruby
rkazak has quit [Quit: Sleep.....ing....]
LoneHermit has joined #ruby
quakephil_ has quit [Ping timeout: 246 seconds]
yqt has quit [Ping timeout: 260 seconds]
kareeoleez has joined #ruby
zacstewart has joined #ruby
blackgoat has quit [Ping timeout: 260 seconds]
banister has joined #ruby
jdawgaz has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
horaceheaven has quit [Quit: horaceheaven]
quakephil has joined #ruby
horaceheaven has joined #ruby
horaceheaven is now known as elfuego
kareeoleez has quit [Ping timeout: 276 seconds]
nando293921 has joined #ruby
jdawgaz has joined #ruby
idefine has quit [Remote host closed the connection]
astrobunny has quit [Remote host closed the connection]
rbennace_ has quit [Remote host closed the connection]
idefine has joined #ruby
nerium has quit [Quit: nerium]
danielpclark has joined #ruby
astrobunny has joined #ruby
astrobunny has quit [Remote host closed the connection]
jdawgaz has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
rbennacer has joined #ruby
mesamoo has quit [Quit: Konversation terminated!]
zotherstupidguy has quit [Ping timeout: 276 seconds]
gregf has joined #ruby
kareeoleez has joined #ruby
kkeuning has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
blackgoat has joined #ruby
sp4rrow has quit [Quit: The Internet needs a break and I need a cookie]
kareeoleez has quit [Ping timeout: 244 seconds]
ta_ has quit [Read error: Connection reset by peer]
ta_ has joined #ruby
<bougyman>
darix: woohoo!
<bougyman>
got my full tree recursion down from 7.0 seconds to 3.0
<bougyman>
2.5!
<bougyman>
this is awesome.
<bougyman>
all those tcp setups/teardowns/binds added a ton of overhead.
repel has joined #ruby
kkeuning has joined #ruby
jdawgaz has joined #ruby
postmodern has joined #ruby
kareeoleez has joined #ruby
kkeuning has quit [Max SendQ exceeded]
kkeuning has joined #ruby
Yzguy has joined #ruby
|2701 has quit [Quit: Connection closed for inactivity]
kareeoleez has quit [Ping timeout: 265 seconds]
joneshf-laptop has quit [Ping timeout: 276 seconds]
diegoviola has quit [Quit: WeeChat 1.5]
jancel has joined #ruby
Coldblackice has quit [Ping timeout: 252 seconds]
gregf has quit [Quit: WeeChat 1.5]
jancel has quit [Ping timeout: 240 seconds]
gregf has joined #ruby
elfuego has quit [Quit: elfuego]
jdawgaz has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
karmatr0n has joined #ruby
sonikspin has quit [Ping timeout: 276 seconds]
SilverKey has joined #ruby
dling has quit [Ping timeout: 276 seconds]
kareeoleez has joined #ruby
pawnbox has joined #ruby
karmatr0n has quit [Ping timeout: 265 seconds]
zacstewart has quit [Ping timeout: 276 seconds]
jdawgaz has joined #ruby
kareeoleez has quit [Ping timeout: 244 seconds]
tatsuo_ has quit [Remote host closed the connection]
noService has joined #ruby
braincrash has quit [Quit: bye bye]
pawnbox has quit [Ping timeout: 246 seconds]
smathy_afk is now known as smathy
zast has joined #ruby
chip_ has quit [Ping timeout: 244 seconds]
Devalo has joined #ruby
zacstewart has joined #ruby
noService has quit [Ping timeout: 244 seconds]
Xaitec has joined #ruby
ekinmur has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
zotherstupidguy has joined #ruby
whathappens has quit [Remote host closed the connection]
braincrash has joined #ruby
zacstewart has quit [Read error: Connection reset by peer]
whathappens has joined #ruby
Devalo has quit [Ping timeout: 250 seconds]
karmatr0n has joined #ruby
GriffinHeart has joined #ruby
whathappens has quit [Ping timeout: 265 seconds]
gix has quit [Ping timeout: 244 seconds]
kareeoleez has joined #ruby
danielpclark has quit [Ping timeout: 240 seconds]
Yzguy has quit [Quit: Zzz...]
gix has joined #ruby
kareeoleez has quit [Ping timeout: 244 seconds]
benlieb has quit [Quit: benlieb]
dh64 has joined #ruby
diegoaguilar has joined #ruby
matp has quit [Remote host closed the connection]
Eiam_ has joined #ruby
Yiota has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
wannabelife has joined #ruby
d0lph1n98 has joined #ruby
Yiota has joined #ruby
<bazzy>
Is there a way to programatically correlate the following pattern:
<bazzy>
c.user = config["user"]
<bazzy>
c.realname = config["realname"]
<bazzy>
c.server = config["server"]
<bazzy>
we see the string is the same as the variable ...
<bazzy>
I'd like to, if possible, not have to manually correlate the data
danielpclark has joined #ruby
<Radar>
is it always the same?
<bazzy>
if it wasn't, I don't think I could consider this as a solution ..
<bazzy>
unfortunately, I can only say, "for now, yes"
LoneHermit has quit [Remote host closed the connection]
<bazzy>
It should be that way for a very long time AFAIK
<Radar>
If it's a perfect 1-to-1 match then you can do this
<Radar>
config.each { |k,v| c.send("#{k}=", v) }
<Radar>
But if it's not, then you'll have to specify them manually as you have been doing.
hahuang61 has quit [Ping timeout: 250 seconds]
kareeoleez has joined #ruby
<bazzy>
it looks like my safest option is to stay manual .. I am noticing some discrepancies in the assignments
<bazzy>
hm.. actually .. I see a way to separate the "discrepancy" options so that I can group the non-discrepancies into their own hash .. and be able to reap the benefits of automatic assignment there
bruno- has quit [Ping timeout: 252 seconds]
Xaitec has quit [Remote host closed the connection]
<Radar>
I think it would look too weird having some that are auto assigned and some that are manually assigned
<bazzy>
no but it's actually categorical
<bazzy>
I was mixing in a config.yml "subsection" options that are specific to a framework I'm using and options that are sort "extended" and only specific to me and my app
kareeoleez has quit [Ping timeout: 276 seconds]
hahuang61 has joined #ruby
<bazzy>
I can dedicate a "sub-section" hash solely to the framework config options .. that will be the 1:1 mapped options for the framework
<wannabelife>
Hi peeps
CloCkWeRX1 has quit [Ping timeout: 250 seconds]
<bazzy>
I see what you're saying .. but .. who wants to add 50+ config stanzas manually when I might not have to bother .. and if the proposed solution actually helps categorize my config options too?
<bazzy>
I'm actually really interested in your opinion since I consider you a professional
<Radar>
bazzy: I think this is one of those things where I would have to tinker around with it to determine what the right approach is.
<bazzy>
I think it's safe to say that adding the "category" is the right step to take irregardless of whether I manually set the config variables or not :3
idefine has quit [Read error: Connection reset by peer]
<bazzy>
so Im definitely going to do that 1st
joelwallis has joined #ruby
lxsameer has joined #ruby
JoshGlzBrk has joined #ruby
<joelwallis>
Hi. I'm working on a Rails app where I need to write a migration file for it. I'm using the add_column to add an integer column to postgres but I don't know how to declare it as an integer
<joelwallis>
And since I'm new to Ruby I don't even know where to lookup for documentation
kareeoleez has joined #ruby
<Radar>
?rails joelwallis
<ruby[bot]>
joelwallis: Please join #RubyOnRails for Rails questions. You need to be identified with NickServ, see /msg NickServ HELP
<joelwallis>
roger! ty for pointing out the correct channel
joneshf-laptop has joined #ruby
<joelwallis>
Radar, ^
chopin has quit [Remote host closed the connection]
kareeole_ has joined #ruby
kareeoleez has quit [Ping timeout: 240 seconds]
hk238 has joined #ruby
kgrz has quit [Quit: leaving]
fedexo has joined #ruby
LoneHerm_ has joined #ruby
JoshGlzBrk has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
tmtwd has joined #ruby
CloCkWeRX has joined #ruby
sharkman has quit [Quit: Leaving]
blackwolf has quit [Remote host closed the connection]
GriffinHeart has quit [Remote host closed the connection]
Vile` has quit [Ping timeout: 250 seconds]
BTRE has quit [Ping timeout: 260 seconds]
GriffinHeart has joined #ruby
smathy is now known as smathy_afk
Yiota has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
Xiti has quit [Quit: Xiti]
kareeole_ has quit [Remote host closed the connection]
RegulationD has joined #ruby
Devalo has joined #ruby
rbennacer has quit [Remote host closed the connection]
<droptone>
bazzy: Stack Overflow users usually answer questions within a couple hours if needed.
ReK2 has joined #ruby
ReK2 has quit [Changing host]
ReK2 has joined #ruby
pawnbox has quit [Ping timeout: 240 seconds]
<havenwood>
Or here is good but I don't understand the question. What's "ssl.thing" about?
joelwallis has quit [Ping timeout: 250 seconds]
* havenwood
reads scrollback
zast has quit [Remote host closed the connection]
astrobunny has joined #ruby
kgrz has joined #ruby
jenrzzz has joined #ruby
jenrzzz has quit [Changing host]
jenrzzz has joined #ruby
CloCkWeRX has quit [Ping timeout: 276 seconds]
blackgoat has quit [Ping timeout: 244 seconds]
solocshaw has quit [Ping timeout: 250 seconds]
danielpclark has quit [Ping timeout: 252 seconds]
<havenwood>
it's pulling
<havenwood>
takes a few
<havenwood>
fixing permissions
<havenwood>
done
<havenwood>
3min looping
freerobby has quit [Quit: Leaving.]
tatsuo has joined #ruby
sdothum has quit [Quit: ZNC - 1.6.0 - http://znc.in]
hahuang61 has quit [Ping timeout: 276 seconds]
griffindy has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
d0lph1n98 has quit [Ping timeout: 244 seconds]
danielpclark has joined #ruby
karmatr0n has quit [Ping timeout: 244 seconds]
shevy has quit [Ping timeout: 250 seconds]
benlieb has joined #ruby
Ebok has joined #ruby
terminalrecluse has joined #ruby
shevy has joined #ruby
blackgoat has joined #ruby
CloCkWeRX has joined #ruby
Devalo has quit [Remote host closed the connection]
<havenwood>
err, misstell >.>
jenrzzz has quit [Ping timeout: 260 seconds]
araujo has quit [Ping timeout: 240 seconds]
jancel has joined #ruby
pawnbox has joined #ruby
Musashi007 has joined #ruby
hinbody has joined #ruby
tvw has joined #ruby
Devalo has joined #ruby
repel` has joined #ruby
jancel has quit [Read error: Connection reset by peer]
dikaio has joined #ruby
repel has quit [Ping timeout: 265 seconds]
icey has quit [Ping timeout: 260 seconds]
jancel has joined #ruby
chris349 has quit [Ping timeout: 265 seconds]
arescorpio has quit [Quit: Leaving.]
pawnbox_ has joined #ruby
tax has quit [Quit: Leaving]
hahuang61 has joined #ruby
LoneHerm_ has quit [Remote host closed the connection]
pawnbox has quit [Ping timeout: 260 seconds]
stardiviner has quit [Ping timeout: 250 seconds]
wannabelife has quit [Read error: Connection reset by peer]
dionysus69 has joined #ruby
djellemah has joined #ruby
hahuang61 has quit [Ping timeout: 260 seconds]
stryek has quit [Ping timeout: 244 seconds]
jancel has quit [Ping timeout: 265 seconds]
ta_ has quit [Remote host closed the connection]
tmtwd has quit [Ping timeout: 260 seconds]
Ox0dea has quit [Ping timeout: 250 seconds]
bobbycvi has quit [Quit: ...]
sauvin has joined #ruby
tatsuo has quit [Remote host closed the connection]
stryek has joined #ruby
ravishankarjha has joined #ruby
Ebok has quit [Quit: This computer has gone to sleep]
Ox0dea has joined #ruby
kareeoleez has joined #ruby
crystal77 has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
last_staff has joined #ruby
Ishido has joined #ruby
d0lph1n98 has joined #ruby
mdw has joined #ruby
bronson has joined #ruby
skade has joined #ruby
noService has quit [Quit: leaving]
Slackman_ has joined #ruby
stryek has quit [Ping timeout: 250 seconds]
bronson has quit [Ping timeout: 252 seconds]
mdw has quit [Quit: Sleeping Zzzzz]
stardiviner has joined #ruby
Devalo has quit [Remote host closed the connection]
bruno- has joined #ruby
ta_ has joined #ruby
edwinvdgraaf has quit [Remote host closed the connection]
c355e3b has quit [Quit: Connection closed for inactivity]
stryek has joined #ruby
bruno- has quit [Ping timeout: 250 seconds]
Slackman_ has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
ta_ has quit [Ping timeout: 276 seconds]
danielpclark has quit [Ping timeout: 260 seconds]
<kgrz>
Just noticed a conditional in Rails source of the form `source[0] != ?/` I remember reading about the `?` long back in a Ruby reference book, but forgot what it does (apart from creating a string). Can't find documentation online. Anyone know it does internally?
SuperLag has joined #ruby
<Arcaire>
kgrz: It's a single character string.
isxek has joined #ruby
brent__ has joined #ruby
moeabdol has joined #ruby
<Arcaire>
Depending on which version of Ruby you're on it'll either be an actual String or a Fixnum, as Ruby doesn't have a Character class.
<Arcaire>
Fixnum is for 1.8 and below.
<Arcaire>
This would be the same as of Ruby 1.9: source[0] != "/"
<Arcaire>
And IIRC using that notation (?/ etc) is considered bad now.
Musashi007 has quit [Quit: Musashi007]
stardiviner has quit [Ping timeout: 252 seconds]
rodfersou has joined #ruby
ramfjord has joined #ruby
<brent__>
Hello. I'm trying to get a better understanding of factory methods
<brent__>
does this look like i'm using it correctly
Oog has joined #ruby
GriffinHeart has quit [Remote host closed the connection]
<brent__>
can i call that instance variable inside the factory method?
<brent__>
sorry *instance mthod
ur5us has quit [Remote host closed the connection]
danielpclark has joined #ruby
<Arcaire>
brent__: Try it and tell me.
aufi has joined #ruby
ur5us has joined #ruby
<brent__>
writing the parse file now
claw has quit [Ping timeout: 276 seconds]
claw has joined #ruby
ausum_possum has joined #ruby
ur5us has quit [Ping timeout: 260 seconds]
gz_rain has joined #ruby
gz_rain has quit [Client Quit]
noService has joined #ruby
Tichodroma has joined #ruby
<kgrz>
Arcaire: ah, thank you for the clarification. Do you know if this is documented somewhere? I tried to search the Ruby source code for it, but wasn't able to find it, but did notice its usage in many places
<kgrz>
Will try it out again
<brent__>
looks like i needed to make parse_file self.parse_file?
ausum_possum is now known as CuriousPossum
<Arcaire>
brent__: Yes.
<Arcaire>
kgrz: It will be somewhere, I don't know where off the top of my head.
<Arcaire>
It's well documented enough for answers to be found on StackOverflow, so I'm sure it's in the stdlib docs somewhere.
ferr has joined #ruby
kareeoleez has quit [Remote host closed the connection]
codecop has joined #ruby
high has joined #ruby
high is now known as Guest16227
Slackman_ has joined #ruby
<brent__>
thanks Arcaire
<Arcaire>
All good fam.
<brent__>
in pry
<brent__>
i created a board instance w/ the Board::from_file
<brent__>
i had a render method
<brent__>
when i call the render method, afterwords, it still displays the board isntance
Slackman_ has quit [Ping timeout: 260 seconds]
<brent__>
so it lists it's instance variables, like @grid (which is long and ugly)
<brent__>
how would i stop that
<Arcaire>
That only happens in Pry.
<Arcaire>
That's just because of, well, how that and any other REPL interpreter for Ruby works.
<brent__>
okay, so no way to stop it from showing the object instance after calling a command?
<Arcaire>
There probably is.
bradleesand has left #ruby [#ruby]
<Arcaire>
I don't know how, though.
<brent__>
okay cool
karmatr0n has joined #ruby
<Arcaire>
I remember having this conversation with someone maybe two weeks ago, actually.
nicefoy2345 has joined #ruby
<Arcaire>
They didn't want it gone but wondered what it was.
<Arcaire>
If you run the thing as a script or application, that output won't happen.
Oog has quit []
<Arcaire>
It's only because irb/pry are used very commonly to debug and that sort of output is helpful.
<nicefoy2345>
Is Ruby dying? Is it worth learning?
<Arcaire>
No. Yes.
<arahael>
Unfortunately, languages don't die.
skade has quit [Quit: Computer has gone to sleep.]
<hanmac>
nicefoy2345: the rumor that ruby is dying is that what java wants you to think ;P
<droptone>
If I want to execute a .each loop on an array, but skip the first index (index 0), is it best to use .each_with_index and then next if index == 0?
<droptone>
or is there a better way to do that?
dopamean1 has quit [Ping timeout: 260 seconds]
<hanmac>
droptone: yeah i think that might be the best way to do it
<droptone>
hanmac: ty
karmatr0n has quit [Ping timeout: 260 seconds]
czerasz has joined #ruby
<Arcaire>
droptone: array[1..-1].each
stardiviner has joined #ruby
<droptone>
ahh, ok
<droptone>
Arcaire: ty
SilverKey has quit [Quit: Halted.]
skol has joined #ruby
skol has quit [Remote host closed the connection]
skol has joined #ruby
skol has quit [Remote host closed the connection]
czerasz has quit [Ping timeout: 250 seconds]
skol has joined #ruby
skol has quit [Remote host closed the connection]
skol has joined #ruby
DoubleMalt has joined #ruby
Contigi has quit [Quit: Leaving]
firstdayonthejob has joined #ruby
<brent__>
legends never die
<arahael>
Cobol and Delphi are still going. :(
<droptone>
Random epic statment
Eiam_ has quit [Quit: ╯°□°)╯︵ǝpouǝǝɹɟ]
CuriousPossum has quit [Ping timeout: 260 seconds]
last_staff has quit [Quit: last_staff]
<Arcaire>
COBOL and Delphi are very limited in their industries today though.
<Arcaire>
Mostly banking.
skol has quit [Ping timeout: 276 seconds]
<arahael>
Arcaire: Not mostly banking, no.
jenrzzz has joined #ruby
<Arcaire>
Uh, sure thing.
<arahael>
I hear that there's a lot of Cobol in airlines.
emilkarl has joined #ruby
<droptone>
My bank codes everything in the 1980s verson of logo
<Arcaire>
wtf that's for education
<droptone>
The web UI takes about 10 minutes to draw as the turtle moves around the screen
<Arcaire>
oh you're kidding
<Arcaire>
lmao
<droptone>
:)
<Arcaire>
I've seen some weird stuff in my time so I wasn't sure outright if you were serious.
terminalrecluse has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
skade has joined #ruby
<arahael>
My bank used to use an on-screen randomised keyboard for "security" reasons.
<baweaver>
arahael: Mainly RPG here for banks
<baweaver>
COBOL for other industries
<arahael>
And literally insisted on an 8-char password, with uppercase, lowercase, symbols and numbers - and additionally, a character from each distinct row and column of the onscreen keyboard.
<arahael>
Which rather reduces the search scope.
tax has joined #ruby
bruno- has joined #ruby
GriffinHeart has joined #ruby
jgt has joined #ruby
ta_ has joined #ruby
johnDoe111 has joined #ruby
benlieb has quit [Quit: benlieb]
GriffinHeart has quit [Read error: Connection reset by peer]
GriffinHeart has joined #ruby
shmuli has joined #ruby
b|ackwolf has joined #ruby
firstdayonthejob has quit [Ping timeout: 240 seconds]
bruno- has quit [Ping timeout: 265 seconds]
<hanmac>
have you guys seen the one episode from "Comunity" where the Boss get a new Operating System which does uses VirtualReality? i wouldnt be much surprised if such a thing really exist XD
Cohedrin has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
nobitanobi has joined #ruby
jenrzzz has quit [Ping timeout: 240 seconds]
skade has quit [Quit: Computer has gone to sleep.]
<Arcaire>
dudewhat.jpg
jenrzzz has joined #ruby
Ch4rAss has joined #ruby
shmuli has quit [Remote host closed the connection]
<hanmac>
Arcaire: yeah he does use "bow and Arrow" to select a File inside the VR XD (he wanted to delete the file) and because it didnt work as he wanted, he does put the File under water until no bubbles are coming up.
dopamean1 has joined #ruby
fedexo has quit [Ping timeout: 250 seconds]
mdw has joined #ruby
mdw has quit [Client Quit]
matp has joined #ruby
shmuli has joined #ruby
shmuli has quit [Remote host closed the connection]
<shevy>
hmm we have .chop! ... but do we have a similar method for the start of a string? right now I use something like string[0,1] = '' to chop it off
GriffinHeart has quit [Remote host closed the connection]
<Caerus>
but ignoring the bom doesn't seem sane, could put you in a tight spot if it stops showing in the feed
bruno- has joined #ruby
<solars>
Caerus, yep that's what I used now
<solars>
I hate this bom stuff
koooge has quit [Quit: Leaving...]
bruno- has quit [Ping timeout: 260 seconds]
codecop has joined #ruby
the_drow has quit [Read error: Connection reset by peer]
<shevy>
hehe
vdamewood has quit [Quit: Life beckons.]
johnDoe111 has quit [Ping timeout: 265 seconds]
the_drow has joined #ruby
GodFather has quit [Ping timeout: 260 seconds]
mdw has joined #ruby
shmuli has quit [Remote host closed the connection]
blackgoat has quit [Quit: WeeChat 1.4]
astrobunny has quit [Remote host closed the connection]
Tichodroma has left #ruby [#ruby]
Macaveli has joined #ruby
mdw has quit [Quit: Sleeping Zzzzz]
mdw has joined #ruby
mdw has quit [Client Quit]
Musashi007 has quit [Quit: Musashi007]
jds has quit [Quit: Connection closed for inactivity]
GriffinHeart has joined #ruby
<apeiros>
solars: meetings, sorry. I copy & pasted your csv and used `CSV.parse(raw, col_sep: ";")`
<apeiros>
where `raw = %{…copy & paste here}`
<solars>
apeiros, it was a BOM problem :/
<solars>
thanks for the reply though
rkoller has quit [Read error: Connection reset by peer]
rkoller_ has joined #ruby
<apeiros>
solars: csvlint probably failed because the C in CSV stands for coma, not semicolon.
<apeiros>
and with , as assumed delimiter, the data is indeed invalid
karmatr0n has joined #ruby
jgt has quit [Ping timeout: 276 seconds]
blackgoat has joined #ruby
terlar has quit [Ping timeout: 276 seconds]
the_drow has quit [Read error: Connection reset by peer]
twinklehood has joined #ruby
Guest22127 has quit [Ping timeout: 276 seconds]
<twinklehood>
I have a question.. is the docs for String#== lying? If i implement a class, defining to_str to return "x", and compare "x" to Newclass.new with ==, i get false?
johnmilton has quit [Remote host closed the connection]
jraphael has joined #ruby
karmatr0n has quit [Ping timeout: 250 seconds]
<shevy>
can you gist the code?
d0lph1n98 has joined #ruby
Guest9272 has joined #ruby
the_drow has joined #ruby
<solars>
apeiros, yep youre right
RegulationD has joined #ruby
<twinklehood>
Sure, sec
troulouliou_div2 has quit [Quit: Leaving]
twinklehood has quit [Read error: Connection reset by peer]
<Ox0dea>
That idiom usually connotes negatively, so no.
the_drow has quit [Ping timeout: 276 seconds]
konsolebox has quit [Quit: Leaving]
<shevy>
twinklehood the ruby docs won't win a prize anyway
<shevy>
one would have to come up with a better alternative. I am not sure how that alternative should be either
<twinklehood>
Well, "Did I lead your attention on to a subject which may course a suprising amount of discoveries, which require attention" sounds so diplomatic.
<Ox0dea>
It's also not what "rabbit hole" means.
the_drow has joined #ruby
<twinklehood>
ok
<arahael>
Rabbit holes are to be _avoided_.
<Ox0dea>
^
<arahael>
And they have no end. They're bottomless.
ifsp has quit [Quit: WeeChat 1.4]
<Ox0dea>
Bottom = Just Nothing
<Ox0dea>
/part #shittyhaskell
<arahael>
Ox0dea: Bottom = undefined
<Ox0dea>
arahael: See above. :P
<shevy>
Maybe Bottom
<twinklehood>
I'm painfully sorry about that, non-nativism showing.
twinklehood has quit [Quit: leaving]
<arahael>
Ox0dea: Sorry, I just hit _|_
freerobby has joined #ruby
aagdbl has joined #ruby
<shevy>
hop hop to disconnect!
skade has quit [Quit: Computer has gone to sleep.]
gigetoo has quit [Ping timeout: 265 seconds]
gigetoo has joined #ruby
Xiti has joined #ruby
last_staff has joined #ruby
brunto has quit [Ping timeout: 260 seconds]
dvinciguerra has joined #ruby
jgt has joined #ruby
rubswax has joined #ruby
rubswax has quit [Client Quit]
the_drow has quit [Read error: Connection reset by peer]
tvw has quit []
tvw has joined #ruby
the_drow has joined #ruby
duncannz has quit [Remote host closed the connection]
freerobby has quit [Quit: Leaving.]
giz|work has quit [Ping timeout: 260 seconds]
blaxter has joined #ruby
giz|work has joined #ruby
siovene has joined #ruby
chipotle has joined #ruby
jwang has quit [Ping timeout: 246 seconds]
Yeomra has joined #ruby
skade has joined #ruby
jaguarmagenta has joined #ruby
jwang has joined #ruby
brunto has joined #ruby
GodFather has joined #ruby
xall has quit [Ping timeout: 252 seconds]
gnufied has joined #ruby
duderono_ has joined #ruby
jaguarmagenta has quit [Ping timeout: 276 seconds]
d0lph1n98 has quit [Ping timeout: 252 seconds]
pawnbox_ has quit [Remote host closed the connection]
duderonomy has quit [Ping timeout: 276 seconds]
the_drow has quit [Read error: Connection reset by peer]
the_drow has joined #ruby
munish has joined #ruby
Parko has quit [Quit: In a while, crocodile]
johnmilton has joined #ruby
chipotle has quit [Ping timeout: 265 seconds]
munish has left #ruby [#ruby]
pandaant has joined #ruby
the_drow has quit [Read error: Connection reset by peer]
chipotle has joined #ruby
nobitanobi has quit [Remote host closed the connection]
agit0 has joined #ruby
crameth has joined #ruby
neanderslob has quit [Disconnected by services]
neanderslob_ has joined #ruby
ur5us has quit [Remote host closed the connection]
the_drow has joined #ruby
Vile` has joined #ruby
icey has joined #ruby
saneax is now known as saneax_AFK
TvL2386 has quit [Ping timeout: 252 seconds]
umdstu has joined #ruby
the_drow has quit [Read error: Connection reset by peer]
pawnbox has joined #ruby
antgel has quit [Ping timeout: 244 seconds]
the_drow has joined #ruby
nobitanobi has joined #ruby
skade has quit [Quit: Computer has gone to sleep.]
tatsuo has joined #ruby
freerobby has joined #ruby
ldnunes has joined #ruby
the_drow has quit [Read error: Connection reset by peer]
GodFather has quit [Ping timeout: 244 seconds]
kam270 has joined #ruby
WebDevB has joined #ruby
<WebDevB>
Hey guys, I'm looking for a ruby on rails dev for some ad-hoc work... It's will range from a couple of hours a month to a couple of days a month.
<WebDevB>
Is anyone interested?
tatsuo has quit [Ping timeout: 276 seconds]
the_drow has joined #ruby
bronson has joined #ruby
the_drow has quit [Max SendQ exceeded]
the_drow has joined #ruby
postmodern has quit [Quit: Leaving]
d0lph1n98 has joined #ruby
Gasher has joined #ruby
noobsu has joined #ruby
Gasher has quit [Remote host closed the connection]
TvL2386 has joined #ruby
Mon_Ouie has joined #ruby
the_drow has quit [Read error: Connection reset by peer]
bronson has quit [Ping timeout: 252 seconds]
duderono_ has quit [Ping timeout: 265 seconds]
danielpclark has quit [Quit: Leaving]
crameth has quit [Ping timeout: 252 seconds]
the_drow has joined #ruby
the_drow has quit [Max SendQ exceeded]
mdw has joined #ruby
the_drow has joined #ruby
mdw has quit [Client Quit]
kkeuning has joined #ruby
duderonomy has joined #ruby
Yeomra has quit [Ping timeout: 276 seconds]
kkeuning has quit [Max SendQ exceeded]
the_drow has quit [Read error: Connection reset by peer]
kkeuning has joined #ruby
the_drow has joined #ruby
Yiota has joined #ruby
mar77i has joined #ruby
hanmac has quit [Ping timeout: 276 seconds]
<mar77i>
hello #ruby. I have trouble running bundler on my ruby-2.3.1 installation. the error message I get is "Your Ruby version is 2.3.1, but your Gemfile specified 2.3.0" -- interestingly, though, trying to compile the ruby 2.3.1 package I found this in the output: "configure: ruby library version = 2.3.0", which I suspect is the source of this problem?
<mar77i>
I figured this out after ruby -e "print Gem.user_dir" would also return 2.3.0, which seemed kind of funky.
the_drow has quit [Read error: Connection reset by peer]
<mar77i>
I can't see any downstream instruction to create this discrepancy, though. could you enlighten a ruby illiterate in this regard?
crameth has joined #ruby
nashant has joined #ruby
repel` has quit [Remote host closed the connection]
<Ox0dea>
nashant: Looks like you'll need to define "wrong".
the_drow has quit [Read error: Connection reset by peer]
wpp has quit [Client Quit]
jespada has joined #ruby
aagdbl0 has quit [Client Quit]
the_drow has joined #ruby
crameth_ has joined #ruby
aagdbl has quit [Read error: Connection reset by peer]
Vile` has quit [Ping timeout: 244 seconds]
<mar77i>
if you're going to append arbitrary paths there, you may want to resolve and/or remove ../ so that the path can't be escaped from. there may be a library function to do this kind of thing, too.
ctp has joined #ruby
sepp2k has joined #ruby
WebDevB has quit []
hanmac has joined #ruby
terlar has joined #ruby
synthroid has joined #ruby
<nashant>
0x0dea: Fair enough, if it's not simple enough to spot immediately I can't be way off the mark! I'm just starting to play with puppet and $path is just a string to feed as a parameter. If $osfamily=='redhat' the string should be '/var/www/html/index.html', otherwise just '/var/www/index.html'
<nashant>
but I'm getting a syntax error
aagdbl has joined #ruby
sdothum has joined #ruby
crameth__ has joined #ruby
crameth has quit [Ping timeout: 265 seconds]
<Ox0dea>
nashant: As demonstrated, your syntax error must be elsewhere.
dionysus69 has quit [Ping timeout: 260 seconds]
karapetyan has joined #ruby
<nashant>
0x0dea: So that should be right? Hmm, maybe puppet can't do inline ternary string concat
the_drow has quit [Read error: Connection reset by peer]
nando293921 has quit [Ping timeout: 244 seconds]
<Ox0dea>
nashant: It *is* right. You might be missing an `end` or something along those lines.
crameth_ has quit [Ping timeout: 252 seconds]
the_drow has joined #ruby
araujo_ has joined #ruby
chip_ has joined #ruby
araujo_ has quit [Max SendQ exceeded]
karapetyan has quit [Ping timeout: 260 seconds]
araujo_ has joined #ruby
Fernando-Basso has joined #ruby
araujo has quit [Ping timeout: 240 seconds]
blackmes1 has quit [Ping timeout: 240 seconds]
araujo_ has quit [Max SendQ exceeded]
araujo_ has joined #ruby
karmatr0n has joined #ruby
the_drow has quit [Read error: Connection reset by peer]
araujo_ has quit [Max SendQ exceeded]
araujo_ has joined #ruby
araujo_ has quit [Max SendQ exceeded]
the_drow has joined #ruby
chip_ has quit [Ping timeout: 276 seconds]
araujo_ has joined #ruby
BlacksmithMetash has joined #ruby
araujo_ has quit [Max SendQ exceeded]
<mar77i>
what could I be doing wrong with 2.3.1?
CloCkWeRX has quit [Remote host closed the connection]
araujo_ has joined #ruby
GodFather has joined #ruby
jancel has joined #ruby
hahuang61 has joined #ruby
kaffepanna has joined #ruby
jraphael has quit [Quit: Page closed]
the_drow has quit [Read error: Connection reset by peer]
hahuang61 has quit [Ping timeout: 250 seconds]
the_drow has joined #ruby
Vile` has joined #ruby
lxsameer has quit [Quit: WeeChat 1.5]
<Caerus>
see ya later #ruby
Caerus is now known as Caerus|Away
the_drow has quit [Read error: Connection reset by peer]
<apeiros>
mar77i: the project you use has a Gemfile which says the project requires ruby 2.3.0, and you use 2.3.1
<apeiros>
so either update the Gemfile or use 2.3.0
rbennacer has quit [Read error: Connection reset by peer]
johnbat26 has joined #ruby
rbennace_ has joined #ruby
the_drow has quit [Ping timeout: 244 seconds]
vdamewood has quit [Max SendQ exceeded]
bruno- has joined #ruby
terlar has joined #ruby
skade has joined #ruby
djcp has joined #ruby
diegoaguilar has quit [Ping timeout: 244 seconds]
rbennacer has joined #ruby
nerium has joined #ruby
bruno- has quit [Ping timeout: 240 seconds]
emirpasic has joined #ruby
emirpasic has quit [Client Quit]
last_staff has quit [Quit: last_staff]
the_drow_ has quit [Read error: Connection reset by peer]
rbennace_ has quit [Ping timeout: 260 seconds]
Vile` has quit [Ping timeout: 260 seconds]
the_drow has joined #ruby
ChiefAlexander has joined #ruby
dvinciguerra has quit [Ping timeout: 252 seconds]
giz|work has quit [Read error: Connection reset by peer]
giz|work has joined #ruby
tildes has quit [Read error: Connection reset by peer]
chouhoulis has joined #ruby
the_drow has quit [Read error: Connection reset by peer]
tildes has joined #ruby
ramortegui has joined #ruby
the_drow has joined #ruby
vdamewood has joined #ruby
nobitanobi has quit [Remote host closed the connection]
d0nn1e has quit [Ping timeout: 276 seconds]
tatsuo has joined #ruby
the_drow has quit [Read error: Connection reset by peer]
jancel has quit [Read error: Connection reset by peer]
<mar77i>
no.
blackgoat has quit [Quit: WeeChat 1.4]
d0nn1e has joined #ruby
laska has joined #ruby
<mar77i>
the gemfile appears to be a tarball. there is a .travis.yml
the_drow has joined #ruby
<mar77i>
which mentions 2.3.0 under rvm:, but there's no other mention in the package.
araujo_ has quit [Quit: Leaving]
the_drow has quit [Max SendQ exceeded]
jaguarmagenta has joined #ruby
synthroi_ has joined #ruby
tatsuo has quit [Ping timeout: 250 seconds]
synthroid has quit [Ping timeout: 276 seconds]
the_drow has joined #ruby
GodFather has quit [Ping timeout: 276 seconds]
gregf has quit [Quit: WeeChat 1.5]
Dysp has joined #ruby
gregf has joined #ruby
<apeiros>
mar77i: no, the gemfile is not a tarball. no idea at what you're looking, but you're looking at the wrong file.
<apeiros>
wherever you're running "bundle", in that directory, or in that project's root directory, there's a file named "Gemfile". that's the gemfile. hence the name.
nobitano_ has joined #ruby
skade has quit [Ping timeout: 265 seconds]
<Dysp>
Hello there, people. I have an array containing different elements. How can I create a new variable for each element?
jaguarmagenta has quit [Ping timeout: 260 seconds]
eljimbo has quit [Quit: This computer has gone to sleep]
<laska>
why would you want to do this?
the_drow_ has joined #ruby
<Dysp>
Basicly I get an array with available sheets in the workbook. Afterwards I need to take the individual sheets and pull column 2 from them.
the_drow has quit [Ping timeout: 244 seconds]
<Dysp>
Returning a new array with the data I need.
nobitano_ has quit [Ping timeout: 252 seconds]
<Dysp>
So, returning each new array in a new individual object that I can run calculations on.
nashant has quit [Quit: Page closed]
nobitanobi has quit [Ping timeout: 260 seconds]
<laska>
i dont quite get what exactly is going on, but sounds like you may just want to nest some iterations
arpegius has joined #ruby
<Dysp>
Yeah, I can actually easily make it work just by doing that. But I am trying to learn good code practice and divide stuff up into functions/methods.
<Dysp>
Dunno if it makes any sense to do it like I wanted to, but that was just the idea that I got.
<Dysp>
But eventually - at some point, I still need to define a variable which name is not predefined. How do I do that?
the_drow_ has quit [Read error: Connection reset by peer]
<mar77i>
apeiros: the package I get does contain a file Gemfile in /usr/lib/ruby/gems/2.3.0/gems/bundler-1.12.3/lib/bundler/templates, but that appears to be a sample file.
kkeuning has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<mar77i>
fuck
<mar77i>
I just realized that the problem wasn't with the ruby-bundler package but with the thing the bundler should bundle.
the_drow has joined #ruby
gregf has joined #ruby
<solars>
quick question, I'm processing gzipped csv files in a stream and want to separate opening them from processing the contents, is it a good practise to wrap it into a block like so: https://gist.github.com/solars/b18ead7ae64bb89e78fb8a8ca0b2ca96 ?
mdw has joined #ruby
<Dysp>
For the sake of the question: I have an array with [x, y, z...]. How do I create a variable that holds each element? I mean finding the x element of the array and assigning it to a variable is pretty straight forward, if I beforehand know what to assign. But I don't. The array length varies.
mdw has quit [Client Quit]
<Dysp>
"finding the nth element" would be a more proper description
<Dysp>
I think you are answering it the opposite way, so to say.
<Dysp>
Say I want to define a variable from each element in the array.
tvw has quit [Ping timeout: 265 seconds]
<jhass>
you never ever want to, you want to keep arrays or hashes if that desire comes to mind
<Dysp>
[a, b, c] should become value1 = a, value2 = b, value3 = c
<Dysp>
Hm!
the_drow has quit [Ping timeout: 252 seconds]
the_drow_ has joined #ruby
the_drow_ has quit [Max SendQ exceeded]
<jhass>
think a bit further, how would you later refer to the variable if you don't know its name?
<Dysp>
True. True.
the_drow_ has joined #ruby
flashpoint9 has joined #ruby
<Dysp>
I'll try to explain what I wanna do simplified, maybe you can help me figure out how to solve it.
Ebok has joined #ruby
<Dysp>
I have an excel workbook with x amounts of sheets. In these sheets there are columns of data of which I wanna find the mean of. I need to pull these individual means and store them.
malconis has joined #ruby
malconis has quit [Remote host closed the connection]
dvinciguerra has joined #ruby
tvw has joined #ruby
<jhass>
same column for all sheets?
<Dysp>
yes
malconis has joined #ruby
terlar has quit [Quit: WeeChat 1.5]
<jhass>
data = xlsx.sheets.flat_map {|sheet| sheet.column(2) }; mean = data.sort[data.size/2] (well, gotta do the a+b/2 thing here to do it correctly but enough to show the idea)
the_drow_ has quit [Read error: Connection reset by peer]
<Dysp>
Can you explain flat map?
karmatr0n has joined #ruby
the_drow has joined #ruby
<Dysp>
To a 5 year old kid
<Dysp>
Please
<Dysp>
^^
<jhass>
you got map?
<Dysp>
Not really.
Ebok has quit [Quit: This computer has gone to sleep]
<jhass>
take array, apply operation to each element, build new array from the results
<Dysp>
Ah!
eljimbo has joined #ruby
<jhass>
flat_map is take array, apply operation to each element, operation should itself produce an array, concatenate elements of the individual result arrays into a single one
mark_66 has quit [Remote host closed the connection]
rorra has joined #ruby
nobitanobi has joined #ruby
evidex has quit [Remote host closed the connection]
Snowy has quit [Remote host closed the connection]
jobewan is now known as jobewan_away
jobewan_away has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
hahuang61 has joined #ruby
symm- has joined #ruby
Ebok has joined #ruby
Mon_Ouie has quit [Quit: WeeChat 1.4]
aegis3121 has joined #ruby
sarbs has quit [Max SendQ exceeded]
sarbs has joined #ruby
Cohedrin has joined #ruby
DoubleMalt has quit [Remote host closed the connection]
Devalo has quit [Remote host closed the connection]
mattwashere has joined #ruby
gizmore has joined #ruby
aegis3121 has quit [Ping timeout: 240 seconds]
blackmes1 has quit [Ping timeout: 250 seconds]
jaguarmagenta has joined #ruby
aegis3121 has joined #ruby
djbkd has joined #ruby
sirecote_ has quit [Quit: "Hang Up"]
lxsameer has joined #ruby
sirecote has joined #ruby
blackmes1 has joined #ruby
Yiota has joined #ruby
chouhoulis has quit [Remote host closed the connection]
ctp has joined #ruby
chouhoulis has joined #ruby
jaguarmagenta has quit [Ping timeout: 240 seconds]
jgt has quit [Ping timeout: 240 seconds]
QORRiE has joined #ruby
kgrz has joined #ruby
blackmes1 has quit [Ping timeout: 240 seconds]
Yiota has quit [Ping timeout: 246 seconds]
chouhoulis has quit [Ping timeout: 260 seconds]
Madmanden has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
arpegius has joined #ruby
ledestin has joined #ruby
blaxter has quit [Read error: Connection reset by peer]
aufi has quit [Ping timeout: 240 seconds]
<zacts>
hi rubyists
firstdayonthejob has joined #ruby
foobarbaz322 has joined #ruby
jaruga____ has joined #ruby
Snowy has joined #ruby
ljames has joined #ruby
babblebre has joined #ruby
mildfate has quit [Ping timeout: 250 seconds]
foobarbaz322 is now known as agentmeerkat
Devalo has joined #ruby
agentmeerkat has quit [Client Quit]
jaruga___ has quit [Quit: jaruga___]
agentmeerkat has joined #ruby
CausaMortis has joined #ruby
nobitanobi has quit [Remote host closed the connection]
weckl has quit [Quit: Leaving]
sneakerhax has joined #ruby
diego1 has joined #ruby
karapetyan has joined #ruby
SilverKey has quit [Quit: Halted.]
lxsameer has quit [Ping timeout: 252 seconds]
karapetyan has quit [Remote host closed the connection]
dviola has quit [Ping timeout: 246 seconds]
Yiota has joined #ruby
PedramT has joined #ruby
jdawgaz has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
jgt has joined #ruby
Eiam_ has joined #ruby
aupadhye has quit [Ping timeout: 260 seconds]
malconis has joined #ruby
malconis has quit [Remote host closed the connection]
startupality has joined #ruby
chopin_ has joined #ruby
freerobby has joined #ruby
malconis has joined #ruby
PedramT has quit [Ping timeout: 250 seconds]
bmurt has joined #ruby
Musashi007 has joined #ruby
LastWhisper____ has joined #ruby
chopin has quit [Ping timeout: 244 seconds]
shinnya has joined #ruby
isxek has quit [Quit: Leaving]
blackmes1 has joined #ruby
idle_task is now known as idletask
jenrzzz has joined #ruby
jenrzzz has quit [Changing host]
jenrzzz has joined #ruby
Musashi007 has quit [Client Quit]
jancel has quit [Remote host closed the connection]
last_staff has joined #ruby
dgncn has quit [Remote host closed the connection]
PedramT has joined #ruby
PedramT has quit [Remote host closed the connection]
jenrzzz has quit [Ping timeout: 260 seconds]
<bazzy>
im trying to get involved in TDD in general.
diego1 has quit [Changing host]
diego1 has joined #ruby
diego1 is now known as dviola
ishe has quit [Remote host closed the connection]
<bazzy>
i program in several languages and hoping to translate what i learn now with ruby to eg. python or cpp
jaiks has joined #ruby
bronson has joined #ruby
<bazzy>
i started comprehending rspec today ... and i am always considering the "abstraction" of a useful testing framework for any language (or at least from the ones i mentioned)
gigetoo has quit [Ping timeout: 260 seconds]
ramfjord has joined #ruby
brunto has joined #ruby
<bazzy>
there seems to be a hurdle that i just have to jump over.. as far as taking example tutorials bit then applying it to my own practice.. large
gigetoo has joined #ruby
<bazzy>
largely considering that a lot the codebases i maintain have pre-existing code that needs tests created for it...
pandaant has quit [Remote host closed the connection]
ramortegui has quit [Quit: Ex-Chat]
symm- has quit [Quit: Leaving...]
jackjackdripper1 has quit [Quit: Leaving.]
<bazzy>
so i almost need to a "2-pass" phase where first i write tests (somehow) for the pre-existing code, and then after that, write new code in a TDD style (tests first)
<bazzy>
Does anyone have tips or advice for me?
<bazzy>
i can summarize my interests
A124 has quit [Quit: '']
tatsuo has quit [Remote host closed the connection]
aphprentice has joined #ruby
<bazzy>
i a multi-lingual programmer, who not only wants to TDD across languages, but is going to get started first with a project maintained in ruby. i appreciate unit testing and functional/integration tests (same thing)?
ramfjord has quit [Ping timeout: 250 seconds]
noService has joined #ruby
jaruga____ has quit [Quit: jaruga____]
A124 has joined #ruby
<bazzy>
just wondering if people have tips other than me just "diving in" with rspec, which my plan is
DanyC has joined #ruby
TvL2386 has quit [Ping timeout: 265 seconds]
Ebok has quit [Quit: This computer has gone to sleep]
Don_John has joined #ruby
Don_John has quit [Remote host closed the connection]
laska_ has joined #ruby
blandflakes has joined #ruby
Ebok has joined #ruby
DanyC has quit [Client Quit]
noService has quit [Ping timeout: 252 seconds]
laska has quit [Ping timeout: 276 seconds]
chipotle has quit [Quit: cheerio]
Devalo has quit [Remote host closed the connection]
Yiota has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
stannard has quit [Remote host closed the connection]
chouhoulis has joined #ruby
stannard has joined #ruby
<soahccc>
I have a string and I need to escape it so that I can parse it with optparse again like this: -o name="value" where value might contain quotes or backslashes. The input comes back as it is (there is no shell so shellescape doesn't work properly). What is the easiest way to achieve this?
skade has quit [Quit: Computer has gone to sleep.]
Ishido has quit [Ping timeout: 260 seconds]
gigetoo has quit [Ping timeout: 240 seconds]
gigetoo has joined #ruby
<apeiros>
soahccc: optparse works on arrays, and it'd hence be shellsplit
jancel has joined #ruby
JoshGlzBrk has joined #ruby
<soahccc>
apeiros: I'm afraid I didn't understand that. The problem is that shellescape for example escapes the = sign and it then comes back as "\=" since there is no shell to strip the backslash away
stannard has quit [Read error: Connection reset by peer]
nprorepti has quit [Quit: .]
<apeiros>
soahccc: how do you feed your string to optparse?
Pumukel has joined #ruby
<soahccc>
apeiros: you mean how I get the args?
<soahccc>
the array I put into parse! I mean
<apeiros>
no. I mean how you "parse it with optparse again", as you phrased it
<apeiros>
right, parse!. and as you just said, parse! takes an array, not a string. so you don't need to escape your string. you need to split it into an array.
senayar has joined #ruby
<apeiros>
and shellsplit does that
whathappens has joined #ruby
<soahccc>
apeiros: so I'm doing something like an IRC bot. I want to build a command you can paste as is but it comes back the same way (no special characters). That's where the args come from (parsing a log)
<soahccc>
apeiros: the backslash before the = comes from my try with shellescape
stannard has joined #ruby
BlacksmithMetash has quit [Quit: 4.2.0 Equilibrium http://www._.net/]
cpup has quit [Ping timeout: 240 seconds]
The_Phoenix has quit [Read error: Connection reset by peer]
Ishido has joined #ruby
<soahccc>
apeiros: and it could be e.g. "moep=something with spaces and "quotes" and \slashes" (raw value) so I need to escape \ and " am I right?
idefine has joined #ruby
jenrzzz has joined #ruby
jenrzzz has joined #ruby
jenrzzz has quit [Changing host]
charliesome has joined #ruby
Ch4rAss has quit [Ping timeout: 240 seconds]
<apeiros>
within the array, you don't need to escape anything anymore. escaping is done so individual arguments are recognized correctly. which is what happens when you go from string to array.
Yiota has joined #ruby
<soahccc>
apeiros: which array do you mean? The problem I have is with building a string that later can be parsed again where the value might contain any character (so I need to escape some characters)
papachan has quit [Ping timeout: 250 seconds]
<apeiros>
which array: line 5
<apeiros>
I somewhat get the vibe that you don't understand your own problem…
<soahccc>
apeiros: that's just what I get (the exact same as the input just space-separated)
jaiks has quit [Ping timeout: 260 seconds]
<apeiros>
let me ask again: how do you go from your input string to that array in line 5?
_blizzy_ has joined #ruby
<soahccc>
apeiros: it's just a line_in_log.split(" ")
<apeiros>
ok. then you did *not* read what I wrote.
<soahccc>
apeiros: the double slash is just because of the inspect
<apeiros>
use shellsplit. not split.
jaiks has joined #ruby
<sumobob>
help I keep getting errors when trying to upgrade my ruby! I'm using rbenv and I keep getting "The Ruby yaml extension was not compiled."
roamingdog has quit [Read error: Connection reset by peer]
Coldblackice has joined #ruby
kgrz has quit [Ping timeout: 244 seconds]
sauvin has quit [Read error: Connection reset by peer]
<soahccc>
apeiros: oh thanks, now I understand :) I had a brain fart there
jancel has quit [Remote host closed the connection]
tagaulap has quit [Quit: Connection closed for inactivity]
djbkd has quit [Remote host closed the connection]
djbkd has joined #ruby
weemsledeux has quit [Ping timeout: 246 seconds]
cpup has joined #ruby
ramfjord has joined #ruby
stannard has quit [Read error: Connection reset by peer]
<shevy>
your naughty brain
jenrzzz_ has joined #ruby
chouhoulis has quit [Remote host closed the connection]
synthroid has quit [Remote host closed the connection]
blaxter has joined #ruby
Eiam_ has quit [Ping timeout: 252 seconds]
CoderPuppy has quit [Ping timeout: 260 seconds]
JoshGlzBrk has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
jenrzzz has quit [Ping timeout: 252 seconds]
postmodern has joined #ruby
Devalo has joined #ruby
freerobby has quit [Quit: Leaving.]
djbkd has quit [Remote host closed the connection]
brunto has quit [Read error: Connection reset by peer]
Asher has quit [Quit: Leaving.]
<sumobob>
brew installing it right now shevy
jancel has joined #ruby
jackjackdripper has quit [Client Quit]
nankyokusei has joined #ruby
pawnbox has quit [Remote host closed the connection]
djbkd has quit [Ping timeout: 276 seconds]
jaiks has quit [Ping timeout: 260 seconds]
_biox has joined #ruby
roshanavand has quit [Quit: This computer has gone to sleep]
jdawgaz has joined #ruby
<_biox>
Hello! I'm looking to learn ruby, and I read that "Learn to Program" by Chris Pine is a good place to start. Has anyone here had experience with that book?
marxarelli has joined #ruby
pawnbox has joined #ruby
startupality has quit [Quit: startupality]
spider-mario has joined #ruby
djbkd has joined #ruby
bmurt has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
yos7ph has joined #ruby
stannard has quit [Read error: Connection reset by peer]
jhack has quit [Quit: jhack]
jhack has joined #ruby
aswen has joined #ruby
B1n4r10 has joined #ruby
renderfu_ has quit []
Devalo has quit [Remote host closed the connection]
jhack has quit [Client Quit]
duncannz has joined #ruby
dreinull has joined #ruby
<dreinull>
is there a template converter that converts any given tilt/temple template to erb?
umdstu has quit [Quit: umdstu]
bruno- has quit [Read error: Connection reset by peer]
Ebok has quit [Quit: This computer has gone to sleep]
noService has joined #ruby
Ebok has joined #ruby
<apeiros>
I think it'd require quite some desperation to write something like that
stannard has joined #ruby
nobitanobi has joined #ruby
jdawgaz has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<sumobob>
shevy: same error even with a brew install libyaml
Asher has joined #ruby
bruno- has joined #ruby
jdawgaz has joined #ruby
bmurt has joined #ruby
roshanavand has joined #ruby
nobitanobi has quit [Read error: Connection reset by peer]
<ruby[bot]>
sumobob: pastebin.com loads slowly for most, has ads which are distracting and has terrible formatting.
bluOxigen has quit [Read error: No route to host]
bluOxigen has joined #ruby
elifoster has quit [Ping timeout: 260 seconds]
shmuli has joined #ruby
Dry_Lips has quit [Ping timeout: 250 seconds]
djellemah_ has quit [Ping timeout: 260 seconds]
chouhoulis has joined #ruby
lxsameer has joined #ruby
tax has quit [Ping timeout: 250 seconds]
Dry_Lips has joined #ruby
Dry_Lips has quit [Changing host]
Dry_Lips has joined #ruby
theRealAlexz has quit [Quit: No Ping reply in 180 seconds.]
sdothum has quit [Quit: ZNC - 1.6.0 - http://znc.in]
CoderPuppy has joined #ruby
halfamind has joined #ruby
theRealAlexz has joined #ruby
slackbotgz has joined #ruby
sdothum has joined #ruby
stannard has quit [Remote host closed the connection]
Milos|Work has joined #ruby
<halfamind>
I have strings in a database, some of which report `encoding` of utf-8, but are actually utf-8-mac. Does anyone know how I can identify them?
<sumobob>
trying to reinstall libyaml with --universal
cpup has quit [Ping timeout: 244 seconds]
jwren has joined #ruby
<sumobob>
my ruby 2.1 runs fine haha
lxsameer has quit [Ping timeout: 260 seconds]
<shevy>
I had precisely this error message too
<apeiros>
halfamind: what's utf-8-mac supposed to be?
<shevy>
however had I am using linux and directly from the source
<shevy>
after I compiled libyaml into /usr as prefix, and recompiled ruby, it found the libyaml there and installed it
<apeiros>
oh, perl module explains it - people who don't understand decomposition need a new name for it…
bluOxigen has quit [Ping timeout: 244 seconds]
rodferso1 is now known as rodfersou
<sumobob>
i could build it from source too
<apeiros>
halfamind: do you really need to identify it? or do you just simply want to normalize them to "normal" utf-8 (quotes since it's all just normal utf-8 really)
stannard has joined #ruby
stannard has quit [Remote host closed the connection]
TomyWork has quit [Ping timeout: 244 seconds]
lulzmachine_ has joined #ruby
simon__ has joined #ruby
<simon__>
Greetings ruby people!
yos7ph has quit [Quit: Leaving]
shmuli has quit [Remote host closed the connection]
stannard has joined #ruby
<simon__>
So, I am just now diving into ruby. I am tryin to play with the API from Censys here. I am having issues priting the results of my queries but I suspect that my issues are very basic.
Ebok has quit [Quit: This computer has gone to sleep]
Ebok has joined #ruby
<simon__>
For example: response = api.ipv4.search(query: 'dropbox.com') how do I print the results from that query? I've tried multiple things and the output I get is not the output I want. It looks like "#<CenSys::Search::IPv4:0x0000000260f548 @attributes={"ip"=>"199.47.217.68", "protocols"=>" for example.
<simon__>
What I really want to do is proint the IP address, etc.
Synthead has quit [Quit: Synthead]
shmuli has joined #ruby
mattwashere has quit []
djellemah has joined #ruby
johnmilton has quit [Remote host closed the connection]
jackjackdripper has joined #ruby
<halfamind>
apeiros: I think I need to identify them. In this case, I'm trying to clean up the strings so that they work for downloading from S3. str.encode('utf-8', 'utf-8-mac') makes strings usable *if* they're utf-8-mac, but otherwise breaks them. The problem is that both types report encoding of utf-8.
jenrzzz_ has quit [Ping timeout: 240 seconds]
<apeiros>
huh? given that both is technically utf-8, that sounds like a bug. how do you figure they are broken afterwards?
noobsu has joined #ruby
IvanSuftin has quit [Ping timeout: 244 seconds]
senayar has quit [Remote host closed the connection]
<simon__>
Here's the code I am trying to write.
jackjackdripper has quit [Read error: Connection reset by peer]
<ruby[bot]>
simon__: pastebin.com loads slowly for most, has ads which are distracting and has terrible formatting.
jackjackdripper1 has joined #ruby
agit0 has quit [Quit: zzzZZZ….]
<halfamind>
apeiros: Calling .encode('utf-8', 'utf-8-mac') on a UTF-8 string with multibyte characters appears to alter the string. At least, the length is shorter and character ordinals different.
<apeiros>
halfamind: then s3 has a problem with utf-8. because .encode('utf-8', 'utf-8-mac') with a non utf-8-mac string will *not* modify it
<shevy>
apeiros did you not complain about that symbol not so long ago :D
p0p0pr37 has joined #ruby
<apeiros>
at least not those I tried
<apeiros>
I'd be interested in seeing an actual string which does get modified.
preyalone has quit [Quit: Connection closed for inactivity]
* simon__
cries like a three year old toddler
Hi has joined #ruby
<Hi>
hi
<simon__>
hah Hi
Hi is now known as Guest74620
<apeiros>
halfamind: re that link I gave you, "utf-8-mac" is really utf-8 in NFD instead of the more common NFC
<Guest74620>
I just finished my ror online bootcamp
<apeiros>
also "All these algorithms are idempotent transformations, meaning that a string that is already in one of these normalized forms will not be modified if processed again by the same algorithm."
* simon__
looks at apeiros
<Guest74620>
still not very knowledgeable, did you guys get internships when you first started?
<apeiros>
which is why treating utf-8 as utf-8-mac and transcoding it to utf-8 will not modify the string (or shouldn't)
<apeiros>
Guest74620: I never did an internship, no
ramortegui has joined #ruby
nerium has joined #ruby
<Guest74620>
did you just walk into a job?
<apeiros>
it was more like the job walking into me
<simon__>
apeiros: can you take a look at my crap code and point out what I need to do to print the output the way that I am trying to print it?
synthroid has joined #ruby
<apeiros>
simon__: do you know pry or irb?
<Guest74620>
cool, I'm doing a few projects but I'm current;y looking for jobs
<sumobob>
shevy: I've downloaded the tar ball, ran a configure a make and a make install, how do I do that last step "ompiled libyaml into /usr as prefix"
<simon__>
apeiros: I can't say that I know either. i am just now startign to learn on my own. Was a C/C++ developer for a while (about 10 years ago now). Decided that I wanted to try playing with ruby to build a basic OSINT tool.
morochena has joined #ruby
morochena has quit [Client Quit]
<apeiros>
halfamind: "Báe".each_codepoint.map(&:to_i) is a reeeeally convoluted way of saying "Báe".codepoints
<halfamind>
Thanks I figured there must be a better way...
<simon__>
apeiros: I don't need / want to do anything fancy, I'll get books and study myself :)
<apeiros>
simon__: do this right now: `gem install pry pry-doc`, and then: `pry -r pp -r censys`
<apeiros>
simon__: and then run your code in there. you'll be happy. trust me.
|2701 has joined #ruby
ixti has joined #ruby
<simon__>
I'm very curious
<apeiros>
then when you have a single response, do `ls ipresponse` (for example)
<apeiros>
pry (or for some people irb) is one of the most basic and most often used tool in the ruby world. it's must-have must-know.
<apeiros>
second in line would be `ri`
bronson has quit [Remote host closed the connection]
chipotle has joined #ruby
<apeiros>
halfamind: that looks correct and expected to me
<simon__>
apeiros: ok so, now what?
<simon__>
lol
elifoster has joined #ruby
<Guest74620>
i was taught to use irb, but my mentor used pry and i thought it was sweet
<apeiros>
simon__: run your code line by line
<apeiros>
it's interactive ruby
<apeiros>
and you can try around easily
<simon__>
Ah yes, but the code runs.
Fernando-Basso has quit [Quit: Leaving]
<apeiros>
and `ls somvar` will show you all methods of `somevar`
isjaylee has joined #ruby
idefine has quit [Remote host closed the connection]
<halfamind>
apeiros: But you said ".encode('utf-8', 'utf-8-mac') with a non utf-8-mac string will *not* modify it" and that string is not utf-8-mac.
<simon__>
apeiros: my issue is that I am not priting my output correctly. I am not selecting what I want to print properly. IIRC it should be something like puts results[ip] bu that fails
<Guest74620>
apeiros are you a senior dev
bmurt has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<isjaylee>
how would i upload a file's content via a post call (without actually having to create the file on my machine)?
Snowy has quit [Remote host closed the connection]
duncannz has quit [Remote host closed the connection]
chouhoul_ has joined #ruby
<apeiros>
Guest74620: on paper, yes. otherwise: what's your definition?
laska_ has left #ruby [#ruby]
<Guest74620>
making bank lol
zeroDi has joined #ruby
<toretore>
apeiros: i don't think i've ever used ri :)
<apeiros>
halfamind: yes, it is
<sumobob>
its nice when u dont have an internet connection :)
<apeiros>
halfamind: as said, utf-8-mac *is* utf-8
<apeiros>
utf-8-mac is a fancy (or less nicely put: a *stupid*) way to say "utf-8 in NFD
<apeiros>
"
Milos|Work has quit [Ping timeout: 240 seconds]
<toretore>
sumobob: you can do `gem server` too
laska has joined #ruby
p0p0pr37_ has joined #ruby
<Guest74620>
has anyone else used pundit?
<simon__>
apeiros: pry isn't helpong me because this isn't a debug issue as much as it is an issue with me understanding how to print the values taht I want to print.
pawnbox has quit [Remote host closed the connection]
deadhound has joined #ruby
<apeiros>
simon__: you rn the code until ipresponse = … just like in your code. then instead of .each_page, you need to find a method to get you the first page, and do `page = ipresponse.method_for_the_first_page` (might be .pages.first). then you do `ls page`. try to figure which method it might be
<apeiros>
and no, I will not go through the docs for you to figure it out for you. sorry. I rather tell you how you can figure it yourself.
yqt has joined #ruby
<apeiros>
you can use `? ipresponse.some_method` to get the documentation for that method
<apeiros>
(directly within pry)
<simon__>
apeiros: ah ha! Ok let me try that
idefine has quit [Ping timeout: 276 seconds]
yqt has quit [Read error: Connection reset by peer]
stannard has quit [Remote host closed the connection]
johnmilton has joined #ruby
arpegius has quit [Ping timeout: 240 seconds]
lxsameer has joined #ruby
SilverKey has joined #ruby
<simon__>
apeiros: ok so I am starting to understand the logic here. I did an ls on ipresponse from within pry and see a load of methods. I also see a bunch of instance variables, etc. So, from this, how do I print the values that I am looking to print? Specifically, how do I select the IP and Proptocol?
trabulmonkee has quit [Quit: Connection closed for inactivity]
johnmilton has quit [Ping timeout: 240 seconds]
<apeiros>
simon__: you "navigate" through that datastructure until you get the plain ip address
roshanavand has quit [Quit: This computer has gone to sleep]
<apeiros>
that is: page = ipresponse.<get a page somehow>; result = page.<get a result somehow>; ip = result.<get ip somehow>
lxsameer has quit [Ping timeout: 244 seconds]
GodFather has joined #ruby
<apeiros>
and usually you can easily figure how to get to the value you want by the names of the methods
aswen has quit [Quit: WeeChat 1.4]
roshanavand has joined #ruby
<simon__>
apeiros: and where can I find some documentation on how to do that navigation?
kirun has joined #ruby
<apeiros>
via ls and ?
senayar has joined #ruby
<apeiros>
ls tells you which methods you can call on the object you have at hand
<apeiros>
and in case the name is useless, ? gives you the docs
eljimbo has quit [Quit: This computer has gone to sleep]
haxrbyte has quit [Remote host closed the connection]
stannard has joined #ruby
yfeldblum has joined #ruby
haxrbyte has joined #ruby
frem_ has joined #ruby
jhack has joined #ruby
gizless has joined #ruby
Ch4rAss has joined #ruby
jhack has quit [Client Quit]
jaiks has joined #ruby
jhack has joined #ruby
jancel has joined #ruby
yqt has joined #ruby
stannard has quit [Read error: Connection reset by peer]
pawnbox has joined #ruby
papachan has joined #ruby
weaksauce has joined #ruby
gizmore has quit [Ping timeout: 240 seconds]
Ch4rAss has quit [Client Quit]
johnmilton has joined #ruby
cdg has joined #ruby
gizmore has joined #ruby
djbkd has quit [Remote host closed the connection]
arpegius has joined #ruby
djbkd has joined #ruby
GodFather has quit [Ping timeout: 276 seconds]
freerobby has quit [Quit: Leaving.]
pawnbox has quit [Ping timeout: 252 seconds]
dfockler has quit [Ping timeout: 276 seconds]
gizless has quit [Ping timeout: 244 seconds]
jaruga___ has joined #ruby
halfamind has quit [Read error: Connection reset by peer]
jhack has quit [Quit: jhack]
jaruga___ is now known as jaruga____
halfamind has joined #ruby
halfamind has quit [Read error: Connection reset by peer]
halfamind has joined #ruby
Snowy has joined #ruby
djbkd has quit [Ping timeout: 252 seconds]
jhack has joined #ruby
Snowy has quit [Remote host closed the connection]
blackgoat has joined #ruby
idefine has joined #ruby
stannard has joined #ruby
nankyokusei has quit [Remote host closed the connection]
jhack_ has joined #ruby
idefine has quit [Remote host closed the connection]
idefine has joined #ruby
rodfersou has quit [Quit: leaving]
rodfersou has joined #ruby
rippa has quit [Quit: {#`%${%&`+'${`%&NO CARRIER]
konr has joined #ruby
jhack has quit [Ping timeout: 240 seconds]
jhack_ is now known as jhack
crash_ovride has joined #ruby
<sumobob>
how do you do strong params if your endpoint receives a json array?
babblebre has quit [Quit: Connection closed for inactivity]
dreinull has left #ruby ["undefined"]
startupality has joined #ruby
idefine has quit [Remote host closed the connection]
chipotle has quit [Ping timeout: 276 seconds]
idefine has joined #ruby
haxrbyte has quit [Ping timeout: 244 seconds]
chipotle has joined #ruby
skade has joined #ruby
djbkd has joined #ruby
jancel has quit [Remote host closed the connection]
<simon__>
Still having all sorts of issues with getting this code to print correctly
Milos|Work has joined #ruby
haxrbyte has joined #ruby
gizless has joined #ruby
<Milos|Work>
Having something like [{"name" => "Bob1", "email" => "bob@bob.com"}, {"name" => "Bob2", "email" => "bob2@bob2.com"}] how do I get a string of emails separated by commas?
auxbuss has joined #ruby
arpegius has quit [Quit: arpegius]
<simon__>
Milos|Work: I'm having the same type of issue here
<simon__>
smathy: what you said makes sense to me, but now I need to understand how to get to where I need to be. Specifically, how do I figure out what the methods are and how do I call them?
<simon__>
smathy: like I said, new to ruby but I am a damn fast learner
Snowy has quit [Ping timeout: 250 seconds]
ramortegui has quit [Quit: Ex-Chat]
hobodave has quit [Ping timeout: 240 seconds]
kgrz has quit [Ping timeout: 260 seconds]
papachan has joined #ruby
<simon__>
smathy: any direction?
<smathy>
simon__, unfortunately there's no docs, and it looks like it's been pulled from rubygems so it won't even generate any. So just look through the various classes.
stannard has quit [Read error: Connection reset by peer]
<smathy>
simon__, so you're printing `page` and that's an object, and there's a default stringifier for all ruby objects so they can always be printed.
cpup has joined #ruby
pawnbox has quit [Ping timeout: 260 seconds]
mdw has joined #ruby
<simon__>
smathy: right that makes sense
idefine has joined #ruby
<simon__>
smathy: what I want to print is different
auxbuss has quit [Quit: I'm gone.]
<smathy>
simon__, that's what that #<CenSys::Search::IPv4:0x00000001ccd3b8> is - basically the class and the unique id of that object.
gizless has joined #ruby
<smathy>
simon__, if you want to pull out other data from that then you'll want to find methods for that class.
<simon__>
smathy: Ok
<simon__>
smathy: I have the code to the Search class
CoderPuppy has quit [Ping timeout: 244 seconds]
jancel has joined #ruby
jhack has quit [Quit: jhack]
<smathy>
simon__, well that's not what's being returned.
<smathy>
simon__, everything before the single colon and object id is the class name.
gizmore|2 has joined #ruby
<simon__>
smathy: so its CenSys::Search::IPv4
<smathy>
simon__, and you can find all those files in the repo that you linked to above, under `lib`
<smathy>
Yes.
<simon__>
smathy: ok let me search
nerium has quit [Quit: nerium]
Ishido has quit [Quit: Roads? Where We're Going We Don't Need Roads.]
gizmore has quit [Ping timeout: 240 seconds]
lulzmachine_ has quit [Quit: Connection closed for inactivity]
mdw has quit [Quit: Sleeping Zzzzz]
jdawgaz has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
spider-mario has quit [Read error: Connection reset by peer]
Amnez777 has quit [Ping timeout: 260 seconds]
wspider has quit [Ping timeout: 260 seconds]
fold4 has quit [Ping timeout: 260 seconds]
neoweb has quit [Ping timeout: 264 seconds]
Yxhuvud has quit [Remote host closed the connection]
bmurt has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
wspider has joined #ruby
rbennacer has quit [Remote host closed the connection]
steve has quit [Ping timeout: 260 seconds]
DEac- has quit [Ping timeout: 260 seconds]
Amnez777 has joined #ruby
Yxhuvud has joined #ruby
DEac- has joined #ruby
steve has joined #ruby
WebDawg has joined #ruby
noobsu has quit [Remote host closed the connection]
fold4 has joined #ruby
Azure has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
rbennacer has joined #ruby
millerti has joined #ruby
cpup has joined #ruby
gregf has quit [Quit: WeeChat 1.5]
gregf has joined #ruby
laska has joined #ruby
Azure has joined #ruby
CoderPuppy has quit [Ping timeout: 240 seconds]
rbennacer has quit [Ping timeout: 240 seconds]
karmatr0n has quit [Ping timeout: 240 seconds]
idefine_ has quit [Remote host closed the connection]
SilverKey has quit [Quit: Halted.]
eljimbo has joined #ruby
rbennacer has joined #ruby
jancel has joined #ruby
ramfjord_ has joined #ruby
duoi has quit [Max SendQ exceeded]
dfockler has quit [Ping timeout: 250 seconds]
duoi has joined #ruby
zarubin has joined #ruby
pawnbox has joined #ruby
xlegoman has joined #ruby
Parko has quit [Remote host closed the connection]
diegoviola has quit [Quit: WeeChat 1.5]
agent_white has quit [Quit: offToHome]
ramfjord has quit [Ping timeout: 246 seconds]
GodFather has joined #ruby
laska has quit [Quit: Lost terminal]
agentmeerkat has quit [Ping timeout: 250 seconds]
jancel has quit [Ping timeout: 240 seconds]
pawnbox has quit [Ping timeout: 246 seconds]
Sammichmaker has quit [Read error: Connection reset by peer]
codecop has quit [Remote host closed the connection]
helpa has quit [Remote host closed the connection]
zenlot6 has quit [Read error: Connection reset by peer]
imperman1nce has joined #ruby
gregf has quit [Quit: WeeChat 1.5]
gregf has joined #ruby
watersoul_ has joined #ruby
halfamind1 has quit [Quit: Leaving.]
sumobob has quit [Ping timeout: 246 seconds]
impermanence has quit [Ping timeout: 244 seconds]
zenlot6 has joined #ruby
rbennacer has quit [Ping timeout: 265 seconds]
helpa-bot has joined #ruby
helpa-bot has quit [Changing host]
helpa-bot has joined #ruby
watersoul has quit [Remote host closed the connection]
helpa-bot has quit [Remote host closed the connection]
symm- has joined #ruby
helpa has joined #ruby
idefine has joined #ruby
wrkrcoop has joined #ruby
<wrkrcoop>
is there any easy way to convert bytes to json?
Sammichmaker has joined #ruby
rbennacer has joined #ruby
rkazak has joined #ruby
mar77i has left #ruby [#ruby]
idefine has quit [Ping timeout: 276 seconds]
jolamb has quit [Ping timeout: 260 seconds]
rbennacer has quit [Ping timeout: 246 seconds]
<arahael>
wrkrcoop: Sure, you could base64 it.
jolamb has joined #ruby
<arahael>
wrkrcoop: And wrap it up in quotation marks.
idefine has joined #ruby
charliesome has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
cdg has quit [Remote host closed the connection]
cdg has joined #ruby
<wrkrcoop>
arahael: so i have the byets, then convert them to base64?
idefine has quit [Remote host closed the connection]
<arahael>
wrkrcoop: Sure.
<arahael>
wrkrcoop: Mind you, this is a tongue in cheek comment. It's an easy way, sure, but it's also a stupid way. For what purpsoe do you want it to be in json?
<arahael>
wrkrcoop: Why do you want it in json?
Eiam_ has joined #ruby
idefine has joined #ruby
<arahael>
wrkrcoop: Once you have it in json, how should the data be used? What do the bytes mean?
skweek has quit [Remote host closed the connection]
deadhound1 has joined #ruby
deadhound1 has quit [Max SendQ exceeded]
<wrkrcoop>
arahael: well idk for some reason the data is coming in as bytes and i need to send it out as json
deadhound1 has joined #ruby
deadhound1 has quit [Max SendQ exceeded]
deadhound1 has joined #ruby
deadhound1 has left #ruby [#ruby]
rbennacer has joined #ruby
<arahael>
wrkrcoop: As a programmer, you should be more precise.
stardiviner has joined #ruby
<arahael>
wrkrcoop: Own your data. Own the problem, and solve it.
skweek has joined #ruby
deadhound has quit [Quit: Leaving]
cdg has quit [Ping timeout: 246 seconds]
<wrkrcoop>
arahael: i haven’t been given the project yet so idk what the details are. thanks
<arahael>
So you have no specification. Wonderful.
jwren has quit [Remote host closed the connection]
griffindy has joined #ruby
idefine has quit [Ping timeout: 240 seconds]
rbennace_ has joined #ruby
rbennacer has quit [Ping timeout: 260 seconds]
karmatr0n has joined #ruby
Eiam_ has quit [Quit: ╯°□°)╯︵ǝpouǝǝɹɟ]
CloCkWeRX has joined #ruby
Moosashi has joined #ruby
Vile` has joined #ruby
ensyde__ has joined #ruby
rbennace_ has quit [Ping timeout: 252 seconds]
nadav has quit [Read error: Connection reset by peer]