<havenwood>
cthulchu: You don't need to do any of this. I'm pointing out if you want a full path, that's how.
chouho___ has joined #ruby
<eam>
just add every directory on your system to $: problem solved
darkhanb has joined #ruby
<cthulchu>
ah
<havenwood>
eam: ha
banisterfiend has quit [Read error: Connection reset by peer]
<cthulchu>
and it's not relative
<al2o3-cr>
eam: lol
<havenwood>
cthulchu: It is. ¯\_(ツ)_/¯
chou_____ has quit [Ping timeout: 264 seconds]
chouh____ has joined #ruby
chouhoulis has quit [Ping timeout: 240 seconds]
<cthulchu>
it may be relative to something else
<cthulchu>
It doesn't even bother to give me the path in the error
<cthulchu>
not to the file I try to read from
chouhoulis has joined #ruby
<cthulchu>
err
<cthulchu>
it's not relative to the file I have the File.read in
chouhoul_ has quit [Ping timeout: 265 seconds]
<cthulchu>
I don't run it directly though. it's been required many times before fired
chouhoul_ has joined #ruby
pankaj has quit [Quit: leaving]
chouhou__ has quit [Ping timeout: 240 seconds]
kmurphy4 has joined #ruby
<cthulchu>
this is my error: /Users/Shared/repos/qa_automation/lib/analytics/init.rb:3:in `read': No such file or directory @ rb_sysopen - analytics_tests.json (Errno::ENOENT)
chouho___ has quit [Ping timeout: 245 seconds]
chouhou__ has joined #ruby
<cthulchu>
and this is the 3d line: JSON.parse(File.read('analytics_tests.json'))
<cthulchu>
this is terrible
<cthulchu>
every language just fails to make FS handlers comfortable
<ruby[bot]>
al2o3-cr: # => uninitialized constant Etc (NameError) ...check link for more (https://eval.in/1020183)
<al2o3-cr>
haha
chouhoulis has quit [Ping timeout: 240 seconds]
<al2o3-cr>
>> require 'etc'; Etc.uname
<ruby[bot]>
al2o3-cr: # => {:sysname=>"Linux", :nodename=>"ev1.eval.in", :release=>"2.6.32-41-generic-pae", :version=>"#94-Ubun ...check link for more (https://eval.in/1020184)
<al2o3-cr>
but that khoan vong is the best thing sliced bread, i'm addicted to watching his uploads.
<al2o3-cr>
shit, that things insane
<al2o3-cr>
to incinerate chlorophyl like that wow
yokel has joined #ruby
SeepingN has joined #ruby
<al2o3-cr>
zenspider: i've tried a few of his recipies and there awesome; especially char siu pork, salt and pepper anything, szechuan chicken and black bean sauce dishes.
<al2o3-cr>
and don't be scared of using msg.
QCF has quit [Ping timeout: 264 seconds]
workmad3 has joined #ruby
sytherax has quit [Remote host closed the connection]
sytherax has joined #ruby
sytherax has quit [Remote host closed the connection]
workmad3 has quit [Ping timeout: 240 seconds]
ramfjord has quit [Ping timeout: 240 seconds]
konsolebox has quit [Ping timeout: 256 seconds]
konsolebox has joined #ruby
nadir has joined #ruby
sytherax has joined #ruby
agent_white has quit [Quit: leaving]
orbyt_ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
orbyt_ has joined #ruby
sytherax has quit [Ping timeout: 268 seconds]
wontruefree has quit [Quit: bye]
sytherax has joined #ruby
knight33 has joined #ruby
sytherax has quit [Remote host closed the connection]
sytherax has joined #ruby
sytherax has quit [Remote host closed the connection]
knight33 has quit [Ping timeout: 240 seconds]
nicht has quit [Ping timeout: 245 seconds]
za1b1tsu has joined #ruby
za1b1tsu has quit [Ping timeout: 256 seconds]
kmurphy4 has quit [Quit: kmurphy4]
cschneid has quit [Remote host closed the connection]
sytherax has joined #ruby
sytherax has quit [Remote host closed the connection]
sytherax has joined #ruby
WAFFLEMAKER3000 has joined #ruby
cadillac_ has quit [Quit: I quit]
cadillac_ has joined #ruby
subroot has joined #ruby
WAFFLEMAKER3000 has quit [Ping timeout: 264 seconds]
braincrash has quit [Quit: bye bye]
braincrash has joined #ruby
ramfjord has joined #ruby
duderonomy has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
nicht has joined #ruby
Jonno_FTW has joined #ruby
<Jonno_FTW>
hello, I get this error when I try to install gems: ERROR: While executing gem ... (Errno::EIO) Input/output error @ fptr_finalize - /home/CSEM/mack0242/.gem/ruby/2.3.0/cache/devise-two-factor-2.0.1.gem
<Radar>
That's a new one
<Jonno_FTW>
my home directory is on an nfs, could this be the problem?
<Radar>
Possibly.
t0xik has joined #ruby
sytherax has quit [Remote host closed the connection]
sytherax has joined #ruby
sytherax has quit [Remote host closed the connection]
sytherax has joined #ruby
gravitation has joined #ruby
gravitation has quit [Client Quit]
karapetyan has joined #ruby
dviola has quit [Quit: WeeChat 2.1]
darkhanb has joined #ruby
karapetyan has quit [Ping timeout: 260 seconds]
DroidBurgundy has quit []
sytherax has quit [Remote host closed the connection]
cschneid has joined #ruby
za1b1tsu has joined #ruby
sytherax has joined #ruby
jamesaxl has quit [Quit: WeeChat 2.1]
subroot has quit [Read error: Connection reset by peer]
zapata has quit [Quit: WeeChat 2.1]
workmad3 has joined #ruby
regedit has quit [Quit: Connection closed for inactivity]
workmad3 has quit [Ping timeout: 260 seconds]
QCF has joined #ruby
sytherax has quit [Ping timeout: 264 seconds]
comrade_RMS is now known as coffeecupp__
tdy has quit [Ping timeout: 256 seconds]
orbyt_ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
nicht has quit [Ping timeout: 245 seconds]
tdy has joined #ruby
wontruefree has joined #ruby
wontruefree has quit [Client Quit]
cschneid has quit [Remote host closed the connection]
karapetyan has joined #ruby
shinnya has quit [Ping timeout: 264 seconds]
karapetyan has quit [Ping timeout: 256 seconds]
karuna has joined #ruby
drale2k_ has joined #ruby
sytherax has joined #ruby
elomatreb has joined #ruby
za1b1tsu has quit [Ping timeout: 264 seconds]
QCF has quit [Ping timeout: 265 seconds]
reber has joined #ruby
sytherax has quit [Ping timeout: 268 seconds]
twe4ked has quit [Ping timeout: 276 seconds]
drale2k_ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
sinduck has joined #ruby
cadillac_ has quit [Ping timeout: 240 seconds]
cadillac_ has joined #ruby
Fraeon has quit [Ping timeout: 256 seconds]
SeepingN has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
twe4ked has joined #ruby
sytherax has joined #ruby
sauvin has joined #ruby
duderonomy has joined #ruby
nadir has quit [Quit: Connection closed for inactivity]
cadillac_ has quit [Ping timeout: 264 seconds]
lytol has quit [Remote host closed the connection]
cadillac_ has joined #ruby
za1b1tsu has joined #ruby
sytherax has quit [Remote host closed the connection]
sytherax has joined #ruby
troys has quit [Quit: Bye]
cadillac_ has quit [Read error: Connection reset by peer]
sytherax has quit [Remote host closed the connection]
workmad3 has quit [Ping timeout: 248 seconds]
ur5us has quit [Remote host closed the connection]
ur5us has joined #ruby
mzo has quit [Ping timeout: 255 seconds]
chat_ has joined #ruby
cadillac_ has quit [Ping timeout: 264 seconds]
aupadhye has joined #ruby
konsolebox has joined #ruby
chat has quit [Ping timeout: 268 seconds]
ur5us has quit [Ping timeout: 276 seconds]
cadillac_ has joined #ruby
chat has joined #ruby
chat_ has quit [Ping timeout: 276 seconds]
cadillac_ has quit [Ping timeout: 260 seconds]
biberu has joined #ruby
nadir has joined #ruby
crimsontr has joined #ruby
crimsontr has quit [Client Quit]
workmad3 has joined #ruby
pwnd_nsfw` has joined #ruby
umesh has joined #ruby
pwnd_nsfw has quit [Ping timeout: 240 seconds]
<umesh>
Hi
<umesh>
Hello I need help on HTTPARTY
karapetyan has joined #ruby
<umesh>
If you can share any link or KB on HTTPARTY, I have to call an API also pass authentication before we connect to end point
sytherax has joined #ruby
<dminuoso>
umesh: HTTP is stateless. How does your service work with authentication?
Fraeon has joined #ruby
<umesh>
I need to parse API,
<umesh>
Which requires Authentication
<dminuoso>
How does it authenticate users?
jcarl43 has quit [Quit: WeeChat 2.1]
karapetyan has quit [Ping timeout: 260 seconds]
<umesh>
I don't know how authentication works on http
<dminuoso>
umesh: HTTP comes with basic authentication, but the service may require some stateful authentication scheme.
<dminuoso>
So Im asking *you* - what does your service require exactly?
sytherax has quit [Ping timeout: 255 seconds]
marius has quit [Quit: baj]
<umesh>
we have appliance known as infoblox where in only authenticated user is able to modify DNS records
marius has joined #ruby
amar has joined #ruby
pskosinski has quit [Ping timeout: 245 seconds]
<umesh>
Infoblox is DNS appliance which exposes API which we can consume, I want to use CHEF to modify DNS records, I thought HTTPARTY would be best to utilise
clemens3_ has joined #ruby
<umesh>
I am new to programming, did I answered your question
clemens31 has joined #ruby
saTchymoto has joined #ruby
pskosinski has joined #ruby
ciscam has quit [Ping timeout: 264 seconds]
karuna has quit [Quit: Connection closed for inactivity]
ciscam has joined #ruby
sameerynho has joined #ruby
<dminuoso>
umesh: No. Authentication is the process of determining ones identity.
<dminuoso>
I do not know how your webservice does this. Is an extra request beforehand necessary? Do you authenticate with Basic authentication? Do you pass a JWT header along?
<dminuoso>
The latter would rather be authorization, but lets not split hairs.
Nussi has joined #ruby
_aeris_ has quit [Remote host closed the connection]
<ruby[bot]>
umesh: we in #ruby do not like irccloud.com, it has no syntax highlighting, distracting formatting and loads slowly for most. Please use https://gist.github.com
clemens31 has joined #ruby
TomyWork has joined #ruby
<dminuoso>
umesh: And what problem do you have?
<dminuoso>
umesh: Oh you cant use spaces in between the colon and the symbol name
<dminuoso>
You have to write it { :username => ..., :password => ... }
<dminuoso>
Or use the modern shortcut: { username: ..., password: ... }
claudiuinberlin has joined #ruby
pabs has quit [Ping timeout: 248 seconds]
dionysus69 has quit [Ping timeout: 264 seconds]
pabs has joined #ruby
sytherax has joined #ruby
wald0 has quit [Ping timeout: 256 seconds]
j0bk has quit [Ping timeout: 240 seconds]
<umesh>
Ok, thank you
sytherax has quit [Ping timeout: 276 seconds]
andikr has joined #ruby
<umesh>
Actually I had missed require 'httparty'
<umesh>
@dminuoso Thanks again for Ur help
j0bk has joined #ruby
j0bk has joined #ruby
j0bk has quit [Changing host]
iMadper has joined #ruby
ellcs has joined #ruby
za1b1tsu has joined #ruby
sytherax has joined #ruby
sysvalve has joined #ruby
ramfjord has quit [Ping timeout: 264 seconds]
sytherax has quit [Remote host closed the connection]
sytherax has joined #ruby
<umesh>
I only have details of .get but how to use other verbs like post delete
DarkUnicorn_ has joined #ruby
DarkUnicorn_ is now known as DarkUnicorn
tvl has joined #ruby
tvl is now known as tobiasvl
iMadper` has joined #ruby
iMadper has quit [Ping timeout: 256 seconds]
Zaab1t has joined #ruby
iMadper`` has joined #ruby
iMadper` has quit [Ping timeout: 248 seconds]
schleppel has joined #ruby
dionysus69 has joined #ruby
sytherax has quit [Remote host closed the connection]
nowhere_man has quit [Read error: Connection reset by peer]
nowhere_man has joined #ruby
dionysus69 has quit [Ping timeout: 240 seconds]
Burgestrand has joined #ruby
jrafanie_ has joined #ruby
VladGh_ has joined #ruby
mtkd has joined #ruby
mikecmpbll has joined #ruby
VladGh has quit [Ping timeout: 240 seconds]
Es0teric has joined #ruby
jrafanie has quit [Ping timeout: 264 seconds]
ramfjord has joined #ruby
yohji has joined #ruby
jottr has joined #ruby
ramfjord has quit [Ping timeout: 256 seconds]
sytherax has joined #ruby
TinkerT has quit [Read error: Connection reset by peer]
sytherax has quit [Remote host closed the connection]
TinkerT has joined #ruby
sytherax has joined #ruby
ellcs has quit [Ping timeout: 260 seconds]
nowhere_man has quit [Read error: Connection reset by peer]
nowhereman_ has joined #ruby
dionysus69 has joined #ruby
cabotto has joined #ruby
sytherax has quit [Remote host closed the connection]
amar has quit [Remote host closed the connection]
sytherax has joined #ruby
jottr has quit [Ping timeout: 264 seconds]
Pisuke has joined #ruby
karapetyan has joined #ruby
MyMind has quit [Ping timeout: 268 seconds]
Es0teric has quit [Quit: Computer has gone to sleep.]
iMadper`` is now known as Madper
sytherax has quit [Remote host closed the connection]
sytherax has joined #ruby
sytherax has quit [Remote host closed the connection]
karapetyan has quit [Ping timeout: 260 seconds]
sytherax has joined #ruby
sytherax has quit [Remote host closed the connection]
sytherax has joined #ruby
amar_ has joined #ruby
crankharder has quit [Ping timeout: 264 seconds]
crankharder has joined #ruby
Beams has joined #ruby
sytherax has quit [Remote host closed the connection]
sytherax has joined #ruby
tvw has joined #ruby
sytherax has quit [Remote host closed the connection]
WAFFLEMAKER3000 has joined #ruby
andikr has quit [Ping timeout: 264 seconds]
dhollin3 has joined #ruby
WAFFLEMAKER3000 has quit [Ping timeout: 260 seconds]
dhollinger has quit [Ping timeout: 276 seconds]
sytherax has joined #ruby
andikr has joined #ruby
sytherax has quit [Remote host closed the connection]
sytherax has joined #ruby
mtkd has quit []
sytherax has quit [Remote host closed the connection]
mtkd has joined #ruby
Eiam has quit [Ping timeout: 276 seconds]
KeyJoo has quit [Ping timeout: 260 seconds]
ellcs has joined #ruby
voxxit has quit [Ping timeout: 240 seconds]
Burgestrand has quit [Quit: Closing time!]
voxxit has joined #ruby
arne_ has joined #ruby
<arne_>
is there someway to reenter a "case" ?
<arne_>
like..
<dminuoso>
arne_: Hey. Did you catch my previous messages by the way? =P
<arne_>
dminuoso: i guess not i had to reboot :(
<arne_>
sorry for being impolite
<dminuoso>
No worries.
<dminuoso>
arne_: So I have determined the stm implementation of Ruby to be beneath consideration.
<dminuoso>
well. of concurrent-ruby
<arne_>
that means?
<dminuoso>
arne_: You'll be happier with a SizedQueue or manual conditional variabling yourself.
<arne_>
:> i already used that one
<arne_>
it's great, didn't know about that
<dminuoso>
arne_: I keep forgetting that languages other than Haskell dont have an STM implementation worth considering.
<arne_>
is there some neat trick to end up in multiple "when" in a case?
<dminuoso>
Well clojure perhaps *shrugs*
<arne_>
well, other languages lack the abstraction and you will end up with so much code managing that
<dminuoso>
arne_: there's no fallthrough
<dminuoso>
(which I think is a good thing))
<arne_>
so it's not worth considering it in other languages
<arne_>
well i have something like
<dminuoso>
arne_: well you can implement stm in other languages - but it requires a lot of effort.
<dminuoso>
it's more than just writing 100 lines of code and having a fully sleek and powerful transaction manager
<arne_>
case a; when x; if b; c;end;else c;end; when y; c;
<arne_>
and c is pretty long.
<arne_>
that code doesnt make sense
<dminuoso>
arne_: Sometimes it can be helpful to flip the logic around.
<arne_>
dminuoso: you can implement everything in everything.. thats what turing-completeness describes..
<dminuoso>
That is, dont successively try to filter out the cases you dont want, but specify conditions for the cases you do want
<arne_>
all languages lacking abstraction counter their lack of it by using patterns
thinkpad has quit [Quit: lawl]
<dminuoso>
arne_: STM basically requires a) a good type system to avoid you shooting yourself in the foot, b) good RTS support if you want it efficiently done.
<arne_>
but it's ugly af, so you should not do it, unless you have a really good reason to
<dminuoso>
Ruby has neither. :(
tdy has quit [Read error: Connection reset by peer]
tdy has joined #ruby
steerio has left #ruby [#ruby]
RougeR has joined #ruby
RougeR has joined #ruby
RougeR has quit [Changing host]
andikr has quit [Read error: Connection reset by peer]
crptck has joined #ruby
thinkpad has joined #ruby
ramfjord has joined #ruby
Asher has joined #ruby
<arne_>
good rts support, ruby barely has threads
<arne_>
:D
sytherax has joined #ruby
<arne_>
dminuoso: someone linked a paper a few days ago
<arne_>
how hardware transactional memory could kill GIL
<arne_>
mean i'd love that
<arne_>
man*
ramfjord has quit [Ping timeout: 255 seconds]
Asher has quit [Ping timeout: 255 seconds]
sytherax has quit [Ping timeout: 265 seconds]
micutzu has quit [Ping timeout: 248 seconds]
sytherax has joined #ruby
micutzu has joined #ruby
lbracher has quit [Ping timeout: 264 seconds]
hfp_work has quit [Quit: bye]
sytherax has quit [Remote host closed the connection]
\void has quit [Quit: So long, and thanks for all the fish.]
AJA4350 has joined #ruby
hfp_work has joined #ruby
jrafanie_ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
jrafanie has joined #ruby
lbracher has joined #ruby
jrafanie has quit [Client Quit]
Madper has quit [Remote host closed the connection]
sylario has joined #ruby
karapetyan has joined #ruby
jrafanie has joined #ruby
amar_ has quit [Remote host closed the connection]
karapetyan has quit [Ping timeout: 260 seconds]
cabotto has quit [Remote host closed the connection]
cabotto has joined #ruby
dionysus69 has quit [Remote host closed the connection]
dionysus69 has joined #ruby
claudiuinberlin has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
andikr has joined #ruby
aufi has joined #ruby
cabotto has quit [Remote host closed the connection]
ciscam has quit [Ping timeout: 268 seconds]
ciscam has joined #ruby
donofrio has joined #ruby
ramfjord has joined #ruby
dionysus69 has quit [Remote host closed the connection]
aupadhye has quit [Ping timeout: 240 seconds]
dionysus69 has joined #ruby
DarkUnicorn has quit [Quit: Connection closed for inactivity]
ramfjord has quit [Ping timeout: 265 seconds]
aupadhye has joined #ruby
Burgestrand has joined #ruby
cabotto has joined #ruby
micutzu has quit [Ping timeout: 255 seconds]
aupadhye has quit [Ping timeout: 265 seconds]
nadir has quit [Quit: Connection closed for inactivity]
fmcgeough has joined #ruby
karapetyan has joined #ruby
ldnunes has joined #ruby
amar_ has joined #ruby
jidar has quit [Ping timeout: 240 seconds]
claudiuinberlin has joined #ruby
aupadhye has joined #ruby
karuna has quit [Quit: Connection closed for inactivity]
conta has joined #ruby
jrafanie has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
kapil___ has joined #ruby
apparition has joined #ruby
venmx has joined #ruby
sytherax has joined #ruby
KeyJoo has joined #ruby
sytherax has quit [Ping timeout: 248 seconds]
vondruch_ has joined #ruby
fffco has joined #ruby
KeyJoo has quit [Remote host closed the connection]
venmx has quit [Ping timeout: 260 seconds]
vondruch has quit [Ping timeout: 248 seconds]
vondruch_ is now known as vondruch
KeyJoo has joined #ruby
KeyJoo has quit [Max SendQ exceeded]
KeyJoo has joined #ruby
micutzu has joined #ruby
sytherax has joined #ruby
aupadhye has quit [Ping timeout: 245 seconds]
sytherax has quit [Remote host closed the connection]
andikr has quit [Remote host closed the connection]
aupadhye has joined #ruby
mtkd has quit []
cabotto has quit [Remote host closed the connection]
belsaur has joined #ruby
<belsaur>
hi, I got a question. New to Ruby.
aufi has quit [Ping timeout: 264 seconds]
<belsaur>
Am trying to map over an array
sytherax has joined #ruby
<belsaur>
To remove one field
<belsaur>
Is there a handy function?
<apeiros>
&ri Array#map
<belsaur>
Like, if an array of hashes are there
<apeiros>
aaand I keep forgetting that this bot is still offline :(
<belsaur>
And from every hash, I want to remove one field
<apeiros>
though, depends if you want a new array with new hashes
<belsaur>
I just want to keep 29 fields, and remove 1 field
<apeiros>
or the old array with the old hashes mutated
<belsaur>
I want a new array with new hashes
<belsaur>
No, I don't want to mutate old hashes
gizmore has joined #ruby
<apeiros>
ok. I don't think you have to manually include the 29 fields you want.
<apeiros>
dup the hashes and .delete the field you don't want.
<belsaur>
hmm, makes sense
<belsaur>
thanks apeiros
sytherax has quit [Ping timeout: 256 seconds]
belsaur has quit [Quit: Page closed]
conta has quit [Quit: conta]
Biappi has joined #ruby
bruno- has joined #ruby
Burgestrand has quit [Quit: Closing time!]
Burgestrand has joined #ruby
cyberg has joined #ruby
venmx has joined #ruby
karapetyan has quit [Remote host closed the connection]
aufi has joined #ruby
amar_ has quit [Ping timeout: 240 seconds]
subroot has joined #ruby
nielsk has quit [Quit: So Long, and Thanks for All the Fish]
mtkd has joined #ruby
nielsk has joined #ruby
nowhereman_ has quit [Ping timeout: 260 seconds]
cabotto has joined #ruby
FernandoBasso has joined #ruby
nowhereman_ has joined #ruby
jidar has joined #ruby
vondruch has quit [Quit: vondruch]
vondruch has joined #ruby
karapetyan has joined #ruby
nowhereman_ has quit [Read error: Connection reset by peer]
KeyJoo has quit [Read error: Connection reset by peer]
Asher has joined #ruby
nowhereman_ has joined #ruby
karapetyan has quit [Ping timeout: 240 seconds]
Asher has quit [Ping timeout: 240 seconds]
ramfjord has joined #ruby
cadillac_ has joined #ruby
Tempesta has quit [Remote host closed the connection]
fffco has quit [Ping timeout: 245 seconds]
ramfjord has quit [Ping timeout: 256 seconds]
cadillac_ has quit [Read error: Connection reset by peer]
alex`` has joined #ruby
nowhereman_ has quit [Remote host closed the connection]
cadillac_ has joined #ruby
sytherax has joined #ruby
gheegh has joined #ruby
bmurt has joined #ruby
sytherax has quit [Remote host closed the connection]
reber has quit [Remote host closed the connection]
DroidBurgundy has joined #ruby
DroidBurgundy has quit [Remote host closed the connection]
DroidBurgundy has joined #ruby
DroidBurgundy has quit [Remote host closed the connection]
<gheegh>
Hey all.. so I have this problem.. i'm using an intermediate proxy to retrieve some documents. Sometimes, the intermediate response will be passed as a GZip encoded body.. but i can't for the life of me seem to decode it.. Gzip gives a "not a gzip format" error..
nowhereman_ has joined #ruby
m1st3rwr0ng has joined #ruby
Asher has joined #ruby
sytherax has joined #ruby
orbyt_ has joined #ruby
nowhereman_ has quit [Remote host closed the connection]
anisha has quit [Quit: This computer has gone to sleep]
orbyt_ has quit [Ping timeout: 240 seconds]
sytherax has quit [Remote host closed the connection]
sytherax has joined #ruby
cadillac_ has quit [Ping timeout: 260 seconds]
nowhereman_ has quit [Ping timeout: 245 seconds]
Kensei has quit [Ping timeout: 260 seconds]
p0p0pr37 has quit [Remote host closed the connection]
nowhereman_ has joined #ruby
cadillac_ has joined #ruby
sytherax has quit [Remote host closed the connection]
nowhereman_ has quit [Read error: Connection reset by peer]
cadillac_ has quit [Ping timeout: 264 seconds]
cadillac_ has joined #ruby
sytherax has joined #ruby
p0p0pr37 has joined #ruby
nowhereman_ has joined #ruby
amar_ has joined #ruby
karapetyan has joined #ruby
karapetyan has quit [Remote host closed the connection]
sytherax has quit [Remote host closed the connection]
sytherax has joined #ruby
cadillac_ has quit [Read error: Connection reset by peer]
cadillac_ has joined #ruby
sytherax has quit [Remote host closed the connection]
vondruch_ has joined #ruby
vondruch has quit [Ping timeout: 240 seconds]
vondruch_ is now known as vondruch
reber has joined #ruby
jamesaxl has joined #ruby
aupadhye has quit [Remote host closed the connection]
cadillac_ has quit [Ping timeout: 256 seconds]
desperek has joined #ruby
<dminuoso>
gheegh: what does `file` tell you it is?
<dminuoso>
gheegh: Also check out the file with a text editor, as well as a hex editor.
<gheegh>
let me figure out how to tell you the answer..
sytherax has joined #ruby
<havenwood>
gheegh: file FILENAME
dionysus69 has quit [Ping timeout: 260 seconds]
<havenwood>
gheegh: xxd FILENAME
<gheegh>
it's s tring in my retrieval response.. not a file
<gheegh>
it's a string in my retrieval response.. not a file
thebetrayer has joined #ruby
amar_ has quit [Remote host closed the connection]
<havenwood>
gheegh: echo string | xargs file
<havenwood>
gheegh: echo string | xxd
<dminuoso>
havenwood: say what? :p
amar_ has joined #ruby
<havenwood>
dminuoso: coffeetime!
<havenwood>
ew, file doesn't handle piping very nicely
<havenwood>
i guess its name shows its bias
<dminuoso>
havenwood: also the authors have little humor
<dminuoso>
file `which file`
<dminuoso>
I somehow expected some joke about recursion.
jrafanie has joined #ruby
dhollin3 is now known as dhollinger
amar_ has quit [Ping timeout: 265 seconds]
venmx has quit [Ping timeout: 256 seconds]
pastorinni has joined #ruby
sytherax has quit [Remote host closed the connection]
sytherax has joined #ruby
icy` has joined #ruby
WAFFLEMAKER3000 has joined #ruby
t0xik has quit [Quit: Connection closed for inactivity]
<swein>
Anyone have nokojiri experience?
<havenwood>
swein: Many do, yerp.
* dminuoso
usually puts some cinnamon in his nokogiri
<dminuoso>
And a strawberry.
<swein>
I've been reading tuts and postings but I still can't seem to scrape a div class block. anyone care to help for a second?
<swein>
I am scraping off: https://www.nasdaq.com/symbol/ps , I want a div and it's contents that start at the key stock data (class="row overview-results relativeP")
saTchymoto has quit []
sytherax has quit [Remote host closed the connection]
za1b1tsu has quit [Ping timeout: 268 seconds]
<swein>
reading html in with nokogiri I keep getting empty results with items = doc.css('div.row overview-results relativeP')
<havenwood>
!unban chouhoulis
chouhoulis has joined #ruby
mtkd has quit []
vondruch has quit [Quit: vondruch]
apparition has quit [Quit: Bye]
vondruch has joined #ruby
mtkd has joined #ruby
amar_ has joined #ruby
BlopMonster has joined #ruby
Burgestrand has quit [Quit: Closing time!]
chouhoul_ has joined #ruby
sphenxes has joined #ruby
chouhoulis has quit [Ping timeout: 276 seconds]
karapetyan has joined #ruby
amar_ has quit [Remote host closed the connection]
kmurphy4 has joined #ruby
kmurphy4 has quit [Max SendQ exceeded]
DeepIO has joined #ruby
DeepIO has quit [Max SendQ exceeded]
karapetyan has quit [Ping timeout: 245 seconds]
kmurphy4 has joined #ruby
dendazen has joined #ruby
amar_ has joined #ruby
biberu has quit []
ldnunes has quit [Quit: Leaving]
BlopMonster has quit [Ping timeout: 240 seconds]
<jrich523>
so i now need to correct my script for the version it has to run on.. and dig isnt an option.. what was the method prior to dig to do that safely?
chouhoul_ has quit [Remote host closed the connection]
<gheegh>
fetch(x, nil)
<jrich523>
awesome, thanks!
<gheegh>
or just [] and it will return a nil if there isn't a key
chouhoulis has joined #ruby
<jrich523>
oh i could have sworn that caused an error.. hmm guess i'll double check that
<gheegh>
well, if you do [] for example on a nil, it will
<gheegh>
variable.try(:[], x) is also an option
Biappi has left #ruby [#ruby]
<jrich523>
i think try is what i had come across previously
nowhereman_ has quit [Remote host closed the connection]
nowhereman_ has joined #ruby
cthulchu has quit [Read error: Connection reset by peer]
cthulchu has joined #ruby
Mike11 has joined #ruby
Beams has quit [Quit: .]
biberu has joined #ruby
mikecmpbll has quit [Quit: inabit. zz.]
amar_ has joined #ruby
ramfjord has joined #ruby
nowhereman_ has quit [Ping timeout: 265 seconds]
yohji has quit [Remote host closed the connection]
SeepingN has quit [Ping timeout: 260 seconds]
ramfjord has quit [Client Quit]
[Butch] has joined #ruby
DTZUZO has quit [Ping timeout: 255 seconds]
amar_ has quit [Ping timeout: 260 seconds]
nowhereman_ has joined #ruby
kapil___ has quit [Quit: Connection closed for inactivity]
nowhereman_ has quit [Ping timeout: 265 seconds]
tvw has quit [Remote host closed the connection]
BlopMonster has joined #ruby
za1b1tsu has joined #ruby
nowhereman_ has joined #ruby
BlopMonster has quit [Ping timeout: 256 seconds]
d^sh has quit [Ping timeout: 265 seconds]
d^sh has joined #ruby
nowhereman_ has quit [Ping timeout: 260 seconds]
nowhereman_ has joined #ruby
Azure has joined #ruby
jottr has joined #ruby
nowhereman_ has quit [Ping timeout: 260 seconds]
dionysus69 has joined #ruby
drale2k_ has joined #ruby
nowhereman_ has joined #ruby
RougeR has joined #ruby
mzo has quit [Ping timeout: 260 seconds]
karapetyan has quit [Remote host closed the connection]
delsol has quit []
pankaj has joined #ruby
<pankaj>
Is their any good book on ruby. I have searched a lot but they are start with basic and also they are not well structured. I want to learn more ruby in depth but most of the books do not focus in its depth like what are other different classes how to build them and modules etc and such deep concepts.
hahuang65_ has joined #ruby
<dminuoso>
pankaj: Eloquent Ruby
<pankaj>
dminuoso: OK
hahuang65 has quit [Ping timeout: 256 seconds]
<pankaj>
dminuoso: It happened to me that time also when I learned java. I was going throught but in every book I find that it tells you to basic and do not deal with it fully. But when I saw a boot which was for SCJP certification then it was what I wanted. I told each and every aspect of java and in depth.
<pankaj>
dminuoso: /s/boot/book
eckhardt has joined #ruby
eckhardt has quit [Client Quit]
<pankaj>
dminuoso: And also deal with libraries and other stuff internally going on with language. That is what i want with ruby also.
eckhardt has joined #ruby
<pankaj>
dminuoso: Will eloquent ruby be sufficient?
<jrich523>
oh cool, thanks havenwoodim reading it now, so far so good :)
<jrich523>
a tad wordy, but good
<jrich523>
weird lol
<jrich523>
the start of that msg was from before, and not shown on my console...
<dminuoso>
pankaj: There are few good books. Eloquent Ruby is the best for "how to get things done" for more advanced readers.
<dminuoso>
Ruby under a microscope covers a bit how ruby works internally, but it's old and will become gradually less accurate.
TomyWork has quit [Ping timeout: 240 seconds]
BH23 has quit [Remote host closed the connection]
bruno- has quit [Quit: leaving]
SeepingN has joined #ruby
BH23 has joined #ruby
<pankaj>
dminuoso: OK.
<pankaj>
dminuoso: But I did not understood what point you made in the last statement.
<wrkrcoop>
hello. i haven’t used ruby in a while, i’m trying to do something with node but it’s not working, it seems to work with ruby so i figured i’d just use sinatra
<wrkrcoop>
i only need like one route does anyone have a sinatra skeleton that i can use?
DTZUZO has joined #ruby
<apeiros>
wrkrcoop: just read sinatra's readme?
BlopMonster has joined #ruby
<dminuoso>
pankaj: Its not exactly up to date anymore, and with every passing year Ruby core drifts away from the details covered in the book.
wrkrcoop has quit [Ping timeout: 265 seconds]
workmad3 has quit [Ping timeout: 240 seconds]
BlopMonster has quit [Ping timeout: 264 seconds]
sytherax has joined #ruby
ellcs has joined #ruby
<pankaj>
dminuoso: So, what is the best advice to keep upto date in ruby?
<Zarthus>
what do you want to stay up to date about?
sytherax has quit [Ping timeout: 260 seconds]
nowhereman_ has quit [Ping timeout: 256 seconds]
<eam>
hang out in this irc channel, obviously
nowhereman_ has joined #ruby
thadtheman has joined #ruby
<thadtheman>
In pry how can I list lines of code?
drale2k_ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
karapetyan has joined #ruby
sauvin has quit [Remote host closed the connection]
<akaiiro>
pankaj when you get done with «Eloquent Ruby», try «Practical Object-Oriented Design in Ruby» http://www.poodr.com/
drale2k_ has joined #ruby
lbracher has quit [Ping timeout: 245 seconds]
jenrzzz has joined #ruby
jenrzzz has joined #ruby
jenrzzz has quit [Changing host]
<pankaj>
akaiiro: OK. I will keep track of it so that when finished with first one I will definitely check out the second one. Thanks for that.
dionysus69 has quit [Ping timeout: 256 seconds]
karapetyan has quit [Ping timeout: 256 seconds]
desnudopenguino has joined #ruby
<desnudopenguino>
anyone have any experience working with ruby-build on openbsd?
ellcs has quit [Ping timeout: 265 seconds]
pastorinni has quit [Remote host closed the connection]
pastorinni has joined #ruby
SeepingN has quit [Disconnected by services]
SeepingN_ has joined #ruby
mtkd has quit []
agent_white has joined #ruby
pastorinni has quit [Ping timeout: 264 seconds]
mtkd has joined #ruby
conta1 has joined #ruby
Asher has joined #ruby
nowhereman_ has quit [Remote host closed the connection]
nowhereman_ has joined #ruby
drale2k_ has quit [Read error: Connection reset by peer]
za1b1tsu has quit [Ping timeout: 240 seconds]
za1b1tsu has joined #ruby
mikecmpbll has joined #ruby
Zaab1t has quit [Quit: Zaab1t]
apeiros has quit [Read error: Connection reset by peer]
apeiros has joined #ruby
cagomez has quit [Remote host closed the connection]
mikecmpbll has quit [Quit: inabit. zz.]
cagomez has joined #ruby
mikecmpbll has joined #ruby
cagomez has quit [Ping timeout: 245 seconds]
karapetyan has joined #ruby
nowhereman_ has quit [Ping timeout: 256 seconds]
cschneid has quit [Read error: Connection reset by peer]
karapetyan has quit [Remote host closed the connection]
biberu has quit []
karapetyan has joined #ruby
pankaj has quit [Ping timeout: 260 seconds]
Azure has quit [Ping timeout: 260 seconds]
akkad has joined #ruby
cagomez has joined #ruby
Azure has joined #ruby
tdy has quit [Ping timeout: 268 seconds]
cagomez has quit [Ping timeout: 240 seconds]
icarus_ has joined #ruby
tdy has joined #ruby
icarus has quit [Disconnected by services]
icarus_ is now known as icarus
kmurphy4 has quit [Quit: Leaving]
nowhereman_ has joined #ruby
megamos has joined #ruby
cagomez has joined #ruby
jenrzzz has quit [Ping timeout: 240 seconds]
dbugger_ has joined #ruby
\void has joined #ruby
cagomez has quit [Ping timeout: 248 seconds]
redlegion has quit [Read error: Connection reset by peer]
_aeris_ has quit [Read error: Connection reset by peer]
jnollette has quit [Read error: Connection reset by peer]
jenrzzz has joined #ruby
jenrzzz has joined #ruby
jenrzzz has quit [Changing host]
skryking has joined #ruby
Azure has quit [Ping timeout: 245 seconds]
Mike11 has quit [Quit: Leaving.]
Asher has quit [Quit: Leaving.]
Azure has joined #ruby
_aeris_ has joined #ruby
karapetyan has quit [Remote host closed the connection]
Asher has joined #ruby
karapetyan has joined #ruby
redlegion has joined #ruby
redlegion has quit [Remote host closed the connection]
redlegion has joined #ruby
rippa has quit [Quit: {#`%${%&`+'${`%&NO CARRIER]
jnollette has joined #ruby
FernandoBasso has quit [Quit: Leaving]
dviola has joined #ruby
mmattice has joined #ruby
SeepingN_ is now known as SeepingN
amatas has joined #ruby
<mmattice>
Is it reasonable to load a kitchen config yaml and then override something in the transport setup?
dreamthese has quit [Read error: Connection reset by peer]
karapetyan has quit [Remote host closed the connection]
za1b1tsu has quit [Ping timeout: 260 seconds]
DarkUnicorn has joined #ruby
dreamthese has joined #ruby
jenrzzz_ has joined #ruby
wontruefree has quit [Quit: bye]
jenrzzz has quit [Ping timeout: 248 seconds]
workmad3 has joined #ruby
grilix_ has quit [Quit: Ooops]
za1b1tsu has joined #ruby
cagomez has joined #ruby
conta1 has quit [Quit: conta1]
braindead_ has quit [Quit: Page closed]
fffco has joined #ruby
c0ncealed2 has quit [Remote host closed the connection]
Azure has quit [Ping timeout: 248 seconds]
c0ncealed2 has joined #ruby
workmad3 has quit [Ping timeout: 260 seconds]
KeyJoo has joined #ruby
KeyJoo has quit [Max SendQ exceeded]
karapetyan has joined #ruby
wontruefree has joined #ruby
amatas has quit [Remote host closed the connection]
<apeiros>
I will, if you come up with an actually useful problem description ;-)
<apeiros>
ah, I was too impatient
<cthulchu>
aha
<apeiros>
line numbers match with the paste?
<apeiros>
your… indentation is terrible. really. you should fix that first.
<cthulchu>
they do
<cthulchu>
I use Atom
<cthulchu>
I'll switch to an actual IDE later
<apeiros>
so? atom can't do indents or what?
<cthulchu>
that's how it does it
<Radar>
[09:38:59] <apeiros>your… indentation is terrible. really. you should fix that first. <- strong confirm
<apeiros>
I haven't used atom, but I doubt it did it like that on its own
<cthulchu>
what don't you like about it?
<Radar>
cthulchu: methods are indented one step too far
<cthulchu>
right
<cthulchu>
that's me copying them from somewhere else :)
<Radar>
You're also missing an end after line 22. The end you have there is matching the `if`, not the `def`
<apeiros>
if you fixed your indentation, look for places where it indents or deintents multiple levels at once.
<cthulchu>
but I don't know how to move everything to the left, so I don't bother
<apeiros>
then you'll see your issue.
<cthulchu>
I don't have a format all option here
jcarl43 has quit [Quit: WeeChat 2.1]
<cthulchu>
Do I need to explicitly end ifs with only one item in them?!
<apeiros>
most text editors I know it's "select all relevant lines, hit shift-tab"
<cthulchu>
apeiros, thanks a lot!
<cthulchu>
helped
<apeiros>
yes. ruby isn't C, as we've just recently noticed :)
<apeiros>
`action if condition` if you don't want to indent. only recommended for very short code on both sides of the if.
orbyt_ has quit [Ping timeout: 260 seconds]
dogweather has joined #ruby
<cthulchu>
I guess I still can do ternaries
<cthulchu>
Ruby motivates me to do more of them
<SeepingN>
puts ("Analytics Test Success") if (type == "1" && test == "2" && step == "3") # 1 line
rgiscard has joined #ruby
<cthulchu>
will it eat (type == "1" && test == "2" && step == "3")?puts ("Analytics Test Success"):null
<SeepingN>
nil
<cthulchu>
right
<cthulchu>
nil
<apeiros>
if you want to write ugly code like that, at least do it right: `(type == "1" && test == "2" && step == "3") and puts ("Analytics Test Success")`
<apeiros>
(perlism btw.)
<cthulchu>
what
<cthulchu>
and?!
<cthulchu>
why and?
<cthulchu>
doesn't make sense
<apeiros>
eh, you not being able to make sense of it != it not making sense.
<cthulchu>
me not being make sense of it == it not making sense to me
<cthulchu>
you do love to discuss irrelevant stuff
<apeiros>
sure, just like you :-p
<cthulchu>
will that be a ternary?
<apeiros>
no
<cthulchu>
what does it do?
<apeiros>
that's a logical "and"
<apeiros>
it puts if the condition is truthy
<cthulchu>
aaaah
<cthulchu>
that's very weird
<cthulchu>
very very weird
eckhardt has joined #ruby
<cthulchu>
I would never write anything like that
<cthulchu>
gonna go ask node folks if they would
<cthulchu>
it's an interesting approach though
<apeiros>
not much weirder than (ab-)using ternary without wanting its value.
roamingdog has joined #ruby
smithja has joined #ruby
<cthulchu>
it's negative value
<apeiros>
as said, it's a perlism. and also as said, I consider it ugly code.
<apeiros>
though, less ugly than the way you used the ternary :)
<cthulchu>
also
ellcs has quit [Ping timeout: 260 seconds]
<cthulchu>
I can replace that and with &&?
<apeiros>
also, pleeeease don't put spaces before method argument parens
<cthulchu>
it's just a synonym, right?
sameerynho has quit [Ping timeout: 248 seconds]
<apeiros>
`puts("stuff")`, not `puts ("stuff")`
<cthulchu>
ok
<apeiros>
cthulchu: no, `and` and `&&` are not synonyms (or aliases)
<cthulchu>
what's the difference
<apeiros>
they have the same functionality, but different precedence.
<cthulchu>
oh
<cthulchu>
cool
<cthulchu>
and is left to right, obviously
<cthulchu>
and &&?
<apeiros>
I think they have the same associativity direction.
<cthulchu>
what's the difference then
<cthulchu>
ah
<apeiros>
but honestly, I'm not sure. I tend to make cases unambiguous.