<mkinitrd>
whitequark: thanks, so regular users, so to speak, don't normally use the exclusive blocks, they use mutexes (and maybe conditional variables)
amacleod has quit [Quit: Leaving]
danshultz has joined #ruby
_nitti has joined #ruby
<alsu>
oh, thread exits
jrist is now known as jrist-afk
nari has quit [Ping timeout: 245 seconds]
dougireton has quit [Remote host closed the connection]
otters has quit [Ping timeout: 240 seconds]
alsu has left #ruby [#ruby]
ryanh has quit [Quit: Computer has gone to sleep.]
ner0x has joined #ruby
samuel02 has quit [Remote host closed the connection]
danshultz has quit [Ping timeout: 252 seconds]
mephux has quit [Excess Flood]
EPIK has joined #ruby
Guest30769 has joined #ruby
stkowski has joined #ruby
jimeh has quit [Quit: Computer has gone to sleep.]
Banistergalaxy has quit [Ping timeout: 256 seconds]
sbear has joined #ruby
zeade has joined #ruby
yshh has quit [Remote host closed the connection]
zeade has quit [Client Quit]
yshh has joined #ruby
_nitti has quit [Remote host closed the connection]
Banistergalaxy has joined #ruby
roadt has quit [Ping timeout: 244 seconds]
ephemerian has left #ruby [#ruby]
yshh has quit [Remote host closed the connection]
_nitti has joined #ruby
_nitti has quit [Remote host closed the connection]
_nitti has joined #ruby
TomyLobo has quit [Quit: Standby mode...]
poikon has joined #ruby
Beoran_ has quit [Read error: Connection reset by peer]
_nitti has quit [Remote host closed the connection]
karupanerura has quit [Excess Flood]
karupanerura has joined #ruby
Beoran_ has joined #ruby
etcetera has quit []
poikon has quit [Ping timeout: 256 seconds]
poikon has joined #ruby
carloslopes has joined #ruby
v0n has quit [Ping timeout: 255 seconds]
otherj has joined #ruby
juarlex has quit [Remote host closed the connection]
idkazuma has quit [Remote host closed the connection]
etcetera has joined #ruby
Guest30769 has quit [Excess Flood]
bricker`1A has joined #ruby
mephux has joined #ruby
F1skr has quit [Quit: WeeChat 0.4.0]
Xeago has quit [Remote host closed the connection]
beaky has quit [Ping timeout: 244 seconds]
bricker`LA has quit [Ping timeout: 260 seconds]
etcetera has quit []
mneorr has quit [Remote host closed the connection]
blazes816 has quit [Quit: blazes816]
punkrawkR^Home has quit [Read error: Connection reset by peer]
undersc0re97 has quit [Ping timeout: 245 seconds]
robotmay has quit [Remote host closed the connection]
carloslopes has quit [Read error: Connection reset by peer]
forced_request has joined #ruby
carloslopes has joined #ruby
jrajav has joined #ruby
TheFuzzball has quit [Quit: Computer has gone to sleep.]
carloslopes has quit [Remote host closed the connection]
jackyalcine_ has quit [Ping timeout: 252 seconds]
sepp2k has joined #ruby
jaequery has quit [Quit: Computer has gone to sleep.]
tomzx_mac has quit [Quit: tomzx_mac]
etcetera has joined #ruby
mephux has quit [Excess Flood]
renanoronfle has joined #ruby
mephux has joined #ruby
tomzx_mac has joined #ruby
taoru has joined #ruby
etcetera has quit [Client Quit]
banisterfiend is now known as banister`sleep
renanoronfle has quit [Client Quit]
nga4 has joined #ruby
sanukcm has quit [Remote host closed the connection]
ckrailo has quit [Quit: Computer has gone to sleep.]
joofsh has quit [Remote host closed the connection]
yshh has joined #ruby
originalcamper has joined #ruby
arya has joined #ruby
sleetdrop has quit [Remote host closed the connection]
undersc0re97 has joined #ruby
sleetdrop has joined #ruby
synthetix has joined #ruby
nat26101 has quit [Quit: Leaving.]
mephux has quit [Excess Flood]
<ner0x>
How can I declare a variable so that it will be able to be accessed from the instance of a class?
<ner0x>
User.ROLES as a constant.
mephux has joined #ruby
sarkis has quit [Quit: leaving]
guns has quit [Quit: guns]
flyinprogramer has joined #ruby
sleetdrop has quit [Ping timeout: 256 seconds]
linusoleander has joined #ruby
<linusoleander>
I've an event machine application that eats memory on my ubuntu server, but not in OS X
<linusoleander>
In OS X the application takes ~ 150mb after 20 min, in Ubuntu it's 1.3Gb, why is that?
nat2610 has joined #ruby
<flyinprogramer>
so - opinion / best practice question: http://pastebin.com/R86Z6TFB <-- is doing things like that best practice because it uses metaprogramming -- or would it be best practice to parse each attribute into a method within the object?
main_ has quit [Ping timeout: 240 seconds]
poikon has quit [Remote host closed the connection]
MattRB has joined #ruby
cakehero has quit [Quit: Computer has gone to sleep.]
nat26101 has joined #ruby
nat2610 has quit [Read error: Connection reset by peer]
Kingy has quit [Quit: Leaving]
peregrine81 has joined #ruby
jonathanwallace has joined #ruby
hail_kuato has quit [Quit: hail_kuato]
wuzzzzaah has joined #ruby
megha has quit [Read error: Operation timed out]
slainer68 has quit [Remote host closed the connection]
danshultz has joined #ruby
arya has quit [Ping timeout: 256 seconds]
slainer68 has joined #ruby
slainer68 has quit [Read error: Connection reset by peer]
jpfuentes2 has quit [Quit: Computer has gone to sleep.]
jpfuentes2 has joined #ruby
slainer68 has joined #ruby
slainer68 has quit [Read error: Connection reset by peer]
marr has quit [Ping timeout: 255 seconds]
psyprus has quit [Ping timeout: 248 seconds]
arya has joined #ruby
psyprus has joined #ruby
danshultz has quit [Ping timeout: 256 seconds]
Skylab has quit [Quit: Skylab]
statarb3 has quit [Ping timeout: 246 seconds]
Skylab has joined #ruby
Virunga has quit [Remote host closed the connection]
asgardBSD has joined #ruby
main_ has joined #ruby
originalcamper has quit [Quit: Page closed]
iamjarvo has joined #ruby
ryanh has joined #ruby
ryanh has quit [Max SendQ exceeded]
chrisja has quit [Quit: leaving]
ryanh has joined #ruby
miskander has joined #ruby
nat26101 has quit [Quit: Leaving.]
AsgardBSD_ has quit [Ping timeout: 255 seconds]
dmerrick has quit [Read error: Operation timed out]
otherj has quit [Quit: otherj]
hail_kuato has joined #ruby
mengu has quit [Quit: This computer has gone to sleep]
pskosinski has quit [Ping timeout: 252 seconds]
johngalt2600 has quit [Ping timeout: 244 seconds]
megha has joined #ruby
arya has quit [Ping timeout: 240 seconds]
benlieb has joined #ruby
SrPx has joined #ruby
samphippen has quit [Quit: Computer has gone to sleep.]
heyitsdave has quit [Ping timeout: 244 seconds]
nat2610 has joined #ruby
benlieb has quit [Client Quit]
benlieb has joined #ruby
pskosinski has joined #ruby
reppard has joined #ruby
_nitti has joined #ruby
cyong has joined #ruby
cyong has quit [Max SendQ exceeded]
razieliyo has quit [Remote host closed the connection]
cyong has joined #ruby
<reppard>
anyone know how to change the size of a tmux split?
cyong has quit [Client Quit]
main_ has quit [Ping timeout: 255 seconds]
main_ has joined #ruby
grzywacz has quit [Ping timeout: 256 seconds]
arya has joined #ruby
jacktrick has joined #ruby
huoxito has joined #ruby
mrsolo has quit [Quit: Leaving]
<Spooner_>
flyinprogramer, You don't put the , in a %w list. It splits by spaces so the , will be in each string.
nat2610 has quit [Quit: Leaving.]
otters has joined #ruby
daniel_-_ has quit [Quit: WeeChat 0.3.9.2]
<flyinprogramer>
Spooner_: ignoring that - i have someone that believes "define_method" was built for doing things like that
bwlang has joined #ruby
<Spooner_>
flyinprogramer, I guess it is. It is just how stuff like attr_reader works after all.
<flyinprogramer>
yah, but i feel like if the objects attributes get more complicated than reading data out of a hash, then it becomes a mess, so why ?
_nitti_ has joined #ruby
nat2610 has joined #ruby
<Spooner_>
So why what?
<flyinprogramer>
like why do things like that instead of just breaking out each attribute into a method and documenting it, allowing for easy code navigation
<flyinprogramer>
i feel like code like that is misinterpretation of DRY because you sacrifice the ability to document
ngoldman has quit [Quit: woosh]
ahokaomaeha has joined #ruby
jacktrick has quit [Client Quit]
<Spooner_>
A lot of people would split it like that and yes, it is breaking maintainability to a degree.
<Spooner_>
There is nothing stopping you documenting, however.
_nitti has quit [Ping timeout: 256 seconds]
peregrine81 has quit [Quit: Computer sleeping.]
<flyinprogramer>
how would you rdoc something like that ?
<flyinprogramer>
or would you just write english and do some ascii prettiness ?
Takehiro has joined #ruby
<Spooner_>
In yardoc, @!attribute [r] phone_number
mockra has quit [Remote host closed the connection]
<flyinprogramer>
Spooner_: aw man i'm silly
end_guy has quit [Remote host closed the connection]
<Spooner_>
I believe you could create a special generator, so you could do type_reader :first_name, :last_name, whatever and then tell yardoc to parse that in the same way as attr_reader.
<Spooner_>
Though I've not tried to do that myself.
<flyinprogramer>
alright
<flyinprogramer>
thanks for the input
<flyinprogramer>
:)
x82_nicole has joined #ruby
slainer68 has joined #ruby
<Spooner_>
You still end up documenting each attribute individually though (unless you get cleverer with yardoc than I am). I guess there comes a point where meta is just easier and a point where manual is just better. Whether 4 is on one side or the other is debatable.
dougireton has joined #ruby
jaequery has joined #ruby
DrCode has quit [Ping timeout: 276 seconds]
Takehiro has quit [Ping timeout: 240 seconds]
<flyinprogramer>
yah
<flyinprogramer>
idk, guess i'm just stubborn
v0n has joined #ruby
<Spooner_>
You could just expose #[] instead and document that ;)
Bry8Star has quit [Ping timeout: 276 seconds]
anonymuse has quit [Quit: Leaving.]
slainer68 has quit [Ping timeout: 245 seconds]
freezway has joined #ruby
chimkan_ has joined #ruby
rakl has quit [Quit: sleeping]
pskosinski has quit [Ping timeout: 246 seconds]
pskosinski has joined #ruby
davidcel_ has joined #ruby
miskander has quit [Quit: miskander]
alvaro_o_ has quit [Quit: Ex-Chat]
davidcel_ has quit [Client Quit]
rakl has joined #ruby
rakl has quit [Client Quit]
chimkan has quit [Ping timeout: 255 seconds]
chimkan_ is now known as chimkan
breakingthings has quit []
_veer has quit [Read error: Connection reset by peer]
sbear has quit [Ping timeout: 260 seconds]
_veer has joined #ruby
_veer has quit [Changing host]
_veer has joined #ruby
breakingthings has joined #ruby
nari has joined #ruby
DrCode has joined #ruby
arya_ has joined #ruby
miskander has joined #ruby
brianpWins has quit [Quit: brianpWins]
jaequery has quit [Quit: Computer has gone to sleep.]
Vektur has quit []
DaltonUS has joined #ruby
dougireton has quit [Quit: Leaving.]
arya has quit [Ping timeout: 252 seconds]
wuzzzzaah has quit [Quit: wuzzzzaah]
sleetdrop has joined #ruby
mmitchell has joined #ruby
chendo_ is now known as chendo
jaequery has joined #ruby
jaequery has quit [Client Quit]
meoblast001 has joined #ruby
Takehiro has joined #ruby
jaequery has joined #ruby
sleetdrop has quit [Remote host closed the connection]
Bry8Star has joined #ruby
aapzak has quit [Ping timeout: 255 seconds]
blaxter has quit [Read error: Connection reset by peer]
main_ has quit [Ping timeout: 240 seconds]
goraxe has quit [Read error: Operation timed out]
aapzak has joined #ruby
yoshie902a has joined #ruby
jaequery has quit [Client Quit]
poikon has joined #ruby
miskander has quit [Quit: miskander]
<yoshie902a>
I need the equivalent of JavaScript's getComputedStyle(), but in ruby to identify the CSS style of html elements. Can anyone recommend a solution?
bricker is now known as bricker`work
miskander has joined #ruby
thams has quit [Quit: thams]
xAndy is now known as xandy
miskander has quit [Client Quit]
Cecilia has joined #ruby
cantonic has joined #ruby
ThePicard has joined #ruby
<ThePicard>
heyo, the first google result for 'ruby isalpha' is something telling you to use regex
danshultz has joined #ruby
<ThePicard>
can anyone do better?
poikon has quit [Ping timeout: 256 seconds]
thams has joined #ruby
<ThePicard>
something like 'a'.alpha? would be nice.
<ThePicard>
yoshie902a: i would guess that python is actually faster than ruby for most tasks
taoru_ has joined #ruby
<ThePicard>
but the amount is probably insignificant except at large scales
eka has quit [Quit: Computer has gone to sleep.]
<ThePicard>
ie, they are both really slow
jaequery has joined #ruby
havenwood has quit [Read error: Connection reset by peer]
<ThePicard>
but I've heard this and that about the ruby GC and how it chokes when you are using lots and lots of memory
havenwood has joined #ruby
maryh has joined #ruby
jaequery has quit [Client Quit]
maryh has quit [Client Quit]
sn0wb1rd has quit [Quit: I will be right back]
cakehero has joined #ruby
<Ohga>
ThePicard: Having taken a peek in my teaching material, the trusty "PickAxe", I think isalpha is missing due to this:
<Ohga>
ThePicard: in ruby a string is a string is a string.. that is, there is no type for individual characters
wallerdev has joined #ruby
taoru has quit [Ping timeout: 252 seconds]
JumpMast3r has joined #ruby
<ThePicard>
Ohga: python just checks for every char in the string
mkinitrd has left #ruby ["Leaving"]
<Ohga>
ThePicard: picking out one character from a string is to get a string with that sole character
<ThePicard>
I think my ruby comes from japan argument makes more sense
adeponte has quit [Remote host closed the connection]
<ThePicard>
And i'm no longer salty about using regexes XD
dallasm has left #ruby [#ruby]
<Ohga>
ThePicard: the second thing is that regex is used with most if not all of String's method
louisror has quit [Ping timeout: 256 seconds]
Myconix has joined #ruby
LiquidInsect has joined #ruby
<Ohga>
ThePicard: so this is chosen as the pervasive tool for manipulating strings, no need for low level bit juggling such as that of isalpha
<Ohga>
sure, the regex engine have to do this, but that's outside of the programmers concern
<Ohga>
does that answer your "why?"?
shtirlic has joined #ruby
xemu2 has joined #ruby
xemu has quit [Ping timeout: 256 seconds]
thufir_ has joined #ruby
<ThePicard>
Ohga: sort of
rakl has joined #ruby
cakehero has quit [Ping timeout: 255 seconds]
_nitti_ has quit [Remote host closed the connection]
matchaw_ has quit [Read error: Connection reset by peer]
_nitti has joined #ruby
<Ohga>
note though that I don't *know* this. it's my best guess
<ThePicard>
yeah
_nitti has quit [Remote host closed the connection]
pavilionXP has quit [Ping timeout: 264 seconds]
joeycarmello has joined #ruby
Goles has quit [Quit: Out.]
nfk has quit [Quit: yawn]
ManAmongHippos has joined #ruby
shtirlic has quit [Ping timeout: 256 seconds]
_nitti has joined #ruby
havenwood has quit [Remote host closed the connection]
moos3 has joined #ruby
jbw has quit [Ping timeout: 252 seconds]
jonathanwallace has quit [Ping timeout: 256 seconds]
philcrissman has joined #ruby
wuzzzzaah has quit [Quit: wuzzzzaah]
ffranz has quit [Quit: Leaving]
wuzzzzaah has joined #ruby
bricker`1A is now known as bricker
wuzzzzaah has quit [Client Quit]
flyinprogramer has quit [Quit: flyinprogramer]
s1n4 has quit [Quit: leaving]
jonathanwallace has joined #ruby
joeycarmello has quit [Remote host closed the connection]
uris has quit [Ping timeout: 260 seconds]
<breakingthings>
Dearest #ruby, how would one create a delegate such that an instance of class "Connection", that holds an instance of class "IO", can delegate certain methods to IO most efficiently
Vektur has joined #ruby
whitedawg has joined #ruby
bwlang has joined #ruby
JumpMast3r has quit [Quit: JumpMast3r]
jduan1981 has joined #ruby
yale has joined #ruby
uris has joined #ruby
jonathanwallace has quit [Ping timeout: 245 seconds]
<havenwood>
shevy: Gah, I wrote that opposite as I meant.
<havenwood>
shevy: What i meant was: true == not(false) #=> true
<havenwood>
nevermind
<shevy>
yeah no worries
<shevy>
my brain is only 5% awake right now :(
nycjv321 has joined #ruby
<havenwood>
ditto
<nycjv321>
maybe this is a stupid question what is difference between capybara and selenium?
Targen has quit [Ping timeout: 240 seconds]
<nycjv321>
selenium is just generic tool with langauge interface and capybara is ruby specific?
joeycarmello has joined #ruby
andrewhl has quit [Remote host closed the connection]
sbear has joined #ruby
<aedornm>
pretty much.. they both accomplish the same things. Watir, Capybara, Selenium, and others, just automate web site interaction. Watir and Capybara are very much Ruby specific, Selenium is multi-language
<nycjv321>
ah! okay
<nycjv321>
I work using QTP and its honestly grueling most of the time
jonathanwallace has joined #ruby
tommyvyo has joined #ruby
joeycarmello has quit [Ping timeout: 240 seconds]
<aedornm>
You can mimic QTP by using a variety of tools ... like Sikuli, Rspec, and TestLink would be one example, and it would actually be less maddening ;)
jinzhu has joined #ruby
x82_nicole has quit [Quit: Computer has gone to sleep.]
<aedornm>
(though I think I'd rather use QTP than STAF in most cases, so it has its advantages)
<nycjv321>
Trying to pick up on something open source... which tends to be 1000x more efficient :) just gotta get solid background in ruby or java <-- I know Java for most part but like Ruby alot more haha... (first language is perl :))
b1rkh0ff has quit [Ping timeout: 276 seconds]
b1rkh0ff has joined #ruby
osaut has joined #ruby
sambio has quit []
<havenwood>
nycjv321: If you haven't already, might wanna check out JRuby, great implementation of Ruby on the JVM!
<nycjv321>
idk I just opened up Selenium today and starting writing some code and interacting with a web page and man it was so smooth (granted slow attributing that to the vm)
<nycjv321>
like if im doing qtp/qc I have to do all this rubbish to write some code
ryanf has quit [Quit: leaving]
blacktulip has joined #ruby
<nycjv321>
havenwood: I'll have to check it out.. I've been doing ruby for about a month now... it makes me feel right at home (from Perl) I honestly love it.... just need more experience in it...
<aedornm>
My personal favorite is Watir, but Selenium is definitely more popular
Takehiro has joined #ruby
freezway has quit [Ping timeout: 256 seconds]
yacks has joined #ruby
<nycjv321>
I'll have to check it out also
jonathanwallace has quit [Ping timeout: 252 seconds]
<nycjv321>
havenwood : is jruby faster then standard C implementation?
poikon has joined #ruby
<havenwood>
nycjv321: Generally, yes. Slower startup time, but once its running quite fast.
<nycjv321>
havenwood: ah okay
<nycjv321>
its interesting to see that its possible to do that though
<nycjv321>
yea I just picked up ruby so I'm still a scrub in it, really just a scrub developer haha :P but I really like it... its amazing honestly considering what you can do in it
colonolG1on has quit [Quit: Lost terminal]
JohnBat26 has joined #ruby
<nycjv321>
compared to many other langauges
<havenwood>
nycjv321: As a fellow scrub I agree, <3 Ruby!!
<nycjv321>
havenwood: :D
<havenwood>
nycjv321: I've been having fun playing with Elixir. Ruby is my favorite though. :D
<nycjv321>
I love its integration of regex, and how it hangles oo... <--- main reason why I stopped doing Perl... just picked up Java as per recommendation and then found out about Ruby... gonna be flipping between both I guess
<aedornm>
heh... I started learning Elixir too, well, and Erlang also. Still not sure what I'd use it for just yet
<nycjv321>
wth haha
<nycjv321>
its just soo much lol
* nycjv321
brain explodes
jonahR has quit [Quit: jonahR]
Gue______ has joined #ruby
Axsuul has joined #ruby
psyprus has quit [Quit: leaving]
jaequery has quit [Quit: Computer has gone to sleep.]
<nycjv321>
handles*
* nycjv321
facepalms
tjbiddle has quit [Quit: tjbiddle]
nycjv321 has quit [Quit: Miranda IM! Smaller, Faster, Easier. http://miranda-im.org]
tjbiddle has joined #ruby
krz has joined #ruby
moshee has quit [Ping timeout: 276 seconds]
ThePicard has quit [Quit: WeeChat 0.3.8]
moshee has joined #ruby
moshee has quit [Changing host]
moshee has joined #ruby
arya has quit [Ping timeout: 256 seconds]
tjbiddle_ has joined #ruby
toekutr has quit [Read error: Connection reset by peer]
Takehiro has quit [Remote host closed the connection]
cobragoat has joined #ruby
dmerrick has quit [Quit: dmerrick]
dankest has quit [Quit: Leaving...]
zommi has joined #ruby
Takehiro has joined #ruby
<shevy>
how do I find out the encoding of a string again?
<shevy>
x.encoding # => #<Encoding:ASCII-8BIT>
<shevy>
ah yes :)
rakl has joined #ruby
ninegrid_ is now known as ninegrid
markalanevans has joined #ruby
vlad_starkov has joined #ruby
Takehiro has quit [Remote host closed the connection]
jonathanwallace has quit [Ping timeout: 252 seconds]
arya has quit [Ping timeout: 255 seconds]
taoru has quit [Remote host closed the connection]
rippa has quit [Ping timeout: 240 seconds]
tagrudev has joined #ruby
techlife has quit [Ping timeout: 252 seconds]
vlad_starkov has quit [Ping timeout: 255 seconds]
zyrex has joined #ruby
arya has joined #ruby
cakehero has quit [Quit: Computer has gone to sleep.]
mahmoudimus has joined #ruby
techlife has joined #ruby
zyrex has quit [Client Quit]
MattRB has quit [Quit: This computer has gone to sleep]
<aedornm>
Sometimes... it's just easier to delete and start over. 834 lines of fairly crappy code
xpen has quit [Remote host closed the connection]
Gue______ has quit [Quit: Computer has gone to sleep.]
dhruvasagar has joined #ruby
shock_one has joined #ruby
ninegrid has quit [Ping timeout: 276 seconds]
nomenkun has joined #ruby
etcetera has quit []
andrewhl has quit [Remote host closed the connection]
ninegrid has joined #ruby
gvz has joined #ruby
arya has quit [Ping timeout: 245 seconds]
puppeh has joined #ruby
frowny_man has quit [Remote host closed the connection]
m3pow has joined #ruby
ryanh has quit [Ping timeout: 244 seconds]
arya has joined #ruby
DrCode has quit [Remote host closed the connection]
straind` has quit [Ping timeout: 252 seconds]
otters has quit [Ping timeout: 245 seconds]
ryanh has joined #ruby
ChampS666 has joined #ruby
Choobie has joined #ruby
jonathanwallace has joined #ruby
cableray has quit [Quit: cableray]
yacks has quit [Ping timeout: 245 seconds]
robustus has quit [Ping timeout: 248 seconds]
<aedornm>
hmmm... gotta be a better way to handle global logging instead of tossing defined?(logger) all over the place
clocKwize has joined #ruby
chrismhough has quit [Quit: chrismhough]
chimkan has quit [Quit: chimkan]
robustus has joined #ruby
<aedornm>
oh, right...
<ryanf>
aedornm: define MyNamespace.logger to be Logger.new(File::NULL) unless specified otherwise?
straind has joined #ruby
poikon has joined #ruby
jun_kame has quit [Ping timeout: 246 seconds]
Kudos has joined #ruby
ryanf has quit [Quit: leaving]
ryanf has joined #ruby
nomenkun has quit [Remote host closed the connection]
DrCode has joined #ruby
haxrbyte has joined #ruby
SrPx has quit [Quit: SrPx]
Elhu has joined #ruby
Nanuq has quit [Read error: Operation timed out]
poikon has quit [Ping timeout: 256 seconds]
jonathanwallace has quit [Ping timeout: 252 seconds]
Hanmac has joined #ruby
yacks has joined #ruby
chimkan has joined #ruby
osaut has quit [Quit: osaut]
megha has quit [Quit: WeeChat 0.4.0]
arya has quit [Ping timeout: 244 seconds]
ManAmongHippos has quit [Quit: ManAmongHippos]
browndawg has joined #ruby
Morkel has joined #ruby
DrCode has quit [Ping timeout: 276 seconds]
aaronmacy has quit [Quit: Leaving.]
vlad_starkov has joined #ruby
megha has joined #ruby
end_guy has quit [Ping timeout: 276 seconds]
end_guy has joined #ruby
grzywacz has joined #ruby
arya has joined #ruby
megha has quit [Client Quit]
jaequery has joined #ruby
Evixion has joined #ruby
beliveyourdream has joined #ruby
banjara has quit [Quit: Leaving.]
jun_kame has joined #ruby
jaequery has quit [Client Quit]
Hanmac has quit [Ping timeout: 245 seconds]
megha has joined #ruby
DrCode has joined #ruby
jaequery has joined #ruby
DrCode has quit [Remote host closed the connection]
jaequery has quit [Client Quit]
coder_neo has joined #ruby
chimkan has quit [Quit: chimkan]
benlieb has quit [Quit: benlieb]
jduan1981 has joined #ruby
pcarrier has quit []
poikon has joined #ruby
aganov has joined #ruby
arturaz has joined #ruby
jaequery has joined #ruby
piotr_ has joined #ruby
fuzai has joined #ruby
<fuzai>
is there an easy way in ruby to start a shell script and capture the output and process on it from the process that started it? What i'm trying to do is make a websocket wrapper around the stdout of a running process.
<fuzai>
maybe to fire off the process as a file handle in read mode or something?
<fuzai>
read-write would be cool too
nishidabianya is now known as ahokaomaeha
poikon has quit [Ping timeout: 252 seconds]
<fuzai>
I think i just found it with popen
jonathanwallace has joined #ruby
ChampS666 has quit [Ping timeout: 252 seconds]
Evixion has quit [Quit: Leaving]
yacks has quit [Ping timeout: 246 seconds]
puppeh has quit [Quit: Leaving...]
cableray has joined #ruby
<fuzai>
IO.popen("nkf -e filename", :external_encoding=>"EUC-JP") {|nkf_io| this |var| by itself is it being an alias to another variable?
jonathanwallace has quit [Ping timeout: 252 seconds]
<Hanmac>
fuzai nkf_io is an io object where you can read the stuff
shtirlic has joined #ruby
mercwithamouth has quit [Ping timeout: 255 seconds]
altamic has joined #ruby
altamic has quit [Changing host]
altamic has joined #ruby
Nanuq has quit [Ping timeout: 252 seconds]
piotr__ has joined #ruby
piotr_ has quit [Ping timeout: 256 seconds]
ghw has joined #ruby
fuzai_ has joined #ruby
shtirlic has quit [Ping timeout: 256 seconds]
fuzai has quit [Ping timeout: 260 seconds]
fuzai_ is now known as fuzai
banjara has joined #ruby
ghw has quit [Quit: ghw]
osaut has joined #ruby
Nanuq has joined #ruby
dr_bob has joined #ruby
yacks has joined #ruby
DrCode has quit [Remote host closed the connection]
mahmoudimus has quit [Quit: Computer has gone to sleep.]
Guest__ has joined #ruby
stayarrr has joined #ruby
megha has quit [Ping timeout: 252 seconds]
jaequery has quit [Quit: Computer has gone to sleep.]
eldariof has joined #ruby
skcin7 has joined #ruby
etank has quit [Ping timeout: 256 seconds]
lkba has quit [Ping timeout: 255 seconds]
megha has joined #ruby
dekroning has joined #ruby
tjbiddle_ has joined #ruby
h8R has quit [Ping timeout: 245 seconds]
JumpMast3r has joined #ruby
mahmoudimus has joined #ruby
h8R has joined #ruby
zigomir has joined #ruby
tjbiddle has quit [Ping timeout: 256 seconds]
tjbiddle_ is now known as tjbiddle
billy_ran_away has quit [Ping timeout: 255 seconds]
dekroning has quit [Quit: Changing server]
dekroning has joined #ruby
arya_ has joined #ruby
arya has quit [Ping timeout: 255 seconds]
billy_ran_away has joined #ruby
answer_42 has quit [Ping timeout: 276 seconds]
TomyLobo has quit [Quit: Standby mode...]
poikon has joined #ruby
chussenot has joined #ruby
etank has joined #ruby
jonathanwallace has joined #ruby
beaky has joined #ruby
jimeh has joined #ruby
rakl has quit [Quit: sleeping]
vlad_starkov has quit [Remote host closed the connection]
maletor has quit [Quit: Computer has gone to sleep.]
DrCode has joined #ruby
tjbiddle has quit [Quit: tjbiddle]
jprovazn has joined #ruby
noxoc has joined #ruby
nomenkun has joined #ruby
lkba has joined #ruby
ahokaomaeha has quit [Quit: When I come back, please tell me in what new ways you have decided to be completely wrong.]
vlad_starkov has joined #ruby
hoelzro|away is now known as hoelzro
stkowski has quit [Quit: stkowski]
Guest__ has quit [Quit: Computer has gone to sleep.]
clooth has joined #ruby
jonathanwallace has quit [Ping timeout: 256 seconds]
jgrevich has quit [Remote host closed the connection]
chussenot has quit [Quit: chussenot]
poikon has quit [Remote host closed the connection]
answer_42 has joined #ruby
banjara has quit [Quit: Leaving.]
timonv has joined #ruby
timonv has quit [Read error: Connection reset by peer]
toekutr has quit [Remote host closed the connection]
timonv has joined #ruby
TheFuzzball has joined #ruby
emergion has joined #ruby
moted has quit [Ping timeout: 256 seconds]
Takehiro has joined #ruby
arya_ has quit [Ping timeout: 256 seconds]
jduan1981 has quit [Quit: jduan1981]
Guest__ has joined #ruby
wallerdev has quit [Quit: wallerdev]
io_syl has quit [Ping timeout: 264 seconds]
Elhu has joined #ruby
noxoc has quit [Quit: noxoc]
colgron has joined #ruby
<colgron>
hello
hyperboreean has quit [Ping timeout: 260 seconds]
<hoelzro>
howdy
io_syl has joined #ruby
marr has joined #ruby
<colgron>
i need to install the ncurses gem under windows 7, running cygwin. however i get an error: ruby.h does not exist.
grzywacz has quit [Ping timeout: 245 seconds]
<colgron>
i dont know how to fix this, or why it needs the header in the first place
cableray has quit [Quit: cableray]
pcarrier has joined #ruby
chussenot has joined #ruby
<Hanmac>
colgron install the devkit (or the ruby dev package): it does need the header because its an C-Extension and not pure ruby ... and to build an C-Ext that works as a brigde between an lib and ruby you need the header files of both
clocKwize has quit [Quit: clocKwize]
workmad3 has joined #ruby
ottbot has quit [Quit: WeeChat 0.3.9.2]
hyperboreean has joined #ruby
jbw has joined #ruby
jonathanwallace has joined #ruby
pcarrier has quit [Ping timeout: 255 seconds]
mahmoudimus has quit [Quit: Computer has gone to sleep.]
samuel02 has joined #ruby
pcarrier has joined #ruby
thufir_ has quit [Quit: Leaving.]
elaptics`away is now known as elaptics
cableray has joined #ruby
wreckimn1 has joined #ruby
chriskk has joined #ruby
rdark has joined #ruby
noxoc has joined #ruby
chriskk has quit [Client Quit]
buscon has joined #ruby
adeponte has quit [Remote host closed the connection]
jonathanwallace has quit [Ping timeout: 252 seconds]
nari has quit [Ping timeout: 245 seconds]
answer_42 has quit [Remote host closed the connection]
<colgron>
Hanmac: thank you. i'll try
yakko has quit [Ping timeout: 252 seconds]
arya has joined #ruby
chussenot has left #ruby [#ruby]
crackfu has joined #ruby
pen has joined #ruby
<colgron>
Hanmac: seems that devkit isn't available via cygwin?
io_syl has quit [Quit: Computer has gone to sleep.]
icole has quit [Remote host closed the connection]
nari has joined #ruby
beaky has quit [Quit: Lost terminal]
<Hanmac>
i didnt use windows or mingw or cygwin ... but i think that somehow it should be possible to install the ruby stuff on cygwin too ... how did you install ruby on cygwin?
arya has quit [Ping timeout: 248 seconds]
Axsuul has quit [Ping timeout: 255 seconds]
emocakes has joined #ruby
brianpWins has quit [Quit: brianpWins]
<workmad3>
colgron: did you read the accepted answer on that?
<colgron>
Hanmac: i just selected it in the cygwin installer
<colgron>
workmad3: yes. but it doesnt solve my problem
matchaw has joined #ruby
<colgron>
workmad3: he sais cygwin contains all tools, but still i cant install the gem. so it doesnt help me much
<workmad3>
colgron: can you gist the error trace you're geting?
daniel_- has joined #ruby
<workmad3>
(or have you already? I've not been in chan long yet today :) )
dekroning has quit [Ping timeout: 256 seconds]
arya has joined #ruby
<colgron>
workmad3: i'll try to find a way. this strange terminal emulator is not the best..
malte_ has quit [Quit: malte_]
<workmad3>
colgron: yeah... I have to admit, I've never managed to get a stable cygwin environment set up... and I've tried many a time
SrPx has joined #ruby
<workmad3>
but I haven't tried for a few years now, so it could be different (they may actually have it working now </troll> ) :)
shock_one has quit [Ping timeout: 252 seconds]
SrPx has quit [Client Quit]
<colgron>
hehe sounds encouraging
quest88 has joined #ruby
girija has quit [Remote host closed the connection]
<colgron>
i just noticed that it seems to use the Embacadero make instead of the one from cygwin (?)
clocKwize has quit [Client Quit]
poikon has joined #ruby
lkba has quit [Ping timeout: 276 seconds]
clocKwize has joined #ruby
banjara has joined #ruby
jonathanwallace has joined #ruby
Vainoharhainen has joined #ruby
quest88 has quit [Quit: quest88]
poikon has quit [Ping timeout: 256 seconds]
[rust] has quit [Quit: This computer has gone to sleep]
tatsuya_o has joined #ruby
niklasb has joined #ruby
Xeago has joined #ruby
slainer68 has joined #ruby
girija has joined #ruby
arturaz has quit [Remote host closed the connection]
aaronmcadam has joined #ruby
aaronmacy has quit [Quit: Leaving.]
timmow has joined #ruby
jonathanwallace has quit [Ping timeout: 276 seconds]
banjara has quit [Ping timeout: 246 seconds]
<fuzai>
if I have an array of hashes and in each of those hashes I have a common variable that I would like to compare to a another variable to see if it exists, is there an easy way to do this with something like include?
cdt has joined #ruby
dcwu has quit [Quit: Leaving.]
<fuzai>
[ { "port" => 8000 }, { "port" => 8001 }] and i'd like to test if any of the port variables equal my random variable
<fuzai>
because that's how my brain thought it out
<colgron>
Hanmac: i'm at work. here i have to use windows. though i not like it :)
<colgron>
workmad3: ok, no problem :)
<workmad3>
fuzai: change that 'break' to an else ;)
cantonic_ has quit [Quit: cantonic_]
<colgron>
Hanmac: what better guis are there?
<fuzai>
now theres an idea :)
<Hanmac>
colgron for sample wxWidgets, it has gui for windows, linux and mac too, and it has ruby bindings wxRuby and rwx
<workmad3>
colgron: ones that give you pixels rather than characters? :)
<fuzai>
oh so there is a wxRuby
<fuzai>
thats gotta be a lot of fun to play with :)
<fuzai>
i did wxPerl a very long time ago
<Hanmac>
fuzai: i whould recoment rwx more ... its more rubyish
poikon has joined #ruby
<colgron>
mhh
<fuzai>
i'll probably never use it, but i pondered the idea of wxRuby a day or so ago
<fuzai>
that's pretty cool
jonathanwallace has joined #ruby
<colgron>
well my program is just for getting some hands on experience on ruby, so i could change. but i wanted to write something with gui for the console.
ddd has quit [Ping timeout: 245 seconds]
<colgron>
i used wxWidgets with c++ once, but changed to Qt later
cantonic has joined #ruby
JackyAlcine has quit [Read error: Connection reset by peer]
<fuzai>
i use processing for all my gui stuff
banjara has joined #ruby
Neomex has joined #ruby
Neomex has quit [Client Quit]
<colgron>
i have never heard of processing
renanoronfle has joined #ruby
lkba has joined #ruby
nkr has joined #ruby
martinklepsch has joined #ruby
craigp has joined #ruby
aytch has quit [Ping timeout: 246 seconds]
security has joined #ruby
maxmanders has joined #ruby
jonathanwallace has quit [Ping timeout: 252 seconds]
<JonnieCache>
its that time again
<JonnieCache>
rails fail time
megha has quit [Ping timeout: 264 seconds]
yacks has quit [Ping timeout: 246 seconds]
stayarrr has quit [Quit: Leaving...]
rippa has joined #ruby
<JonnieCache>
apparently its officially technoweenie's fault
security has quit [Quit: WeeChat 0.4.0]
<shevy>
rails exists
<shevy>
that is the biggest fail
aytch has joined #ruby
<Hanmac>
what is the current problem?
<colgron>
what is the difference between the gem "ncurses" and "ffi-ncurses". is there a way to get information about gems (via the gem progam) before installing them?
banjara has quit [Ping timeout: 276 seconds]
shtirlic has joined #ruby
<shevy>
colgron I suppose ffi uses some automatic way to make bindings
sbear has quit [Ping timeout: 252 seconds]
<shevy>
look at "gem help", it has sub-help stuff too
<fuzai>
test = [ "1", "2" ]; puts "#{a} #{b}" if a = test.shift && b = test.shift # Output is: 2 2
<Hanmac>
shevy ffi does not create bindings, but it access the functions from the lib directly
main_ has quit [Ping timeout: 276 seconds]
<colgron>
thank you shevy
rakl has joined #ruby
<fuzai>
whats the proper way to shift two values out at the same time?
<fuzai>
so puts outputs 1 2?
craigp has quit [Quit: craigp]
poikon has quit [Remote host closed the connection]
<colgron>
and thank you Hanmac
yasushi has joined #ruby
louisror has joined #ruby
yacks has joined #ruby
eka has joined #ruby
<shevy>
fuzai what
<Hanmac>
fuzai like that? b,a = test.shift(2)
poikon has joined #ruby
<fuzai>
oh cool
<fuzai>
yea just like that thank you
<fuzai>
i'm glad i'm asking because the way i would go about it would look like crap compare to how simple that looks
<shevy>
hehehe
<shevy>
Hanmac why did you have b before a ...
sepp2k has quit [Remote host closed the connection]
poikon has quit [Ping timeout: 252 seconds]
arya has quit [Ping timeout: 248 seconds]
cantonic has quit [Quit: cantonic]
browndawg has quit [Quit: Leaving.]
<shevy>
ALL THOSE CONSTANT REWRITES
<shevy>
TO IMPROVE
<shevy>
GO ON MY NERVES
arya has joined #ruby
main_ has joined #ruby
maxmanders has quit [Ping timeout: 252 seconds]
Virunga has joined #ruby
heidar has quit [Quit: leaving]
heidar has joined #ruby
xpen has quit [Remote host closed the connection]
vlad_starkov has joined #ruby
berserkr has joined #ruby
icole has joined #ruby
samphippen has joined #ruby
cantonic has joined #ruby
verto|off is now known as verto
poikon has joined #ruby
verto is now known as Guest24166
jonathanwallace has joined #ruby
yacks has quit [Ping timeout: 240 seconds]
emergion has quit [Quit: Computer has gone to sleep.]
rjmt___ has quit [Ping timeout: 245 seconds]
fermion has joined #ruby
maxmanders has joined #ruby
Mon_Ouie has joined #ruby
icole has quit [Ping timeout: 252 seconds]
banjara has joined #ruby
cantonic has quit [Quit: cantonic]
yacks has joined #ruby
<JonnieCache>
Hanmac: more paramater parsing yaml leakage stuff
<JonnieCache>
Hanmac: its basically the same vuln as before but exposed by a different bug
<JonnieCache>
people have gone to town on those code paths in recent weeks
SrPx has joined #ruby
RurouniJones has joined #ruby
<JonnieCache>
fortunately because rails is so modular its a very easy fix
yasushi has quit [Remote host closed the connection]
banister`sleep has quit [Read error: Connection reset by peer]
jonathanwallace has quit [Ping timeout: 252 seconds]
banister`sleep has joined #ruby
Takehiro has quit [Remote host closed the connection]
RurouniJones has quit [Remote host closed the connection]
arya has quit [Ping timeout: 248 seconds]
Takehiro has joined #ruby
RurouniJones has joined #ruby
main_ has quit [Ping timeout: 252 seconds]
arya has joined #ruby
crackfu has joined #ruby
banjara has quit [Ping timeout: 256 seconds]
idkazuma has joined #ruby
<fuzai>
>> test = ["1","2"]; puts "#{a} #{b}" if b,a = test.shift(2)
<whitequark>
taint/trust should be removed actually
<whitequark>
even matz thinks so
<fuzai>
i was thinking equal housing or equal oppurtuinity
SrPx has joined #ruby
<Hanmac>
whitequark hm okayy and what whould be the replacement?
<shevy>
hehe
<shevy>
how can you remove something if you want to add a replacement for it!
jonathanwallace has joined #ruby
<shevy>
that's like no change
browndawg has quit [Quit: Leaving.]
<whitequark>
Hanmac: nothing. trust/taint/$SAFE are fundamentally broken
osaut has quit [Quit: osaut]
larissa has joined #ruby
arya_ has joined #ruby
<Hanmac>
shevy as you can see, true can neigher be tainted or untrusted :P
<whitequark>
sandboxing should be provided by OS/JVM (but I won't trust JVM)
sdtqjv has joined #ruby
cantonic has joined #ruby
<Hanmac>
sandboxing and JVM does not fit into one sentence :P
<matti>
;]
<matti>
Hanmac: It does.
<whitequark>
matti: but then the sentence becomes EXPLOITABLE
<matti>
Hanmac: You get your San Ultrasparc II, go to a sandbox.
<matti>
Hanmac: And burry it deep.
<matti>
Hanmac: REAL deep.
<Hanmac>
yeah if you insert an "is not supported by"
arya has quit [Ping timeout: 248 seconds]
<matti>
whitequark: ;p
<matti>
whitequark: I was sarcastic ;p
<matti>
s/San/Sun/
samphippen has quit [Quit: Computer has gone to sleep.]
psino has joined #ruby
<whitequark>
SPARC is a neat architecture
<whitequark>
do you know that OpenSPARC is a GPL'd CPU?
<matti>
No.
<matti>
;]
<fuzai>
whats the proper way to run an external command?
<fuzai>
something like system in perl?
<fuzai>
nm i found it
<matti>
fuzai: Try system.
<fuzai>
it's system
<matti>
fuzai: YOu'd be shocked ;p
<matti>
Hehe
<fuzai>
i wanna do something like system("nohup ./myprocess &") is there an easy way to catch the pid of that?
banjara has joined #ruby
browndawg has joined #ruby
browndawg has quit [Max SendQ exceeded]
greenarrow has quit [Quit: IRC is just multiplayer notepad]
<fuzai>
oh i think spawn will do
greenarrow has joined #ruby
poikon_ has joined #ruby
browndawg has joined #ruby
<colgron>
it's always best to ask first and then look for oneself ;P
<fuzai>
i looked i didn't see anything, then i asked, and re-read and saw a note that spawn and system were basically the same thing so i investigated.
<matti>
colgron: They way-around ;p
jonathanwallace has quit [Ping timeout: 264 seconds]
<colgron>
hrm :( still couldnt get ncurses running on cygwin
tvw has quit [Read error: Connection reset by peer]
robbyoconnor has quit [Ping timeout: 276 seconds]
main has quit [Ping timeout: 252 seconds]
samphippen has joined #ruby
gvz has quit [Ping timeout: 256 seconds]
adambeynon has joined #ruby
mongag has quit [Excess Flood]
pixie79 has joined #ruby
mongag has joined #ruby
mongag has quit [Changing host]
mongag has joined #ruby
answer_42 has joined #ruby
maxmanders has quit [Quit: Computer has gone to sleep.]
[Neurotic] has quit [Ping timeout: 246 seconds]
dekroning has joined #ruby
<JonnieCache>
no dont do any work carry on hacking your tools
pettsson has joined #ruby
<JonnieCache>
you know its the right answer
maxmanders has joined #ruby
banseljaj is now known as imami|afk
pavilionXP has joined #ruby
browndawg has quit [Ping timeout: 255 seconds]
<colgron>
JonnieCache: :P
s1n4 has joined #ruby
<fuzai>
so i'm doing a pid = spawn ({},"nohup ./script &") and i'm getting the pid of the nohup which doesn't exist anymore instead of the pid of my script. Does anyone have any suggestions on how to get the pid of my script that nohup is firing?
havenwood has joined #ruby
griffindy has joined #ruby
jun_kame has quit [Read error: Connection reset by peer]
<JonnieCache>
get the script to write out its own pid to a file or something?
shock_one has quit [Ping timeout: 244 seconds]
<JonnieCache>
im not great at that unix stuff i should probably keep my mouth shut
<fuzai>
i'm gonna try getting rid of nhup first
jonathanwallace has joined #ruby
matheus has joined #ruby
embs has quit [Ping timeout: 248 seconds]
jun_kame has joined #ruby
<fuzai>
nohup first
krz has quit [Quit: krz]
<fuzai>
that didn't seem to help either :(
v0n has joined #ruby
yacks has quit [Quit: Leaving]
<fuzai>
is there any other way then spawn or system to fork an external ruby script into the background and get it's pid? i think i'm ending up with the bash shell pid that my script is running in instead of the actual pid still
arya_ has quit [Ping timeout: 248 seconds]
<fuzai>
yea i see a defunct sh for the pid i'm being returned from spawn and kill -9 isn't doing anything to it
a_a_g has joined #ruby
Goldman82 has quit [Read error: Connection reset by peer]
girija_ has joined #ruby
hybris has joined #ruby
Virunga has quit [Remote host closed the connection]
Virunga has joined #ruby
Guest24166 is now known as verto|off
browndawg has joined #ruby
havenwood has quit [Remote host closed the connection]
blaxter has joined #ruby
a_a_g1 has quit [Ping timeout: 252 seconds]
arya has joined #ruby
jonathanwallace has quit [Ping timeout: 264 seconds]
pavilionXP has quit [Read error: Connection reset by peer]
<blacktulip>
Hi
banjara has joined #ruby
girija has quit [Ping timeout: 256 seconds]
<blacktulip>
I just start using slim ... Can someone tell me how to insert an inline literal pipe symbol `|` in a slim file please?
Virunga has quit [Ping timeout: 244 seconds]
AndChat| has joined #ruby
rdark has quit [Ping timeout: 252 seconds]
SrPx has quit [Quit: SrPx]
poikon has quit [Remote host closed the connection]
poikon has joined #ruby
yacks has joined #ruby
osaut has joined #ruby
arya has quit [Ping timeout: 248 seconds]
rdark has joined #ruby
Banistergalaxy has quit [Ping timeout: 256 seconds]
colgron has quit [Quit: Page closed]
clocKwize has quit [Read error: Connection reset by peer]
m3pow has quit [Remote host closed the connection]
<fuzai>
http://www.ruby-doc.org/core-1.9.3/IO.html#method-c-popen looking a IO.popen i read at IO.popen([env, command]) but when I do a IO.popen([ { "LOVE" => "true" }, "/bin/echo $LOVE"]) i get an error that /bin/echo doesn't exist
clocKwize has joined #ruby
arya has joined #ruby
maxmanders has quit [Quit: Computer has gone to sleep.]
buscon has quit [Quit: Leaving]
<fuzai>
i'm assuming that IO.popen works the same way as spawn does with its environment hash
rmartin has joined #ruby
<fuzai>
but i don't understand why it can't find /bin/echo, when i do a which from the command line it happily finds it
<fuzai>
Errno::ENOENT: No such file or directory - /bin/echo $LOVE
moos3 has joined #ruby
banjara has quit [Ping timeout: 252 seconds]
<fuzai>
that from irb trying to execute test = IO.popen([{ "LOVE" => "TRUE"}, "/bin/echo $LOVE"])
Mon_Ouie has quit [Ping timeout: 252 seconds]
pu22l3r has joined #ruby
linusoleander has joined #ruby
<fuzai>
nm i think i'm just going to go back to the spawn idea and have it write it's pid to a temp file
maxmanders has joined #ruby
pu22l3r has quit [Remote host closed the connection]
pu22l3r has joined #ruby
jprovazn has quit [Remote host closed the connection]
<a_a_g>
the command should not contain the argument
<a_a_g>
pass that as the third argument
rakuN has quit [Quit: Saliendo]
idkazuma has joined #ruby
BulleTime has joined #ruby
maxmanders has quit [Client Quit]
recycle has quit [Remote host closed the connection]
elfenars has joined #ruby
elfenars is now known as mrbloo
Elhu has quit [Quit: Computer has gone to sleep.]
Villadelfia has quit [Remote host closed the connection]
SeySayux has quit [Remote host closed the connection]
s1n4 has quit [Quit: leaving]
moos3 has quit [Ping timeout: 276 seconds]
SeySayux has joined #ruby
jonathanwallace has joined #ruby
SeySayux has quit [Remote host closed the connection]
answer_42 has quit [Ping timeout: 276 seconds]
jprovazn has joined #ruby
SeySayux has joined #ruby
keyvan has quit [Ping timeout: 252 seconds]
Villadelfia has joined #ruby
terrorpup has joined #ruby
sayan has quit [Ping timeout: 276 seconds]
clocKwize has quit [Quit: clocKwize]
hoelzro is now known as hoelzro|away
mgrayson has joined #ruby
mgrayson has quit [Client Quit]
grayson_ has joined #ruby
poikon_ has joined #ruby
postmodern has quit [Quit: Leaving]
jprovazn has quit [Remote host closed the connection]
verto|off is now known as verto
jprovazn has joined #ruby
maxmanders has joined #ruby
tvw has joined #ruby
griffindy has quit [Quit: Computer has gone to sleep.]
samphippen has quit [Quit: Computer has gone to sleep.]
yshh has joined #ruby
mjolk has joined #ruby
clocKwize has joined #ruby
jonathanwallace has quit [Ping timeout: 252 seconds]
rjmt___ has joined #ruby
Pandaen has joined #ruby
yshh has quit [Ping timeout: 256 seconds]
Elhu has joined #ruby
blaxter has quit [Quit: foo]
megha has joined #ruby
banjara has joined #ruby
wreckimn1 has joined #ruby
pen has quit [Remote host closed the connection]
Raboo_ is now known as Raboo
yoshie902a has joined #ruby
vlad_starkov has quit [Remote host closed the connection]
Takehiro has quit [Remote host closed the connection]
ffranz has joined #ruby
<stnly>
yoshie902a: you should break the loop once you reach the node with no parent else you will see the error.
dhruvasagar has quit [Ping timeout: 256 seconds]
rakl has quit [Quit: sleeping]
<yoshie902a>
stnly: how?
mark_locklear has joined #ruby
<yoshie902a>
I thought the while should do that, if nil, than while should stop right?
m3pow has joined #ruby
nfk has joined #ruby
Takehiro has joined #ruby
jrafanie has joined #ruby
banjara has quit [Ping timeout: 256 seconds]
<stnly>
yeah thats true but i think parent.parent is one step too far?
<Hanmac>
something like that: while parent;parents << parent; parent = parent != doc ? parent.parent : nil; end
rdark has quit [Ping timeout: 276 seconds]
<Hanmac>
or::: while parent;parents << parent; parent = parent.respond_to?(:parent) ? parent.parent : nil; end
<fuzai>
someone once mentioned that there was a better option to sleep X when using eventmachine, but my googlefu is failing me, does anyone know what i'm talking about?
rdark has joined #ruby
Bracki has joined #ruby
baphled has joined #ruby
<yoshie902a>
Hanmac: what is the doc variable?
<Hanmac>
the doc in your sample before
<Bracki>
When using a git repo with bundler and multiple gems how deep can they be nested? Or must they be at the repo root?
<yoshie902a>
oh, ya thanks!
<Hanmac>
or: while parent.respond_to?(:parent);parents << parent; parent = parent.parent; end
Virunga has joined #ruby
RagingDave has joined #ruby
havenwood has joined #ruby
Skylab has joined #ruby
jrajav has joined #ruby
pcarrier has quit [Ping timeout: 276 seconds]
<yoshie902a>
Hanmac: I think I'll go with respond_to, it's more generic. I didn't know about respond_to, it's a great method!
<yoshie902a>
thanks for letting me know about it
xemu has joined #ruby
pcarrier has joined #ruby
n1x has quit [Ping timeout: 252 seconds]
moos3 has joined #ruby
<martinklepsch>
!! Unexpected error while processing request: deadlock; recursive locking
jonathanwallace has joined #ruby
dr_neek has joined #ruby
D4T has joined #ruby
<martinklepsch>
Getting that from my rack app. I'm kind of clueless how to debug it. I stepped through with rdb but was not able to really identify the place where stuff breaks.
x0F has quit [Disconnected by services]
x0F_ has joined #ruby
pcarrier has quit [Client Quit]
<martinklepsch>
Any advice on debugging this kind of error?
x0F_ is now known as x0F
havenwood has quit [Ping timeout: 252 seconds]
<yoshie902a>
I'm not sure what redb is, but I used "pry" to step through my ruby code.
<yoshie902a>
s/redb/rdb
<martinklepsch>
ruby debugger
<martinklepsch>
stepping does not work with pry be default, does it?
<banister`sleep>
martinklepsch: no, you need to install pry-debugger plugin
<yoshie902a>
I manually go through, step by step, it gives me more control and I can see the result of each issue
Stilo has joined #ruby
terrorpup has quit [Remote host closed the connection]
<yoshie902a>
nonetheless, i'm not great at this stuff, so I might be making my life harder
<martinklepsch>
banister`sleep: cool, last time I checked that was not so easy1 does it provide any significant benefit to rdb?
pcarrier has joined #ruby
cantonic_ has joined #ruby
recycle has joined #ruby
daniel_- has quit [Quit: WeeChat 0.3.9.2]
bluenemo has joined #ruby
bluenemo has quit [Changing host]
bluenemo has joined #ruby
girija_ has quit [Ping timeout: 264 seconds]
dustint has joined #ruby
reinaldob has quit [Remote host closed the connection]
cantonic has quit [Ping timeout: 256 seconds]
cantonic_ is now known as cantonic
AndChat|102836 has joined #ruby
pcarrier has quit [Ping timeout: 240 seconds]
ddd has joined #ruby
clocKwize has quit [Read error: Connection reset by peer]
maxmanders has quit [Quit: Computer has gone to sleep.]
pcarrier has joined #ruby
jon_wingfield has quit [Ping timeout: 252 seconds]
recycle has quit [Remote host closed the connection]
griffindy has joined #ruby
<banister`sleep>
martinklepsch: you have the full power of pry
Virunga has quit [Remote host closed the connection]
<banister`sleep>
martinklepsch: which means you can view source for methods/classes, edit them during the debugging process, etc
angusiguess has joined #ruby
otherj has joined #ruby
<martinklepsch>
ok, great to know :) unfortunately this will probably not help with my deadlock problem :P
<banister`sleep>
hehe
Virunga has joined #ruby
synthetix has quit [Ping timeout: 245 seconds]
dr_neek has quit [Quit: dr_neek]
vlad_starkov has quit [Ping timeout: 256 seconds]
Virunga has quit [Read error: Connection reset by peer]
Virunga_ has joined #ruby
tommyvyo has joined #ruby
<yoshie902a>
off to work! good luck martinklepsch
geekbri has joined #ruby
yoshie902a has left #ruby [#ruby]
dr_neek has joined #ruby
atmosx has joined #ruby
inokenty has joined #ruby
recycle has joined #ruby
joofsh has joined #ruby
Udom0 has joined #ruby
jun_kame has quit []
banjara has joined #ruby
jlast has joined #ruby
<shevy>
what is better
<shevy>
class Asciicounter or ... class AsciiCounter
maxmanders has joined #ruby
answer_42 has joined #ruby
Spooner_ has joined #ruby
patteh has joined #ruby
recycle has quit [Remote host closed the connection]
allaire has joined #ruby
keyvan has joined #ruby
keyvan has quit [Changing host]
keyvan has joined #ruby
<aedornm>
ASCIICounter - work that shift key!
fourq has joined #ruby
jlast has quit [Remote host closed the connection]
tomzx_mac has joined #ruby
mmitchell has joined #ruby
vlad_starkov has joined #ruby
Takehiro has quit [Remote host closed the connection]
__BigO__ has joined #ruby
Dom_ has joined #ruby
jonathanwallace has quit [Ping timeout: 244 seconds]
buscon has joined #ruby
<fuzai>
http://pastie.org/5934236 i'm spawning a process, waiting 3 seconds for it to write it's pid to a file ( it's the first thing the process does ) and then scraping that file for the pid. My code works, but i'm worried that in high io load times that 3 seconds won't be enough. Part of me thinks there is a smarter way to do this. Does anyone have any suggestions?
<shevy>
"This class uses instance variables like Parmesan cheese - just sprinkle it around, the more the better!"
jrafanie has joined #ruby
<shevy>
aedornm it happens to me too though when I maintain some code, and add new features to it. as the years pass by, sometimes code is obsoleted and I forget to kill the ivar :(
carloslopes has joined #ruby
<fuzai>
my process fired with pid 666. I think it's time for break :)
banjara has quit [Ping timeout: 245 seconds]
<aedornm>
shevy: I hate the fact that I wrote it, too.
<shevy>
lol
synthetix has joined #ruby
<aedornm>
fuzai: That just means it's really a daemon!
jfl0wers has joined #ruby
guns has quit [Ping timeout: 252 seconds]
<aedornm>
There's also Configuration and @configuration. They're different YAML files. I don't even know where to start with this, besides a use-case of why not to use a prototype in production
banister`sleep is now known as banisterfiend
zph has joined #ruby
Guest__ has quit [Quit: Computer has gone to sleep.]
iambic has joined #ruby
<shevy>
aedornm hahahaha wait
<shevy>
you use a constant in one case and an ivar in another case?
havenwood has quit [Remote host closed the connection]
sepp2k has joined #ruby
<shevy>
aha... in one project I use a config object... CONFIG = Config.new
banisterfiend has quit [Remote host closed the connection]
<aedornm>
Well, the test "platform" has a configuration, which parts of it has to be global. The "devices" have a separate configuration that's specific to each device. I actually introduced "Configuration" during the "test" platform rewrite, but @configuration within the devices has always existed.
philcrissman has joined #ruby
reinaldob has joined #ruby
<aedornm>
I think there's a lot of complexity I don't need, but then there's still quite a bit I do. There's just far too many variables!
aquaranto has quit [Remote host closed the connection]
zph has quit []
romaint has left #ruby [#ruby]
gosshedd has joined #ruby
BulleTime has quit [Ping timeout: 264 seconds]
thibauts has quit [Ping timeout: 264 seconds]
yacks has joined #ruby
<aedornm>
There's gotta be a better way of doing all of this.
<gosshedd>
hello
<gosshedd>
<georgi_> niggas
haxrbyte_ has quit [Remote host closed the connection]
haxrbyte has joined #ruby
v0n has joined #ruby
samphippen has quit [Quit: Computer has gone to sleep.]
banisterfiend has joined #ruby
emergion has joined #ruby
roadt has quit [Ping timeout: 252 seconds]
jonathanwallace1 has quit [Quit: WeeChat 0.3.9.2]
georgi_ has joined #ruby
nkts has joined #ruby
jonathanwallace has joined #ruby
jfl0wers_ has joined #ruby
phantasm66 has joined #ruby
shock_one has joined #ruby
pskosinski has joined #ruby
nomenkun has quit [Remote host closed the connection]
jeffreybaird has quit [Read error: Connection reset by peer]
jeffreybaird_ has joined #ruby
aquaranto has joined #ruby
stopbit has joined #ruby
jlast_ has joined #ruby
jrajav has quit [Read error: Connection reset by peer]
buscon has quit [Quit: Leaving]
dhruvasagar has quit [Ping timeout: 255 seconds]
larissa has quit [Quit: Leaving]
sbear has joined #ruby
chimkan has quit [Ping timeout: 252 seconds]
segv- has joined #ruby
segv- has quit [Read error: Connection reset by peer]
roadt has joined #ruby
theRoUS has quit [Ping timeout: 276 seconds]
segv- has joined #ruby
LBRapid has joined #ruby
dhruvasagar has joined #ruby
<fuzai>
"Error: unsupported name `SIG9' " Process.kill("9",bot["pid"]) What am i supposed to send for a signal if 9 doesn't work?
banjara has joined #ruby
nomenkun has joined #ruby
<arturaz>
SIGKILL
chimkan has joined #ruby
Coolhand has quit [Remote host closed the connection]
poikon has quit [Remote host closed the connection]
<tobiasvl>
well, judging from the error message you want to send it just "KILL" (it prefixes "SIG")
<crazed>
beat me too it
<crazed>
not sure if you want to send a KILL, TERM might be more appropriate unless you don't care about it shutting down cleanly
failshell has joined #ruby
n1x has quit [Ping timeout: 245 seconds]
binaryplease has joined #ruby
joofsh has quit [Remote host closed the connection]
plotter has quit [Read error: Connection reset by peer]
atmosx has quit [Quit: And so the story goes…]
gnarmis has quit [Remote host closed the connection]
arkiver has quit [Ping timeout: 245 seconds]
chimkan has quit [Read error: Connection reset by peer]
otters has joined #ruby
interactionjaxsn has joined #ruby
poikon has joined #ruby
chimkan has joined #ruby
johnsonw has joined #ruby
<johnsonw>
Hello all! Can anyone recomend a good ruby to look at for an example of how to write ruby well and idiomatically, how to layout directories and so on. Ideally something simple but complete.
<TomJ>
Is there a simple method that can modify a hash, manipulating the keys? Specifically I have a hash where I want to downcase all the key names. so myhash = {"POSTCODE"=>"NW4 3FP", "COVERED"=>"1"}. I want to end up with {"postcode"=>"NW4 3FP", "covered"=>"1"} . I could write a loop that adds myhash[key].downcase and removes myhash[key] but is there a nicer way?
gosshedd_ has quit [Client Quit]
bluenemo has joined #ruby
bluenemo has quit [Changing host]
bluenemo has joined #ruby
arturaz has quit [Ping timeout: 240 seconds]
AndChat|102836 has quit [Ping timeout: 245 seconds]
fgro has quit [Ping timeout: 240 seconds]
gnarmis has joined #ruby
kpshek has joined #ruby
gosshedd has quit [Quit: leaving]
jprovazn has quit [Quit: Leaving]
pu22l3r_ has joined #ruby
timmow has quit [Ping timeout: 252 seconds]
gosshedd has joined #ruby
binaryplease has quit [Quit: WeeChat 0.4.0]
havenwood has quit [Remote host closed the connection]
<shevy>
hmmm anyone of you guys here use no emacs no vim for your editor while coding ruby?
peregrine81 has quit [Quit: Computer sleeping.]
otters has joined #ruby
<TomJ>
Hanmac: very nice, thanks a lot!
rippa has quit [Ping timeout: 240 seconds]
havenwood has joined #ruby
wallerdev has quit [Quit: wallerdev]
<Hanmac>
shevy i use gedit mostly for the small stuff
banjara has quit [Ping timeout: 252 seconds]
<shevy>
Hanmac hmm
dhruvasagar has joined #ruby
peregrine81 has joined #ruby
benlieb has joined #ruby
* fuzai
hugs eventmachine
banisterfiend has joined #ruby
adambeynon has quit [Ping timeout: 245 seconds]
marcoshack has joined #ruby
altamic has quit [Quit: altamic]
<fuzai>
anyone here familiar with em-proxy? I'm looking at the examples and each of them start with Proxy.start firing off it's own server. Is there anyway to use the existing socket from em-websocket and have it connect back to the ip / port that i want it to?
<fuzai>
basically what i'm trying to do is use the existing websocket, pass it a string that flips the socket into a passthru / proxy to a server running on a loopback address
<fuzai>
i'm reading right now
<fuzai>
umm are you sure thats the right link?
coaster is now known as methoddk
nigelb has quit [Remote host closed the connection]
<Hanmac>
fuzai its something for learning programming
<fuzai>
that's where I'm at at the moment
<fuzai>
i'm basically trying to write function 3which is supposed to open a socket to the little bot itself
jeffreybaird has joined #ruby
jeffreybaird has quit [Client Quit]
jeffreybaird_ has quit [Ping timeout: 248 seconds]
sailias1 has joined #ruby
nonotza has joined #ruby
<fuzai>
i'm sorry but i don't find your link helpful
k610 has quit [Ping timeout: 276 seconds]
benlieb has quit [Quit: benlieb]
arturaz has joined #ruby
benlieb has joined #ruby
sailias has quit [Ping timeout: 252 seconds]
wallerdev has joined #ruby
timmow has quit [Read error: Connection reset by peer]
gosshedd has quit [Quit: Lost terminal]
sailias1 has quit [Client Quit]
timmow has joined #ruby
sailias has joined #ruby
ereslibre has joined #ruby
jrist has joined #ruby
cdt has joined #ruby
the_hack has quit [Quit: Computer has gone to sleep.]
cantonic has quit [Quit: cantonic]
adambeynon has joined #ruby
chrismhough has joined #ruby
the_hack has joined #ruby
alvaro_o has joined #ruby
marcoshack has left #ruby [#ruby]
megha has joined #ruby
RurouniJones has quit [Remote host closed the connection]
sailias has quit [Read error: Connection reset by peer]
sailias has joined #ruby
<chiel>
so, i decided to start working remotely, so i don't have to set up a new machine etc anymore.. however, i used to use pow for running ruby apps locally
<chiel>
mainly because it made it easy to reload and such
<shevy>
oh man
<chiel>
what are other options to reloading apps on every refresh?
<shevy>
what has become of the world
<shevy>
people no longer have ruby running locally
banjara has joined #ruby
<chiel>
i have ruby running locally
<chiel>
but since i work on multiple machines, i prefer to keep it remote, and just ssh in
buibex has joined #ruby
hashpuppy has joined #ruby
<ner0x>
Does anyone in here use anything to map out their tests other than the tests themselves?
Mon_Ouie has joined #ruby
poikon has quit [Remote host closed the connection]
a_a_g1 is now known as a_a_g
<hashpuppy>
if i have lib/sync/something_sync.rb and lib/sync/other_sync.rb. each wrapped in module Sync. how can i include something like lib/sync.rb and have access to Sync::Something and Sync::Other so that I don't have to something_sync.rb and other_sync.rb?
<shevy>
wat
aaronmcadam has quit [Quit: aaronmcadam]
<shevy>
so all is inside module Sync
poikon has joined #ruby
<shevy>
simply require the file where you need it inside your other .rb file
moos3 has quit [Ping timeout: 256 seconds]
<shevy>
if lib/sync.rb is your main file, it could require the other two .rb files
<hashpuppy>
ok. i'll just do that
<hashpuppy>
thanks
<hashpuppy>
is that common practice?
<shevy>
the way I usually do it is this:
<shevy>
$: << File.dirname(__FILE__)
<shevy>
and then
<Hanmac>
but you should use require_relative for that
<shevy>
oh no require_relative there, sorry Hanmac :D
<shevy>
require 'pry/helpers/base_helpers'
<shevy>
require 'pry/hooks'
<shevy>
but you are right
<workmad3>
require_relative is evil
<shevy>
they indeed do not modify $:
<shevy>
odd that they can work without $: and also without require_relative
_nitti has quit [Remote host closed the connection]
<workmad3>
shevy: I bet that their test running does '-I ./lib'
<shevy>
hmm
<workmad3>
shevy: and rubygems itself will set up lib/ on $:
moos3 has joined #ruby
<Hanmac>
i know why, and and i also know thy it may not work when you play with rake tests
<shevy>
aha
<shevy>
it seems I don't have to modify $:
johnki has joined #ruby
<shevy>
:)
cableray has joined #ruby
neku has quit [Read error: Connection reset by peer]
<johnki>
Hi. How can I read the ruby docs offline? I tried http://www.ruby-doc.org/downloads/ but these tarballs have absolute paths in them so you can't read them without a server. I just want to read the HTML. what can I do?
neku has joined #ruby
JohnBat26 has joined #ruby
<shevy>
hashpuppy ok seems you dont have to modify $:
SirNicholas has quit [Ping timeout: 276 seconds]
jrist has quit [Ping timeout: 264 seconds]
gosshedd has joined #ruby
<shevy>
I wonder why I did it... hmmm
<workmad3>
shevy: it used to be a lot more common to modify $: in your own stuff than it is nowadays
louisror has quit [Ping timeout: 272 seconds]
remaus has quit [Ping timeout: 260 seconds]
<workmad3>
rubygems now handles most of it, and things like bundler, jeweler, etc also set up rake tasks and other project structures that make it unnecessary in most cases
angusiguess has quit [Ping timeout: 248 seconds]
angusiguess has joined #ruby
wargasm1 has joined #ruby
pskosinski has joined #ruby
<workmad3>
but still, I'd rather ensure my lib/ directory is in $: than resort to require_relative
<shevy>
yeah that seems like a nice thing
banjara has quit [Ping timeout: 276 seconds]
<shevy>
if that works, if I can still use require, then I can kill all those lines in all my little projects :)
wargasm has quit [Ping timeout: 256 seconds]
Kuifje has joined #ruby
cableray has quit [Quit: cableray]
recycle has joined #ruby
dhruvasagar has quit [Ping timeout: 245 seconds]
timmow has quit [Quit: timmow]
gosshedd has quit [Ping timeout: 240 seconds]
<shevy>
lol
<shevy>
while grepping I found this... in minilight.rb
<shevy>
BEGIN { $:.push( File.dirname( $0 ) ) }
<workmad3>
well, I guess that's a little bit more reliable than adding '.'
nomenkun has quit [Remote host closed the connection]
cobragoat has quit [Quit: cobragoat]
dhruvasagar has joined #ruby
bluenemo has quit [Read error: Connection timed out]
<workmad3>
because at least then it wouldn't change if you changed the working directory during execution :)
timmow has joined #ruby
goraxe has joined #ruby
johnki has quit [Quit: Page closed]
bluenemo has joined #ruby
_nitti has joined #ruby
warmwaffles has quit [Quit: Leaving.]
Umren has joined #ruby
<Hanmac>
imo $0 cant be trusted and should not added to the path eigher ...
<workmad3>
Hanmac: I agree
<workmad3>
Hanmac: but at least it's stable and unreliable, rather than unstable and unreliable :)
chrisramon has joined #ruby
chrisramon has quit [Client Quit]
<shevy>
hehehe
chrisramon has joined #ruby
mockra has joined #ruby
daniel_-_ has joined #ruby
benju has joined #ruby
Virunga_ is now known as Virunga
heyitsdave has joined #ruby
adeponte has joined #ruby
<shevy>
hey can someone in irb do this please:
<shevy>
"".methods.sort.size # => 607
jonahR has joined #ruby
markalanevans has quit [Quit: markalanevans]
<banisterfiend>
shevy: what's the point in calling sort before size
<benju>
I installed newgem, because some tutorial recommended it. I ran it and found that it's all broken with modern ruby. Now I can't uninstall it - it just says "ERROR: While executing gem ... (Gem::InstallError)". I'm really suck trying to get going writing a gem. What am I doing wrong?
pcarrier has quit []
buibex has quit [Ping timeout: 248 seconds]
<shevy>
Hanmac 73868
xsarin has joined #ruby
jlast_ has quit [Ping timeout: 245 seconds]
cantonic has joined #ruby
<shevy>
I think I pull in way too much on irb startup...
mikepack has joined #ruby
<havenwood>
benju: One nice modern option to generate a gem is to use Bundler: bundle gem gem-name-here
<shevy>
aha... that code in a .rb file gives me 164
<Xeago>
how to make an image a hyperlink in markdown?
hakunin_ has quit [Ping timeout: 256 seconds]
jlast has joined #ruby
<benju>
havenwood: ok thanks. how I am supposed to know what's the old way of doing things and what's the new way when i read about things online? there was nothing to say that newgem was out of date
swex has quit [Read error: Connection reset by peer]
arturas_ has joined #ruby
<shevy>
benju keep in mind that some blog entries are not always 100% accurate
<havenwood>
benju: A good way is to check the repo, and see if there are modern commits. For newgem: https://github.com/drnic/newgem
<benju>
shevy: where should i look for a right way to do things, for some good enough definition of right
gnarmis has joined #ruby
<shevy>
benju hmm
<shevy>
benju I think the first step is to always understand the minimum required
<havenwood>
benju: Or there are good sites that have metrics on how up-to-date gems are: https://www.ruby-toolbox.com
<shevy>
benju years ago there was only setup.rb :)
<shevy>
that was even before gem
* Xeago
still uses setup.rb
<benju>
I'm letting myself get frustrated, because whatever i try, ten minutes later i find that i'm doing something the old way, and should be using something else
recycle has quit [Remote host closed the connection]
sailias1 has quit [Quit: Leaving.]
osaut has quit [Ping timeout: 252 seconds]
Hanmac has quit [Ping timeout: 245 seconds]
recycle has joined #ruby
sailias has joined #ruby
banjara has quit [Ping timeout: 255 seconds]
jgrevich has quit [Read error: No route to host]
amacleod has quit [Ping timeout: 245 seconds]
eldariof has joined #ruby
jgrevich has joined #ruby
adeponte has quit [Remote host closed the connection]
sailias1 has joined #ruby
luckyruby has joined #ruby
megha has quit [Quit: WeeChat 0.4.0]
io_syl has joined #ruby
jduan1981 has quit [Quit: jduan1981]
adeponte has joined #ruby
moted has joined #ruby
sailias has quit [Ping timeout: 248 seconds]
roadt_ has joined #ruby
HAKEON has quit [Ping timeout: 264 seconds]
jaequery has joined #ruby
miskander has quit [Quit: miskander]
nimred has joined #ruby
nimred has quit [Changing host]
nimred has joined #ruby
undersc0re97 has joined #ruby
undersc0re97 has quit [Changing host]
undersc0re97 has joined #ruby
beiter has quit [Quit: beiter]
aaronmacy has joined #ruby
breakingthings has quit []
roadt has quit [Ping timeout: 248 seconds]
ananthakumaran1 has joined #ruby
ananthakumaran has quit [Read error: No route to host]
beaky has joined #ruby
<beaky>
hello
jonathanwallace has quit [Ping timeout: 252 seconds]
miskander has joined #ruby
dougireton has joined #ruby
dougireton has left #ruby [#ruby]
stkowski has joined #ruby
nga4 has joined #ruby
psino has joined #ruby
i_s has joined #ruby
dysoco has joined #ruby
dysoco has left #ruby ["Leaving"]
enebo has quit [Quit: enebo]
benlieb has quit [Quit: benlieb]
squidBits has joined #ruby
c0rn has joined #ruby
keyvan has quit [Remote host closed the connection]
benlieb has joined #ruby
dekroning has joined #ruby
browndawg has quit [Quit: Leaving.]
ananthakumaran has joined #ruby
ananthakumaran1 has quit [Read error: No route to host]
undersc0re97 has quit [Quit: "The destruction of balance constitutes leaping forward and such destruction is better than balance. Imbalance and headache are good things." - Mao]
markalanevans has quit [Read error: Connection reset by peer]
vipaca has joined #ruby
johnju has joined #ruby
<johnju>
How do I specify the version of Ruby needed to run my gem in the gemspec file?
vipaca is now known as Guest38103
wallerdev has quit [Quit: wallerdev]
rakl has joined #ruby
markalanevans has joined #ruby
binw has joined #ruby
cableray has joined #ruby
carloslopes has quit [Remote host closed the connection]
Xeago has quit [Remote host closed the connection]
Dom_ has quit [Remote host closed the connection]
HAKEON has joined #ruby
Dom_ has joined #ruby
chimkan_ has joined #ruby
fgro has joined #ruby
arya has joined #ruby
statarb3 has quit [Ping timeout: 245 seconds]
hakunin has joined #ruby
banjara has joined #ruby
Guest38103 has quit [Quit: Leaving...]
gvz has quit [Ping timeout: 255 seconds]
vipaca_ has joined #ruby
dmerrick has joined #ruby
elux has quit [Quit: Leaving...]
zeade has joined #ruby
<poikon>
johnju: you can't (not in the Gemfile)
ananthakumaran has quit [Quit: Leaving.]
<poikon>
johnju: you should do that with, for example, rbenv or rvm
<workmad3>
poikon: bundler 1.2 lets you specify the ruby version ;)
<havenwood>
or chruby
Uranio has joined #ruby
beaky has quit [Ping timeout: 240 seconds]
<poikon>
workmad3: ohreally? :o
danktamagachi has quit [Ping timeout: 255 seconds]
<workmad3>
poikon: but then Gemfile != gemspec
vipaca_ has quit [Changing host]
vipaca_ has joined #ruby
cableray has quit [Quit: cableray]
<johnju>
poikon: what do i do if I rely on a ruby 1.9 feature? if someone gem installs on ruby 1.8 how will they know?
<poikon>
@everyone ignore me i'm drunk
<workmad3>
johnju: it will blow up in their face
jekotia has joined #ruby
<havenwood>
johnju: if you put a .ruby-version file in the dir, then chruby or rvm will autoswitch.
chimkan has quit [Ping timeout: 272 seconds]
chimkan_ is now known as chimkan
Dom_ has quit [Ping timeout: 256 seconds]
<poikon>
it seems i can't read anymore
<workmad3>
poikon: bundler doesn't change to the version though, it just tells you 'this gemfile is set to 1.9.3, but you're running 2.0.0, lol, not gonna work now'
<poikon>
:$
<johnju>
how do you people write useful software like this?!
volk__ has joined #ruby
<workmad3>
johnju: we struggle along somehow :P
jrajav has joined #ruby
<johnju>
I come from the Haskell community, and there every library has to explicitly say exactly which range of library and compiler versions it will work wtih
<reactormonk>
johnju, ruby prefers to fail runtime
jlast has quit [Remote host closed the connection]
idkazuma has quit [Remote host closed the connection]
<workmad3>
johnju: here's a question to ponder though... the gemspec file is itself ruby... if you declared in that a requirement for ruby 1.9 and then used ruby 1.9 specific features, what would you expect to happen?
aaronmcadam has quit [Quit: aaronmcadam]
<workmad3>
johnju: (as in 1.9 specific features inside the gemspec)
amacleod has joined #ruby
rdark has quit [Quit: leaving]
johnju has quit [Quit: Page closed]
undersc0re97 has joined #ruby
miskander has joined #ruby
nomenkun has joined #ruby
aapzak has joined #ruby
zeade has quit [Quit: Leaving.]
poikon_ has quit [Remote host closed the connection]
jonathanwallace has joined #ruby
<Kuifje>
hi guys
Squarepy has quit [Quit: Leaving]
<Kuifje>
what dirs does ruby look in when using require with a relative path?
noxoc has quit [Quit: noxoc]
<havenwood>
Kuifje: It checks each dir in $LOAD_PATH.
<havenwood>
s/dir/path
sn0wb1rd has joined #ruby
JumpMast3r has quit [Quit: JumpMast3r]
<havenwood>
Check $: ($LOAD_PATH) array.
girija_ has joined #ruby
girija_ has quit [Client Quit]
ereslibre has quit [Remote host closed the connection]
<havenwood>
$: == $LOAD_PATH
buibex has quit [Remote host closed the connection]
joofsh has quit [Remote host closed the connection]
workmad3 has quit [Ping timeout: 256 seconds]
huoxito has joined #ruby
DaltonUS has quit [Quit: DaltonUS]
peteyg has joined #ruby
tjbiddle_ has joined #ruby
<tuxillo>
k, let me try that. thanks
<tuxillo>
just need to output html code to stdout
tvw has quit [Ping timeout: 244 seconds]
tjbiddle__ has joined #ruby
Uranio has quit [Remote host closed the connection]
tjbiddle has quit [Read error: Connection reset by peer]
tjbiddle__ is now known as tjbiddle
zigomir has joined #ruby
hybris has quit [Quit: Leaving]
timmow has quit [Ping timeout: 252 seconds]
chimkan_ has joined #ruby
aanakinn has joined #ruby
jfl0wers has quit [Quit: jfl0wers]
atmosx has quit [Quit: And so the story goes…]
tjbiddle_ has quit [Ping timeout: 245 seconds]
kpshek has joined #ruby
dmiller has quit [Ping timeout: 244 seconds]
aib has joined #ruby
vipaca has joined #ruby
shevy has quit [Ping timeout: 256 seconds]
chimkan has quit [Ping timeout: 272 seconds]
chimkan_ is now known as chimkan
<peteyg>
I'm wondering if it's possible to directly 'include' the code of another module in a certain function. I made a pseudo-code of what I'd like to see here: http://pastie.org/5943396
grzywacz has quit [Quit: :wq]
vipaca is now known as Guest59583
<peteyg>
sorry, replace the word module with method*
samuel02 has quit [Remote host closed the connection]
vlad_starkov has quit [Remote host closed the connection]
fgro has quit [Ping timeout: 276 seconds]
<invisime>
peteyg: you can call the method.
itsdavem has joined #ruby
banjara has joined #ruby
banisterfiend has quit [Read error: Connection reset by peer]
d2dchat has quit [Remote host closed the connection]
<peteyg>
@invisime: I need have the function that's called propogate to the __method__ variable.
aanakinn has quit [Quit: leaving]
<peteyg>
Let me create a slightly more fool proof pseudo-code...
banisterfiend has joined #ruby
__BigO__ has quit [Remote host closed the connection]
<invisime>
peteyg: ah. if it's more reflect-y than that, yeah. a bigger example would be better. :-)
apok has joined #ruby
<havenwood>
peteyg: by 'include' do you mean call the other method?
mrsolo has joined #ruby
Elhu has joined #ruby
tatsuya__ has quit [Remote host closed the connection]
<peteyg>
havenwood: Oddly enough, that doesn't work. It will only print out the method name that came last. See this pastie (working code): http://pastie.org/5943971
clooth has quit [Quit: clooth]
<havenwood>
peteyg: Yeah... I see now what you're saying. Hrmm. I dunno!
<havenwood>
peteyg: my bad: __method__ == __callee__
verto is now known as verto|off
Eiam has joined #ruby
__BigO__ has joined #ruby
nkts has quit [Remote host closed the connection]
maxmanders has joined #ruby
<peteyg>
havenwood: Okay, no worries, I'll approach this some other way :). Thanks though!
<havenwood>
peteyg: (Pass __method__ as an argument, with a default set.)
ashp has joined #ruby
<ashp>
Hey guys, if I have two hashes I need to merge together, is there an alternative to hash1.merge(hash2)? Right now it's throwing away an entire level of the hash1 to replace it with hash2
br4ndon has quit [Quit: Lorem ipsum dolor sit amet]
<ashp>
I want them to add, not replace :/
yacks has quit [Remote host closed the connection]
<peteyg>
havenwood: Yep, that will do. I was trying to see if I could avoid having to pass an extra argument, but alas!
br4ndon has joined #ruby
<peteyg>
(Probably wasn't worth the hassle of avoiding an extra argument passing anyways @_@)
<havenwood>
peteyg: Aye, cool. Well interesting problem!
<Mon_Ouie>
You can use caller to find the context
<Mon_Ouie>
You have to parse the output manually to extract the method name though
<Mon_Ouie>
You need something like ruby-devel probably
<Mon_Ouie>
Oh, you have it
spinagon has quit [Ping timeout: 240 seconds]
chrishough is now known as REGISTER
REGISTER is now known as Guest435
ryanf has joined #ruby
peregrine81 has quit [Quit: Computer sleeping.]
<cesarstafe>
Mon_Ouie: yes.. is present -> ruby-devel.x86_64 1.8.7.352-7.el6_2 @base
Guest435 is now known as REGISTERS
peregrine81 has joined #ruby
havenwood has joined #ruby
<Mon_Ouie>
But you still don't have the headers? Check both /usr/lib/ruby/ruby.h and around /usr/include(/ruby)?/ruby.h
shtirlic has quit [Remote host closed the connection]
<cesarstafe>
this happens when I want to run the next -> "gem install passenger -v=3.0.19]/returns: Building native extensions. This could take a while."
moshee has quit [Ping timeout: 276 seconds]
moshee has joined #ruby
moshee has quit [Changing host]
moshee has joined #ruby
shtirlic has joined #ruby
<cesarstafe>
and says ... "ERROR: Failed to build gem native extension."
<cesarstafe>
Mon_Ouie: doing 'ls /usr/lib/ruby' I get the list of folders '1.8 gems site_ruby'
Umren has quit [Ping timeout: 252 seconds]
REGISTERS has quit [Quit: REGISTERS]
<shevy>
isn't OOP just a fancy name for setting data structures?
<Mon_Ouie>
What's important in (Smalltalk-style) OOP is message passing: you send a message to an object, and depending on what that object is, it will react differently
* breakingthings
smacks around shevy with a large oop trout
<cesarstafe>
Mon_Ouie: I can't find 'ruby.h' file :(
cr3 has joined #ruby
nwertman has joined #ruby
<Mon_Ouie>
Can you check what files are provided by that ruby-devel package? That sounds like pretty much the only thing it should have
<cr3>
is there a way to invoke ruby to compile a source file using the gems from the system in its lib?
icole has joined #ruby
<cesarstafe>
Mon_Ouie: I will see.. I am really newbie in Centos.. I am used to working with Debian & Ubuntu environments
<cesarstafe>
so.. I guess that something more happens because if not "gem install passenger -v=3.0.19" should works well
<Mon_Ouie>
That's because it's not in the right directory
axl__ has joined #ruby
<cesarstafe>
Mon_Ouie: ups.. this is the fault of Centos directory structure?
eldariof has quit []
<Mon_Ouie>
Normally, the directory is decided according to the options passed when ruby was compiled
<cesarstafe>
:-(
jgrevich_ has joined #ruby
heftig has joined #ruby
toekutr has joined #ruby
tatsuya_o has joined #ruby
<Mon_Ouie>
So either someone (e.g. packager) manually moved the files (e.g. to respect distribution's conventions) or the different packages weren't built with the same options
<cesarstafe>
I really don't know how to solve it in Centos.. well.. I don't remember having this directory installation problems in Debian and Ubuntu
jaygen has joined #ruby
mikepack_ has joined #ruby
<cesarstafe>
Mon_Ouie: what a bad luck!
mikepack has quit [Read error: Connection reset by peer]
axl_ has quit [Ping timeout: 240 seconds]
axl__ is now known as axl_
warmwaffles has joined #ruby
jgrevich has quit [Ping timeout: 276 seconds]
jgrevich_ is now known as jgrevich
apoch632 has joined #ruby
chimkan_ has joined #ruby
JumpMast3r has joined #ruby
alex__c2022_ has joined #ruby
invisime has left #ruby [#ruby]
DaltonUS has joined #ruby
Elhu has quit [Quit: Computer has gone to sleep.]
chimkan has quit [Ping timeout: 276 seconds]
chimkan_ is now known as chimkan
reinaldob has joined #ruby
punkrawkR^Home has quit [Read error: Connection reset by peer]
miskander has joined #ruby
tatsuya_o has quit [Remote host closed the connection]
dr_neek has quit [Quit: dr_neek]
gnarmis has joined #ruby
buibex has quit [Remote host closed the connection]
Hauro has quit [Quit: Leaving]
elux has joined #ruby
vlad_starkov has joined #ruby
itsdavem has quit [Remote host closed the connection]
chussenot has quit [Quit: chussenot]
saltcod has quit [Quit: saltcod]
ckrailo has joined #ruby
apoch632 has left #ruby [#ruby]
vlad_starkov has quit [Ping timeout: 244 seconds]
freakazoid0223 has joined #ruby
reinaldob has quit [Remote host closed the connection]
atmosx has joined #ruby
recycle has quit [Read error: Connection reset by peer]
recycle_ has joined #ruby
atmosx has quit [Client Quit]
warmwaffles has quit [Quit: Leaving.]
mengu has quit [Ping timeout: 256 seconds]
Nisstyre-laptop has quit [Quit: Leaving]
bricker has quit [Ping timeout: 256 seconds]
influ-dev has quit [Quit: influ-dev]
adkron has joined #ruby
adkron_ has joined #ruby
MattRB has quit [Quit: This computer has gone to sleep]
emergion has joined #ruby
ahokaomaeha has quit [Read error: Operation timed out]
enroxorz-work has quit [Read error: Connection reset by peer]
saltcod has joined #ruby
jjbohn is now known as jjbohn|afk
Goles has quit [Quit: Computer has gone to sleep.]
recycle_ has quit [Read error: Connection reset by peer]
Elhu has joined #ruby
itsdavem has joined #ruby
recycle has joined #ruby
workmad3 has joined #ruby
tatsuya_o has joined #ruby
dmiller has joined #ruby
emergion has quit [Ping timeout: 264 seconds]
carlyle has joined #ruby
statarb3 has joined #ruby
jfl0wers has joined #ruby
reinaldob has joined #ruby
enroxorz-work has joined #ruby
Skylab has quit [Quit: Skylab]
bricker has joined #ruby
hashtree has joined #ruby
warmwaffles has joined #ruby
warmwaffles has left #ruby ["WeeChat 0.3.9.2"]
dougireton has quit [Quit: Leaving.]
chrishough_ has joined #ruby
chrishough_ has quit [Client Quit]
chrishough_ has joined #ruby
reinaldob has quit [Remote host closed the connection]
mercwithamouth has quit [Ping timeout: 245 seconds]
mockra has quit [Remote host closed the connection]
jonathanwallace has quit [Ping timeout: 272 seconds]
ChampS666 has joined #ruby
chrishough has quit [Ping timeout: 252 seconds]
chrishough_ is now known as chrishough
Udom0 has left #ruby [#ruby]
mnaser has quit [Excess Flood]
mnaser has joined #ruby
noxoc has joined #ruby
kpshek has quit []
havenwood has quit [Remote host closed the connection]
dougireton has joined #ruby
emocakes has quit [Quit: emocakes]
chrismcgh is now known as chrismcg
chrismcg has quit [Changing host]
chrismcg has joined #ruby
chrisramon has quit [Quit: chrisramon]
therod has joined #ruby
alex__c2022_ has quit [Ping timeout: 276 seconds]
d2dchat has quit [Remote host closed the connection]
moos3 has quit [Quit: Computer has gone to sleep.]
znake has joined #ruby
moos3 has joined #ruby
jjbohn|afk is now known as jjbohn
s__dana_ has joined #ruby
flyinprogramer has joined #ruby
s__dana has quit [Ping timeout: 256 seconds]
s__dana_ is now known as s__dana
mockra has joined #ruby
samphippen has joined #ruby
theRoUS has quit [Ping timeout: 240 seconds]
k610 has quit [Quit: Leaving]
caleb_io has joined #ruby
havenwood has joined #ruby
<flyinprogramer>
anyone know how to create custom code completion rules for ruby mine ?
poikon has quit [Remote host closed the connection]
chrismcg is now known as zz_chrismcg
poikon has joined #ruby
jrafanie has quit [Quit: jrafanie]
alex__c2022 has joined #ruby
carloslopes has quit [Remote host closed the connection]
philcrissman has quit [Read error: Connection reset by peer]
nga4 has quit [Ping timeout: 272 seconds]
itsdavem has quit [Remote host closed the connection]
poikon has quit [Remote host closed the connection]
poikon has joined #ruby
buibex has joined #ruby
philcrissman has joined #ruby
rmartin has quit [Remote host closed the connection]
philcrissman has quit [Read error: Connection reset by peer]
philcrissman has joined #ruby
<flyinprogramer>
clear
<flyinprogramer>
stupid me lol
jrajav has quit [Quit: phunq, sandwich store loop, WHAT NO UNIVERSE]
icole has quit [Remote host closed the connection]
<havenwood>
johnmilton: Curb or Patron are good options if you want to go the CURL route.
<johnmilton>
cool, ill check this out
<johnmilton>
thank you havenwood
kirun has joined #ruby
dr_neek has quit [Read error: Connection reset by peer]
dougireton has quit [Quit: Leaving.]
ner0x has quit [Quit: Leaving]
dr_neek has joined #ruby
Pandaen has joined #ruby
shtirlic has quit [Remote host closed the connection]
<havenwood>
johnmilton: Yeah, Nakamura's talk goes into more detail than I can possibly remember! I've enjoyed using HTTParty for simple tasks of that ilk.
<havenwood>
johnmilton: np
otters has quit [Ping timeout: 252 seconds]
frem has joined #ruby
dougireton has joined #ruby
<Eiam>
+1 httparty
dmiller has quit [Ping timeout: 252 seconds]
dmiller has joined #ruby
gosshedd has quit [Read error: Operation timed out]
mrbloo has quit [Quit: mrbloo]
stayarrr has joined #ruby
volk_ has quit [Quit: volk_]
Pandaen has quit [Remote host closed the connection]
buibex has quit [Remote host closed the connection]
dr_neek has quit [Ping timeout: 272 seconds]
alex__c2022_ has joined #ruby
chrisramon has joined #ruby
alex__c2022 has quit [Ping timeout: 245 seconds]
alex__c2022_ is now known as alex__c2022
caleb_io has quit [Quit: caleb_io]
dr_neek has joined #ruby
chrisramon has quit [Client Quit]
alex__c2022 has quit [Read error: Connection reset by peer]
cableray has joined #ruby
<Eiam>
If you have an array of hashes like hsh = [ {"blah"=>"yay","boo"=>"hi"}, .. repeat] is there a way to do something like hsh.map(&:boo)
tjbiddle_ has joined #ruby
alex__c2022 has joined #ruby
Bosma has joined #ruby
<Eiam>
obviously the keys aren't symbol so to_proc cannot be called on them
geekbri has quit [Remote host closed the connection]
renanoronfle has quit [Quit: This computer has gone to sleep]
cascalheira has joined #ruby
m3pow has quit [Ping timeout: 245 seconds]
<Eiam>
okay so.. its saying :[] should call this method with this block ?
<Eiam>
I totally don't understand how this code worksh sha
nonotza has quit [Quit: nonotza]
<Mon_Ouie>
It's creating a proc that calls [] with "foo" on its first argument, and adds all the other arguments at the end
HAKEON has joined #ruby
<Mon_Ouie>
I added the &(block || new_block) just for completeness, in case you'd call the block with yet another block
IceDragon has joined #ruby
<whitequark>
Eiam: the fact that you don't understand how it works should discourage you from using it in production code.
<whitequark>
but whatever.
<deed02392>
is '' suppsed t evauate to true?
<deed02392>
in codepad it doesn't but in my setup it is
kaen is now known as hail
adeponte has quit [Remote host closed the connection]
hail is now known as kaen
<Eiam>
whitequark: I'm not going to use it, but that doesn't mean I don't want to learn something =)
<Mon_Ouie>
'' evaluates to the empty string. Only nil and false are considered like false in conditionals.
segv- has quit [Read error: Connection reset by peer]
segv- has joined #ruby
thone_ has joined #ruby
stayarrr has quit [Quit: Leaving...]
<Eiam>
Mon_Ouie: okay so recv is the :[] which I got…. *args is "foo" (and anything else pushed in), but what is &block then, and where did *new_args come from?
<interactionjaxsn>
" ".each_byte { |b| puts b } => 32
br4ndon has quit [Quit: Lorem ipsum dolor sit amet]
emmanuelux has joined #ruby
MattRB has quit [Ping timeout: 256 seconds]
<Mon_Ouie>
A string that contains only white space won't necessarily have all its bytes at 32
techhelp has joined #ruby
<Mon_Ouie>
It could include tabs, etc. and might even be using a non-ASCII compatible encoding
ahokaomaeha has joined #ruby
<interactionjaxsn>
good point. i wanted to demonstrate that something was there.
jrafanie has quit [Quit: jrafanie]
LBRapid has quit [Quit: Farewell.]
[Neurotic] has joined #ruby
Nisstyre has joined #ruby
adkron has quit [Ping timeout: 248 seconds]
adkron has joined #ruby
greenarrow has quit [Quit: IRC is just multiplayer notepad]
chrisramon has joined #ruby
greenarrow has joined #ruby
alex__c2022 has quit [Ping timeout: 272 seconds]
jrajav has joined #ruby
adkron_ has joined #ruby
skcin7 has quit [Ping timeout: 245 seconds]
coaster has quit [Remote host closed the connection]
dr_neek has quit [Ping timeout: 272 seconds]
coaster has joined #ruby
alex__c2022 has joined #ruby
Xeago has quit [Remote host closed the connection]
dr_neek has joined #ruby
pavilionXP has quit [Quit: Forget progress by proxy. Land on your own moon.]
workmad3 has quit [Read error: Operation timed out]
adkron_ has quit [Read error: Connection reset by peer]
DaltonUS has quit [Quit: DaltonUS]
v0n has quit [Ping timeout: 248 seconds]
miskander has quit [Quit: miskander]
blacktulip has quit [Remote host closed the connection]
mib_mib has quit [Quit: Page closed]
miskander has joined #ruby
mrc_ has quit [Quit: Leaving.]
joshman_ has joined #ruby
idkazuma has joined #ruby
alex__c2022 has quit [Ping timeout: 272 seconds]
adkron has quit [Ping timeout: 264 seconds]
poikon has joined #ruby
timonv has quit [Remote host closed the connection]
cr3 has joined #ruby
<cr3>
how can I set a breakpoint in my code?
timonv has joined #ruby
Giorgio has quit [Ping timeout: 276 seconds]
generali_ has quit [Remote host closed the connection]
<Eiam>
interactionjaxsn: depends on what you mean by "something was there". For me at least, an empty string may as well not exist
<Eiam>
its not something I generally want to show a user, and " " may as well be "" or nil
dr_neek_ has joined #ruby
alex__c2022 has joined #ruby
<cr3>
looks like I can simply paste these lines in my code: require "rubygems"; require "ruby-debug/debugger"
<Eiam>
(which is probably why .blank? exists)
<Eiam>
rubydebug19
<Eiam>
although I think it was replaced
<Mon_Ouie>
Eiam: There are many applications where whitespace is important. And being a string or being nil makes an even bigger difference.
Vektur has joined #ruby
elux has quit [Quit: Bye!]
dr_neek has quit [Ping timeout: 272 seconds]
dr_neek_ is now known as dr_neek
<Eiam>
Mon_Ouie: I wasn't disputing that it was important, I was saying clearly for many cases the distinction between " " and "" and nil are irrelevant
<Eiam>
and []
<Eiam>
at some level all of them indicate "no data present"
<Eiam>
for certain types of applications =)
dr_neek has quit [Client Quit]
timonv has quit [Ping timeout: 264 seconds]
sailias has joined #ruby
JackyAlcine has quit [Read error: Connection reset by peer]
adeponte has quit [Remote host closed the connection]
alex__c2022 has quit [Ping timeout: 272 seconds]
<interactionjaxsn>
" ".present? => false
<interactionjaxsn>
Eiam: you have a point
alex__c2022 has joined #ruby
<Eiam>
I'm dealing with data from all sorts of feeds and implementors have varied on how they designate "no data"
<Eiam>
so .blank? has been a godsend for me
<Eiam>
(because it catches all of them)
ahokaomaeha has quit [Ping timeout: 245 seconds]
vipaca_ has quit [Quit: Leaving...]
elaptics`away is now known as elaptics
mneorr has joined #ruby
havenwood has quit [Remote host closed the connection]
phantasm66 has quit [Quit: *sleeeep….]
interactionjaxsn has quit [Remote host closed the connection]
_nitti has quit [Remote host closed the connection]
dr_neek has joined #ruby
JackyAlcine has joined #ruby
JackyAlcine has joined #ruby
JackyAlcine has quit [Changing host]
inokenty has quit [Quit: Leaving.]
miskander has quit [Quit: miskander]
ffranz has quit [Read error: Connection reset by peer]
otters has joined #ruby
uris has quit [Ping timeout: 272 seconds]
adkron has joined #ruby
lunarjar has joined #ruby
etcetera has joined #ruby
jerius has quit []
adkron_ has joined #ruby
HAKEON has joined #ruby
mengu has quit [Quit: Leaving]
iambic has quit [Quit: leaving]
forrest has quit [Quit: Leaving]
xsarin has quit [Quit: xsarin]
samphippen has joined #ruby
philcrissman has quit [Remote host closed the connection]
bluOxigen has quit [Ping timeout: 276 seconds]
benlieb has joined #ruby
freakazoid0223 has quit [Quit: Leaving]
atmosx has joined #ruby
uris has joined #ruby
markalanevans has quit [Quit: markalanevans]
breakingthings has quit []
qohelet_ has quit [Quit: qohelet_]
jrajav has quit [Read error: Connection reset by peer]
asteve has quit [Quit: Computer has gone to sleep.]
jrajav has joined #ruby
zeade has left #ruby [#ruby]
berserkr has joined #ruby
Martz has left #ruby [#ruby]
sailias has quit [Quit: Leaving.]
alanp has quit [Read error: Connection reset by peer]
freezway has joined #ruby
peregrine81 has quit [Quit: Computer sleeping.]
MattRB has joined #ruby
Choobie has left #ruby ["End"]
jgrimes has quit [Remote host closed the connection]
dr_neek has quit [Quit: dr_neek]
emergion has joined #ruby
alanp has joined #ruby
pu22l3r has quit [Ping timeout: 276 seconds]
robbyoconnor has joined #ruby
jjbohn has quit [Quit: Leaving...]
jonahR has quit [Quit: jonahR]
mjolk has quit [Quit: This computer has gone to sleep]
__BigO__ has quit [Remote host closed the connection]
__BigO__ has joined #ruby
Hauro has joined #ruby
chrisramon has quit [Quit: chrisramon]
endre has quit [Quit: Lost terminal]
Hauro has quit [Client Quit]
adkron has quit [Ping timeout: 264 seconds]
__BigO__ has quit [Ping timeout: 244 seconds]
itsdavem has joined #ruby
meoblast001 has joined #ruby
adkron_ has quit [Ping timeout: 252 seconds]
baphled has quit [Ping timeout: 276 seconds]
lunarjar has quit [Quit: Leaving]
alex__c2022 has quit [Quit: alex__c2022]
rubyweapon has joined #ruby
noxoc has quit [Quit: noxoc]
willob has quit [Quit: Leaving.]
<rubyweapon>
I want to rotate my log files daily. So I use: Logger.new("my-logfile.log", shift_age = "daily") -- so far so good. But I have a feeling that only a small number of log files are retained (last 3 days). Can you somehow control the number of files that should be kept? The only way I found was to give a number instead of "daily", but I still want daily rotation.
emergion has quit [Quit: Computer has gone to sleep.]
geggam has quit [Remote host closed the connection]
enebo has quit [Quit: enebo]
v0n has joined #ruby
ddd has quit [Ping timeout: 245 seconds]
gnarmis has joined #ruby
aaronmacy has joined #ruby
vertroa has quit [Quit: WeeChat 0.3.8]
noxoc has joined #ruby
Monie has quit [Quit: Quit]
andrewhl has quit [Remote host closed the connection]
tetsus is now known as Guest15986
Dom_ has joined #ruby
<heftig>
rubyweapon: unsure. the logger never seems to delete/unlink any files
jgarvey has quit [Quit: Leaving]
Guest15986 is now known as tetsus
jeffreybaird has quit [Read error: Connection reset by peer]
jeffreybaird has joined #ruby
<heftig>
rubyweapon: maybe something else is cleaning up the directory. are you running systemd?
poikon has quit [Remote host closed the connection]
atmosx has quit [Quit: And so the story goes…]
EPIK has joined #ruby
s1n4 has quit [Quit: leaving]
<rubyweapon>
heftig: mh it's a jruby rails app running on a server that is not managed by me. Dunno, but I don't think so. The app has been running for a month now and yet there are only logs for the last 3 days.
<rubyweapon>
heftig: but yes, maybe something else is deleting the files. Although I have no idea what that might be.
gnarmis has left #ruby [#ruby]
brianpWins has quit [Quit: brianpWins]
kpshek has joined #ruby
mrkris has joined #ruby
caleb_io has joined #ruby
zigomir has quit [Ping timeout: 276 seconds]
u- has quit [Ping timeout: 246 seconds]
nari has joined #ruby
dougireton has joined #ruby
<banisterfiend>
Mon_Ouie: have oyu looked at rbcurse?
Astral_ has quit [Ping timeout: 255 seconds]
<Mon_Ouie>
Nope
u- has joined #ruby
kpshek has quit [Client Quit]
stopbit has quit [Quit: Leaving]
axl_ has quit [Quit: axl_]
havenn has joined #ruby
elico has joined #ruby
<banisterfiend>
Mon_Ouie: you should experiment with saying "nup" instead, it's slightly edgier and makes u look k00
ner0x has joined #ruby
joofsh has quit [Remote host closed the connection]
matheus__ is now known as embs
embs is now known as embs_
plotter has joined #ruby
<havenn>
wow, computer now officially have over a million cores - time for parallelism? :O
poikon has quit [Remote host closed the connection]
dustint has quit [Remote host closed the connection]
segv- has quit [Quit: segv-]
coder_neo has quit [Ping timeout: 276 seconds]
mephux has quit [Excess Flood]
Dom_ has quit [Read error: Connection reset by peer]
benlieb has quit [Quit: benlieb]
markalanevans has joined #ruby
mephux has joined #ruby
Mon_Ouie has quit [Ping timeout: 272 seconds]
markalanevans has quit [Remote host closed the connection]
frem has quit [Read error: Operation timed out]
jtharris has quit [Quit: WeeChat 0.3.9.2]
Dom_ has joined #ruby
markalanevans has joined #ruby
benlieb has joined #ruby
dougireton has quit [Quit: Leaving.]
jonathanwallace has quit [Ping timeout: 252 seconds]
SolidResolve has joined #ruby
SolidResolve has quit [Max SendQ exceeded]
caleb_io has quit [Quit: caleb_io]
SolidResolve has joined #ruby
amacleod_ has quit [Ping timeout: 272 seconds]
Elhu has quit [Quit: Computer has gone to sleep.]
rubyweapon has quit [Quit: Page closed]
jeffreybaird has quit [Quit: jeffreybaird]
dmiller has joined #ruby
samlt has quit [Ping timeout: 255 seconds]
SrPx has quit [Quit: SrPx]
SrPx has joined #ruby
chimkan has quit [Quit: chimkan]
chimkan has joined #ruby
m8 has quit [Quit: Sto andando via]
chussenot has joined #ruby
dougireton has joined #ruby
maxmanders has quit [Quit: Computer has gone to sleep.]
reinaldob has joined #ruby
colonolGron has quit [Quit: Lost terminal]
benlieb has quit [Quit: benlieb]
pettsson has quit [Remote host closed the connection]
havenn is now known as havenwood
cableray has quit [Quit: cableray]
aaronmacy has quit [Quit: Leaving.]
matchaw_ has joined #ruby
cr3 has quit [Quit: leaving]
hackerdude has joined #ruby
locriani has quit [Read error: Connection reset by peer]
locriani has joined #ruby
drakedouay has joined #ruby
emmanuelux has quit [Remote host closed the connection]
jlast has quit [Remote host closed the connection]
nari has quit [Ping timeout: 272 seconds]
therod has quit [Quit: Leaving...]
pu22l3r has joined #ruby
<drakedouay>
i want to set a string to a value, and tell ruby to ignore any special characters contained in it. It is a password hash and as a result it contains many control characters. So far I have 'var = <<<EOS', but it seems that ruby is still trying to parse the contents. How can I fix this?
<havenwood>
drakedouay: <<-EOS
Virunga has quit [Remote host closed the connection]