bjh13` has quit [Remote host closed the connection]
sp_ has quit [Ping timeout: 276 seconds]
pokalyis has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
matp has joined #ruby
p0p0pr37_ has joined #ruby
p0p0pr37 has quit [Ping timeout: 252 seconds]
p0p0pr37_ is now known as p0p0pr37
matp has quit [Remote host closed the connection]
kam270 has joined #ruby
kam270 has quit [Max SendQ exceeded]
kam270 has joined #ruby
unreal has quit [Ping timeout: 260 seconds]
kam270 has quit [Max SendQ exceeded]
kam270 has joined #ruby
jaequery has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
bjh13` has joined #ruby
xall has joined #ruby
bjh13` has quit [Client Quit]
kam270 has quit [Max SendQ exceeded]
beilabs has joined #ruby
pokalyis has joined #ruby
kam270 has joined #ruby
kam270 has quit [Max SendQ exceeded]
hahuang65 has joined #ruby
kam270 has joined #ruby
kam270 has quit [Max SendQ exceeded]
xall has quit [Ping timeout: 258 seconds]
kam270 has joined #ruby
kam270 has quit [Max SendQ exceeded]
tubuliferous_ has joined #ruby
kam270 has joined #ruby
hahuang65 has quit [Ping timeout: 250 seconds]
brttpttrsn has joined #ruby
kam270 has quit [Max SendQ exceeded]
<brttpttrsn>
If I'm iterating over a hash with map, how can I break out of it so if a condition is met, it will continue execution after the loop? I've tried using "break" and it doesn't seem to work.
tubuliferous_ has quit [Ping timeout: 264 seconds]
Derperperd has quit [Read error: Connection reset by peer]
pokalyis has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
karapetyan has joined #ruby
Derperperd has joined #ruby
sk41ks has quit [Ping timeout: 258 seconds]
soLucien has joined #ruby
<soLucien>
how to use a top-level class(namespace) in ruby ?
karapetyan has quit [Ping timeout: 244 seconds]
beilabs_ has joined #ruby
<soLucien>
if i say PSDriver.execute inside my method i get a uninitialized constant VagrantPlugins::HyperVNetworking::Action::EnsureBridgeExists::PSDriver
max1 has joined #ruby
<soLucien>
the PSDriver is actually VagrantPlugins::HyperVNetworking::PSDriver
<soLucien>
how do i refer to it inside the VagrantPlugins::HyperVNetworking::Action::EnsureBridgeExists class ?
beilabs has quit [Ping timeout: 265 seconds]
harfangk has joined #ruby
beilabs has joined #ruby
face has quit []
beilabs__ has joined #ruby
beilabs_ has quit [Ping timeout: 250 seconds]
beilabs has quit [Ping timeout: 240 seconds]
n90b0jjf has joined #ruby
braincrash has quit [Quit: bye bye]
max1 has quit [Quit: WeeChat 1.4]
dunpeal has quit [Ping timeout: 276 seconds]
Mia has joined #ruby
Mia has quit [Changing host]
Mia has joined #ruby
diegoviola has quit [Quit: WeeChat 1.5]
mikecmpbll has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
jackjackdripper has joined #ruby
theery has quit [Remote host closed the connection]
Izabia has quit [Quit: Leaving]
Izabia has joined #ruby
braincrash has joined #ruby
axsuul has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
axsuul has joined #ruby
QORRiE__ has quit [Quit: Leaving]
axsuul has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
`derpy has quit [Quit: I just don't know what went wrong.]
vuoto has quit [Quit: Lost terminal]
adaedra has joined #ruby
tomphp has quit [Client Quit]
SCHAAP137 has joined #ruby
dunpeal has joined #ruby
LoneHermit has joined #ruby
pawnbox_ has quit [Remote host closed the connection]
zarubin has quit [Remote host closed the connection]
zacstewart has joined #ruby
SCHAAP137 has quit [Ping timeout: 276 seconds]
nekompetentnyj has quit [Quit: Leaving]
symm- has joined #ruby
minimalism has quit [Quit: minimalism]
LoneHermit has quit [Ping timeout: 252 seconds]
zacstewart has quit [Ping timeout: 264 seconds]
pokalyis has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
Guest86922 has quit [Ping timeout: 250 seconds]
pawnbox has joined #ruby
Guest86922 has joined #ruby
rajdesai has joined #ruby
rajdesai has quit [Remote host closed the connection]
platzhirsch has quit [Quit: WeeChat 1.4]
platzhirsch has joined #ruby
SCHAAP137 has joined #ruby
Guest86922 has quit [Ping timeout: 260 seconds]
daffy_duck has joined #ruby
xall has joined #ruby
giz|work has quit [Ping timeout: 240 seconds]
pokalyis has joined #ruby
sdothum has joined #ruby
Guest86922 has joined #ruby
hahuang65 has joined #ruby
macsteps has quit [Remote host closed the connection]
macsteps has joined #ruby
hahuang65 has quit [Ping timeout: 250 seconds]
A_Drone has joined #ruby
pokalyis has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
the_rhizo has joined #ruby
adaedra has quit [Ping timeout: 276 seconds]
dunpeal has quit [Ping timeout: 250 seconds]
macsteps has quit [Ping timeout: 260 seconds]
adaedra has joined #ruby
A_Drone has quit [Read error: Connection reset by peer]
antgel has joined #ruby
giz|work has joined #ruby
zarubin has joined #ruby
adaedra has quit [Remote host closed the connection]
adaedra has joined #ruby
the_rhizo has quit [Ping timeout: 244 seconds]
A_Drone has joined #ruby
zarubin has quit [Ping timeout: 260 seconds]
n90b0jjf has joined #ruby
The_Phoenix has quit [Quit: Leaving.]
tubuliferous_ has joined #ruby
Devalo has joined #ruby
<zodiac19_>
900 people in one room, not talking about anything, rather just sitting there looking at each others names like mindless morons
Daisyab__ has joined #ruby
n90b0jjf has quit [Ping timeout: 276 seconds]
tubuliferous_ has quit [Ping timeout: 250 seconds]
n90b0jjf has joined #ruby
kavanagh has joined #ruby
<Zarthus>
zodiac19_: this being a support channel, we're not in a particular hurry to boot up a conversation
<Zarthus>
If you were looking for a conversation, well, I'd recommend a room but you sound like a prick.
giz|work has quit [Ping timeout: 252 seconds]
LoneHerm_ has joined #ruby
hanmac has quit [Ping timeout: 258 seconds]
Es0teric has quit [Quit: Computer has gone to sleep.]
<zodiac19_>
I did start with this "I guess every conversation starts with a Hello, so, Hi, anyone know any channels for programer learning and advice?"
<zodiac19_>
granted that was a few hours ago <.<
<zodiac19_>
>.>
<zodiac19_>
my bad
Ropeney has joined #ruby
ur5us has joined #ruby
LoneHerm_ has quit [Ping timeout: 240 seconds]
miqlas-H has quit [Quit: Vision[0.9.7-H-20140108]: i've been blurred!]
ruid has joined #ruby
cyphase has quit [Quit: cyphase.com]
Es0teric has joined #ruby
cyphase has joined #ruby
binaryplease1 has joined #ruby
Madplatypus has quit [Quit: Connection closed for inactivity]
<canton7>
zodiac19_, do bear in mind that it's a weekend, and most of us are doing other things
binaryplease has quit [Ping timeout: 244 seconds]
Xiti has quit [Quit: Xiti]
SCHAAP137 has quit [Quit: Leaving]
<ineb>
using classy-hash, i wonder if there is a way to throw an error, if there are more keys in the actual hash, than the schema checks.
SCHAAP137 has joined #ruby
<ineb>
maybe classy-hash cant do it. what i have is a hash with settings. if there is a key in this hash that is not used, its likely that the key name is a typo
<zodiac19_>
that's a fair point, Though I'm entirely new to using IRC's and I was only looking for a place to aid in my learning
<j416>
zodiac19_: does not seem like much of an excuse to calling people mindless morons
hanmac has joined #ruby
Xiti has joined #ruby
<zodiac19_>
Only trying to somehow talk to someone in this IRC chat, at a time which is now apparent that no one is on
<canton7>
if you call someone a mindless moron, they probably won't want to talk to you ;)
A_Drone has quit [Ping timeout: 258 seconds]
<zodiac19_>
You've never met Bizarre_Monkey Then, You probably don't want to at that
<j416>
zodiac19_: it seems you have not realised that you have successfully two-way-communicated with three people
<j416>
zodiac19_: but yes, I'd rather do the dishes than help you out :)
binaryplease1 is now known as binaryplease
* j416
goes to do the dishes
<beilabs>
zodiac19_: in channels like this you are best off just asking a question and waiting for a response....if you want to chat about the weather and other topics, go somewhere else...
<Papierkorb>
ineb: Les' mal die Dokumentation. Das geht.
<zodiac19_>
I wasnt looking for weather or other topics i was looking for a ruby based IRC where I could ask programing and development based questions as I learn the language. I never intended to offend anyone, I just thought it was odd that no one responded within a few hours of my first post
AlexRussia has quit [Ping timeout: 244 seconds]
hahuang65 has joined #ruby
<Papierkorb>
ineb: .validate_strict btw
<beilabs>
zodiac19_: Perhaps you should ask that question again then?
<alfiemax>
zodiac19_, well you just didn't ask any programming related question
<alfiemax>
maybe you could do that now :)
<ineb>
Papierkorb: ok, ty
<zodiac19_>
Well I wasn't sure if this was just a hub chatroom or an actual place where I could ask questions as I learn the language... which was sort of the basis of my original question
armin has quit [Quit: relate to the matter as i drop the bomb]
<zodiac19_>
so is this a hub chatroom for the ruby language?
Ropeney has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
the_rhizo has joined #ruby
<zodiac19_>
thank you alfiemax!
n90b0jjf has quit [Remote host closed the connection]
zarubin has joined #ruby
n90b0jjf has joined #ruby
<zodiac19_>
And let me sincearely apologize for my impatience and rudeness. I did not mean to offend anyone, but I wasn't expecting to have to wait so long for an response.
<zodiac19_>
Could anyone tell me what the most practical use of Ruby is as a language?
<Papierkorb>
It's a general purpose programming language. Except for game development, you can do pretty much everything with it.
<zodiac19_>
Okay, I guess I mean what is it's most generally used purpose?
the_rhizo has quit [Ping timeout: 265 seconds]
<Papierkorb>
There's none, really. Web development is really popular, with Rails or one of the many other web frameworks. Also, management scripts to manage virtual machines (see Vagrant), machines (see Chef for example), and many other things
ddffg has joined #ruby
<zodiac19_>
Okay, that seems informative enough. thank you.
kavanagh has quit [Remote host closed the connection]
<zodiac19_>
Oh, and I do know a few dozen ruby coders who make games with ruby, though it is aided by another program, it can be use for game development.
kavanagh has joined #ruby
zarubin has quit [Ping timeout: 258 seconds]
<Papierkorb>
Yeah, RPGMaker uses Ruby, but the engine is not done in Ruby
Es0teric has quit [Quit: Computer has gone to sleep.]
<Papierkorb>
(Well, most likely not done in Ruby)
<zodiac19_>
C++ is what enterbrain uses for the primary coding, but ruby handles all of the interior processes
<zodiac19_>
I'm from an RPG maker community
Es0teric has joined #ruby
Es0teric has quit [Max SendQ exceeded]
Ishido has joined #ruby
<zodiac19_>
asking them for coding help is like asking a fish to bake you a potato on a volcano, most are only concerned with their own codes and problems to help others in learning, which is why I'm here.
the_drow has quit [Quit: This computer has gone to sleep]
<zodiac19_>
so thank you (All) In advanced for the help.
face has joined #ruby
nhhc has quit [Quit: Leaving]
pokalyis has joined #ruby
AlexRussia has joined #ruby
ruid has quit [Ping timeout: 240 seconds]
ur5us has quit [Remote host closed the connection]
ur5us has joined #ruby
Xiti has quit [Ping timeout: 276 seconds]
ur5us has quit [Read error: No route to host]
Daisyab__ has quit [Ping timeout: 264 seconds]
ur5us has joined #ruby
pokalyis has quit [Ping timeout: 244 seconds]
AlexRussia has quit [Ping timeout: 250 seconds]
beilabs has quit [Remote host closed the connection]
n90b0jjf has quit [Remote host closed the connection]
ur5us has quit [Ping timeout: 244 seconds]
anuxivm has joined #ruby
Ropeney has joined #ruby
A_Drone has quit [Remote host closed the connection]
pokalyis has joined #ruby
A_Drone has joined #ruby
A_Drone has quit [Remote host closed the connection]
A_Drone has joined #ruby
zacstewart has joined #ruby
dunpeal has joined #ruby
Daisyab__ has joined #ruby
bkxd has joined #ruby
zacstewart has quit [Ping timeout: 250 seconds]
A_Drone has quit [Read error: Connection reset by peer]
`derpy has joined #ruby
macsteps has joined #ruby
Ishido has quit [Remote host closed the connection]
A_Drone has joined #ruby
the_drow has joined #ruby
max1 has joined #ruby
max1 has quit [Client Quit]
Ishido has joined #ruby
Rodya_ has joined #ruby
macsteps has quit [Ping timeout: 276 seconds]
sp_ has joined #ruby
nadir has quit [Quit: Connection closed for inactivity]
JeanCarloMachado has joined #ruby
The_Phoenix has joined #ruby
n90b0jjf has joined #ruby
arup_r has joined #ruby
marr has quit [Ping timeout: 260 seconds]
<arup_r>
can anybody help me to write the regex, to validate the phone number? I am not able to figure out.
pawnbox has quit [Remote host closed the connection]
hahuang65 has quit [Ping timeout: 250 seconds]
pawnbox has joined #ruby
hrob has joined #ruby
<hrob>
hi
nikhgupta has quit [Remote host closed the connection]
Guest86922 has joined #ruby
<hrob>
Im new to ruby but quite versed in python -- there are some things that surprise me
<hrob>
ruby seems on the surface to be for all practical purposes equally equipped to python -- but has some extra syntax that I'm afraid of -- alsmost Perl-like ideas
<soLucien>
and no types
pawnbox has quit [Remote host closed the connection]
<soLucien>
sorry .. static typing
pawnbox has joined #ruby
<hrob>
I suspect there are some different schools of Ruby on what to use and when -- readability of code is one
<jhass>
soLucien: so doesn't python?
<hrob>
soLucien: yes,
<hrob>
these are duck typed langauges
<hrob>
although ruby maybe has more control
<hrob>
over type checking
pawnbox has quit [Remote host closed the connection]
<soLucien>
hrob i would suggest you get vscode and rubocop
<jhass>
soLucien: re your pry session, Ctrl+C
pawnbox has joined #ruby
<hrob>
I'm afraid of seeing things like `some external comand` folowed by $? == something
<jhass>
ah well, it's not too common
CloCkWeRX has quit [Quit: Leaving.]
<soLucien>
it has some refactoring support as well, and it shows you how readability is supposed to be implemented
<soLucien>
it helps a bit :)
<hrob>
soLucien: yes!
<hrob>
thank you ... I was hoping for some guidelines some kind of official Linting
<soLucien>
it's a bit tricky to install
<soLucien>
but you will handle it
Daisyab__ has quit [Ping timeout: 276 seconds]
<jhass>
rubocop is the most popular, though most experienced rubyists change its defaults
yuki_is_bored has joined #ruby
<soLucien>
it requires a npm package for refactoring
<jhass>
(vscode, not rubocop)
bluOxigen has joined #ruby
bluOxigen has left #ruby [#ruby]
<soLucien>
and you have to do a bit of "plumbing" to get set up on VSCode
<soLucien>
that's what i can recommend as a beginner
<hrob>
wonderful
<toretore>
hrob: ruby inherited a lot of perlisms, but you don't have to (and probably shouldn't) use them
<soLucien>
also devdocs.io ,
<toretore>
if you write ruby like you write python you'll be off to a good start
<hrob>
toretore: I suppose the Ruby devs put backwards compat high on list
<toretore>
ruby is very forgiving and flexible, which requires a certain amount of discipline on your part
<hrob>
toretore: so ruby adds features but does not eliminate outdated ones
<toretore>
this is mostly true
<hrob>
ok good to know :D
<jhass>
let's say the bigger projects and Ruby itself does, but as a whole the community moves to new versions (and stops support for old versions) much faster than python
A_Drone has quit [Ping timeout: 240 seconds]
<toretore>
yes, was referring to the language and core libs
yuki_is_bored has joined #ruby
<sheperson>
Which one of these two syntaxes is preffered over the other one, and why?
<hrob>
neat -- I suppose yeah I would format a header, and do some kind of exception handling
Fly77 has joined #ruby
<jhass>
it's quite common to use alternative clients though, like faraday, http.rb, exconn
<hrob>
but surprising to me Python is not that implicit -- they say explicit above implicit
xall has quit [Ping timeout: 240 seconds]
<toretore>
you should be explicit in ruby too, it just gives you more flexibility
<hrob>
not surprising I guess, but there are exceptions to such a rule, otherwise ruby and python would look like C++
jgt has joined #ruby
antgel has quit [Ping timeout: 265 seconds]
Guest86922 has quit [Read error: Connection reset by peer]
<hrob>
or say there are limits, you can be too explicit and too implicit :)
Guest86922 has joined #ruby
nettoweb has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
max1 has joined #ruby
max1 is now known as PickAndMix
A_Drone has quit [Ping timeout: 252 seconds]
A_Drone has joined #ruby
nadir has joined #ruby
jgt4 has quit [Ping timeout: 252 seconds]
haxrbyte has joined #ruby
haxrbyte has quit [Remote host closed the connection]
haxrbyte has joined #ruby
The_Phoenix has quit [Read error: Connection reset by peer]
araujo__ has quit [Ping timeout: 258 seconds]
araujo__ has joined #ruby
Fly77 has quit [Ping timeout: 258 seconds]
shinnya has joined #ruby
Heskie has joined #ruby
idletask has joined #ruby
zotherstupidguy has left #ruby ["WeeChat 1.5"]
Fly77 has joined #ruby
yardenbar has quit [Ping timeout: 276 seconds]
zacts has quit [Ping timeout: 258 seconds]
The_Phoenix has joined #ruby
n90b0jjf has quit [Remote host closed the connection]
sheperson has quit [Quit: sheperson]
The_Phoenix has quit [Read error: Connection reset by peer]
JeanCarloMachado has quit [Ping timeout: 244 seconds]
vuoto has quit [Remote host closed the connection]
pawnbox has quit [Remote host closed the connection]
pawnbox has joined #ruby
Daisyab__ has quit [Ping timeout: 260 seconds]
zacts has joined #ruby
n90b0jjf has joined #ruby
A_Drone_ has joined #ruby
A_Drone has quit [Read error: Connection reset by peer]
Fly77 has left #ruby [#ruby]
tubuliferous has joined #ruby
kus has joined #ruby
kus has quit [Max SendQ exceeded]
vuoto has joined #ruby
PickAndMix has quit [Quit: WeeChat 1.4]
giz|work has quit [Ping timeout: 276 seconds]
hahuang65 has joined #ruby
freerobby has joined #ruby
A_Drone_ has quit [Ping timeout: 250 seconds]
davedev24 has joined #ruby
colegatron_origi has quit [Ping timeout: 276 seconds]
karapetyan has quit [Remote host closed the connection]
giz|work has joined #ruby
ebbflowgo has quit [Quit: ebbflowgo]
colegatron_origi has joined #ruby
tubuliferous has quit [Ping timeout: 265 seconds]
Daisyab__ has joined #ruby
hahuang65 has quit [Ping timeout: 250 seconds]
A_Drone has joined #ruby
JakFrist has joined #ruby
l4v2 has joined #ruby
A_Drone has quit [Ping timeout: 276 seconds]
dunpeal has joined #ruby
haxrbyte has quit [Ping timeout: 250 seconds]
chipotle has joined #ruby
ebbflowgo has joined #ruby
chipotle has quit [Client Quit]
platzhirsch has quit [Ping timeout: 250 seconds]
Fly77 has joined #ruby
platzhirsch has joined #ruby
threh has joined #ruby
Guest86922 has quit [Ping timeout: 260 seconds]
Fly77 has quit [Remote host closed the connection]
n90b0jjf has quit [Remote host closed the connection]
symm- has quit [Ping timeout: 258 seconds]
Guest86922 has joined #ruby
Vacuum_ has joined #ruby
Vacuum_ has left #ruby [#ruby]
ruby-lang035 has joined #ruby
<ruby-lang035>
great
ruby-lang035 has quit [Client Quit]
A124 has joined #ruby
ebbflowgo has quit [Quit: ebbflowgo]
arup_r has quit [Remote host closed the connection]
j416 has quit [Ping timeout: 244 seconds]
OTORelic1 has joined #ruby
anuxivm has quit [Read error: Connection reset by peer]
j416 has joined #ruby
anuxivm has joined #ruby
<pokalyis>
Is there any way to fake a file on the filesystem? So when someone writes to it nothing is stored on disk but instead streamed to my application
anuxivm has quit [Max SendQ exceeded]
<adaedra>
You may want a named pipe
xlegoman has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
JakFrist has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
Guest86922 has joined #ruby
hahuang65 has joined #ruby
JakFrist has joined #ruby
sepp2k has quit [Read error: Connection reset by peer]
mlehrer has quit [Ping timeout: 244 seconds]
hahuang65 has quit [Ping timeout: 250 seconds]
Guest86922 has quit [Ping timeout: 244 seconds]
pawnbox has quit [Remote host closed the connection]
the_drow has quit [Quit: This computer has gone to sleep]
pawnbox has joined #ruby
Guest86922 has joined #ruby
pawnbox has quit [Remote host closed the connection]
JakFrist has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
zacstewart has quit [Read error: Connection reset by peer]
zacstewart has joined #ruby
pawnbox has joined #ruby
ruby-lang384 has joined #ruby
<ruby-lang384>
Hello, sorry for my english i'm french
kavanagh has quit [Read error: Connection reset by peer]
<ruby-lang384>
i have a string like str = 'img src="/path/to/image1.jpg"> ... img src="/path/to/image2.jpg"> ...' and i want to extract just the image path
JakFrist has joined #ruby
sp_ has quit [Ping timeout: 244 seconds]
johnny56 has joined #ruby
<ruby-lang384>
For example i want an array like ['/path/to/image1.jpg', '/path/to/image2.jpg' ...]
<ruby-lang384>
I use scan but its not working
zacts has quit [Quit: WeeChat 1.4]
<ruby-lang384>
i dont know, can you help me please ;)
zacts has joined #ruby
<jhass>
ruby-lang384: why don't you use a HTML parser to parse HTML?
<ruby-lang384>
Okay i dont know what is a html parser
n90b0jjf has joined #ruby
<ruby-lang384>
like nokigir
<ruby-lang384>
nokigiri
sp_ has joined #ruby
<sk41ks>
nokogiri is a joy
<sk41ks>
ruby-lang384: have you tried nokogiri?
<ruby-lang384>
okay but i want to do that for didactic
<ruby-lang384>
i want to improve my ruby level
<ruby-lang384>
i dont want to use parseer
<ruby-lang384>
just with regex
<jhass>
well, a good rubyist uses the right tool for the job ;)
<sk41ks>
so you want a regex to parse xml?
<sk41ks>
well let me grab my bag of magical regex... 1mpls
<ruby-lang384>
str = '<img src="/fileadmin/MasterMSI/pict1.jpg" alt="lol" />' t = str.scan /fileadmin\/MasterMSI\/.*jpg/ puts t
<ruby-lang384>
this code work
threh has quit [Ping timeout: 250 seconds]
<ruby-lang384>
but if i have to match in single line, its dont work
<l4v2>
I just finished reading the Rails Routing guide. and sections 2 and 3 are based on a resource route and a non resource route. What I take this to mean is route=URL and bascially a non resource route is one that doesn’t just use /Users assuming Users is a resource
<l4v2>
Anyone want to drive this one home for me?
Rodya_ has quit [Ping timeout: 258 seconds]
<adaedra>
?rails
<ruby[bot]>
Please join #RubyOnRails for Rails questions. You need to be identified with NickServ, see /msg NickServ HELP
<adaedra>
rails: nice nick, I hope you disabled notifications on highlight or that you like them :p
<l4v2>
Oh whoops, I was on the wrong room, thanks
<adaedra>
np
GinoMan2440 has quit [Ping timeout: 250 seconds]
heftig has quit [Read error: Connection reset by peer]
LoneHerm_ has joined #ruby
KnownSyntax_ has joined #ruby
KnownSyntax_ has quit [Changing host]
KnownSyntax_ has joined #ruby
heftig has joined #ruby
yardenbar has joined #ruby
threh has joined #ruby
KnownSyntax has quit [Ping timeout: 244 seconds]
swills_ has joined #ruby
swills has quit [Read error: Connection reset by peer]
LoneHerm_ has quit [Ping timeout: 252 seconds]
giz|work has joined #ruby
platzhir1 has joined #ruby
yardenbar has quit [Ping timeout: 260 seconds]
macsteps has quit [Remote host closed the connection]
hk238 has joined #ruby
toretore has quit [Ping timeout: 240 seconds]
macsteps has joined #ruby
Daisyab__ has quit [Quit: Ex-Chat]
platzhirsch has quit [Ping timeout: 260 seconds]
GinoMan2440 has joined #ruby
Torrone has joined #ruby
The_Phoenix has quit [Read error: Connection reset by peer]
Derperperd has joined #ruby
Guest86922 has quit [Ping timeout: 264 seconds]
skade has joined #ruby
frozengeek has joined #ruby
sp_ has joined #ruby
elifoster has joined #ruby
frozengeek has quit [Client Quit]
Guest86922 has joined #ruby
ctp has joined #ruby
kirun has joined #ruby
nando293921 has joined #ruby
hahuang65 has joined #ruby
SCHAAP137 has quit [Quit: Leaving]
SCHAAP137 has joined #ruby
frozengeek has joined #ruby
n90b0jjf has quit [Remote host closed the connection]
hahuang65 has quit [Ping timeout: 250 seconds]
sp_ has quit [Ping timeout: 240 seconds]
pokalyis has joined #ruby
Torrone has quit [Quit: This computer has gone to sleep]
conta has joined #ruby
pokalyis has quit [Client Quit]
bjh13` has joined #ruby
bjh13` has left #ruby [#ruby]
armin has quit [Quit: relate to the matter as i drop the bomb]
frozengeek has quit [Quit: frozengeek]
armin has joined #ruby
aryaching has joined #ruby
Cohedrin has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
nikhgupta has joined #ruby
conta has quit [Ping timeout: 264 seconds]
yfeldblum has joined #ruby
<kspencer>
ruby nor rvm is loading any gems in any scripts, trying to make a script in weechat and even my script that I have in my home directory isn't loadin the gems, and they are installed
brianpWins has joined #ruby
threh has quit [Ping timeout: 250 seconds]
kobain has quit [Read error: Connection reset by peer]
kirun has quit [Ping timeout: 264 seconds]
AlexRussia has joined #ruby
al2o3-cr has joined #ruby
zeroDivisible has joined #ruby
ddffg has joined #ruby
tubuliferous has joined #ruby
kobain has joined #ruby
sp_ has joined #ruby
marr has joined #ruby
conta has joined #ruby
threh has joined #ruby
kyleolivo has joined #ruby
AzureStigma is now known as AzureStigma|Away
AzureStigma|Away has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
skade has quit [Quit: Computer has gone to sleep.]
tubuliferous has quit [Ping timeout: 244 seconds]
<jhass>
rvm current says what?
<jhass>
for weechat you'll want to use a wrapper, rvm help wrapper
chriscoffee has joined #ruby
Cohedrin has joined #ruby
axsuul has joined #ruby
kirun has joined #ruby
Guest86922 has quit [Ping timeout: 252 seconds]
conta has quit [Ping timeout: 264 seconds]
swills_ is now known as swills
Ishido has quit [Remote host closed the connection]
nikhgupta has quit [Remote host closed the connection]
AzureStigma has joined #ruby
hahuang65 has quit [Ping timeout: 250 seconds]
al2o3-cr has quit [Ping timeout: 250 seconds]
tomaz_b has joined #ruby
Guest86922 has joined #ruby
crdpink has joined #ruby
crdpink2 has quit [Ping timeout: 250 seconds]
AzureStigma has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
the_drow has quit [Quit: This computer has gone to sleep]
davedev24 has quit [Ping timeout: 250 seconds]
jhass has quit [Excess Flood]
jhass has joined #ruby
davedev24 has joined #ruby
axsuul has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
minimalism has joined #ruby
roflmyeggo has joined #ruby
axsuul has joined #ruby
the_rhizo has quit [Ping timeout: 258 seconds]
the_rhizo has joined #ruby
Es0teric has joined #ruby
mello has joined #ruby
hahuang65 has joined #ruby
TomyLobo has quit [Ping timeout: 264 seconds]
ericsupreme has joined #ruby
ericsupreme has quit [Client Quit]
sp_ has quit [Ping timeout: 258 seconds]
dunpeal has quit [Ping timeout: 260 seconds]
PaulCapestany has quit [Quit: .]
beilabs has quit [Remote host closed the connection]
solars has quit [Ping timeout: 252 seconds]
Torrone has joined #ruby
PaulCapestany has joined #ruby
al2o3-cr has joined #ruby
chriscoffee has quit [Ping timeout: 276 seconds]
pawnbox has quit [Remote host closed the connection]
pawnbox has joined #ruby
LoneHermit has joined #ruby
davedev24 has quit [Ping timeout: 250 seconds]
davedev24 has joined #ruby
banisterfiend has joined #ruby
pawnbox has quit [Ping timeout: 276 seconds]
sluukkonen has quit [Ping timeout: 265 seconds]
LoneHermit has quit [Ping timeout: 252 seconds]
alaibe has joined #ruby
giz|work has quit [Ping timeout: 276 seconds]
shinnya has joined #ruby
diegoviola has joined #ruby
tectonic has joined #ruby
solars has joined #ruby
threh has quit [Ping timeout: 250 seconds]
alaibe_ has joined #ruby
alaibe has quit [Ping timeout: 250 seconds]
last_staff has joined #ruby
openstruct has joined #ruby
memorasus has joined #ruby
<jhass>
kspencer: gem env ?
<openstruct>
That makes sense. I tried parsing the C source but couldn't follow it.
macsteps has quit [Remote host closed the connection]
l4v2 has quit [Quit: l4v2]
<kspencer>
jhass: updated the gist with the output of that
duckpupp1 has quit [Quit: WeeChat 1.5]
symm- has joined #ruby
macsteps has joined #ruby
macsteps has quit [Remote host closed the connection]
<Mon_Ouie>
It seems the work is done by calling ruby_qsort, I would imagine that the complexity of that is O(m*log(n)) in the average case, since that's what you'd get for sorting the entire array
<openstruct>
Good to know! I've got an upcoming interview and am weary of using any Enumerable methods since I don't readily know their implementation.
<jhass>
kspencer: does gem which time_difference find it?
<kspencer>
no
sluukkonen has joined #ruby
<kspencer>
short answer
dunpeal has joined #ruby
<jhass>
does gem list have it?
<kspencer>
time_difference (0.4.2)
<jhass>
try gem pristine time_difference
Madplatypus has quit [Quit: Connection closed for inactivity]
rkazak has joined #ruby
<kspencer>
alrigth that works now, but that still doesn't answer why weechat doesn't want to load it using system
gdev has joined #ruby
<kspencer>
brb
<gdev>
howto escape no so its not interpreted as false? The gem loads a yaml file, and doesn't matter if no 'no' "no" its always not interpreted. Can somebody help me?
kobain has quit [Remote host closed the connection]
banisterfiend has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<kspencer>
gdev: !!str?
roflmyeggo has quit [Ping timeout: 240 seconds]
Guest86922 has quit [Ping timeout: 244 seconds]
linduxed has joined #ruby
diego1 has joined #ruby
diego1 has quit [Changing host]
diego1 has joined #ruby
JeanCarloMachado has quit [Ping timeout: 258 seconds]
<gdev>
kspencer: sorry, doesnt know if your answer should be code, or contains questions signs^^
framling has quit [Remote host closed the connection]
<foxxx0>
hey guys, somehow i broke my rspec setup and it is not recognizing the sinatra methods anymore... it's just throwing NoMethodErrors for 'halt', 'content_type' and 'etag' at me...
xlegoman has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<foxxx0>
i have included Rack::Test::Methods and the app is running as Sinatra::Application
platzhir1 has quit [Ping timeout: 244 seconds]
<foxxx0>
i have been googling and testing for hours now and i'm not getting any further...
tomphp has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
openstruct has quit [Remote host closed the connection]
<kspencer>
I'm thinking something might have f'd up when I updated my distro
kyleolivo has quit [Read error: Connection reset by peer]
yfeldblum has joined #ruby
impermanence has quit [Ping timeout: 250 seconds]
ur5us has joined #ruby
<kspencer>
I'm going to try and fully apt-get remove --purge both weechat and ruby and try and install them again
<Zarthus>
it might be easier if you manually compile
<Zarthus>
most distros have outdated versions of weechat anyways
jgt has joined #ruby
AlexRussia has joined #ruby
xlegoman has joined #ruby
hahuang65 has joined #ruby
al2o3-cr has quit [Ping timeout: 250 seconds]
ta_ has quit [Remote host closed the connection]
nofxx has joined #ruby
nofxx has quit [Changing host]
nofxx has joined #ruby
yqt has joined #ruby
ta_ has joined #ruby
hahuang65 has quit [Ping timeout: 258 seconds]
Velizar has quit [Quit: Velizar]
Derperperd has quit [Quit: Derperperd]
nettoweb has joined #ruby
Chris3y_RubyNewb has joined #ruby
nettoweb has quit [Max SendQ exceeded]
tectonic has quit []
xall has joined #ruby
bluOxigen has joined #ruby
openstruct has joined #ruby
openstruct has quit [Client Quit]
<Chris3y_RubyNewb>
could someone explain what's wrong with my if conditional on line 267? https://repl.it/CfZu/205
dionysus69 has joined #ruby
ta_ has quit [Remote host closed the connection]
<Chris3y_RubyNewb>
if player.coins < player.rope_bridge_toll and unless next_choices.include? not_enough_toll_money then next_choices.shift; next_choices.push not_enough_toll_money end
<Chris3y_RubyNewb>
why doesn't that work?
<Chris3y_RubyNewb>
what's wrong with the syntax
<Chris3y_RubyNewb>
?>
MrBusiness has joined #ruby
rkazak has quit [Quit: Sleep.....ing....]
<Mon_Ouie>
unless has the same syntax as if, you want '!' or 'not' to negate a value
Rodya_ has joined #ruby
JeanCarloMachado has joined #ruby
Derperperd has joined #ruby
MrBusiness has quit [Ping timeout: 258 seconds]
<Chris3y_RubyNewb>
oh ok, thank you
max1 has joined #ruby
alaibe_ has quit [Ping timeout: 250 seconds]
tubuliferous has joined #ruby
max1 has quit [Client Quit]
Guest86922 has quit [Remote host closed the connection]
macsteps has joined #ruby
tubuliferous has quit [Ping timeout: 258 seconds]
sp_ has joined #ruby
al2o3-cr has joined #ruby
Rodya_ has quit [Remote host closed the connection]
ta_ has joined #ruby
spudowiar has joined #ruby
dionysus69 has quit [Ping timeout: 250 seconds]
diegoviola has quit [Quit: WeeChat 1.5]
maloik has quit [Remote host closed the connection]
maloik has joined #ruby
the_rhizo has quit [Ping timeout: 250 seconds]
diegoviola has joined #ruby
bad_ip has quit [Ping timeout: 276 seconds]
macsteps has quit [Remote host closed the connection]
shinnya has quit [Ping timeout: 276 seconds]
Vile` has quit [Ping timeout: 258 seconds]
miskatonic has joined #ruby
ta_ has quit [Remote host closed the connection]
the_rhizo has joined #ruby
<miskatonic>
is it possible to build an object-oriented/procedural substiture for XSLT with Ruby/Nokohgiri, similar to the former perl module xpathscript?
last_staff has quit [Quit: last_staff]
Parko has joined #ruby
<jhass>
well, Ruby is general purpose programming language, so I don't see why not
impermanence has joined #ruby
pawnbox has joined #ruby
the_rhizo has quit [Ping timeout: 276 seconds]
impermanence has quit [Ping timeout: 244 seconds]
pawnbox has quit [Ping timeout: 276 seconds]
Heskie has quit []
teclator has quit [Ping timeout: 244 seconds]
teclator has joined #ruby
macsteps has joined #ruby
Vile` has joined #ruby
MrBusiness has joined #ruby
<foxxx0>
anyone got an idea on my sinatra+rspec problem? can't get those halt/content_type/etag helpers of sinatra to work from within rspec...
<foxxx0>
and this is output wrapper, which causes the issue
<foxxx0>
(if i use the commented out lines instead of the workarounds)
<jhass>
ah well
<foxxx0>
so either I'm just being totally retarded or I'm just missing a simple rspec include/config option
<jhass>
mh, your app is a toplevel one, not a Sinatra::Application subclass?
smathy has joined #ruby
<foxxx0>
correct
<jhass>
tbh I think the idea is bogus
<jhass>
to use helpers that depend on sinatra toplevel methods as test helpers
<foxxx0>
mh, true
<foxxx0>
oh
<foxxx0>
m(
<foxxx0>
head -> wall
<jhass>
see, backtrace helps ;)
<foxxx0>
was a long day and i spent hours over that stupid error
<foxxx0>
darn i feel stupid now
<jhass>
that's why I go too bed if I'm stuck too long
tubuliferous has joined #ruby
<jhass>
*to bed even
<jhass>
does wonders
<foxxx0>
next time i'll do that instead
<foxxx0>
so let's do a fresh start tomorrow morning and build some rspec helpers that provide generally the same features of that return_json_pretty helper, just without all those sinatra specific stuff
<foxxx0>
and use that from within rspec
<foxxx0>
... right? (just to be totally sure)
Gasher has joined #ruby
last_staff has joined #ruby
<jhass>
yeah
<foxxx0>
alrighty then, thank you very much
<foxxx0>
good night o/
<jhass>
tbh the helper is a bit weird though
<jhass>
oh, it prettifies
<jhass>
I see
<foxxx0>
just speak whatever comes to your mind, i will read it tomorrow ;)
<jhass>
nah it's fine, late for me too ;) use JSON.parse though
<jhass>
JSON.load is less safe
<foxxx0>
i completely rebuilt and refactored my authentication today and over 500 integration tests just went up in flames and then those errors from "sinatra" drove me crazy... just couldn't think straight anymore
solars has joined #ruby
Vile` has quit [Read error: Connection reset by peer]
<foxxx0>
thanks for the hint with json.parse though
<foxxx0>
(i thought i used json.parse everywhere....)
the_rhizo has joined #ruby
Vile` has joined #ruby
zacts has quit [Ping timeout: 264 seconds]
l4v2 has joined #ruby
ddffg has joined #ruby
nando293921 has quit [Ping timeout: 264 seconds]
Bounga has joined #ruby
the_rhizo has quit [Ping timeout: 240 seconds]
axsuul has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
triangles has quit [Quit: Leaving]
zeroDivisible has quit [Quit: WeeChat 1.5]
last_staff has quit [Quit: last_staff]
JakFrist has joined #ruby
nando293921 has joined #ruby
Ishido has quit [Quit: Roads? Where We're Going We Don't Need Roads.]
<shellie_>
yeah, it is.. quite unfortunately though. Probably one of the aspects of ruby I dislike the most.
Derperperd has quit [Quit: Derperperd]
hahuang65 has joined #ruby
<jhass>
huh, why's that?
<jhass>
jeffreylevesque: the whole file is valid ruby
QORRiE has quit [Quit: Leaving]
<jhass>
jeffreylevesque: depending on the definition synced_folder it's either passing two string arguments and the hash {:type => "nfs"} or two string arguments and the keyword argument type
<jhass>
probably the former still
alaibe has quit [Ping timeout: 250 seconds]
blackgoat has joined #ruby
<jhass>
shellie_: I'm curious, what do you dislike there?
howard_ has joined #ruby
impermanence has joined #ruby
lxsameer has quit [Quit: WeeChat 1.5]
<smathy>
Probably optional parens, I know a lot of people who don't like that.
dcunit3d has joined #ruby
nfk has joined #ruby
<shellie_>
jhass: lack of parenthesis around the method call?
eljimmy has quit [Quit: This computer has gone to sleep]
hahuang65 has quit [Ping timeout: 260 seconds]
<shellie_>
smathy: yup, exactly
<jhass>
ah, well
<jhass>
how long have you been into ruby?
jeffreylevesque has quit [Remote host closed the connection]
<smathy>
There are only two things in Ruby I can think that I don't like. "Implicit " "string concat" and the required begin/end for exception blocks within other blocks.
kirun has quit [Quit: Client exiting]
tubuliferous has quit [Ping timeout: 250 seconds]
<nfk>
can i have something like this:
<nfk>
def foo (delete_if_exists?: false)
<nfk>
?
<nfk>
i can do it without ? but i feel that it would be a lot nicer with that question mark
<jhass>
no, would be news to me
<nfk>
and how should i proceed then?
aarongodin has joined #ruby
impermanence has quit [Ping timeout: 276 seconds]
pontiki has joined #ruby
<adam12>
Just leave it off.
<adam12>
It's nice sugar but since you're defaulting to false, you likely already know in your *small* method that it's a boolean.
axsuul has joined #ruby
<nfk>
I just feel like it's good style to have
<nfk>
but, sure, already done
aspiers has joined #ruby
<nfk>
i guess I should eventually publish these scripts
<nfk>
though i really don't want to do it with my real name as people are gonna wonder what for I need such specific file manipulation script system
<adam12>
lol
grenierm has joined #ruby
davedev24 has quit [Remote host closed the connection]
<nfk>
obviously those length checks are a bit silly but they both ensure that there's less room for errors in unexpected matches and, I think, they also were meant to speed up processing as filenames of wrong length would never trigger the regex compilation
<nfk>
though i'm not sure if i did or did not run actual benchmarks on whether they even do anything
<nfk>
also, those scripts were developed for ruby 2.0 or 2.1 initially
<nfk>
actually, i should look into precompiling those regex
<shellie_>
jhass: sorry, keep missing your questions. I have started on ruby in February
<shellie_>
I'm still a learner :-)
<nfk>
we all are
<jhass>
give no parens a try, it might grow on you ;)
<nfk>
i usually write without unless i intend other or myself to later understand that code
<nfk>
and i do it with as many parens as i can if i'm dealing with the mess like the one above
<jhass>
doesn't the parser already precompile the regexps?
jeffreylevesque has joined #ruby
xall has quit [Ping timeout: 265 seconds]
<nfk>
i actually had an extra pair around the second part of that outer || but i caught it out during the refactoring
<nfk>
jhass, i was actually about to ask if i can have them compiled the first time that function is called and then shared with subsequent invocations
<nfk>
i'm sure C++ can do that
<nfk>
somehow; no idea about ruby
<jhass>
filename[/\A\h{32}\.\w{3,4}\z/]
Coldblackice has quit [Ping timeout: 265 seconds]
<shellie_>
jhass: I can't force myself. I come from a Python background, so I want to keep myself truthful to the few bits that overlap, so it won't be difficult to switch between them
<jhass>
no idea if oniguruma even does precompilation, but if so I'd expect the parser to do it already
<jeffreylevesque>
actually, just tried it, I'm getting "=~ was unexpected at this time."
<jeffreylevesque>
that's probably related to line 5
<jhass>
shellie_: so you do puts("Hello world") too?
karapetyan has joined #ruby
<nfk>
jhass, oh, right, if it was precompiled and shared with other invocations of that function, then i suppose it would not be an issue, at least not by much
<jhass>
jeffreylevesque: ENV["VAGRANT_DETECTED_OS"] = "cygwin" if RUBY_PLATFORM[/windows/]
<shellie_>
jhass: I don't write a lot of puts unless I'm debugging code and yes, I use the parens-less version of that specific method:-)
<jhass>
shellie_: or include(Foo)
<jhass>
or p(foo)
<shellie_>
yup
<jhass>
or .to_i()
<shellie_>
I mean, if you mean include?(foo)
<jeffreylevesque>
jhass: maybe that syntax is too dense for me to understand. I'd like to run `export VAGRANT_DETECTED_OS=cygwin` if the host os is windows
<jhass>
Module#include
<jhass>
it's a method too
the_rhizo has quit [Ping timeout: 265 seconds]
<shellie_>
I see :-)
<jhass>
jeffreylevesque: well, running export in a subshell is pretty pointless if you do nothing after in the same subshell
<shellie_>
jhass: turns out it seems I make an ecletic use of both styles.. but I think I will stick to this sweet sweet mix
tubuliferous has joined #ruby
<nfk>
btw, if anyone is interested, i can probably tar and send you those scripts, if you know what they are for. they are not yet complete but do at least some stuff, not much comments or use descriptions yet and yadayada
<swemoney>
if i have json that's formatted like {"1": {"data":"some_data"}, "2": {"data":"some_data"}...}, how can i iterate over them all? When I try a data.each{|d| d["data"]} I get a no implicit conversion of string to integer
<ruby[bot]>
swemoney: there is no such thing as a JSON object. You either have a String containing serialized JSON, or you have ruby objects (usually Hashes/Arrays/Strings). Which is it?
<Mon_Ouie>
wolffles: If you look up triangle numbers, you can find a much more efficient formula for the sum of integers from 1 to n.
s2013 has joined #ruby
<swemoney>
jhass: the json is formatted as such. so it's a Hash with "1", "2", "3", etc as the "id" for each hash of data.
<swemoney>
after i run it through JSON.parse, it's a Hash
<jhass>
.each do |id, data| data["data"]
<wolffles>
Mon_Ouie: i have been searching for all the wrong info lol your right this is perfect
axsuul has quit [Quit: My Mac has gone to sleep. ZZZzzz…]