<Aleeen>
so what is something Ruby can do that PHP cannot?
<pskosinski>
Aleeen: You can't execute Ruby on client side in browser, if it's what you mean. As far as I know…
Sigma00 has joined #ruby
<nga4>
I thought there was a way to do it
vlad_starkov has joined #ruby
<pskosinski>
Ruby can be consistent and intuitive.
<Aleeen>
Oh crap
<nga4>
some complex javascript clunker
subbyyy has joined #ruby
<Aleeen>
Listen I didn't mean to start an argument between the clientside
<pskosinski>
nga4: Hm… interesting
<nga4>
pskosinski: folks do it with lua
Tricon has quit [Ping timeout: 248 seconds]
Guest17638 has joined #ruby
slyv has joined #ruby
<nga4>
pskosinski: I may be manufacturing false memories though, technically it seems possible but completely unreasonable
elaptics is now known as elaptics`away
icco has quit [Read error: Operation timed out]
<Aleeen>
Is Ruby similar to PHP and .NET
<nga4>
all of those things are python
<Aleeen>
Meaning, in terms of what the end goal is
<fryguy>
Aleeen: yes, it's a general purpose language
<pskosinski>
I would definitely prefer to use Ruby over JavaScript if I had choice…
<Aleeen>
Oh I see
Tricon has joined #ruby
baroquebobcat has quit [Quit: baroquebobcat]
<Aleeen>
It has nothing to do with graphics, correct?
<fryguy>
Aleeen: it can if you want it to
sepp2k has quit [Read error: Connection reset by peer]
<Aleeen>
hmm
akhet has joined #ruby
akhet has quit [Changing host]
akhet has joined #ruby
<Aleeen>
and what does the file end with?
<Aleeen>
For example, php is .php
<pskosinski>
There is ruby-sdl or something similar, probably not developed anymore
<fryguy>
Aleeen: whatever you want
<Aleeen>
so it can be .html?
<fryguy>
Aleeen: traditional is .rb i guess
<fryguy>
Aleeen: it could be, sure
akhet has quit [Remote host closed the connection]
<fryguy>
file extensions don't mean much
<nga4>
Aleeen: Ruby is just an interpreted language geared towards general use object oriented programming. You can do web development (most folks do that), 3d model manipulation (google does this) or just general hob-nobbery
<Aleeen>
Wow Ruby is so nice to me
rickruby has joined #ruby
<Aleeen>
it lets me do what I want
<fryguy>
Aleeen: it's a general purpose language.
<Aleeen>
Ah
<nga4>
any general purpose language will get you there
rickruby has quit [Remote host closed the connection]
<Aleeen>
What other languages are considered general purpose?
<mmlac-bv>
are there certain constraints to insert a new object into an array in which .each() I am right now?
emmanuelux has quit [Quit: emmanuelux]
ehaliewicz has joined #ruby
<bean>
mmlac-bv, sample code please
<mmlac-bv>
hard to give
NiteRain has joined #ruby
<fryguy>
mmlac-bv: don't mess with the contents of something you are enumerating as you are enumerating it. it never works out how you want it to, and just makes things complicated
icco has quit [Read error: Operation timed out]
<mmlac-bv>
just thought ruby would have some cool trick. while not empty it is then...
<bean>
yeah, you always want to do things like taht w/ a 2nd array, or a different more functional way
idkazuma has quit [Remote host closed the connection]
<mmlac-bv>
thank you
<fryguy>
mlue: "while not empty" is almost certainly wrong
<mmlac-bv>
how would a stack then work?
Kruppe has joined #ruby
<fryguy>
depends, what do you want to do with it
<mmlac-bv>
pop it?
robert_ has quit [Ping timeout: 272 seconds]
sailias has joined #ruby
<nga4>
mmlac-bv: depending on your goals .map! or .map may be in line with what you are looking for
ariedler has quit [Remote host closed the connection]
miso1337 has joined #ruby
<fryguy>
mmlac-bv: pop is a function on enumerables
philcrissman has quit [Remote host closed the connection]
icco has quit [Read error: Operation timed out]
CARL0S has joined #ruby
markalanevans has quit [Ping timeout: 246 seconds]
icco has joined #ruby
kofno has joined #ruby
strmpnk has joined #ruby
adamjleonard has quit [Quit: Leaving...]
gabrielrotbart has quit [Remote host closed the connection]
pioz has quit [Quit: This computer has gone to sleep]
mando has joined #ruby
v0n has quit [Ping timeout: 252 seconds]
bhaarat has joined #ruby
bhaarat has quit [Client Quit]
kayloos has quit [Remote host closed the connection]
miso1337 has quit [Quit: afk]
hogeo has quit [Remote host closed the connection]
pcarrier has quit [Ping timeout: 260 seconds]
pcarrier has joined #ruby
hamakn has joined #ruby
jnoob22 has quit [Remote host closed the connection]
randomau_ has joined #ruby
kofno has quit [Remote host closed the connection]
hamakn has quit [Remote host closed the connection]
JMcAfreak has quit [Ping timeout: 245 seconds]
outphunk has quit [Remote host closed the connection]
marcdel has joined #ruby
timmow has joined #ruby
outphunk has joined #ruby
kpshek has quit [Ping timeout: 276 seconds]
icco has quit [Read error: Operation timed out]
randomautomator has quit [Ping timeout: 245 seconds]
Domon has joined #ruby
hamakn has joined #ruby
jenrzzz has quit [Ping timeout: 264 seconds]
zeade has quit [Quit: Leaving.]
snooc has quit []
jdolitsky2 has joined #ruby
randomau_ has quit [Ping timeout: 272 seconds]
icco has joined #ruby
Sigma00 has quit [Ping timeout: 245 seconds]
outphunk has quit [Remote host closed the connection]
carlyle has quit [Remote host closed the connection]
timmow has quit [Ping timeout: 252 seconds]
jdolitsky1 has quit [Read error: Connection reset by peer]
jdolitsky1 has joined #ruby
miskander has joined #ruby
brianpWins has quit [Quit: brianpWins]
binaryplease has quit [Ping timeout: 252 seconds]
gabrielrotbart has joined #ruby
robert_ has joined #ruby
pskosinski has quit [Quit: pskosinski]
banjara has quit [Quit: Leaving.]
rburton- has joined #ruby
outphunk has joined #ruby
Guedes0 has joined #ruby
Guedes0 has quit [Remote host closed the connection]
rburton- has quit [Client Quit]
hogeo has joined #ruby
Guedes0 has joined #ruby
rburton- has joined #ruby
joyicecloud has joined #ruby
jdolitsky2 has quit [Ping timeout: 272 seconds]
swex has quit [Ping timeout: 248 seconds]
PiCards has joined #ruby
rburton- has quit [Read error: Connection reset by peer]
Sigma00 has joined #ruby
_maes_ has joined #ruby
eka has quit [Quit: Computer has gone to sleep.]
sleetdrop has joined #ruby
sleetdrop has quit [Max SendQ exceeded]
sleetdrop has joined #ruby
icco has quit [Read error: Operation timed out]
nga4 has quit [Ping timeout: 252 seconds]
icco has joined #ruby
Sigma00 has quit [Ping timeout: 245 seconds]
chrishough has joined #ruby
freezway has joined #ruby
<freezway>
where can I dl the rdoc for 2.0?
<freezway>
going to a programming competition and we dont get internet for obvious reasons
momomomomo has joined #ruby
btaitelb has joined #ruby
soulofpeace has joined #ruby
outphunk has quit [Quit: outphunk]
jekotia_ has joined #ruby
Hanmac1 has joined #ruby
ttt has joined #ruby
banjara has joined #ruby
yacks has quit [Read error: Connection reset by peer]
jdolitsky1 has quit [Quit: Leaving]
sailias has quit [Quit: Leaving.]
jekotia has quit [Ping timeout: 272 seconds]
jekotia_ is now known as jekotia
baroquebobcat has quit [Quit: baroquebobcat]
io_syl has quit [Quit: Computer has gone to sleep.]
xue has joined #ruby
Hanmac2 has quit [Ping timeout: 260 seconds]
yacks has joined #ruby
Mpenzi has left #ruby [#ruby]
mando has quit [Remote host closed the connection]
miskander has quit [Quit: miskander]
<linduxed>
so i've got a huge string that i need to have in my code, so i'd prefer to split it across multiple lines, but it should still be considered as one line
<linduxed>
it would also be nice if i could have it indented, without ruby including that indentation
icco has quit [Ping timeout: 252 seconds]
Matip has joined #ruby
icco has joined #ruby
supernullset has quit [Remote host closed the connection]
<linduxed>
it seems like most of my questions are answered by that doc-page
headius has joined #ruby
kf8a has joined #ruby
ioNull has joined #ruby
kf8a has quit [Client Quit]
Opettaja has quit [Ping timeout: 252 seconds]
icco has quit [Read error: Operation timed out]
BrunoAlano has quit [Client Quit]
BrunoAlano has joined #ruby
icco has joined #ruby
snooc has quit []
agarie has joined #ruby
<bnagy>
linduxed: btw your code was wacky because you're using the slice notation s[a,b] takes a slice of length b starting at a
s2013 has joined #ruby
ebobby has quit [Ping timeout: 256 seconds]
<bnagy>
and your length (x+1) keeps increasing because you're injecting bigger values of x
<linduxed>
bnagy: ooooh, i thought s[a,b] mean from a to b
<linduxed>
so that's why
<bnagy>
it tails off at the end becaise the length is bigger than the remaining string contents
<linduxed>
yeah yeah, now i get it
<linduxed>
hmmm
<linduxed>
weird thing though
Andreo has quit [Read error: Connection reset by peer]
BrunoAlano has quit [Remote host closed the connection]
<linduxed>
"abcdef".to_enum.each_cons(2).to_a gives a NoMethodError
<linduxed>
undefined method`each' for "abcdef":String
ttt has quit [Remote host closed the connection]
* linduxed
is doing something wrong
<bnagy>
yeah, to_enum doesn't do what I think you want it to do
<linduxed>
:-S
<bnagy>
either use a range like I did, or decompose the string into an array with eg split('')
<linduxed>
basically, that each_cons is exactly what i want to do, but on a string
mahmoudimus has quit [Quit: Computer has gone to sleep.]
<bnagy>
or chars
<bnagy>
or whatever
etank has quit [Quit: WeeChat 0.4.0]
davidokner has joined #ruby
<bnagy>
chars is probably prettiest.
<davidokner>
How do I upgrade to ruby 2.0.0 with RVM?
<linduxed>
bnagy: yeah, just tested chars, looks good
philcrissman_ has joined #ruby
philcrissman has quit [Read error: Connection reset by peer]
<bnagy>
davidokner: dunno about 'upgrade' but you just install it like you install any other ruby version with rvm
<bnagy>
and then select it
V8Energy_ has joined #ruby
<bnagy>
but I cannot remember the exact symtax for either of those things because I set rvm on fire and stomped on its ashes ages ago
<davidokner>
Did you switch to brew?
<bnagy>
brew and rvm are orthogonal
<davidokner>
what do you use to install on os x?
<bnagy>
I switched to rbenv
<bnagy>
chruby seems to be cool, as well
<bnagy>
but rbenv meets my needs
gabrielrotbart has quit [Remote host closed the connection]
<davidokner>
so brew and rvm are hard to use and rbenv would be easier?
mathRand has quit []
<davidokner>
I tried brew before, but couldn't get it to work. RVm has always worked for me.
psyprus has quit [Ping timeout: 258 seconds]
<davidokner>
I use brew for other things though
<V8Energy_>
is there some kind of gem that i can use as outlet to sqlite3? something similar to ActiveRecord? basically something that will simplify the process of adding new entries and finding records?
etank has joined #ruby
<bnagy>
well brew is a general package manager
<bnagy>
davidokner: but I use ports for that instead
Opettaja has joined #ruby
<bnagy>
V8Energy_: Sequel maybe if it's still maintained
icco has quit [Read error: Operation timed out]
<bnagy>
but sqlite sucks and you shouldn't use it
<s2013>
sqlite is ok for development though
Davey has quit [Quit: Computer has gone to sleep.]
ttt has joined #ruby
<V8Energy_>
bnagy: what should I use then?
davidokner has quit [Quit: leaving]
<bnagy>
a proper database
gwillickers has joined #ruby
<V8Energy_>
mysql?
<bnagy>
if you want relational imvho postgres
<s2013>
V8Energy_ for development sqlite is enough
<s2013>
but for production postgres/mysql works well
<s2013>
and if you are going to be using heroku then itll be postgres anyways
<bnagy>
why would you dev on something that is not your production target? That's madness
aapzak has quit [Ping timeout: 252 seconds]
<bnagy>
it's not like installing software on your dev box hurts or costs money
<s2013>
because in rails you have a production environment and a development as well as test environment
<s2013>
and its very easy to switch between them
Heero has joined #ruby
icco has joined #ruby
<V8Energy_>
hmm.. it's just i need to have a script ran from within rails every few hours, basically it's supposed to read from extrnal database and copy the data to local database
aapzak has joined #ruby
<fryguy>
V8Energy_: cron, resque, etc. can do that
<V8Energy_>
yea i am gonna use cron but i am not sure what's the best way to copy data from extrnal database to local
<V8Energy_>
i mean, i have the data i need stored in data variable
<V8Energy_>
I guess I can simply use ActiveRecord?
<momomomomo>
V8Energy_: You'll have to get your hands dirty, and if you just want to do that transfer once, I'd do it in seeds.rb
<bnagy>
using cron is not a very good idea
<V8Energy_>
It has to be done every 6 hours
<momomomomo>
I've used resque recently, and it was extremely painless
<V8Energy_>
what's better than cron?
<bnagy>
isn't this why rails people make sidekiq etc?
Opettaja has quit [Ping timeout: 240 seconds]
<bnagy>
well cron makes it 'invisible' to anyone reading your code - ie it involves the system itself
baba has joined #ruby
Sigma00 has quit [Ping timeout: 245 seconds]
<bnagy>
using resque sidekiq blah blah integrates it
Heero` has joined #ruby
Guest17638 has quit [Ping timeout: 260 seconds]
jamie_ca_ has quit [Quit: Computer has gone to sleep.]
<V8Energy_>
is it even possible to have a schedule with sidekiq to make it run every 6 hours or so?
ananthakumaran has joined #ruby
justsee has quit [Ping timeout: 245 seconds]
Sigma00 has joined #ruby
psyprus has joined #ruby
v0n has joined #ruby
Guedes0 has quit [Quit: Saindo]
<V8Energy_>
cron actually allows me to run some code every few hours
<Matip>
I found this way using self.class::THIS instead of THIS
jdunck has joined #ruby
iamjarvo has quit [Quit: Leaving.]
zubov has joined #ruby
ananthakumaran has quit [Quit: Leaving.]
joyicecloud has joined #ruby
mahat has joined #ruby
<bnagy>
yeah that works I guess... I don't like it, but I'm not sure why
timmow has joined #ruby
<Matip>
because you have to change the parent code? :P
ZachBeta has joined #ruby
<bnagy>
I think just because I am so used to seeing that kind of code done with class methods and class ivars
<bnagy>
without really thinking about it I can't see anything specific to dislike about doing it with constants
lukeholder has joined #ruby
cyberarm has quit [Quit: Bye]
<bnagy>
ok I'm out
davidokner has joined #ruby
<davidokner>
When selecting ruby version should I select regular or @global?
timmow has quit [Ping timeout: 252 seconds]
k776 has left #ruby [#ruby]
alvaro_o has quit [Quit: Ex-Chat]
reset has quit [Ping timeout: 272 seconds]
gstamp has joined #ruby
chandankumar has quit [Ping timeout: 252 seconds]
chrishough has quit [Quit: chrishough]
nga4 has joined #ruby
<davidokner>
Does anyone know how to select 2.0.0 in rubymine?
<davidokner>
I found the path, but I don't see anything I can select.
chrishough has joined #ruby
rhinux_ has quit [Remote host closed the connection]
rippa has joined #ruby
netto has joined #ruby
icco has quit [Read error: Operation timed out]
btaitelb has quit [Quit: btaitelb]
<momomomomo>
davidokner: In IDEA I had to go to File -> Project Structure, and then go down each tab to ensure that the correct rvm ruby & gemset were being used for the project
icco has joined #ruby
syamajala has quit [Ping timeout: 252 seconds]
mahat has quit [Ping timeout: 252 seconds]
rippa has quit [Ping timeout: 240 seconds]
thufir_ has joined #ruby
mse has joined #ruby
adamjleonard has quit [Quit: Leaving...]
rhinux_ has joined #ruby
NihilistDandy has joined #ruby
baba has quit [Ping timeout: 260 seconds]
redhotvengeance has joined #ruby
Sigma00 has quit [Ping timeout: 245 seconds]
dv84 has joined #ruby
ehaliewicz has quit [Remote host closed the connection]
d11wtq_ios has joined #ruby
xcv has quit [Remote host closed the connection]
ckrailo has joined #ruby
mercwithamouth has quit [Ping timeout: 272 seconds]
Sigma00 has joined #ruby
redhotvengeance has quit [Ping timeout: 272 seconds]
ananthakumaran has joined #ruby
ananthakumaran has quit [Client Quit]
markalanevans has joined #ruby
a_a_g has joined #ruby
baba has joined #ruby
kenneth has quit [Quit: kenneth]
icco has quit [Ping timeout: 252 seconds]
icco has joined #ruby
chandankumar has joined #ruby
sambio has quit []
billy_ran_away has quit [Ping timeout: 260 seconds]
CARL0S has quit [Remote host closed the connection]
baroquebobcat has quit [Quit: baroquebobcat]
Sigma00 has quit [Ping timeout: 245 seconds]
uris has quit [Quit: Leaving]
momomomomo has quit [Quit: adios]
chrishough has quit [Quit: chrishough]
jekotia has quit [Quit: ChatZilla 0.9.90-rdmsoft [XULRunner 18.0.2/20130201065344]]
gwb3 has joined #ruby
d11wtq_ios has quit [Remote host closed the connection]
stardiviner has joined #ruby
mse has quit [Quit: Leaving]
tylersmith has joined #ruby
gabrielrotbart has joined #ruby
Sigma00 has joined #ruby
mumblerit has joined #ruby
mikepack has joined #ruby
celinedior has joined #ruby
mercwithamouth has joined #ruby
philcrissman_ has quit [Remote host closed the connection]
LaPetiteFromage has joined #ruby
<TTilus>
shouldn't putting .ruby-version in project root dir suffice?
<gwb3>
Hello :)
icco has quit [Read error: Operation timed out]
<gwb3>
I am in the process of writing a very ugly script that allows a user to enter in a range of years (e.g. 2000-2050) after which, all of the leap years in that range will be output - https://gist.github.com/garlandbinns/32fc0054f2f2a96b59e8
<davidokner>
I can't locate the file to select to set the ruby version for RubyMine.
<TTilus>
davidokner: manual doesnt help?
<davidokner>
I'm not familiar with the .ruby-version, but I meant for all projects.
<gwb3>
One of the problems I am encountering is that since I am assigning a variable by gets.chomp, I am unable to modify it with an integer so that I can check all of the ears in the range.
icco has joined #ruby
<gwb3>
I have only learned basic methods such as if, elsif, else, while, etc. - sorry there isn't much beautiful ruby in there. Still a cro-magnon at this point unfortunately.
cheez0r has joined #ruby
<gwb3>
If anyone could share a tip I'd appreciate it!
cheez0r is now known as Guest43385
ariedler has quit [Remote host closed the connection]
<davidokner>
It isn't showing up according to the directions. I may need to have it in my path.
<TTilus>
gwb3: you need your year values to be numbers (integers actually) not strings
<gwb3>
TTilus: yes, I was thinking so - however, gets.chomp only grabs strings, no?
<TTilus>
gwb3: and you seem to know how to convert string to int
<davidokner>
I would think chomp only works on strings, but you could probably get an answer on the lib doc
<davidokner>
You could just convert to string, chomp it, then convert back to integer.
<TTilus>
gwb3: so when you have a string, which chomp returns, whagt to do it then?
<zubov>
I am writing a little app to solve a problem: problem is with legacy database and a ton of tables that need to have some business logic applied in certain cases and then updates applied to the database
<gwb3>
TTilus: yeah i def want to write more idiomatically, still learning how to crawl like a baby right now though i think that is the next chapter in the book i am reading though
<s2013>
TTilus can you check the code i pasted and let me know if that is ok?
<TTilus>
zubov: is it run-once-conversion?
<zubov>
I am creating a bunch of modules mapped to the table names that has the custom business logic for each table and the update statements required
jarray52 has joined #ruby
generalissimo has joined #ruby
<zubov>
I then use a Struct to loop the the list of tables and dynamically call the code in the modules
<s2013>
gwb3 did it make sense?
chrishough has joined #ruby
<zubov>
TTilus: this will be on going
timmow has joined #ruby
<zubov>
TTilus: I thought about using json but the custom business logic is making me lean towards the modules
<gwb3>
s2013: yes, I haven't learned the iterators yet but I like how you called to_i on chomp, I should have done that.
<TTilus>
s2013: will take a whilw, im off for work now, will be back when im at office
<s2013>
oh you havent learned that yet? ok got it
<s2013>
what have you learned so far
<s2013>
ill reconstruct it using that
choobie has quit [Remote host closed the connection]
<s2013>
i think the windows one is a bit different
<zubov>
sublime is sublime :)
<s2013>
nevermind im stupid
<zubov>
instead of command you use control
<s2013>
ill check out the video and set it up that way then thanks for it
Scriptor has quit [Ping timeout: 272 seconds]
icco has quit [Read error: Operation timed out]
hamed_r has joined #ruby
Mon_Ouie has joined #ruby
Mon_Ouie has quit [Changing host]
Mon_Ouie has joined #ruby
icco has joined #ruby
apeiros has quit [Remote host closed the connection]
botton has joined #ruby
botton has left #ruby [#ruby]
joyicecloud has quit [Ping timeout: 245 seconds]
nfk has joined #ruby
nfk has quit [Changing host]
nfk has joined #ruby
quazimodo has quit [Ping timeout: 264 seconds]
tomzx_mac has quit [Ping timeout: 245 seconds]
vikhyat has quit [Remote host closed the connection]
cyclic has joined #ruby
<cyclic>
hi, when I try to update mongoid, I get the following message: http://pastebin.com/yUMkZUVP What should I do?
mercwithamouth has quit [Ping timeout: 276 seconds]
timmow has joined #ruby
FifthWall has joined #ruby
ckrailo has quit [Quit: Computer has gone to sleep.]
ph^ has quit [Remote host closed the connection]
zubov has quit [Remote host closed the connection]
<Nom->
cyclic: Looks like you're trying to bundle on a production machine
<cyclic>
right
<cyclic>
how can I do it in dev?
<Nom->
But I mean, it tells you how to fix that in the message
<cyclic>
and then move to prod?
dawkirst has quit [Read error: Operation timed out]
axxT has joined #ruby
<Nom->
Long story short, the copy you're running it on has had 'bundle install --deployment' run
<cyclic>
is there a way to tell where dev is?
angusiguess has quit [Ping timeout: 256 seconds]
<Nom->
If that's *not* a production machine you're testing on, run 'bundle install --no-deployment' to remove the freeze
<cyclic>
I'm a newb to the rub
<cyclic>
it's prod
dawkirst has joined #ruby
timmow has quit [Ping timeout: 252 seconds]
<cyclic>
I'd like to do this on dev first
<Nom->
Well, you need to check the code out of your version control then
<cyclic>
I guess I need to setup my local machine as a dev machine?
<cyclic>
ok I did that...
<cyclic>
on my mac
<Nom->
Yea, you need a development machine to run it on, yes
<cyclic>
the server is BSD
icco has quit [Read error: Operation timed out]
tagrudev has joined #ruby
<cyclic>
so I literally run the bundle install on my local machine with no-deployment, test it out, then check it in?
jbueza has quit [Quit: Leaving.]
<cyclic>
Then git pull?
mercwithamouth has joined #ruby
<cyclic>
No need to install anything on the prod machine?
JohnBat26 has joined #ruby
miso1337 has joined #ruby
<Nom->
Well, I don't know how you deploy your code... you should know that... if that message is happening on a development machine, it probably means someone has checked in .bundle/config to the repo
<cyclic>
it's happening on prod
<Nom->
Well, then someone has probably not followed the proper deployment process? I can't give you the answer without knowing your environment...
<cyclic>
k thanks
<cyclic>
so far .. :)
dhruvasagar has quit [Read error: Connection reset by peer]
icco has joined #ruby
Heero` has quit [Quit: Leaving]
dawkirst has quit [Ping timeout: 264 seconds]
dhruvasagar has joined #ruby
yfeldblum has joined #ruby
generalissimo has quit [Ping timeout: 272 seconds]
mockra has quit [Remote host closed the connection]
aganov has joined #ruby
rakl has quit [Ping timeout: 252 seconds]
rakl has joined #ruby
rismoney has quit [Ping timeout: 260 seconds]
freezway has quit [Read error: Operation timed out]
headius has quit [Quit: headius]
shock_one has joined #ruby
noob_hacker has joined #ruby
skroon has quit [Ping timeout: 272 seconds]
icco has quit [Ping timeout: 252 seconds]
justsee has joined #ruby
justsee has quit [Changing host]
justsee has joined #ruby
threesome has quit [Ping timeout: 264 seconds]
dhruvasagar has quit [Ping timeout: 264 seconds]
undersc0re97 has joined #ruby
undersc0re97 has quit [Changing host]
undersc0re97 has joined #ruby
icco has joined #ruby
dawkirst has joined #ruby
mockra has joined #ruby
basex has quit [Quit: basex]
workmad3 has joined #ruby
Hanmac has quit [Ping timeout: 260 seconds]
rakl has quit [Quit: sleeping]
nanothief has joined #ruby
brianpWins has joined #ruby
mikepack has quit [Read error: Connection reset by peer]
mikepack has joined #ruby
angusiguess has joined #ruby
puppeh has joined #ruby
daniel_hinojosa has quit [Ping timeout: 246 seconds]
markalanevans has quit [Quit: markalanevans]
mockra has quit [Remote host closed the connection]
Hanmac1 has quit [Ping timeout: 276 seconds]
Hanmac has joined #ruby
icco has quit [Read error: Operation timed out]
rx has quit [Quit: Computer has gone to sleep.]
ph^ has joined #ruby
michaelmartinez has joined #ruby
icco has joined #ruby
basex has joined #ruby
vlad_starkov has joined #ruby
angusiguess has quit [Ping timeout: 248 seconds]
mythical has quit [Ping timeout: 272 seconds]
thams has quit [Quit: thams]
ph^ has quit [Remote host closed the connection]
<callmeivan>
yolo
vlad_starkov has quit [Read error: Connection reset by peer]
vlad_starkov has joined #ruby
ph^ has joined #ruby
<callmeivan>
:D, does anybody know if is possible to modify squids ACL during runtime so that it automatically updates?
rippa has quit [Ping timeout: 240 seconds]
rippa has joined #ruby
Hanmac1 has joined #ruby
mnaser has quit [Ping timeout: 245 seconds]
nyuszika7h_ is now known as nyuszika7h
Domon has quit [Ping timeout: 272 seconds]
browndawg has quit [Quit: Leaving.]
Domon has joined #ruby
vikhyat has joined #ruby
kornnflake has quit [Read error: Connection refused]
mnaser has joined #ruby
vikhyat has quit [Remote host closed the connection]
browndawg has joined #ruby
krz has joined #ruby
markalanevans has joined #ruby
zmanfx has quit [Ping timeout: 245 seconds]
celinedior has quit [Quit: celinedior]
Morkel has joined #ruby
lmf40 has joined #ruby
lmf40 has quit [Remote host closed the connection]
wesside has quit [Quit: I think I heard an ice cream truck..]
<Hanmac1>
bnagy show me how you would solv it
<bnagy>
it's long :)
<apeiros>
Hanmac1: you know what's sad? Math.hypot is ~2-2.5x slower than (a**2+b**2)**0.5
<linduxed>
Hanmac1: pretty
<bnagy>
the triples have to be a ratio, eg 3:4:5
icco has joined #ruby
<linduxed>
didn't know of hypot
vikhyat has joined #ruby
<bnagy>
this particular one is 8:15:17
<bnagy>
but you can construct the triples, via the formula
blacktulip has joined #ruby
timmow has joined #ruby
timonv has quit [Remote host closed the connection]
<bnagy>
then you can just sum the triple and divmod 1000 :)
arturaz has joined #ruby
<bnagy>
8 + 15 + 17 == 40, so the multiplier is 40
<bnagy>
25 sorry
* bnagy
fails at arithmetic
Spooner has joined #ruby
mahmoudimus has quit [Quit: Computer has gone to sleep.]
justsee has quit [Ping timeout: 245 seconds]
maxmanders has quit [Quit: Computer has gone to sleep.]
<bnagy>
trouble is that constructing the triples is going to be longer code, cause you have to reduce, eg that ratio is from m=5, n=3, so using m^2 - n^2 : 2mn : m^2 + n^2 you need to simplify after or you get 16, 30, 34
* passerine
still wondering about "the formula"
timmow has quit [Remote host closed the connection]
<bnagy>
passerine: that ^^
<bnagy>
Euclid
<passerine>
bnagy thanks
yacks has joined #ruby
s2013 has quit []
rickruby has joined #ruby
lmf40 has joined #ruby
<bnagy>
anyway it would be way longer to write it that way, but so much prettier, imho, plus you'd learn something :D
<passerine>
not that i'm through wondering yet
troessner has joined #ruby
<bnagy>
passerine: right triangles are balltripping awesome
<Hanmac1>
apeiros: did you try to play with the $LOADED_FEATURES variable? its very funny ;P
<Macaveli>
shevy, Shuffle worked like a charm
<apeiros>
Hanmac1: I've used it in the past to avoid that certain files got required
<apeiros>
or got re-required
danneu has quit [Ping timeout: 245 seconds]
<Hanmac1>
or when you freeze the variable it increase the funnyness ;P
<apeiros>
lol
Skofo has quit [Ping timeout: 246 seconds]
polymar has joined #ruby
haxrbyte has quit [Remote host closed the connection]
haxrbyte has joined #ruby
<Hanmac1>
for the ones that dont get the joke: if you $LOADED_FEATURES.freeze, then require does not work anymore
peterhellberg has quit [Remote host closed the connection]
jandres has joined #ruby
<shevy>
hmmm
<shevy>
Hanmac1 knows thousand ways to break ruby
icco has quit [Ping timeout: 252 seconds]
lukeholder has quit [Quit: Computer has gone to sleep.]
daniel_- has joined #ruby
br4ndon has joined #ruby
br4ndon has quit [Client Quit]
icco has joined #ruby
troessner has joined #ruby
miso1337 has quit [Quit: afk]
SeySayux has quit [Ping timeout: 264 seconds]
Villadelfia has quit [Ping timeout: 264 seconds]
maxmanders has quit [Quit: Computer has gone to sleep.]
a_a_g has quit [Quit: This computer has gone to sleep]
oneirophren has joined #ruby
arietis has joined #ruby
SeySayux has joined #ruby
Villadelfia has joined #ruby
nplusp has joined #ruby
jlebrech has quit [Read error: Connection reset by peer]
iml has joined #ruby
jlebrech has joined #ruby
snearch has joined #ruby
robustus has quit [Ping timeout: 276 seconds]
timonv has joined #ruby
peterhellberg has joined #ruby
maxmanders has joined #ruby
robustus has joined #ruby
schickung has quit [Quit: schickung]
snearch has quit [Quit: Verlassend]
icco has quit [Ping timeout: 252 seconds]
yfeldblum has quit [Ping timeout: 264 seconds]
Criztian has joined #ruby
Mon_Ouie has joined #ruby
icco has joined #ruby
freeayu has quit [Ping timeout: 240 seconds]
shiva_ has joined #ruby
freeayu has joined #ruby
ziyadb has joined #ruby
timmow_ has joined #ruby
timeout has joined #ruby
<ziyadb>
Wait a minute...
jgrevich has quit [Remote host closed the connection]
<bnagy>
60
<bnagy>
59
<bnagy>
58
<ziyadb>
So if a local variable is declared in the global scope, it cannot be accessed from within a method in the same global space?
<ziyadb>
bnagy: heh.
<bnagy>
that's right, apart from minor eyebrow raising over 'global scope'
jonathanwallace has quit [Ping timeout: 256 seconds]
daniel_- has quit [Quit: WeeChat 0.4.0]
<ziyadb>
This _is_ a ruby specific nuisance, is it not? Python and other languages CAN access variables in the global namespace from within methods.
<bnagy>
well I don't grant the premise - it's not a nuisance
troessner has quit [Ping timeout: 272 seconds]
<bnagy>
if you want visibility from inside a method you have a lot of ways to make that happen
<bnagy>
you could use instance vars or constants or even *shudder* globals
chandankumar has quit [Quit: Leaving]
pac1 has joined #ruby
timmow_ has quit [Ping timeout: 252 seconds]
<bnagy>
basically some_local = 3 is local, so, like, you can only access it locally
<pac1>
openscenegraph.org seems to be offline.
dogweather has quit [Remote host closed the connection]
<ziyadb>
bnagy: sure, yes.
<ziyadb>
But I just wanted to make sure that's how it is. Because in other languages, you _can_ access variables declared in the global namespace from within a method.
<ziyadb>
But apparently that is not the case with Ruby.
beiter has joined #ruby
hashmal has joined #ruby
br4ndon_ has joined #ruby
marcdel has quit []
mneorr has joined #ruby
icco has quit [Ping timeout: 252 seconds]
yfeldblum has joined #ruby
dhruvasa1ar is now known as dhruvasagar
icco has joined #ruby
tonini has quit [Remote host closed the connection]
troessner has joined #ruby
forlin has joined #ruby
arquebus has joined #ruby
skattyadz has quit [Quit: skattyadz]
smt has joined #ruby
hamed_r has quit [Ping timeout: 272 seconds]
maxmanders has quit [Quit: Computer has gone to sleep.]
hamakn has quit [Read error: Connection reset by peer]
hamakn has joined #ruby
hamakn has quit [Remote host closed the connection]
hamed_r has joined #ruby
shiva_ has quit [Quit: Leaving]
maxmanders has joined #ruby
araujo has quit [Ping timeout: 248 seconds]
shrnk has joined #ruby
<shrnk>
hey everyone, I wanted to create a ruby gem with extract the required database from whole database using rails, can anyone please suggest me how to go about this ...
<shrnk>
*want to create ruby gem which extract
cyclic has quit [Ping timeout: 245 seconds]
araujo has joined #ruby
hamakn has joined #ruby
icco has quit [Ping timeout: 251 seconds]
gebbione has joined #ruby
beiter has quit [Ping timeout: 272 seconds]
<gebbione>
Hi, not sure it is the right channel for the question. In a selenium webdriver/test unit ruby app, is there anyway i can run just a single test within my test class?
icco has joined #ruby
beiter has joined #ruby
emergion has quit [Quit: Computer has gone to sleep.]
Olipro has joined #ruby
petrjanda has joined #ruby
Kruppe has quit [Remote host closed the connection]
thufir_ has joined #ruby
workmad3 has joined #ruby
polymar has quit [Remote host closed the connection]
polymar has joined #ruby
<undersc0re97>
shrnk: ask in #RubyOnRails
<undersc0re97>
because not every Rubyist knows Rails
fermion has joined #ruby
pcarrier has quit [Quit: Computer has gone to sleep.]
baba has joined #ruby
icco has quit [Read error: Operation timed out]
danneu has joined #ruby
gregchapple has joined #ruby
gregchapple has left #ruby [#ruby]
icco has joined #ruby
cantonic has joined #ruby
timeout has quit [Quit: bye]
wargasm has quit [Ping timeout: 245 seconds]
danneu has quit [Ping timeout: 255 seconds]
d11wtq has joined #ruby
basex has quit [Quit: basex]
workmad3 has quit [Ping timeout: 255 seconds]
Macaveli has quit [Remote host closed the connection]
helvete has quit [Quit: Leaving...]
pcarrier has joined #ruby
stardiviner has quit [Remote host closed the connection]
dogweather has joined #ruby
wallclockbuilder has joined #ruby
br4ndon_ has quit [Quit: Lorem ipsum dolor sit amet]
workmad3 has joined #ruby
<Spooner>
undersc0re97, That is more a test-unit question than a Rails one, I think.
icco has quit [Ping timeout: 252 seconds]
psyprus has quit [Read error: Connection reset by peer]
psyprus has joined #ruby
<Spooner>
undersc0re97, Oops, sorry, I thought you were answering gebbione there.
<undersc0re97>
that's alright
icco has joined #ruby
<undersc0re97>
thou art forgiven
<Spooner>
You are very gracious :)
wallclockbuilder has quit [Remote host closed the connection]
rton has joined #ruby
chase-work has joined #ruby
ryanh has joined #ruby
ryanh has quit [Client Quit]
mklappstuhl_ has joined #ruby
Elhu has quit [Quit: Computer has gone to sleep.]
AndChat| has joined #ruby
AndChat- has joined #ruby
psyprus has quit [Read error: Connection reset by peer]
hakunin has quit [Read error: Connection reset by peer]
vikhyat has joined #ruby
waxjar has quit [Ping timeout: 258 seconds]
psyprus has joined #ruby
ry4nn has quit [Read error: Connection reset by peer]
nplusp has quit [Remote host closed the connection]
timmow_ has joined #ruby
hakunin has joined #ruby
Banistergalaxy has quit [Ping timeout: 276 seconds]
Beoran__ has quit [Ping timeout: 258 seconds]
mneorr has quit [Remote host closed the connection]
Banistergalaxy has joined #ruby
<gebbione>
btw the answer was easy ,,, just use --name test_nameOfTheTest
arquebus has left #ruby [#ruby]
hasse has joined #ruby
skattyadz has joined #ruby
AndChat| has quit [Ping timeout: 272 seconds]
gebbione has left #ruby [#ruby]
dkannan has joined #ruby
timmow_ has quit [Ping timeout: 252 seconds]
AndChat- has quit [Ping timeout: 272 seconds]
Beoran_ has joined #ruby
filipe has quit [Ping timeout: 245 seconds]
waxjar_ has joined #ruby
foobArrr has quit [Ping timeout: 245 seconds]
Domon has quit [Remote host closed the connection]
foobArrr has joined #ruby
G has quit [Ping timeout: 258 seconds]
ChristianS has quit [Ping timeout: 264 seconds]
ChristianS has joined #ruby
G has joined #ruby
<hasse>
I repeatedly need to create dummy txt files in my repos that I want to be ignored by git. To make it easy I thought of adding a global file extension that is ignored. So I can name my files anything. What would be a good extension for that purpose? Or is there a better way?
matchaw has quit [Ping timeout: 258 seconds]
matchaw has joined #ruby
<hoelzro>
hasse: I would just stick an entry into .git/info/exclude
slainer68 has quit [Remote host closed the connection]
ChristianS has quit [Client Quit]
psyprus has quit [Ping timeout: 258 seconds]
yeban has quit [Ping timeout: 258 seconds]
icco has joined #ruby
yeban has joined #ruby
ChristianS has joined #ruby
maxmanders has quit [Quit: Computer has gone to sleep.]
<Hanmac1>
hoelzro: thanks good to know
jnoob22 has joined #ruby
psyprus has joined #ruby
maxmanders has joined #ruby
sylvinus has quit [Quit: sylvinus]
filipe has joined #ruby
hamed_r has quit [Quit: Leaving]
AndChat| has joined #ruby
maxmanders has quit [Quit: Computer has gone to sleep.]
netto has joined #ruby
helvete has joined #ruby
nkr has joined #ruby
Banistergalaxy has quit [Ping timeout: 272 seconds]
Proshot has joined #ruby
chussenot has quit [Quit: chussenot]
polymar has quit [Ping timeout: 272 seconds]
<hasse>
hoelzro: hmm, thanks. But then I have to add ignore patterns to .git/info/exclude for all of my repos. Wouldn't it be easier to have it in my global ignore even if it's not as clean approach.
pac1 has quit [Ping timeout: 264 seconds]
Igneous_ has joined #ruby
davetherat has joined #ruby
psyprus has quit [Ping timeout: 258 seconds]
nmeum has quit [Ping timeout: 258 seconds]
apeiros has quit [Ping timeout: 245 seconds]
<Hanmac1>
hasse you can
icco has quit [Read error: Operation timed out]
browndawg has quit [Read error: Connection reset by peer]
polymar has quit [Remote host closed the connection]
timmow_ has quit [Ping timeout: 252 seconds]
soulofpeace has quit [Read error: Operation timed out]
icco has joined #ruby
MrYale has joined #ruby
slainer68 has joined #ruby
eka has joined #ruby
lewix has joined #ruby
cha1tanya has joined #ruby
Czupa has joined #ruby
cha1tanya has quit [Read error: Connection reset by peer]
slainer68 has quit [Ping timeout: 264 seconds]
<avelldiroll>
Hi, i am quite new to ruby, used it mainly for puppet so far, i want to parse some (small) xml files, i found a few modules to so, which one is recommended these days ? nokogiri seems to be the most popular
yfeldblum has quit [Read error: Connection reset by peer]
kristofers has joined #ruby
geekbri has joined #ruby
cha1tanya has joined #ruby
yfeldblum has joined #ruby
<Hanmac1>
avelldiroll: nokogiri is the best ... its also cool for generating xml
<avelldiroll>
great, thanks
sylvinus has joined #ruby
maxmanders has quit [Quit: Computer has gone to sleep.]
netto_ has joined #ruby
maxmanders has joined #ruby
netto has quit [Ping timeout: 252 seconds]
skum has joined #ruby
netto_ is now known as netto
Deckl has joined #ruby
cantonic has quit [Ping timeout: 260 seconds]
skum has quit [Remote host closed the connection]
Vainoharhainen has quit [Read error: Connection reset by peer]
Vainoharhainen has joined #ruby
Vainoharhainen has quit [Read error: Connection reset by peer]
skum has joined #ruby
samuelj has joined #ruby
helvete has joined #ruby
icco has quit [Ping timeout: 252 seconds]
cantonic has joined #ruby
BizarreCake has joined #ruby
daed has quit [Ping timeout: 240 seconds]
<samuelj>
Hey all. Does anyone have any reccommendations for a priority queue implementation? I've seen pqueue but it doesn't seem all too popular, and PriorityQueue claims it's only at v0.1.2. What about the PriorityQueue in the algorithms gem? Anyone got any strong opinions?
icco has joined #ruby
daed has joined #ruby
nga4 has quit [Ping timeout: 256 seconds]
skum has quit [Ping timeout: 240 seconds]
Macaveli has joined #ruby
Vainoharhainen has joined #ruby
lewix has quit [Remote host closed the connection]
Reville has quit [Quit: Reville]
cantonic has quit [Ping timeout: 256 seconds]
sailias has quit [Quit: Leaving.]
kofno has joined #ruby
MrYale has quit [Quit: MrYale]
eykosioux has quit [Remote host closed the connection]
Neandre has joined #ruby
franks2 has quit [Ping timeout: 248 seconds]
samuelj has quit [Ping timeout: 245 seconds]
mark_locklear has joined #ruby
nyuszika7h has quit [Quit: Here we are, going far to save all that we love - If we give all we've got, we will make it through - Here we are, like a star shining bright on your world - Today, make evil go away!]
ferdev has quit [Quit: ferdev]
ferdev has joined #ruby
icco has quit [Read error: Operation timed out]
vlad_starkov has joined #ruby
chussenot has joined #ruby
snooc has joined #ruby
icco has joined #ruby
angusiguess has joined #ruby
subbyyy has joined #ruby
netto_ has joined #ruby
franks2 has joined #ruby
Tarential has quit [Excess Flood]
netto has quit [Ping timeout: 260 seconds]
netto_ is now known as netto
Tarential has joined #ruby
yshh has joined #ruby
arya has joined #ruby
talktokets has joined #ruby
kreantos_ has joined #ruby
kreantos_ has quit [Remote host closed the connection]
GeorgesLeYeti has joined #ruby
<GeorgesLeYeti>
Hi
kreantos has joined #ruby
<GeorgesLeYeti>
I have a problem with converting integer to duration. EG: a = 1.month.to_i
workmad3 has joined #ruby
<tobiasvl>
GeorgesLeYeti: what's 1.month ?
<tobiasvl>
it's not in Date
<Hanmac1>
... 1) 1.month is a AS function you may get more help at #rubyonrails 2) month does already return a number so to_i is useless
<tobiasvl>
is this a rails thing?
noop has quit [Remote host closed the connection]
<Hanmac1>
tobiasvl: yeah its a rails thing
symfony has joined #ruby
<tobiasvl>
oh okay
ttt has quit [Remote host closed the connection]
b0oh has quit [Quit: Leaving.]
vikhyat has joined #ruby
talktokets has left #ruby [#ruby]
<GeorgesLeYeti>
ok sorry
alexdoom has quit [Ping timeout: 245 seconds]
symfony is now known as morfin
alexdoom has joined #ruby
Criztian has quit [Remote host closed the connection]
jenrzzz has quit [Quit: wryyyyyyyyyyyyyyyyyyyy]
yshh has quit [Ping timeout: 276 seconds]
LaPetiteFromage has joined #ruby
slainer68 has joined #ruby
icco has quit [Read error: Operation timed out]
smt has quit [Quit: Konversation terminated!]
NiteRain has quit [Ping timeout: 252 seconds]
slainer68 has quit [Read error: Connection reset by peer]
skattyadz has quit [Quit: skattyadz]
alek_b_ has quit [Remote host closed the connection]
slainer68 has joined #ruby
icco has joined #ruby
ZachBeta has quit [Quit: Computer has gone to sleep.]
miso1337 has joined #ruby
b0oh has joined #ruby
netto has quit [Quit: netto]
samuelj has joined #ruby
apeiros has joined #ruby
indyrl has joined #ruby
indyrl has quit [Max SendQ exceeded]
miskander has joined #ruby
miskander has quit [Client Quit]
skum has joined #ruby
ariedler has joined #ruby
miso1337 has quit [Client Quit]
ngcazz has quit [Ping timeout: 245 seconds]
cha1tanya has quit [Quit: Leaving]
helvete has quit [Remote host closed the connection]
helvete has joined #ruby
Vainoharhainen has quit [Ping timeout: 252 seconds]
netto has joined #ruby
newUser1234 has quit [Remote host closed the connection]
peter_ has joined #ruby
peter_ has quit [Remote host closed the connection]
gyre007 has quit [Remote host closed the connection]
mneorr has quit [Remote host closed the connection]
<tobiasvl>
alexdoom: there is no unary ? method
ZachBeta has quit [Quit: Computer has gone to sleep.]
<yellow5>
alexdoom: and oops, didn't notice assignment was desired
<Macaveli>
if image was [] i got an error
<alexdoom>
tobiasvl: i meant "var.atr?" checks if var has the attribute atr
<alexdoom>
or have i missunderstood the use of ?
<tobiasvl>
apparently
jean-louis has joined #ruby
Elhu has joined #ruby
<alexdoom>
apparantly i've missunderstood?
<tobiasvl>
yes
<tobiasvl>
alexdoom: ? isn't ruby syntax (except as a ternary operator), it's just convention to tack it on the end of method names that return a boolean
hamakn has quit [Remote host closed the connection]
freeayu has quit [Ping timeout: 248 seconds]
snooc has quit []
<alexdoom>
tobiasvl: oh
<alexdoom>
i see. thank you
rudisimo has joined #ruby
<Hanmac1>
PS: you CAN define a method missing hook at looks at the method "meth?" if the "meth" return some truly stuff
<tobiasvl>
yes sure
<tobiasvl>
you can do anything in ruby :)
<tobiasvl>
you can define ? as a unary operator on Object too if you want
<yellow5>
Macaveli: assuming you are using ActiveRecord in rails, you are requesting a full result set rather than a single record
<yellow5>
in other words, you will always get an array back
subbyyy has quit [Ping timeout: 252 seconds]
<yellow5>
if you are expecting only one record to match the conditions
<Macaveli>
yellow5, Indeed but when it's empty the dummy value needs to be shown
<alexdoom>
is there a easy way to test ruby code? like a shell
<alexdoom>
i enjoy that syntax. "do_thing if condition"
<tobiasvl>
alexdoom: then you'll like "do_thing unless condition"
<alexdoom>
tobiasvl: its really neat
<alexdoom>
easy on the eyes
<yellow5>
Macaveli: if this is rails, the rails gem added the #present? method
<yellow5>
Macaveli: which will return false for an empty array
ZachBeta has quit [Client Quit]
Morkel has quit [Quit: Morkel]
postmodern has quit [Quit: Leaving]
tk_ has joined #ruby
cmar has joined #ruby
cyclic has joined #ruby
<yellow5>
Macaveli: comment added to gist
<Macaveli>
yellow5, thanks!
cmar has left #ruby [#ruby]
<cyclic>
Hi, I am trying to use ActionMailer to send email, and it was working before, but now it's not sending emails; no errors or anything. I can manually send emails from the host to myself though, and I checked maillog, but there is nothing there. Any tips?
<Macaveli>
yellow5, there is not much difference between present and empty right?
_nitti has joined #ruby
<yellow5>
Macaveli: in rails, #present? is the opposite of #blank?
<yellow5>
both are non-standard methods added by the project
<yellow5>
but useful for situations like yours
<Macaveli>
ok :) good thanks for all the information yellow5
classix has quit [Ping timeout: 260 seconds]
<yellow5>
nil and '' and [] are all considered #blank? true
icco has quit [Read error: Operation timed out]
zmanfx has quit [Ping timeout: 245 seconds]
filipe has quit [Ping timeout: 272 seconds]
apeiros has quit [Ping timeout: 256 seconds]
solidoodlesuppor has joined #ruby
<yellow5>
where in pure ruby, nil will not respond to #empty? at all
breakingthings has joined #ruby
zmanfx has joined #ruby
<yellow5>
the #present? one is added b/c nil is falsey, like it was mentioned before
<yellow5>
however '' and [] are truthy values
<yellow5>
using #present? will make sure the value is non-null and non-empty arrays
icco has joined #ruby
<yellow5>
those two works with hashes, too
<waxjar_>
if you somehow get a nil value somewhere where you expect an empty Array/String/w/e you screwed up somewhere else in the code, imo :P
skoovdebo has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
b0oh has quit [Quit: Leaving.]
pcarrier has joined #ruby
<cyclic>
k, I just asked in there, but can you tell me how I load up my production environment config and execute that class?
<cyclic>
I already ran: RAILS_ENV="production"
<tobiasvl>
production environment config? i don't even know what that is supposed to mean. it's probably rails specific stuff
<tobiasvl>
and if so #rubyonrails is better
<tobiasvl>
(i've never used Rails)
<cyclic>
oh lol
<cyclic>
ok thanks
thatRD has joined #ruby
icco has quit [Read error: Operation timed out]
sethetter has joined #ruby
filipe has joined #ruby
<sethetter>
I'm trying to compile ruby on a pretty old linux system. It's telling me right off the bat that ruby/missing.h and ruby/config.h are missing. Can anyone point me in the right direction?
<shevy>
then you already have the working binaries
<shevy>
you should have a file called "ruby"
<shevy>
"make install" should usually just copy that to the --prefix target given
freeayu__ has quit [Ping timeout: 256 seconds]
<shevy>
if omitted, --prefix defaults to /usr/local
<shevy>
so "./configure" should be synonymous to "./configure --prefix=/usr/local"
<shevy>
hmmmm
<shevy>
I wonder how you compiled so quickly though :\ :/
classix has quit [Remote host closed the connection]
rton has left #ruby [#ruby]
rton has joined #ruby
thone has joined #ruby
rton has left #ruby [#ruby]
ChristianS has quit [Quit: I shouldn't really be here - dircproxy 1.0.5]
Heero has quit [Quit: Leaving]
ChristianS has joined #ruby
acarpe has joined #ruby
Sharetel has joined #ruby
lewix has joined #ruby
icco has quit [Read error: Operation timed out]
thone_ has quit [Ping timeout: 245 seconds]
soulofpeace has joined #ruby
21WAAGGGR has joined #ruby
codecop has quit [Remote host closed the connection]
sambao21 has joined #ruby
dhruvasagar has quit [Ping timeout: 252 seconds]
<Sharetel>
Hi, I wonder if this is the appropriate forum. I get the Redmine on localhost:3000 after running this: ruby script/rails server webrick -e production. Is there any other way to run Redmine?
girija has quit [Ping timeout: 264 seconds]
icco has joined #ruby
ananthakumaran1 has quit [Quit: Leaving.]
<tobiasvl>
Sharetel: the appropriate forum is #rubyonrails
locriani has joined #ruby
<Sharetel>
tobiasvl: Thankyou.
mmitchell has quit [Remote host closed the connection]
freeayu has joined #ruby
lewix has quit [Ping timeout: 272 seconds]
smatic has joined #ruby
iamjarvo has joined #ruby
classix has joined #ruby
<smatic>
hello all
mercwithamouth has joined #ruby
smatic has quit [Remote host closed the connection]
21WAAGGGR is now known as lewix
lewix has quit [Changing host]
lewix has joined #ruby
Zelest has quit [Ping timeout: 245 seconds]
rdark has joined #ruby
yekta has joined #ruby
dkannan has quit [Quit: dkannan]
browndawg1 has joined #ruby
Zelest has joined #ruby
sleetdrop has quit [Ping timeout: 252 seconds]
jtharris has joined #ruby
sambao21 has quit [Quit: Computer has gone to sleep.]
icco has quit [Read error: Operation timed out]
browndawg has quit [Ping timeout: 272 seconds]
bulters has quit [Read error: Connection reset by peer]
synthetix has joined #ruby
jonathanwallace has joined #ruby
icco has joined #ruby
bhaarat has joined #ruby
thams has quit [Quit: thams]
tommyvyo has joined #ruby
chrishunt has joined #ruby
sethetter has left #ruby [#ruby]
whoughton has joined #ruby
uris has joined #ruby
Macaveli has left #ruby ["Leaving"]
dmiller has joined #ruby
smatic has joined #ruby
petrjanda_ has joined #ruby
<whoughton>
looking for some help with zlib
<whoughton>
I'm only getting a subset of my data back when inflating something
Banistergalaxy has quit [Read error: Connection reset by peer]
netto has quit [Client Quit]
spider-mario has joined #ruby
eykosioux has joined #ruby
pi3r has quit [Quit: Leaving]
<injekt>
dark_knight: I don't know, your code is using a 'Product.find' method which doesn't exist anyway so I can't tell if this is a normal class or attached to a database
kornnflake has quit [Client Quit]
girija has joined #ruby
jeevan_ullas has joined #ruby
wallclockbuilder has joined #ruby
frem has joined #ruby
frem has quit [Excess Flood]
BizarreCake has quit [Ping timeout: 240 seconds]
skroon has quit [Read error: Operation timed out]
<dark_knight>
injekt
mjago has joined #ruby
v0n has quit [Read error: Connection reset by peer]
tomsthumb has quit [Quit: Leaving.]
<dark_knight>
injekt: Thats because I forgot to add `def self.find item [item] end end
v0n has joined #ruby
Banistergalaxy has joined #ruby
dhruvasagar has joined #ruby
carloslopes has quit [Remote host closed the connection]
<injekt>
dark_knight: eh, so find returns an array?
sdavis has joined #ruby
frem has joined #ruby
<bean__>
well, scan_items doesn't know about product
<bean__>
i don't think
<injekt>
bean__: about item you mean
<bean__>
both
<injekt>
eh production is in the condition
<injekt>
product*
<injekt>
only item doesn't exist
<bean__>
no
<bean__>
how would scan_items know about either item or product
<bean__>
they're both out of scope
<injekt>
uh
<injekt>
no
kornnflake has joined #ruby
<injekt>
oh
<bean__>
are you seeing what I'm meaning?
<injekt>
I read it as 'product = Product.find(item)'
Eiam has quit [Ping timeout: 264 seconds]
<bean__>
no ==
<injekt>
yeah haha my bad
dustint has quit [Ping timeout: 255 seconds]
<bean__>
:p
icco has quit [Read error: Operation timed out]
momomomomo has quit [Ping timeout: 272 seconds]
mneorr has quit [Remote host closed the connection]
momomomomo has joined #ruby
BizarreCake has joined #ruby
jbueza has joined #ruby
icco has joined #ruby
freakazoid0223 has joined #ruby
hogeo has joined #ruby
apeiros has joined #ruby
baroquebobcat has joined #ruby
oneirophren has joined #ruby
whowantstolivefo has quit [Remote host closed the connection]
Czupa has joined #ruby
mneorr has joined #ruby
whowantstolivefo has joined #ruby
axl_ has quit [Quit: axl_]
markalanevans has quit [Ping timeout: 252 seconds]
vlad_starkov has quit [Remote host closed the connection]
r0bby has joined #ruby
mythical has joined #ruby
aaronmcadam has quit [Ping timeout: 248 seconds]
ekampf has quit [Quit: ekampf]
skattyadz has joined #ruby
slainer68 has quit [Remote host closed the connection]
jdunck has joined #ruby
skattyadz has quit [Read error: Connection reset by peer]
robbyoconnor has quit [Ping timeout: 245 seconds]
skattyadz has joined #ruby
cmar has joined #ruby
ananthakumaran has quit [Quit: Leaving.]
vlad_starkov has joined #ruby
r0bby has quit [Read error: Connection reset by peer]
r0bby_ has joined #ruby
mythical has quit [Quit: mythical]
kpshek has quit []
c0rn has joined #ruby
kelabot has joined #ruby
oneirophren has quit [Ping timeout: 256 seconds]
lapidary has left #ruby [#ruby]
timmow_ has joined #ruby
Arzaga has joined #ruby
s2013 has joined #ruby
forlin has joined #ruby
mythical has joined #ruby
soulofpeace has quit [Ping timeout: 276 seconds]
c0rn_ has joined #ruby
automan1 has quit [Remote host closed the connection]
mythical has quit [Client Quit]
Eiam has joined #ruby
tylersmith has joined #ruby
alexyz has quit [Remote host closed the connection]
Asher has quit [Quit: Leaving.]
alexyz has joined #ruby
tvw has joined #ruby
chussenot has quit [Ping timeout: 240 seconds]
timmow_ has quit [Ping timeout: 252 seconds]
c0rn has quit [Ping timeout: 252 seconds]
c0rn_ is now known as c0rn
Uranio has joined #ruby
tomzx_mac has joined #ruby
icco has quit [Read error: Operation timed out]
mythical has joined #ruby
skattyadz has quit [Ping timeout: 245 seconds]
icco has joined #ruby
mythical has quit [Client Quit]
mercwithamouth has joined #ruby
gyre007 has joined #ruby
gyre007 has quit [Remote host closed the connection]
gyre007 has joined #ruby
breakingthings has quit []
kamsky has joined #ruby
BrunoAlano has joined #ruby
r0bby_ has quit [Ping timeout: 245 seconds]
skattyadz has joined #ruby
gyre008 has joined #ruby
<kamsky>
hey guys, got a question, I need to write a 3d printing program to manage the printer. The drivers are written in C++, so I was wondering if it would be possible somehow interact with them so I can build the Program on top of it, GUI included
<csmrfx>
socket?
zastern has joined #ruby
iamjarvo has joined #ruby
alx- has quit [Quit: alx-]
bradhe has quit [Remote host closed the connection]
mneorr has joined #ruby
<kamsky>
socket? I mean, I got access to the dll's and the functions to manipulate the printer, but I dont know if it's possible to call/use this function in Ruby
girija has quit [Ping timeout: 245 seconds]
madb055 has quit [Ping timeout: 272 seconds]
jerius has joined #ruby
johnjohnson has joined #ruby
GeorgesLeYeti has quit [Quit: Quitte]
JMcAfreak has quit [Ping timeout: 264 seconds]
maxmanders has quit [Quit: Computer has gone to sleep.]
ebobby has joined #ruby
skattyadz has quit [Ping timeout: 252 seconds]
_maes_ has quit [Read error: Connection reset by peer]
skattyadz has joined #ruby
c0rn has quit [Ping timeout: 256 seconds]
BrunoAlano has quit []
icco has quit [Read error: Operation timed out]
thams has joined #ruby
kpshek has joined #ruby
<wmoxam>
kamsky: look at FFI
<Hanmac1>
wmoxam: you are wrong FFI does not work with C++
<Hanmac1>
kamsky: you can write an C++ Extension for Ruby
wsterling has quit [Remote host closed the connection]
c0rn has joined #ruby
sylvinus has quit [Quit: sylvinus]
bradhe has joined #ruby
smatic has quit [Quit: Ex-Chat]
carloslopes has quit [Read error: Connection reset by peer]
jaynic1 has joined #ruby
smatic has joined #ruby
carloslopes has joined #ruby
skattyadz has quit [Ping timeout: 260 seconds]
<wmoxam>
Hanmac1: right
<wmoxam>
Hanmac1: so, Rice I guess?
icco has joined #ruby
kenneth has quit [Quit: kenneth]
smatic has quit [Client Quit]
<Hanmac1>
wmoxam: i dont like rice, i prefer to write it myself
vlad_starkov has quit [Remote host closed the connection]
sambao21 has quit [Quit: Computer has gone to sleep.]
quazimodo has joined #ruby
smatic has quit [Remote host closed the connection]
Elhu has quit [Quit: Computer has gone to sleep.]
brianpWins has joined #ruby
momomomomo_ has joined #ruby
skattyadz has joined #ruby
Chinorro has quit [Quit: Leaving]
unflores has quit [Quit: unflores]
momomomomo has quit [Ping timeout: 256 seconds]
momomomomo_ is now known as momomomomo
chussenot has joined #ruby
c0rn has quit [Quit: Computer has gone to sleep.]
adamjleonard has quit [Read error: Connection reset by peer]
yxhuvud has joined #ruby
oneirophren has joined #ruby
nanothief has quit [Read error: Connection reset by peer]
yxhuvud2 has quit [Ping timeout: 256 seconds]
DrCode has quit [Remote host closed the connection]
<kamsky>
i dont know if that's what you guys, Hanmac1 & wmoxam, were refering to
<Hanmac1>
kamsky: yes, the problem is that it may be a bit outdated so some functions are named different
skattyadz has quit [Ping timeout: 245 seconds]
elaptics is now known as elaptics`away
snooc has quit [Ping timeout: 245 seconds]
mockra has joined #ruby
<kamsky>
Hanmac1: I see, any newer guide/tuto you know?
DrCode has joined #ruby
<kamsky>
or some examples to look at
will1000 has joined #ruby
csaunders has joined #ruby
<Hanmac1>
hm i dont think so
chrishough has quit [Quit: chrishough]
skattyadz has joined #ruby
icco has quit [Read error: Operation timed out]
<kamsky>
so what's the difference between that thing I posted and what wmoxam mentioned (rice and FFI)
adamjleonard has joined #ruby
<kamsky>
what I probably need is to be able to interact with the .dll that handles the motor
DrCode has quit [Excess Flood]
lewix_ has quit [Remote host closed the connection]
icco has joined #ruby
snooc has joined #ruby
will1000 has quit [Remote host closed the connection]
arya_ has quit [Ping timeout: 276 seconds]
jonahR has joined #ruby
<Hanmac1>
kamsky: FFI cant do that want you want because FFI only works with C libs not with C++ ones, rice is some kind of generator but i dont like it because i prefer to write it myself
Arzaga has quit [Quit: Computer has gone to sleep.]
mrsolo has joined #ruby
hukl has joined #ruby
wsterling has joined #ruby
pioz has joined #ruby
DrCode has joined #ruby
<kamsky>
Hanmac1: gotcha, I'd have to double check if the lib was written in C or in C++, im not sure
arya_ has joined #ruby
<guardian>
apeiros: https://bugs.ruby-lang.org/issues/8283 got rejected by the commit author… based on a test against ruby 1.8.7… I don't understand why he didn't test against 1.9.3
sylvinus has joined #ruby
momomomomo has quit [Ping timeout: 252 seconds]
<guardian>
apeiros: he doesn't seem to really care anyways so I don't think I'll make more efforts
<Hanmac1>
kamsky: normaly you see it at the Header files
DrCode has quit [Remote host closed the connection]
Matip has quit [Ping timeout: 252 seconds]
Kruppe has joined #ruby
DrCode has joined #ruby
rakl has quit [Quit: sleeping]
<kamsky>
Hanmac1: i dont have access to the source code, just the .dll. What I know is that the current program is written in C++ and calls the .dll like this:
JohnBat26 has quit [Ping timeout: 276 seconds]
<kamsky>
static int (*NmcInit)(char*,unsigned int) = reinterpret_cast<int(*)(char*,unsigned int)>(DLL::loadFunction("NMCLIB04.dll","NmcInit"));
CARL0S has quit []
timmow has quit [Ping timeout: 252 seconds]
Matip has joined #ruby
<Hanmac1>
ugh ...
LS\MFT has joined #ruby
Ontolog has joined #ruby
<kamsky>
that means.. bad.. good...??.. hehehe
carloslopes has quit [Ping timeout: 245 seconds]
idkazuma has quit [Remote host closed the connection]
iamjarvo has quit [Quit: Leaving.]
bean__ has quit [Quit: Computer has gone to sleep.]
lmf40 has joined #ruby
chandankumar has joined #ruby
chrishough has joined #ruby
swex has joined #ruby
<Hanmac1>
kamsky: i tihnk FFI or DL can be used ... (you lib looks like an C lib) but i didnt use FFI or DL before
icco has quit [Read error: Operation timed out]
generalissimo has quit [Remote host closed the connection]
dustint has joined #ruby
momomomomo has joined #ruby
dmiller has joined #ruby
sepp2k has joined #ruby
kirun has joined #ruby
Zai00 has quit [Quit: Zai00]
Matip has quit [Ping timeout: 245 seconds]
mythical has joined #ruby
cpruitt has joined #ruby
<kamsky>
Hanmac1: ok thanks, I'll take a look at it.. I havent even decided if using Ruby for this project is a good solution, I wanted to build a nice looking GUI, but ruby options kinda suck on that part
icco has joined #ruby
dhruvasagar has joined #ruby
urbanmonk has quit [Quit: urbanmonk]
kenneth has joined #ruby
bitZero__ has quit [Ping timeout: 260 seconds]
<Hanmac1>
you can have nice GUI with ruby too
alvaro_o has joined #ruby
rakl has joined #ruby
oneirophren has quit [Ping timeout: 256 seconds]
vise890 has joined #ruby
vise890 has quit [Max SendQ exceeded]
DrCode has quit [Ping timeout: 276 seconds]
vise890 has joined #ruby
DrCode_ has joined #ruby
DrCode_ is now known as DrCode
dmiller has quit [Ping timeout: 260 seconds]
gaahrdner has quit [Remote host closed the connection]
marcdel has joined #ruby
<apeiros>
guardian: I'll take a look later this day
<kamsky>
I've checked Shoes and FxRuby I think, and I dunno.. I mean, I was looking for something Ribbon like
<apeiros>
I think the case **/.dotdir should be considered separately
eykosioux has quit [Remote host closed the connection]
jandres has left #ruby ["ERC Version 5.3 (IRC client for Emacs)"]
<apeiros>
since there the ** doesn't need to match the .dotdir, it's in the glob explicitly. so FNM_DOTMATCH should not influence the match
fermion has quit [Remote host closed the connection]
banjara has quit [Ping timeout: 264 seconds]
<Hanmac1>
kamsky: there is ruby-gnome that uses GTK or wxRuby (or rwx) ... the last ones uses wxWidgets with also have Ribbon (maybe ... its not finished in rwx)
a_a_g has joined #ruby
carloslopes has joined #ruby
<kamsky>
would this work in Win?
dmiller has joined #ruby
<Hanmac1>
kamsky: i dont know ... wxRuby has gems for windows .. but i didnt test them
jeebster has joined #ruby
banjara has joined #ruby
hasse has quit [Ping timeout: 245 seconds]
<kamsky>
k, I really appreciate your help Hanmac1
icco has quit [Read error: Operation timed out]
mythical has quit [Quit: mythical]
mahmoudimus has joined #ruby
Matip has joined #ruby
_carloslopes has joined #ruby
milan has joined #ruby
workmad3 has joined #ruby
sambao21 has joined #ruby
BinaryMaster has joined #ruby
fermion has joined #ruby
arya_ has quit [Ping timeout: 248 seconds]
reytt has quit [Quit: Leaving...]
carloslopes has quit [Ping timeout: 245 seconds]
El_Diablo has quit [Read error: Connection reset by peer]
icco has joined #ruby
<guardian>
apeiros: yep we'll see
El_Diablo has joined #ruby
rdark has quit [Quit: leaving]
milan has left #ruby [#ruby]
<BinaryMaster>
Question: if I have a hash say h = { :test1 => 'happy', :test2 => 'fun', :test3 => 'times' } and I have a variable x = 'test2' how can I access the has with x? I have tried h[x] but that doesn't seem to work
chussenot has quit [Quit: chussenot]
<apeiros>
BinaryMaster: 'test2' is a string, :test2 is a symbol
generalissimo has joined #ruby
<apeiros>
those are two different keys
<apeiros>
h[x.to_sym]
alexyz has quit [Read error: Connection reset by peer]
rippa has quit [Ping timeout: 240 seconds]
prstat has joined #ruby
<BinaryMaster>
awesome can I use sub! on the string first and chain it to to_sym ?
alexyz has joined #ruby
<apeiros>
don't chain on ! methods
<apeiros>
they can return nil
<MrZYX>
just use the non-bang version
<apeiros>
but you can use sub and since that always returns a string, you can chain to_sym on it
ChewieBe1rdy has quit [Quit: Lost terminal]
etcetera has joined #ruby
<BinaryMaster>
aaaahhh thank you for that
<BinaryMaster>
I had not read that about the bang versions of functions yet
<BinaryMaster>
thank you again
arya_ has joined #ruby
<apeiros>
methods, not functions ;-)
chussenot has joined #ruby
sambao21 has quit [Quit: Computer has gone to sleep.]
danneu has quit [Quit: WeeChat 0.3.8]
<BinaryMaster>
lol right sorry
<BinaryMaster>
I work with a bunch of php developers their bad habits have rubbed off on me
jonahR has left #ruby [#ruby]
retry has joined #ruby
rippa has joined #ruby
<BinaryMaster>
can you have variable named variables?
jonathanwallace has joined #ruby
<BinaryMaster>
I haven't found a straight answer to that yet
<MrZYX>
there's no need for that in ruby
<MrZYX>
provide a useful example for it
mayankkohaley has joined #ruby
<BinaryMaster>
I'm looping through a hash I want to create objects based on the hash name
<MrZYX>
you mean the keys?
<apeiros>
BinaryMaster: "variably named variables" equals "abusing local variables as a hash"
<BinaryMaster>
right
<BinaryMaster>
lol
<apeiros>
and is detrimental to performance
atno has quit [Read error: Connection reset by peer]
<apeiros>
hence: no.
<BinaryMaster>
okay
vise890 has quit [Quit: Leaving]
<apeiros>
you can do it with non-local variables (@ivars, @@cvars, $globals, Constants)
<apeiros>
but there too, use a hash when you want a hash.
<BinaryMaster>
so rework the logic and make it work without them
<MrZYX>
hash.each do |key, value| end
ebobby has left #ruby [#ruby]
_carloslopes has quit [Ping timeout: 256 seconds]
alexyz has quit [Read error: Connection reset by peer]
atno has joined #ruby
alexyz has joined #ruby
<MrZYX>
obj = Object.const_get(key).new
mercwithamouth has quit [Ping timeout: 264 seconds]
a_a_g has quit [Quit: This computer has gone to sleep]
momomomomo has quit [Quit: momomomomo]
Ripp__ has joined #ruby
alvaro_o has quit [Read error: Connection reset by peer]
etcetera has quit []
ferdev has quit [Quit: ferdev]
DrCode has quit [Ping timeout: 276 seconds]
axl_ has quit [Quit: axl_]
<Hanmac1>
bk
chussenot has quit [Quit: chussenot]
alvaro_o has joined #ruby
alvaro_o has quit [Read error: Connection reset by peer]
<Hanmac1>
BinaryMaster: did you know that you can store the Class itself inside the Hash ?
DrCode_ is now known as DrCode
BizarreCake has quit [Quit: Leaving]
icco has joined #ruby
chussenot has joined #ruby
mikepack has quit [Remote host closed the connection]
anderse has joined #ruby
chussenot has quit [Client Quit]
Uranio has quit [Quit: while you reading this, a kitty dies]
skattyadz has quit [Read error: Connection reset by peer]
vlad_starkov has joined #ruby
bluOxigen has joined #ruby
JesseH has joined #ruby
v0n has joined #ruby
dmiller has quit [Remote host closed the connection]
Voodoofish430 has joined #ruby
MohamedAlaa has joined #ruby
tevio has quit [Remote host closed the connection]
lewix has joined #ruby
ryanjh has joined #ruby
ryanjh has quit [Max SendQ exceeded]
sambao21 has joined #ruby
ryanjh has joined #ruby
ryanjh has quit [Max SendQ exceeded]
acarpe has joined #ruby
ryanjh has joined #ruby
ryanjh has quit [Max SendQ exceeded]
ryanjh has joined #ruby
workmad3 has quit [Ping timeout: 246 seconds]
axl_ has joined #ruby
rupee has joined #ruby
zastern has quit [Remote host closed the connection]
dyeske has quit [Ping timeout: 260 seconds]
icco has quit [Read error: Operation timed out]
kappaseven has joined #ruby
jrendell has joined #ruby
dougsko has joined #ruby
icco has joined #ruby
megha has joined #ruby
El_Diablo has quit [Ping timeout: 245 seconds]
baba has quit [Ping timeout: 240 seconds]
<dougsko>
is there a way to set the tcp window parameter using the socket class? i dont see anything related to tcp parmeters in the docs but it seems like it would be done in this class somehow
dyeske has joined #ruby
JonnieCache has quit [Ping timeout: 252 seconds]
dmiller has joined #ruby
Criztian has quit [Remote host closed the connection]
mercwithamouth has joined #ruby
jrendell has quit [Ping timeout: 252 seconds]
troessner has quit [Ping timeout: 240 seconds]
danneu has joined #ruby
browndawg has quit [Quit: Leaving.]
atno has quit [Ping timeout: 264 seconds]
browndawg has joined #ruby
bradleyprice has joined #ruby
zastern has joined #ruby
chxane has quit [Ping timeout: 256 seconds]
Elhu has joined #ruby
anderse has quit [Quit: anderse]
<spike|spiegel>
dougsko: there is no way to directly control tcp window size... set SO_SNDBUF or SO_RCVBUF sockopts to hint the networking stack
dankest has joined #ruby
<spike|spiegel>
I mean it's not just ruby.
sayan has joined #ruby
mikepack has joined #ruby
icco has quit [Read error: Operation timed out]
<dougsko>
ah ok, thats pretty much what i was looking for
<dougsko>
thanks!
Etros has joined #ruby
etcetera has joined #ruby
pagios has joined #ruby
Etros has left #ruby [#ruby]
mechcozmo has joined #ruby
<jeebster>
anyone have suggestions for free spelling/dictionary suggestion APIs?
Arzaga has joined #ruby
icco has joined #ruby
browndawg has left #ruby [#ruby]
carloslopes has joined #ruby
<Eiam>
os x has a built in one your could query
<Eiam>
but you'd need a way to talk to objc from ruby =p (which exists of course)
dmiller has quit [Remote host closed the connection]
<sebastianb>
Thanks to the guy from sinatra channel :D
<sebastianb>
(if anyone is interested)
acarpe has joined #ruby
<sebastianb>
except it should be run with -o 0.0.0.0 argument
strmpnk has quit [Read error: Connection reset by peer]
bradleyprice has quit [Ping timeout: 248 seconds]
Elhu has joined #ruby
slainer68 has joined #ruby
forrest has joined #ruby
jtharris has joined #ruby
Elhu has quit [Client Quit]
geson has left #ruby ["Leaving."]
bulters has quit [Ping timeout: 276 seconds]
maxmanders has joined #ruby
icco has joined #ruby
etcetera has joined #ruby
indyrl has joined #ruby
niceguyjames has quit [Quit: Computer has gone to sleep.]
<jaynic1>
Can anyone help with my Nokogiri installation problem? Gem installs fine with sudo, but since I'm using RVM I do want to use sudo, and the installation breaks when it can't find parser.h . I've tried virtually everything the internets has to offer
<jaynic1>
on mountain lion
Astralum has joined #ruby
wolcanus has quit [Remote host closed the connection]
dankest has quit [Quit: Leaving...]
<Xeago>
jaynic1: I believe you should not want to use sudo?
<sebastianb>
jaynic1: can you show the log from installation?
<sebastianb>
pastebin it or sth
<Xeago>
in any case, I don't have experience with rvm #rvm knows more
<spike|spiegel>
jaynic1: ummm you know you could just life the parser.bundle and generator.bundle from system install location and shove it in your unpacked gem?
<Xeago>
when running it with sudo you are using root's shell
<spike|spiegel>
s/life/lift/
<wagster>
is your rvm a global install and installed just for you ?
<Xeago>
which does not have rvm
ioNull has quit [Quit: Computer has gone to sleep.]
<sebastianb>
jaynic1: btw, install gems with 'gem' command, not rvm (if that's not obvious :P)
<wagster>
i mean or
<jaynic1>
Xeago: i don't want to use sudo. I was just testing with a sudo gem install, since I couldnt install it just as the user
<Xeago>
when using rvm, it is wrong to use sudo to install gems
<Xeago>
as you don't want to install them into root's gems but yours (which is managed by rvm)
<MrZYX>
jaynic1: sudo is not there to "fix" things. Only use it if you can explain why it wouldn't work otherwise
ph^ has joined #ruby
<jaynic1>
I know, I said since I'm using rvm I do not want to use sudo
<wagster>
if you installed rvm under sudo it will screw up the permissions of certain folders that are needed to install gems
<jaynic1>
omg
<Xeago>
jaynic1: #rvm is a better place to ask, they know their stuff :)
thatRD has quit [Quit: thatRD]
<sebastianb>
but he's asking about gem installation
<jaynic1>
i think ill ask there, :)
<sebastianb>
not about rvm
<Xeago>
problems look rvm related
<sebastianb>
well, nope
_nitti has quit [Read error: No route to host]
eroc has left #ruby [#ruby]
<sebastianb>
or maybe
_nitti has joined #ruby
<sebastianb>
;D
<jaynic1>
im not sure where the problem lies, since it's a pretty long chain of dependencies
m8 has joined #ruby
Elhu has joined #ruby
shtirlic has quit [Read error: Operation timed out]
Niamkik has quit [Read error: Operation timed out]
adamholt has quit [Read error: Operation timed out]
bhaarat_ has joined #ruby
preller has quit [Read error: Operation timed out]
mellow80 has quit [Read error: Operation timed out]
<sebastianb>
jaynic1: show us the log of installation
preller has joined #ruby
preller has quit [Changing host]
preller has joined #ruby
<jaynic1>
1 sec
Niamkik has joined #ruby
cjk101010 has quit [Read error: Operation timed out]
pioz has quit [Quit: This computer has gone to sleep]
daniel_- has joined #ruby
daniel_- has joined #ruby
daniel_- has quit [Changing host]
rakl has quit [Quit: sleeping]
kayloos has joined #ruby
sayan has quit [Read error: Connection reset by peer]
icco has quit [Read error: Operation timed out]
ph^ has quit [Remote host closed the connection]
rawng has joined #ruby
<spike|spiegel>
here's what you do.... download the damn .gem file.. tar xf it .. tar xzf the data.tgz ......
chrishough has joined #ruby
Elhu has quit [Quit: Computer has gone to sleep.]
br4ndon has joined #ruby
btaitelb has joined #ruby
wolcanus has joined #ruby
icco has joined #ruby
jbw has joined #ruby
classix has joined #ruby
etcetera has joined #ruby
ryannielson has quit [Quit: ryannielson]
lewix has quit [Remote host closed the connection]
zastern has quit [Read error: Connection reset by peer]
zastern has joined #ruby
Zai00 has joined #ruby
basex has quit [Quit: basex]
etcetera has quit [Client Quit]
unstable has joined #ruby
Zai00 has quit [Client Quit]
<linduxed>
hey guys, i need some advice on program structure. i've already solved this http://projecteuler.net/problem=11 in haskell before, so i know what to do, it's just that now that i want to redo it in ruby, i'm wondering what the "proper" ruby way of doing it would be
sambao21 has joined #ruby
zastern has quit [Remote host closed the connection]
<sam113101>
wait, I've used to do these in ruby
<sam113101>
maybe I still have it
<linduxed>
apart from the obvious part of importing the matrix, my first thought was to just do four different iterations, over ranges that is
<linduxed>
but that seems too imperative
TheFuzzball has joined #ruby
sambao21 has quit [Client Quit]
TheFuzzball has quit [Max SendQ exceeded]
<sam113101>
ok, that one I haven't done in ruby
<linduxed>
my thought was that the "proper" way would be to create a Line class of some sort and have class methods there
<linduxed>
or something like that
<linduxed>
not sure
shock_one has joined #ruby
TheFuzzball has joined #ruby
bhaarat_ has quit [Quit: bhaarat_]
<linduxed>
the problem in itself isn't hard, it's just that since i'm a bit new to the language, i'm wondering how this should be done if the main objective was to make it pretty and "as ruby as possible"
ph^ has joined #ruby
_________ has joined #ruby
<spike|spiegel>
linduxed: not sure what's in there... throwing a stone... require 'matrix' :)
<linduxed>
spike|spiegel: hmmm, that might be an idea
timmow has quit [Read error: Connection reset by peer]
timmow has joined #ruby
benweint has quit [Quit: Computer has gone to sleep.]
<spike|spiegel>
don't cheat!
btaitelb has quit [Quit: btaitelb]
<linduxed>
spike|spiegel: dude, as said, i've already solved it in haskell, so i don't know if it's called cheating then
Xeli has joined #ruby
icco has quit [Read error: Operation timed out]
Arzaga has quit [Quit: Computer has gone to sleep.]
tootubular has joined #ruby
icco has joined #ruby
Czupa has quit [Read error: Connection reset by peer]
chandankumar has quit [Read error: Connection reset by peer]
shock_one has quit [Read error: Operation timed out]
carlyle has quit [Remote host closed the connection]
aapzak has quit [Ping timeout: 252 seconds]
Ontolog_ is now known as Ontolog
chandankumar has joined #ruby
aapzak has joined #ruby
pcarrier has joined #ruby
AlSquirrel has joined #ruby
pagios has quit [Quit: Leaving]
jekotia has joined #ruby
jeebster has quit [Quit: Leaving.]
yalue has quit [Read error: Connection reset by peer]
jonathanwallace has quit [Quit: WeeChat 0.3.9.2]
Kirotan has quit [Ping timeout: 256 seconds]
razibog has quit [Ping timeout: 252 seconds]
_nitti has quit [Ping timeout: 260 seconds]
AlSquire has quit [Ping timeout: 245 seconds]
JonnieCache has joined #ruby
ph^ has quit [Remote host closed the connection]
johnkary has joined #ruby
jonathanwallace has joined #ruby
sambao21 has joined #ruby
_nitti has joined #ruby
icco has quit [Ping timeout: 252 seconds]
icco has joined #ruby
michaelmartinez has joined #ruby
mando has joined #ruby
banister`snooze has joined #ruby
acarpe has quit [Quit: acarpe]
huoxito has quit [Quit: Leaving]
chandankumar has quit [Ping timeout: 260 seconds]
tonini has quit [Remote host closed the connection]
strmpnk has joined #ruby
yfeldblum has quit [Ping timeout: 272 seconds]
cloke has quit [Ping timeout: 256 seconds]
m8 has joined #ruby
Guest60864 has quit [Ping timeout: 240 seconds]
cmarques_ has joined #ruby
cloke has joined #ruby
motto has quit [Ping timeout: 276 seconds]
cmarques has quit [Quit: Lost terminal]
cheese1756 has quit [Changing host]
cheese1756 has joined #ruby
_________ has quit [Quit: Computer has gone to sleep.]
digifiv5e has joined #ruby
digifiv5e is now known as Guest71878
etcetera has joined #ruby
joshu has joined #ruby
icco has quit [Read error: Operation timed out]
<joshu>
in ruby 2.0 how can i generate an api token string? i tried in IRB with SecureRandom.urlsafe_base64 but it didn't work error NameError: uninitialized constant SecureRandom
jekotia has quit [Quit: ChatZilla 0.9.90-rdmsoft [XULRunner 18.0.2/20130201065344]]
kenneth has quit [Ping timeout: 245 seconds]
jekotia has joined #ruby
Proshot has quit [Quit: Leaving]
AlSquirrel has quit [Read error: Connection reset by peer]
Proshot has joined #ruby
<joshu>
got it require "securrandom"
AlSquirrel has joined #ruby
icco has joined #ruby
rburton- has joined #ruby
br4ndon has quit [Quit: Lorem ipsum dolor sit amet]
br4ndon has joined #ruby
wolcanus_ has joined #ruby
wolcanus has quit [Read error: Connection reset by peer]
ph^ has joined #ruby
nomenkun has joined #ruby
Davey has joined #ruby
matchaw_ has quit [Ping timeout: 252 seconds]
br4ndon has quit [Client Quit]
Nisstyre-laptop has joined #ruby
mmitchell has quit [Remote host closed the connection]
tevio has joined #ruby
yfeldblum has joined #ruby
vikhyat_ has quit [Remote host closed the connection]
jaynic1 has quit [Remote host closed the connection]
tevio has joined #ruby
dimka has quit [Ping timeout: 248 seconds]
jrendell has quit [Ping timeout: 245 seconds]
nobitanobi has joined #ruby
<nobitanobi>
Is it possible in Ruby to prevent an object of a class of receiving any kind of methods? So, prevent from doing my_object.test = "test string"
mneorr has quit [Remote host closed the connection]
wallerdev has joined #ruby
pyx has joined #ruby
<apeiros>
nobitanobi: not really, no
<spike|spiegel>
nobitanobi: throw it away maybe? :) what good is an object that can't respond to methods?
<WhereIsMySpoon>
on https://github.com/spacialdb/gcm , at the bottom it says options = {data: {score: "123"}, collapse_key: "updated_score"} - what is the collapse key, please?
<dougsko>
aces23up: a tab
huoxito has joined #ruby
<BinaryMaster>
is it better to use or or ||
n3bul0n has joined #ruby
kf8a has quit [Quit: Computer has gone to sleep.]
<WhereIsMySpoon>
yes
<WhereIsMySpoon>
(that was a subtle joke)
<BinaryMaster>
lol
mahmoudimus has quit [Quit: Computer has gone to sleep.]
balishag has quit [Quit: Leaving]
enebo has joined #ruby
frem has quit [Ping timeout: 245 seconds]
rburton- has quit [Quit: Leaving...]
nateberkopec has quit [Quit: Leaving...]
ph^ has joined #ruby
haxrbyte has quit [Remote host closed the connection]
haxrbyte has joined #ruby
zeade has quit [Quit: Leaving.]
<dougsko>
hmm... im trying to set the SO_RCVBUF option on a socket but i dont think im doing it right. this is what im doing: http://pastebin.com/g6jJsHjT
<dougsko>
anyone know how to do this properly?
mercwithamouth has joined #ruby
SCommette has quit [Quit: SCommette]
gaahrdner has quit [Remote host closed the connection]
postmodern has joined #ruby
ffranz has quit [Quit: Leaving]
vlad_starkov has joined #ruby
ph^ has quit [Ping timeout: 245 seconds]
Gabri has quit [Remote host closed the connection]
mando has quit [Remote host closed the connection]
jtharris has quit [Quit: WeeChat 0.4.0]
niklasb has quit [Ping timeout: 256 seconds]
arya_ has quit []
awarner__ has quit [Remote host closed the connection]
awarner has joined #ruby
ryannielson has joined #ruby
vlad_starkov has quit [Ping timeout: 245 seconds]
picca_ has joined #ruby
A124 has quit [Ping timeout: 245 seconds]
angusiguess has joined #ruby
johnnygoodmancpa has joined #ruby
idkazuma has joined #ruby
chussenot has joined #ruby
lewix_ has joined #ruby
emergion has joined #ruby
chussenot has quit [Client Quit]
petrjanda has quit [Quit: petrjanda]
soulcake has joined #ruby
tylersmith has joined #ruby
sdavis has quit [Quit: sdavis]
Hanmac2 has joined #ruby
picca_ has quit [Remote host closed the connection]
ariedler has quit [Remote host closed the connection]
davetherat has quit [Remote host closed the connection]
davetherat has joined #ruby
Hanmac has quit [Ping timeout: 245 seconds]
DrCode has quit [Remote host closed the connection]
kpshek has quit []
ariedler has joined #ruby
baphled has quit [Ping timeout: 276 seconds]
Olipro has quit [Ping timeout: 246 seconds]
Olipro has joined #ruby
ariedler has quit [Remote host closed the connection]
<shevy>
BinaryMaster I think || has higher precedence
johnnygoodmancpa has left #ruby [#ruby]
<shevy>
so it should be more useful than or
<BinaryMaster>
thank you shevy
jrendell has joined #ruby
jrendell has quit [Client Quit]
timmow has quit [Remote host closed the connection]
<BinaryMaster>
hey is there a way to get the type of an object?
justsee has quit [Ping timeout: 255 seconds]
nateberkopec has joined #ruby
emergion has quit [Quit: Computer has gone to sleep.]
<dougsko>
BinaryMaster: call .class on it
mahmoudimus has joined #ruby
<BinaryMaster>
can I use that in a case switch where I have when Hash
<shevy>
BinaryMaster you can use several conditionals in when
<shevy>
even a regex
<shevy>
foo = 'test'
<shevy>
case foo
<shevy>
when /te/
<shevy>
puts 'te matches'
<shevy>
end
DrCode has joined #ruby
mikeg has quit [Quit: Leaving]
jrendell has joined #ruby
nga4 has quit []
daniel_hinojosa has quit [Quit: Leaving.]
asym has joined #ruby
ephemerian has quit [Quit: Leaving.]
huoxito has quit [Ping timeout: 245 seconds]
LennyLinux has quit [Remote host closed the connection]