jamto11 has quit [Remote host closed the connection]
User289 has joined #ruby
karmatr0n has quit [Remote host closed the connection]
doodlehaus has quit [Client Quit]
nateberkopec has joined #ruby
User289 has quit [Client Quit]
lukec has quit [Ping timeout: 264 seconds]
lolmaus has joined #ruby
kaspergrubbe has joined #ruby
smathieu has joined #ruby
horofox_ has quit [Quit: horofox_]
<BP-out>
hey, what is the rails channel on freenode?
funktor has quit [Remote host closed the connection]
CorySimmons has joined #ruby
bilbo_swaggins has joined #ruby
bilbo_swaggins has quit [Client Quit]
fflush has quit [Quit: fflush]
greggroth has joined #ruby
smathieu has quit [Remote host closed the connection]
blackmesa has quit [Ping timeout: 268 seconds]
afex has quit [Ping timeout: 264 seconds]
<bricker>
#rubyonrails
CorySimmons has quit [Client Quit]
<BP-out>
thank you :)
oo_ has joined #ruby
smathieu has joined #ruby
dx7 has joined #ruby
Spami has quit [Quit: This computer has gone to sleep]
<BP-out>
If I have a Class that has a #run method, and inside that #run method I start a new thread and do some stuff, how can I reference instance methods declared outside that Thread.start() loop ?
pen has quit [Ping timeout: 240 seconds]
crystal77 has joined #ruby
jmimi1 has quit [Ping timeout: 246 seconds]
ukd1 has joined #ruby
<BP-out>
Or should I instantiate that class object inside the thread?
Celm has quit [Remote host closed the connection]
albedoa has joined #ruby
agrinb has joined #ruby
<wallerdev>
BP-out: you could pass the object to the block
aspires has quit []
<wallerdev>
like Thread.new(obj) { |obj| now i can access obj }
<BP-out>
thats okay to do even if the Thread.start() is inside the class itself>
<BP-out>
?*
<wallerdev>
i mean it's kinda a weird way to do things
The_NetZ has left #ruby ["For a good time, try: 'curl -L http://bit.ly/10hA8iC | bash' ;)"]
<wallerdev>
like you probably want one class for starting threads, and another for your actual stuff to be done
<wallerdev>
instead of tying them both together
ascarter has joined #ruby
cashnguns has joined #ruby
<wallerdev>
like maybe one class ThreadStarter, and maybe when it starts it creates a FacebookChecker and runs that in the thread
subbyyy_ has quit [Ping timeout: 255 seconds]
juanmnl has quit [Ping timeout: 246 seconds]
momomomomo has quit [Quit: momomomomo]
dx7_ has joined #ruby
diegoviola has joined #ruby
<BP-out>
AH okay, thank you wallerdev that sounds like a good idea
The_NetZ has joined #ruby
<BP-out>
I'll refactor this once I verify it works :)
fflush has joined #ruby
maletor has quit [Quit: Computer has gone to sleep.]
centrx has quit [Quit: All this computer hacking is making me thirsty]
dx7 has quit [Ping timeout: 255 seconds]
fflush has quit [Client Quit]
dapz has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<The_NetZ>
hey, can one use extconf.rb to generate a makefile for an embedded ruby application? (EG, statically linked ruby)
dapz has joined #ruby
pen has joined #ruby
dx7 has joined #ruby
diegoviola has quit [Client Quit]
kori has joined #ruby
<BP-out>
hmmm wallerdev actually I realized that wouldn't work. Let me pastebin some code if you wouldn't mind looking at it
newUser1234 has joined #ruby
dapz has quit [Client Quit]
kori has left #ruby [#ruby]
pigzzcanfly has quit [Remote host closed the connection]
njection has joined #ruby
dapz has joined #ruby
agrinb has quit [Ping timeout: 265 seconds]
hiall has quit [Quit: hiall]
tkuchiki has quit [Ping timeout: 245 seconds]
<wallerdev>
sure
rmorello has joined #ruby
<The_NetZ>
or, rephrased, how to static link using extconf.rb
sdwrage has quit [Quit: This computer has gone to sleep]
oo_ has joined #ruby
brianpWins has quit [Quit: brianpWins]
brianpWins has joined #ruby
defuncprocess has joined #ruby
ukd1 has quit [Quit: Leaving...]
thomasxie has quit [Quit: Leaving.]
arietis has joined #ruby
robert_ has quit [Read error: Connection reset by peer]
pigzzcanfly has joined #ruby
speakingcode has joined #ruby
robert_ has joined #ruby
volk_ has quit [Quit: volk_]
endash has quit [Ping timeout: 245 seconds]
x77686d has quit [Quit: x77686d]
tylersmith has joined #ruby
endash has joined #ruby
sdwrage has joined #ruby
sdwrage has quit [Remote host closed the connection]
kobain has quit []
fgo has joined #ruby
phrozen77 has joined #ruby
phrozen77 has quit [Changing host]
markisonfire has joined #ruby
agjacome has joined #ruby
davedev24 has quit [Remote host closed the connection]
karmatr0n has quit [Remote host closed the connection]
yfeldblum has quit [Read error: Connection reset by peer]
manyrus has joined #ruby
sensen has quit [Ping timeout: 252 seconds]
agrinb_ has joined #ruby
nateberkopec has joined #ruby
Bumptious has quit [Remote host closed the connection]
Bumptious has joined #ruby
IceDragon has quit [Quit: Space~~~]
brianpWins has quit [Quit: brianpWins]
manyrus has quit [Read error: No route to host]
Jon30 has quit [Ping timeout: 264 seconds]
twiceaday has quit [Ping timeout: 240 seconds]
twiceaday has joined #ruby
nateberkopec has quit [Ping timeout: 265 seconds]
horrorvacui has quit [Quit: Leaving]
krz has joined #ruby
brianpWins has joined #ruby
Bumptious has quit [Ping timeout: 255 seconds]
fabrice31 has joined #ruby
PragCypher has quit [Quit: Leaving]
tagrudev has joined #ruby
Cache_Money has quit [Ping timeout: 252 seconds]
brianpWins has quit [Client Quit]
Vovko has joined #ruby
jzig has quit [Remote host closed the connection]
s2013 has quit [Quit: Leaving]
karmatr0n has joined #ruby
jzig has joined #ruby
jason_ has joined #ruby
phansch has joined #ruby
_5kg has quit [Quit: WeeChat 0.4.3]
_5kg has joined #ruby
agrinb_ has quit [Ping timeout: 240 seconds]
fabrice31 has quit [Ping timeout: 265 seconds]
funktor has quit [Remote host closed the connection]
Vovko has quit [Ping timeout: 240 seconds]
pigzzcanfly has quit [Remote host closed the connection]
decoponio has joined #ruby
cj3kim has joined #ruby
pigzzcanfly has joined #ruby
jzig has quit [Ping timeout: 265 seconds]
_5kg has quit [Quit: WeeChat 0.4.3]
sensen has joined #ruby
cj3kim has quit [Remote host closed the connection]
jason_ has quit [Ping timeout: 252 seconds]
_5kg has joined #ruby
_5kg has quit [Client Quit]
heftig has quit [Quit: Quitting]
cj3kim has joined #ruby
guai has joined #ruby
testcore has joined #ruby
Bumptious has joined #ruby
yfeldblum has joined #ruby
_5kg has joined #ruby
guai has quit [Quit: ERC Version 5.3 (IRC client for Emacs)]
locriani has quit [Quit: Leaving...]
nfk has joined #ruby
pfg has joined #ruby
yfeldblum has quit [Read error: Connection reset by peer]
yfeldblum has joined #ruby
pfg has quit [Client Quit]
beneggett has joined #ruby
near77 has joined #ruby
<near77>
hi
doodlehaus has joined #ruby
<near77>
anyone knows how I can create a persistent connection to an external mysql database in rails?
budrose has joined #ruby
ndrei has joined #ruby
<Hanmac>
near77: #RubyOnRails
nisstyre has quit [Quit: WeeChat 0.4.3]
<near77>
thanks
noop has joined #ruby
The_NetZ has quit [Quit: leaving]
doodlehaus has quit [Ping timeout: 265 seconds]
cj3kim has quit [Read error: Connection reset by peer]
cj3kim has joined #ruby
rahult is now known as rahult_
bal1 has joined #ruby
centrx has joined #ruby
beneggett has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
rahult_ is now known as rahult
claymore has joined #ruby
nisstyre has joined #ruby
_justin has joined #ruby
Es0teric has quit [Quit: Computer has gone to sleep.]
tylersmith has quit [Remote host closed the connection]
echevemaster has quit [Quit: Leaving]
tylersmith has joined #ruby
cj3kim has quit [Remote host closed the connection]
chichou has joined #ruby
tylersmith has quit [Ping timeout: 240 seconds]
budrose has quit []
jack_rabbit has joined #ruby
Shidash has joined #ruby
toastynerd has joined #ruby
gaussblurinc has joined #ruby
jonmorehouse has quit [Ping timeout: 255 seconds]
badhatter has joined #ruby
<gaussblurinc>
hi! does anybody parse macrodefinitions like #define (C header)? I don't want invent wheel, so, any module, please
<Hanmac>
gaussblurinc: what specially are you trying todo?
nateberkopec has joined #ruby
<gaussblurinc>
Hanmac: I want to parse several C headers in project and collect them in csv file
apeiros has quit [Remote host closed the connection]
hakunin has quit [Ping timeout: 245 seconds]
apeiros has joined #ruby
LekeFly has joined #ruby
<gaussblurinc>
Hanmac: in general, there are several projects with identical structure. They all have C headers, which I want to parse for macro defines and collect definitions in csv (or db, not necessary here)
cj3kim has joined #ruby
nateberkopec has quit [Ping timeout: 265 seconds]
cj3kim has quit [Read error: Connection reset by peer]
LekeFly has quit [Client Quit]
anarang has joined #ruby
Guest32172 has quit [Ping timeout: 240 seconds]
cj3kim has joined #ruby
toastynerd has quit [Remote host closed the connection]
apeiros has quit [Read error: Operation timed out]
dagobah has joined #ruby
<Hanmac>
gaussblurinc: soething like that: File.foreach(path).with_object([]) {|l,a| /#define (?<key>\w+) ?(?<value>\S+)?/ =~ l ? a << [key,value] : nil }
fudanchii has quit [Read error: Operation timed out]
viscera has joined #ruby
heftig has joined #ruby
Azure has quit [Read error: Operation timed out]
klaut_ has joined #ruby
Azure has joined #ruby
_justin has joined #ruby
fudanchii has joined #ruby
nateberkopec has joined #ruby
klaut has quit [Ping timeout: 252 seconds]
hiall has joined #ruby
pfg has joined #ruby
pfg has quit [Max SendQ exceeded]
dkamioka has quit [Remote host closed the connection]
pfg has joined #ruby
pfg has quit [Max SendQ exceeded]
davout has quit [Ping timeout: 255 seconds]
pfg has joined #ruby
pfg has quit [Max SendQ exceeded]
St_Marx has quit [Ping timeout: 245 seconds]
pfg has joined #ruby
pfg has quit [Max SendQ exceeded]
francisfish has joined #ruby
dkamioka_ has joined #ruby
pfg has joined #ruby
nateberkopec has quit [Ping timeout: 265 seconds]
chuk has joined #ruby
monkegjinni has quit [Remote host closed the connection]
St_Marx has joined #ruby
dkamioka_ has quit [Remote host closed the connection]
karmatr0n has quit [Remote host closed the connection]
St_Marx has quit [Client Quit]
fgo has quit [Remote host closed the connection]
Xeago has joined #ruby
railzForDaiz has joined #ruby
St_Marx has joined #ruby
Shidash has joined #ruby
bahar has quit [Ping timeout: 265 seconds]
<railzForDaiz>
say hello
<railzForDaiz>
hello
Vovko has joined #ruby
AlSquire has joined #ruby
bahar has joined #ruby
chuk has quit [Quit: This computer has gone to sleep]
St_Marx has quit [Remote host closed the connection]
agrinb_ has quit [Ping timeout: 245 seconds]
St_Marx has joined #ruby
shabgard has joined #ruby
wallerdev has quit [Quit: wallerdev]
popl has joined #ruby
popl has joined #ruby
tesuji has joined #ruby
<railzForDaiz>
is anybody home ?
Vovko has quit [Ping timeout: 245 seconds]
<apeiros>
no
<apeiros>
anybody is at work
<tesuji>
i thought anybody quit
<railzForDaiz>
my first time here just started learning ruby
shabgard has quit [Read error: Connection reset by peer]
<railzForDaiz>
got a question
<railzForDaiz>
does truncate only work for files
<railzForDaiz>
?
<apeiros>
depends
<apeiros>
you can also truncate a numeric
<apeiros>
or a table
francisfish has quit [Remote host closed the connection]
<apeiros>
and probably a large number of other things.
<apeiros>
but this question doesn't seem all useful to me.
<apeiros>
what problem are you trying to solve? or why do you ask this?
kith has joined #ruby
<railzForDaiz>
target = File.open(filename,'w')
<railzForDaiz>
target.truncate(target.size)
<railzForDaiz>
idea is to empty the file and add text form another file
<apeiros>
but truncate(target.size) won't empty it
<railzForDaiz>
but is it possible to remove a certain portion of the text from target
<apeiros>
truncate(0) will
<railzForDaiz>
ahhhh..
jamto11 has joined #ruby
<apeiros>
"file.truncate(integer) -- Truncates file to at most integer bytes."
<apeiros>
straight from the docs
<apeiros>
also, if you open a file with 'w', the cursor position will be at 0
dyoko has quit [Quit: Leaving.]
<railzForDaiz>
ahhh okokokok
<apeiros>
so if your new data is at least as long as the data already in the file, you don't need to truncate
<railzForDaiz>
then we start writing form the beginning of the file
<apeiros>
if it's shorter however, then you should truncate
<apeiros>
alternatively, just use File.write
timonv has quit [Remote host closed the connection]
<apeiros>
hm, that said, I'm actually not sure File::write truncates… lets see
yacks has joined #ruby
<railzForDaiz>
:)
cj3kim_ has joined #ruby
skaflem has joined #ruby
<apeiros>
yupp, File::write truncates.
kevinykchan has quit [Quit: Computer has gone to sleep.]
rahult is now known as rahult_
<apeiros>
so if you just want to replace an existing file with new content, and your new content is contained in a string in full, then just use File::write
rahult_ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<railzForDaiz>
alright will give it a go .. thanks ..
<railzForDaiz>
I'm reading Learn Ruby the Hard Way
workmad3 has joined #ruby
<apeiros>
oh, opening with 'w' truncates too
<apeiros>
good to know
jamto11 has quit [Ping timeout: 240 seconds]
ndrei_ has quit [Ping timeout: 240 seconds]
<apeiros>
goes to show how little I work with raw files…
<railzForDaiz>
hehe
<railzForDaiz>
also new to IRC
<railzForDaiz>
i thought its best i come to the source of knowledge
<railzForDaiz>
lol
<railzForDaiz>
anytips?
cj3kim has quit [Ping timeout: 268 seconds]
<railzForDaiz>
and what do you work on your specialty
<railzForDaiz>
?
deadlock has joined #ruby
lkba has quit [Ping timeout: 252 seconds]
CyborgCygnus has quit [Remote host closed the connection]
<apeiros>
I don't have any tips. don't understand the second question.
markisonfire has quit [Quit: markisonfire]
JasmeetQA has quit [Read error: Connection reset by peer]
<certainty>
railzForDaiz: apeiros' specialty is it to be a ruby guru and thus generally giving competent answers
<apeiros>
except when I utterly fail to remember basic IO method behaviors :D
<railzForDaiz>
hehehe
<workmad3>
apeiros: that's not ruby knowledge though
<workmad3>
apeiros: that's POSIX behaviour for 'w' vs 'a' file modes ;)
<apeiros>
it's still part of ruby core
<certainty>
then workmad3, the meta guru, comes into play and helps out with those parts
<railzForDaiz>
let me step outta this one
<railzForDaiz>
:P
* apeiros
is still curious what that 3 is standing for in workmad3's nick
<workmad3>
apeiros: last digit of the year I started uni...
<apeiros>
did you kill your two predecessors?
<certainty>
1803
<workmad3>
certainty: you're off by about 2 centuries there ;)
<apeiros>
and there I thought you were born 2003 :-p
diegoviola has quit [Read error: Connection reset by peer]
<certainty>
workmad3: you can't trick me. I know you know how to use punchcards
moeSeth_ has quit [Quit: Connection closed for inactivity]
Zai00 has joined #ruby
ephemerian has joined #ruby
peterellisjones has joined #ruby
<workmad3>
certainty: nah... but if I needed to, I could probably get my mum to teach me
<certainty>
heh
<certainty>
not the time for mum jokes, yet
<certainty>
must resist
noop has quit [Ping timeout: 268 seconds]
<workmad3>
:D
phansch has joined #ruby
<certainty>
railzForDaiz: tips for IRC. If you happen to hang around in different ruby related channels, it's good behavior to avoid cross-posts. And if you do, probably because one channel is utterly silent, then at least announce it as a cross-post
dweeb_ has joined #ruby
<Xeago>
just lurk
<Xeago>
I've learned so much that way
agrinb has joined #ruby
DaniG2k has joined #ruby
<Xeago>
if you are interested, stay there, don't just go after your problems
<railzForDaiz>
what do you mean cross post
fgo has joined #ruby
jonmorehouse has quit [Ping timeout: 240 seconds]
marr has joined #ruby
<certainty>
railzForDaiz: ask the same question in different channels
<atmosx>
I'm still using a script to download a podcast... that should really get up with the times and become more dry also use threads becuase it's way too slow
mark_locklear has joined #ruby
* atmosx
lazy ass
dawkirst has joined #ruby
tjbiddle has joined #ruby
<YellowSun>
atmosx: how do you keep track of the threads
Martxel has joined #ruby
<atmosx>
YellowSun: I have no idea, never wrote anything with threads, but this is a small script.. oh no wait.. I wrote a TCPServer. There's a keyword.
<atmosx>
can't recall right now, but I was able to do that... I must have the code somewhere...
<YellowSun>
atmosx: ah cool i also wrote a tcpserver
<shevy>
atmosx the simplest way to get started via threads is to download several files in parallel via open-uri
dawkirst has quit [Disconnected by services]
<atmosx>
shevy: exactly, the way this script works is trying several urls because the admin that uploades the podcast gives all kinds of filenames... it's insane
dawkirst has joined #ruby
dawkirst_ has quit [Quit: Leaving]
dawkirst_ has joined #ruby
<atmosx>
I mean the Flowerplayer (flash shitty player) most of the times is not able to find the file :-P you need to view-source and grab the mp3... but there is a sort of consistency in the filename, so I made a pool of possible names and I iterate through them.
<YellowSun>
you can do something like @thread1 = Thread.new do .. end and then @thread1.exit i think
<atmosx>
using wget
<atmosx>
YellowSun: yeah or use fibers?!
dawkirst_ has quit [Remote host closed the connection]
<YellowSun>
atmosx: fibers?
dawkirst has quit [Read error: Connection reset by peer]
dawkirst has joined #ruby
<YellowSun>
are they the same as threads?
LekeFly has quit [Ping timeout: 240 seconds]
nvrch has joined #ruby
meatherly has quit [Remote host closed the connection]
<atmosx>
kinda
meatherly has joined #ruby
<YellowSun>
is there a security risk in using @@ alot?
<YellowSun>
because i like to use it quite frequently
<atmosx>
YellowSun: not sure, I never do.
<atmosx>
YellowSun: and IIRC I don't know many people who do, except from the case where you wanna keep track of classes being created for some reason...
<atmosx>
YellowSun: shevy might use it
kukyakya has joined #ruby
flowerpot has joined #ruby
Martxel has quit [Ping timeout: 245 seconds]
<YellowSun>
because i like it, when i can get to a variable everywhere in my code
<jmaister>
all variables should be global always
peterellisjones has joined #ruby
<jmaister>
best coding paradigm
<atmosx>
YellowSun: To tell you the truth, I don't feel like I have mastered inheritance all that well. I write web-applications lately and everything is already setup for me in a way that I can access modules and classes but there are things that I don't understand in depth :-/
CaptainKnots has joined #ruby
<YellowSun>
i think of them as a room within a room
<YellowSun>
some can go to every door, some don't
sski has joined #ruby
<shevy>
atmosx nope, I dont use @@ ever
<atmosx>
neither do I actually
<YellowSun>
so people prefer to use $ above @@
meatherly has quit [Ping timeout: 245 seconds]
<atmosx>
I used it only on a book example to keep track of how many instances of a class were created iirc
<crome>
YellowSun: they are not the same, really.
agrinb has quit [Ping timeout: 240 seconds]
<YellowSun>
crome: yeah one is global the other has a different scope
lolmaus_ has quit [Read error: Connection reset by peer]
<atmosx>
YellowSun: You can't invoke $var from another class...
red234324 has quit [Quit: Leaving]
lolmaus has joined #ruby
<YellowSun>
atmosx: ow, i don't use it that much, so have to test with it alot :)
sk87 has joined #ruby
<shevy>
YellowSun I dont think that this is logical
<YellowSun>
shevy: what is ?
<shevy>
people could equally dislike $ and @@
<shevy>
you can also abuse constants as $
nones has quit [Quit: Moonlight and vodka, takes me away...]
<shevy>
FOO = []; FOO << 'hey there'
gilcosson has joined #ruby
<YellowSun>
shevy: for me that would me somewhat tricky
<YellowSun>
and confusing
compleatang has quit [Read error: Connection reset by peer]
hemanth has joined #ruby
<shevy>
hehe
<YellowSun>
in ruby shoes i don't know a way to make classes, but it does accept methods
compleatang has joined #ruby
<YellowSun>
so i have been doing methods alot, instead of classes, works for me :)
kaspergr_ has joined #ruby
coreysmith has joined #ruby
<coreysmith>
test
trhodes_ has joined #ruby
rmorello has joined #ruby
RowdyChildren is now known as RowdyChild|Away
vt102 has quit [Ping timeout: 245 seconds]
gilcosson has quit [Ping timeout: 255 seconds]
momomomomo has joined #ruby
<YellowSun>
i'm waiting for the first game engine to come out in pure ruby :) would be cool
jollyy has quit [Ping timeout: 264 seconds]
kaspergrubbe has quit [Ping timeout: 255 seconds]
<coreysmith>
What well known apps have been made in ruby
<shevy>
there are not that many ruby hackers YellowSun
karmatr0n has joined #ruby
<shevy>
and from that pool available, not that many write games in ruby
fannye has joined #ruby
<shevy>
and those who do usually stick to already existing solutions like gosu/gamebox
<banisterfiend>
YellowSun there's no real way it could ever be 'pure ruby'
<YellowSun>
banisterfiend: never say enever
<banisterfiend>
YellowSun you need to write bindings for opengl etc
<banisterfiend>
YellowSun beacues all the technologies you'd awnt to use are written in C/C++ :)
<YellowSun>
banisterfiend: if somehow, in the future ruby could be somewhat as fast, it can be done
<shevy>
could be an early april joke though
<YellowSun>
the chance is unlikely but it's possible
<banisterfiend>
YellowSun How would you bind to a graphics lib?
<TheLarkInn1>
Tis a shame, I work in Obj-C when not doing ruby, and I wish that the simplistic nature could be combined with the power tools of Xcode (and not in a MacRuby CocoaRuby hack way)
<YellowSun>
banisterfiend: the binder is already written to use ruby syntax for its operations
<banisterfiend>
YellowSun what does that even mean? :)
<YellowSun>
that you can speak to opengl with ruby
<YellowSun>
it's not that hard to imagine right
Vovko has joined #ruby
<banisterfiend>
YellowSun opengl is written in C/C++. If you awnt to use it you have to write a conversion layer between C/C++ and Ruby, you can't do this without writing C
<TheLarkInn1>
Ruby should probably switch to Automatic Reference counting instead of GC.
<YellowSun>
banisterfiend: i know but once that wrapper is good enough, you can write pure ruby
fijimunkii has joined #ruby
<banisterfiend>
YellowSun so in what sense is it 'pure ruby' ? at some point somewhere you're writing C
karmatr0n has quit [Ping timeout: 264 seconds]
Elhu has joined #ruby
<TheLarkInn1>
well I hear that eventually ruby will be written in ruby and not c anymore
<YellowSun>
banisterfiend: if someone writes the wrapper and the rest uses it in pure ruby
<YellowSun>
thats what i mean
johnhamelink has joined #ruby
<banisterfiend>
YellowSun what's the difference between the opengl wrapper being written in C and the game library itself wrapping the opengl wrapper in C ? thats what gosu does
<YellowSun>
banisterfiend: syntax?
<banisterfiend>
YellowSun but all that is invisible to the person actually writing the game
<banisterfiend>
YellowSun since the C layer is below the level the game programming is working at
rylev has joined #ruby
ayaz has joined #ruby
nism has quit [Quit: Leaving]
Vovko has quit [Ping timeout: 240 seconds]
<YellowSun>
banisterfiend: ok lets say someone designes a wrapper that is close enough to pure ruby, could that be possible
bambuka has quit [Quit: Saliendo]
<YellowSun>
for someone that only knows ruby to program in that game engine and it auto translates to C or something
<atmosx>
When I add a file to .gitignore it is ignored from next commit instantly?
<canton7-mac>
if it isn't tracked by git, it will be ignored instantly
<canton7-mac>
if it is tracked by git, it won't be ignored
browndawg has joined #ruby
kitak has quit [Remote host closed the connection]
<atmosx>
canton7-mac: and how can I tell git to ignore it, if it's tracked?
<atmosx>
canton7-mac: remove it from the dir, commit and add it?
mway has joined #ruby
dennus has joined #ruby
Martxel has joined #ruby
sambao21 has quit [Quit: Computer has gone to sleep.]
<atmosx>
yeah worked fine
grayWolf has joined #ruby
grayWolf is now known as Speed
mway has quit [Client Quit]
rylev has quit [Ping timeout: 265 seconds]
jamto11 has joined #ruby
coreysmith has quit [Remote host closed the connection]
noctua has quit [Ping timeout: 245 seconds]
oo_ has quit [Remote host closed the connection]
yfeldblum has joined #ruby
<canton7-mac>
git rm --cached
<canton7-mac>
if you want to stop tracking it without removing it from disk
<atmosx>
nice ty
francisfish has joined #ruby
jprovazn has joined #ruby
jamto11 has quit [Ping timeout: 246 seconds]
fflush has quit [Quit: fflush]
dukz has quit [Remote host closed the connection]
<YellowSun>
is there a way to see my ruby code translated to real 1's and 0's ? :D
yfeldblum has quit [Ping timeout: 265 seconds]
samlt has quit [Quit: WeeChat 0.4.3]
<YellowSun>
i was thinking about putting it in one giant string, but that does not work.. dunno why
dblessing has joined #ruby
volk_ has joined #ruby
vt102 has joined #ruby
doodlehaus has joined #ruby
<atmosx>
YellowSun: have you ever tried python?
<atmosx>
it's a great programming language
fflush has joined #ruby
fflush has quit [Changing host]
fflush has joined #ruby
<YellowSun>
atmosx: no, but i seem to recall it's more static typing
<atmosx>
YellowSun: you should give it a go
<atmosx>
try #python
<atmosx>
lots of ineresting people
dik_dak has joined #ruby
<YellowSun>
atmosx: ok, but after looking at almost every famous language, ruby is the one i actually like reading
<YellowSun>
dunno why, it just is for me :D
tjr9898 has joined #ruby
simono has quit [Read error: Connection reset by peer]
<atmosx>
YellowSun: you're killing me
<YellowSun>
atmosx: hahhaha why
<atmosx>
YellowSun: j/k lol :-P
<atmosx>
hahahahaha
<atmosx>
I'm off going to clean up this mess I call *room*
<atmosx>
bbl ;-) YellowSun ruby is awesome
<YellowSun>
atmosx: bye bye! thnx for the chat
yacks has quit [Ping timeout: 255 seconds]
prs has left #ruby [#ruby]
yekta has joined #ruby
volk_ has quit [Quit: volk_]
vt102 has quit [Remote host closed the connection]
Tomasso has joined #ruby
vt102 has joined #ruby
simono has joined #ruby
jackneill has joined #ruby
kaspergrubbe has joined #ruby
Xeago has quit [Remote host closed the connection]
Xeago has joined #ruby
blackmesa has quit [Ping timeout: 265 seconds]
francisfish has quit [Remote host closed the connection]
davedev24 has joined #ruby
tkuchiki has quit [Remote host closed the connection]
davedev24 has quit [Read error: Connection reset by peer]
kaspergr_ has quit [Ping timeout: 255 seconds]
yekta has quit [Quit: yekta]
davedev24 has joined #ruby
sk87 has quit [Quit: My Mac Mini has gone to sleep. ZZZzzz…]
davedev24 has quit [Read error: Connection reset by peer]
davedev24 has joined #ruby
amaltson has joined #ruby
Shidash has joined #ruby
vlad_starkov has joined #ruby
cj3kim has quit [Ping timeout: 265 seconds]
noctua has joined #ruby
YellowSun has quit [Ping timeout: 245 seconds]
phantummm has joined #ruby
noctua has quit [Read error: Operation timed out]
yfeldblum has joined #ruby
pu22l3r has joined #ruby
danshultz has joined #ruby
arount has joined #ruby
noctua has joined #ruby
arount has left #ruby [#ruby]
davedev24 has quit [Ping timeout: 252 seconds]
chris_thomson has joined #ruby
yfeldblum has quit [Ping timeout: 265 seconds]
jpstokes has joined #ruby
tjr9898 has quit [Remote host closed the connection]
fijimunkii has quit [Read error: Connection reset by peer]
fijimunkii has joined #ruby
platzhirsch has joined #ruby
CreativeEmbassy has joined #ruby
noctua has quit [Ping timeout: 252 seconds]
monkegjinni has quit [Remote host closed the connection]
davedev2_ has joined #ruby
yacks has joined #ruby
tjr9898 has joined #ruby
tjr9898 has quit [Remote host closed the connection]
tjr9898 has joined #ruby
luriv has quit [Remote host closed the connection]
davedev24 has joined #ruby
cover has joined #ruby
sambao21 has joined #ruby
shterrett has joined #ruby
Tomasso has quit [Read error: Connection reset by peer]
davedev2_ has quit [Ping timeout: 252 seconds]
Tomasso has joined #ruby
budrose has joined #ruby
Squarepy has joined #ruby
alekst has joined #ruby
davedev24 has quit [Ping timeout: 252 seconds]
matcouto has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
chris_thomson has quit [Quit: Zzz...]
JohnnyIsAFoodie has joined #ruby
<JohnnyIsAFoodie>
Hello can someone help me with rails here
jamto11 has joined #ruby
<JohnnyIsAFoodie>
I am getting "No route matches [PATCH] "/tweets/admin_approve" in rails 4 ruby 2.0.0
<shterrett>
How did you define the route?
<Hanmac>
JohnnyIsAFoodie: #RubyOnRails
afreidah has joined #ruby
<JohnnyIsAFoodie>
match '/tweets/admin_approve' => 'tweets#admin_approve', :as =>'admin_approve', :via => [:post]
<JohnnyIsAFoodie>
admin_approve_path
<shterrett>
There’s no :patch because you defined the route as :post. Try changing via: [:post] to via: [:patch]
<JohnnyIsAFoodie>
ok I think I shud go to #RubyOnRails sorry guyzz
thesheff17 has quit [Read error: Operation timed out]
<JohnnyIsAFoodie>
oh
davedev24 has joined #ruby
momomomomo has quit [Quit: momomomomo]
rm_ has joined #ruby
randomnick_ has joined #ruby
bluOxigen has quit [Ping timeout: 240 seconds]
bluOxigen has joined #ruby
<JohnnyIsAFoodie>
shterrett: thank you it worked. Now let me go and learn what this patch is all about
Tomasso has quit [Read error: Connection reset by peer]
simono has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
mercwithamouth has joined #ruby
Es0teric has joined #ruby
Tomasso has joined #ruby
jrvlima has joined #ruby
Bumptious has quit [Remote host closed the connection]
Bumptious has joined #ruby
simono has joined #ruby
noctua has joined #ruby
JBreit has joined #ruby
lukec has joined #ruby
danman_ has joined #ruby
guardian has joined #ruby
simono has quit [Client Quit]
<guardian>
hello, I'm a Ruby beginner. Is there a way to "concatenate/sum" blocks? That is create a new block3 that when executed would execute block1 and block2 in sequence
mary5030 has joined #ruby
poikon has quit [Remote host closed the connection]
Shidash has quit [Ping timeout: 246 seconds]
mary5030_ has quit [Ping timeout: 240 seconds]
poikon has joined #ruby
<canton7-mac>
once you've captured a block in a variable, it becomes a proc (slight detail)
fannye has quit [Read error: Connection reset by peer]
<canton7-mac>
and sure, you can do proc{ proc1.call; proc2.call }
JBreit has left #ruby [#ruby]
tylersmith has quit [Remote host closed the connection]
<certainty>
guardian: maybe you can tell us a bit about the specific problem you're trying to solve
asteros has quit [Quit: asteros]
testcore has quit [Quit: BitchX: the Cadillac of all clients]
kaspergr_ has joined #ruby
<banisterfiend>
guardian that would be a pretty interesting feature
ebwise has joined #ruby
<banisterfiend>
guardian but you're probalby after something like promises, no/
<banisterfiend>
?
poikon has quit [Ping timeout: 240 seconds]
<banisterfiend>
guardian that way you could decide whether to execute the subsequent block dependent on success/failure status
<certainty>
just executing the blocks for their side-effects isn't very interesting is it?
<banisterfiend>
guardian it's trivial to implement a promises system in ruby
mary5030 has quit [Remote host closed the connection]
hooper has quit [Ping timeout: 240 seconds]
<banisterfiend>
certainty sounds like he's doing something like promises, and promises are interesting :)
karmatr0n has quit [Remote host closed the connection]
mary5030 has joined #ruby
freezey has joined #ruby
<certainty>
promised? :)
nfk has quit [Quit: yawn]
bilbo_swaggins has joined #ruby
<certainty>
banisterfiend: what are promises in ruby?
tylersmith has quit [Ping timeout: 240 seconds]
<banisterfiend>
certainty they're not in stdlib, but they're trivial to implement. There's a kind of implementatino of them for eventmachine, but they're sort of shitty
poikon has joined #ruby
<banisterfiend>
eventmachine calls them deferrables
greggroth has joined #ruby
kaspergrubbe has quit [Ping timeout: 240 seconds]
cj3kim has quit [Ping timeout: 240 seconds]
<certainty>
banisterfiend: ok so delayed code that might be forced sometime in the future?
rippa has joined #ruby
fgo has joined #ruby
timonv_ has quit [Remote host closed the connection]
aganov has quit [Remote host closed the connection]
jollyy has quit [Quit: jollyy]
apeiros has quit [Remote host closed the connection]
<banisterfiend>
certainty yeah
tos9 has joined #ruby
apeiros has joined #ruby
holo has joined #ruby
<banisterfiend>
they're executed when the resolver decides to execute them
jrvlima has quit [Ping timeout: 268 seconds]
holo has left #ruby [#ruby]
<tos9>
Solnse: adding --require fuubar fixes it <no idea why>
<tos9>
(if you were curious)
dagobah has quit [Quit: Leaving...]
yfeldblum has joined #ruby
<guardian>
certainty, canton7-mac, banisterfiend: I'm trying to extend a DSL. The DSL allows to include files, and I would like to concatenate statements that correspond to same rules but coming from different files
timonv has quit [Remote host closed the connection]
BP-out has joined #ruby
<bilbo_swaggins>
banisterfiend: this sounds interesting enough you could write a long form article. Would you be willing to? It'd be appreciated by many of us I'm sure
<BP-out>
Hi, is anyone here familiar with heroku ruby script deployment?
<toretore>
guardian: showing some code would help a lot in understanding what it is you want to do
petey has joined #ruby
nvrch has quit [Quit: nvrch]
jerius has quit [Quit: Computer has gone to sleep.]
<bilbo_swaggins>
guardian: as toretore says, I'd like to know what you meant by "concatenate statements that correspond to same rules"
mikepack has quit [Remote host closed the connection]
kil0byte has quit [Remote host closed the connection]
mikepack has joined #ruby
robde has quit [Read error: Connection reset by peer]
robde has joined #ruby
<BP-out>
ah okay, I was missing the ps:scale command to spin up the dyno for the script
Es0teric has joined #ruby
<BP-out>
thank you very much for the help toretore Billy2
<BP-out>
bilbo_swaggins *
jollyy has joined #ruby
dstynchula has joined #ruby
carraroj has quit [Ping timeout: 245 seconds]
<bilbo_swaggins>
no worries
Guest32172 has joined #ruby
<bilbo_swaggins>
I work tech support. It's nice to help actually intelligent people for once
<BP-out>
ahaha
cover has joined #ruby
mark_locklear has quit [Ping timeout: 268 seconds]
newUser1234 has quit [Remote host closed the connection]
zorak has quit [Read error: Connection reset by peer]
sk87 has quit [Quit: My Mac Mini has gone to sleep. ZZZzzz…]
Squarepy has quit [Quit: Leaving]
duggiefresh has quit [Remote host closed the connection]
sk87 has joined #ruby
r_rios has quit [Ping timeout: 255 seconds]
duggiefresh has joined #ruby
funktor_ has quit []
canton7-mac has quit [Quit: Leaving]
skaflem has quit [Ping timeout: 265 seconds]
platzhirsch has quit [Ping timeout: 246 seconds]
yxhuvvd has quit [Remote host closed the connection]
yacks has quit [Ping timeout: 268 seconds]
saarinen has joined #ruby
vlad_starkov has quit []
kaspergrubbe has joined #ruby
frank_____ has joined #ruby
railzForDaiz has joined #ruby
smathieu has joined #ruby
yxhuvud has joined #ruby
djbender has joined #ruby
Spami has joined #ruby
thesheff17 has joined #ruby
Spami has quit [Changing host]
Spami has joined #ruby
timonv has joined #ruby
x77686d has quit [Quit: x77686d]
greenarrow has quit [Quit: 500]
dennus has quit []
<shevy>
haha
duggiefr_ has joined #ruby
duggiefresh has quit [Ping timeout: 268 seconds]
armyriad has quit [Ping timeout: 252 seconds]
kaspergr_ has quit [Ping timeout: 240 seconds]
yfeldblu_ has joined #ruby
_Andres has joined #ruby
wallerdev has quit [Quit: wallerdev]
kaspergrubbe has quit [Remote host closed the connection]
jonathanwallace has quit [Ping timeout: 265 seconds]
dweeb_ has quit [Quit: Computer has gone to sleep.]
skaflem has joined #ruby
centrx has joined #ruby
timonv has quit [Remote host closed the connection]
beneggett has joined #ruby
yfeldblum has quit [Ping timeout: 265 seconds]
railzForDaiz has quit [Ping timeout: 268 seconds]
timonv has joined #ruby
thesheff17 has quit [Ping timeout: 240 seconds]
sk87 has quit [Quit: My Mac Mini has gone to sleep. ZZZzzz…]
zachallett has joined #ruby
lukec has quit [Quit: lukec]
Photism has joined #ruby
jzig has joined #ruby
marr has quit [Ping timeout: 245 seconds]
havenwood has quit [Remote host closed the connection]
trhodes_ has quit [Ping timeout: 255 seconds]
jonathanwallace has joined #ruby
ctp has joined #ruby
thesheff17 has joined #ruby
francisfish has quit [Remote host closed the connection]
rylev has joined #ruby
kaspergrubbe has joined #ruby
zachallett has quit [Ping timeout: 240 seconds]
beneggett has quit [Remote host closed the connection]
Elhu_ has quit [Quit: Computer has gone to sleep.]
yacks has joined #ruby
apeiros has joined #ruby
<certainty>
banisterfiend: you mean the guy in the explanation is looking for monads or guardian?
RowdyChild|Away is now known as RowdyChildren
zachallett has joined #ruby
newUser1234 has joined #ruby
rylev has quit [Ping timeout: 240 seconds]
pwh has quit []
poikon_ has joined #ruby
DEA7TH has quit [Ping timeout: 252 seconds]
x77686d has joined #ruby
ctp has quit [Ping timeout: 268 seconds]
RowdyChildren is now known as RowdyChild|Away
gancl has joined #ruby
Tomasso has quit [Read error: Connection reset by peer]
<banisterfiend>
certainty possibly guardian
nism has joined #ruby
toastynerd has joined #ruby
otyugh has left #ruby [#ruby]
Tomasso has joined #ruby
dfranciosi has quit [Remote host closed the connection]
dfranciosi has joined #ruby
skammer has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
poikon__ has joined #ruby
aspires has joined #ruby
poikon has quit [Ping timeout: 265 seconds]
cj3kim_ has quit [Remote host closed the connection]
cj3kim has joined #ruby
<certainty>
banisterfiend: possibly. I didn't really get what he was trying to solve there. The very first sentence however sounded much like plain function composition, except the fact that he didn't care for return values. So yeah he could be looking a monadic thing
railzForDaiz has joined #ruby
cover has quit [Ping timeout: 240 seconds]
poikon_ has quit [Ping timeout: 268 seconds]
DEA7TH has joined #ruby
sambao21 has quit [Quit: Computer has gone to sleep.]
<guardian>
what's the idiomatic way to replace the last element of an array? instead of pop then <<
subbyyy has joined #ruby
<banisterfiend>
guardian array[-1] = blah
Martxel has quit [Ping timeout: 265 seconds]
<guardian>
thank you
<guardian>
damn I'm so new to this :)
s3ri0us_1 has quit [Quit: leaving]
chichou has joined #ruby
wallerdev has joined #ruby
armyriad has joined #ruby
adsisco has left #ruby [#ruby]
obs has quit [Quit: Konversation terminated!]
andikr has quit [Remote host closed the connection]
razrunelord has joined #ruby
ghr has quit [Ping timeout: 240 seconds]
obs has joined #ruby
CreativeEmbassy has joined #ruby
roolo has quit [Quit: Leaving...]
kobain has quit [Ping timeout: 240 seconds]
kpshek has joined #ruby
AlSquire has quit [Quit: Quitte]
peterellisjones has quit [Quit: Leaving.]
robde has left #ruby ["Bye."]
chichouw has joined #ruby
tylersmith has joined #ruby
Lewix has quit [Remote host closed the connection]
donnoc has quit [Ping timeout: 265 seconds]
chichou has quit [Ping timeout: 265 seconds]
Squarepy has joined #ruby
DEA7TH has quit [Ping timeout: 255 seconds]
pulpfiction has joined #ruby
pulpfiction has quit [Changing host]
pulpfiction has joined #ruby
jhass|off is now known as jhass
fgo has joined #ruby
toastynerd has quit [Remote host closed the connection]
arietis has joined #ruby
Shidash has joined #ruby
<pulpfiction>
can anyone tell me what's wrong here? 0.upto(100).each { |i| puts Statistics2.pnormaldist(1-(1-i/100)/2) }
<pulpfiction>
all i get is NaN
chichou has joined #ruby
kobain has joined #ruby
lukec has joined #ruby
asteros has joined #ruby
chichouw has quit [Ping timeout: 252 seconds]
cescalante is now known as ce_afk
michaeldeol has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
dtcrshr has joined #ruby
maximski has quit [Read error: Connection reset by peer]
forced_request has joined #ruby
davy_ has joined #ruby
freezey has quit [Remote host closed the connection]
<Hanmac>
pulpfiction: you need "i.to_f"
spider-mario has quit [Read error: Connection reset by peer]
maximski has joined #ruby
afreidah1 has quit [Ping timeout: 268 seconds]
michaeldeol has joined #ruby
<apeiros>
or i.fdiv(100)
<apeiros>
one less method call
aspires has quit []
<pulpfiction>
apeiros, ok, that worked, thanks
<pulpfiction>
i don't know ruby but this gem had this pnormaldist() method i needed :)
_tpavel has quit [Quit: Leaving]
<certainty>
ruby is the new php
fgo has quit [Ping timeout: 252 seconds]
codabrink has quit [Ping timeout: 252 seconds]
<apeiros>
AAAAAAAAH!
<certainty>
i don't know ruby but i use it anyway :)
* apeiros
smacks certainty
<certainty>
ouch
timonv has quit [Remote host closed the connection]
kobain has quit [Read error: Connection reset by peer]
andy__ has joined #ruby
petey has quit [Remote host closed the connection]
rainmanjam has joined #ruby
petey has joined #ruby
chichou has quit [Ping timeout: 240 seconds]
<pulpfiction>
hehe
<tobiasvl>
i know ruby but i don't use it
kobain has joined #ruby
GreatSUN has joined #ruby
<GreatSUN>
re
toastynerd has joined #ruby
elaptics is now known as elaptics`away
* Hanmac
raises his hand in a gun position: "i can C and i know how to use it!" ;P
fabrice31 has joined #ruby
<certainty>
Hanmac: aiming at your foot?
pwh has joined #ruby
IceDragon_ has joined #ruby
jonmorehouse has joined #ruby
failshell has joined #ruby
IceDragon has quit [Ping timeout: 255 seconds]
petey has quit [Ping timeout: 252 seconds]
afreidah1 has joined #ruby
IceDragon_ is now known as IceDragon
dumdedum has quit [Quit: foo]
pfg has joined #ruby
rezzack has joined #ruby
andy__ has quit [Ping timeout: 240 seconds]
saarinen has quit [Quit: saarinen]
codabrink has joined #ruby
Guest32172 has quit [Quit: Leaving]
fabrice31 has quit [Ping timeout: 240 seconds]
saarinen has joined #ruby
pigzzcanfly has joined #ruby
hemanth has quit [Quit: This computer has gone to sleep]
Lewix has joined #ruby
zigomir has quit [Remote host closed the connection]
benzrf|offline has joined #ruby
benzrf|offline is now known as benzrf
Monito has joined #ruby
Zai00 has quit [Quit: Zai00]
jollyy has quit [Quit: jollyy]
pulpfiction has quit [Quit: Leaving]
SolarSailor has joined #ruby
aspires has joined #ruby
Tomasso has quit [Ping timeout: 268 seconds]
JacobHayes has quit [Remote host closed the connection]
<shevy>
no
<shevy>
at you!
jay_ has joined #ruby
papercode has joined #ruby
dfrancio_ has joined #ruby
sjkaliski has joined #ruby
wigg has joined #ruby
tylersmi_ has joined #ruby
Lewix_ has joined #ruby
mikeg has joined #ruby
karmatr0_ has joined #ruby
chipotle_ has joined #ruby
pigzzcan_ has joined #ruby
grayWolf has joined #ruby
nanoyak has joined #ruby
wallerdev_ has joined #ruby
phutchin1 has joined #ruby
erobtom1 has joined #ruby
tkuchiki has quit [Remote host closed the connection]
shanlar has joined #ruby
subbyyy_ has joined #ruby
tkuchiki has joined #ruby
sambao21 has joined #ruby
lmickh_ has joined #ruby
pierre1_ has joined #ruby
agrinb__ has joined #ruby
Speed has quit [Disconnected by services]
grayWolf is now known as Speed
invinceable has joined #ruby
zigomir has joined #ruby
AlexRussia_ has joined #ruby
gancl_ has joined #ruby
zigomir has quit [Remote host closed the connection]
freerobby has joined #ruby
devyn_ has joined #ruby
m_3_ has joined #ruby
flori_ has joined #ruby
sivoais_ has joined #ruby
fuleo_ has joined #ruby
gtc|ghost has joined #ruby
<phutchin1>
lo
tris has quit [Remote host closed the connection]
kaspergr_ has joined #ruby
kirun has joined #ruby
<phutchin1>
Anyone know how to do something like fork do exec("ssh me@myhost.com", out: io, err: :out) end
<phutchin1>
then programatically send a command to that ssh session?
jonmorehouse has quit [Ping timeout: 252 seconds]
jerius has quit [Quit: Computer has gone to sleep.]
<phutchin1>
that leaves you with a ssh session that you can interact with in your terminal. So i'm thinking i could someehow have ruby fake some stdin from the user?
kaspergrubbe has quit [Read error: Connection timed out]
ignoch has joined #ruby
m0sz has joined #ruby
lkba has joined #ruby
jaywastaken has quit [Disconnected by services]
jay_ is now known as jaywastaken
dblessing has joined #ruby
jaywastaken has quit [Changing host]
jaywastaken has joined #ruby
tchebb_ has joined #ruby
jprovazn_afk is now known as jprovazn
cj3kim has quit [Remote host closed the connection]
SolarSailor has quit [*.net *.split]
Lewix has quit [*.net *.split]
pwh has quit [*.net *.split]
tylersmith has quit [*.net *.split]
pigzzcanfly has quit [*.net *.split]
Monito has quit [*.net *.split]
subbyyy has quit [*.net *.split]
wallerdev has quit [*.net *.split]
razrunelord has quit [*.net *.split]
dfranciosi has quit [*.net *.split]
x77686d has quit [*.net *.split]
gancl has quit [*.net *.split]
yacks has quit [*.net *.split]
yxhuvud has quit [*.net *.split]
AlexRussia has quit [*.net *.split]
karmatr0n has quit [*.net *.split]
bilbo_swaggins has quit [*.net *.split]
iceden has quit [*.net *.split]
agrinb has quit [*.net *.split]
lmickh has quit [*.net *.split]
phutchins has quit [*.net *.split]
chipotle has quit [*.net *.split]
nateberkopec has quit [*.net *.split]
tchebb has quit [*.net *.split]
gtc has quit [*.net *.split]
sivoais has quit [*.net *.split]
shanlar- has quit [*.net *.split]
m_3 has quit [*.net *.split]
erobtom has quit [*.net *.split]
preller has quit [*.net *.split]
atno has quit [*.net *.split]
fuleo has quit [*.net *.split]
devyn has quit [*.net *.split]
flori has quit [*.net *.split]
m0s^away has quit [*.net *.split]
camt has quit [*.net *.split]
tchebb_ is now known as tchebb
wallerdev_ is now known as wallerdev
platzhirsch has joined #ruby
subbyyy_ has quit [Ping timeout: 268 seconds]
luriv has quit [Remote host closed the connection]
railzForDaiz has left #ruby [#ruby]
railzForDaiz has joined #ruby
freezey has joined #ruby
luriv has joined #ruby
Valesk has joined #ruby
Olipro has quit [Ping timeout: 246 seconds]
poikon__ has quit [Remote host closed the connection]
pwh has joined #ruby
f0ster has joined #ruby
<certainty>
shevy: :(
<BP-out>
if i'm parsing messages from a TCPSocket (an irc bot, in this instance), is it a bad idea to create a new Message object for each line the socket receives?
mikepack has quit [Remote host closed the connection]
atno has joined #ruby
JacobHayes has joined #ruby
iceden has joined #ruby
<centrx>
BP-out, It might be a little slower or use more memory, but it would work for IRC level of load
preller has joined #ruby
_justin has joined #ruby
bilbo_swaggins has joined #ruby
JacobHayes has quit [Remote host closed the connection]
yacks has joined #ruby
Martxel has joined #ruby
yxhuvud has joined #ruby
cj3kim has joined #ruby
s2013 has joined #ruby
<s2013>
can you have a superclass without initializing anything?
alexju has joined #ruby
havenwood has joined #ruby
<centrx>
s2013, What does that mean?
Voodoofish430 has joined #ruby
<Solnse>
nothing inherits from nothing :)
<Solnse>
lol
<Solnse>
found the one thing that doesn't inherit from basicobject
<s2013>
what i mean is that lets say i have different types of "reports" so i have different report class but i want to have a superclass called BaseReport that has a lot of methods that other reports share
<s2013>
does that make sense?
<s2013>
but i never would actally initiate any object as BaseReport
pu22l3r_ has quit [Remote host closed the connection]
<s2013>
so do i still need to have constructors?
heftig has joined #ruby
pu22l3r has joined #ruby
marcux has joined #ruby
<apeiros>
s2013: nothing stopping you from doing that
jherbst has joined #ruby
marcux has quit [Client Quit]
<s2013>
ok.. better question.. is that an acceptable practice or not
<apeiros>
though, modules are often preferred for shared code.
<centrx>
s2013, You don't need to define def initialize on any class
<apeiros>
s2013: you're a rails user, you've seen that pattern ;-)
<apeiros>
AR::Base
ctp has joined #ruby
<s2013>
yeah apeiros
dseitz has joined #ruby
<s2013>
i am just building service objects
marcux has joined #ruby
greggroth has quit [Ping timeout: 240 seconds]
<s2013>
not a fan of concerns which are more module based idsay
rylev has joined #ruby
<s2013>
so basically im refactoring our controllers which are sometimes 500+ lines into little service objects
stupidystupid has joined #ruby
stupidystupid has quit [Max SendQ exceeded]
<phutchin1>
Anyone have any idea on sending data to a process spawned by exec() ?
<horrorvacui>
wow someone didn't get the memo on fat models slim controllers?
stupidystupid has joined #ruby
stupidystupid has quit [Max SendQ exceeded]
davy_ has quit [Read error: Connection reset by peer]
<s2013>
horrorvacui, dont get me started on our codebase
dyoko has joined #ruby
<s2013>
it was 40k lines of code with 0 lines of test
stupidystupid has joined #ruby
<apeiros>
s2013: didn't say anything about concerns
<s2013>
some actions were like 100+ lines
stupidystupid has quit [Max SendQ exceeded]
<apeiros>
ruby's modules work without using concern.
<s2013>
some controllers are even bigger than 1000
davy_ has joined #ruby
stupidystupid has joined #ruby
<s2013>
im talking about in rails context apeiros i believe thats how the concerns work
DrShoggoth has joined #ruby
<apeiros>
s2013: rubys modules work in rails just fine too.
rylev_ has joined #ruby
<s2013>
k
bilbo_swaggins has quit [Quit: Leaving]
ozzloy_ is now known as ozzloy
Sawbones has joined #ruby
dfrancio_ has quit [Remote host closed the connection]
dfranciosi has joined #ruby
<workmad3>
s2013: I think apeiros is suggesting that, rather than having a BaseReport that you inherit from, you'd instead have a module ReportHelpers that you include into your various Report objects
trhodes_ has joined #ruby
ctp has quit [Ping timeout: 240 seconds]
rylev has quit [Ping timeout: 240 seconds]
<workmad3>
s2013: name of the mixin module is obviously up to you :)
<s2013>
gotcha
Tomasso has joined #ruby
thrillagorilla has joined #ruby
obs has quit [Quit: Konversation terminated!]
<s2013>
not sure where id put that though
ozzloy has quit [Changing host]
ozzloy has joined #ruby
<s2013>
i have a services folder
<workmad3>
s2013: lib/ :)
<s2013>
should i leave it there or leave it in the concerns folder? this is more rails question
jollyy has joined #ruby
rylev_ has quit [Ping timeout: 240 seconds]
bricker_ has joined #ruby
yfeldblu_ has quit [Remote host closed the connection]
bricker_ is now known as bricker`work
nisstyre has quit [Quit: WeeChat 0.4.3]
yfeldblum has joined #ruby
bricker has quit [Disconnected by services]
bilbo_swaggins has joined #ruby
pen has joined #ruby
<ignoch>
s2013: you can put on app folder. lib is for other purposes
jonmorehouse has joined #ruby
maroloccio has quit [Quit: WeeChat 0.4.3]
mark_locklear has joined #ruby
albedoa has joined #ruby
bilbo_swaggins has quit [Client Quit]
kpshek has quit []
mercwithamouth has quit [Ping timeout: 252 seconds]
<s2013>
ok i guess ill put it in app/concerns
cj3kim has quit [Remote host closed the connection]
yfeldblum has quit [Read error: Operation timed out]
invinceable has quit [Ping timeout: 268 seconds]
<s2013>
albedoa, bundle install is fine
<s2013>
bundle update just updates the gems
<s2013>
or you can just run bundle
<s2013>
bundle install looks for new gems and installs them. bundle update updates gems that are already installed
<albedoa>
s2013 yes but is the second one doing anything that the fitst bundle install and bundle update didn't?
<albedoa>
s/fitst/first
<s2013>
hold on let me chekc it
pel_daniel has joined #ruby
<albedoa>
it looks redundant to me
stupidystupid has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<s2013>
yes
<s2013>
first one only installs gems that are in dev/test
<s2013>
last one installs all gems
<s2013>
see the --without production flag
bhaak has joined #ruby
<s2013>
so in this case it wont install pg and rails_12factor
<albedoa>
yes but that puts the flag into .bundle/config
atmosx has quit [Ping timeout: 265 seconds]
<albedoa>
so it runs with the flag each time, no?
<workmad3>
albedoa: yes, the second 'bundle install' is unnecessary
ce_afk is now known as cescalante
<s2013>
i dont know i havent read that tutorial albedoa
<albedoa>
workmad3 that's what i suspected. just making sure. thanks!
<albedoa>
s2013 thanks for your help
<s2013>
but generally you only need to just do bundle install
<workmad3>
albedoa: also, try not to do a blanket 'bundle update' on your application unless you're *very* sure that you won't break things
_justin has quit [Ping timeout: 240 seconds]
<s2013>
yeah
zigomir has joined #ruby
<workmad3>
albedoa: thankfully, if you do break something, you just need to roll back changes to Gemfile.lock... but still, it's a dodgy practice in real apps :)
<s2013>
you can update individual gems
<albedoa>
ty
sk87 has joined #ruby
EminenceHC has joined #ruby
<RubyPanther>
if you have tests, it should be as safe as anything else. You can just roll it back and go one at a time if there are any problems.
Morkel has joined #ruby
armyriad has quit [Ping timeout: 240 seconds]
<RubyPanther>
that is sortof a rubber chicken warning, everybody knows to warn you about it, but if you follow the other advice, any harm is already mitigated
kies has quit [Read error: Operation timed out]
sambao21 has quit [Quit: Computer has gone to sleep.]
<TheFishy>
I understand though that the ruby VM has allocated the variable and will hold onto it until the process destruction is that right?
greggroth has joined #ruby
andy__ has joined #ruby
petey has joined #ruby
jonmorehouse has quit [Ping timeout: 252 seconds]
<mary5030_>
hi i had a question: i had initially assumed that output is a hash and did this output.values.any? {|entry| entry.to_s.include? 'Unexpected Device Error' }, now i am realizing that it is a ruby string representation of a hash how can i achieve the same thing without calling eval
<TheFishy>
crome: one thing I would have suspected is that if I did something like if (uninitVar) ... it would treat the uninitVar as nil but it doesn't
atmosx has joined #ruby
<shevy>
Hanmac eh I am so far removed, I don't care about most of th ese technologies
monkegjinni has joined #ruby
x77686d has quit [Ping timeout: 255 seconds]
CaptainJet has joined #ruby
nateberkopec has joined #ruby
<horrorvacui>
Hanmac: please tell me they didn't really do the last one
<TheFishy>
I assumed this would be the logical thing to do if you are treating variables scope so loosely but I can see that it would probably cause a BUNCH of typos to go unnoticed.
cj3kim has quit [Remote host closed the connection]
evenix has quit [Ping timeout: 240 seconds]
krz has quit [Quit: WeeChat 0.4.3]
mikepack has joined #ruby
jonmorehouse has joined #ruby
timonv has joined #ruby
<TheFishy>
the SUPER weird thing is that this works: if (false) i = 1; end puts i #puts nil
Slavox is now known as Slavox|AFK
RaptorJesus has joined #ruby
zachallett has quit [Remote host closed the connection]
<horrorvacui>
I find it funny that John Carmack works for facebook now.
Avahey_ has joined #ruby
kpshek has joined #ruby
<mary5030_>
shevy: you mean i need to convert output into a hash first?
toastynerd has quit [Remote host closed the connection]
<TheFishy>
horrorvacui: The best part is a tweet like a week before it happened was something along the lines of "Ugh, these are one of those days where I am going to do more communicating than coding. I just want to code."
monkegjinni has quit [Remote host closed the connection]
<shevy>
mary5030_ well, the best way would be if you would have output be a hash
<shevy>
mary5030_ so if you can achive that, that is great. other than that, you will have to work with that string, which is annoying; it will have key->value pairs which you may have to re-assemble into a hash, probably through a .split
nanoyak has quit [Quit: Computer has gone to sleep.]
<mary5030_>
i wanted to just check if it has "'Unexpected Device Error'", i won't be sending this output to the user i am just needing it in a method to check for that text
<apeiros>
horrorvacui: you think he wants to build a second second life?
<horrorvacui>
I don't know, I kinda licked the early days of second life making and coding stuff.
<horrorvacui>
liked* not licked
toastynerd has quit [Remote host closed the connection]
<horrorvacui>
I just want to play HL3 with it.
Lewix has joined #ruby
Zai00 has left #ruby [#ruby]
camt has joined #ruby
nism has quit [Ping timeout: 240 seconds]
<mdpatrick>
Anyone used awesome_nested_set before? Of particular interest is using it with large data sets
toastynerd has joined #ruby
arietis has quit [Quit: Computer has gone to sleep.]
SCommette has quit [Quit: SCommette]
carraroj has joined #ruby
* platzhirsch
roars...
mikepack has quit [Remote host closed the connection]
benzrf|offline is now known as benzrf
locriani has joined #ruby
yubrew has joined #ruby
jaywastaken has quit [Quit: Leaving]
<horrorvacui>
Does anyone do pomodoros or GTD?
jaywastaken has joined #ruby
bhaak has quit [Read error: Connection reset by peer]
<jle`>
on and off
dyoko has quit [Quit: Leaving.]
subbyyy_ has joined #ruby
<benzrf>
apeiros: did u ever try quick
AlexRussia_ is now known as AlexRussia
<benzrf>
(⊙ω⊙)
jamto11 has joined #ruby
michaeldeol has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
greggroth has quit [Ping timeout: 240 seconds]
<platzhirsch>
benzrf: naughty
dreamer_ has joined #ruby
<apeiros>
benzrf: not yet, but I've installed osxfuse
<apeiros>
or… wait… maybe I only updated brew
<apeiros>
no, it's installed.
<apeiros>
so what's the next step, benzrf?
<dreamer_>
I've got a sequel question. Trying to get the ddl of 'show table TABLENAME' on a terradata db, and can't find a way to capture the text. anyone have an idea?
dyoko has joined #ruby
blandflakes_ has joined #ruby
elisarver has joined #ruby
SCommette has joined #ruby
maximski has quit []
marcux has quit [Quit: marcux]
cj3kim_ has joined #ruby
Lewix has quit [Remote host closed the connection]
bricker`1ork has joined #ruby
marcux has joined #ruby
blandflakes has quit [Ping timeout: 245 seconds]
sepp2k has joined #ruby
bricker`work has quit [Ping timeout: 255 seconds]
kung has joined #ruby
davy__ has joined #ruby
kung has quit [Changing host]
kung has joined #ruby
francisfish has joined #ruby
ctp has joined #ruby
agjacome has joined #ruby
ahibal has joined #ruby
Squarepy has quit [Quit: Leaving]
dfranciosi has quit [Remote host closed the connection]
CaptainJet has quit []
<TheFishy>
horrorvacui: eh
chinkung has quit [Ping timeout: 264 seconds]
<ahibal>
Hi everybody
dfranciosi has joined #ruby
Tomasso has quit [Read error: Connection reset by peer]
<TheFishy>
Hi Dr.Nick!
rylev has joined #ruby
davy_ has quit [Ping timeout: 240 seconds]
skaflem has quit [Quit: Leaving]
marcux has quit [Quit: leaving]
Tomasso has joined #ruby
mumin has joined #ruby
<TheFishy>
Seriously this still is killing my brain: if (true) i = 1 end puts i #works and prints 1. if (false) i = 1 end puts i# works and prints nil. puts i#fails on i not being a variable. How is this different from the if failed statement?
<mumin>
hello
francisfish has quit [Ping timeout: 240 seconds]
marcux has joined #ruby
Slavox|AFK is now known as Slavox
jerius has joined #ruby
aspires has quit []
<ahibal>
I have an issue with processor detection any ideas?
_Andres has quit [Quit: My Mac Pro has gone to sleep. ZZZzzz…]
wallerdev has quit [Quit: wallerdev]
frank_____ has quit [Quit: Connection closed for inactivity]
marcux_ has joined #ruby
funktor has joined #ruby
funktor has quit [Remote host closed the connection]
toastynerd has quit [Remote host closed the connection]
marcux has quit [Client Quit]
marcux_ is now known as marcux
CaptainJet has joined #ruby
marcux has quit [Client Quit]
marcux has joined #ruby
LexicalScope` has joined #ruby
reset has joined #ruby
LexicalScope has quit [Read error: Connection reset by peer]
arietis has joined #ruby
<mumin>
no one answers hello here :D
railzForDaiz has left #ruby [#ruby]
marcux has quit [Client Quit]
Mongey has quit [Ping timeout: 265 seconds]
<apeiros>
TheFishy: once the interpreter sees an assignment to an lvar, the lvar gets created. even if the code-path of the assignment is not executed.
railzForDaiz has joined #ruby
shredding has joined #ruby
<DouweM>
mumin: someone answered someone else's "hello" not 10 minutes ago
<DouweM>
mumin: I guess we just don't like you :p
<TheFishy>
apeiros: odd. and the interpreter will keep that variable after the scope ends or are the if statements just no longer scopes in ruby?
jackneill has quit [Quit: WeeChat 0.4.3]
subbyyy_ has quit [Ping timeout: 240 seconds]
<DouweM>
TheFishy: if statement doesn't scope, no
Stalkr_ has joined #ruby
<apeiros>
TheFishy: they have never been
<mumin>
DouweM: :s but i just said only hello
decoponio has quit [Quit: Leaving...]
toastynerd has joined #ruby
marcux has joined #ruby
saarinen has quit [Quit: saarinen]
<DouweM>
mumin: don't be sad, I would've said hello if I'd seen your message earlier
Cheets-X has joined #ruby
<Cheets-X>
Hi :)
<DouweM>
Hi!
<apeiros>
TheFishy: it's not all that odd really. lvars should (and hopefully aren't in ruby, but I didn't check) not be implemented as a hash
<DouweM>
mumin: see?
<Cheets-X>
Having weird issue. Looks like ruby is ordering my hash randomly every time my script is executed :/
smathieu has quit [Remote host closed the connection]
<apeiros>
TheFishy: so a decent parser will scan for all lvars in a code-piece and internalize them, it won't use the name of the variables. they don't matter for code execution.
<DouweM>
Cheets-X: post code, your expected result and the actual result
nism has joined #ruby
<mumin>
yep
benzrf is now known as benzrf|offline
smathieu has joined #ruby
njection_ has joined #ruby
dreamer_ has quit [Quit: Page closed]
<Cheets-X>
I'm just using myhash.values[0] to get at the elements
Mongey has joined #ruby
<Cheets-X>
I know there's only 4
<Cheets-X>
items
<DouweM>
Cheets-X: code pls
<DouweM>
Cheets-X: also, I'm assuming you're on Ruby >=1.9?
michaeldeol has joined #ruby
dx7_ has quit [Read error: Operation timed out]
pigzzcan_ has quit [Remote host closed the connection]
davy__ has quit [Remote host closed the connection]
<DouweM>
Cheets-X: right. which I expect to puts '0,1,2,3'. what are you seeing instead?
<DouweM>
Cheets-X: and again: Ruby version?
<DouweM>
Cheets-X: also, why don't you just use `myemails.values.join(",")`
bricker`1ork is now known as bricker
fabrice31 has quit [Ping timeout: 240 seconds]
shredding has quit [Quit: shredding]
Ziarkaen has joined #ruby
<Solnse>
it looks like you are trying to access the hash like an array using values... but iirc, it'll pull values matching what you are trying to access... .values[0] will return hash values that are 0 (all 4 in your myemails variable) ?
<Cheets-X>
DouweM, it's pure random
toastynerd has joined #ruby
<Cheets-X>
ruby 1.8
<DouweM>
Cheets-X: and there you go
<DouweM>
Cheets-X: hashes are not ordered in 1.8
<DouweM>
Cheets-X: go with the time and grab yourself some Ruby 2.1.1
greggroth has joined #ruby
fgo has quit [Ping timeout: 240 seconds]
<Cheets-X>
v2 doesn't work for me on the mac
<Cheets-X>
(for what i want it to do and the gems i need)
<DouweM>
in that case you're SOL
EminenceHC has quit [Remote host closed the connection]
<havenwood>
Cheets-X: The latest version of OS X ships with Ruby 2.0.
<havenwood>
Cheets-X: Ruby 1.8 is past End-of-Life.
Ziarkaen` has joined #ruby
<DouweM>
Cheets-X: what gems are these, that you can't run on the latest Rubt?
<Cheets-X>
havenwood, oh i didn't know that I used macports
<DouweM>
Solnse: nah, that's not how it works. #values returns an array of values
mikepack has joined #ruby
<DouweM>
Cheets-X: hehe, macports has fallen out of favor as well. go with homebrew
<Solnse>
yeah I see
<Cheets-X>
well which ruby says /usr/bin/ruby
chinkung has joined #ruby
nomenkun has joined #ruby
<Solnse>
how is that useful, when you are specifying the value to return?
graft has joined #ruby
<DouweM>
Cheets-X: what OS X are you on?
<Cheets-X>
Maverick
<DouweM>
Solnse: if you don't have the key, but do have the index
yfeldblum has joined #ruby
<DouweM>
Cheets-X: Mavericks comes with 2.0...
Ziarkaen has quit [Ping timeout: 252 seconds]
<Cheets-X>
Hmmmz
<Solnse>
you mean value.
<havenwood>
Cheets-X: the ruby21 port is on 2.1.1
mikepack_ has joined #ruby
osvico has quit [Read error: Connection reset by peer]
<Solnse>
but if it's just returning the value again, how are you getting the key?
<havenwood>
Cheets-X: Mavericks ships with Ruby 1.8 and 2.0, but 2.0 is symlinked as Current by default.
<DouweM>
Solnse: if you have an array, and you want to get a value, you usually do so by specifying the key. if you don't have the actual key (the email address in this case), but you do have the index, you can use #values[i]. Or just when you want to iterate over the values but don't care about the keys
<DouweM>
Solnse: use #values when you don't care about the key
mehlah has quit [Quit: Leaving...]
osvico has joined #ruby
<Solnse>
I see.
mikepack_ has quit [Read error: Connection reset by peer]
kung has quit [Ping timeout: 255 seconds]
afex has quit [Ping timeout: 240 seconds]
mikepack_ has joined #ruby
<Cheets-X>
The gem I was trying to get working was rail. But it seems broken when I run /usr/bin/ruby
aspires has joined #ruby
<Cheets-X>
s/rail/rmail
greggroth has quit [Ping timeout: 240 seconds]
klaut has joined #ruby
<DouweM>
Cheets-X: Well, aside from OS X, you've got a thing for obsolete software
mikepack has quit [Read error: Connection reset by peer]
<DouweM>
Cheets-X: the latest version of rmail was released in 2008. Just use the mail gem: https://rubygems.org/gems/mail
mumin has quit [Ping timeout: 240 seconds]
Tomasso has quit [Read error: Connection reset by peer]
bricker has quit [Quit: leaving]
yfeldblum has quit [Ping timeout: 240 seconds]
Tomasso has joined #ruby
sambao21 has joined #ruby
bricker has joined #ruby
rippa has quit [Quit: {#`%${%&`+'${`%&NO CARRIER]
<havenwood>
Cheets-X: mail gem on the Ruby 2.1.1 port sounds good
samfisher has joined #ruby
samfisher has quit [Changing host]
samfisher has joined #ruby
<samfisher>
ruby rules
enebo has quit [Quit: enebo]
<Cheets-X>
cool i'll look into it :)
<samfisher>
do you know how I could create a windows virtual printer with ruby?
<samfisher>
i need a file printer, one that prints to text
Jake232 has joined #ruby
<samfisher>
text files
<DouweM>
samfisher: how would one create a windows virtual printer with anything?
davy_ has joined #ruby
<samfisher>
DouweM: dunno, that's why I'm asking
<DouweM>
samfisher: legitimately curious, I had no idea there was an established protocol for that
mengu has joined #ruby
<DouweM>
samfisher: hehe. I'm not aware of a gem that does that. it's a very specific request
Guest58121 has quit [Changing host]
Guest58121 has joined #ruby
<shevy>
samfisher that will probably also be quite OS specific
<samfisher>
hmm
jerius has quit [Quit: Computer has gone to sleep.]
<jhass>
samfisher: "virtual printer" is the solution you think you need, what's the problem that solves that?
bricker has quit [Read error: Connection reset by peer]
bricker has joined #ruby
<samfisher>
the problem is this: I have a .NET app that prints a page, using a windows virtual printer (prints page to .txt) file. Problem is that stupid(R) windows printer keeps asking for path to save the file, and I want it to print it to a default path (not possible)
<samfisher>
so I have to recreate a printer driver
<RubyPanther>
samfisher: Setting up a network printer in a VM ****is**** the simple way
UserNameInvalid has joined #ruby
<DouweM>
jeregrine: cry
<RubyPanther>
it involves no code, and every step is HOWTO level stuff
<samfisher>
it would be simpler to learn .NET and modify that damn's app source
nanoyak has quit [Client Quit]
<DouweM>
jeregrine: why do you have two different foursquare2's? :/
<jeregrine>
idk
<jeregrine>
:(
<RubyPanther>
yeah if by simpler you mean, would take a zillion times longer
<RubyPanther>
installing a VM takes minutes
<jeregrine>
DouweM: its only in my gemfile once
<jhass>
jeregrine: post your Gemfile.lock
<RubyPanther>
setting up a network printer, that is like learning to change a tire, it is easy, there are instructions if you want them, and it is a useful thing to know how to do
<DouweM>
jeregrine: foursquare2 1.9.8 wants "faraday ~> 0.8", so I have no idea why it's asking for <0.9,>=0.74 at all
<DouweM>
jeregrine: so yeah, your Gemfile.lock pls. And regular Gemfile wouldn't hurt either
<jhass>
DouweM: that's exactly what ~> 0.8 says
<jhass>
hm, well, >= 0.8 actually
<RubyPanther>
I mean, writing a printer driver in Ruby, that is like... out of the ballpark crazy "not simple"
<GasPowered>
wow, cant believe i didnt see it, thanks
<jhass>
jeregrine: okay, really time for your Gemfile.lock
<jeregrine>
ok
GasPowered has left #ruby ["Leaving"]
mehlah has joined #ruby
angusiguess has joined #ruby
<DouweM>
jeregrine: looks like you're gonna have to patch that foursquare2 to support Faraday 0.9.0. this probably isn't the last gem you're gonna see that requires it
samfisher has quit [Quit: exit error code 434]
vasilakisFiL has joined #ruby
<vasilakisFiL>
hi, if I have an array of objects which is being used by multiple threads (read/write), I have to wrap it in mutexes, right ?
kukyakya has quit [Remote host closed the connection]
<jeregrine>
DouweM: maybe I'll just make the request myself
Jon30 has joined #ruby
Monito has joined #ruby
afex has joined #ruby
<DouweM>
jeregrine: yeah. just fork it, update the gemfile, check if everything still works, submit PR, and reference your own fork from your Gemfile
Morkel has quit [Quit: Morkel]
matchaw has joined #ruby
rylev has joined #ruby
matchaw_ has quit [Ping timeout: 240 seconds]
gigetoo has quit [Remote host closed the connection]
afreidah1 has joined #ruby
smathieu has quit []
yalue has quit [Quit: Leaving]
shredding has joined #ruby
Tomasso has quit [Ping timeout: 240 seconds]
cover has quit [Read error: Connection reset by peer]
kennym has joined #ruby
gigetoo has joined #ruby
<vasilakisFiL>
jhass I add semaphores only in write operations, read operations are thread safe, right ?
freezey has joined #ruby
<jhass>
vasilakisFiL: no
<jhass>
vasilakisFiL: depending on your case they can be or it doesn't matter
<jhass>
in MRI you probably won't see data inconsistencies due to the GVL
rylev has quit [Ping timeout: 255 seconds]
<jhass>
still, for your logic an array you're iterating over could be changed by another thread during that while your logic doesn't expect that
toastynerd has quit [Remote host closed the connection]
<jhass>
as an example
<vasilakisFiL>
hmm ok
dyoko has quit [Quit: Leaving.]
hooper has quit [Ping timeout: 268 seconds]
aspires has quit []
<jeregrine>
DouweM: not really as easy as that because it has a dep on faraday_middleware that needs less than 9 too
<DouweM>
jeregrine: any chance you can use another foursquare gem?
armyriad has joined #ruby
<jeregrine>
yea
<jeregrine>
thats where I'm at now
<atmosx>
I'm stuck with this issue
<atmosx>
I'm giving up on capistrano
<DouweM>
what issue?
saarinen has joined #ruby
<jeregrine>
DouweM: blehhhh those all haven't been touched in years
toastyne_ has joined #ruby
x77686d has quit [Quit: x77686d]
<atmosx>
DouweM: I have 1 failed (exit status: 0) which I have no idea why... and on the server when the app is launched using production env, doesn't load the CSS
<atmosx>
DouweM: on dev env, loads the css just fine
ndrei has joined #ruby
<atmosx>
the only diff is that localy I use sqlite3 while on production (it's just a RPi local server actually) I use psql
<DouweM>
jeregrine: looks like foursquare2 is the most active :/
<jhass>
hm, I always forget the matching order of locations
greggroth has quit [Ping timeout: 255 seconds]
<jhass>
you can define a named location for the proxy and just use try_files $uri @proxy; though
<jhass>
where @proxy is the name of the location
angusiguess has joined #ruby
fgo has quit [Ping timeout: 252 seconds]
ndrei has quit [Ping timeout: 240 seconds]
Speed has quit [Ping timeout: 240 seconds]
parduse has quit []
<atmosx>
jhass: I'll try, but t least you pointed into some direction, I can look into.
<atmosx>
ty
benzrf is now known as crasher
crasher is now known as benzrf
<jhass>
also make sure public/assets actually exists and has the right files
zachallett has quit [Remote host closed the connection]
parduse has joined #ruby
angusiguess has quit [Ping timeout: 255 seconds]
alexju has joined #ruby
angusiguess has joined #ruby
nateberkopec has joined #ruby
kith has quit [Quit: kith]
<jrhorn424>
is there a convention about choosing a module over a class? i'm never going to have more than one instance, so i thought a module would be fine. then, i started defining attr_accessors on my module and it felt "wrong ®"
jerius has joined #ruby
karmatr0n has joined #ruby
larissa has joined #ruby
<jhass>
use modules for namespaces, mixins and collections of utilities that share no state
<DouweM>
+1
<benzrf>
+1
<benzrf>
jrhorn424: use class and include singleton
<DouweM>
jrhorn424: if you're gonna have only one instance, you're looking for a singleton
armyriad has joined #ruby
nateberkopec has quit [Client Quit]
guest123 has joined #ruby
beardedninja has joined #ruby
jonmorehouse has quit [Ping timeout: 255 seconds]
<jrhorn424>
Nice heuristics. Noted and thanks!
nateberkopec has joined #ruby
nateberkopec has quit [Client Quit]
mansi has quit [Quit: Leaving...]
guest123 is now known as rakm
<jrhorn424>
Well, to be honest, I don't even think I need an instance. My module needs both data and behavior, but I'll never instantiate it.
aspires has quit []
taf2 has joined #ruby
alexju has quit [Remote host closed the connection]
<jrhorn424>
just do naked calls when needed to do work.
<jhass>
I prefer to do stuff like Settings = Configuration.new 'settings.yml'
Tomasso has quit [Read error: Connection reset by peer]
<jrhorn424>
i wasn't planning on calling ".new". this module will look for yaml files and persist the values to the database, which could naturally happy at app boot time.
<jhass>
yeah, I usually brute force it. like now I'd try to set binary mode
<taf2>
ha
<jhass>
or disable it, whatever the default is
<jhass>
I'd also double check I've access rights
SolarSailor has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
kevind_ has joined #ruby
sambao21 has joined #ruby
Seldan has joined #ruby
alexju has quit [Remote host closed the connection]
simono has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
fabrice31 has quit [Ping timeout: 268 seconds]
kevind has quit [Ping timeout: 252 seconds]
kevind_ is now known as kevind
ndrei has joined #ruby
benzrf is now known as benzrf|offline
carraroj has quit [Quit: Konversation terminated!]
ferr has joined #ruby
dx7 has joined #ruby
thesheff17 has joined #ruby
rhys has quit [Ping timeout: 255 seconds]
popl has quit [Ping timeout: 240 seconds]
toastynerd has quit [Remote host closed the connection]
<atmosx>
jhass: worked!!!!!
<atmosx>
yay!
<jhass>
atmosx: \o/
bhaak has joined #ruby
<atmosx>
jhass: it's 23:07, I started deploying capitrano ta 13:05
niharvey is now known as niharvey|brb
<atmosx>
wow
* atmosx
happiness
dx7 has quit [Remote host closed the connection]
dx7 has joined #ruby
dkamioka has quit [Remote host closed the connection]
<jhass>
at least you'll never forget that rails doesn't serve you the assets in production. Now that it's working properly: you can actually make it still do that in config/environments/production.rb ;P
nowthatsamatt has joined #ruby
ktosiek has joined #ruby
IceDragon has quit [Ping timeout: 240 seconds]
IceDragon has joined #ruby
danshultz has quit [Remote host closed the connection]
fgo has joined #ruby
danshultz has joined #ruby
<atmosx>
jhass: I don't think I will :-P
ascarter has joined #ruby
ascarter has quit [Max SendQ exceeded]
brunops has joined #ruby
<shevy>
haha
beneggett has joined #ruby
<shevy>
10 hours!
<jhass>
yeah, it's only useful for locally testing prod mode for dev purposes
<atmosx>
shevy: yeah, configuration is a bitch if you don't know where to look
freerobby has quit [Quit: Leaving.]
ascarter has joined #ruby
axisys has quit [Changing host]
axisys has joined #ruby
ascarter has quit [Max SendQ exceeded]
<jhass>
taf2: fixed it yet? If not I'd also try using storebinary instead of storelines
dx7 has quit [Ping timeout: 252 seconds]
drewgle has joined #ruby
ascarter has joined #ruby
<jhass>
taf2: because digging into the rfc that basically says you're using the wrong TYPE command
<jhass>
(551 that is)
mengu has quit [Remote host closed the connection]
elaptics`away is now known as elaptics
karmatr0n has quit [Remote host closed the connection]
WillAmes has joined #ruby
<jhass>
hm, nvm it's a different thing
danshultz has quit [Ping timeout: 252 seconds]
fgo has quit [Ping timeout: 268 seconds]
wallerdev has joined #ruby
<jhass>
still, using binary mode should circumvent that if I got that right
juanmnl has joined #ruby
JungleG1337 has joined #ruby
<atmosx>
going to get some sleep now, later all
michael_lee has quit [Remote host closed the connection]
olivier_bK has joined #ruby
GreatSUN has quit [Ping timeout: 245 seconds]
<JungleG1337>
later
toastynerd has joined #ruby
Speed has joined #ruby
<drewgle>
Why does "\xA8"=~/\S/ complain about the invalid UTF-8 bytes but the other operators, like ==, don't complain?
yfeldblum has joined #ruby
Tomasso has quit [Read error: Connection reset by peer]
<jhass>
because they don't actually do a match
absolutezeroff has quit [Ping timeout: 268 seconds]
francisfish has quit [Remote host closed the connection]
<jhass>
everything that does a match does complain
hermanmunster has quit [Remote host closed the connection]
nateberkopec has joined #ruby
momomomomo has quit [Quit: momomomomo]
<drewgle>
OK
toastynerd has quit [Ping timeout: 240 seconds]
<drewgle>
Is there any way to query the string to see if matches will fail before attempting it?
JungleG1337 has quit [Quit: ChatZilla 0.9.90.1 [Firefox 28.0/20140314220517]]
<apeiros>
drewgle: because == compares data as binary
<drewgle>
Any way to query whether a string is encodable, given an encoding?
<apeiros>
drewgle: so to ==, encoding doesn't matter
<apeiros>
and invalid sequences therefore don't matter either
<jhass>
drewgle: .valid_encoding? should do
hakunin has quit [Remote host closed the connection]
yfeldblum has quit [Ping timeout: 255 seconds]
<drewgle>
Thanks
toastynerd has joined #ruby
<taf2>
jhass: no dice with binary either
tjr9898 has quit [Remote host closed the connection]
failshell has quit []
<taf2>
thing is it's a 551 so i'm a bit confused finding references to that error code in google is not too good
toastynerd has quit [Remote host closed the connection]
claymore has quit [Quit: Leaving]
pen has quit [Ping timeout: 240 seconds]
bilbo_swaggins has joined #ruby
<jhass>
taf2: have a look at the ftp rfc(s), especially what page type means in the protocol. I've the feeling that net/ftp and your ftp server are incompatible
<taf2>
yeah… i don't have a choice… enterprise customers $$$
<taf2>
f$p
mattmcclure has joined #ruby
toastyne_ has joined #ruby
taf2 has quit [Quit: taf2]
mehlah has joined #ruby
<horrorvacui>
Anyone used subtle wm?
blackmesa has quit [Quit: WeeChat 0.4.3]
userx has joined #ruby
<horrorvacui>
Just curious is it any good?
blackmesa has joined #ruby
angusiguess has quit [Ping timeout: 240 seconds]
tylersmith has quit [Read error: Connection reset by peer]
tylersmith has joined #ruby
absolutezeroff has joined #ruby
habanany has quit [Read error: Connection reset by peer]
bahar has quit [Ping timeout: 240 seconds]
pigzzcanfly has joined #ruby
bahar has joined #ruby
bricker`1ork has joined #ruby
juanmnl has quit [Quit: My dingdong has gone to sleep. ZZZzzz…]
dx7 has joined #ruby
parduse has quit []
Versality has joined #ruby
CreativeEmbassy has quit [Quit: FO SHO]
bricker`work has quit [Ping timeout: 268 seconds]
yacks has quit [Read error: Operation timed out]
wallerdev has quit [Quit: wallerdev]
pigzzcanfly has quit [Ping timeout: 240 seconds]
parduse has joined #ruby
andrewlio has quit [Remote host closed the connection]
afreidah1 has quit [Ping timeout: 268 seconds]
habanany has joined #ruby
juanmnl has joined #ruby
matcouto has joined #ruby
<shevy>
dunno
jhass is now known as jhass|off
shredding has quit [Quit: shredding]
drewgle has quit [Quit: leaving]
ascarter has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<f0ster>
does anyone know how i can default to not the latest version of a gem somehow (in my ENV)? with gem or rbenv somehow
contradictioned has quit [Remote host closed the connection]
contradictioned has joined #ruby
workmad3 has joined #ruby
bricker`1ork has quit [Quit: leaving]
railzForDaiz has quit [Quit: railzForDaiz]
<apeiros>
f0ster: gem 'gemname', 'versionspec'
<apeiros>
in your code
<apeiros>
see Kernel#gem for docs
kirun has quit [Quit: Client exiting]
<f0ster>
apeiros: not from code though, from command line
<f0ster>
e.g. i want to use a diff version of rake
Versality has quit [Remote host closed the connection]
siwica has joined #ruby
<apeiros>
with rvm, you could create a gemset
Versality has joined #ruby
<apeiros>
I'd assume rbenv has a mechanism too, but I don't use rbenv
Versality has quit [Remote host closed the connection]
Versality has joined #ruby
<f0ster>
apeiros: interesting, apparently rbenv says just to use bundler so
CyborgCygnus has joined #ruby
<f0ster>
i could change the rake script to use the version i want, but that's ghetto
<apeiros>
that's a way too, but it's project specific
mway has quit [Quit: mway]
Versality has quit [Remote host closed the connection]
<f0ster>
guess i will jsut type bin/rake since i made binstubs,
Versality has joined #ruby
asteros has joined #ruby
fijimunkii has quit [Ping timeout: 268 seconds]
chichou has joined #ruby
Versality has quit [Remote host closed the connection]
Versality has joined #ruby
Ziarkaen` has quit [Read error: Connection reset by peer]
Versality has quit [Remote host closed the connection]
<workmad3>
f0ster: rake _VERSION_ <task>
siwica has quit [Ping timeout: 268 seconds]
<arubincloud>
Is the correct solution not Bundler?
Versality has joined #ruby
Galgorth has quit []
Versality has quit [Remote host closed the connection]
<apeiros>
oh right, gem binstubs check for that special arg
<apeiros>
it's soooo ugly :-S
<workmad3>
apeiros: yeah :)
Versality has joined #ruby
monkegji_ has joined #ruby
<apeiros>
I'd prefer something like gem -vVERSION rake *args
monkegjinni has quit [Ping timeout: 240 seconds]
<workmad3>
if you just want to use the version in your Gemfile though, yeah use the binstub... or rubygems-bundler... or bundle exec... or oh-my-zsh's bundler package...
Versality has quit [Remote host closed the connection]
<apeiros>
damn, I hate this…
Versality has joined #ruby
<apeiros>
should go to bed and sleep, but don't want to
<apeiros>
I feel like a 5y old >:(
<workmad3>
apeiros: go to bed and read a good book instead then?
<f0ster>
ah yeah workmad3 i want to set the default though, the whole point is i'm too lazy to type bundle exec in front of rake db:create or something
<apeiros>
workmad3: can't do that, dave.
<apeiros>
when I start to read a book, I read it till the end.
<workmad3>
f0ster: well rubygems-bundler and the oh-my-zsh bundler package are both transparent, so you just type 'rake <whatever>' and it'll Just Work(tm)
<f0ster>
i guess there really inst a way to do it globally nicely without doing something like changing a shim or the rake script itself
<f0ster>
rubygems-bundler ill check it otu
<apeiros>
rvm automatically runs it with bundle exec if a Gemfile is detected
<workmad3>
apeiros: ah, same as the bundler package then :)
Versality has quit [Remote host closed the connection]
meatherly has quit [Remote host closed the connection]
<workmad3>
apeiros: hmm... I thought rvm installed rubygems-bundler for you... which rewrites your gem binstubs so that if you invoke a gem binary inside a hierarchy with a Gemfile, it'll use bundler
<apeiros>
not sure how it does it
<apeiros>
or rather: don't know how it does it :)
devyn_ has quit [Changing host]
devyn_ has joined #ruby
greggroth has joined #ruby
devyn_ is now known as devyn
<workmad3>
but needs you to rebuild any previously installed gems... and can also be a PITA if you have gems you install intending them to be global commands, then get a crapout message because it's not in your Gemfile
<workmad3>
(some of my old gripes with rubygems-bundler :) )
beneggett has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
brain_shim has joined #ruby
benzrf|offline is now known as benzrf
rm___ has joined #ruby
rm___ is now known as Guest4157
davy_ has joined #ruby
sputnik1_ is now known as sputnik13net
<f0ster>
just yet-another-layer-of-wrappers in your path which first takes into account your path and gemfile
<f0ster>
I assume*
<workmad3>
f0ster: not quite
thesheff17 has quit [Ping timeout: 240 seconds]
<workmad3>
f0ster: it's not yet-another-layer, it's replacing the rubygems wrappers with a customised version that's bundler aware (so not an additional layer)
kpshek has quit []
<f0ster>
ahh I see
aspires has joined #ruby
mercwithamouth has quit [Ping timeout: 268 seconds]
<workmad3>
f0ster: the approach I use is the oh-my-zsh package, which provides shell functions for the common commands (rake, rails, etc.) so if they're invoked in a hierarchy with a Gemfile, it'll bundle exec them, otherwise it'll call the original version
rm_ has quit [Ping timeout: 255 seconds]
djbender has joined #ruby
<f0ster>
workmad3: ahh.. sounds nicer that it separated actually
<f0ster>
but i have bash so i assumed it wasnt relevant
<workmad3>
yeah, you could write the functions yourself :)
zigomir has quit [Ping timeout: 240 seconds]
<workmad3>
or you could switch to zsh and have awesome tab-completion ;)
<f0ster>
which would almost be more productive
Guest47341 has quit [Changing host]
Guest47341 has joined #ruby
ferr has quit [Quit: Leaving.]
<workmad3>
f0ster: I think the most awesome tab-completion I've found in zsh so far is for kill... 'kill ruby<tab>' will tab-complete to the pid of ruby processes...
Guest47341 is now known as deepy
<f0ster>
interesting
<f0ster>
i jsut figure it's taken me so long to learn rudiemntary bash programming, that i might as well stick with it
rainmanjam has quit [Remote host closed the connection]
<workmad3>
f0ster: I still script in bash
<workmad3>
although most of it is transferrable
<f0ster>
ah
<workmad3>
just be good with #!/bin/bash at the top of your bash scripts :)
jerius has quit [Quit: Computer has gone to sleep.]
timonv has joined #ruby
jgrevich has joined #ruby
jgrevich has quit [Client Quit]
klaut has quit [Remote host closed the connection]
fgo has joined #ruby
andy__ has quit [Remote host closed the connection]
frem_ is now known as frem
jerius has joined #ruby
donnoc has joined #ruby
momomomomo has joined #ruby
doodlehaus has quit [Remote host closed the connection]
spstarr_work has quit [Quit: Page closed]
SCommette has quit [Quit: SCommette]
timonv has quit [Ping timeout: 268 seconds]
fgo has quit [Ping timeout: 240 seconds]
wigg has joined #ruby
newUser1234 has joined #ruby
toastyne_ has quit [Remote host closed the connection]
nanoyak has quit [Quit: Computer has gone to sleep.]
<mary5030_>
hi anyone know about guard clauses in ruby ?
saarinen has quit [Quit: saarinen]
nowthatsamatt has quit [Quit: nowthatsamatt]
<benzrf>
mary5030_: huh?
dseitz has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
nanoyak has joined #ruby
razrunelord has quit [Ping timeout: 240 seconds]
<mary5030_>
def foo
<mary5030_>
if a?
<mary5030_>
b
<mary5030_>
elsif c?
<mary5030_>
d
<mary5030_>
else
<mary5030_>
g
<mary5030_>
end
<mary5030_>
end
<toretore>
oh yeah
<mary5030_>
i was wondering how i can change this to use a guard claus instead,
yfeldblum has joined #ruby
<mary5030_>
can anyone help me use guard clause for this method?
jlast has quit [Remote host closed the connection]
<momomomomo>
that was awesome
Photism_ has joined #ruby
<shevy>
mary5030_ wrap it in a begin/rescue/end
Guest58121 is now known as guyz
saarinen has joined #ruby
Photism has quit [Ping timeout: 240 seconds]
<benzrf>
what is a guard clause
dtcrshr has quit [Quit: Saindo]
guyz is now known as digifiv5e
<shevy>
rescue
<benzrf>
i only know guards in haskell
<shevy>
I know guards in reallife too
<shevy>
they stand somewhere and look really stupid
yfeldblum has quit [Ping timeout: 252 seconds]
spyderman4g63 has quit [Remote host closed the connection]
<shevy>
benzrf what do you think mary5030_ is asking?
pigzzcanfly has joined #ruby
* benzrf
shrugs
DrShoggoth has quit [Quit: Leaving]
<benzrf>
iunno
Royalb15_1 has quit [Ping timeout: 252 seconds]
monkegji_ has quit [Ping timeout: 268 seconds]
dx7 has quit [Ping timeout: 240 seconds]
s2013 has quit [Ping timeout: 255 seconds]
<toretore>
mary5030_: it would be easier to answer a question with real code
angusiguess has quit [Ping timeout: 240 seconds]
phantummm has quit [Quit: phantummm]
jamto11 has quit [Remote host closed the connection]
<mary5030_>
toretore:
<mary5030_>
def failure_reason
<mary5030_>
if has_successful_response?
<mary5030_>
unavailable_ips_message
<toretore>
no
<mary5030_>
elsif not_a_network_device?
<toretore>
no
<mary5030_>
non_network_device_message
<mary5030_>
else
<mary5030_>
FAILURE_REASON % { output: output, status: status }
<mary5030_>
end
<mary5030_>
end
<shevy>
there, wrap it into begin/rescue inside of that method you just pasted
rayners has quit [Remote host closed the connection]
<toretore>
i don't see why you need a guard clause there
<toretore>
the code is fine as it is
sambao21 has joined #ruby
pigzzcanfly has quit [Ping timeout: 240 seconds]
<mary5030_>
i was hoping to not have to use elseif
<toretore>
because?
geggam has quit [Remote host closed the connection]
<mary5030_>
i thought there would be a better way of presenting this
<toretore>
it's fine
<toretore>
it's readable and it makes sense
<shevy>
that code scares me
olivier_bK has quit [Ping timeout: 246 seconds]
monkegjinni has quit [Remote host closed the connection]
mercwithamouth has joined #ruby
_Andres has quit [Quit: My Mac Pro has gone to sleep. ZZZzzz…]
vasilakisFiL has quit [Remote host closed the connection]
donnoc has quit [Ping timeout: 240 seconds]
dx7 has joined #ruby
chris_thomson has joined #ruby
jollyy has quit [Quit: jollyy]
gabrielCmendes has quit [Ping timeout: 255 seconds]
bilbo_swaggins has joined #ruby
relix has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
monkegjinni has joined #ruby
gabrielCmendes has joined #ruby
dkpi has joined #ruby
spyderman4g63 has joined #ruby
EnginA has joined #ruby
habanany has quit [Quit: Leaving.]
spyderman4g63 has quit [Client Quit]
<EnginA>
I don't remember if I've installed Ruby manually or not and not sure how to update it now. I'm on Mac and the ruby I'm running is ruby 2.0.0p247 (2013-06-27 revision 41674) [universal.x86_64-darwin13]
ebwise has quit [Ping timeout: 255 seconds]
<dkpi>
I'm not a ruby dev but I try to understand a third party code snippet.
<dkpi>
event :idle do
<dkpi>
transition :first_gear => :idling
<dkpi>
end
pzuraq has joined #ruby
<toretore>
state machine
<dkpi>
So event is a function that is called with 2 params
<EnginA>
It might have come default with Mac, or I could have installed it with brew maybe. My gem version is 2.0.3. Should I update at all?
<pzuraq>
is it possible to compare two integers programmatically using send?
bpgoldsb has quit [Ping timeout: 268 seconds]
<dkpi>
toretore, yes
<EnginA>
(my problem is 'gem install jekyll' failed)
bpgoldsb|too has joined #ruby
<pzuraq>
like 1.send('<', 2)
narcan has joined #ruby
<dkpi>
why there isn't a comma between `:idle` and `do`
<sent-hil>
what does the File object translate to when sent via http?
Es0teric has joined #ruby
<benzrf>
sent-hil: can you be more detailed
<sent-hil>
I get this output https://www.irccloud.com/pastebin/7NHF096O when I upload a recipe from the engineyard ruby client. I'm unable to understand what #File represents though? I'm trying to export the api via node, not sure what the equivalent is
<sent-hil>
benzrf: ^
nath_schwarz_ has quit [Quit: ERROR: User not found(ERRID:201ak234k12)]
mansi has quit [Ping timeout: 240 seconds]
s3ri0us_ has quit [Ping timeout: 255 seconds]
bricker`LA has joined #ruby
<benzrf>
sent-hil: it's probably marshalled
<benzrf>
have you tried intercepting the output?
juanmnl has quit [Quit: My dingdong has gone to sleep. ZZZzzz…]
<sent-hil>
benzrf: no, how would I do that?
tcstar has joined #ruby
davy_ has quit [Remote host closed the connection]
juanmnl has joined #ruby
xibalba has left #ruby ["Leaving"]
Shidash has quit [Quit: Leaving.]
Shidash1 has joined #ruby
phoenixSunset has joined #ruby
sethen has quit [Remote host closed the connection]
caustic has quit []
doodlehaus has joined #ruby
s3ri0us has joined #ruby
<benzrf>
sent-hil: try setting it to connect to localhost on a high port, then run netcat there
yfeldblum has joined #ruby
lkba has quit [Ping timeout: 240 seconds]
beneggett has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
francisfish has joined #ruby
pwh has quit []
Shidash1 has quit [Ping timeout: 268 seconds]
postmodern has joined #ruby
davy_ has joined #ruby
andrewlio has quit [Quit: Leaving.]
<benzrf>
why isnt there a #beingsnootyaboutvideogames
pigzzcanfly has joined #ruby
predator117 has quit [Ping timeout: 268 seconds]
andy__ has joined #ruby
speakingcode has quit [Ping timeout: 245 seconds]
yfeldblum has quit [Ping timeout: 255 seconds]
predator117 has joined #ruby
francisfish has quit [Ping timeout: 268 seconds]
Shidash has joined #ruby
ndrei has quit [Ping timeout: 252 seconds]
chipotle has quit [Quit: cya]
wallerdev has quit [Quit: wallerdev]
xcv has joined #ruby
mway has joined #ruby
m8 has quit [Quit: Sto andando via]
pigzzcanfly has quit [Ping timeout: 240 seconds]
lukec has quit [Quit: lukec]
Stalkr_ has quit [Quit: Leaving...]
banisterfiend has quit [Ping timeout: 264 seconds]
ndrei has joined #ruby
pierre1_ has quit [Ping timeout: 240 seconds]
<bilbo_swaggins>
because that's just gamers being gamers?
<bilbo_swaggins>
to be expected, really
jerius has joined #ruby
mary5030_ has quit [Ping timeout: 240 seconds]
Shidash1 has joined #ruby
Solnse has quit [Quit: Leaving.]
Shidash has quit [Read error: Connection reset by peer]
nanoyak has quit [Quit: Computer has gone to sleep.]
maroloccio has quit [Quit: WeeChat 0.4.3]
lkba has joined #ruby
banister has joined #ruby
maroloccio has joined #ruby
jollyy has quit [Quit: jollyy]
<bilbo_swaggins>
benzrf have you used Sinatra much yet?
<bilbo_swaggins>
I'm planning an API for an economy game
<benzrf>
yea
<benzrf>
ive used sinatra so much dude
<benzrf>
its like
<bilbo_swaggins>
all interaction will go through HTTP, with JSON for data structures and (possibly something else?) for commands sent from clients
<benzrf>
nuts how much ive used it whoa
<benzrf>
bilbo_swaggins: use REST
<benzrf>
i hear its the best
<basichash>
right I've installe rails via ruby install rails, but I can't access it, 'program can not be found'
jollyy has joined #ruby
<benzrf>
or maybe hateoas whatever the fuck that is
<benzrf>
basichash: i think you mean gem install rails
<basichash>
yeah sorry gem*
<benzrf>
what are u tryin to run
mary5030 has joined #ruby
<basichash>
rails new blog
Geniack_ has quit [Ping timeout: 240 seconds]
SCommette has joined #ruby
Geniack has joined #ruby
mikeg has quit [Remote host closed the connection]
mary5030 has quit [Remote host closed the connection]
mary5030 has joined #ruby
<bilbo_swaggins>
okay I'll have to read some of these pdfs I just got on REST
<bilbo_swaggins>
it's not a "understand in 5 minutes" kind of thing
<bilbo_swaggins>
It seems to imply not the protocol for use, but rather the way my application is structured to respond to things coming in by it?
<benzrf>
roight
<benzrf>
it's a way to set up HTTP apis
<bilbo_swaggins>
okay thanks I'll read these and keep working on my SWEET VIDEO GAME
<benzrf>
:-)
<basichash>
benzrf: do I need to install via apt-get?
Martxel has quit [Ping timeout: 268 seconds]
<benzrf>
u shouldnt have ot
<benzrf>
*t
<benzrf>
o
<basichash>
don't understand why it can't find the gem
<basichash>
i installed rb 2.1.1 via source, installed rbenv, set local to 2.1.1 then installed rails gem, should work
wigg has quit [Remote host closed the connection]
razrunelord has joined #ruby
<basichash>
dw, just restarted bash
basichash has quit [Quit: Lost terminal]
<bilbo_swaggins>
this project I'm working on is something I've had many false starts with. It started as a something awful forum game, became a card game, then I eventually realized needed to be programmed. And so here I am, 4 years into it, learning to program and all the billion things I need to get this concept off the ground.
<bilbo_swaggins>
I *will* be back with questions, to be sure, though some aren't really specifically Ruby-related
chrisseaton has quit []
<bilbo_swaggins>
That's why I ask if you have experience desgning APIs in Sinatra
<bilbo_swaggins>
or via, I should say
<benzrf>
o=
mercwithamouth has quit [Ping timeout: 268 seconds]
<bilbo_swaggins>
scope creep used to be a problem, but I have a very solid idea in mind now
<bilbo_swaggins>
it's still really hard
dstynchula has quit []
<bilbo_swaggins>
I'm just wondering where I might find help resources if I get stuck on issues that aren't really Ruby related
saarinen has quit [Quit: saarinen]
<bilbo_swaggins>
like designing game economies, game AI agents to connect via the API, etc
jollyy has quit [Quit: jollyy]
<bilbo_swaggins>
books are one thing, but I'm not smart enough to just get everything right
bricker`LA has quit [Quit: leaving]
george2 has quit [Remote host closed the connection]
monkegjinni has quit [Remote host closed the connection]
mansi has joined #ruby
<horrorvacui>
bilbo_swaggins: check out extra credits on youtube
andy__ has quit [Remote host closed the connection]
newUser1234 has joined #ruby
locriani has joined #ruby
<horrorvacui>
It will talk about the theory side that is
Es0teric has quit [Quit: Computer has gone to sleep.]
andy__ has joined #ruby
Es0teric has joined #ruby
<bilbo_swaggins>
awesome thanks
<bilbo_swaggins>
bookmarked
snath has quit [Ping timeout: 252 seconds]
chipotle has joined #ruby
codeurge has quit [Quit: codeurge]
andy__ has quit [Read error: Connection reset by peer]