apeiros_ changed the topic of #ruby to: Ruby 2.0.0-p0: http://ruby-lang.org (Ruby 1.9.3-p392) || Paste >3 lines of text on http://gist.github.com
freezey has quit [Remote host closed the connection]
staafl_alt has joined #ruby
<ziggles> hi guys, quick gem question bc I'm not exactly sure where to start looking.... How does a gem add a command to the user's PATH? ie "rails" from the command line doesn't need to be invoked by calling ruby
staafl has quit [Ping timeout: 272 seconds]
predator117 has joined #ruby
<fryguy> ziggles: depends a bit on your ruby config (whether you are using rvm or rbenv or something else), but it just writes things to a bin directory, and that directory is added to your path
asym has quit [Ping timeout: 255 seconds]
ryannielson has quit [Remote host closed the connection]
<postmodern> ziggles, check `gem env`
<postmodern> ziggles, or do `which rails`
<ziggles> fryguy: ah ok... So just for fun i'm gonna attempt to write a pomodoro timer as a gem and i want to be able to invoke it from the command line. Does this mean that within in the gem's file structure i need to add a /bin directory and basically write a shell script that calls my script?
<fryguy> ziggles: yep
<fryguy> doesn't need to be a shell script, it can be ruby
chrishough has quit [Quit: chrishough]
davidh_ has joined #ruby
<ziggles> fryguy: Oh... got it. So basically anything in /bin just gets added to PATH "for free"
<ziggles> ?
chrishough has joined #ruby
idkazuma has quit [Remote host closed the connection]
<fryguy> yep
<ziggles> Maybe this is a stupid question but in order for that script to execute i need to set a+x permissions on it.... but git ignores file permissions...
iamvery has quit [Remote host closed the connection]
<ziggles> I don't really understand how when someone installs a gem the bin/ scripts can run?
<fryguy> ziggles: ?
<ziggles> fryguy: When you create a script that's going to be an executable, don't you need to do something like "chmod +x" to make it executable?
<fryguy> ziggles: yes
kofno has joined #ruby
wsterling has quit [Remote host closed the connection]
<ziggles> fryguy: i'm thinking when i push that code to github or ruby gems the +x on my script will be lost bc git ignores file ownership/permissions (to my knowledge)
<fryguy> it doesn't
d11wtq has quit [Ping timeout: 252 seconds]
<fryguy> also i'm guessing the gemspec takes care of it
<ziggles> damn, i swear i read somewhere that git ignored that.
pioz has joined #ruby
jeffean has joined #ruby
pioz has quit [Client Quit]
<ziggles> fryguy: thanks a lot sir
<ziggles> :)
jonathanwallace has quit [Ping timeout: 252 seconds]
jnoob22 has joined #ruby
nari has joined #ruby
passerine has joined #ruby
tyl has quit [Ping timeout: 245 seconds]
csaunders has quit [Quit: Computer has gone to sleep.]
ziggles has quit [Remote host closed the connection]
idkazuma has joined #ruby
<kenichi> any sidekiq users around?
iamvery has joined #ruby
pkrnj has joined #ruby
csaunders has joined #ruby
freezway has joined #ruby
akhet has joined #ruby
akhet has joined #ruby
akhet has quit [Changing host]
<davidh_> has anyone here ever played around with blimlimb?
iamvery has quit [Ping timeout: 256 seconds]
<Ontolog> can someone recommend a gem for printing out a table of values (to the terminal)?
sambao21 has joined #ruby
xcv has quit [Remote host closed the connection]
Ng|Adonixx8359 has joined #ruby
julian-delphiki has joined #ruby
freakazoid0223 has joined #ruby
chrisja has quit [Quit: leaving]
<V8Energy> i am trying to parse json using JASON.parse but it doesn't work. here's what the variable looks like: "{\"json_class\":\"Fortune\",\"tags\":[\"fortunes\"],\"quote\":\"You should g o home.\",\"link\":\"http://iheartquotes.com/fortune/show/46962\",\"source\":\"f ortune\"}"
axxT has quit [Ping timeout: 245 seconds]
bean has quit [Ping timeout: 272 seconds]
ariedler has joined #ruby
hogeo has joined #ruby
dankest has quit [Quit: Leaving...]
Arzaga has joined #ruby
DonRichie has quit [Ping timeout: 245 seconds]
DonRichie has joined #ruby
nezumi has joined #ruby
csaunders has quit [Quit: Computer has gone to sleep.]
daniel_- has quit [Ping timeout: 252 seconds]
cloke_ has joined #ruby
mercwithamouth has quit [Ping timeout: 245 seconds]
csaunders has joined #ruby
momomomomo has quit [Ping timeout: 245 seconds]
tealmage has quit [Remote host closed the connection]
cloke has quit [Ping timeout: 245 seconds]
cloke_ is now known as cloke
three18ti has quit [Ping timeout: 245 seconds]
mercwithamouth has joined #ruby
timmow has joined #ruby
yshh has quit [Remote host closed the connection]
denbuzze4 has joined #ruby
bhaarat has quit [Quit: bhaarat]
three18ti has joined #ruby
csaunders has quit [Client Quit]
<davidh_> there is a show going on on #blimlimb
CapnPiCards has joined #ruby
baroquebobcat has quit [Quit: baroquebobcat]
momomomomo has joined #ruby
<denbuzze4> Hey everyone, is there a way to do the following in a neater way:
<denbuzze4> `ENV["ENABLED"] ||= "true"` `if ENV["ENABLED"] == "true"` ? I've tried if `ENV["ENABLED"] ||= "true"` but no luck so far.
ekampf has quit [Quit: ekampf]
schickung has quit [Quit: schickung]
bhaarat has joined #ruby
idkazuma has quit [Remote host closed the connection]
timmow has quit [Ping timeout: 252 seconds]
chessguy has joined #ruby
dooleyburger has joined #ruby
Arzaga has quit [Quit: Computer has gone to sleep.]
theRoUS has joined #ruby
<Spooner> V8Energy, That is perfectly good JSON. Are you using JASON rather than JSON?
<V8Energy> I am using Json
Arzaga has joined #ruby
<V8Energy> ArgumentError: can't get const Fortune: uninitialized constant Fortune
<V8Energy> when I do puts for the variable of unparsed json, this is what I get: {"json_class":"Fortune","tags":["codehappy","pete_incavigila"],"quote":"\"People think we make $3 million and $4 million a year. They don't realize that most of us only make $500,000.\" -- Pete Incavigila, baseball player for the Texas Rang ers.","link":"http://iheartquotes.com/fortune/show/12367","source":"codehappy"}
<Spooner> Well, what that means is that it is trying to create an object of Fortune class, which is what that JSON is a serialised version of.
<Spooner> Though it should just happily parse it into a regular Hash.
CapnPiCards has quit [Excess Flood]
davidokner has joined #ruby
ARCADIVS has joined #ruby
<V8Energy> yet it doesn't :( this is where i am getting the json from: www.iheartquotes.com/api/v1/random?format=json&max_lines=1&max_characters=320
<davidokner> Am I right that RubMine IDE can't build the jRuby applition into an executable .jar file?
<V8Energy> what I am doing is: response = Net::HTTP.get_response('www.iheartquotes.com','/api/v1/random?format=json&max_lines=1&max_characters=320') and then JSON.parse(response.body)
<davidokner> I am very disapointed that I can't build the ruby applicaiton into a .jar file.
<davidokner> Using the IDE.
jekotia_ has joined #ruby
thufir_ has joined #ruby
<V8Energy> Spooner: found the solution, thanks for pointing out the fact that it's trying to create a class. http://stackoverflow.com/questions/4881798/how-to-make-ruby-json-parser-ignore-json-class
mahmoudimus has joined #ruby
zeade has joined #ruby
s2013 has joined #ruby
zeade has quit [Client Quit]
<V8Energy> hmm it doesn't like the .class => Hash part
dmiller has quit [Ping timeout: 245 seconds]
jamesfung14 has joined #ruby
<fryguy> V8Energy: have you loaded the Fortune class?
jekotia has quit [Ping timeout: 247 seconds]
jekotia_ is now known as jekotia
<V8Energy> fryguy: i am trying to ignore the class by following the guy's solution. I wanna convert it to Hash
<Spooner> V8Energy, That is showing the result. The "=> Hash" isn't part of the code.
<V8Energy> oh
mahmoudimus has quit [Read error: Connection reset by peer]
<V8Energy> oops
<Spooner> It is usually written as #=> though
mahmoudimus has joined #ruby
Arzaga has quit [Quit: Computer has gone to sleep.]
Arzaga has joined #ruby
<V8Energy> works now. thanks :D
newUser1234 has joined #ruby
lukeholder has joined #ruby
benlieb has quit [Quit: benlieb]
Spooner has quit [Quit: Leaving]
Arzaga has quit [Client Quit]
nari has quit [Ping timeout: 245 seconds]
newUser1234 has quit [Remote host closed the connection]
chrishough has quit [Quit: chrishough]
lukeholder has quit [Ping timeout: 256 seconds]
davidh_ has left #ruby [#ruby]
newUser1234 has joined #ruby
mrsolo has quit [Quit: Leaving]
arubin has joined #ruby
Sigma00 has joined #ruby
jbueza has quit [Quit: Leaving.]
banjara has quit [Quit: Leaving.]
yshh has joined #ruby
NiteRain has joined #ruby
athst has joined #ruby
rakl has quit [Quit: sleeping]
mfridh has quit [Read error: Operation timed out]
yshh has quit [Remote host closed the connection]
yshh has joined #ruby
r0bgleeson has joined #ruby
mfridh has joined #ruby
chrishough has joined #ruby
benlieb has joined #ruby
johnkary has quit [Quit: @johnkary]
dogweath_ has quit [Remote host closed the connection]
a_a_g has joined #ruby
dmiller has joined #ruby
mockra has quit [Remote host closed the connection]
mahmoudimus has quit [Ping timeout: 260 seconds]
newUser1234 has quit [Remote host closed the connection]
pkrnj has quit [Quit: Computer has gone to sleep.]
Voodoofish430 has quit [Quit: Leaving.]
ni886105 has joined #ruby
cloke has quit [Quit: cloke]
rking has quit [Quit: Attempting weechat downgrade for Unicode support]
rking has joined #ruby
ni886105 has left #ruby [#ruby]
bulters has joined #ruby
randomautomator has quit [Ping timeout: 264 seconds]
codenapper has quit [Quit: codenapper]
ni886105 has joined #ruby
Hanmac2 has quit [Ping timeout: 246 seconds]
Quebert has quit [Quit: Linkinus - http://linkinus.com]
Sigma00 has quit [Ping timeout: 245 seconds]
pcarrier has quit [Ping timeout: 264 seconds]
marcdel has quit []
GeissT has joined #ruby
bulters has quit [Ping timeout: 276 seconds]
justsee has quit [Ping timeout: 255 seconds]
banister`snooze is now known as banister`sleep
Sigma00 has joined #ruby
reset has joined #ruby
rawng has quit [Quit: WeeChat 0.4.1-dev]
pcarrier has joined #ruby
mahmoudimus has joined #ruby
d11wtq has joined #ruby
cardoni has joined #ruby
xScaryKid has joined #ruby
newUser1234 has joined #ruby
gwillickers has quit [Quit: leaving]
ukd1 has quit [Remote host closed the connection]
WanderingGlitch has quit [Changing host]
WanderingGlitch has joined #ruby
gwillickers has joined #ruby
tommyvyo has quit [Quit:]
xScaryKid has quit [Quit: Leaving]
banister`sleep has quit [Remote host closed the connection]
jrendell has quit [Quit: jrendell]
rburton- has quit [Quit: Leaving...]
xScaryKid has joined #ruby
Hanmac has joined #ruby
pcarrier has quit [Ping timeout: 240 seconds]
timmow has joined #ruby
xScaryKid_ has joined #ruby
gwillickers has left #ruby [#ruby]
xScaryKid_ has quit [Client Quit]
xScaryKid has quit [Client Quit]
jonathanwallace has joined #ruby
johnnygoodmancpa has joined #ruby
xScaryKid has joined #ruby
pcarrier has joined #ruby
<davidokner> Anyone know anything about creating an executable jRuby .jar file from an IDE?
wesside has joined #ruby
<tylersmith> davidokner: try #jruby
<davidokner> oh, of course. thanks
lethjakm1 has joined #ruby
<lethjakm1> hey, is there a way to start a java application from inside of rails in a way that I can kill it later on?
ni886105 has quit [Read error: Connection reset by peer]
timmow has quit [Ping timeout: 252 seconds]
Domon has joined #ruby
davidokner has left #ruby ["thanks"]
hamakn has joined #ruby
xScaryKid_ has joined #ruby
<fryguy> lethjakm1: find another way to do that, as it'll end up causing you problems
ukd1 has joined #ruby
FenrirReturns has joined #ruby
xScaryKid_ has quit [Client Quit]
xScaryKid has quit [Quit: Leaving]
xScaryKid has joined #ruby
<lethjakm1> fryguy: why's that?
xScaryKid has quit [Client Quit]
xScaryKid_ has joined #ruby
<lethjakm1> I was thinking I might be able to do it with Process.spawn/kill
<fryguy> lethjakm1: because the rails process is long running, longer than the scope of a request, so controlling it will be trickier than you think
xScaryKid_ has quit [Client Quit]
tealmage has joined #ruby
cardoni has quit [Quit: Colloquy for iPad - http://colloquy.mobi]
generalissimo has joined #ruby
Ontolog has quit [Remote host closed the connection]
<fryguy> and scaling/updating will be a pain. you'd be much better served to externalize the java app and expose an api for it, via soap/json-rpc/thrift/rest/0mq/rabbitmq/somethingelse
nari has joined #ruby
hmarr has quit []
sleetdrop has joined #ruby
io_syl has quit [Quit: Computer has gone to sleep.]
Vert has quit [Ping timeout: 252 seconds]
ariedler has quit [Remote host closed the connection]
soulofpeace has joined #ruby
tvw has quit [Ping timeout: 245 seconds]
pkrnj has joined #ruby
gyre007 has quit [Ping timeout: 252 seconds]
<lethjakm1> fryguy: maybe I'm making this sound too serious. I just want to make a on/off button for my friends minecraft server.
<lethjakm1> this doesn't need to scale.
yacks has joined #ruby
<lethjakm1> however rabbitmq looks really cool....would you recommend it for other projects?
johnnygoodmancpa has left #ruby [#ruby]
<fryguy> lethjakm1: so you are going ot load minecraft inside of rails?
<fryguy> lethjakm1: yes, rabbitmq is pretty great
tealmage has quit [Ping timeout: 252 seconds]
<lethjakm1> fryguy: no, I just want to run the command to start it and stop it from rails
<lethjakm1> I need to check the running processes and see if it's running
<lethjakm1> be able to kill it
<lethjakm1> and be able to start it
<fryguy> lethjakm1: take a minecraft init.d script and port that instead
gyre008 has quit [Ping timeout: 256 seconds]
<fryguy> or just use god/supervisord/something else instead to do it
kpshek has joined #ruby
Vert has joined #ruby
<arubin> lethjakm1: What you want is something else that runs the Minecraft server that responds to commands in some way.
<lethjakm1> fryguy: would I just run the bash through ruby?
<arubin> lethjakm1: There are many Minecraft wrappers that will probably do this.
GeissT has quit [Ping timeout: 245 seconds]
<lethjakm1> arubin: I'm mainly just trying to figure out how to communicate with something that isn't ruby.
<arubin> lethjakm1: You are thinking about this the wrong way.
<r0bgleeson> lethjakm1: are you looking to be able to manage subprocesses?
<arubin> You do not need Java and Ruby to talk at all.
<lethjakm1> arubin: ok, who does ruby need to talk to?
<lethjakm1> r0bgleeson: in a sense, yeah.
miroatme_ has joined #ruby
kpshek has quit [Ping timeout: 252 seconds]
<r0bgleeson> lethjakm1: Ruby subprocesses, or Java ones?
<lethjakm1> r0bgleeson: in this case java, I understand subprocessing within a language already
<arubin> lethjakm1: You wrap the Minecraft server in a script which accepts external commands in some fashion.
<arubin> lethjakm1: This is what most people do.
<lethjakm1> arubin: like an init.d?
decentrality has joined #ruby
rupee has quit [Quit: Leaving]
<arubin> Then you use something like init.d to start and stop it.
<lethjakm1> arubin: how would I start and stop the init.d from rails?
<lethjakm1> through a system call?
<fryguy> lethjakm1: init.d is an executable file on your system
GeissT has joined #ruby
<r0bgleeson> you don't need init.d, you could call the wrapper from ruby
huoxito has joined #ruby
A124 has joined #ruby
Vert has quit [Ping timeout: 252 seconds]
miroatme_ has left #ruby [#ruby]
benlieb has left #ruby [#ruby]
brianherman has joined #ruby
sickn3ss has joined #ruby
btaitelb has joined #ruby
<sickn3ss> Anyone got some good links on how I could create an SNMP packet and send it in Ruby ?
mythical has joined #ruby
cardoni has joined #ruby
<arubin> ?
benlieb has joined #ruby
Mattx has joined #ruby
miso1337 has joined #ruby
ukd1_ has joined #ruby
<sickn3ss> arubin I've read that however I can not find any way in the documentation to specify a source IP address. Which of course should be different then the IP address which sends the packet
nminus1 has quit [Ping timeout: 248 seconds]
<sickn3ss> doing this with Scapy in Python is fine, however, I would really like to see how it can be done in Ruby
momomomomo has quit [Quit: momomomomo]
ZachBeta has joined #ruby
ukd1 has quit [Ping timeout: 256 seconds]
mythical has quit [Ping timeout: 246 seconds]
<r0bgleeson> .bu9
nminus1 has joined #ruby
<r0bgleeson> oops
hhyakfish has joined #ruby
Matip has quit [Ping timeout: 256 seconds]
tommyvyo has joined #ruby
wargasm has joined #ruby
mando has joined #ruby
tevio has quit [Read error: Connection reset by peer]
security has joined #ruby
tevio has joined #ruby
megha has quit [Ping timeout: 264 seconds]
dmiller has quit [Remote host closed the connection]
bradleyp_ has quit [Remote host closed the connection]
freeayu has joined #ruby
radic has joined #ruby
LaPetiteFromage has quit [Quit: LaPetiteFromage]
shevy has quit [Ping timeout: 246 seconds]
wsterling has joined #ruby
ckrailo has quit [Quit: Computer has gone to sleep.]
radic_ has quit [Ping timeout: 260 seconds]
cardoni has quit [Quit: Colloquy for iPad - http://colloquy.mobi]
rburton- has joined #ruby
banjara has joined #ruby
yetanotherdave_ has joined #ruby
randomautomator has joined #ruby
pkill_ has quit [Quit: Lost terminal]
retry has quit [Quit: Linkinus - http://linkinus.com]
billycravens has joined #ruby
security is now known as megha
spacemud has quit [Quit: ZNC - http://znc.in]
randomautomator has quit [Ping timeout: 255 seconds]
beneggett has quit [Quit: Computer has gone to sleep.]
dooleyburger has quit [Quit: This computer has gone to sleep]
shevy has joined #ruby
newUser1234 has quit [Remote host closed the connection]
timmow has joined #ruby
yetanotherdave_ has quit [Quit: yetanotherdave_]
Yakko_ has joined #ruby
nopolitica has joined #ruby
sayan has joined #ruby
bradhe has quit [Remote host closed the connection]
hadees has quit [Quit: hadees]
mythical has joined #ruby
newUser1234 has joined #ruby
Yakko has quit [Ping timeout: 248 seconds]
jnoob22 has quit [Remote host closed the connection]
timmow has quit [Ping timeout: 252 seconds]
Astral_ has quit [Read error: Connection reset by peer]
Astral_ has joined #ruby
tealmage has joined #ruby
miso1337 has quit [Quit: afk]
vlad_starkov has joined #ruby
FenrirReturns has quit [Ping timeout: 252 seconds]
rickruby has joined #ruby
tealmage has quit [Ping timeout: 256 seconds]
Yakko_ is now known as Yakko
hhyakfish has quit [Quit: hhyakfish]
kofno has quit [Remote host closed the connection]
vlad_starkov has quit [Ping timeout: 252 seconds]
LongLiveBacon has joined #ruby
kofno has joined #ruby
miso1337 has joined #ruby
ramon1478 has joined #ruby
alx- has quit [Quit: alx-]
chessguy has quit [Remote host closed the connection]
LongLiveBacon has quit [Read error: Operation timed out]
dmiller has joined #ruby
kofno has quit [Ping timeout: 260 seconds]
dmiller has quit [Remote host closed the connection]
dooleyburger has joined #ruby
pac1 has quit [Ping timeout: 264 seconds]
dmiller has joined #ruby
FenrirReturns has joined #ruby
jekotia has quit [Quit: ChatZilla 0.9.90-rdmsoft [XULRunner 18.0.2/20130201065344]]
axxT has joined #ruby
axxT has quit [Changing host]
axxT has joined #ruby
GeissT_ has joined #ruby
moos3_ has joined #ruby
Bofu2U_ has joined #ruby
dyeske_ has joined #ruby
Yakko has quit [Read error: Connection reset by peer]
Ng|Adonixx8359 has quit [Read error: Connection reset by peer]
GeissT has quit [Read error: Connection reset by peer]
moos3 has quit [Read error: Connection reset by peer]
Bofu2U has quit [Read error: Connection reset by peer]
dyeske has quit [Read error: Connection reset by peer]
samuelkadolph has quit [Ping timeout: 240 seconds]
moos3_ is now known as moos3
EPIK has quit [Read error: Connection reset by peer]
kaichanvong has quit [Ping timeout: 240 seconds]
Bofu2U_ is now known as Bofu2U
thejefflarson_ has quit [Ping timeout: 240 seconds]
coaster has quit [Ping timeout: 240 seconds]
EPIK has joined #ruby
coldie has quit [Ping timeout: 240 seconds]
lancepantz_ has quit [Ping timeout: 240 seconds]
companion has quit [Ping timeout: 240 seconds]
kurk_ has joined #ruby
netto has joined #ruby
kurk_ has quit [Excess Flood]
t_p has quit [Ping timeout: 240 seconds]
hackeron has quit [Ping timeout: 240 seconds]
Scient has quit [Ping timeout: 240 seconds]
flori has quit [Ping timeout: 240 seconds]
sharpobject has quit [Ping timeout: 240 seconds]
sickn3ss has quit [Quit: ph333r]
kurk_ has joined #ruby
thams has quit [Quit: thams]
pcboy_ has quit [Ping timeout: 240 seconds]
nuba has quit [Ping timeout: 240 seconds]
kurk has quit [Read error: Connection reset by peer]
jeevan_ullas has quit [Ping timeout: 240 seconds]
coldie has joined #ruby
t_p has joined #ruby
prstat has quit [Ping timeout: 240 seconds]
ioNull has joined #ruby
hackeron has joined #ruby
flori has joined #ruby
pcboy_ has joined #ruby
nuba has joined #ruby
nminus1 has quit [Ping timeout: 256 seconds]
jeevan_ullas has joined #ruby
prstat has joined #ruby
coaster has joined #ruby
rickruby has quit [Remote host closed the connection]
samuelkadolph has joined #ruby
kurk_ has quit [Client Quit]
lancepantz_ has joined #ruby
nminus1 has joined #ruby
kurk has joined #ruby
Scient has joined #ruby
ukd1_ has quit [Remote host closed the connection]
kurk has quit [Excess Flood]
rickruby has joined #ruby
lancepantz_ is now known as lancepantz
kurk has joined #ruby
companion has joined #ruby
indyrl has quit [Ping timeout: 245 seconds]
pskosinski has quit [Quit: pskosinski]
marcdel_ has joined #ruby
bradhe has joined #ruby
beneggett has joined #ruby
sharpobject has joined #ruby
FenrirReturns has quit [Ping timeout: 245 seconds]
kkh has quit [Read error: Operation timed out]
etank has quit [Quit: WeeChat 0.3.2]
r0bgleeson has quit [Ping timeout: 245 seconds]
cooldman224 has joined #ruby
Scriptor has quit [Ping timeout: 245 seconds]
[rust] has joined #ruby
jdunck has quit [Quit: Computer has gone to sleep.]
sayan has quit [Read error: Connection reset by peer]
rakl has joined #ruby
akhet has quit [Remote host closed the connection]
KazW has quit [Read error: Connection reset by peer]
hadees has joined #ruby
io_syl has joined #ruby
mythical has quit [Quit: mythical]
Xeago has joined #ruby
Davey has quit [Quit: Computer has gone to sleep.]
etank has joined #ruby
d11wtq has quit [Quit: brb]
mockra has joined #ruby
benlieb has quit [Quit: benlieb]
v0n has quit [Read error: Operation timed out]
KazW has joined #ruby
cooldman224 has quit [Read error: Connection reset by peer]
newUser1234 has quit [Remote host closed the connection]
benlieb has joined #ruby
indyrl has joined #ruby
indyrl has quit [Read error: Connection reset by peer]
Hanmac2 has joined #ruby
philcrissman has joined #ruby
benlieb has quit [Client Quit]
Xeago has quit [Ping timeout: 260 seconds]
Hanmac has quit [Ping timeout: 264 seconds]
d11wtq has joined #ruby
ramon1478 has quit [Quit: Leaving]
DrCode_ has joined #ruby
Opettaja has joined #ruby
netto has quit [Quit: netto]
DrCode has quit [Ping timeout: 276 seconds]
pcarrier has quit [Ping timeout: 245 seconds]
DrCode_ is now known as DrCode
pcarrier has joined #ruby
sambao21 has quit [Quit: Computer has gone to sleep.]
a_a_g has quit [Quit: This computer has gone to sleep]
miso1337 has quit [Quit: afk]
Opettaja_ has joined #ruby
yetanotherdave_ has joined #ruby
Neandre has quit [Ping timeout: 272 seconds]
chandankumar has joined #ruby
tommyvyo has quit [Quit:]
n69834 has joined #ruby
timmow has joined #ruby
Opettaja has quit [Ping timeout: 245 seconds]
hekin has joined #ruby
n69834 has quit [Remote host closed the connection]
FenrirReturns has joined #ruby
hekin has quit [Client Quit]
hekin has joined #ruby
Heero has joined #ruby
Heero has joined #ruby
Heero has quit [Changing host]
passerine has quit [Ping timeout: 245 seconds]
Neandre has joined #ruby
timmow has quit [Ping timeout: 252 seconds]
rippa has joined #ruby
sayan has joined #ruby
wmoxam has joined #ruby
alvaro_o has joined #ruby
kkh has joined #ruby
tealmage has joined #ruby
arquebus has joined #ruby
r0bgleeson has joined #ruby
mythical has joined #ruby
ukd1 has joined #ruby
reset has quit [Ping timeout: 264 seconds]
kurk has quit []
mythical has quit [Client Quit]
tealmage has quit [Ping timeout: 252 seconds]
kofno has joined #ruby
kelabot has quit [Remote host closed the connection]
rippa has quit [Ping timeout: 240 seconds]
tylersmith has quit [Quit: tylersmith]
ehaliewicz has joined #ruby
ukd1 has quit [Remote host closed the connection]
osvico has joined #ruby
<osvico> joy
a_a_g has joined #ruby
<osvico> oops, sorry
love_color_text has joined #ruby
beasty_ has quit [Read error: Operation timed out]
nminus1 has quit [Quit: Lost terminal]
balr0g has quit [Read error: Operation timed out]
mave_fnet has quit [Read error: Operation timed out]
martxel has quit [Read error: Operation timed out]
ziyadb has quit [Read error: Operation timed out]
yekta has quit [Quit: yekta]
fcoury__ has quit [Read error: Operation timed out]
NimeshNeema has quit [Ping timeout: 246 seconds]
JoeTheGuest has quit [Ping timeout: 245 seconds]
77CAATFJH has quit [Ping timeout: 252 seconds]
randym has quit [Read error: Operation timed out]
beasty has joined #ruby
joshwines_ has quit [Ping timeout: 245 seconds]
mockra_ has joined #ruby
kapowaz has quit [Ping timeout: 276 seconds]
karnowski has quit [Ping timeout: 264 seconds]
jhowarth has quit [Ping timeout: 264 seconds]
wedgeV has quit [Read error: Connection reset by peer]
dekz__ has quit [Ping timeout: 245 seconds]
mtlatif has quit [Ping timeout: 245 seconds]
itman has quit [Ping timeout: 245 seconds]
taqutor has quit [Ping timeout: 276 seconds]
xerxas has quit [Ping timeout: 245 seconds]
ashka has quit [Excess Flood]
kofno has quit [Ping timeout: 245 seconds]
alex88 has quit [Ping timeout: 256 seconds]
[0x1a] has quit [Ping timeout: 256 seconds]
patricksroberts_ has quit [Ping timeout: 256 seconds]
strax has quit [Ping timeout: 264 seconds]
iaj has quit [Read error: Connection reset by peer]
chiel has quit [Ping timeout: 245 seconds]
[Neurotic] has quit [Ping timeout: 245 seconds]
iaj has joined #ruby
scrr has quit [Ping timeout: 252 seconds]
wedgeV has joined #ruby
phasma has quit [Ping timeout: 276 seconds]
yeban has quit [Ping timeout: 264 seconds]
scrr has joined #ruby
hamakn has quit [Remote host closed the connection]
itman has joined #ruby
joshwines_ has joined #ruby
mockra has quit [Ping timeout: 240 seconds]
patricksroberts_ has joined #ruby
chiel has joined #ruby
arquebus has left #ruby [#ruby]
dooleyburger has quit [Quit: This computer has gone to sleep]
JoeTheGuest has joined #ruby
arquebus has joined #ruby
arubin has quit [Quit: Textual IRC Client: www.textualapp.com]
tristan622 has joined #ruby
v0n has joined #ruby
[Neurotic] has joined #ruby
phite has joined #ruby
alex88 has joined #ruby
martxel has joined #ruby
mave_fnet has joined #ruby
divout has joined #ruby
martxel is now known as Guest26201
wsterling has quit [Remote host closed the connection]
shock_one has joined #ruby
NimeshNeema has joined #ruby
EPIK has quit []
failshell has quit [Remote host closed the connection]
chandankumar has quit [Quit: Leaving]
freakazoid0223 has quit [Ping timeout: 256 seconds]
hamakn has joined #ruby
veinofstars has quit [Quit: veinofstars]
tristan622 has quit [Quit: Leaving]
justsee has joined #ruby
justsee has joined #ruby
athst has quit [Quit: athst]
wmoxam has quit [Ping timeout: 264 seconds]
hekin has quit [Remote host closed the connection]
danneu has joined #ruby
hekin has joined #ruby
hekin has quit [Client Quit]
freeayu has quit [Ping timeout: 256 seconds]
freeayu has joined #ruby
veinofstars has joined #ruby
fschuindt has joined #ruby
bhaarat has quit [Quit: bhaarat]
Gwyxx has joined #ruby
cyberarm has quit [Quit: Bye]
agarie has joined #ruby
ukd1 has joined #ruby
thufir_ has quit [Quit: Leaving.]
akhet has joined #ruby
akhet has quit [Changing host]
akhet has joined #ruby
r0bgleeson has quit [Ping timeout: 256 seconds]
centipedefarmer has quit [Remote host closed the connection]
centipedefarmer has joined #ruby
akhet has quit [Ping timeout: 264 seconds]
tonini has joined #ruby
Domon has quit [Remote host closed the connection]
strax has joined #ruby
thams has joined #ruby
angusiguess has quit [Ping timeout: 256 seconds]
ZachBeta has quit [Read error: Connection reset by peer]
timmow has joined #ruby
jamesfung14 has quit [Remote host closed the connection]
ZachBeta has joined #ruby
xerxas has joined #ruby
krz has joined #ruby
timmow has quit [Ping timeout: 252 seconds]
ekampf has joined #ruby
ukd1 has quit [Ping timeout: 245 seconds]
tealmage has joined #ruby
jeffreylevesque_ has joined #ruby
jeffreylevesque has quit [Ping timeout: 264 seconds]
hamakn has quit [Read error: Connection reset by peer]
hamakn has joined #ruby
rippa has joined #ruby
shock_one has quit [Ping timeout: 260 seconds]
vlad_starkov has joined #ruby
chandankumar has joined #ruby
uris has quit [Quit: Leaving]
tealmage has quit [Ping timeout: 264 seconds]
ckrailo has joined #ruby
centipedefarmer has quit [Remote host closed the connection]
vlad_starkov has quit [Ping timeout: 264 seconds]
mayankkohaley has quit [Ping timeout: 252 seconds]
generalissimo has quit [Remote host closed the connection]
mattbl has joined #ruby
ioNull has quit [Quit: Computer has gone to sleep.]
denbuzze4 has quit [Quit: Leaving.]
viuo has quit [Read error: Operation timed out]
mando has quit [Remote host closed the connection]
love_color_text has quit [Remote host closed the connection]
kaichanvong has joined #ruby
thejefflarson_ has joined #ruby
yfeldblum has quit [Ping timeout: 245 seconds]
tyl has joined #ruby
yxhuvud has joined #ruby
yacks has quit [Read error: Operation timed out]
headius has joined #ruby
dmiller has quit [Remote host closed the connection]
mercwithamouth has quit [Ping timeout: 245 seconds]
jpun has quit [Ping timeout: 276 seconds]
vikhyat has joined #ruby
viuo has joined #ruby
veinofstars has quit [Quit: veinofstars]
Xeago has joined #ruby
headius has quit [Client Quit]
ananthakumaran has joined #ruby
codecop has joined #ruby
girija has joined #ruby
passerine has joined #ruby
Deckl has quit [Ping timeout: 255 seconds]
mahmoudimus has quit [Quit: Computer has gone to sleep.]
V8Energy has quit [Ping timeout: 264 seconds]
ukd1 has joined #ruby
jpun has joined #ruby
Xeago has quit [Ping timeout: 276 seconds]
yetanotherdave_ has quit [Quit: yetanotherdave_]
wsterling has joined #ruby
brianherman has quit [Read error: Connection reset by peer]
ananthakumaran has quit [Quit: Leaving.]
bulters has joined #ruby
wsterling has quit [Ping timeout: 248 seconds]
bulters has quit [Read error: Operation timed out]
Domon has joined #ruby
rburton- has quit [Quit: Linkinus - http://linkinus.com]
lewix has quit [Remote host closed the connection]
freezway has quit [Ping timeout: 240 seconds]
lethjakm1 has quit [Ping timeout: 245 seconds]
ekampf has quit [Quit: ekampf]
lethjakm1 has joined #ruby
vikhyat has quit [Remote host closed the connection]
d11wtq_ios has joined #ruby
robert__ has joined #ruby
kuzushi has quit [Ping timeout: 245 seconds]
angusiguess has joined #ruby
wallerdev has quit [Quit: wallerdev]
robert_ has quit [Ping timeout: 272 seconds]
drumond19 has quit [Remote host closed the connection]
vlad_starkov has joined #ruby
kuzushi has joined #ruby
Deckl has joined #ruby
ukd1 has quit [Ping timeout: 256 seconds]
dmiller has joined #ruby
angusiguess has quit [Ping timeout: 260 seconds]
dmiller_ has joined #ruby
timmow has joined #ruby
indyrl has joined #ruby
bradhe has quit [Remote host closed the connection]
nga4 has joined #ruby
yacks has joined #ruby
dmiller has quit [Ping timeout: 245 seconds]
dmiller_ has quit [Ping timeout: 245 seconds]
Proshot has quit [Quit: Leaving]
[rust] has quit [Quit: Leaving]
timmow has quit [Ping timeout: 252 seconds]
lukeholder has joined #ruby
rton has joined #ruby
snooc has joined #ruby
LnL has quit [Ping timeout: 264 seconds]
Axsuul has joined #ruby
tealmage has joined #ruby
tagrudev has joined #ruby
sayan has quit [Read error: Connection reset by peer]
vlad_starkov has quit [Remote host closed the connection]
ioNull has joined #ruby
mockra_ has quit [Remote host closed the connection]
Morkel has joined #ruby
<Hanmac1> apeiros: what is a good code <-> testcase ratio ? ;P currently my testcasecode is 1/3 of the combined code
mayankkohaley has joined #ruby
<apeiros> I think such metrics are pointless. but what I've heard, there's a couple of advocates for <1 code/test ratio (i.e., more tests than code)
tealmage has quit [Ping timeout: 256 seconds]
d11wtq_ios has quit [Remote host closed the connection]
ananthakumaran has joined #ruby
Morkel has quit [Client Quit]
Morkel has joined #ruby
mockra has joined #ruby
<Hanmac1> hm okay, i will tell you when i reached what scale ;P
<apeiros> personally, I'd rather have 10 good tests than 100 bad ones
madb055 has quit [Ping timeout: 264 seconds]
<apeiros> even if the 10 good ones means it's below 100% C0 coverage.
taqutor has joined #ruby
LongLiveBacon has joined #ruby
v0n has quit [Read error: Operation timed out]
crodas has quit [Ping timeout: 272 seconds]
FenrirReturns has quit [Ping timeout: 256 seconds]
wesside has quit [Quit: Computer has gone to sleep.]
<Hanmac1> apeiros: you can look at the tests and tell me if they are good or bad https://github.com/OpenRubyRMK/game-engine/tree/master/data/scripts/2.0/tests
kofno has joined #ruby
balr0g has joined #ruby
anderse has joined #ruby
LongLiveBacon has quit [Ping timeout: 264 seconds]
kapowaz has joined #ruby
jhowarth has joined #ruby
ukd1 has joined #ruby
karnowski has joined #ruby
dekz__ has joined #ruby
[0x1a] has joined #ruby
yeban has joined #ruby
Deckl has quit [Ping timeout: 248 seconds]
mtlatif has joined #ruby
phasma has joined #ruby
noop has quit [Remote host closed the connection]
btaitelb has quit [Quit: btaitelb]
kofno has quit [Ping timeout: 245 seconds]
ph^ has joined #ruby
aganov has joined #ruby
yxhuvud2 has joined #ruby
wargasm1 has joined #ruby
wargasm has quit [Ping timeout: 256 seconds]
Sigma00 has quit [Quit: ZNC - http://znc.in]
<hemanth> >> str="BACKEND: N/A AMC: 1.Importa license APPLIANCE: 2. View the license status with \"linfo -s\" EW/CT: N/A"; p Hash[str.scan /^(.+?): (.+?)$/m]
<eval-in> hemanth => {"BACKEND"=>" N/A AMC: 1.Importa license APPLIANCE: 2. View the license status with \"linfo -s\" EW/CT: N/A"} ... (http://eval.in/16720)
tesuki has joined #ruby
<hemanth> :(
<hemanth> trying to make a hash out of such a string
yxhuvud has quit [Ping timeout: 246 seconds]
feedbackloop_ has quit [Ping timeout: 252 seconds]
crodas has joined #ruby
bradhe has joined #ruby
thebastl has joined #ruby
wargasm1 has quit [Ping timeout: 264 seconds]
ckrailo has quit [Quit: Computer has gone to sleep.]
wargasm has joined #ruby
kuzushi has quit [Ping timeout: 245 seconds]
ukd1 has quit [Ping timeout: 240 seconds]
pkrnj has quit [Quit: Textual IRC Client: www.textualapp.com]
stef_204 has joined #ruby
alvaro_o has quit [Quit: Ex-Chat]
noop has joined #ruby
MrZYX|off is now known as MrZYX
<hemanth> Hanmac1, help!
<Mon_Ouie> That's because of your anchors
<Mon_Ouie> ^ and $ respectively mean beginning and end of line
sayan has joined #ruby
MrZYX is now known as MrZYX|off
anderse has quit [Quit: anderse]
LongLiveBacon has joined #ruby
<hemanth> Mon_Ouie, chomp.split(': ', 2) is bad?
tyl has quit [Read error: Connection reset by peer]
<Mon_Ouie> Well, it won't properly separate your key/values
<hemanth> {} afer removing the anchor
<Mon_Ouie> You'll get [key1, val1 key2, val2 key3, etc.]
tyl has joined #ruby
<Mon_Ouie> And also only a 2-element array
soulofpeace has quit [Ping timeout: 264 seconds]
workmad3 has joined #ruby
<hemanth> :(
<Mon_Ouie> Well, got to go, but your second .+? doesn't match what you want. It will stop as soon as it can, i.e. after a single character
andikr has joined #ruby
crodas has quit [Read error: Connection reset by peer]
<Mon_Ouie> You might need a look a head to identify the next key
<hemanth> trying
<hemanth> read till you get a word:
mockra has quit [Remote host closed the connection]
puppeh has joined #ruby
<bnagy> Hash[*str.squeeze(' ').split(/([\w\/]+): /).reject(&:empty?)]
<bnagy> ew, btw
jprovazn_afk is now known as jprovazn
nopolitica has quit [Remote host closed the connection]
<bnagy> the character class in the split might need tightening up depending on your real data
chussenot has joined #ruby
<hemanth> bnagy, wow! ok, the real data is being parsed from a silly old xml, thought of using crack or something to convert it to json....
mayankkohaley has quit [Ping timeout: 252 seconds]
Sigma00 has joined #ruby
<bnagy> if it's xml then why wouldn't you use an xml parser?
Mon_Ouie has quit [Ping timeout: 240 seconds]
acarpe has joined #ruby
subbyyy has quit [Ping timeout: 252 seconds]
<hemanth> i'm using rexml/document; but i need to restructure.
keymone has joined #ruby
vikhyat has joined #ruby
LongLiveBacon has quit [Ping timeout: 255 seconds]
apeiros has joined #ruby
mayankkohaley has joined #ruby
Deckl has joined #ruby
<apeiros> Hanmac1: I'm sorry, but I'm at work. I don't really have the time.
<Hanmac1> :(
Hanmac1 has quit [Quit: Leaving.]
chandankumar has quit [Ping timeout: 264 seconds]
angusiguess has joined #ruby
workmad3 has quit [Read error: Operation timed out]
Elhu has joined #ruby
Skelz0r has quit [Ping timeout: 276 seconds]
dmiller has joined #ruby
binw_ has joined #ruby
angusiguess has quit [Ping timeout: 264 seconds]
psyprus has quit [Ping timeout: 258 seconds]
timmow has joined #ruby
psyprus has joined #ruby
crodas has joined #ruby
huoxito has quit [Quit: Leaving]
thams has quit [Quit: thams]
binw has quit [Ping timeout: 276 seconds]
dmiller has quit [Ping timeout: 264 seconds]
Hanmac has joined #ruby
SCommette has joined #ruby
ckrailo has joined #ruby
ekampf has joined #ruby
<hemanth> odd number of arguments for Hash...hmmm
timmow has quit [Ping timeout: 252 seconds]
Guest____ has joined #ruby
Guest____ has quit [Max SendQ exceeded]
snooc has quit []
arquebus has left #ruby [#ruby]
chussenot has quit [Quit: chussenot]
undersc0re97 has joined #ruby
undersc0re97 has quit [Changing host]
undersc0re97 has joined #ruby
danneu has quit [Ping timeout: 252 seconds]
tealmage has joined #ruby
blacktulip has joined #ruby
locriani_ has joined #ruby
s2013 has quit [Ping timeout: 264 seconds]
locriani has quit [Ping timeout: 252 seconds]
Shrink has quit [Remote host closed the connection]
JohnBat26 has joined #ruby
tealmage has quit [Ping timeout: 264 seconds]
Shrink has joined #ruby
bigkevmcd has quit [Quit: Ex-Chat]
tevio has quit [Remote host closed the connection]
Morkel_ has joined #ruby
Morkel has quit [Ping timeout: 264 seconds]
Morkel_ is now known as Morkel
ph^_ has joined #ruby
io_syl has quit [Quit: Computer has gone to sleep.]
Xeago has joined #ruby
ph^ has quit [Ping timeout: 256 seconds]
bigkevmcd has joined #ruby
tesuki has quit []
rickruby has quit [Remote host closed the connection]
vlad_starkov has joined #ruby
JoeTheGuest has quit [Changing host]
JoeTheGuest has joined #ruby
JoeTheGuest has joined #ruby
filipe has joined #ruby
ukd1 has joined #ruby
Xeago has quit [Ping timeout: 245 seconds]
Elhu has quit [Quit: Computer has gone to sleep.]
ukd1 has quit [Remote host closed the connection]
ukd1 has joined #ruby
yxhuvud has joined #ruby
vlad_starkov has quit [Ping timeout: 245 seconds]
skroon has joined #ruby
yxhuvud2 has quit [Ping timeout: 245 seconds]
dr_bob has joined #ruby
Proshot has joined #ruby
jpun has quit [Read error: Operation timed out]
Chinorro has joined #ruby
ph^_ has quit [Remote host closed the connection]
jpun has joined #ruby
echevemaster has quit [Read error: Connection reset by peer]
ukd1 has quit [Remote host closed the connection]
ckrailo has quit [Quit: Computer has gone to sleep.]
bulters has joined #ruby
threesome has quit [Ping timeout: 256 seconds]
coderhut has joined #ruby
ph^ has joined #ruby
predator117 has quit [Ping timeout: 245 seconds]
Vainoharhainen has joined #ruby
predator117 has joined #ruby
spacemud has joined #ruby
lukeholder has quit [Quit: Computer has gone to sleep.]
dustint has quit [Read error: Operation timed out]
Hanmac2 has quit [Ping timeout: 240 seconds]
Hanmac1 has joined #ruby
petrjanda has joined #ruby
Vainoharhainen has quit [Client Quit]
Xeli has joined #ruby
JonnieCache has quit [Ping timeout: 260 seconds]
sayan has quit [Ping timeout: 260 seconds]
timmow has joined #ruby
Vainoharhainen has joined #ruby
petrjanda_ has joined #ruby
razibog has joined #ruby
petrjanda has quit [Ping timeout: 260 seconds]
petrjanda_ is now known as petrjanda
beneggett has quit [Ping timeout: 245 seconds]
ashka` has joined #ruby
vikhyat has quit [Ping timeout: 246 seconds]
mattbl has quit [Quit: This computer has gone to sleep]
bradhe has quit [Remote host closed the connection]
ashka` has quit [Excess Flood]
beneggett has joined #ruby
coderhut has quit [Ping timeout: 245 seconds]
kreantos has joined #ruby
pi3r has joined #ruby
ehaliewicz has quit [Read error: Connection reset by peer]
vikhyat has joined #ruby
ehaliewicz has joined #ruby
Guest15044 has quit [Quit: Computer has gone to sleep.]
nga4 has quit []
timonv has joined #ruby
undersc0re97 has quit [Quit: Leaving]
bulters has quit [Read error: Connection reset by peer]
bulters has joined #ruby
apeiros has quit [Read error: Connection reset by peer]
girija has quit [Ping timeout: 264 seconds]
tonini has quit [Remote host closed the connection]
apeiros has joined #ruby
angusiguess has joined #ruby
dustint has joined #ruby
timonv_ has joined #ruby
alup has joined #ruby
undersc0re97 has joined #ruby
timonv has quit [Read error: Connection reset by peer]
Assurbanipal has joined #ruby
Mohan has quit [Read error: Connection reset by peer]
jeebster has joined #ruby
<jeebster> yyello
arturaz has joined #ruby
skroon_ has joined #ruby
dmiller has joined #ruby
angusiguess has quit [Ping timeout: 264 seconds]
fschuindt has quit [Quit: Textual IRC Client: http://www.textualapp.com/]
Astral_ has quit [Ping timeout: 264 seconds]
Astralum has joined #ruby
blaxter has joined #ruby
tonini has joined #ruby
gstamp has quit [Quit: Computer has gone to sleep.]
skroon has quit [Ping timeout: 252 seconds]
Akuma has quit [Ping timeout: 252 seconds]
Opettaja_ has quit [Quit: WeeChat 0.4.0]
dmiller has quit [Ping timeout: 245 seconds]
kelabot has joined #ruby
beneggett has quit [Quit: Computer has gone to sleep.]
ephemerian has joined #ruby
timonv_ has quit [Remote host closed the connection]
Opettaja has joined #ruby
tealmage has joined #ruby
<krz> is there instance_variable_get, but to get ALL instance variables?
Xeli has quit [Quit: leaving]
<krz> nvm
<krz> instance_variables
tevio has joined #ruby
girija has joined #ruby
threesome has joined #ruby
tesuki has joined #ruby
tealmage has quit [Ping timeout: 255 seconds]
tesuki has quit [Remote host closed the connection]
tesuki has joined #ruby
tesuki has quit [Client Quit]
tevio has quit [Remote host closed the connection]
bluOxigen has joined #ruby
Akuma has joined #ruby
ehaliewicz has left #ruby ["ERC Version 5.3 (IRC client for Emacs)"]
kreantos has quit [Remote host closed the connection]
ferdev has quit [Quit: ferdev]
kreantos has joined #ruby
BobuSumisu has quit [Quit: WeeChat 0.4.0]
bradhe has joined #ruby
Criztian has joined #ruby
timmow has quit [Remote host closed the connection]
vlad_starkov has joined #ruby
agarie has quit [Ping timeout: 245 seconds]
daniel_- has joined #ruby
bluOxigen has quit [Read error: Connection reset by peer]
bluOxigen has joined #ruby
kreantos has quit [Remote host closed the connection]
kreantos has joined #ruby
sylvinus has quit [Quit: sylvinus]
camilasan has joined #ruby
troessner has joined #ruby
Deckl has quit [Ping timeout: 240 seconds]
wargasm has quit [Ping timeout: 256 seconds]
yxhuvud2 has joined #ruby
vikhyat has quit [Ping timeout: 245 seconds]
Elhu has joined #ruby
bradhe has quit [Ping timeout: 255 seconds]
jlebrech has joined #ruby
slainer68 has joined #ruby
wargasm has joined #ruby
yxhuvud has quit [Ping timeout: 256 seconds]
SCommette has quit [Quit: SCommette]
rickruby has joined #ruby
indyrl has quit [Quit: Leaving.]
niceguyjames has joined #ruby
rdark has joined #ruby
miso1337 has joined #ruby
Assurbanipal has quit [Quit: Leaving]
niceguyjames has quit [Client Quit]
sylvinus has joined #ruby
<krz> is there a better way to write this: http://pastie.org/7641055
Skelz0r has joined #ruby
rickruby has quit [Ping timeout: 256 seconds]
marr has joined #ruby
<hoelzro> probably a loop
<krz> each?
<hoelzro> I'm thinking something like find
niceguyjames has joined #ruby
<hoelzro> or grep + map
<krz> but I'm not trying to do it for each instance var. I'm checking if it exists then assign the @media var to it
ferdev has joined #ruby
Guest26201 is now known as martxel
martxel has quit [Changing host]
martxel has joined #ruby
polymar has joined #ruby
ashka` has joined #ruby
ferdev has quit [Client Quit]
<apeiros> krz: why do you access internal state which is not accessible from the outside? seems like a design issue…
ashka` is now known as ashka
ashka has quit [Changing host]
ashka has joined #ruby
ferdev has joined #ruby
<apeiros> the better thing would be: class ThatTemplateClass; def media; @song || @video || @photo; end; end
<apeiros> and then use that accessor
<apeiros> ([@song,@video,@photo].find(&:present?) if you really have to check against empty strings/arrays/hashes/etc too)
<apeiros> (which again would IMO be a design issue)
SirFunk has quit [Excess Flood]
SirFunk has joined #ruby
apeiros_ has joined #ruby
<apeiros_> grmbl, company wireless has been jumpy the last 2 days :-/
apeiros has quit [Read error: Connection reset by peer]
timmow has joined #ruby
xcv_ has joined #ruby
timonv has joined #ruby
apeiros_ has quit [Read error: Connection reset by peer]
miso1337 has quit [Quit: afk]
bradhe has joined #ruby
akhet has joined #ruby
akhet has joined #ruby
browndawg has joined #ruby
angusiguess has joined #ruby
Neandre has quit [Read error: Connection reset by peer]
girija has quit [Ping timeout: 252 seconds]
timmow has quit [Ping timeout: 252 seconds]
bradhe has quit [Ping timeout: 252 seconds]
browndawg has quit [Read error: Connection reset by peer]
angusiguess has quit [Ping timeout: 248 seconds]
browndawg has joined #ruby
dmiller has joined #ruby
wargasm has quit [Ping timeout: 245 seconds]
20WAB9IOD has joined #ruby
elaptics`away is now known as elaptics
mneorr has joined #ruby
rburton- has joined #ruby
dmiller has quit [Ping timeout: 245 seconds]
xcv_ has quit [Remote host closed the connection]
Astral_ has joined #ruby
Astralum has quit [Ping timeout: 264 seconds]
danneu has joined #ruby
akhet has quit [Remote host closed the connection]
ziyadb has joined #ruby
ziyadb has quit [Changing host]
ziyadb has joined #ruby
ziyadb has joined #ruby
tealmage has joined #ruby
vlad_sta_ has joined #ruby
miso1337 has joined #ruby
strk has joined #ruby
girija has joined #ruby
lkba has quit [Ping timeout: 276 seconds]
timmow has joined #ruby
vlad_starkov has quit [Ping timeout: 255 seconds]
rednar has joined #ruby
chussenot has joined #ruby
undersc0re97 has quit [Quit: Leaving]
tealmage has quit [Ping timeout: 256 seconds]
nomenkun has joined #ruby
nomenkun_ has joined #ruby
Hanmac has quit [Ping timeout: 245 seconds]
nomenkun has quit [Read error: Connection reset by peer]
Hanmac2 has joined #ruby
Opettaja has quit [Quit: WeeChat 0.4.0]
gtuckerkellogg has joined #ruby
d11wtq has quit [Ping timeout: 256 seconds]
rburton- has quit [Quit: Linkinus - http://linkinus.com]
coderhut has joined #ruby
staafl_alt has quit [Read error: Connection reset by peer]
timmow_ has joined #ruby
LnL has joined #ruby
yxhuvud has joined #ruby
akhet has joined #ruby
akhet has joined #ruby
akhet has quit [Changing host]
yxhuvud2 has quit [Ping timeout: 252 seconds]
timmow_ has quit [Ping timeout: 252 seconds]
Assurbanipal has joined #ruby
eka has joined #ruby
beiter has joined #ruby
dhruvasagar has joined #ruby
coderhut has quit [Ping timeout: 245 seconds]
Chepra_ has joined #ruby
<krz> apeiros, what do you mean by "why do you access internal state which is not accessible from the outside"
girija has quit [Ping timeout: 264 seconds]
tomzx_mac has quit [Ping timeout: 256 seconds]
mneorr has quit [Remote host closed the connection]
maxmanders has joined #ruby
coderhut has joined #ruby
<Chepra_> Hey, can anyone help me with this segfault here: https://gist.github.com/bjoernhaeuser/3d7e50e3d5feb01295bc
strk has left #ruby [#ruby]
undersc0re97 has joined #ruby
JonnieCache has joined #ruby
jandres has joined #ruby
skroon_ is now known as skroon
robustus has quit [Ping timeout: 255 seconds]
codenapper has joined #ruby
netto has joined #ruby
robustus has joined #ruby
bradhe has joined #ruby
whowantstolivefo has quit [Ping timeout: 245 seconds]
robottinosino has joined #ruby
angusiguess has joined #ruby
vlad_starkov has joined #ruby
jlebrech has quit [Quit: Leaving]
girija has joined #ruby
baphled_ has joined #ruby
hmarr has joined #ruby
Assurbanipal has quit [Ping timeout: 245 seconds]
Axsuul has quit [Ping timeout: 240 seconds]
tesuki has joined #ruby
bradhe has quit [Ping timeout: 276 seconds]
20WAB9IOD has quit [Remote host closed the connection]
tevio has joined #ruby
Skofo has quit [Remote host closed the connection]
Assurbanipal has joined #ruby
vlad_sta_ has quit [Ping timeout: 248 seconds]
MisterPostIT has joined #ruby
dmiller has joined #ruby
angusiguess has quit [Ping timeout: 257 seconds]
wargasm has joined #ruby
<bnagy> Chepra_: did you follow the gem instructions and install the patched version of the C lib it links against?
mneorr has joined #ruby
<Chepra_> yes, I did
jandres has left #ruby ["ERC Version 5.3 (IRC client for Emacs)"]
kelabot has quit [Remote host closed the connection]
pietr0 has quit [Remote host closed the connection]
pietr0 has joined #ruby
gtuckerkellogg has quit [Ping timeout: 248 seconds]
<bnagy> ok then I'm out of ideas :) You probably need to ask the gem maintainer
<bnagy> it's not a ruby bug
dmiller has quit [Ping timeout: 264 seconds]
DefV has quit [Ping timeout: 248 seconds]
<Chepra_> ok, thanks
baphled_ has quit [Ping timeout: 252 seconds]
Jan_ has joined #ruby
Jan_ is now known as DefV
tealmage has joined #ruby
niklasb has joined #ruby
MrZYX|off is now known as MrZYX
tonini has quit [Remote host closed the connection]
emergion has joined #ruby
tealmage has quit [Ping timeout: 245 seconds]
baphled has joined #ruby
niceguyjames has quit [Quit: Computer has gone to sleep.]
dhruvasagar has quit [Ping timeout: 256 seconds]
dhruvasagar has joined #ruby
kelabot has joined #ruby
clocKwize has joined #ruby
idletom has quit [Ping timeout: 256 seconds]
baphled has quit [Ping timeout: 245 seconds]
timmow_ has joined #ruby
maxmanders has quit [Quit: Computer has gone to sleep.]
locriani_ has quit [Remote host closed the connection]
freeayu has quit [Ping timeout: 245 seconds]
yxhuvud2 has joined #ruby
emergion has quit [Quit: Computer has gone to sleep.]
gener1c has joined #ruby
timmow_ has quit [Ping timeout: 252 seconds]
yxhuvud has quit [Ping timeout: 256 seconds]
Chepra_ has quit [Quit: Chepra_]
beiter has quit [Quit: beiter]
freeayu has joined #ruby
dhruvasagar has quit [Read error: Connection reset by peer]
marcdel_ has quit []
rickmasta has quit [Quit: Leaving...]
Zai00 has joined #ruby
nari has quit [Ping timeout: 245 seconds]
Zai00 has quit [Client Quit]
teddyp1cker has joined #ruby
dhruvasagar has joined #ruby
daniel_- has quit [Quit: WeeChat 0.4.0]
jeffreylevesque_ has quit [Read error: Connection reset by peer]
jeffreylevesque has joined #ruby
tesuki has quit [Remote host closed the connection]
emergion has joined #ruby
ehellman has joined #ruby
hemanth has quit [Read error: Connection reset by peer]
security has joined #ruby
megha has quit [Ping timeout: 245 seconds]
backjlack has quit [Remote host closed the connection]
tonini has joined #ruby
backjlack has joined #ruby
security has quit [Excess Flood]
chussenot has quit [Ping timeout: 276 seconds]
vlad_sta_ has joined #ruby
timonv has quit [Ping timeout: 245 seconds]
security has joined #ruby
Astral__ has joined #ruby
robottinosino has quit [Quit: WeeChat 0.4.0]
cantonic has quit [Ping timeout: 272 seconds]
Astral__ has quit [Client Quit]
Spooner has joined #ruby
gyre007 has joined #ruby
gyre008 has joined #ruby
gyre008 has quit [Max SendQ exceeded]
LongLiveBacon has joined #ruby
chussenot has joined #ruby
timonv has joined #ruby
Astralum has joined #ruby
tonini has quit [Ping timeout: 248 seconds]
vlad_starkov has quit [Ping timeout: 245 seconds]
cantonic has joined #ruby
niklasb has quit [Ping timeout: 264 seconds]
enriclluelles has joined #ruby
robottinosino has joined #ruby
rakl has quit [Quit: sleeping]
swex has joined #ruby
ry4nn has quit [Remote host closed the connection]
robottinosino has quit [Client Quit]
ry4nn has joined #ruby
Astral_ has quit [Ping timeout: 264 seconds]
soc42 has joined #ruby
niceguyjames has joined #ruby
gyre008 has joined #ruby
ARCADIVS has quit [Quit: WeeChat 0.3.8]
gyre008 has quit [Max SendQ exceeded]
gyre008 has joined #ruby
chase-work has joined #ruby
robottinosino has joined #ruby
bradhe has joined #ruby
gener1c has quit [Ping timeout: 240 seconds]
jeebster has quit [Quit: Leaving.]
tonini has joined #ruby
bradhe has quit [Ping timeout: 245 seconds]
<martinklepsch> Having a Time object is there a way to shift it by one month similar to whats possible with << for Date?
passerine has left #ruby ["Ex-Chat"]
MrZYX is now known as MrZYX|off
dmiller has joined #ruby
timonv has quit [Ping timeout: 246 seconds]
sayan has joined #ruby
yasu has quit [Ping timeout: 256 seconds]
miso1337 has quit [Ping timeout: 246 seconds]
EvErLaSt has joined #ruby
techlife has quit [Ping timeout: 252 seconds]
coldie_ has joined #ruby
timonv has joined #ruby
slainer68 has quit [Read error: Connection reset by peer]
yasu has joined #ruby
cpruitt has quit [Read error: Connection reset by peer]
TheNixNinja has quit [Read error: Connection reset by peer]
pcarrier has quit [Quit: Computer has gone to sleep.]
slainer68 has joined #ruby
cpruitt has joined #ruby
dmiller has quit [Ping timeout: 264 seconds]
techlife has joined #ruby
techlife has quit [Max SendQ exceeded]
coldie has quit [Ping timeout: 256 seconds]
backjlack has quit [Remote host closed the connection]
techlife has joined #ruby
hiyakashi has joined #ruby
h0rnyFut has quit [Ping timeout: 248 seconds]
miso1337 has joined #ruby
tesuki has joined #ruby
mneorr has quit [Remote host closed the connection]
codenapper has quit [Quit: codenapper]
tealmage has joined #ruby
LnL has quit [Quit: LnL]
bijumon has joined #ruby
tesuki has quit [Remote host closed the connection]
tesuki has joined #ruby
adkron_ has joined #ruby
bulters has quit [Ping timeout: 255 seconds]
tonini has quit [Remote host closed the connection]
tealmage has quit [Ping timeout: 252 seconds]
a_a_g has quit [Quit: This computer has gone to sleep]
maxmanders has joined #ruby
LongLiveBacon has quit [Ping timeout: 240 seconds]
mneorr has joined #ruby
forlin has joined #ruby
adkron has quit [Ping timeout: 255 seconds]
tonini has joined #ruby
schickung has joined #ruby
bulters has joined #ruby
schickung has quit [Client Quit]
jnoob22 has joined #ruby
niklasb has joined #ruby
arturaz has quit [Ping timeout: 245 seconds]
sylvinus has quit [Quit: sylvinus]
Mon_Ouie has joined #ruby
davetherat has quit [Remote host closed the connection]
davetherat has joined #ruby
rippa has quit [Ping timeout: 240 seconds]
evenix has joined #ruby
miso1337 has quit [Quit: afk]
timmow_ has joined #ruby
dmiller has joined #ruby
yxhuvud has joined #ruby
tommyvyo has joined #ruby
iamvery has joined #ruby
yxhuvud2 has quit [Ping timeout: 264 seconds]
k610 has joined #ruby
timmow_ has quit [Ping timeout: 252 seconds]
gyre007_ has joined #ruby
gyre007_ has quit [Remote host closed the connection]
bluOxigen has quit [Ping timeout: 256 seconds]
dmiller has quit [Ping timeout: 245 seconds]
k611 has joined #ruby
arya has joined #ruby
maxmanders has quit [Quit: Computer has gone to sleep.]
iamvery has quit [Ping timeout: 252 seconds]
vlad_starkov has joined #ruby
swex_ has joined #ruby
gyre008 has quit [Ping timeout: 245 seconds]
swex has quit [Ping timeout: 245 seconds]
gyre007 has quit [Ping timeout: 252 seconds]
kelabot has quit [Ping timeout: 264 seconds]
browndawg has quit [Ping timeout: 245 seconds]
postmodern has quit [Quit: Leaving]
gyre007 has joined #ruby
gyre007 has quit [Max SendQ exceeded]
vlad_starkov has quit [Remote host closed the connection]
gyre007 has joined #ruby
vlad_sta_ has quit [Ping timeout: 245 seconds]
gyre007 has joined #ruby
vlad_starkov has joined #ruby
gyre008 has joined #ruby
gyre008 has quit [Max SendQ exceeded]
sylvinus has joined #ruby
wmoxam has joined #ruby
gyre008 has joined #ruby
mikecmpbll has joined #ruby
LongLiveBacon has joined #ruby
adkron has joined #ruby
ZuzzleBuzzer has joined #ruby
smiler has joined #ruby
adkron_ has quit [Ping timeout: 246 seconds]
niceguyjames has quit [Quit: Computer has gone to sleep.]
vlad_starkov has quit [Ping timeout: 264 seconds]
threesome has quit [Ping timeout: 245 seconds]
Domon has quit [Remote host closed the connection]
genta has quit [Read error: Connection reset by peer]
netto has quit [Quit: netto]
cmar has joined #ruby
genta has joined #ruby
netto has joined #ruby
thebastl has quit [Remote host closed the connection]
parallel211 has joined #ruby
backjlack has joined #ruby
kofno has joined #ruby
freeayu has quit [Ping timeout: 245 seconds]
backjlack has quit [Remote host closed the connection]
F1skr has joined #ruby
Zai00 has joined #ruby
tvw has joined #ruby
sleetdrop has quit [Ping timeout: 256 seconds]
LongLiveBacon has quit [Ping timeout: 264 seconds]
backjlack has joined #ruby
freeayu has joined #ruby
ehellman has quit []
parallel211 has left #ruby [#ruby]
bradhe has joined #ruby
pcarrier has joined #ruby
enriclluelles has quit [Remote host closed the connection]
hiyakashi has quit [Quit: お前は知りすぎた]
chussenot has quit [Quit: chussenot]
threesome has joined #ruby
<Spooner> martinklepsch, Use DateTime instead?
bradhe has quit [Ping timeout: 260 seconds]
<injekt> time + 2419200
pioz has joined #ruby
<injekt> but yeah I'd use DateTime too
<injekt> then you can do >> or << on the DateTime object, and do to_time to get your Time object back
oneirophren has joined #ruby
teddyp1cker has quit [Remote host closed the connection]
chase-work has quit [Quit: Computer has gone to sleep.]
pac1 has joined #ruby
gyre007 has quit [Remote host closed the connection]
gyre008 is now known as gyre007
Asher has quit [Read error: Connection reset by peer]
gyre007 has quit [Quit: Computer has gone to sleep.]
yshh has quit [Remote host closed the connection]
adkron_ has joined #ruby
dhruvasagar has quit [Ping timeout: 260 seconds]
tealmage has joined #ruby
spider-mario has joined #ruby
dhruvasagar has joined #ruby
JonnieCache has quit [Ping timeout: 245 seconds]
adkron has quit [Ping timeout: 264 seconds]
wmoxam has quit [Ping timeout: 264 seconds]
allanm has joined #ruby
perun0 has quit [Ping timeout: 256 seconds]
balishag has joined #ruby
tealmage has quit [Ping timeout: 248 seconds]
gyre007 has joined #ruby
gyre008 has joined #ruby
skattyadz has joined #ruby
netto_ has joined #ruby
netto has quit [Ping timeout: 252 seconds]
MisterPostIT has quit [Changing host]
MisterPostIT has joined #ruby
netto_ is now known as netto
subbyyy has joined #ruby
kelabot has joined #ruby
divout has quit [Remote host closed the connection]
coderhut has quit [Quit: Page closed]
Chepra_ has joined #ruby
browndawg has joined #ruby
bhaarat has joined #ruby
dooleyburger has joined #ruby
timmow_ has joined #ruby
yxhuvud2 has joined #ruby
perun0 has joined #ruby
thatRD has joined #ruby
r0bgleeson has joined #ruby
yxhuvud has quit [Ping timeout: 245 seconds]
soc42 has quit [Remote host closed the connection]
timmow_ has quit [Ping timeout: 252 seconds]
danneu has quit [Ping timeout: 245 seconds]
lmf40 has joined #ruby
mark_locklear has joined #ruby
tyl_ has joined #ruby
kornnflake has quit [Ping timeout: 264 seconds]
tyl has quit [Ping timeout: 255 seconds]
tyl_ is now known as tyl
netto has quit [Ping timeout: 260 seconds]
kornnflake has joined #ruby
netto has joined #ruby
centipedefarmer has joined #ruby
keymone has quit [Quit: keymone]
pac1 has quit [Quit: I got it one line of code at a time]
k610 has quit [Quit: Leaving]
tevio has quit [Remote host closed the connection]
JonnieCache has joined #ruby
krz has quit [Quit: krz]
LongLiveBacon has joined #ruby
<guardian> hello, I'm using builder to build my atom feed. how to prevent feed.title from being escaped?
<guardian> is there something less verbose than using << ?
ZuzzleBuzzer has quit [Quit: ZuzzleBuzzer]
pac1 has joined #ruby
niceguyjames has joined #ruby
pac1 has quit [Remote host closed the connection]
sayan has quit [Read error: Connection reset by peer]
cmyers_ has joined #ruby
dawkirst has quit [Ping timeout: 255 seconds]
xcv has joined #ruby
<cmyers_> so I have a class full of rspec tests (class FooTest < ActionController::IntegrationTest) where each test is named "test_blah". I want to take some subset of these tests, and run them twice with two different parameters (say, http and https). What is the best way to structure/refactor this?
<cmyers_> I was thinking I could rename teh methods to not start with test_, then make test_http and test_https that calls each appropriate test, is there some way to pass a list of function names to add them to the queue or something?
divout has joined #ruby
mercwithamouth has joined #ruby
mneorr has quit [Remote host closed the connection]
vlad_starkov has joined #ruby
slainer68 has quit [Read error: Connection reset by peer]
slainer68 has joined #ruby
LongLiveBacon has quit [Ping timeout: 255 seconds]
<JoeHazzers> how should i be structuring my classes (which use networking), so that they are easy to test?
sambao21 has joined #ruby
<bnagy> LOL
niklasb has quit [Ping timeout: 246 seconds]
mercwithamouth has quit [Ping timeout: 256 seconds]
tommyvyo has quit [Quit:]
vlad_starkov has quit [Read error: Connection reset by peer]
geekbri has joined #ruby
<cmar> JoeHazzers you want to encapsulate all the networking calls in a class, then you can mock that class in your tests
<JoeHazzers> okay
<cmar> JoeHazzers its best to avoid making actual network calls in the tests
<JoeHazzers> yeah, i was wondering how to go about emulating the network, though
xcv has quit [Remote host closed the connection]
<JoeHazzers> which i suppose i can do easily if i structure my app like that
bradhe has joined #ruby
xcv has joined #ruby
<cmar> JoeHazzers exactly, then if you want to write tests for the class that makes the network calls, you can use something like VCR
tommyvyo has joined #ruby
rlb3 has joined #ruby
Czupa has joined #ruby
beiter has joined #ruby
<cmyers_> JoeHazzers: if you are using any http client in ruby, see WebMock
<cmyers_> if not, try to do somethign similar using a generic mocking lib like Mocha
dawkirst has joined #ruby
<cmyers_> hmm, Looks like Test::Unit has testsuites that will let me do what I need to
ryannielson has joined #ruby
bradhe has quit [Ping timeout: 260 seconds]
sthetz has joined #ruby
skattyadz has quit [Quit: skattyadz]
kurk has joined #ruby
nickbuff has joined #ruby
tk has joined #ruby
Neandre has joined #ruby
tk is now known as Guest93367
<emergion> What do most people recommend when handling config files for their ruby applications ? I find Ruby misses the boat a little in that department ?
yalue has joined #ruby
v0n has joined #ruby
carloslopes has joined #ruby
<Banistergalaxy> Emergion ruby or yaml
<emergion> Banistergalaxy, yeah cool, seems like you have to do a fair bit of hacking though
jnoob22 has quit [Remote host closed the connection]
<Banistergalaxy> No..
jnoob22 has joined #ruby
NiteRain has quit [Ping timeout: 256 seconds]
tommyvyo has quit [Quit:]
niceguyjames has quit [Quit: Computer has gone to sleep.]
goganchic has joined #ruby
<emergion> Banistergalaxy, got an example ?
<Banistergalaxy> I'm on phone, at gym right now sry
pskosinski has joined #ruby
<cmyers_> isn't it just somethign like config_hash = YAML.parse(yml_file_path) to read it in, and File.open(...) {|f| f.write(config_hash.to_yml) } to write it out
Al___ has joined #ruby
<cmyers_> go read the rdocs for the YAML module
skattyadz has joined #ruby
tealmage has joined #ruby
<Mon_Ouie> How is it not just that?
jnoob22 has quit [Ping timeout: 245 seconds]
ZachBeta has quit [Quit: Computer has gone to sleep.]
<emergion> cmyers_, sure, that will give you a hash. But that's all. It becomes hopeless when you want to do things like have nested data and check if values exist IMO
<sthetz> I'm struggling with nokogiri segfaulting when parsing a lot of xml/html in many threads.Celluloid or native ruby threads — doesn't matter, segfaults anyway.
tealmage has quit [Read error: Connection reset by peer]
<Mon_Ouie> Oh, I misread that
<Mon_Ouie> emergion: You can have nested hashes, use Hash#has_key?, etc.
tealmage has joined #ruby
jnoob22 has joined #ruby
<emergion> Mon_Ouie, sure. But I would prefer my code is not littered with logic like that
subbyyy has quit [Quit: none 0.3.9.2]
<cmyers_> emergion: I use auto-vivifying hashes to make checking easier: http://stackoverflow.com/questions/1503671/ruby-hash-autovivification-facets
<emergion> Not saying that's ruby's fault though
<cmyers_> then I can just do config[:foo][:bar][:baz].nil?
genta has quit [Quit: Quit]
<emergion> It's my fault because I'm sure there is client ways to do it
fermion has joined #ruby
<cmyers_> of all the things ruby didn't take from perl, why, WHY not autovivification?
AndChat| has joined #ruby
<cmyers_> alternatively, you could use andand
hiyakashi has joined #ruby
ntzrmtthihu777 has joined #ruby
<emergion> I think it's just a little strange there is no kind of python config parser style class built in
<ntzrmtthihu777> can anyone suggest a good ide for ruby? I hear netbeans is pretty good
<emergion> I've looked at heaps of gems to see how it was done and everyone has their own way.
genta has joined #ruby
<ntzrmtthihu777> I'm using ubuntu 12.04
<emergion> ntzrmtthihu777, learn vim with plugins :)
<emergion> when you get efficient with it, nothing is better IMO
<ntzrmtthihu777> vim eh? I've seen that name before....
Banistergalaxy has quit [Ping timeout: 276 seconds]
Gues_____ has joined #ruby
sailias has joined #ruby
Gues_____ is now known as Guest18369
<emergion> ntzrmtthihu777 check this out
<emergion> a mate at work likes that
jprovazn has quit [Quit: Leaving]
danneu has joined #ruby
dhruvasagar has quit [Ping timeout: 240 seconds]
Uranio has joined #ruby
kurk has quit [Changing host]
kurk has joined #ruby
<emergion> ntzrmtthihu777, this is cool also http://yoursachet.com/
<ntzrmtthihu777> oh wow, that's pretty nifty.
yshh has joined #ruby
<Hanmac2> ntzrmtthihu777: i heard you plan to make an rpg maker right? :P
<ntzrmtthihu777> Hanmac2: no plan: http://www.youtube.com/watch?v=Rn6ADncplJQ
angusiguess has joined #ruby
<Hanmac2> ntzrmtthihu777: hui ... does it work without rgss or does you still use it?
<ntzrmtthihu777> that's pure ruby and the rubysdl gem
<sthetz> hui?
<Hanmac2> EXTREME NICE!!! ... i and some others plan an entire new maker (that means 100% new game code) ... maybe you want to join sometime
invisime has joined #ruby
<ntzrmtthihu777> Yeah, same here.
johnnygoodmancpa has joined #ruby
johnnygoodmancpa has quit [Client Quit]
goganchic has quit []
AndChat| has quit [Quit: Bye]
NimeshNeema has quit [Ping timeout: 264 seconds]
wallerdev has joined #ruby
idkazuma has joined #ruby
kurk is now known as sambio
sailias has quit [Ping timeout: 256 seconds]
<Hanmac2> ntzrmtthihu777: #openrubyrmk is the channel ... but currently the bigboss is not online ... http://devel.pegasus-alpha.eu/projects/openrubyrmk is the project page and https://github.com/OpenRubyRMK/ are the repositories ...
veinofstars has joined #ruby
<Hanmac2> ntzrmtthihu777: did you use some toolkit for the ingame gui?
yshh has quit [Ping timeout: 256 seconds]
<ntzrmtthihu777> hmm? what you mean?
generalissimo has joined #ruby
mayankkohaley has quit [Ping timeout: 252 seconds]
mneorr has joined #ruby
timmow_ has joined #ruby
yxhuvud has joined #ruby
<Hanmac2> ntzrmtthihu777: in our project i want to use something like that http://www.cegui.org.uk/wiki for ingame gui
basex has joined #ruby
wmoxam has joined #ruby
Jalada is now known as Pxibot
NimeshNeema has joined #ruby
Pxibot is now known as Jalada
Xeago has joined #ruby
yxhuvud2 has quit [Ping timeout: 264 seconds]
<ntzrmtthihu777> Hanmac2: the in-game gui is based off of "window skins", a png file containing 1. the fill color of the window 2. the border style. 3. a highlight cursor, and 4. a host of odds and ends arrows and such. these are layed out in a standard manner and stretched & tiled as needed.
jeffreylevesque_ has joined #ruby
yekta has joined #ruby
<Hanmac2> ntzrmtthihu777: yeah its because yours copies the older enterbrain makers .. for our project i plan an total rebirth
hasse has joined #ruby
timmow_ has quit [Ping timeout: 252 seconds]
hmarr has quit [Ping timeout: 252 seconds]
<ntzrmtthihu777> *shrug* I'm making this for the community I'm part of. I want it to be familiar, but more powerful and flexible.
<hasse> I'm using the 'pg' lib. Is there a way to see the query that is actually executed? Can't find a logger.
whowantstolivefo has joined #ruby
hmarr has joined #ruby
danneu has quit [Ping timeout: 252 seconds]
jeffreylevesque has quit [Ping timeout: 264 seconds]
Gwyxx has quit [Quit: Leaving]
<Hanmac2> currently ours are familar too, so you have Actors and Enemies, but you have more fun inside like passive abilities or other funny things like enemies can hold equipment too
LnL has joined #ruby
<ntzrmtthihu777> Hanmac2: quite frankly I'm not just cloning XP.
browndawg has quit [Ping timeout: 245 seconds]
chussenot has joined #ruby
tealmage has quit [Remote host closed the connection]
<Hanmac2> you can show me some code if you want ;P
Hanmac has joined #ruby
<ntzrmtthihu777> bleh, its nothing fancy. I'm just working on creating the "blank game", then I'll build the editor around it.
ixti has joined #ruby
Hanmac1 has quit [Ping timeout: 245 seconds]
niceguyjames has joined #ruby
ekampf has quit [Quit: ekampf]
mikecmpbll has quit [Quit: ["Textual IRC Client: www.textualapp.com"]]
<Hanmac2> we did the other way areound, some features of the editor, like the map is working, but the game is not finish yet (currently i write on a new script engine )
DonRichie has quit [Ping timeout: 256 seconds]
browndawg has joined #ruby
<ntzrmtthihu777> heh. I've been pulling resources from the community, polls and such
DonRichie has joined #ruby
<ntzrmtthihu777> finding out what is needed & wanted by the community.
hogeo has quit [Remote host closed the connection]
<Hanmac2> we will see, maybe you wants to join us with our project later ...
enriclluelles has joined #ruby
jerius has joined #ruby
<ntzrmtthihu777> I don't think we're heading in the same direction.
ekampf has joined #ruby
<ntzrmtthihu777> enterbrain already stole from our sdk code :/
gyre008 has quit [Quit: Textual IRC Client: www.textualapp.com]
wesside has joined #ruby
kofno has quit [Remote host closed the connection]
sailias has joined #ruby
vlad_starkov has joined #ruby
iamvery has joined #ruby
<Hanmac2> löl
<ntzrmtthihu777> folk put alot of work into the RPG Maker XP sdk, then they release XV with the exact same code :/
nezumi has quit [Ping timeout: 245 seconds]
jonathanwallace has quit [Quit: WeeChat 0.3.9.2]
wolcanus has joined #ruby
wolcanus has quit [Remote host closed the connection]
Scriptor has joined #ruby
tommyvyo has joined #ruby
akemrir has joined #ruby
<ntzrmtthihu777> *shrug* oh well. full circle it came, and here I am working on this :P
<Hanmac2> ntzrmtthihu777: with the exact same errors too? (i remember that vx and ace had some bugs inside the scripts part)
wolcanus has joined #ruby
akemrir has quit [Client Quit]
ekampf has quit [Ping timeout: 240 seconds]
<ntzrmtthihu777> exact same errors in vx or in my project?
akemrir has joined #ruby
jtharris has joined #ruby
<Hanmac2> no i mean that if enterbrain stoles your code, does it stole your possible errors too? ;P
tevio has joined #ruby
<ntzrmtthihu777> lol, not my code, the community's. before my joining.
<ntzrmtthihu777> interesting concept, I'll ask one of the old timers about it next time they are in channel
v0n has quit [Ping timeout: 245 seconds]
ananthakumaran has quit [Quit: Leaving.]
bhaarat has quit [Quit: bhaarat]
chussenot has quit [Quit: chussenot]
<Hanmac2> ntzrmtthihu777: i will show you more of our project ... when there is more to shown ... like i said i am currently at the scripting part .. and i mean this part that does not use gui
kofno has joined #ruby
AxonetBE has joined #ruby
mercwithamouth has joined #ruby
<AxonetBE> If this are my arrays, how can I get the points out of it? http://pastie.org/7643894
ariedler has joined #ruby
<cmyers_> goddamnit, I just spent 30 minutes starting at my test wondering why the fuck it wasn't making the call it was supposed to
<cmyers_> then I realized I wrote the caching TOO good
cmarques has joined #ruby
solidoodlesuppor has joined #ruby
<cmyers_> and this behavior was intentional =|
tonini has quit [Remote host closed the connection]
codecop has quit [Read error: Connection reset by peer]
<ntzrmtthihu777> cmyers_: always sucks when you're better than you think you are XD
d11wtq has joined #ruby
niklasb has joined #ruby
jgarvey has joined #ruby
camilasan has quit [Remote host closed the connection]
sambao21 has quit [Quit: Computer has gone to sleep.]
hasse has quit [Ping timeout: 245 seconds]
chussenot has joined #ruby
chrisja has joined #ruby
arya_ has joined #ruby
puppeh has quit [Remote host closed the connection]
bradhe has joined #ruby
tonini has joined #ruby
quazimodo has quit [Ping timeout: 245 seconds]
uris has joined #ruby
newUser1234 has joined #ruby
dallasm has joined #ruby
thone_ has joined #ruby
thone has quit [Read error: Operation timed out]
arya has quit [Ping timeout: 276 seconds]
newUser1234 has quit [Remote host closed the connection]
hiyakashi has quit [Quit: お前は知りすぎた]
acrussell has joined #ruby
catphish has joined #ruby
catphish has quit [Changing host]
catphish has joined #ruby
bradhe has quit [Ping timeout: 264 seconds]
skattyadz has quit [Quit: skattyadz]
<catphish> what is the best way to embed UTF8 strings in ascii ruby code?
Hanmac1 has joined #ruby
<catphish> currently I am doing (as an example) "Respuesta autom\u00E1tica".force_encoding('UTF-8')
Czupa has quit [Remote host closed the connection]
Hanmac has quit [Ping timeout: 245 seconds]
Hanmac2 is now known as Hanmac
Mattx has quit [Ping timeout: 245 seconds]
mellow880 has joined #ruby
mneorr has quit [Read error: Connection reset by peer]
mneorr_ has joined #ruby
elux has joined #ruby
skattyadz has joined #ruby
skattyadz has quit [Client Quit]
<mellow880> hi
<mellow880> if I create two threads one after the other, the second one does not start
Morkel has quit [Quit: Morkel]
<mellow880> anyone knows why?
gyre007 has quit [Remote host closed the connection]
<mellow880> like Thread.new(func1()) Thread.new(func2()) , func2 won't start
elux has quit [Remote host closed the connection]
gyre007 has joined #ruby
security is now known as megha
unflores has joined #ruby
techlife has quit [Ping timeout: 276 seconds]
<netto> i have some data in html format, but now I'm only accepting plain text in my textarea, the problem is: how do I do when update a record that have html? I can strip_tags but I'd like to know if exist a way to keep some formats, like line breaks.
CaptainKnots has quit [Quit: bazinga!]
dallasm has quit [Remote host closed the connection]
dallasm has joined #ruby
cody--1 has joined #ruby
cody--1 has left #ruby [#ruby]
<netto> can someone help me?
<catphish> mellow880: i normally start threds with a block like this: Thread.new {some_instance.do_something}
techlife has joined #ruby
<ericwood> I encountered this exact problem recently...
techlife has quit [Max SendQ exceeded]
Criztian has quit [Remote host closed the connection]
<ericwood> netto: I couldn't find a reliable way...
<netto> ;/
rdark has quit [Quit: Lost terminal]
<waxjar_> net to just store the text in your database like that, but when displaying it convert characters to html entities
<catphish> netto: sounds like a framework question
_cupnoodles has joined #ruby
<netto> i'm searching, but it's dificult
techlife has joined #ruby
techlife has quit [Max SendQ exceeded]
<catphish> netto: are you using some framework?
sambao21 has joined #ruby
<netto> rails
<ericwood> nokogiri will help, but you want to convert <br> and <p>s to whitespace
rdark has joined #ruby
<catphish> netto: then ask in #rubyonrails
<waxjar_> there's probably something in your template engine that'll take care of it. if not check out CGI in the std lib, it can escape and unescape HTML
<catphish> they will know better
<netto> maybe sanitize
techlife has joined #ruby
techlife has quit [Max SendQ exceeded]
<ericwood> sanitize won't do what you want
<netto> ok, thank you guys
<akhet> np
<ericwood> you can strip all tags and crap, but you won't get the linebreaks you want other than the ones that are already there
<netto> ericwood: why?
<ericwood> because
<catphish> also, it doesn't make sense to store formatted data, usually better to format it when you print it
<ericwood> that's how it is
techlife has joined #ruby
techlife has quit [Max SendQ exceeded]
lex_ has joined #ruby
<lex_> hello
arya_ has quit [Ping timeout: 248 seconds]
<ericwood> catphish: WYSIWYG editors are the issue
<lex_> can someone explain what "<% if something -%>" means? if some variable = true?
<ericwood> they generate markup
`brendan has joined #ruby
techlife has joined #ruby
techlife has quit [Max SendQ exceeded]
<catphish> ok, so just store what they generate?
<ericwood> lex_: it's just an if statement, but embedded in erb
emergion has quit [Quit: Computer has gone to sleep.]
<ericwood> netto: that regex isn't as reliable as you might think
<lex_> ericwood, what's that "-%>"
<lex_> ?
<ericwood> the same thing as %>
techlife has joined #ruby
techlife has quit [Max SendQ exceeded]
<lex_> ah
cibs_ has joined #ruby
<lex_> thanks then
<ericwood> sure thing
<catphish> i believe it stops a newline being generated
puppeh has joined #ruby
heliumsocket has joined #ruby
<catphish> in erb
<ericwood> ah yeah
puppeh has quit [Remote host closed the connection]
techlife has joined #ruby
puppeh has joined #ruby
techlife has quit [Max SendQ exceeded]
yshh has joined #ruby
techlife has joined #ruby
techlife has quit [Max SendQ exceeded]
techlife has joined #ruby
techlife has quit [Max SendQ exceeded]
davetherat has quit [Remote host closed the connection]
<netto> ericwood: so what you suggest me. maybe leave the html tags like plain text showing to the user?
davetherat has joined #ruby
kelabot has quit [Ping timeout: 256 seconds]
<ericwood> just try out the answer from that stackoverflow question
techlife has joined #ruby
techlife has quit [Max SendQ exceeded]
<ericwood> my needs were different since we had more arbitrary markup shenanigans
justsee has quit [Ping timeout: 245 seconds]
techlife has joined #ruby
yshh has quit [Read error: Connection reset by peer]
yshh has joined #ruby
thams has joined #ruby
bradhe has joined #ruby
cibs has quit [Ping timeout: 256 seconds]
mikemac has joined #ruby
girija has quit [Ping timeout: 245 seconds]
anderson has quit [Ping timeout: 245 seconds]
psyprus has quit [Read error: Connection reset by peer]
psyprus has joined #ruby
crazymykl has quit [Read error: Connection reset by peer]
kelabot has joined #ruby
cibs has joined #ruby
cibs_ has quit [Ping timeout: 256 seconds]
arya has joined #ruby
chrishunt has quit [Quit: ZzZzZz...]
fmhr_ has joined #ruby
chrishunt has joined #ruby
mellow880 has quit [Quit: http://www.kiwiirc.com/ - A hand-crafted IRC client]
techlife has quit [K-Lined]
netto has quit [Ping timeout: 252 seconds]
maycon has quit [Quit: Saindo]
Chepra_ has quit [Ping timeout: 264 seconds]
Mattx has joined #ruby
dawkirst has quit [Ping timeout: 245 seconds]
clocKwize has quit [Quit: clocKwize]
andikr has quit [Remote host closed the connection]
ekampf has joined #ruby
ph^ has quit [Ping timeout: 252 seconds]
LongLiveBacon has joined #ruby
fmhr_ has quit [Quit: fmhr_]
freakazoid0223 has joined #ruby
interactionjaxsn has joined #ruby
Scriptor has quit [Ping timeout: 245 seconds]
nari has joined #ruby
Criztian has joined #ruby
julian-delphiki has quit [Quit: Leaving]
theRoUS_ has joined #ruby
yxhuvud2 has joined #ruby
cibs_ has joined #ruby
anderson has joined #ruby
clocKwize has joined #ruby
Mattx has quit [Remote host closed the connection]
cody--4 has joined #ruby
yxhuvud has quit [Ping timeout: 245 seconds]
martinklepsch has quit [Read error: Connection reset by peer]
Hanmac2 has joined #ruby
mklappstuhl has quit [Read error: Connection reset by peer]
cody--4 has quit [Client Quit]
cibs has quit [Ping timeout: 256 seconds]
skroon has quit [Quit: leaving]
ioNull has quit [Quit: Computer has gone to sleep.]
Hanmac1 has quit [Ping timeout: 264 seconds]
nari has quit [Ping timeout: 245 seconds]
akemrir has quit [Ping timeout: 245 seconds]
vlad_sta_ has joined #ruby
vlad_sta_ has quit [Remote host closed the connection]
cibs has joined #ruby
adamjleonard has joined #ruby
vlad_sta_ has joined #ruby
hmarr has quit []
<EvErLaSt> what is the best way to test for if a variable has been set defined?(var) || var.nil || var == nil ?
netto has joined #ruby
<netto> ericwood: this way is ok: .gsub(/\n/,"\n").gsub("<br>",""), :tags => ['br']
k612 has joined #ruby
cibs_ has quit [Ping timeout: 256 seconds]
locriani has joined #ruby
<netto> erichmenge: but how I integrate this with my text_area: <%= text_area :message, :description %>
<netto> ericwood: but how I integrate this with my text_area: <%= text_area :message, :description %>
clocKwize has quit [Quit: clocKwize]
anderson has quit [Ping timeout: 272 seconds]
vlad_starkov has quit [Ping timeout: 245 seconds]
frem has joined #ruby
frem has quit [Max SendQ exceeded]
dawkirst has joined #ruby
io_syl has joined #ruby
lethjakm1 has quit [Ping timeout: 252 seconds]
johnnyfuchs has joined #ruby
RORgasm has quit [Read error: Connection reset by peer]
k611 has quit [Ping timeout: 260 seconds]
RORgasm has joined #ruby
ekampf has quit [Ping timeout: 260 seconds]
mklappstuhl has joined #ruby
sickn3ss has joined #ruby
MisterPostIT has quit []
freeayu has quit [Remote host closed the connection]
ekampf has joined #ruby
huoxito has joined #ruby
r0bgleeson has quit [Quit: WeeChat 0.3.8]
r0bgleeson has joined #ruby
etcetera has joined #ruby
mayankkohaley has joined #ruby
emergion has joined #ruby
jlast has joined #ruby
ekampf has quit [Client Quit]
wesside has quit [Quit: Computer has gone to sleep.]
<ericwood> I don't understand
cantonic has quit [Quit: cantonic]
thatRD has quit [Quit: thatRD]
martinklepsch has joined #ruby
arya has quit [Ping timeout: 248 seconds]
pioz has quit [Quit: This computer has gone to sleep]
arya has joined #ruby
ekampf has joined #ruby
sickn3ss has left #ruby ["ph333r"]
veinofstars has quit [Quit: veinofstars]
sickn3ss has joined #ruby
<sickn3ss> Anyone have any good documentation or links on how you can spoof the source address in a SNMP packet using the Ruby snmp lib ?
RagingDave has joined #ruby
sthetz has left #ruby [#ruby]
syamajala has joined #ruby
tagrudev has quit [Remote host closed the connection]
akashj87 has joined #ruby
Banistergalaxy has joined #ruby
enebo has joined #ruby
wesside has joined #ruby
ioNull has joined #ruby
bean has joined #ruby
dhruvasagar has joined #ruby
SCommette has joined #ruby
v0n has joined #ruby
newUser1234 has joined #ruby
aganov has quit [Remote host closed the connection]
ph^ has joined #ruby
frem has joined #ruby
frem has quit [Max SendQ exceeded]
tonini has quit [Remote host closed the connection]
frem has joined #ruby
chandankumar has joined #ruby
etcetera has quit []
puppeh has quit [Quit: bb]
Hanmac1 has joined #ruby
Davey has joined #ruby
wagster has joined #ruby
danneu has joined #ruby
elux has joined #ruby
tvw has quit [Read error: Connection reset by peer]
Hanmac2 has quit [Ping timeout: 276 seconds]
drizz_ has quit [Quit: Reconnecting]
drizz has joined #ruby
io_syl has quit [Quit: Computer has gone to sleep.]
pioz has joined #ruby
bhaarat has joined #ruby
mikepack has joined #ruby
locriani has quit [Remote host closed the connection]
MrZYX|off is now known as MrZYX
sambao21 has quit [Quit: Computer has gone to sleep.]
polymar has quit [Remote host closed the connection]
netto_ has joined #ruby
braoru has quit [Remote host closed the connection]
chussenot has quit [Quit: chussenot]
gaahrdner has joined #ruby
netto has quit [Ping timeout: 272 seconds]
netto_ is now known as netto
etcetera has joined #ruby
Gabri has joined #ruby
nezumi has joined #ruby
mneorr_ has quit [Remote host closed the connection]
netto has quit [Quit: netto]
chandankumar has quit [Quit: Leaving]
kreantos has quit [Remote host closed the connection]
sayan has joined #ruby
mythical has joined #ruby
niceguyjames has quit [Quit: Textual IRC Client: www.textualapp.com]
mythical has quit [Client Quit]
kpshek has joined #ruby
arya__ has joined #ruby
etcetera has quit [Ping timeout: 258 seconds]
sayan has quit [Ping timeout: 256 seconds]
chandankumar has joined #ruby
adkron has joined #ruby
hmarr has joined #ruby
threesome has quit [Ping timeout: 264 seconds]
niceguyjames has joined #ruby
iamvery has quit [Remote host closed the connection]
oneirophren has quit [Ping timeout: 256 seconds]
arya has quit [Ping timeout: 264 seconds]
vlad_starkov has joined #ruby
arya has joined #ruby
etcetera has joined #ruby
veinofstars has joined #ruby
Guest18369 has quit [Quit: Textual IRC Client: http://www.textualapp.com/]
yfeldblum has joined #ruby
GeissT_ has quit [Quit: MillBroChat AdIRC User]
iamvery has joined #ruby
adkron_ has quit [Ping timeout: 252 seconds]
arya__ has quit [Ping timeout: 248 seconds]
veinofstars has quit [Read error: Connection reset by peer]
chussenot has joined #ruby
veinofstars has joined #ruby
<martinklepsch> Spooner, injekt: went with + 1.month (rails env)
<martinklepsch> This returns a very "nested" array although I'd like to get an array like [[group1] [group2] ...]
vlad_sta_ has quit [Ping timeout: 256 seconds]
_nitti has joined #ruby
v0n has quit [Quit: WeeChat 0.4.0]
<martinklepsch> Right now it's like [[group1] [[group2] [[group3]]]]
v0n has joined #ruby
<MrZYX> .map(&:flatten) ?
Hanmac2 has joined #ruby
sleetdrop has joined #ruby
<martinklepsch> it's caused by the recursion in relative_date_partitioning
dooleyburger has quit [Ping timeout: 240 seconds]
etcetera has quit []
dooleyburger has joined #ruby
momomomomo has joined #ruby
Hanmac1 has quit [Ping timeout: 255 seconds]
<martinklepsch> MrZYX: This would completely flatten all the arrays in the parent array of the second group
<momomomomo> Mornin'
dr_bob1 has joined #ruby
yxhuvud has joined #ruby
<Spooner> martinklepsch, You can use current, rest = data.partition {...}
oneirophren has joined #ruby
razibog has quit [Ping timeout: 255 seconds]
<martinklepsch> Spooner: thats good to know, I already thought that there is probably a better way than using select
dr_bob has quit [Ping timeout: 245 seconds]
vikhyat has joined #ruby
LaPetiteFromage has joined #ruby
BizarreCake has joined #ruby
dr_bob1 has quit [Read error: Connection reset by peer]
whitedawg has joined #ruby
whitedawg has quit [Max SendQ exceeded]
<martinklepsch> Spooner: this wouldn't fix the other problem though right?
yekta has quit [Quit: yekta]
ananthakumaran has joined #ruby
whitedawg has joined #ruby
whitedawg has quit [Max SendQ exceeded]
vikhyat has quit [Remote host closed the connection]
whitedawg has joined #ruby
dooleyburger has quit [Client Quit]
yxhuvud2 has quit [Ping timeout: 256 seconds]
whitedawg has quit [Max SendQ exceeded]
<Spooner> No, it would operate identically to what you have now.
mikecmpbll has joined #ruby
_nitti has quit [Remote host closed the connection]
whitedawg has joined #ruby
whitedawg has quit [Max SendQ exceeded]
threesome has joined #ruby
sickn3ss has left #ruby ["ph333r"]
chandankumar has quit [Ping timeout: 276 seconds]
_nitti has joined #ruby
fermion has quit [Quit: Computer has gone to sleep.]
swex_ has quit [Ping timeout: 245 seconds]
whitedawg has joined #ruby
<martinklepsch> return [current_partition] << relative_date_partitioning(first_date - 1.month, rest)
<martinklepsch> this could work, eh?
<Spooner> Yes, that ;)
<Spooner> I was just typing it out.
fermion has joined #ruby
vikhyat has joined #ruby
sayan has joined #ruby
<Spooner> Though don't put a current_partition in an array, since it already is one.
vikhyat_ has joined #ruby
skroon has joined #ruby
<martinklepsch> Spooner: yeah but I want the array with the partitioned dates in a parent array that is returned by the function
_nitti_ has joined #ruby
locriani has joined #ruby
<martinklepsch> Ooops. Stacklevel too deep.
<Spooner> Your meaning isn't obvious.
vikhyat_ has quit [Remote host closed the connection]
<martinklepsch> Spooner: what do you mean?
* martinklepsch isn't a native speace
* martinklepsch isn't a native speaker
<Spooner> I don't know what you want structure you actually want in the end.
<Spooner> Only that what you have now is wrong.
chandankumar has joined #ruby
JohnBat26 has quit [Quit: KVIrc 4.3.1 Aria http://www.kvirc.net/]
tesuki_ has joined #ruby
_nitti_ has quit [Remote host closed the connection]
danneu has quit [Quit: WeeChat 0.3.8]
<martinklepsch> Spooner: I want something like this [[group, of, dates] [second, group, of, dates] ...]
_nitti has quit [Read error: Connection reset by peer]
_nitti has joined #ruby
sambao21 has joined #ruby
dooleyburger has joined #ruby
ckrailo has joined #ruby
vikhyat has quit [Ping timeout: 272 seconds]
dooleyburger has quit [Max SendQ exceeded]
dooleyburger has joined #ruby
<Spooner> Right, then you want concat, I think. return [current_partition].concat(relative_date_partitioning(first_date - 1.month, rest))
vlad_sta_ has joined #ruby
vlad_sta_ has quit [Remote host closed the connection]
vlad_sta_ has joined #ruby
tylersmith has joined #ruby
tesuki has quit [Ping timeout: 256 seconds]
<Spooner> (though this is Ruby, so explicit return makes kittens cry).
yottabit has joined #ruby
<martinklepsch> Spooner: didn't know that :)
<Spooner> And "return" is the same as "return nil"
bradhe has quit [Remote host closed the connection]
<martinklepsch> poor kittens looking at my code then
_nitti has quit [Read error: Connection reset by peer]
_nitti has joined #ruby
locriani has quit [Remote host closed the connection]
<momomomomo> martinklepsch: explicit returns are OK if you need them, but usually there's a way around it
<momomomomo> martinklepsch: check the methods available here http://ruby-doc.org/core-2.0/Array.html
<Spooner> Yes, kittens spend most of their time browsing gists.
threesome has quit [Ping timeout: 240 seconds]
<Spooner> Yes, in the guard condition, explicit return is fine. However, on the last line, it is redundant.
quazimodo has joined #ruby
NiteRain has joined #ruby
<martinklepsch> Spooner: I see. Thanks, I always appreciate that kind of input :)
locriani has joined #ruby
camilasan has joined #ruby
vlad_starkov has quit [Ping timeout: 272 seconds]
swex has joined #ruby
alup has quit [Quit: Leaving]
tylersmith has quit [Client Quit]
heath has joined #ruby
_nitti_ has joined #ruby
yottabit has quit [Client Quit]
wolcanus has quit [Remote host closed the connection]
Criztian has quit [Remote host closed the connection]
dr_bob has joined #ruby
nickbuff has quit [Quit: Linkinus - http://linkinus.com]
_nitti has quit [Ping timeout: 256 seconds]
seanwash has joined #ruby
hakunin has quit [Remote host closed the connection]
k612 has quit [Ping timeout: 256 seconds]
hakunin has joined #ruby
niklasb has quit [Ping timeout: 252 seconds]
Gabri has quit [Remote host closed the connection]
tesuki_ has quit [Remote host closed the connection]
mercwithamouth has quit [Ping timeout: 255 seconds]
pioz has quit [Quit: This computer has gone to sleep]
lethjakm1 has joined #ruby
momomomomo_ has joined #ruby
sambao21 has quit [Quit: Computer has gone to sleep.]
syamajala has quit [Quit: leaving]
momomomomo has quit [Ping timeout: 264 seconds]
momomomomo_ is now known as momomomomo
bulters has quit [Quit: leaving]
soulofpeace has joined #ruby
chussenot has quit [Quit: chussenot]
vikhyat has joined #ruby
jonathanwallace has joined #ruby
kelabot has quit [Remote host closed the connection]
tomsthumb has quit [Quit: Leaving.]
buibex has joined #ruby
mando has joined #ruby
akashj87 has quit [Ping timeout: 240 seconds]
chussenot has joined #ruby
franks2 has quit [Ping timeout: 252 seconds]
<martinklepsch> Spooner, momomomomo: pretty confident about this solution now, any other improvements in mind? :) https://gist.github.com/mklappstuhl/ce7e95fa2d123e720cbb
nanothief has joined #ruby
wagster has quit [Ping timeout: 252 seconds]
<momomomomo> martinklepsch: instead of return, check out: http://www.ruby-doc.org/docs/ProgrammingRuby/html/tut_expressions.html#UH
heliumsocket has quit [Quit: heliumsocket]
tylersmith has joined #ruby
wagster has joined #ruby
banjara has quit [Quit: Leaving.]
<martinklepsch> momomomomo: I know about conditionals but I like my version more personally -- is the style I used considered bad in ruby?
sambao21 has joined #ruby
heliumsocket has joined #ruby
Amnesthesia has joined #ruby
franks2 has joined #ruby
Amnesthesia has quit [Remote host closed the connection]
girija has joined #ruby
adamjleonard has quit [Quit: Leaving...]
heliumsocket has quit [Client Quit]
baroquebobcat has joined #ruby
jlast has quit [Read error: Connection reset by peer]
<martinklepsch> momomomomo: I guess I picked that up from some functional languages I used
Neomex has joined #ruby
Neomex has quit [Client Quit]
jlast has joined #ruby
<momomomomo> that's fine, most people here don't only use ruby, http://stackoverflow.com/questions/1023146/is-it-good-style-to-explicitly-return-in-ruby
enriclluelles has quit [Read error: Connection reset by peer]
enriclluelles has joined #ruby
<r0bgleeson> martinklepsch: dont worry about, it makes more sense to return early in some cases
<r0bgleeson> martinklepsch: big ruby projects like rubinius do it all over the place
<r0bgleeson> sometimes it simply makes more sense
<hoelzro> wooo! ack2 is out!
Axsuul has joined #ruby
<r0bgleeson> martinklepsch: but if you dont need to return early there's no need to use return, so it's being used right
cmar has left #ruby ["Textual IRC Client: http://www.textualapp.com/"]
swex_ has joined #ruby
jamie_ca_ has joined #ruby
<Hanmac> i use the return keyword if it does make sense
swex has quit [Ping timeout: 264 seconds]
wolcanus has joined #ruby
tootubular has joined #ruby
sleetdrop has quit [Quit: Textual IRC Client: www.textualapp.com]
BizarreCake has quit [Quit: Leaving]
angusiguess has quit [Ping timeout: 245 seconds]
bradhe has joined #ruby
Banistergalaxy has quit [Ping timeout: 272 seconds]
jbueza has joined #ruby
skattyadz has joined #ruby
danslo has joined #ruby
ekampf has quit [Quit: ekampf]
carloslopes has quit [Remote host closed the connection]
<smiler> I've found a breaking change in ruby 2.0s mkmf makefile generator. When using create_makefile('foo/foo') to get an external lib file foo.so to be put into lib/foo/foo.so it will actually put the binary into lib and be named foo if the gems lib directory doesn't already have that foo directory for some other reason. Anyone know about a workaround for this.?
Assurbanipal has quit [Remote host closed the connection]
Voodoofish430 has joined #ruby
Banistergalaxy has joined #ruby
<smiler> Placing a dummy file into lib/foo and including it in the gemspec is one workaround that works
banjara has joined #ruby
tesuki has joined #ruby
lukeholder has joined #ruby
wolcanus has quit [Ping timeout: 252 seconds]
adamjleonard has joined #ruby
jblack has joined #ruby
iamjarvo has joined #ruby
<iamjarvo> is there an end of life policy somewhere?
retry has joined #ruby
<iamjarvo> basically i want to read what the end of life means
theRoUS_ has quit [Changing host]
theRoUS_ has joined #ruby
theRoUS has quit [Disconnected by services]
theRoUS_ is now known as theRoUS
skattyadz has quit [Read error: Connection reset by peer]
theRoUS_ has joined #ruby
Vainoharhainen has quit [Quit: Leaving...]
<iamjarvo> found a snippet
<iamjarvo> thank you
momomomomo has quit [Ping timeout: 264 seconds]
mellow888 has joined #ruby
tesuki has quit [Remote host closed the connection]
<mellow888> hi
<mellow888> anyone experienced with threads?
dhruvasagar has quit [Ping timeout: 255 seconds]
sambao21 has quit [Quit: Computer has gone to sleep.]
mattbl has joined #ruby
pdswan has quit [Quit: pdswan]
pdswan has joined #ruby
yxhuvud2 has joined #ruby
heliumsocket has joined #ruby
mityaz has joined #ruby
ariedler has quit [Remote host closed the connection]
axl_ has joined #ruby
ariedler has joined #ruby
asym has joined #ruby
yxhuvud has quit [Ping timeout: 258 seconds]
Rym has quit [Quit: Rym]
miso1337 has joined #ruby
sambao21 has joined #ruby
arya__ has joined #ruby
filipe has quit [Remote host closed the connection]
Czupa has joined #ruby
<mellow888> ?
anderson has joined #ruby
dooleyburger has quit [Quit: This computer has gone to sleep]
<MrZYX> mellow888: meta question
<mellow888> haha
<mellow888> my question is
<mellow888> I have the followingcode t1 = Thread.new do puts "a" end t2 = Thread.new do puts "b" end t1.join t2.join
arya has quit [Ping timeout: 246 seconds]
cloke has joined #ruby
bradhe has quit [Remote host closed the connection]
<mellow888> but only "bbbbbbbbb" gets printed
momomomomo has joined #ruby
angusiguess has joined #ruby
moofy has joined #ruby
<MrZYX> I don't thing that's exactly your code
<MrZYX> >> [Thread.new { puts 'a' }, Thread.new { puts 'b' }].map(&:join)
<eval-in> MrZYX => (http://eval.in/16751)
<moofy> ohoy!
<MrZYX> mmh
vlad_starkov has joined #ruby
<MrZYX> anyway, prints a b for me
<Norrin> MrZYX o/
dooleyburger has joined #ruby
<tommylommykins> uhh
<tommylommykins> that prints the dead threads for me
<MrZYX> no, it returns them
<MrZYX> it prints a b
<tommylommykins> oh
<tommylommykins> well it also prints the dead threads
<MrZYX> you're testing in irb?
fmhr has joined #ruby
<axl_> can somebody explain why this happens ? and why its good that it happens ? https://gist.github.com/gaganawhad/5543c1a6ecfb6154aa50
vlad_starkov has quit [Remote host closed the connection]
ThePicard has quit [Ping timeout: 245 seconds]
vlad_starkov has joined #ruby
connor_goodwolf has quit [Ping timeout: 246 seconds]
dross has quit [Ping timeout: 255 seconds]
threesome has joined #ruby
<tommylommykins> axl_: it's to do with what counts as true and false in ruby
<MrZYX> axl_: 1) because ruby isn't php 2) only nil and false are "falsy"
<mellow888> the thing is
<mellow888> I have two functions
<mellow888> a = Thread.new(listen_methods('127.0.0.1',6000))
<mellow888>   b = Thread.new(process_fathers_packets(metodo_port))
mmitchell has joined #ruby
<mellow888> each prints something when they start
<mellow888> only the first function called will print something
<mellow888> im not sure why
end_guy has quit [Ping timeout: 276 seconds]
<mellow888> *the first thread called
bradhe has joined #ruby
vlad_sta_ has quit [Ping timeout: 256 seconds]
<tommylommykins> axl_: The reason that it's good
dross has joined #ruby
<tommylommykins> is because it's being super explicit about what's true and false
connor_goodwolf has joined #ruby
<MrZYX> mellow888: can put a minimal example reproducing that in a gist?
<axl_> hmmmm….
<tommylommykins> there's none of this 'strings are true if they aren't empty' business
<tommylommykins> strings are always true
MisterPostIT has joined #ruby
<tommylommykins> similarly
wallerdev has quit [Quit: wallerdev]
<tommylommykins> puts "ohai" if 0 #=> "ohai"
<axl_> tommylommykins: actually strings aren't true either
ThePicard has joined #ruby
<axl_> they are neither true nor false
end_guy has joined #ruby
codecop has joined #ruby
<MrZYX> since they aren't instances of TrueClass or FalseClass
nateberkopec has joined #ruby
<MrZYX> but instances of String
<axl_> MrZYX: sure.. .i am just trying to understand the concepts
<axl_> not how they inherit
<MrZYX> easy. Forget the silly PHP concepts
timonv has quit [Remote host closed the connection]
<wmoxam> axl_: false and nil are 'falsey', everything else is 'truthy'
Guest43385 is now known as cheez0r
rippa has joined #ruby
seanwash has quit [Quit: Computer has gone to sleep.]
emptymag00 has joined #ruby
timonv has joined #ruby
Morkel has joined #ruby
getmeout has joined #ruby
mark_locklear has quit [Ping timeout: 246 seconds]
rednar has quit [Quit: This computer has gone to sleep]
<axl_> MrZYX: i have never been a php developer
<MrZYX> mellow888: puts returns nil, so fun1/2 return nil, then you're passing nil into Thread.new
<axl_> just fyi. seems like you are just biased rather than trying to understand concepts
<tommylommykins> sth~.
<tommylommykins> for that matter, what actually does determine the behaviour of an object when it is returned as the value of the test to an if?
<MrZYX> axl_: hmm, sorry didn't encounter another language where '' == true is true
<tommylommykins> does it just check if it's the false or nil object?
<axl_> it falls in the definition of "everything else is truthy"
<MrZYX> tommylommykins: yup
<tommylommykins> well
io_syl has joined #ruby
<tommylommykins> for all of python's "explicit is better than implicit"
mark_locklear has joined #ruby
<tommylommykins> "" is false but "ohai" is true
<tommylommykins> is pretty implicit
timonv has quit [Remote host closed the connection]
<tommylommykins> having to use String#empty? makes it much more obvious
<axl_> k. cool. i am going to take it from here
<axl_> is there an elegant way of writing something like
<axl_> `"" || "hello"`
<axl_> and have it return 'hello' ?
<tommylommykins> mellow888: you need to wait for the threads to finish
<elaptics> axl_: specfically testing for an empty string?
<tommylommykins> threads = []; threads << make_a_thread; threads << make_another_thread; threads.each(&:join)
arietis has joined #ruby
<axl_> elaptics: what if my variable is either a nil or an empty string ?
<tommylommykins> "hello" if "".empty?
heliumsocket has quit [Quit: heliumsocket]
<elaptics> axl_: what is the purpose of the line itself?
<martinklepsch> r0bgleeson, Hanmac: thanks for your feedback :)
<axl_> well, i have a variable which is a string or a nil
<axl_> and if it is an nil or an empty string i want to return the default
Rym has joined #ruby
<tommylommykins> mellow888: what's happening at the moment is that Ruby is creating the two threads, and then instantly exiting without waiting for the threads to finish what they're doing first
<axl_> and i was hoping to not write too many if conditions - make it more axiomatic
<tommylommykins> axl_: variable = default if special_case.empty?
Al___ has quit [Quit: Al___]
maxmanders has joined #ruby
<ChristianS> axl_: x = 'hello' if x.nil? || x.empty?
<elaptics> axl_: so temp = a_var_which_might_be_nil_or_empty || "hello" # meaning you always want temp to not be nil or an empty string?
AxonetBE has quit [Quit: Leaving.]
<axl_> no
<tommylommykins> elaptics: that doesn't work if the var is empty
<elaptics> tommylommykins: I'm just asking what the specific functionality required is
unstable has quit [Changing host]
unstable has joined #ruby
<axl_> temp = my_var || 'default' where i want temp never to be nil or empty
<axl_> and my_var can be nil or empty
<axl_> but its actually not a local variable it is a value from a hash
<elaptics> axl_: that's what I was asking, so if my_var is "bob" then temp would == "bob"
moofy has left #ruby [#ruby]
<axl_> yep
Nom- has quit [Read error: Operation timed out]
niceguyjames has quit [Quit: Computer has gone to sleep.]
<tommylommykins> temp = default if temp.empty?
<elaptics> axl_: so it's actually a hash param…that makes it easy :)
<axl_> how so ?
<axl_> is there a method on hash ?
Asher has joined #ruby
Nom- has joined #ruby
<elaptics> axl_: temp = hash.fetch(:key_of_value_that_might_exist, "default value if not")
buibex has quit [Remote host closed the connection]
dooleyburger has quit [Ping timeout: 256 seconds]
<elaptics> axl_: read the ruby docs for the #fetch method on hashes
<axl_> hmmm… sounds good. ill use that
<Hanmac> elaptics: fetch does not work if the key is empty ""
<Hanmac> i mean the value
<elaptics> Hanmac: oh yeah, good point
dooleyburger has joined #ruby
mikecmpbll has quit [Quit: ["Textual IRC Client: www.textualapp.com"]]
maxmanders has quit [Ping timeout: 248 seconds]
emergion has quit [Quit: Computer has gone to sleep.]
petrjanda_ has joined #ruby
pioz has joined #ruby
petrjanda_ has quit [Remote host closed the connection]
petrjanda has quit [Ping timeout: 252 seconds]
<Hanmac> axl_ & elaptics: you can use hash = hash.reject {|k,v| v.nil? || v.empty?} and then hash.fetch ... (or better, use a good merge way ... moment ...)
<Hanmac> axl_ & elaptics: use this: hash = hash.merge(defaut_values) { |key,old,new| old.nil? || old.empty? ? new : old }
cloke has quit [Ping timeout: 245 seconds]
<elaptics> axl_: yeah, I guess ultimately it depends on what you're really looking for. Would be helpful if you posted your real code. Is it that it's the value of a hash key that could be nil or empty which you want to then set a default on?
maxmanders has joined #ruby
vlad_starkov has quit [Ping timeout: 272 seconds]
wolcanus has joined #ruby
rakl has joined #ruby
fmhr has quit [Read error: Connection reset by peer]
fmhr has joined #ruby
cloke has joined #ruby
Criztian has joined #ruby
<axl_> so, basically i am setting a locale like this: Globalize.locale = params[:lang] || I18n.locale
<axl_> elaptics: since you think the code would help
<MrZYX> so you're in rails?
<axl_> yeah
soulofpeace has quit [Ping timeout: 255 seconds]
Criztian has quit [Remote host closed the connection]
zeade has joined #ruby
<axl_> interesting
<axl_> thats helpful
<axl_> i am trying to resolve a bug, in which Globalize.locale is getting set incorrectly
<axl_> and looking through several possibilities
<axl_> and then was trying to figure out better ways of setting my locale
danslo has quit [Quit: danslo]
<axl_> anyways, this has been helpful. Thanks guys
maxmanders has quit [Ping timeout: 258 seconds]
dhruvasagar has joined #ruby
Guest93367 has quit [Quit: ばいばい]
mityaz has quit [Quit: See ya!]
jeebster has joined #ruby
schickung has joined #ruby
carloslopes has joined #ruby
heliumsocket has joined #ruby
xcv has quit [Ping timeout: 255 seconds]
<jeebster> are there any convenience methods for stripping text of encoded characters? I've had someone enter a ™ symbol and it becomes a ?, I assume because of a copy-pasted character from the internet with some funky encoding
asgardBSD_ has joined #ruby
asgardBSD_ has quit [Client Quit]
s2013 has joined #ruby
asgardBSD_ has joined #ruby
xScaryKid has joined #ruby
kelabot has joined #ruby
s2013_ has joined #ruby
s2013_ has left #ruby [#ruby]
s2013 has quit [Read error: Connection reset by peer]
supernullset has joined #ruby
niklasb has joined #ruby
psyprus_ has joined #ruby
schickung has quit [Quit: schickung]
enriclluelles has quit [Remote host closed the connection]
Chinorro has quit [Remote host closed the connection]
psyprus has quit [Read error: Connection reset by peer]
sambao21 has quit [Quit: Computer has gone to sleep.]
Zolo has joined #ruby
mayankkohaley has quit [Ping timeout: 252 seconds]
Nisstyre-laptop has quit [Quit: Leaving]
<bean> jeebster: what ruby version are you using?
<jeebster> bean: 1.9.3
<jeebster> is this a utf-8 issue?
miso1337 has quit [Quit: afk]
axl_ has quit [Quit: axl_]
ph^ has quit [Remote host closed the connection]
<bean> well, how are you getting the text
asgardBSD_ has quit [Read error: Connection reset by peer]
<bean> is this rails magic?
<bean> lol
gyre007 has quit [Read error: Connection reset by peer]
<Hanmac> bean: look at str.encode it has options what todo with invalid or undefined chars
camilasan has quit [Remote host closed the connection]
hmarr has quit [Read error: Connection reset by peer]
s2013 has joined #ruby
<jeebster> bean: lol, I dunno. something a client is entering in a form
<bean> is true.
<bean> jeebster: ah, so likely a rails project, you may want to look at how the string is getting encoded.
<bean> like what Hanmac said
gyre007 has joined #ruby
kpshek has quit []
<jeebster> bean: yes, a rails project. ah, this must be an encoding set at the application level
<bean> likely
locriani has quit [Remote host closed the connection]
<bean> your question might be better suited for a rails channel
chussenot has quit [Ping timeout: 264 seconds]
Neandre has quit [Remote host closed the connection]
pcarrier has quit [Quit: Computer has gone to sleep.]
idkazuma has quit [Remote host closed the connection]
<jeebster> yes, I appreciate the response regardless
adamjleonard has quit [Quit: Leaving...]
rupee has joined #ruby
hmarr has joined #ruby
<jeebster> how can I determine what encoding is used for a character, say ™ in OSX
<jeebster> is it region specific?
bluOxigen has joined #ruby
Elhu has quit [Quit: Computer has gone to sleep.]
lukeholder has quit [Quit: ["Textual IRC Client: www.textualapp.com"]]
dr_bob has left #ruby [#ruby]
<bean> jeebster:
<bean> >> "™".encoding
<eval-in> bean => #<Encoding:UTF-8> (http://eval.in/16758)
locriani has joined #ruby
<jeebster> ah sweet
browndawg has quit [Quit: Leaving.]
generalissimo has quit [Remote host closed the connection]
axl_ has joined #ruby
brianpWins has joined #ruby
catphish has quit [Quit: Leaving]
iamvery has quit [Remote host closed the connection]
C0deMaver1ck is now known as Grizzo
wsterling has joined #ruby
cantonic has joined #ruby
yxhuvud2 has quit [Ping timeout: 246 seconds]
xScaryKid has quit [Quit: Leaving]
schickung has joined #ruby
bean has quit [Quit: Computer has gone to sleep.]
iamvery has joined #ruby
cantonic has quit [Client Quit]
yxhuvud has joined #ruby
mayankkohaley has joined #ruby
kpshek has joined #ruby
fmhr has quit [Read error: Connection reset by peer]
jbueza has quit [Quit: Leaving.]
tomzx_mac has joined #ruby
milton has joined #ruby
elaptics is now known as elaptics`away
bluOxigen has quit []
oneirophren has quit [Ping timeout: 256 seconds]
jbueza has joined #ruby
mattbl has left #ruby ["Leaving"]
keymone has joined #ruby
adamjleonard has joined #ruby
bburwell has joined #ruby
Banistergalaxy has quit [Ping timeout: 272 seconds]
milton has quit [Client Quit]
slainer68 has quit [Remote host closed the connection]
Banistergalaxy has joined #ruby
MisterPostIT has quit []
maxmanders has joined #ruby
robottinosino has quit [Read error: Connection reset by peer]
miltons has joined #ruby
hakunin has quit [Remote host closed the connection]
slainer68 has joined #ruby
ariedler has quit [Remote host closed the connection]
xcv has joined #ruby
hakunin has joined #ruby
axl_ has quit [Quit: axl_]
stef_204 has quit [Quit: KVIrc 4.2.0 Equilibrium http://www.kvirc.net/]
robottin1 has joined #ruby
mockra has joined #ruby
maxmanders has quit [Client Quit]
jdunck has joined #ruby
ariedler has joined #ruby
Guest16877 is now known as jani
Hanmac has quit [Ping timeout: 260 seconds]
sepp2k has joined #ruby
slainer68 has quit [Remote host closed the connection]
shock_one has joined #ruby
cantonic has joined #ruby
nga4 has joined #ruby
pioz has quit [Quit: This computer has gone to sleep]
hakunin has quit [Ping timeout: 272 seconds]
sayan has quit [Read error: Connection reset by peer]
jgrau has joined #ruby
jgrau has quit [Client Quit]
Grizzo is now known as C0deMaver1ck
jgrau has joined #ruby
Hanmac has joined #ruby
jgrau has quit [Client Quit]
sleetdrop has joined #ruby
xcv has quit [Remote host closed the connection]
mrsolo has joined #ruby
xcv has joined #ruby
athst has joined #ruby
jnoob22_ has joined #ruby
wolcanus has quit [Remote host closed the connection]
miltons has quit [Quit: Page closed]
alexwh has quit [Ping timeout: 252 seconds]
mercwithamouth has joined #ruby
jnoob22 has quit [Ping timeout: 245 seconds]
nomenkun_ has quit [Ping timeout: 245 seconds]
axl_ has joined #ruby
atno has quit [Read error: Connection reset by peer]
c0rn has joined #ruby
johnkary has joined #ruby
rlb3 has quit [Ping timeout: 264 seconds]
atno has joined #ruby
mark_locklear has quit [Ping timeout: 255 seconds]
kuzushi has joined #ruby
NihilistDandy has joined #ruby
bitZero__ has quit [Quit: leaving]
pioz has joined #ruby
bitZero__ has joined #ruby
wargasm has quit [Read error: Connection reset by peer]
pothibo has joined #ruby
arietis has quit [Quit: Textual IRC Client: http://www.textualapp.com/]
wargasm has joined #ruby
a_a_g has joined #ruby
stkowski has joined #ruby
troessner has quit [Quit: Leaving]
jlast has quit [Remote host closed the connection]
Liquid-- has joined #ruby
mark_locklear has joined #ruby
rlb3 has joined #ruby
atno has quit [Remote host closed the connection]
Zai00 has quit [Quit: Zai00]
NihilistDandy has quit [Remote host closed the connection]
rdark has quit [Quit: leaving]
timmow has quit [Ping timeout: 252 seconds]
bitZero__ has quit [Client Quit]
NihilistDandy has joined #ruby
bitZero__ has joined #ruby
tevio has quit [Remote host closed the connection]
atno has joined #ruby
workmad3 has joined #ruby
workmad3 has joined #ruby
F1skr has quit [Quit: WeeChat 0.4.0]
blaxter has quit [Ping timeout: 246 seconds]
bburwell has quit [Quit: bburwell]
morfin has quit [Remote host closed the connection]
centipedefarmer has quit [Remote host closed the connection]
razibog has joined #ruby
morfin has joined #ruby
brianpWins has quit [Quit: brianpWins]
<otters> I think the coolest feature of Ruby is that you don't need access to docs to figure out what method to use
heliumsocket has quit [Quit: heliumsocket]
gyre007 has quit [Remote host closed the connection]
sayan has joined #ruby
peta_ has joined #ruby
marcdel has joined #ruby
<spider-mario> not needing a doc is good, but it’s also good that it’s so easy to access
nfk has quit [Quit: yawn]
iamvery has quit [Ping timeout: 252 seconds]
<otters> just a simple object.methods - Object.instance_methods.sort
<otters> and then grep if you need more
sleetdrop has quit [Quit: Computer has gone to sleep.]
<peta_> strange … since updating to RubyMine 5.4 when I run tests I always get Uncaught exception: invalid byte sequence in US-ASCII exceptions
<peta_> did anybody experience similar behaviour?
bitZero__ has quit [Quit: leaving]
bitZero__ has joined #ruby
bean has joined #ruby
<ntzrmtthihu777> peta_: I catch that alot with 2.0, what version of ruby are you using?
<peta_> latest 1.9.3
matchaw_ has joined #ruby
<peta_> it's strange because I was using the 5.4 EAP before and there everything wokred fine
<peta_> even the tests
matchaw has quit [Ping timeout: 245 seconds]
<peta_> then all I did was replacing the RubyMine.app file nothing else
mneorr has joined #ruby
atno has quit [Remote host closed the connection]
norm has quit [Quit: norm]
<otters> well, who knows what internals changed with the new RubyMine
<otters> peta_: are your files in ascii or utf-8?
Nahra` has joined #ruby
<peta_> otters: utf-8 of course
<peta_> :)
<otters> magic comment?
<otters> did the magic comment go away in 1.9 or 2.0?
morfin has quit [Remote host closed the connection]
wolcanus has joined #ruby
<MrZYX> neither iirc
morfin has joined #ruby
<MrZYX> 2.0 just changed the default to utf8
<otters> really? I thought the default was utf8 for
<otters> yeah, okay, that
atno has joined #ruby
Elhu has joined #ruby
stef_204 has joined #ruby
sayan has quit [Read error: Connection reset by peer]
Nahra` has quit [Remote host closed the connection]
axl_ has quit [Quit: axl_]
<peta_> well, I didn't add an encoding magic comment to every ruby file
<peta_> before the update to 5.4 this worked
<otters> yeah, you'd think you wouldn't need to
<otters> but you might as well try it on the affected files
<peta_> okay sir … one sec
bburwell has joined #ruby
alex__c2022_ has joined #ruby
<peta_> btw. is there a simple bash command to see what encoding a given file uses?
bitZero__ has quit [Quit: leaving]
<otters> dunno off the top of my head
kpshek has quit []
<MrZYX> file should tell
bitZero__ has joined #ruby
<MrZYX> `file some_file`
kirun has joined #ruby
<peta_> yeeeah
ebobby has joined #ruby
<peta_> wtf? the rb files bundled with RubyMine are in US-ASCII
<otters> well, file reports ASCII text for my config.ru, but vim reports utf-8
bitZero__ has quit [Client Quit]
<MrZYX> hm I think file only reports utf-8 if there are actually non-ascii bytes in it
Elhu has quit [Quit: Computer has gone to sleep.]
<otters> definitely not
alex__c2022 has quit [Ping timeout: 272 seconds]
alex__c2022_ is now known as alex__c2022
csaunders has joined #ruby
<otters> peta_: oh, you might try file -I
momomomomo_ has joined #ruby
<otters> with a capital i
bitZero__ has joined #ruby
angusiguess has quit [Ping timeout: 256 seconds]
ph^ has joined #ruby
momomomomo has quit [Ping timeout: 272 seconds]
momomomomo_ is now known as momomomomo
<MrZYX> hmm, my file has only a lowercase one...
<peta_> great
bitZero__ has quit [Client Quit]
chussenot has joined #ruby
<peta_> okay, seems like I know what have to be done
<peta_> let's try
<otters> file -I might be an OSX thing
<otters> because vim reports utf-8 but file -I reports ascii for a randomly chosen ruby file
<otters> of course, ascii is a subset of UTF-8
wolcanus has quit [Ping timeout: 252 seconds]
axl_ has joined #ruby
marr has quit [Read error: Connection reset by peer]
timonv has joined #ruby
angusiguess has joined #ruby
hmarr has quit [Ping timeout: 264 seconds]
<MrZYX> since it does detection, so it's still usefull: ascii reported: don't care, utf8 reported, no magic comment: add one
yxhuvud2 has joined #ruby
shock_one has quit [Ping timeout: 264 seconds]
codezombie has joined #ruby
bitZero__ has joined #ruby
Rym has quit [Quit: Rym]
ph^ has quit [Ping timeout: 256 seconds]
getmeout has quit [Quit: Textual IRC Client: www.textualapp.com]
lmf40 has quit [Remote host closed the connection]
chrishunt has quit [Quit: ZzZzZz...]
cantonic has quit [Quit: cantonic]
nazty has quit [Ping timeout: 260 seconds]
yxhuvud has quit [Ping timeout: 245 seconds]
Coolhand has quit [Quit: http://quassel-irc.org - Chat comfortably. Anywhere.]
wormwood has joined #ruby
hamakn has quit [Remote host closed the connection]
Coolhand has joined #ruby
ssvo has quit [Ping timeout: 246 seconds]
chrishunt has joined #ruby
pioz has quit [Quit: This computer has gone to sleep]
generalissimo has joined #ruby
Elhu has joined #ruby
ssvo has joined #ruby
ToApolytoXaos has joined #ruby
<unstable> I was playing with the google api for fun, just to build little projects and learn ruby. Now I'm playing with the yelp api. With google I could just JSON.parse(RestClient.get(url)). With yelp though I'm not sure what I'm getting. I think it's json.. though JSON.parse(RestClient.get(url)) doesn't put the data into ruby data structures. The output looks like this: \"neighborhoods\": [\"SoHo\"], \"postal_code\": \"10012\",
maxmanders has joined #ruby
<unstable> Am I supposed to use nokogiri to get rid of all the \ first or somethign?
<otters> that looks like JSON without brackets
<peta_> MrZYX: indeed, I added magic encoding comments to all MY project files and now it works
<peta_> really strange
<otters> unstable: heh, uh, try JSON.parse("{#{data}}")
jlast has joined #ruby
ananthakumaran has quit [Quit: Leaving.]
brianpWins has joined #ruby
Uranio has quit [Quit: while you reading this, a kitty dies]
atno has quit [Ping timeout: 245 seconds]
megha has quit [Ping timeout: 246 seconds]
dhruvasagar has quit [Ping timeout: 246 seconds]
<unstable> o wait nevermind, I'm doing something completely wrong.
kuzushi has quit [Ping timeout: 258 seconds]
lmf40 has joined #ruby
forrest has joined #ruby
mahmoudimus has joined #ruby
lmf40 has quit [Remote host closed the connection]
wolcanus has joined #ruby
dankest has joined #ruby
momomomomo_ has joined #ruby
sylvinus has quit [Quit: sylvinus]
pcarrier has joined #ruby
momomomomo has quit [Ping timeout: 252 seconds]
momomomomo_ is now known as momomomomo
supernullset has quit [Remote host closed the connection]
<unstable> http://pastebin.com/hM6Ly008 .. so this code works now. Should I try to get this working with addressable? The problem is I need to make the request through the token. So for google, addressable worked easier.. I just embeded the key string. With this though.. I don't think i can use addressable? Also is it better to serialize the oauth token and store it.. then just reference it when I need it? Am I generating new ones constantly?
reset has joined #ruby
lmf40 has joined #ruby
indyrl has joined #ruby
atno has joined #ruby
jeffreylevesque_ has quit [Remote host closed the connection]
angusigu1ss has joined #ruby
supernullset has joined #ruby
megha has joined #ruby
alex__c2022 has quit [Quit: alex__c2022]
ferdev has quit [Quit: ferdev]
Nahra has quit [Remote host closed the connection]
angusiguess has quit [Disconnected by services]
Andreo has joined #ruby
Squarepy_ has joined #ruby
Squarepy_ is now known as Squarepy
Elhu has quit [Quit: Computer has gone to sleep.]
wildcard0 has quit [Ping timeout: 256 seconds]
jhn has joined #ruby
wildcard0 has joined #ruby
momomomomo has quit [Quit: momomomomo]
jonathanwallace has quit [Quit: WeeChat 0.3.9.2]
vikhyat has quit [Remote host closed the connection]
Nahra has joined #ruby
tesuki has joined #ruby
NihilistDandy has quit [Quit: Textual IRC Client: www.textualapp.com]
angusigu1ss has quit [Remote host closed the connection]
jkamenik has joined #ruby
zmike has joined #ruby
tesuki has quit [Remote host closed the connection]
angusiguess has joined #ruby
kpshek has joined #ruby
carlyle has joined #ruby
FenrirReturns has joined #ruby
tesuki has joined #ruby
rismoney has joined #ruby
mrwalker has joined #ruby
mrwalker has quit [Remote host closed the connection]
jnoob22_ has quit [Remote host closed the connection]
whitedawg has left #ruby [#ruby]
jnoob22 has joined #ruby
mocfive has joined #ruby
Elhu has joined #ruby
mercwithamouth has quit [Ping timeout: 276 seconds]
d2dchat has joined #ruby
ekampf has joined #ruby
banister`sleep has joined #ruby
vlad_starkov has joined #ruby
<banister`sleep> MrZYX: looks like you're the only one working on diaspora these days? :) https://github.com/diaspora/diaspora/contributors
<banister`sleep> assuming that's u
vlad_starkov has quit [Remote host closed the connection]
<MrZYX> nah
arya__ has quit [Ping timeout: 248 seconds]
<MrZYX> just the guy merging all the stuff
<banister`sleep> MrZYX: based on the commit graphs though
vlad_starkov has joined #ruby
<banister`sleep> there's been very little activity from anyone else, they all cut off a few months ago
<MrZYX> I also commit the locale updates, so that gives huge contribution counts
tomsthumb has joined #ruby
tesuki has quit [Remote host closed the connection]
<MrZYX> well, the founders stopped working on it
<banister`sleep> MrZYX: really, why?
<banister`sleep> seems kind of a stalled project though
tevio has joined #ruby
getmeout has joined #ruby
<MrZYX> one of the problems in the project: no reasoning from them
Czupa has quit [Read error: Connection reset by peer]
<MrZYX> not that less active actually, just less useless UI iterations
Czupa has joined #ruby
jeffreylevesque has joined #ruby
<banister`sleep> MrZYX: "no reasoning" --> you mean no direction or guidance?
pi3r has quit [Quit: Leaving]
<MrZYX> well, that too, but also no proper argumentation for decisions
<MrZYX> no communication
<banister`sleep> so why do you still bother with it?
<MrZYX> we got a few k users so it's a good platform to experiment with concepts of doing a distributed SN
arya__ has joined #ruby
xclite has quit [Remote host closed the connection]
Zolo has quit [Remote host closed the connection]
<MrZYX> we also turned 180 degree when they left and established a community governance: https://www.loomio.org/groups/194
beneggett has joined #ruby
<MrZYX> we already got many "idea people", a few more coders would be nice ;)
<banister`sleep> MrZYX: did the founders give a reason for quitting?
Czupa has quit [Remote host closed the connection]
kpshek has quit []
niceguyjames has joined #ruby
niceguyjames has quit [Client Quit]
jtharris has quit [Quit: WeeChat 0.4.0]
sambao21 has joined #ruby
<MrZYX> I actually almost left the project for the months before that and came back
<banister`sleep> i'd find it kind of depressing to work on something that feels like it's dying
sambio has quit [Ping timeout: 246 seconds]
<banister`sleep> well...im not sure if it's true, i only go back lack of media attention and discussion in programmer community :)
robottin1 has quit [Quit: WeeChat 0.4.0]
<MrZYX> well media is and never was highly accurate about the project...
cantonic has joined #ruby
robottinosino has joined #ruby
ferdev has joined #ruby
phinfonet has joined #ruby
<MrZYX> I don't have the feeling our userbase shrinks, though hard to measure ;)
niceguyjames has joined #ruby
oneirophren has joined #ruby
zmike has quit [Quit: Выходжу]
<MrZYX> I guess our main problem is that the project was run like a startup that coincidentally had a public github repo but being advertised as open source project
<MrZYX> that scared away many contributors
atmosx has joined #ruby
kuzushi has joined #ruby
newUser1234 has quit [Remote host closed the connection]
tesuki has joined #ruby
kpshek has joined #ruby
vlad_sta_ has joined #ruby
yxhuvud2 has quit [Ping timeout: 264 seconds]
mneorr has quit [Remote host closed the connection]
vlad_starkov has quit [Ping timeout: 264 seconds]
xcv_ has joined #ruby
yxhuvud has joined #ruby
bburwell has quit [Quit: bburwell]
iamvery has joined #ruby
newUser1234 has joined #ruby
atno has quit [Remote host closed the connection]
mneorr has joined #ruby
xcv_ has quit [Remote host closed the connection]
xcv has quit [Ping timeout: 252 seconds]
theRoUS has quit [Ping timeout: 260 seconds]
artemeff has joined #ruby
<artemeff> Hi! Can I send big data via sockets with one packet? Hmm... My problem – when I send big string (json) to other application (on erlang) I receive it piece by piece and json don't be decoded. Any ideas? Sorry for my english :C
<MrZYX> you can't control your path mtu
fschuindt has joined #ruby
<MrZYX> change your receiver to buffer the whole string and parse it in one go then
nbjahan has joined #ruby
robert__ is now known as robert_
locriani has quit [Remote host closed the connection]
<artemeff> Hm, thanks
kamsky has joined #ruby
<kamsky> hi guys, any of you have ever used QtRuby? if so, any thoughts, ideas, suggestions? Im about to start a relatively big project and I think I'm gonna use QtRuby for the GUI
chrishough has quit [Quit: chrishough]
m8 has joined #ruby
hamakn has joined #ruby
reset has quit [Ping timeout: 256 seconds]
slainer68 has joined #ruby
mando has quit [Remote host closed the connection]
atno has joined #ruby
vlad_starkov has joined #ruby
unflores has quit [Quit: unflores]
divout has quit [Remote host closed the connection]
atno has quit [Remote host closed the connection]
Nisstyre-laptop has joined #ruby
centipedefarmer has joined #ruby
xardas has joined #ruby
vlad_sta_ has quit [Read error: Operation timed out]
schickung has quit [Ping timeout: 272 seconds]
hamakn has quit [Ping timeout: 258 seconds]
FenrirReturns has left #ruby [#ruby]
vlad_starkov has quit [Remote host closed the connection]
nbjahan has quit [Quit: nbjahan]
jtharris has joined #ruby
vlad_starkov has joined #ruby
banister`sleep has quit [Remote host closed the connection]
atno has joined #ruby
vikhyat has joined #ruby
schickung has joined #ruby
theRoUS has joined #ruby
theRoUS has quit [Changing host]
theRoUS has joined #ruby
k610 has joined #ruby
forlin has quit [Remote host closed the connection]
artemeff has quit [Remote host closed the connection]
epsylon has joined #ruby
dankest has quit [Quit: Linkinus - http://linkinus.com]
balishag_ has joined #ruby
tevio has quit [Remote host closed the connection]
galbert_z has joined #ruby
balishag has quit [Ping timeout: 256 seconds]
rippa has quit [Ping timeout: 240 seconds]
galbert_z has quit [Client Quit]
dallasm has quit [Read error: Connection reset by peer]
timmow has joined #ruby
dallasm has joined #ruby
<ohcibi> is self changing inside a block in a method?
basex has quit [Quit: basex]
mark_locklear has quit [Remote host closed the connection]
rickmasta has joined #ruby
bhaarat has quit [Quit: bhaarat]
<MrZYX> let's find out!
<MrZYX> >> def foo; old = self; 1.times { p old == self }; end; foo
<eval-in> MrZYX => true ... (http://eval.in/16762)
bburwell has joined #ruby
basex has joined #ruby
pcarrier has quit [Ping timeout: 256 seconds]
ph^ has joined #ruby
wolcanus has quit [Remote host closed the connection]
worstadmin has joined #ruby
<worstadmin> I have gem installed json - however require 'json' fails as if I hadn't
<worstadmin> I feel this is a common issue?
pcarrier has joined #ruby
bburwell has quit [Client Quit]
Morkel_ has joined #ruby
<bean> worstadmin: have you tried 'require 'rubygems'' first?
<worstadmin> Ah I needed...
<worstadmin> beat me to it
hrs has joined #ruby
<MrZYX> you should update your ruby instead
<bean> ^
<worstadmin> I think I shall
nick_h has quit [Read error: Operation timed out]
<worstadmin> can I make that require 'rubygems' conditional depending on the ruby version in the code?
nick_h has joined #ruby
<bean> it won't matter
<worstadmin> gotcha
<bean> if you require 'rubygems' and its already loaded it will just not do ita gain
Elhu has quit [Quit: Computer has gone to sleep.]
rickmasta has quit [Remote host closed the connection]
athst has quit [Quit: athst]
generalissimo has quit [Remote host closed the connection]
rickmasta has joined #ruby
Morkel has quit [Ping timeout: 264 seconds]
Morkel_ is now known as Morkel
thams has quit [Quit: thams]
acarpe has quit [Quit: acarpe]
athst has joined #ruby
rlb3 has quit [Ping timeout: 256 seconds]
ariedler has quit [Remote host closed the connection]
workmad3 has quit [Ping timeout: 264 seconds]
lmf40 has quit [Remote host closed the connection]
supernullset has quit [Remote host closed the connection]
tmewett has joined #ruby
<tmewett> hello everyone.
<tmewett> i presume you know about _why
atno has quit [Remote host closed the connection]
mark_locklear has joined #ruby
<otters> yeah we do
splittingred has joined #ruby
niceguyjames has quit [Quit: Computer has gone to sleep.]
momomomomo has joined #ruby
<tmewett> i mean him being back
<tmewett> or posting PCL.
lmf40 has joined #ruby
kurk has joined #ruby
atno has joined #ruby
<EvErLaSt> With the svn/core and svn/client is there a way to get a new svn object and not use an instance? I need to do checkouts from three repositories
galbert_z has joined #ruby
<tmewett> why am i so hyped about this
<tmewett> why are you not?? xD
<Hanmac> why does _why still exist? ;P
girija has quit [Ping timeout: 248 seconds]
momomomomo has quit [Client Quit]
<EvErLaSt> is there a website with class documentation on svn library?
ryannielson has quit [Quit: ryannielson]
workmad3 has joined #ruby
Gabri has joined #ruby
<reactormonk> EvErLaSt, generate it yourself?
momomomomo has joined #ruby
ioNull has quit [Quit: Computer has gone to sleep.]
ariedler has joined #ruby
reset has joined #ruby
mahmoudimus has quit [Quit: Computer has gone to sleep.]
<tmewett> ok i'm going
<tmewett> bb
tmewett has quit [Quit: ChatZilla 0.9.90 [Firefox 20.0.1/20130409194949]]
m8 has quit [Quit: Sto andando via]
alanp has quit [Ping timeout: 252 seconds]
alanp_ has joined #ruby
galbert_z has left #ruby ["WeeChat 0.3.7"]
yxhuvud2 has joined #ruby
kofno has quit [Remote host closed the connection]
jkamenik has quit [Quit: Leaving.]
alvaro_o has joined #ruby
pitzips has joined #ruby
sylvinus has joined #ruby
wolcanus has joined #ruby
theRoUS has quit [Ping timeout: 264 seconds]
yxhuvud has quit [Ping timeout: 245 seconds]
keymone has quit [Quit: keymone]
<dougsko> if i have an array of threads, say, 100, and each one takes about 10 seconds to complete, how can continuously create/kickoff groups of threads every X seconds without having to wait for the first group to all finish?
<MrZYX> #each_slice ?
<MrZYX> + #sleep
galbert_z has joined #ruby
<dougsko> each thread sleeps inside it. so after calling #join on the threads, i have to wait 1000 seconds before i can loop around again and kick off another group of 100 threds
<dougsko> does that make sense?
coder_neo has joined #ruby
<MrZYX> I thought you don't want to wait?
<dougsko> lemme pastebin something
tjbiddle has joined #ruby
<spike|spiegel> dougsko: you can always not join... and scan the thread list and select dead ones and join on them
cassius_ has joined #ruby
nomenkun has joined #ruby
<dougsko> spike|spiegel: i think thats what i might need to do actually
<dougsko> so in that pastebin, i want that loop do part to run every X seconds
huoxito has quit [Quit: Leaving]
slainer68 has quit [Remote host closed the connection]
vlad_sta_ has joined #ruby
dv_ has quit [Read error: Connection reset by peer]
<MrZYX> loop { make_threads; sleep x; }
<spike|spiegel> might be a much better idea to spawn all your threads into ThreadGroup .. so as to not accidentally steal someone else's babies
<dougsko> but the time i have to wait is the amount of time it takes that whole group of threads to finish
<dougsko> hmm...concurrency isnt too much of an issue
<MrZYX> you need to decide, either you want to wait for all to finish or not
Inv1s1ble has quit [Ping timeout: 260 seconds]
wesside has quit [Ping timeout: 264 seconds]
angusiguess has quit [Ping timeout: 272 seconds]
rakl has quit [Quit: sleeping]
<dougsko> i want to kick off the threads that make_threads creates every X seconds. i dont want to wait for each group to finish
wolcanus has quit [Ping timeout: 248 seconds]
<MrZYX> (22:18:24) MrZYX: loop { make_threads; sleep x; }
newUser1234 has quit [Read error: Connection reset by peer]
newUser1_ has joined #ruby
fermion has quit [Quit: Computer has gone to sleep.]
vlad_starkov has quit [Ping timeout: 272 seconds]
<dougsko> hmm... seems too easy ;)
cassius has joined #ruby
<dougsko> gonna go try it. thanks MrZYX
KazW has quit [Ping timeout: 245 seconds]
sylvinus has quit [Quit: sylvinus]
cantonic has quit [Quit: cantonic]
KazW_ has joined #ruby
thams has joined #ruby
oneirophren has quit [Quit: leaving]
cassius_ has quit [Ping timeout: 264 seconds]
robscomputer has joined #ruby
ebobby has quit [Ping timeout: 240 seconds]
theRoUS has joined #ruby
theRoUS has quit [Changing host]
theRoUS has joined #ruby
mmitchel_ has joined #ruby
redmaverick has joined #ruby
nomenkun has quit [Remote host closed the connection]
marr has joined #ruby
mneorr has quit [Remote host closed the connection]
mercwithamouth has joined #ruby
<dougsko> cool, i think that did the trick!
yalue has quit [Read error: Connection reset by peer]
atno has quit [Remote host closed the connection]
s2013 has quit [Ping timeout: 264 seconds]
<galbert_z> :close
galbert_z has left #ruby ["WeeChat 0.3.7"]
<dougsko> i thought i had to call #join to make the array of threads ever start executing
nomenkun has joined #ruby
pskosinski has quit [Ping timeout: 245 seconds]
_nitti_ has quit [Remote host closed the connection]
rickmasta has quit [Quit: Leaving...]
rakl has joined #ruby
KazW_ has quit [Read error: Connection reset by peer]
wesside has joined #ruby
pskosinski has joined #ruby
redmaverick has left #ruby [#ruby]
LaPetiteFromage has quit [Quit: LaPetiteFromage]
atno has joined #ruby
<spike|spiegel> dougsko: someone is not going to thank you for leaking that memory
paniconograph14 has quit [Quit: paniconograph14]
KazW_ has joined #ruby
kayloos has joined #ruby
<dougsko> hmm... so im guessing it would be better to check the each thread's status and only call more when on finishes?
<EvErLaSt> can someone explain what I'm missing here please?
<EvErLaSt> h = {:'web-client' => "test"}
<EvErLaSt> t = "web-client"
<EvErLaSt> puts "it is deff"
<EvErLaSt> end
<EvErLaSt> if defined? h[t.to_sym]
<EvErLaSt> if defined? h[:test]
<EvErLaSt> puts "it is also def"
<EvErLaSt> end
yannis has joined #ruby
<EvErLaSt> they both print
<akhet> why you gotta do it bro
<EvErLaSt> ?
<dougsko> >.<
<airtonix> pastebin
workmad3 has quit [Ping timeout: 256 seconds]
jbueza has quit [Quit: Leaving.]
<MrZYX> ^ that's what you're missing
<EvErLaSt> sorry
<airtonix> EvErLaSt: http://dpaste.org/
<dougsko> EvErLaSt: your first line, you have :'web-client'. im guessing that should be :web-client
Squarepy has quit [Remote host closed the connection]
<spike|spiegel> EvErLaSt: puts 'ouch' if defined? nil
idletom has joined #ruby
rednar has joined #ruby
glacification11 has joined #ruby
<spike|spiegel> EvErLaSt: defined is the wrong check ... you might be looking for if !something.nil?
KazW_ has quit [Read error: Connection reset by peer]
<MrZYX> ew, don't write if!
chandankumar has quit [Quit: Leaving]
<MrZYX> we got unless
<EvErLaSt> I tried that but then got an error for it not being a method
<spike|spiegel> yeah ... until you need elsif
taqutor has quit [Ping timeout: 245 seconds]
mneorr has joined #ruby
<MrZYX> which he doesn't
KazW_ has joined #ruby
Scriptwriter has joined #ruby
skroon has quit [Read error: Connection reset by peer]
skroon has joined #ruby
neurone-1337 has quit [Ping timeout: 264 seconds]
cloke_ has joined #ruby
kiyan has joined #ruby
neurone-1337 has joined #ruby
chrisja has quit [Quit: leaving]
<EvErLaSt> when I test for nil I get undefined method `nil' for "test":String (NoMethodError)
cloke has quit [Ping timeout: 248 seconds]
cloke_ is now known as cloke
<MrZYX> it's nil? not nil
<EvErLaSt> ggggrrrr thank you
wolcanus has joined #ruby
* EvErLaSt smacks head
<worstadmin> I have an array with the literal characters \n in each string of the array - how can I strip these?
<dougsko> .gsub(/\\n/,'')
newUser1234 has joined #ruby
dustint has quit [Ping timeout: 245 seconds]
<MrZYX> .map!(&:strip)
newUser1_ has quit [Remote host closed the connection]
<MrZYX> oh literal, nvm
geekbri has quit [Remote host closed the connection]
<prstat> worstadmin: chomp
ekampf has quit [Quit: ekampf]
uris has quit [Ping timeout: 245 seconds]
wmoxam has quit [Ping timeout: 256 seconds]
rasbonics has joined #ruby
rasbonics has left #ruby [#ruby]
<worstadmin> dougsko: Nailed it
<worstadmin> thanks
<dougsko> yep
dustint has joined #ruby
Rym has joined #ruby
vikhyat has quit [Remote host closed the connection]
cassius is now known as Inv1s1ble
<MrZYX> worstadmin: dougsko you don't need a regex, and as prstat said, use chomp
<worstadmin> chomp doesnt work in this case because its a literal string and doesnt always occur at the end
<dougsko> does that remove literal slash n's?
<Boohbah> MrZYX: he said it was a literal string '\n'
beiter has quit [Quit: beiter]
<dougsko> yeah, not a newline
<dougsko> thats how i read that anyway
zastern has joined #ruby
<worstadmin> That's correct
jnoob22 has quit [Remote host closed the connection]
<MrZYX> >> "foo\\n".chomp('\n')
<eval-in> MrZYX => "foo" (http://eval.in/16764)
wolcanus has quit [Ping timeout: 240 seconds]
<MrZYX> >> "foo".chomp('\n')
<eval-in> MrZYX => "foo" (http://eval.in/16765)
<dougsko> MrZYX: doesnt chomp just remove something from the end of a string?
<worstadmin> Ah okay, cool
<Boohbah> >> "foo\n".chomp('\n')
<eval-in> Boohbah => "foo\n" (http://eval.in/16766)
iamjarvo has quit [Quit: Leaving.]
banister`sleep has joined #ruby
<dougsko> like, what if you had, "this is\\na string"
<banister`sleep> anyone here very experienced with sinatra?
samuelj has joined #ruby
fschuindt has quit [Quit: Computer has gone to sleep.]
<worstadmin> >> "foo\noo\n".chomp('\n')
<eval-in> worstadmin => "foo\noo\n" (http://eval.in/16767)
<Boohbah> >> "foo\n".chomp("\n")
<eval-in> Boohbah => "foo" (http://eval.in/16768)
<MrZYX> dougsko: oh right, damn, bed time I guess
<Boohbah> :)
<worstadmin> >> "foo\noo\n".chomp("\n")
<eval-in> worstadmin => "foo\noo" (http://eval.in/16769)
<MrZYX> still gsub can take strings
<samuelj> Hey everyone, just a quick question. Why cant i define my_break; break; end; and call my_break inside a block?
<MrZYX> >> 'foo\noo\n'.delete('\n')
<eval-in> MrZYX => "foo\\oo\\" (http://eval.in/16770)
<Boohbah> yeah chomp, chop and strip only work on the ends of a string
martxel has quit [Ping timeout: 246 seconds]
<MrZYX> mmh
<worstadmin> delete is pretty cool
slainer68 has joined #ruby
martxel has joined #ruby
Al__ has joined #ruby
martxel is now known as Guest59169
dustint has quit [Quit: Leaving]
<MrZYX> I'm confused why it keeps backslashes though
axl_ has quit [Quit: axl_]
vlad_starkov has joined #ruby
ekampf has joined #ruby
newUser1234 has quit [Remote host closed the connection]
<dougsko> "foo\\nbar\\n".delete('\n')
<dougsko> >> "foo\\nbar\\n".delete('\n')
<eval-in> dougsko => "foo\\bar\\" (http://eval.in/16771)
<dougsko> yeah weird
wargasm has quit [Ping timeout: 256 seconds]
<dougsko> >> "foo\\nbar\\n".delete('\\n')
<eval-in> dougsko => "foo\\bar\\" (http://eval.in/16772)
<dougsko> >> "foo\nbar".delete(/\n/)
<eval-in> dougsko => /tmp/execpad-d8aa2a35566a/source-d8aa2a35566a:2:in `delete': no implicit conversion of Regexp into String (TypeError) ... (http://eval.in/16773)
<Boohbah> internally Ruby implements break from within a block by throwing an exception!
jonathanwallace has joined #ruby
<dougsko> :( no regex in #delete
AlSquirrel is now known as AlSquire
newUser1234 has joined #ruby
<MrZYX> so gsub it is
<dougsko> indeed
linduxed has quit [Quit: WeeChat 0.3.9.2]
a_a_g has quit [Quit: This computer has gone to sleep]
<MrZYX> >> "foo\\n\\nfoo".gsub '\\n', ''
<eval-in> MrZYX => "foofoo" (http://eval.in/16774)
vlad_sta_ has quit [Ping timeout: 272 seconds]
mneorr has quit [Remote host closed the connection]
axl_ has joined #ruby
kamsky has quit [Quit: leaving]
jacktrick has joined #ruby
ebobby has joined #ruby
bhaarat has joined #ruby
<dougsko> so you dont need to surround your regex in /'s ? fancy...
<MrZYX> you don't need to pass gsub a regex
mando has joined #ruby
timonv has quit [Remote host closed the connection]
linduxed has joined #ruby
lmf40 has quit [Remote host closed the connection]
<dougsko> oh i thought that was an escaped newline a la regex
LennyLinux has joined #ruby
angusiguess has joined #ruby
momomomomo has quit [Quit: momomomomo]
getmeout has quit [Quit: Textual IRC Client: www.textualapp.com]
postmodern has joined #ruby
jnoob22 has joined #ruby
slainer68 has quit [Ping timeout: 258 seconds]
sailias has quit [Ping timeout: 245 seconds]
codecop has quit [Remote host closed the connection]
<samuelj> thanks Boohbah!
anderson has quit [Read error: Connection reset by peer]
retry has quit [Quit: Leaving...]
<unstable> What is the easiest way to see the source for a particular method?
ebobby has quit [Ping timeout: 258 seconds]
mocfive has quit [Remote host closed the connection]
anderson has joined #ruby
<Hanmac> unstable: obj.method(meth).source_location #for ruby methods
taqutor has joined #ruby
lmf40 has joined #ruby
chussenot has quit [Quit: chussenot]
<unstable> Hanmac: source_location doesn't exist?
<samuelj> ok Boohbah, here's a more interesting question. Is there a way i can implement my_break so that it does exit the block?
kpshek has quit []
<Hanmac> unstable: then your ruby is to old to run ;P
chussenot has joined #ruby
stef_204 has quit [Quit: KVIrc 4.2.0 Equilibrium http://www.kvirc.net/]
fermion has joined #ruby
<unstable> Hanmac: ruby 2.0.0p0 (2013-02-24 revision 39474) [i686-linux]
razibog has quit [Read error: Operation timed out]
<Hanmac> unstable: what method did you wanted to find? because i said it only works for ruby methods not for compiled ones
<unstable> [2] pry(main)> [1,[2,[3]]].flatten.source_location
<unstable> NoMethodError: undefined method `source_location' for [1, 2, 3]:Array
rakl has quit [Quit: sleeping]
<Spooner> unstable: Use pry: show-source Array#flatten (and yes, it will be in C).
<Hanmac> >> [].method(:flatten).source_location
<eval-in> Hanmac => nil (http://eval.in/16775)
<epochwolf> unstable: [].method(:flatten).source_location
markalanevans has joined #ruby
centipedefarmer has quit [Remote host closed the connection]
<Hanmac> Spooner: i forgot again to test if pry works with my stuff too shame on me :(
robscomputer has quit [Read error: Connection reset by peer]
robscomputer has joined #ruby
<Spooner> I have no idea.
jnoob22 has quit [Read error: Connection reset by peer]
jnoob22_ has joined #ruby
<unstable> [4] pry(main)> show-source Array#flatten
<unstable> Error: Cannot locate this method: flatten.
Evropi has joined #ruby
<Spooner> You need to gem install pry-doc
<MrZYX> unstable: that ruby-doc link you just posted has a toggle source link...
<Spooner> For access to C code.
w1ntermute has joined #ruby
<unstable> MrZYX: Excellent, thanks a lot.
V8Energy has joined #ruby
<Hanmac> Spooner: does show-source also work for C++ Gems? and that is needed to get it working?
<Spooner> No idea.
<Evropi> Hi, try to create a small server program that uses sqlite3-ruby. http://sqlite-ruby.rubyforge.org/sqlite3/classes/SQLite3/Database.html#M000093 says type translation is disabled when using the .new method. This is probably just poor documentation, but does this basically mean that TEXT won't be interpreted as VARCHAR or whatever (SQLite is very clever about that stuff)
<Evropi> s/try/trying
<Spooner> Hanmac, Just try it ;)
yxhuvud has joined #ruby
pkrnj has joined #ruby
mayankkohaley has quit [Ping timeout: 264 seconds]
carloslopes has quit [Remote host closed the connection]
rakl has joined #ruby
yxhuvud2 has quit [Ping timeout: 258 seconds]
s2013 has joined #ruby
kpshek has joined #ruby
wolcanus has joined #ruby
<unstable> ok, show-source works fine after installing pry-doc
<banister`sleep> damnit, anyone here experienced with sinatra?
<Spooner> unstable, You can also use show-doc
V8Energy_ has joined #ruby
V8Energy has quit [Ping timeout: 256 seconds]
ToApolytoXaos has quit [Quit: Leaving]
hmarr has joined #ruby
<peta_> ruby is a strange language
<peta_> it actively tries to destroy everything I have learned about OOP during the recent years
xcv has joined #ruby
<banister`sleep> peta_: like what for example
Morkel has quit [Quit: Morkel]
<Hanmac> peta_: maybe that what you learn before was wrong? ;P
<peta_> lol … dont think so
<Evropi> to be honest, I think OO *really* makes sense in fully OO languages. Which is why most people don't use it when programming in C++ (actually just C)
<r0bgleeson> peta_: did you come from Java?
<banister`sleep> peta_: can you give an example
<banister`sleep> peta_: of one OOP preconception it's destroying
<Evropi> C++ is the worst implementation of OO I've ever seen.
yashshah has quit [Ping timeout: 264 seconds]
<Hanmac> peta_: let me guess you are come from PHP ?
<Spooner> Evropi, Even compared to PHP? :D
<banister`sleep> Hanmac: shush, i want to hear an actual example
<Evropi> xD
<peta_> e.g. how "inheritance" is accomplished. that including modules is encourage over classic inheritance. but that alone is something I can get used to
Elhu has joined #ruby
<banister`sleep> peta_: including modules is not encouraged over classical inheritance, wtf
alo1 has joined #ruby
<Hanmac> with including, extending , and prepending you have 100% control in wich order the ancestor chain is builded
Elhu has quit [Client Quit]
<Spooner> Compared to traditional multiple inheritance, it is a joy ;)
KazW_ is now known as KazW
xcv has quit [Ping timeout: 264 seconds]
<peta_> I've read many source that were encouraging module includes over classic inheritance chains. quoting that e.g. rails is using module includes all over the place instead of class based inheritance
<s2013> whats the difference between lambda and proc?
<peta_> then it's hard for me to get used how to the fact that both, classes and class instances can have instance attributes
<injekt> how they handle arguments
<injekt> s2013: ^
dooleyburger has quit [Ping timeout: 256 seconds]
forrest has quit [Quit: Leaving]
<peta_> and that there is even another dimensions when a class is "opened"
<injekt> and return statements
<injekt> unfortunately
<Hanmac> s2013: procs are a bit more lazy about the paramters (so they can be nil)
ebobby has joined #ruby
kiyan has quit [Quit: Leaving]
<Hanmac> peta_: there are ways that prevent an class from opening again ... but they are black magic (C++ has "final" think about that)
<peta_> I dont want black magic
balishag_ has quit [Ping timeout: 255 seconds]
<peta_> I just want to get comfortable to vanilla Ruby
fermion has quit [Quit: Computer has gone to sleep.]
mneorr has joined #ruby
<Hanmac> peta_: with #freeze you can prevent an object from been changed ... that works on classes too
<EvErLaSt> aaaahhhhh why do some classes have a is_a method and some don't
<MrZYX> there's only a is_a? method
baphled_ has joined #ruby
<Hanmac> i think he means the to_* methods
<s2013> is_a? is to check if its n array
alo1 has quit [Quit: Lost terminal]
<injekt> no
<injekt> it's not
wargasm has joined #ruby
<wagster> [].is_a? Array
<EvErLaSt> stupid ? marks are killing me lol
<joshu> hi is this ok to do in ruby HEROKU_URL + 'access_token=' + CLIENT_SECRET + '&file_name=' + FILE_NAME
artemeff has joined #ruby
<injekt> joshu: yes, but interpolation is much nicer imo
<joshu> injekt can you please explain and new to ruby
<injekt> joshu: "#{HEROKU_URL}?access_token=#{CLIENT_SECRET}..etc"
nga4 has quit [Ping timeout: 276 seconds]
spider-mario has quit [Read error: Connection reset by peer]
atmosx has quit [Quit: And so the story goes…]
ph^ has quit [Remote host closed the connection]
watsonx has joined #ruby
drumond19 has joined #ruby
watsonx is now known as wedgex
<waxjar_> i'd recommend using the the uri library from the std lib if you're building URIs, there's so much that can go wrong
arya__ has quit [Ping timeout: 256 seconds]
mercwithamouth has quit [Ping timeout: 256 seconds]
chessguy has joined #ruby
Skofo has joined #ruby
<joshu> injekt I understand that looks cleaner to me thanks!
<joshu> waxjar_ I will have a look at that link
d2dchat has quit [Remote host closed the connection]
<injekt> joshu: You should check out the recommendation from waxjar_ too, I agree
<injekt> heh
nomenkun has quit [Remote host closed the connection]
soulisson has joined #ruby
Guest59169 is now known as martxel
martxel has quit [Changing host]
martxel has joined #ruby
invisime has quit [Quit: Leaving.]
mneorr has quit [Ping timeout: 246 seconds]
interactionjaxsn has quit [Remote host closed the connection]
interactionjaxsn has joined #ruby
wallerdev has joined #ruby
Al__ has quit [Quit: Al__]
benlieb has joined #ruby
gyre007 has joined #ruby
Tricon has joined #ruby
ekampf has quit [Quit: ekampf]
<joshu> if it's not a URL as above is the interpolation is applicable?
slyv has joined #ruby
zmanfx has quit [Ping timeout: 245 seconds]
<EvErLaSt> does is_a? only work when testing built in classes?
kayloos has quit [Remote host closed the connection]
jerius has quit [Ping timeout: 252 seconds]
<injekt> EvErLaSt: no
<injekt> EvErLaSt: it's defined on Object
<waxjar_> joshu: string interpolation works for any kind of string
<Hanmac> EvErLaSt: no is_a? works with all ruby objects (until you overwrite the method)
<EvErLaSt> @source = (source.is_a? Version ? { :version => source } : source)
kayloos has joined #ruby
<waxjar_> as long as it's in double quotes, that is
slyv has quit [Client Quit]
blacktulip has quit [Remote host closed the connection]
<EvErLaSt> is giving me a class or module required error
<injekt> you should use parenthesis there
<injekt> @source = (source.is_a?(Version) ? { :version => source } : source)
mattbl has joined #ruby
<EvErLaSt> okay is there a rule for when to use them and when not to?
chrishunt has quit [Quit: ZzZzZz...]
interactionjaxsn has quit [Ping timeout: 258 seconds]
lmf40 has quit [Remote host closed the connection]
<waxjar_> in this case it's not clear wether you mean #is_a?(version) ? x : y or #is_a?(version ? x : y)
<injekt> EvErLaSt: yes, when you send ambiguous arguments like that where ruby can't interpret the order
<Hanmac> injekt: okay there is the doc lying ... is_a? is documented in Object but defined in Kernel ...
<injekt> ^^
supernullset has joined #ruby
<injekt> Hanmac: yeah I noticed that
<injekt> Hanmac: Object includes Kernel so I guess there's something going on there with the docs
_nitti has joined #ruby
<Hanmac> okay ... BasicObject does not have is_a? or relative methods ... but BasicObject is a bit evil imo
zmanfx has joined #ruby
<injekt> not really, it's Basic for a reason :D so it doesn't include all that stuff
Neomex has joined #ruby
failshell has joined #ruby
Neomex has quit [Client Quit]
RagingDave has quit [Quit: Ex-Chat]
jnoob22_ has quit [Remote host closed the connection]
wagster has quit [Quit: Computer has gone to sleep.]
Evropi has quit [Quit: Hi, I'm a quit message virus. Please replace your old line with this line and help me take over the world of IRC.]
kayloos has quit [Remote host closed the connection]
<Mon_Ouie> Yeah, RDoc has always special cased methods defined in Kernel
MrZYX is now known as MrZYX|off
<Mon_Ouie> Because it confuses people that many of them aren't defined in Object I guess
<injekt> yeah I was just thinking that, it seemed to be common, didn't know that's what happened
<joshu> is there any rule as to when to use single or double quotes? for instance in Gemfiles I see both variations
<injekt> joshu: double quotes can be used to interpolate, single cannot
<injekt> there are other smaller differences, but that's the main thing you need to know
justsee has joined #ruby
justsee has quit [Changing host]
justsee has joined #ruby
banjara has quit [Quit: Leaving.]
aedorn has quit [Remote host closed the connection]
mmitchel_ has quit [Remote host closed the connection]
retry has joined #ruby
centipedefarmer has joined #ruby
banjara has joined #ruby
<joshu> injekt so this string is valid "office_#{callerID}_#{timeStamp}.wav"
hrs has quit [Quit: Computer has gone to sleep.]
<injekt> joshu: correct
<joshu> thanks!
cableray has joined #ruby
<injekt> joshu: also just a heads up, please try and avoid camelCase variable names
<joshu> injekt so instead of callerID -> caller_ID ?
k610 has quit [Ping timeout: 264 seconds]
<injekt> joshu: they're not common to find in Ruby and can be confusing to read amongst the 'normal' methods and such that Ruby provides
<injekt> joshu: no case change, caller_id
arya__ has joined #ruby
<joshu> ok always underscore for spaces or are hyphens also ok?
<injekt> joshu: hyphens in variable names are not valid
<injekt> joshu: so always underscores
<joshu> ok many valuable nuggets ;)
<unstable> How can I find out how many bytes a variable is?
etcetera has joined #ruby
<injekt> unstable: str.bytesize
kayloos has joined #ruby
jacobw has quit [Quit: WeeChat 0.4.0]
samuelj has quit [Quit: leaving]
<injekt> ah wait maybe you don't mean that
axl_ has left #ruby [#ruby]
<injekt> or maybe you do, who knows
<joshu> what about using all caps as I did when I first asked about joining strings…such as HEROKU_URL
<injekt> joshu: those are constants, they're different
<injekt> joshu: with those, you have them correct, all upcase
wedgex_ has joined #ruby
<joshu> awesome I'm a variable master now haha
<injekt> joshu: class names are also constants, but you would camel case them
wedgex has quit [Quit: leaving]
vlad_starkov has quit [Remote host closed the connection]
etcetera has quit [Client Quit]
<injekt> joshu: so, `class Person` would be different from `PERSON = "John"`
<unstable> injekt: thanks!
<injekt> joshu: Person, PERSON, @person, @@person, $person, person; class(constant), constant, instance variable, class variable, global variable, local variable
aedorn has joined #ruby
<injekt> joshu: just to confuse you :)
<injekt> unstable: np!
cardoni has joined #ruby
kirun has quit [Quit: Client exiting]
<joshu> injekt haha
i_s has joined #ruby
pkrnj has quit [Quit: Computer has gone to sleep.]
<injekt> joshu: here's them all in code https://gist.github.com/injekt/1e3e8676fd6082fef513
mattbl has quit [Quit: This computer has gone to sleep]
jbueza has joined #ruby
jbueza has quit [Max SendQ exceeded]
alanp has quit [Read error: Connection reset by peer]
<banister`sleep> how do i do the equivalent of this, but of a rails app? https://gist.github.com/banister/5416580
alanp has joined #ruby
`brendan has quit [Quit: - nbs-irc 2.39 - www.nbs-irc.net -]
alanp has quit [Read error: Connection reset by peer]
jbueza has joined #ruby
alanp has joined #ruby
<injekt> banister`sleep: #ror might help more, it would be more complex doing the channel stuff in rails
csaunders has quit [Quit: Computer has gone to sleep.]
emergion has joined #ruby
<joshu> injekt very kind of you!
mattbl has joined #ruby
gaahrdner has quit [Remote host closed the connection]
d2dchat has joined #ruby
EPIK has joined #ruby
_cupnoodles1 has joined #ruby
solidoodlesuppor has quit [Remote host closed the connection]
_cupnoodles has quit [Quit: Ping]
V8Energy_ has quit [Read error: Connection reset by peer]
mjago` has joined #ruby
<injekt> joshu: happy coding!
<injekt> g'night
<unstable> I want to have a rails controller that receives an ajax call from a javascript web client.. and feeds it 20k of json data from api calls that I wrote methods for.
V8Energy has joined #ruby
<joshu> injekt thanks night hope to catch you again ;)
<unstable> I'm not exactly sure where to get started. I've written all the methods for yelp/google maps. I have a javascript trigger that when it occurs.. it will do something. I'm not sure how to do the ajax bits.
wgosling has quit [Quit: Konversation terminated!]
KazW has quit [Read error: Connection reset by peer]
Guedes0 has joined #ruby
KazW has joined #ruby
dv_ has joined #ruby
lupine has quit [Excess Flood]
cardoni has quit [Quit: Colloquy for iPad - http://colloquy.mobi]
lupine has joined #ruby
centipedefarmer has quit [Remote host closed the connection]
kjellski has joined #ruby
mjago has quit [Remote host closed the connection]
jlast has quit [Remote host closed the connection]
<kjellski> is there a way to tell the "net/ldap" module that it should use a field other then "password" for the password of the authenticating user?
mercwithamouth has joined #ruby
yxhuvud2 has joined #ruby
<s2013> when do you use super usually?
alexwh has joined #ruby
alexwh has left #ruby [#ruby]
wedgex_ has quit [Remote host closed the connection]
jekotia has joined #ruby
unflores has joined #ruby
yxhuvud has quit [Ping timeout: 264 seconds]
maxmanders has quit [Quit: Computer has gone to sleep.]
mattbl has quit [Quit: This computer has gone to sleep]
<waxjar_> s2013: when your class inherits from another class and you'd like to call the "original" method
schickung has quit [Quit: schickung]
picca_ has joined #ruby
splittingred has quit [Quit: splittingred]
<s2013> oh ok
pioz has joined #ruby
wmoxam has joined #ruby
bricker_ has joined #ruby
_cupnoodles1 has quit [Quit: Disconnecting]
drumond19 has quit [Remote host closed the connection]
Davey has quit [Quit: Computer has gone to sleep.]
drumond19 has joined #ruby
ShellFu has joined #ruby
artemeff has quit [Remote host closed the connection]
bricker has quit [Ping timeout: 245 seconds]
staafl has joined #ruby
RORgasm has quit [Remote host closed the connection]
hmarr has quit []
athst has quit [Quit: athst]
maetthew has quit [Ping timeout: 264 seconds]
pitzips has quit [Ping timeout: 256 seconds]
picca_ has quit [Remote host closed the connection]
phinfonet has quit [Ping timeout: 258 seconds]
Liquid-- has quit [Quit: Textual IRC Client: www.textualapp.com]
jtharris has quit [Quit: WeeChat 0.4.0]
Eiam has quit [Quit: Textual IRC Client: http://www.textualapp.com/]
maetthew has joined #ruby
vlad_starkov has joined #ruby
arya__ has quit []
sailias has joined #ruby
bean has quit [Quit: Computer has gone to sleep.]
arya__ has joined #ruby
pcarrier has quit [Quit: Computer has gone to sleep.]
Banistergalaxy has quit [Ping timeout: 240 seconds]
arya__ has quit [Client Quit]
wolcanus_ has joined #ruby
yashshah has joined #ruby
pcarrier has joined #ruby
wolcanus_ has quit [Remote host closed the connection]
arya__ has joined #ruby
theRoUS has quit [Ping timeout: 256 seconds]
pkrnj has joined #ruby
agarie has joined #ruby
wolcanus has quit [Ping timeout: 252 seconds]
emergion has quit [Quit: Computer has gone to sleep.]
sepp2k has quit [Ping timeout: 256 seconds]
unflores has quit [Quit: unflores]
malcolmva has quit [Read error: Connection reset by peer]
malcolmva has joined #ruby
fermion has joined #ruby
fermion has quit [Remote host closed the connection]
sambao21 has quit [Quit: Computer has gone to sleep.]
maetthew has quit [Ping timeout: 245 seconds]
erry has quit [Remote host closed the connection]
thams has quit [Quit: thams]
mattbl has joined #ruby
<tommylommykins> hmm
<tommylommykins> I want to rescind the GIL while my C extension does its work
<tommylommykins> how can I do that?
vlad_starkov has quit [Ping timeout: 258 seconds]
zph has joined #ruby
felixjet has quit [Ping timeout: 252 seconds]
wmoxam has quit [Ping timeout: 264 seconds]
rton has left #ruby [#ruby]
kpshek has quit []
soulisson has quit [Quit: Quitte]
johnnyfuchs has quit [Quit: Leaving.]
frem has quit [Ping timeout: 256 seconds]
moted has left #ruby [#ruby]
Eiam has joined #ruby
Eiam has quit [Changing host]
Eiam has joined #ruby
zph has quit [Client Quit]
johnkary has quit [Quit: @johnkary]
robottinosino has quit [Quit: WeeChat 0.4.0]
<ShellFu> hey all. Im using unicorn. When I start my app workers start. stay up for a little bit then get reaped, and my app goes bye bye. Ive ran without -D but I get no additional output that is helpful.
<ShellFu> Any ideas or how I can have unicorn be more verbose. Didnt see a verbose option
ph^ has joined #ruby
netto has joined #ruby
BrianJ has joined #ruby
nomenkun has joined #ruby
moted has joined #ruby
mark_locklear has quit [Ping timeout: 260 seconds]
rickmasta has joined #ruby
ryannielson has joined #ruby
newUser1234 has quit [Remote host closed the connection]
tesuki has quit [Remote host closed the connection]
elux has quit [Quit: Leaving...]
basex has quit [Quit: basex]
ph^ has quit [Ping timeout: 272 seconds]
enebo has quit [Quit: enebo]
nomenkun has quit [Ping timeout: 245 seconds]
arya__ has quit []
wgosling has joined #ruby
gstamp has joined #ruby
sepp2k has joined #ruby
nateberkopec has quit [Quit: Linkinus - http://linkinus.com]
LennyLinux has quit [Remote host closed the connection]
sailias has quit [Quit: Leaving.]
idkazuma has joined #ruby
athst has joined #ruby
bhaarat has quit [Quit: bhaarat]
atno has quit [Remote host closed the connection]
pitzips has joined #ruby
epsylon has quit [Ping timeout: 264 seconds]
balishag has joined #ruby
Mon_Ouie has quit [Ping timeout: 264 seconds]
bhaarat has joined #ruby
zph has joined #ruby
xardas has quit [Ping timeout: 258 seconds]
mahmoudimus has joined #ruby
veinofstars has quit [Quit: veinofstars]
Tricon has quit [Ping timeout: 256 seconds]
Yarou has joined #ruby
atno has joined #ruby
randomautomator has joined #ruby
tootubular has quit [Quit: tootubular]
carlyle has quit [Remote host closed the connection]
chxane has quit [Read error: Connection reset by peer]
mattbl has quit [Quit: This computer has gone to sleep]
atno__ has joined #ruby
centipedefarmer has joined #ruby
randomautomator has quit [Read error: Connection reset by peer]
randomautomator has joined #ruby
epsylon has joined #ruby
pioz has quit [Quit: This computer has gone to sleep]
bitcycle has joined #ruby
<bitcycle> Hey all. Can someone tell me how to drop into the ruby interactive console from within a script similar to python's "import pdb; pdb.set_trace()"?
bradleyherman has joined #ruby
nezumi has quit [Ping timeout: 276 seconds]
zmanfx has quit [Ping timeout: 245 seconds]
<bradleyherman> when making an array, why does this work: [1,2, *(100..200)], but not [1,2, *(100..200), *(300..400)]
ariedler has quit [Remote host closed the connection]
<sam113101> where is MRI's source code hosted?
ephemerian has left #ruby [#ruby]
_nitti has quit [Remote host closed the connection]
<bradleyherman> sam113101: isn't MRI just in the ruby source code?
zmanfx has joined #ruby
<sam113101> w-wat do yo umean
ebobby has left #ruby [#ruby]
<bradleyherman> ruby, the language, is the interpreter
LaPetiteFromage has joined #ruby
mikepack has quit [Remote host closed the connection]
callmeivan has joined #ruby
newUser1234 has joined #ruby
<sam113101> yeah I can download the source code
<sam113101> but isn't there a git repo or something?
JMcAfreak has joined #ruby
<sam113101> wait
<bradleyherman> ruby/ruby
<sam113101> ok I fould it
<bradleyherman> and i found an answer to my question on the array.. .aparently thats a bug that was fixed in 1.9, so i'm outta luck :(
<sam113101> found*
yxhuvud has joined #ruby
<callmeivan> i am trying to click this button with watir
<callmeivan> <button onclick="reboot()" id="btnReboot">
<callmeivan> <script>document.write(gVarReboot);</script>Reboot
<callmeivan> </button>
bricker_ is now known as bricker
nveselinov has joined #ruby
<joshu> anyone know how I can check my ruby code for syntax errors, variable errors in sublime text 2? i've installed sublimelinter but it doesn't catch errors such as wrong variable names or even if I forget "#{test_var" the last bracket in a string
mattbl has joined #ruby
<callmeivan> but browser.button(:id, "btnReboot").click does not seem to work because it cannot find it because of all the java shit
ZachBeta has joined #ruby
dv_ has quit [Ping timeout: 245 seconds]
mattbl has quit [Client Quit]
Nisstyre-laptop has quit [Quit: Leaving]
slainer68 has joined #ruby
<callmeivan> this is what the source looks like
zmanfx has quit [Ping timeout: 245 seconds]
<callmeivan> anybody any ideas :( ?
yxhuvud2 has quit [Ping timeout: 272 seconds]
wsterling has quit [Remote host closed the connection]
thone_ has quit [Ping timeout: 248 seconds]
bhaarat has quit [Quit: bhaarat]
jhn has quit [Ping timeout: 245 seconds]
io_syl has quit [Ping timeout: 264 seconds]
feedbackloop_ has joined #ruby
zmanfx has joined #ruby
tesuki has joined #ruby
SCommette has quit [Quit: SCommette]
ShellFu is now known as ShellFu_AFK
jacktrick has quit [Quit: Leaving]
ShellFu_AFK has left #ruby ["Leaving"]
emergion has joined #ruby
Myconix has joined #ruby
idkazuma has quit [Remote host closed the connection]
ariedler has joined #ruby
lethjakm1 has quit [Ping timeout: 276 seconds]
kjellski has quit [Read error: Connection reset by peer]
tesuki has quit [Ping timeout: 260 seconds]
dv_ has joined #ruby
Xeago has quit [Remote host closed the connection]
<callmeivan> Framesource: http://pastebin.com/hVGyjd6h
d11wtq has quit [Ping timeout: 256 seconds]
newUser1234 has quit [Remote host closed the connection]
Davey has joined #ruby
emmanuelux has joined #ruby
<joshu> is this the way to get server time which is in UTC to CEST Time.now + Time.zone_offset('CEST')
al3xnull has joined #ruby
<ariedler> joshu: Time.zone.now ?
alainus has joined #ruby
evenix has quit [Remote host closed the connection]
<alainus> hi, does ruby allow something similar to this? => array = [ "item", "item2" if something]
codezombie has quit [Quit: Linkinus - http://linkinus.com]
<joshu> this is on a cloud service server in the US and I want European time is Time.zone.now the way to do it?
Scriptor has joined #ruby
<ariedler> joshu: I would think so ...
<ariedler> joshu: or Time.new(offset: ...)
<alainus> or should I do array << "item2" if something, for each one of the dynamically added items
rickmasta has quit [Quit: Leaving...]
al3xnull has quit [Remote host closed the connection]
<joshu> ariedler do I set TIme.zone = 'CEST' and then TIme.zone.now
chrishunt has joined #ruby
<ariedler> joshu: I gave you something that was rails only my bad :)
ixti has quit [Quit: WeeChat 0.4.0]
<joshu> ariedler no worries
<callmeivan> i suppose i do need to specify the path somehow, which is //*[@id="btnReboot"]
<ariedler> Time.new(offset: ....) will work though given you know the offset of CEST
<bricker> I am looking at the documentation, but I just can't figure out what the real, practical difference is between JSON.parse and JSON.load . Can someone explain it to me?
vlad_starkov has joined #ruby
<bricker> If I pass a JSON string into either one, I get the exact same return value.
acrussell has quit [Quit: Leaving.]
jonathanwallace has quit [Ping timeout: 246 seconds]
rickmasta has joined #ruby
lkba has joined #ruby
<ariedler> bricker: one is part of YAML
emergion has quit [Read error: Connection reset by peer]
xcv has joined #ruby
Skofo has quit [Quit: Leaving]
<ariedler> bricker: infact one is commonly implemented in terms of the other :)
vlad_starkov has quit [Ping timeout: 245 seconds]
<callmeivan> hmm, browser.button(:xpath, '//*[@id="btnReboot"]').click does not work
rburton- has joined #ruby
<ariedler> callmeivan: what lib
<callmeivan> watir
<ariedler> browser.element_by_xpath() instead maybe ?
wolcanus has joined #ruby
thone has joined #ruby
<ariedler> (it just takes the 2nd argument FYI)
<callmeivan> thanks, gonna try
balishag has quit [Ping timeout: 258 seconds]
<ariedler> also you may have wanted just *[@id] depending on your scenario :)
robottinosino has joined #ruby
tyl has quit [Quit: Computer has gone to sleep.]
<ariedler> brb
ariedler has quit [Remote host closed the connection]
emergion has joined #ruby
ariedler has joined #ruby
wolcanus has quit [Ping timeout: 272 seconds]
fschuindt has joined #ruby
<ariedler> and back!
pkrnj has quit [Quit: Computer has gone to sleep.]
emergion has quit [Ping timeout: 264 seconds]
chessguy has quit [Remote host closed the connection]
Spooner has quit [Quit: Leaving]
tattedsxy33 has joined #ruby
tommyvyo has quit [Quit:]
iamjarvo has joined #ruby
maetthew has joined #ruby
<rburton-> are there any UI style generators
Myconix has quit [Quit: Leaving.]
jbueza has quit [Quit: Leaving.]
freeayu has joined #ruby
angusiguess has quit [Ping timeout: 248 seconds]
tattedsxy33 has quit [Killed (idoru (Spam is off topic on freenode.))]
<rburton-> I found http://jgilfelt.github.io/android-actionbarstylegenerator/ but wondering if there was something better
wesside has quit [Quit: Computer has gone to sleep.]
johnkary has joined #ruby
dankest has joined #ruby
tattedsxy33 has joined #ruby
phinfonet has joined #ruby
athst has quit [Quit: athst]
predator117 has quit [Ping timeout: 256 seconds]
thone has quit [Ping timeout: 248 seconds]
w1ntermute has quit [Ping timeout: 260 seconds]