exadeci has quit [Quit: Connection closed for inactivity]
n80 has joined #ruby
OtterCoder has joined #ruby
AlphaTech has joined #ruby
d0t has joined #ruby
<d0t>
HI
Hijiri has joined #ruby
bronson has quit []
ta has joined #ruby
<havenwood>
hi
AlexRussia has quit [Ping timeout: 248 seconds]
<GaryOak_>
yo yo yo
<d0t>
:DD
<d0t>
Hi Gary0ak
<GaryOak_>
hey
<d0t>
How are you ?
<GaryOak_>
dorei: and even while being ddosed they had pretty decent service
<GaryOak_>
d0t: I'm good
c_nick has joined #ruby
<GaryOak_>
How are you?
dfinninger has quit [Remote host closed the connection]
<d0t>
Fine
<GaryOak_>
Here to ask a ruby question?
<dorei>
i have a rather general question
reinaldob has quit [Remote host closed the connection]
<dorei>
let's say I paginate over a dataset, what happens if more data are added into the DB while I paginate?
<dorei>
shouldn't I execute the whole query and fetch all data without limit, put them in some temp table or some cache mechanism and then paginate over there?
psychopath_mind has quit [Quit: ChatZilla 0.9.91.1 [Firefox 36.0.4/20150320202338]]
<GaryOak_>
dorei: depends how you are using the data
AndyBotwin has quit [Ping timeout: 264 seconds]
ta has quit [Ping timeout: 264 seconds]
<dorei>
GaryOak_: what are my options? :)
<GaryOak_>
If you're talking about paginating in the web browsing sense
<dorei>
yeap, in that sense
iamjarvo has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
c_nick has quit [Client Quit]
<GaryOak_>
it's not terribly costly to do a database call every page request
startupality has joined #ruby
zeus_hammer has joined #ruby
<GaryOak_>
cache is good for data that isn't going to change all that often
ChasedSpade is now known as ChasedSpade|ill
bigmac has joined #ruby
shadoi2 has quit [Quit: Leaving.]
<dorei>
let me be more specific, i do select something from something limit 1, 25, that first page, when one clicks next page, i do the same select but with limit 26, 25
<dorei>
but meanwhile new data are added in the db so there are gaps between the two pages
yqt has quit [Ping timeout: 248 seconds]
davidhq has quit [Ping timeout: 250 seconds]
<henrikhodne>
`LIMIT OFFSET` can be a bit costly depending on the size of the data set, though, especially if you go through a lot of pages. If you are fine with "next page" and "previous page" only, this page has some suggestions for how to use the database to handle this: http://use-the-index-luke.com/sql/partial-results/fetch-next-page
bonhoeffer has joined #ruby
yfeldblum has joined #ruby
serivich has quit [Ping timeout: 244 seconds]
<GaryOak_>
also if you are having that much change between page requests, you probably should think about another nav mechanic besides pagination
<dorei>
henrikhodne: thanx :)
The_Phoenix has quit [Read error: Connection reset by peer]
<GaryOak_>
or like henrikhodne mentioned just do a prev/next
<henrikhodne>
The short version is order by something deterministic like (date, id) (or just id if that's sufficient), then instead of storing the page number in the URL, you do something like after_date=...&after_id=...
<dorei>
got it :)))
lektrik has joined #ruby
bruno- has joined #ruby
_honning_ has joined #ruby
reinaldob has joined #ruby
iml has quit [Remote host closed the connection]
GaryOak_ has quit [Remote host closed the connection]
yh has quit [Ping timeout: 248 seconds]
d0t has quit [Quit: Lost terminal]
path[l] has joined #ruby
reinaldob has quit [Ping timeout: 265 seconds]
centrx has quit [Ping timeout: 252 seconds]
bruno- has quit [Ping timeout: 245 seconds]
deol has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
roolo has quit [Remote host closed the connection]
marr has quit [Ping timeout: 244 seconds]
Vile` has quit [Remote host closed the connection]
replay has quit [Ping timeout: 252 seconds]
babykosh has joined #ruby
babykosh has quit [Read error: Connection reset by peer]
babykosh has joined #ruby
serivich has joined #ruby
Vile` has joined #ruby
<henrikhodne>
k:q
path[l] has quit [Client Quit]
Wolland has joined #ruby
_honning_ has quit [Ping timeout: 256 seconds]
gr33n7001 has joined #ruby
work_op has quit [Ping timeout: 246 seconds]
nerium has quit [Quit: nerium]
gr33n7001 has quit [Client Quit]
Sirupsen has joined #ruby
gr33n7007h has quit [Ping timeout: 264 seconds]
zzing has joined #ruby
gr33n7007h has joined #ruby
robustus has quit [Ping timeout: 264 seconds]
jenrzzz has joined #ruby
x1337807x has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
iamjarvo has joined #ruby
iamjarvo has quit [Max SendQ exceeded]
babykosh has quit [Quit: babykosh]
iamjarvo has joined #ruby
CorpusCallosum has quit [Ping timeout: 245 seconds]
dmr8 has joined #ruby
havenn has joined #ruby
robustus has joined #ruby
noname1 has joined #ruby
AlexRussia has joined #ruby
RegulationD has quit [Remote host closed the connection]
tvw has quit [Remote host closed the connection]
rbennacer has joined #ruby
havenwood has quit [Ping timeout: 252 seconds]
jaequery has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
Sawbones has quit [Remote host closed the connection]
replay has joined #ruby
thinkswan has joined #ruby
triple_b has joined #ruby
paulcsmith has joined #ruby
x1337807x has joined #ruby
vim_shimm has joined #ruby
centrx has joined #ruby
rbennacer has quit [Ping timeout: 248 seconds]
oo_ has joined #ruby
cjim_ has joined #ruby
djbkd has quit [Quit: My people need me...]
nb_bez___ has joined #ruby
bigmac has quit [Ping timeout: 252 seconds]
caconym has quit [Quit: leaving]
Hobogrammer has joined #ruby
iliketurtles has quit [Ping timeout: 256 seconds]
thiagovks is now known as tanenbaum
Spami has quit [Quit: This computer has gone to sleep]
zeus_hammer has quit [Quit: zeus_hammer]
krisquigley has joined #ruby
lektrik has quit [Ping timeout: 265 seconds]
sevvie has quit [Ping timeout: 264 seconds]
arescorpio has quit [Remote host closed the connection]
kblake has quit [Remote host closed the connection]
vim_shimm has quit [Ping timeout: 255 seconds]
<shevy>
totimkopf nah, I just was there years ago and noticed the many cats. here in vienna we don't really have stray cats, at least not in masses
<dorei>
shevy: dont you have problems with mice?
<totimkopf>
that's because they eat cats in Austria
senayar has quit []
Sawbones has joined #ruby
<shevy>
dorei yeah, lots of mice, my cat catches a few of them every now and then. but they are really small mice, I think the largest was about... 14 cm or so, perhaps they were just baby mice who were dumb enough to get caught
reset has quit [Quit: Leaving...]
<dorei>
more stray cats => less stray mice
krisquigley has quit [Ping timeout: 248 seconds]
nii236 has joined #ruby
towski_ has quit [Remote host closed the connection]
n80 has quit [Quit: n80]
bigmac has joined #ruby
maletor has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
replay has quit [Ping timeout: 264 seconds]
<dorei>
time for some sleep, gnight all :)
oo_ has quit [Remote host closed the connection]
dorei has quit []
ghostpl_ has joined #ruby
nmalacarne has joined #ruby
sevenseacat has joined #ruby
hpoydar has quit [Remote host closed the connection]
oo_ has joined #ruby
replay has joined #ruby
bigmac has quit [Ping timeout: 272 seconds]
ponga has joined #ruby
lessless has joined #ruby
jerematic has joined #ruby
zacts has joined #ruby
tkuchiki has joined #ruby
charliesome has quit [Quit: zzz]
beneggett has joined #ruby
rajeshchawla has joined #ruby
zzing has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
JDiPierro has quit [Remote host closed the connection]
totimkopf has quit [Quit: leaving]
yh has joined #ruby
ghostpl_ has quit [Ping timeout: 250 seconds]
JDiPierro has joined #ruby
oo_ has quit [Remote host closed the connection]
iteratorP has joined #ruby
iteratorP has quit [Remote host closed the connection]
iteratorP has joined #ruby
Megtastique has joined #ruby
oo_ has joined #ruby
yh has quit [Ping timeout: 265 seconds]
beneggett has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
path[l] has joined #ruby
djellemah__ has joined #ruby
JDiPierro has quit [Remote host closed the connection]
swgillespie has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
charliesome has joined #ruby
hmsimha has joined #ruby
amclain has joined #ruby
djellemah_ has quit [Ping timeout: 245 seconds]
stryek has quit [Quit: leaving]
felixjet has quit [Read error: Connection reset by peer]
felixjet has joined #ruby
baweaver has quit [Remote host closed the connection]
n80 has joined #ruby
cpt_yossarian has quit [Quit: And then he took off.]
Trynemjoel has quit [Ping timeout: 256 seconds]
cpt_yossarian has joined #ruby
bruno- has joined #ruby
Trynemjoel has joined #ruby
doritostains has joined #ruby
atomi has quit [Quit: brb new hardware]
Wolland has quit []
bruno- has quit [Ping timeout: 250 seconds]
mbeasley_ has joined #ruby
mbeasley_ has quit [Client Quit]
tier has quit [Remote host closed the connection]
Guest74 has joined #ruby
phutchins has joined #ruby
startupality has quit [Quit: startupality]
dfinninger has joined #ruby
Rollabunna has quit [Remote host closed the connection]
Rollabunna has joined #ruby
virtualbsd has joined #ruby
jaequery has joined #ruby
x1337807x has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
cacocola has joined #ruby
nanSTA has joined #ruby
RegulationD has joined #ruby
jonr22 has joined #ruby
djbkd_ has quit [Remote host closed the connection]
jonr22 has quit [Client Quit]
jonr22 has joined #ruby
RegulationD has quit [Ping timeout: 255 seconds]
chipotle has joined #ruby
virtualbsd has quit [Ping timeout: 256 seconds]
nmalacarne has quit [Read error: Connection reset by peer]
nanSTA has quit [Ping timeout: 245 seconds]
nmalacarne has joined #ruby
djbkd has joined #ruby
riotjones has joined #ruby
jaequery has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
Feyn has joined #ruby
djbkd has quit [Client Quit]
c_nick has joined #ruby
kblake has joined #ruby
riotjones has quit [Ping timeout: 245 seconds]
tanenbaum is now known as thiagovsk
iliketurtles has joined #ruby
wallerdev has quit [Quit: wallerdev]
djbkd has joined #ruby
eshiffob has joined #ruby
kblake has quit [Ping timeout: 264 seconds]
zacts has quit [Quit: ERC Version 5.3 (IRC client for Emacs)]
x1337807x has joined #ruby
agrinb has quit [Read error: Connection reset by peer]
agrinb has joined #ruby
n80 has left #ruby [#ruby]
Soliah has joined #ruby
cefkamcau has quit [Ping timeout: 250 seconds]
nmalacarne has quit [Ping timeout: 252 seconds]
cjim_ has quit [Quit: (null)]
hpoydar has joined #ruby
rajeshchawla has quit [Remote host closed the connection]
<shevy>
hmm
<shevy>
Would you say that a Hash is more powerful than an Array?
<rager>
"yes"?
<Radar>
!8ball
<helpa>
Signs point to yes.
<Radar>
HELPA HAS SPOKEN
<rager>
it's a meaningless question, imo
<Radar>
but please define "powerful"
<sevenseacat>
its approximately 23% more powerful.
<rager>
you could implement the Array interface backed by a Hash
<rager>
and vice versa
<rager>
the latter would be... painful
<shevy>
yeah
phutchins has quit [Ping timeout: 272 seconds]
agrinb has quit [Read error: Connection reset by peer]
nateberkopec has quit [Quit: Leaving...]
nmalacarne has joined #ruby
agrinb has joined #ruby
hpoydar has quit [Ping timeout: 255 seconds]
fawkes1 has joined #ruby
fawkes1 has quit [Max SendQ exceeded]
amystephen has quit [Quit: amystephen]
nmalacarne has quit [Read error: Connection reset by peer]
krz has joined #ruby
<rager>
"stateless" session token that contains an hmac signed user id *OR* "stateful" session token that is a key to some storage that contains user id
nmalacarne has joined #ruby
<rager>
how much is being truly stateless worth?
bonhoeffer has quit [Quit: bonhoeffer]
ponga has quit [Read error: Connection reset by peer]
<Radar>
what is that token going to be used?
<Radar>
used for*
deol has joined #ruby
fawkes1 has joined #ruby
nmalacarne has quit [Ping timeout: 245 seconds]
fawkes1 has quit [Max SendQ exceeded]
C1ph3r has joined #ruby
Joufflu has joined #ruby
fawkes1 has joined #ruby
fawkes1 has quit [Max SendQ exceeded]
Sawbones has quit [Remote host closed the connection]
jeramy_s has joined #ruby
oo_ has quit [Remote host closed the connection]
sevvie has joined #ruby
triple_b has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
oo_ has joined #ruby
psychopath_mind has joined #ruby
psychopath_mind is now known as edmilsonefs
ghostpl_ has joined #ruby
triple_b has joined #ruby
AndyBotwin has joined #ruby
AndyBotwin has joined #ruby
vim_shimm has joined #ruby
jerematic has quit [Remote host closed the connection]
iliketurtles has quit [Remote host closed the connection]
atomi has joined #ruby
ghostpl_ has quit [Ping timeout: 245 seconds]
serivich has quit [Ping timeout: 244 seconds]
<rager>
Radar: iOS and ajax app
<rager>
not sure, but I think the users are probably going to be more sporadic, so the tokens will be pretty long-lived
<rager>
currently, they just kinda last forever, but we can easily invalidate them
edmilsonefs is now known as psychopath_mind
krisquigley has joined #ruby
nanSTA has joined #ruby
nanSTA has quit [Remote host closed the connection]
iliketurtles has joined #ruby
x1337807x has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
kreeves has joined #ruby
krisquigley has quit [Ping timeout: 256 seconds]
tus has quit []
DavidDudson has quit [Quit: Goodbye all, and thankyou.]
hiyosi has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
beneggett has joined #ruby
Megtastique has quit []
GinoMan has joined #ruby
doritostains has quit [Quit: ##java]
sevvie has quit [Ping timeout: 264 seconds]
doritostains has joined #ruby
swgillespie has joined #ruby
sevvie has joined #ruby
cacocola has quit [Remote host closed the connection]
Megtastique has joined #ruby
dmr8 has quit [Read error: Connection reset by peer]
tmoor has quit [Quit: Leaving]
lektrik has joined #ruby
jonr22 has quit [Ping timeout: 265 seconds]
ponga has joined #ruby
axisys_ has quit [Quit: leaving]
sevvie has quit [Ping timeout: 244 seconds]
axisys has joined #ruby
axisys has quit [Changing host]
axisys has joined #ruby
graydot has quit [Quit: graydot]
babykosh has joined #ruby
lemur has joined #ruby
ponga has quit [Client Quit]
tmoor has joined #ruby
Blackhole has quit []
freerobby has joined #ruby
blazes816 has joined #ruby
x1337807x has joined #ruby
jeramy_s has quit [Quit: Peace out!]
kyrylo_ has joined #ruby
OtterCoder has quit [Ping timeout: 272 seconds]
iliketurtles has quit [Quit: zzzzz…..]
tcrypt has quit [Ping timeout: 244 seconds]
sevvie has joined #ruby
soypirate has joined #ruby
kyrylo has quit [Ping timeout: 245 seconds]
blazes816 has quit [Ping timeout: 264 seconds]
cjim_ has joined #ruby
replay has quit []
towski_ has joined #ruby
iamjarvo has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
xenokiller has quit [Ping timeout: 244 seconds]
nii236 has quit [Ping timeout: 256 seconds]
zacts has joined #ruby
milesmatthias has joined #ruby
towski_ has quit [Remote host closed the connection]
michael_mbp has quit [Excess Flood]
oo_ has quit [Remote host closed the connection]
ponga has joined #ruby
michael_mbp has joined #ruby
vim_shimm has quit [Ping timeout: 246 seconds]
oo_ has joined #ruby
rajeshchawla has joined #ruby
path[l] has quit [Quit: path[l]]
kyrylo__ has joined #ruby
braincrash has quit [Quit: bye bye]
kaspernj has joined #ruby
jottr has quit [Ping timeout: 264 seconds]
RegulationD has joined #ruby
nii236 has joined #ruby
kyrylo_ has quit [Ping timeout: 272 seconds]
triple_b has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
dustpan has joined #ruby
w33nd0x has joined #ruby
<dustpan>
ls
<shevy>
haha dustpan
<dustpan>
oops
nb_bez___ has quit [Quit: Connection closed for inactivity]
rajeshchawla has quit [Ping timeout: 264 seconds]
psychopath_mind has quit [Write error: Connection reset by peer]
psychopath_mind has joined #ruby
kreeves has quit []
braincrash has joined #ruby
swgillespie has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
donnior has joined #ruby
baash05 has joined #ruby
dfinninger has quit [Remote host closed the connection]
<centrx>
slay shevy
sevvie has quit [Ping timeout: 272 seconds]
<shevy>
lol
donnior has left #ruby [#ruby]
tahmid has joined #ruby
tahmid has quit [Client Quit]
cjim_ has quit [Quit: (null)]
Fire-Dragon-DoL has quit []
towski_ has joined #ruby
existensil has joined #ruby
amystephen has joined #ruby
Pupeno has joined #ruby
tmoor has quit [Quit: Leaving]
donnior has joined #ruby
amystephen has quit [Client Quit]
<donnior>
close
Pupeno_ has quit [Ping timeout: 252 seconds]
RegulationD has quit [Ping timeout: 244 seconds]
jenrzzz has quit [Ping timeout: 250 seconds]
swgillespie has joined #ruby
sevvie has joined #ruby
beneggett has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
iliketurtles has joined #ruby
deol has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
riotjones has joined #ruby
Channel6 has joined #ruby
hobodave has joined #ruby
iterator_ has joined #ruby
oo_ has quit [Remote host closed the connection]
AndyBotwin has quit [Quit: Leaving]
iteratorP has quit [Ping timeout: 252 seconds]
donnior has left #ruby ["WeeChat 1.0.1"]
Renich has joined #ruby
donnior has joined #ruby
_honning_ has joined #ruby
riotjones has quit [Ping timeout: 256 seconds]
GinoMan has quit [Ping timeout: 256 seconds]
freerobby has quit [Quit: Leaving.]
c_nick has quit [Remote host closed the connection]
Kricir has joined #ruby
juanca_ has joined #ruby
iamjarvo has joined #ruby
nettoweb has joined #ruby
cacocola has joined #ruby
ponga has quit [Quit: Leaving...]
nettoweb has quit [Client Quit]
keen__________30 has quit [Ping timeout: 264 seconds]
donnior has left #ruby ["WeeChat 1.0.1"]
hpoydar has joined #ruby
DavidDudson has joined #ruby
cacocola has quit [Ping timeout: 264 seconds]
vim_shimm has joined #ruby
A205B064 has quit [Ping timeout: 256 seconds]
nii236 has quit [Read error: Connection reset by peer]
adriancb has quit [Remote host closed the connection]
deol has joined #ruby
mac_ has quit [Quit: This computer has gone to sleep]
macoecho has quit [Quit: This computer has gone to sleep]
yxhuvud has quit [Ping timeout: 256 seconds]
hpoydar has quit [Ping timeout: 265 seconds]
iamjarvo has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
jlast has quit [Remote host closed the connection]
MasterPiece has joined #ruby
DavidDudson has quit [Quit: Goodbye all, and thankyou.]
DavidDudson has joined #ruby
agrinb has quit [Read error: Connection reset by peer]
jlast has joined #ruby
mistermocha has joined #ruby
agrinb has joined #ruby
sdothum has quit [Quit: ZNC - 1.6.0 - http://znc.in]
baash05 has quit [Quit: Page closed]
jlast has quit [Ping timeout: 250 seconds]
Mia has quit [Write error: Connection reset by peer]
mistermocha has quit [Ping timeout: 256 seconds]
Kricir has quit [Remote host closed the connection]
Nuck has joined #ruby
yxhuvud has joined #ruby
tujv has joined #ruby
ebbflowgo has joined #ruby
jottr has joined #ruby
tujv has quit [Client Quit]
tujv has joined #ruby
rajeshchawla has joined #ruby
jottr has quit [Ping timeout: 246 seconds]
psychopath_mind has quit [Quit: ChatZilla 0.9.91.1 [Firefox 36.0.4/20150320202338]]
tcrypt has joined #ruby
AlexRussia has quit [Ping timeout: 272 seconds]
vim_shimm has quit [Ping timeout: 250 seconds]
rajeshchawla has quit [Ping timeout: 264 seconds]
Guest340 has quit [Ping timeout: 272 seconds]
ghostpl_ has joined #ruby
hobodave has quit [Quit: Computer has gone to sleep.]
<sandelius>
DeathCode If you're using windows Railsinstaller is a good starting point: http://railsinstaller.org/en
<sevenseacat>
yeah we gave him that yesterday
<sevenseacat>
he ignored us
<sandelius>
ok
patrick99e99 has joined #ruby
DavidDudson has joined #ruby
milesmatthias has quit [Remote host closed the connection]
hpoydar has quit [Ping timeout: 272 seconds]
sevvie has joined #ruby
x1337807x has joined #ruby
<DeathCode>
yes yes sandelius i did that already today
<DeathCode>
!
AlexRussia has quit [Ping timeout: 248 seconds]
<havenn>
DeathCode: How's git bash working as your text editor so far?
<DeathCode>
and i got the git bash thing to work
<DeathCode>
idk i was asking if its a valid thing to do to learn ruby on rails
<sevenseacat>
its 100% unrelated
_maes_ has quit [Read error: Connection reset by peer]
<havenn>
DeathCode: Oh yes. You should try Bash on Balls, then you don't have to leave your git bash editor: https://github.com/jneen/balls
AlexRussia has joined #ruby
<sevenseacat>
:/
<DeathCode>
ye i'll try sevenseacat link first
<DeathCode>
then report back
<sandelius>
I work as a CTO at a company and yesterday was the first time a got a "Rails don't scale", "We should use node" statement thrown at me :) I said: "Ohh my young padawan" :)
<Radar>
Node doesn't scale either.
<sandelius>
nothing scales automatically
C1ph3r has quit [Ping timeout: 252 seconds]
astrobun_ has joined #ruby
sevvie has quit [Ping timeout: 250 seconds]
f3lp has quit [Ping timeout: 252 seconds]
yfeldblum has joined #ruby
<Radar>
Go does.
<Radar>
#truefacts
<sevenseacat>
oh he went there
paulcsmith has quit [Quit: Be back later ...]
gsd has joined #ruby
sigurding has joined #ruby
<sandelius>
Radar I've only tried a Go a few times but I always feel when looking at OS projects that the project get messy with ton of files in the root. Perhaps there is a better way?
tagrudev has joined #ruby
<Radar>
sandelius: create less files
<sevenseacat>
lol
<sandelius>
Radar so that's the solutions? :)
riotjones has joined #ruby
<sandelius>
-s
beneggett has joined #ruby
sevvie has joined #ruby
<apeiros>
moin
maletor has joined #ruby
DavidDudson has quit [Ping timeout: 252 seconds]
<DeathCode>
sandelius brag more haha
duncannz has joined #ruby
<Radar>
sandelius: Do you have any examples of those projects btw?
pengin has quit [Remote host closed the connection]
jlast has joined #ruby
codecop has joined #ruby
elaptics is now known as elaptics_away
CorySimmons has joined #ruby
<DeathCode>
sevenseacat:so should i just learn ruby from cmd.exe then?
<DeathCode>
cause thats what the getting started guide is making me do :P
<sevenseacat>
you will need to be familiar with your terminal to work with ruby.
<sevenseacat>
the default terminal in windows is cmd.exe.
christiandsg has joined #ruby
edwinvdgraaf has quit [Remote host closed the connection]
<DeathCode>
sevenseacat:whats the step after i get familiar? what software do i use then? an IDE?
gsd has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<sevenseacat>
your text editor.
<Nilium>
vim.
beneggett has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<DeathCode>
which is sublime
<sevenseacat>
yep.
ChasedSpade|ill is now known as ChasedSpade
<DeathCode>
so sublime is basically an editor like notepad?
RegulationD has joined #ruby
ghostpl_ has joined #ruby
<sevenseacat>
its a text editor, yes.
rrichardsr3 has joined #ruby
last_staff has joined #ruby
<DeathCode>
sevenseacat:so um, this might be a weird question. but how do i test my rails application? like, the webpage/server that i created?
<Radar>
DeathCode: Focus on learning Ruby first.
<DeathCode>
i'm kind of trying to get familiar with the environment here
<Radar>
DeathCode: Take a week or two to learn JUST Ruby.
jlast has quit [Ping timeout: 256 seconds]
<DeathCode>
can i use netbeans to just learn ruby?
<Radar>
Then when you're feeling more confident about Ruby + your tools then move onto Rails.
<sevenseacat>
you open your browser and visit the URL.
Joufflu has quit [Read error: Connection reset by peer]
<Radar>
DeathCode: Use Sublime to edit Ruby files.
<Radar>
Netbeans is bloaty and very confusing imop
<DeathCode>
ah ok sevenseacat thank u so much
<DeathCode>
radar ah ok
<DeathCode>
so the .rb files i open with sublime and edit that stuff up. but is there a run feature in sublime?
<Radar>
There is not a run feature. Run it in your cmd.exe.
gr33n7007h has quit [Ping timeout: 264 seconds]
<DeathCode>
so drag the file to the cmd
<DeathCode>
and it will run
<sevenseacat>
>_<
<sevenseacat>
no
<DeathCode>
there was a way this friend of mine did it xD
<DeathCode>
oh sorry it was komodo edit
<DeathCode>
never mind
ta has joined #ruby
<DeathCode>
thank u so much guys. i think my computer is set up
banister has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
havenn has quit [Ping timeout: 252 seconds]
rajeshchawla has joined #ruby
ghostpl_ has quit [Ping timeout: 250 seconds]
cacocola has quit [Remote host closed the connection]
krisquigley has joined #ruby
ascarter has joined #ruby
krz has quit [Ping timeout: 244 seconds]
ta has quit [Ping timeout: 252 seconds]
Shidash has joined #ruby
vim_shimm has quit [Ping timeout: 255 seconds]
rajeshchawla has quit [Ping timeout: 244 seconds]
krisquigley has quit [Ping timeout: 252 seconds]
hectortrope has joined #ruby
Shidash has quit [Ping timeout: 245 seconds]
bal has joined #ruby
path[l] has joined #ruby
wottam has joined #ruby
hectortrope has quit [Quit: WeeChat 1.0.1]
Cork has quit [Ping timeout: 265 seconds]
MasterPiece has quit [Quit: Leaving]
zorak8 has quit [Ping timeout: 245 seconds]
hmsimha has quit [Ping timeout: 252 seconds]
Shidash has joined #ruby
axisys has quit [Read error: Connection reset by peer]
axisys has joined #ruby
gr33n7007h has joined #ruby
lxsameer has joined #ruby
Wolland has joined #ruby
cacocola has joined #ruby
rkazak has left #ruby [#ruby]
iterator_ has joined #ruby
Shidash has quit [Ping timeout: 265 seconds]
cacocola has quit [Remote host closed the connection]
cacocola has joined #ruby
dustpan has quit [Ping timeout: 256 seconds]
cacocola has quit [Remote host closed the connection]
iteratorP has quit [Ping timeout: 265 seconds]
djbkd has quit [Remote host closed the connection]
Shidash has joined #ruby
amclain has quit [Quit: Leaving]
Alina-malina has quit [Ping timeout: 244 seconds]
kyrylo__ is now known as kyrylo_
kyrylo_ is now known as kyrylo
jack_rabbit has joined #ruby
sandelius has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
arup_r has joined #ruby
chridal has joined #ruby
caconym has joined #ruby
greenbagels_ has joined #ruby
cacocola has joined #ruby
DavidDudson has joined #ruby
cacocola has quit [Remote host closed the connection]
lemur has quit [Remote host closed the connection]
krz has joined #ruby
greenbagels has quit [Ping timeout: 245 seconds]
<flughafen>
sevenseacat: i give you a headache?
chridal has quit [Ping timeout: 265 seconds]
<sevenseacat>
nah youre cool :)
allenn has joined #ruby
nii236 has quit [Ping timeout: 250 seconds]
<flughafen>
ooh la la! you heard it here, sevenseacat said i was cool!
greenbagels_ has quit [Client Quit]
<flughafen>
sevenseacat: can you print out some kind of certificate of coolness and mail it to me?
greenbagels has joined #ruby
<sevenseacat>
lol
andikr has joined #ruby
<flughafen>
how goes it sevenseacat
<flughafen>
sup certainty shevy arup_r
<sevenseacat>
not bad.... settling into a new job
<flughafen>
sevenseacat: did you start at a new company
<sevenseacat>
yep
<arup_r>
sevenseacat: new Rails job? some other tech ?
<sevenseacat>
rails :)
<sevenseacat>
stick to what im good at
<arup_r>
cool
<arup_r>
sevenseacat: you have dozens of Rails app experience.. so you can work anywhere... I know :)
<flughafen>
arup_r: sevenseacat is web scale
<arup_r>
flughafen: hum.. good very good
relix has joined #ruby
<arup_r>
I don't know when I'll complete dozens of app..
<arup_r>
still.. 2
<flughafen>
coly cow it's windy today
Sgeo has joined #ruby
sevvie has quit [Ping timeout: 264 seconds]
nii236 has joined #ruby
Akagi201_ has quit [Remote host closed the connection]
Akagi201 has joined #ruby
Sgeo_ has quit [Ping timeout: 248 seconds]
jlast has joined #ruby
x1337807x has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
jack_rabbit has quit [Ping timeout: 252 seconds]
aswen has joined #ruby
<flughafen>
i was surprised when i walked around a building and was almost blown away by the wind. i was looking down at my mp3 player and didn't hear anything.
oo_ has quit [Remote host closed the connection]
charliesome has quit [Quit: zzz]
<certainty>
flughafen: windy? that's only a slight breeze
<hanmac>
you think you have problems with the weather? currently its snowing outside, i think it would make more sense to leave the eggs white this year ;P
jlast has quit [Ping timeout: 256 seconds]
nii236 has quit [Ping timeout: 244 seconds]
<certainty>
:)
oo_ has joined #ruby
tkuchiki has quit [Ping timeout: 255 seconds]
<certainty>
as we say here: "Es ist erst windig, wenn die Schafe keine Locken mehr haben."
DavidDudson has quit [Ping timeout: 256 seconds]
tlarevo has joined #ruby
<flughafen>
hanmac: where are you?
tkuchiki has joined #ruby
<flughafen>
haha.
<flughafen>
certainty: ^^
<certainty>
xD
eshy has joined #ruby
<hanmac>
certainty: i do live under the roof of our house and the roof itself is not isolated, so the wind can pass through if it wants ... and each time its very stormy outside i need to remember me that i am not in Kansas ;P
Cork has joined #ruby
Pharaoh2_ has joined #ruby
Cork is now known as Guest7947
nii236 has joined #ruby
<certainty>
hanmac: hehe, stay calm dorothy
<hanmac>
yeah i will do Toto ;P
Pharaoh2_ has quit [Max SendQ exceeded]
<certainty>
man that was a movie
Pharaoh2_ has joined #ruby
<hanmac>
plural, there are many more of it with that plot/context ... imo one of my favorits was "Tinman" which is a bit more steampunk like ;P
rajeshchawla has joined #ruby
wildroman2 has joined #ruby
Hounddog has joined #ruby
maletor has quit [Quit: Computer has gone to sleep.]
Guest7947 has quit [Changing host]
Guest7947 has joined #ruby
Pharaoh2 has quit [Ping timeout: 246 seconds]
<certainty>
i didn't know there were more
<certainty>
#ruby is such a knowledgable place
<certainty>
:p
Guest7947 is now known as Cork
sandelius has joined #ruby
DavidDudson has joined #ruby
rajeshchawla has quit [Ping timeout: 250 seconds]
msgodf has joined #ruby
swgillespie has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
Renich has joined #ruby
kyb3r_ has quit [Read error: Connection reset by peer]
<certainty>
alright let's bootup emacs
someonespace has joined #ruby
DavidDudson has quit [Ping timeout: 256 seconds]
* flughafen
sighs
<flughafen>
emacs? could you for once, not talk about emacs certainty
bigkevmcd has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
bigkevmcd has joined #ruby
anarang has joined #ruby
DavidDudson has joined #ruby
greenbagels has quit [Read error: Connection reset by peer]
davedev24_ has quit [Remote host closed the connection]
towski_ has joined #ruby
towski_ has quit [Remote host closed the connection]
rocknrollmarc has joined #ruby
krz has quit [Ping timeout: 244 seconds]
DavidDudson has quit [Client Quit]
Jackneill has joined #ruby
<sandelius>
web UI is soo hard...
<sandelius>
Good web UI that is
quimrstorres has joined #ruby
djbkd has quit [Ping timeout: 256 seconds]
quimrstorres has quit [Remote host closed the connection]
quimrstorres has joined #ruby
DavidDudson has joined #ruby
nii236 has quit [Ping timeout: 248 seconds]
RegulationD has joined #ruby
codecop has quit [Remote host closed the connection]
astrobun_ has quit [Remote host closed the connection]
DeathCode has joined #ruby
<DeathCode>
ruby keeps me up at night
Akagi201_ has joined #ruby
ghostpl_ has joined #ruby
quimrstorres has quit [Ping timeout: 256 seconds]
nii236 has joined #ruby
RegulationD has quit [Ping timeout: 250 seconds]
dblessing has joined #ruby
lessless has joined #ruby
iliketurtles has quit [Quit: zzzzz…..]
Akagi201 has quit [Ping timeout: 255 seconds]
Shidash has quit [Ping timeout: 250 seconds]
ghostpl_ has quit [Ping timeout: 256 seconds]
ghr has joined #ruby
nii236 has quit [Ping timeout: 252 seconds]
<certainty>
DeathCode: why is that?
krisquigley has joined #ruby
<DeathCode>
i keep coding
<certainty>
good
<DeathCode>
dont even sleep
Ove_ has joined #ruby
polysics has joined #ruby
<DeathCode>
gotta learn this shit
<DeathCode>
gonna put food on my plate one day
jlast has joined #ruby
<certainty>
DeathCode: well you should sleep
nii236 has joined #ruby
<certainty>
it doesn't make sense not to
<DeathCode>
no i cant waste time
joonty has joined #ruby
benlieb_ has joined #ruby
<sandelius>
your memory and learning ability get waaay better with sleep
<certainty>
DeathCode: you're wasting time if you don't sleep
<DeathCode>
besides night time, i dont get much time to learn to code
<DeathCode>
because in the day time i'm busy
vtunka has joined #ruby
<sandelius>
prioritise?
<DeathCode>
i learned java this way. and building apps
krisquigley has quit [Ping timeout: 250 seconds]
arquebus has joined #ruby
<certainty>
well everyone is different. I can only speak for myself. I'd consider sleep a bit more so that i can actually learn instead of just getting more and more exhausted
<sevenseacat>
:/
<certainty>
that's the road to burnout and stuff
iterator_ has quit [Read error: Connection reset by peer]
iteratorP has joined #ruby
chrissonar has joined #ruby
jlast has quit [Ping timeout: 265 seconds]
<certainty>
sevenseacat: morning, mam. How's it downunder today?
<sevenseacat>
warm
<sandelius>
DeathCode why is it so important that you must learn Ruby in just a week?
* certainty
is jealous
tkuchiki_ has joined #ruby
<certainty>
DeathCode: here's a fact for you. Turns out it takes roughly 10 years to get in expert in one field
<DeathCode>
because life is short. time passes by. i have to make money and start building web pages as soon as i can
Shidash has joined #ruby
DavidDudson has quit [Ping timeout: 245 seconds]
<certainty>
s/get in/become an/
astrobun_ has joined #ruby
<sandelius>
DeathCode But you already know Java?
claw has quit [Ping timeout: 256 seconds]
<DeathCode>
yeah i do. but i want to learn a few more languages as well. this way i have better chance of getting a job
<DeathCode>
trying to learn ruby on rails and mysql
sevvie has joined #ruby
oo_ has quit [Remote host closed the connection]
<DeathCode>
then i want to apply it all on making apps or get a job with these skills
nii236 has quit [Ping timeout: 252 seconds]
<sandelius>
DeathCode Well put food on the table with your Java skills and learn Ruby during?
<DeathCode>
because i want more money than a minimum wage job. and i dont have a degree
vim_shimm has joined #ruby
tkuchiki has quit [Ping timeout: 256 seconds]
<DeathCode>
i feel like i have a talent in this. may not seem like this because i dont know how to get ruby set up. but i learned java really fast and i'm good at that
<sevenseacat>
youve got a long road ahead if you want to use ruby to pay the bills
bradleyprice has quit [Remote host closed the connection]
<sevenseacat>
and you wont be using windows for it
<DeathCode>
ye
<DeathCode>
but i have java as well in the background
rajeshchawla has joined #ruby
<sandelius>
DeathCode Still I agree with sevenseacat, install Ubuntu, or by a Mac. That will make your Ruby life a whole lot simpler
ascarter_ has joined #ruby
<sevenseacat>
but for now, windows is fine.
ta has joined #ruby
sephilix has joined #ruby
<DeathCode>
i dont have the money to do that. or the time to get familiar with another os
<flughafen>
just go the linux route
<sevenseacat>
dont heap too much on the guy at once. he's a java dev. he wants point and click.
ascarter has quit [Ping timeout: 264 seconds]
<DeathCode>
lel dont talk shit pls
<flughafen>
sevenseacat: he has to create a point factory and make an abstract factory factory for clicking
<certainty>
lel?
<certainty>
gotcha
<sevenseacat>
DeathCode: i'll talk whatever i want tbh
<certainty>
lelele xD
<DeathCode>
lele pons
<DeathCode>
wait shit
<DeathCode>
java is not easy for certain people either
oo_ has joined #ruby
<DeathCode>
so when u talk like that it seems like its super easy but people can find it hard
<certainty>
that's right. java is hard to bear for me
<sevenseacat>
i never said it was easy, its just totally different to anything decent.
claw has joined #ruby
<DeathCode>
damn...this like console wars?
<certainty>
i like the fact that the cat manages to downgrade java in the tail of a sentence that started with something totally neutral
<sevenseacat>
certainty: ;)
vim_shimm has quit [Ping timeout: 256 seconds]
c0m0 has joined #ruby
<certainty>
:D
<flughafen>
:DDDDDDD
<DeathCode>
crips and the bloods. coke and pepsi. xbox and ps. mac and pc
<DeathCode>
=DDDDDDDD
<Guest74>
hi
<sevenseacat>
sigh
rajeshchawla has quit [Ping timeout: 252 seconds]
<DeathCode>
sup Guest42382
<Guest74>
can anyone tell me how to install Nginx with Passenger
Takle has joined #ruby
<sandelius>
Guest74 passenger ships with an nginx installer
<Guest74>
yep
<sandelius>
Guest74 when you install passenger you even get to choose to install it :)
<Guest74>
i just want to depoy my rails app to EC2 s3 Amazon
ponga has joined #ruby
<DeathCode>
do u guys like mech pencils or wooden pencils?
<ponga>
DeathCode: latter, for feeling
<DeathCode>
mech pencils does it for me
<DeathCode>
haha
rocknrollmarc has quit [Ping timeout: 250 seconds]
<ponga>
but its been so many yrs since i used pencil
<DeathCode>
u use pen?
<DeathCode>
i write everything with pencils
<ponga>
mostly pen, at seldom occasions tho
arup_r has quit [Remote host closed the connection]
<ponga>
i use my phone and laptop
jimms has joined #ruby
<DeathCode>
ah ok
<DeathCode>
what do u do ponga
<ponga>
you asking job?
existensil has quit [Ping timeout: 244 seconds]
<DeathCode>
yeah
<ponga>
never though one's job is something you can ask like how much is this cheeseburger
cacocola has quit [Remote host closed the connection]
<ponga>
im stunned
hs366 has joined #ruby
benlieb_ has quit [Quit: benlieb_]
<DeathCode>
i dont know what u mean
<DeathCode>
i cant ask someone's job like "how much is this cheeseburger?"
<DeathCode>
?
<DeathCode>
but people do though. they ask "what do you do for a living?" all the time
<tobiasvl>
what on earth are you guys talking about
<ponga>
do you live in states?
<DeathCode>
i live in Canada
<sevenseacat>
just DeathCode being his usual charming self.
<ponga>
perhaps its the culture there
cacocola has joined #ruby
<DeathCode>
sevenseacat:you know it ;
<DeathCode>
;)
<DeathCode>
ponga what about the culture here?
<tobiasvl>
but
oo_ has quit [Remote host closed the connection]
cacocola has quit [Remote host closed the connection]
<ponga>
his charm is too strong for me
<tobiasvl>
I don't understand ponga's cheeseburger analogy
<flughafen>
MONGOPONGA
<ponga>
tobiasvl: me neither, its ok
<DeathCode>
ye i thought he meant to say you can't ask what someone does for a living like asking "how much for a cheeseburger?" tobiasvl
<DeathCode>
like you gotta warm them up first :P
krz has joined #ruby
<tobiasvl>
do you mean that you didn't know that "what do you do" is shorthand for "what do you do for a living", like "how much" is shorthand for "how much is this"?
<tobiasvl>
or that it's rude to ask what someone's job is?
<tobiasvl>
or what
<ponga>
DeathCode: i didn't intend 'warm them up first' but it sounds reasonable so i will take that
arquebus has quit [Quit: konversation disconnects]
<ponga>
thank you
jheg has joined #ruby
<tobiasvl>
haha
oo_ has joined #ruby
<DeathCode>
you're on the next level tobiasvl
<DeathCode>
you're overthunk it
<tobiasvl>
maybe
tahmid has joined #ruby
blackmesa has joined #ruby
Cust0sL1men has quit [Ping timeout: 248 seconds]
cacocola has joined #ruby
tahmid has left #ruby [#ruby]
mengu has joined #ruby
mengu has joined #ruby
DEA7TH has quit [Ping timeout: 244 seconds]
rocknrollmarc has joined #ruby
Aswebb_ has joined #ruby
<flughafen>
DeathCode: are you a java developer now?
<DeathCode>
no?
<sevenseacat>
wat
<DeathCode>
i'm not a professional java dev
Spami has joined #ruby
<DeathCode>
but i'm proficient with it yes
<ponga>
DeathCode: is that where your nick came from
<DeathCode>
hahaha thats funny
cacocola has quit [Ping timeout: 250 seconds]
<flughafen>
how long have you been writing in java?
<DeathCode>
long time. on and off really
<DeathCode>
ever since i was 14
<certainty>
you have my sympathy
max96at|off is now known as max96at
lordkryss has joined #ruby
marr has joined #ruby
<DeathCode>
you had my curiosity
marr has quit [Remote host closed the connection]
<DeathCode>
but now you have my attention
<flughafen>
why don't you get a job as a java dev
quimrstorres has joined #ruby
<certainty>
because he wants to be happy
d10n-work has quit [Quit: Connection closed for inactivity]
bruno- has joined #ruby
sevvie has quit [Ping timeout: 250 seconds]
<DeathCode>
i would. but this economy is rough
mistermocha has joined #ruby
<DeathCode>
also i havent applied yet hehe
<flughafen>
not for engineers
<DeathCode>
mainly cuase most places that are hiring look for a range of languages
<DeathCode>
not just java :(
* sevenseacat
is wisely biting tongue
<DeathCode>
say it sevenseacat
<sevenseacat>
see, i know when to shut up.
<DeathCode>
nah u still mentioned it
<DeathCode>
so say it
ToApolytoXaos has joined #ruby
senayar has joined #ruby
exadeci has joined #ruby
timonv has joined #ruby
<DeathCode>
sevenseacat:
sevvie has joined #ruby
mistermocha has quit [Ping timeout: 252 seconds]
bruno- has quit [Ping timeout: 264 seconds]
elaptics_away is now known as elaptics
toertore has joined #ruby
<DeathCode>
ye fuck u for thinking shit behind my back
govg has joined #ruby
AlphaTech has quit [Quit: Connection closed for inactivity]
<sevenseacat>
say that again?
<flughafen>
haha
<sandelius>
sevenseacat Gooday officer
path[l] has quit [Ping timeout: 245 seconds]
<sevenseacat>
DeathCode: don't be rude.
<DeathCode>
nah didnt mean it
charliesome has joined #ruby
leafybasil has quit [Remote host closed the connection]
<sevenseacat>
wise decision.
macoecho has joined #ruby
mac__ has joined #ruby
<sandelius>
DeathCode Don't take the Java crap personal. We all hate it
paulcsmith has joined #ruby
quimrstorres has quit [Remote host closed the connection]
iteratorP has quit [Remote host closed the connection]
<DeathCode>
damn yall are some condescending motherfuckers
<apeiros>
DeathCode: behave
<DeathCode>
reminds me of them hot girls at the club the other night
<DeathCode>
ok sorry
<apeiros>
people are having an enormous amount of patience with you IMO
DeathCode was kicked from #ruby by sevenseacat [DeathCode]
krisquigley has joined #ruby
<certainty>
who would've seen that coming?
DeathCode has joined #ruby
quimrstorres has joined #ruby
iteratorP has joined #ruby
<DeathCode>
ye sorry about that
path[l] has joined #ruby
<sevenseacat>
DeathCode: don't be rude.
<DeathCode>
was joking. didnt mean to be mean
<apeiros>
thank you sevenseacat
<DeathCode>
or be obscene
<DeathCode>
or make a great big scene
<apeiros>
DeathCode: never say you were joking about being rude.
<DeathCode>
never say neverrrr
<apeiros>
it doesn't make it any better, only worse.
rocknrollmarc has quit [Ping timeout: 256 seconds]
<apeiros>
at least with me and most people I know.
<DeathCode>
i understand
<DeathCode>
sorry for being so out of line
<DeathCode>
and i truly, humbly apologize for any pain that i may or may not have caused
sevvie has quit [Ping timeout: 245 seconds]
<DeathCode>
what was that one guy saying, that yall hate java?
<DeathCode>
what caused this great divide?
<apeiros>
one person doesn't speak for everybody
workmad3 has joined #ruby
<DeathCode>
apeiros:how old are you?
<apeiros>
I for one don't hate java. but that doesn't mean I want to code in it.
paulcsmith has quit [Ping timeout: 250 seconds]
quimrstorres has quit [Ping timeout: 264 seconds]
<flughafen>
apeiros: i use java and i hate it ;)
<apeiros>
flughafen: if I were forced to use it, maybe I'd hate it too :)
<DeathCode>
flughafen:are u java developer?
<flughafen>
i write in a few languages, java is one of tghem
<DeathCode>
JavaIsAwesome()
<SebastianThorn>
you forgot ;
<SebastianThorn>
i think
<canton7>
wrong casing, too
<apeiros>
btw. DeathCode, while I don't speak for others, I find your permanent being off-topic annoying. just saying.
* apeiros
current status - parsed logs from 2011-2015 with less than 30 failed lines :D
<apeiros>
(#ruby logs)
joonty has quit [Quit: joonty]
ghostpl_ has joined #ruby
<DeathCode>
am i always off-topic?
<DeathCode>
i do ask for ruby related stuff?
<DeathCode>
like how to set up ruby or rails
<apeiros>
not always but permanently.
<DeathCode>
ok?
<DeathCode>
lol
mac__ has quit [Quit: This computer has gone to sleep]
macoecho has quit [Quit: This computer has gone to sleep]
universa1 is now known as universal
flcn___ has joined #ruby
arup_r has joined #ruby
joonty has joined #ruby
mostlybadfly has quit [Quit: Connection closed for inactivity]
mengu has quit [Read error: Connection timed out]
flcn___ has quit [Client Quit]
Shidash has quit [Ping timeout: 265 seconds]
ghostpl_ has quit [Ping timeout: 255 seconds]
mengu has joined #ruby
flcn___ has joined #ruby
jlast has joined #ruby
duncannz has quit [Ping timeout: 250 seconds]
ascarter_ has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
cacocola has joined #ruby
universal is now known as universa1
marr has joined #ruby
selu has joined #ruby
Trioxin_ has joined #ruby
Shidash has joined #ruby
claptor has joined #ruby
Advocation has joined #ruby
mengu has quit [Remote host closed the connection]
nii236 has joined #ruby
Advocation has quit [Client Quit]
ghostpl_ has joined #ruby
Trioxin has quit [Ping timeout: 272 seconds]
macoecho has joined #ruby
mac__ has joined #ruby
jlast has quit [Ping timeout: 256 seconds]
djellemah__ has quit [Quit: Leaving]
hectortrope has joined #ruby
djellemah has joined #ruby
cacocola has quit [Remote host closed the connection]
einarj has joined #ruby
cacocola has joined #ruby
path[l] has quit [Ping timeout: 245 seconds]
KnownSyntax has quit [Quit: Connection closed for inactivity]
ghostpl_ has quit [Ping timeout: 256 seconds]
tvw has joined #ruby
selu has quit [Remote host closed the connection]
lolmaus has joined #ruby
AlexRussia has quit [Ping timeout: 244 seconds]
leafybasil has joined #ruby
hpoydar has joined #ruby
oo_ has quit [Remote host closed the connection]
sevvie has joined #ruby
DaniG2k has joined #ruby
malcolmva has quit [Ping timeout: 255 seconds]
path[l] has joined #ruby
leafybasil has quit [Remote host closed the connection]
Cust0sL1men has joined #ruby
leafybasil has joined #ruby
quimrstorres has joined #ruby
xcombelle has joined #ruby
krz has quit [Ping timeout: 272 seconds]
hpoydar has quit [Ping timeout: 250 seconds]
DavidDudson has joined #ruby
bim has quit [Remote host closed the connection]
mac__ has quit [Quit: This computer has gone to sleep]
macoecho has quit [Quit: This computer has gone to sleep]
krz has joined #ruby
jimms has quit [Remote host closed the connection]
oo_ has joined #ruby
sandelius has quit [Read error: Connection reset by peer]
bim has joined #ruby
bim has quit [Read error: Connection reset by peer]
bim has joined #ruby
yh has joined #ruby
jefus__ has joined #ruby
thinkswan has quit [Quit: ...]
serivich has joined #ruby
malcolmva has joined #ruby
<flughafen>
certainty: es ist wie er hat gefurzt und alles ist weg gegangen
evanfreeman has joined #ruby
bim has quit [Ping timeout: 265 seconds]
jefus_ has quit [Ping timeout: 250 seconds]
davidhq has joined #ruby
sevvie has quit [Ping timeout: 264 seconds]
Guest74 has quit [Remote host closed the connection]
withnale_ has joined #ruby
nettoweb has joined #ruby
blackmesa has quit [Ping timeout: 272 seconds]
jimms has joined #ruby
Wolland has quit []
riotjones has quit [Remote host closed the connection]
astrobun_ has quit [Remote host closed the connection]
arturhoo has joined #ruby
ahmetkapikiran has joined #ruby
bim has quit [Remote host closed the connection]
rodfersou has joined #ruby
jimms has quit [Remote host closed the connection]
bim has joined #ruby
bim has quit [Remote host closed the connection]
Renich has quit [Quit: leaving]
Pharaoh2_ has quit [Ping timeout: 264 seconds]
jlast has joined #ruby
davidhq has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
Synthead has joined #ruby
evanfreeman has quit [Remote host closed the connection]
Alina-malina has joined #ruby
Pharaoh2 has joined #ruby
bim has joined #ruby
bonhoeffer has joined #ruby
Pharaoh2 has quit [Max SendQ exceeded]
Pharaoh2 has joined #ruby
felltir has joined #ruby
mostlybadfly has joined #ruby
jlast has quit [Ping timeout: 256 seconds]
Zai00 has joined #ruby
bim has quit [Remote host closed the connection]
ayaz has joined #ruby
felltir has quit [Client Quit]
jenrzzz has quit [Ping timeout: 264 seconds]
lolmaus has quit [Ping timeout: 255 seconds]
avril14th has quit [Remote host closed the connection]
Sirupsen has joined #ruby
rajeshchawla has joined #ruby
nicolastarzia has joined #ruby
bruno- has quit [Ping timeout: 272 seconds]
zcreative has quit [Quit: (null)]
<shevy>
ah it's the change of colours
<shevy>
now ponga appears normal again :)
<shevy>
xchat seems to have a rather limited set of default colours it uses
<shevy>
arup_r appears red
<arup_r>
hummm.. why I was red.. dunno
<shevy>
the colour of love
evanfreeman has joined #ruby
rajeshchawla has quit [Ping timeout: 255 seconds]
ahmetkapikiran has quit [Quit: ahmetkapikiran]
<jhass>
rage you mean
<arup_r>
shevy: we lost the world cup :(
<shevy>
arup_r cricket?
<BLuEGoD>
how can I add/substract months in Ruby preserving the end of month i.e: Date.new(2013,6,30)-3.months = 30 Mar 2013 - and not 31st. I want to get last day of june - 3 months = last day of march.. ?
<arup_r>
humm
<shevy>
arup_r you guys need some more violent game, like rugby
Aswebb_ has quit [Remote host closed the connection]
<apeiros>
workmad3: is that guaranteed to never "flow" over so it ends up 1 month off?
<BLuEGoD>
ok thanks apeiros, thought there would be some method for that
<arup_r>
shevy: I'll tell our prime minister about it..
<shevy>
arup_r hehehe
<BLuEGoD>
/workmad3
<arup_r>
we need some grounds to practice rugby
<apeiros>
actually looks like it does that proper
<apeiros>
BLuEGoD: what workmad3 said
<workmad3>
apeiros: I *think* so, but I'd need to play... some_date - 3.months will always end up 3 months ago, and I'm pretty sure that .end_of_month when on the end of the month doesn't flow over to the next month
ahmetkapikiran has joined #ruby
konsolebox has quit [Quit: Leaving]
gfawcettpq has joined #ruby
roolo has quit [Remote host closed the connection]
<apeiros>
workmad3: I was more worried about effects like 2015-01-31 + 1.months => 2015-03-02
<flughafen>
arup_r: yeah, the dog is young so i need to go home and walk him
<apeiros>
but iirc AS actually stores the whole addition/subtraction series, which results in some other weird effects
<apeiros>
but adding/subtracting months is a bad idea to begin with
<workmad3>
apeiros: there could be some complication if they were Times with timezones, as it would depend on what timezone you transitioned to in order to do the .end_of_month call (i.e. if you did the end of the month at 11:59pm in UTC, then travelled back 2 months to the 30th April, said you wanted the date in BST so it's +1 and did .end_of_month, then you'd end up at the end of may, if I'm working things out corre
<arup_r>
flughafen: have you ever tried Component-based Architectures in Ruby and Rails ?
<workmad3>
kstuart: that one didn't work quite so well, eh? :P
<kstuart>
how so?
<arup_r>
Although I don't know what does it means?
<workmad3>
kstuart: it's still in 2013
avril14th has joined #ruby
<flughafen>
arup_r: no
<apeiros>
seems they no longer keep track of the operation chain, though. at least I remembered this having a different result: Date.civil(2015,1,31) + 1.month - 1.month # => 2015-01-28
<kstuart>
Ah! missed that!!
<BLuEGoD>
true..
phutchins has joined #ruby
<arup_r>
flughafen: service object in Rails ?
lennae has joined #ruby
<flughafen>
no
RegulationD has joined #ruby
<workmad3>
kstuart: dates are a PITA :)
<workmad3>
kstuart: there's always some extra edge-case just waiting to trip you up :(
<canton7>
just wait until you start adding timezones
<kstuart>
yup, in any language ;)
<arup_r>
flughafen: thanks for supporting me..
evanfreeman has quit [Remote host closed the connection]
serivichi has quit [Ping timeout: 272 seconds]
<arup_r>
flughafen: you use vanilla Rails MVC.. right ?
davidhq has joined #ruby
helpa has quit [Remote host closed the connection]
helpa has joined #ruby
<flughafen>
arup_r: no. i have a few commits to a rails project, buit i'm not a rails guy
<arup_r>
wow
<arup_r>
flughafen: you use Python and Django for web dev projects ?
<arup_r>
or .Net. C# ?
nfk has joined #ruby
arturhoo has quit [Quit: arturhoo]
<workmad3>
kstuart: if you want something really fun, what do you think should be the day after '1750-03-24' using civil dates in england? or the day after '1752-09-02'? :)
<workmad3>
(again in england)
xcombelle has quit [Remote host closed the connection]
RegulationD has quit [Ping timeout: 244 seconds]
<flughafen>
arup_r: java, python for web
* canton7
thinks he knows both of those
<arup_r>
flughafen: humm... you guys are rock!
<flughafen>
ruby for test stuff. we use cucumber/capybara
* arup_r
a skills auck
merqlove has joined #ruby
* arup_r
s skills auck
<flughafen>
it's ok, practice!
<arup_r>
:(
<kstuart>
workmad3: those dates didn't exist in england ;)
<canton7>
the first is the "year changes in march" gotcha, the second is the shift to the gregorian calendar, I think?
Aswebb_ has joined #ruby
<workmad3>
kstuart: yeah they do
orionstein has quit [Ping timeout: 252 seconds]
gf3 has quit [Ping timeout: 246 seconds]
<workmad3>
kstuart: but the day after 1750-03-24 is 1751-03-25, and the day after 1752-09-02 is 1752-09-14
bonhoeffer has joined #ruby
claptor has quit [Quit: this channel is bakas]
<canton7>
yay!
<kstuart>
workmad3: aren't those dates related to julian -> gregorian switch?
<canton7>
the second one is
<canton7>
the first is a quirk in the julian calendar itself
<kstuart>
Ah, ok, thanks!
<workmad3>
kstuart: the second one is the day before the julian-gregorian switch, the first is a quirk in the 'legal start of the year' or 'civil dates' in england
Vile` has quit [Read error: Connection reset by peer]
<canton7>
how about the day after 29-12-2011 in Samoa?
<workmad3>
canton7: that was the 31-12-2011, right?
orionstein has joined #ruby
<canton7>
yep :D
<workmad3>
canton7: where they decided to go from -12 to +12?
gf3 has joined #ruby
<kstuart>
No wonder date libraries are hard
<canton7>
they're +13 now I think
<workmad3>
kstuart: hard to impossible
<workmad3>
kstuart: i.e. don't ask what the 'time' is in the gaza strip
<workmad3>
kstuart: as it'll depend on who you ask
<apeiros>
date libraries aren't hard. calendar libraries are :-p
codecop has joined #ruby
ndrei has quit [Ping timeout: 264 seconds]
<apeiros>
for a date library, you can just pretend infinitely backdated gregorian
<canton7>
wasn't it Sweden that had something like 3 botched attempts to shift to the gregorian calendar?
<apeiros>
at least that's what I did
ahmetkapikiran has quit [Quit: ahmetkapikiran]
<workmad3>
apeiros: what annoys me a bit is that the ISO standard for datetimes doesn't actually contain enough info to do sensible calculations :(
<apeiros>
workmad3: hm, interesting. I never even considered ISO beyond representation.
chthon has joined #ruby
livathinos is now known as annkr
<kstuart>
workmad3: How so, surely it's one timezone in the gaza strip?
<apeiros>
anyway, my solution to calendar quirks was/is that you could overlay any calendar class you'd want
<workmad3>
kstuart: depends on which side of the conflict the person you ask is affiliated to
Vile` has joined #ruby
<canton7>
kstuart, depends on who you ask
<apeiros>
that's also how it could theoretically support things like chinese calendar, or discordian, or julian, or whatever.
<kstuart>
canton7: Thanks for video link, looks good, I'm a little confused now so will go watch...
freerobby has joined #ruby
freerobby has quit [Client Quit]
fgo has joined #ruby
Takle has quit [Remote host closed the connection]
lolmaus has joined #ruby
<workmad3>
apeiros: regarding ISO representation... the *second* after '1752-09-02T23:59:59+0000' will change depending on the location, which isn't part of the representation :(
<canton7>
also amuses me that australia has +8.75 and +9.5 timezones, india is +5.5, and nepal is +5.75. Had to argue that case against a client who wanted timezones in increments of 1hr
freerobby has joined #ruby
<workmad3>
apeiros: which is also true for countries that end up sharing timezones over differing DST rules
tadassce has joined #ruby
hgl has joined #ruby
rodfersou has quit [Read error: Connection reset by peer]
senayar has joined #ruby
senayar has joined #ruby
Akagi201_ has quit [Remote host closed the connection]
rodfersou has joined #ruby
naftilos76 has joined #ruby
Akagi201 has joined #ruby
<workmad3>
canton7: I think barbados had something like a -8:51 TZ for quite some time :)
<canton7>
oh lovely!
AlphaTech is now known as NotAlphaTech
<canton7>
"we want to be different, screw you"
ahmetkapikiran has joined #ruby
Akagi201_ has joined #ruby
sevvie has joined #ruby
NotAlphaTech is now known as SixtyNine
oo_ has quit [Remote host closed the connection]
SixtyNine is now known as AlphaTech
cpt_yossarian has quit [Ping timeout: 250 seconds]
senayar has quit [Remote host closed the connection]
patrick99e99 has quit [Ping timeout: 248 seconds]
senayar has joined #ruby
senayar has quit [Changing host]
senayar has joined #ruby
ujjain has quit [Ping timeout: 272 seconds]
Akagi201 has quit [Ping timeout: 252 seconds]
oo_ has joined #ruby
Mon_Ouie has joined #ruby
Mon_Ouie has joined #ruby
Jackneill has quit [Ping timeout: 264 seconds]
patrick99e99 has joined #ruby
nii236 has quit [Ping timeout: 272 seconds]
workmad3 is now known as wm3|away
ldnunes has joined #ruby
Jackneill has joined #ruby
lektrik has quit [Quit: Leaving]
joonty has quit [Quit: joonty]
hpoydar has joined #ruby
gluten_hell has joined #ruby
xenokiller has quit [Ping timeout: 245 seconds]
<kstuart>
canton7: wow, educational
jerematic has joined #ruby
<kstuart>
Madness, thank god for experts that don't mind losing their sanity to putting all that into a library
xenokiller has joined #ruby
<canton7>
it gets worse in practice, sometimes
<canton7>
fun stuff like your langauge only having a 'datetime' type, which you have to co-opt to use to display dates. then accidentally having a timezone applied to it when formatting
<canton7>
that doesn't go well
adriancb has quit [Ping timeout: 265 seconds]
rsavage has joined #ruby
tvw has quit [Read error: Connection reset by peer]
tadassce has quit [Quit: leaving]
gluten_hell has quit [Ping timeout: 272 seconds]
arturhoo has joined #ruby
jlast has joined #ruby
<canton7>
or trying to explain to a client why you can't localize dates, only datetimes
<apeiros>
oracle doesn't have a true date type. always fun.
<apeiros>
caused a couple of off-by-one errors for us
silkfox has joined #ruby
govg has joined #ruby
aclearman037 has joined #ruby
rsavage is now known as romking
_1_manu3 has joined #ruby
<_1_manu3>
hello
patrick99e99 has quit [Ping timeout: 256 seconds]
jlast has quit [Ping timeout: 252 seconds]
negaduck has joined #ruby
xenokiller has quit [Ping timeout: 256 seconds]
patrick99e99 has joined #ruby
mac__ has quit [Quit: This computer has gone to sleep]
macoecho has quit [Quit: This computer has gone to sleep]
kedare has joined #ruby
nicolastarzia has quit [Remote host closed the connection]
iamjarvo has joined #ruby
DaniG2k has quit [Ping timeout: 246 seconds]
iamjarvo has quit [Client Quit]
_1_manu3 has quit [Remote host closed the connection]
bim has joined #ruby
hpoydar has quit [Remote host closed the connection]
Timgauthier has joined #ruby
tlarevo has quit [Remote host closed the connection]
Sirupsen has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
vim_shimm has joined #ruby
xenokiller has joined #ruby
lanemeyer has quit [Ping timeout: 264 seconds]
charliesome has quit [Quit: zzz]
yh has quit [Ping timeout: 246 seconds]
negaduck has left #ruby ["(null)"]
rajeshchawla has joined #ruby
antgel_ has quit [Ping timeout: 272 seconds]
jheg has quit [Quit: jheg]
<Timgauthier>
it is all shevy's fault
<Timgauthier>
he's a walking segfualt
sigurding has quit [Quit: sigurding]
vim_shimm has quit [Ping timeout: 245 seconds]
<shevy>
yeah
<shevy>
I am a segfualt
<Timgauthier>
sup man? long time no irc
<shevy>
:)
Takle has joined #ruby
<shevy>
yeah that is understandable
<Timgauthier>
i really don't understand what a segfualt is lol
<shevy>
you are married now and have no more time for the old days
<Timgauthier>
i wish
<shevy>
hehe
<Timgauthier>
its actually that i'm stuck in german class all morning and not doing any work so my mac gets rarely turned on
musashi1 has quit [Ping timeout: 272 seconds]
joonty has joined #ruby
<shevy>
I see! so you'll write poems like Goethe eventually
<Timgauthier>
haha
AlphaTech is now known as AlphaTech|AWAY
<Timgauthier>
ich nich screiben
<shevy>
back in schooldays, we had to read a lot of boring german literature
<Timgauthier>
schreiben*
<Timgauthier>
ja, aber ich nicht in der grundeschüle.
<Timgauthier>
Diese ist für Auslander zu gelernt Deutsch
AlphaTech|AWAY is now known as AlphaTech
rajeshchawla has quit [Ping timeout: 264 seconds]
<shevy>
hehe
Mon_Ouie has quit [Ping timeout: 252 seconds]
quimrstorres has quit [Remote host closed the connection]
<Timgauthier>
that was all shit german, i apologize :P
<shevy>
the weird part about that literature was that the wording and style was so alien and outdated
<shevy>
there literally were sentences that spanned over more than a full page
quimrstorres has joined #ruby
<Timgauthier>
haha nice
<Timgauthier>
yeah, thats like us studying shakespear
<shevy>
:)
<Timgauthier>
his writing does not represent english
pengin has joined #ruby
<shevy>
oh?
freerobby has quit [Quit: Leaving.]
<shevy>
but it looks like english?
<Timgauthier>
no, no one ever spoke or wrote like that but him
Sirupsen has joined #ruby
<Timgauthier>
his writing was a specific style to himself, it was lots of jokes based on pronounciation from the little part of london his theater was in
dfinninger has joined #ruby
teddyp1cker has joined #ruby
sevvie has quit [Ping timeout: 246 seconds]
iasoon has joined #ruby
jenrzzz has joined #ruby
norc has joined #ruby
quimrstorres has quit [Ping timeout: 252 seconds]
Sirupsen has quit [Client Quit]
leafybas_ has joined #ruby
<norc>
Hi. I have a rails application. Now my Gemfile requires a gem from a local (intranet!) git server, and gems from an external (behind a proxy!) git server. Is there a way to either specify a proxy for a single gem?
davidhq has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<norc>
Or should I build the gem from the internal network and put it inside the other gem?
Zimsky__ has quit [Ping timeout: 272 seconds]
Elite6809 has quit [Ping timeout: 248 seconds]
<apeiros>
norc: use no_proxy env variable
<norc>
apeiros: Can I use that selectively on a gem in a gemfile?
patrick99e99 has quit [Ping timeout: 248 seconds]
<apeiros>
no
Elite6809 has joined #ruby
<apeiros>
but I doubt that your local server and the external git server have the same address
bim has quit [Remote host closed the connection]
<apeiros>
so I don't see why you'd want to do that "per Gemfile"
<iasoon>
Is it possible to patch class methods using refinements?
leafybasil has quit [Ping timeout: 244 seconds]
patrick99e99 has joined #ruby
<apeiros>
iasoon: all ruby classes are open
<apeiros>
(that is, unless somebody calls .freeze on it)
<iasoon>
apeiros: Do you have a pointer on how to do this?
<apeiros>
iasoon: note that patching existing classes which you don't control is called "monkey patching" for a reason. do it with care. better yet, don't do it at all.
<iasoon>
I tried refining Classname.singleton_method, but that did not work.
<apeiros>
iasoon: just plain `class ExistingClass; dowhatever; end`
polysics has joined #ruby
d10n-work has joined #ruby
<apeiros>
iasoon: oooh
<apeiros>
sorry, completely misread you
<apeiros>
I read "patch classes without using refinements"
<iasoon>
Hehe =)
pengin has quit [Remote host closed the connection]
<apeiros>
I think I haven't tried refining class methods yet, sorry
<iasoon>
Thanks anyways :)
shmoon has quit [Ping timeout: 252 seconds]
<shevy>
iasoon refinements still confuse me
<shevy>
the syntax feels so clunky... monkeypatching seems so much simpler!
<norc>
apeiros: Ah perfect. This solution is perfect for my needs.
polysics_ has joined #ruby
joonty has quit [Quit: joonty]
<iasoon>
shevy: Does it? You just do 'refine' instead of 'class', and then 'using YourModuleWithRefinements' where you want to use them?
<shevy>
hmmm that's not how I remember it... let me look up
<shevy>
no longer do we have to strife for simplicity
<shevy>
why make things simple when you can make them complicated
zenith_ has joined #ruby
<shevy>
certainty is lisp complicated?
<certainty>
shevy: no!
<wasamasa>
common lisp maybe
sevvie has quit [Ping timeout: 252 seconds]
<certainty>
it's not even complex
<wasamasa>
its standard is as long as C++
<workmad3>
shevy: lisp is super-easy... everything is a list
<certainty>
well wasamasa is right, there might be complex/complicated dialects
<shevy>
hehehe
<shevy>
that reminds me of everything is an object
quimrstorres has quit [Ping timeout: 272 seconds]
sevvie has joined #ruby
<certainty>
until it isn't
<certainty>
unityped languages and all that
<workmad3>
shevy: lisp makes it a reality though... the entire program is a list, which you can manipulate through lisp macros (which are also lists)...
<wasamasa>
clojure tries catching up with common lisp
<workmad3>
(I'm being somewhat facetious here, it's been a long time since I did any lisp and my grasp was always a bit sketchy :) )
mac__ has quit [Quit: This computer has gone to sleep]
macoecho has quit [Quit: This computer has gone to sleep]
C1ph3r_ has quit [Ping timeout: 244 seconds]
<certainty>
workmad3: you're basically right though
<wasamasa>
lisp code is pretty close to the generated AST
<workmad3>
certainty: yeah... but there are symbols and some other things too, which are what you have lists *of* :)
<certainty>
that said i havened hacked any scheme for some time now :(
<certainty>
workmad3: atoms
<workmad3>
that's the word!
<certainty>
have not, even
jheg has quit [Quit: jheg]
lordkryss has quit [Quit: Connection closed for inactivity]
Takle has quit [Remote host closed the connection]
macoecho has joined #ruby
mac__ has joined #ruby
Takle has joined #ruby
<certainty>
workmad3: really it's not all about cons-cells or lists anymore. we have all kinds of datastructures, like vectors and maps
bogeyd6 has quit [Ping timeout: 250 seconds]
<certainty>
but lists are still the working horse in lisps, except clojure which uses vectors and maps heavily
<shevy>
certainty are you actually still writing code these days or are you just idling?
<arup_r>
is it?
<arup_r>
how shevy?
<certainty>
shevy: mostly idling and trolling people in #ruby
lavros has joined #ruby
sparch has quit [Ping timeout: 250 seconds]
<shevy>
arup_r yeah; for instance, I use lots of aliases, and even aliases that end with ?
<workmad3>
wasamasa: never realised the common-lisp spec was so large... I'm gonna guess that there's a lot less about the language and a lot more in the standard library though (C++ spec seems to have almost 450 pages just on the language spec, the rest is the stdlib)
<shevy>
like: "cpu?" tells me what cpu the machine has I am on
<certainty>
shevy: that's so wrong
<shevy>
and when I look complicated examples like the above, I just can not be bothered to want to decompose it until I understand it
<certainty>
cpu? should return a boolean
Megtastique has joined #ruby
pwattste has joined #ruby
<certainty>
my aliases usually start with ,
<shevy>
certainty oh yeah I know that convention :)
<shevy>
hmm why , ?
<certainty>
dunno
<certainty>
i started it some day
<shevy>
easier to type?
<shevy>
aha... weird
<certainty>
probably
<shevy>
you scare me certainty
<certainty>
,hgfe
<shevy>
good thing that I am not you!
<wasamasa>
workmad3: sounds about right
<shevy>
huh... what is "hgfe" short for
<wasamasa>
workmad3: my impression was that even experienced people keep finding useful standard functionality in the standard
<shevy>
high game, fun enemy
<shevy>
hot girl, free energy
<shevy>
nope, I can't figure it out
<workmad3>
wasamasa: in CL?
<wasamasa>
workmad3: despite it not looking as large these days compared to the standard libraries of something like ruby
TheKruex has joined #ruby
<wasamasa>
workmad3: yes
<certainty>
shevy: that's an alias for a function that creates a mercurial feature branch with the given issue-id.
<shevy>
ack
blackmesa has joined #ruby
<workmad3>
wasamasa: sounds about right... I keep on finding useful stuff in the ruby stdlib that I hadn't realised was there :)
<shevy>
come to git man!
<certainty>
nah
<shevy>
:)
<certainty>
i like mercurial
bruno- has joined #ruby
jimms has quit [Remote host closed the connection]
<workmad3>
wasamasa: my experience with C++ indicates that even experienced people keep on finding new and interesting edge-cases and compiler bugs when they read through the language spec :)
havenwood has joined #ruby
bruno- is now known as Guest42038
<certainty>
workmad3: as a matter of fact the upcoming scheme standard is devided into a small and a large language.
mitchellhenke has joined #ruby
<wasamasa>
fun
<wasamasa>
they still aren't ready with the large one, right?
<certainty>
nope
marr has quit [Ping timeout: 244 seconds]
davidhq has joined #ruby
<workmad3>
certainty: the small language is 'everything is a list' and the large one is 'almost everything is a list, but sometimes we like hashes'?
cacocola has joined #ruby
quimrstorres has joined #ruby
nateberkopec has joined #ruby
antgel_ has quit [Ping timeout: 250 seconds]
aganov has quit [Remote host closed the connection]
ahmetkapikiran has joined #ruby
<wasamasa>
workmad3: well, no, the larger one is all about nice-to-haves
<wasamasa>
workmad3: like, a networking library
<wasamasa>
workmad3: or unicode support
RegulationD has quit [Remote host closed the connection]
<workmad3>
wasamasa: :P
<wasamasa>
workmad3: or FFI
RegulationD has joined #ruby
sevenseacat has joined #ruby
JDiPierro has quit [Remote host closed the connection]
amystephen has joined #ruby
cacocola has quit [Ping timeout: 246 seconds]
<certainty>
workmad3: nope not really but it aims somewhat in that direction. Scheme always emphasized that a language needs not be large to be useful/powerful instead it should focus on removing the limitations that make more features appear to be needed. That's even the forword to r5rs. So after r6rs we voted for a standard that is again more true to those roots
razieliyo has joined #ruby
razieliyo has joined #ruby
<certainty>
but also we acknowledged that there are other needs in the real programming world these days
<certainty>
so the plan emerged to split the two things
<certainty>
today i have a greater tendency to statically typed functional languages, but scheme remains my first love
<shevy>
it's better to read than C code
<certainty>
yepp
last_staff has quit [Quit: last_staff]
<shevy>
I still don't like the ((((
AlexRussia has quit [Ping timeout: 256 seconds]
<ddv>
yep don't like it either
<shevy>
in the game wesnoth, they brought the ( to another level
DeBot has quit [Quit: Crystal]
<shevy>
they use XML (WML) like a programming language
DeBot has joined #ruby
<shevy>
though a few years ago, they also started to use lua, so now I am confused
<ddv>
what is it noth
<certainty>
ah parens are ignorable
<shevy>
but XML-languages as a programming language, now that sucked the most
<shevy>
certainty yes.. in ruby!!!
<workmad3>
shevy: do you mean you don't love and adore XSLT?
<shevy>
workmad3 I guess it had its peak some years ago
maasha has joined #ruby
codecop has quit [Remote host closed the connection]
annkr has quit [Ping timeout: 248 seconds]
<shevy>
I read a while ago, in HTML5, they don't conform to some std or dtd anymore whereas in html4 I think that was still necessary? at least in html4 strict
gr33n7007h has joined #ruby
<shevy>
so that shows... nobody really loves XSLT anymore! nor XML! save for java ant
jconnolly has joined #ruby
<workmad3>
well, html4 wasn't XML anyway
<certainty>
shevy: hehe, i mean you shouldn't put your focus on the parens. That's just a tiny bit of syntax. Maybe you can focus on the uniformity sexpressions introduce
<maasha>
hey, is there a method in Enumerable or such that shows the number of iterations performed?
drawingthesun has joined #ruby
<maasha>
apart from each_with_index
<shevy>
maasha what kind of iterations?
<ddv>
maasha: use a counter variable?
<shevy>
well each_with_index has that right
<workmad3>
maasha: hehe "is there any method for an enumerable that will tell me what iteration I'm on... apart from the method that does exactly that?"
davidhq has quit [Ping timeout: 264 seconds]
<workmad3>
maasha: if you want it for an arbitrary enumerator, there's .with_index... e.g. '.map.with_index {|item, index| ...}'
<havenwood>
maasha: `each.with_index(1)` if you want to start with 1
fryguy9 has joined #ruby
<maasha>
I expressed myself pretty badly I think. So lets say I have an enumerable object, and I yielded from it a couple of times. Now I would like to check how many times it has yielded. Does that make sense?
rodfersou has quit [Quit: leaving]
gr33n7007h has quit [Quit: WeeChat 1.1.1]
govg has joined #ruby
ponga has quit [Quit: Leaving...]
AlexRussia has joined #ruby
rodfersou has joined #ruby
hs366 has quit [Remote host closed the connection]
davidhq has joined #ruby
axisys has quit [Read error: Connection reset by peer]
axisys has joined #ruby
Aswebb_ has quit [Remote host closed the connection]
<romking>
question, let's say I have a strange log file with various type of ip addresses logged in it, let's say I wanted to match on a string that was something like "WAF-Ip-Address: 10.0.2.100" to get the ip address, what's the best way?
krisquigley has joined #ruby
Timgauthier is now known as timgauthier_away
<shevy>
romking many ways
<shevy>
regex would probably be most reliable
<shevy>
if your string is like that though, you can do .split(' ').last
timgauthier_away has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
iamninja has quit [Read error: Connection reset by peer]
iamninja has joined #ruby
willharrison has joined #ruby
jenrzzz has quit [Ping timeout: 244 seconds]
mac__ has joined #ruby
macoecho has joined #ruby
GnuYawk has joined #ruby
tcrypt has quit [Remote host closed the connection]
GaryOak_ has joined #ruby
bradleyprice has quit []
lennae has quit [Ping timeout: 255 seconds]
wicope has joined #ruby
kalusn has joined #ruby
snath has joined #ruby
_maes_ has joined #ruby
joonty has quit [Quit: joonty]
livathin_ has joined #ruby
joonty has joined #ruby
vim_shimm has quit [Ping timeout: 272 seconds]
Takle has quit [Remote host closed the connection]
kblake has joined #ruby
Takle has joined #ruby
livingstn has quit []
tlarevo has quit [Remote host closed the connection]
livathinos has quit [Ping timeout: 244 seconds]
pglombardo has joined #ruby
livathin_ has quit [Ping timeout: 255 seconds]
gsd has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
zarubin has joined #ruby
beneggett has joined #ruby
davejlong has joined #ruby
fibbel has joined #ruby
gsd has joined #ruby
rhllor has joined #ruby
allenn has joined #ruby
sanguisdex has joined #ruby
nettoweb has joined #ruby
davejlong has quit [Remote host closed the connection]
davejlong has joined #ruby
zarubin has quit [Ping timeout: 272 seconds]
mac__ has quit [Quit: This computer has gone to sleep]
macoecho has quit [Quit: This computer has gone to sleep]
macoecho has joined #ruby
mac__ has joined #ruby
cacocola has joined #ruby
vim_shimm has joined #ruby
meschi has quit [Read error: No route to host]
meschi has joined #ruby
riotjones has joined #ruby
agarie has quit [Remote host closed the connection]
bricker has joined #ruby
jottr_ has quit [Ping timeout: 252 seconds]
ghostpl_ has quit [Remote host closed the connection]
msgodf has quit [Remote host closed the connection]
riotjones has quit [Ping timeout: 245 seconds]
ghostpl_ has joined #ruby
bradleyprice has joined #ruby
mistermocha has joined #ruby
rippa has joined #ruby
cacocola has quit [Remote host closed the connection]
davidhq has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
djbkd has joined #ruby
nicolastarzia has quit [Remote host closed the connection]
tier_ has joined #ruby
Zimsky_ has joined #ruby
mistermocha has quit [Remote host closed the connection]
milesmatthias has joined #ruby
albedoa has joined #ruby
davejlong has quit [Remote host closed the connection]
izzol has joined #ruby
mistermocha has joined #ruby
<izzol>
Hi
davejlong has joined #ruby
<izzol>
Can someone please explain me what is for and when I should use Singleton Class? I'm trying to understand it but so far it's a mess :(
mistermo_ has joined #ruby
Volsus has joined #ruby
TheKruex has quit []
b0t00 has quit [Ping timeout: 250 seconds]
<izzol>
I already tried google but cannot find any nice explanation :(
<GaryOak_>
I'm sure you've heard, only use a singleton when you need one and only one instance of a class
bruno- has quit [Ping timeout: 256 seconds]
tier has quit [Ping timeout: 256 seconds]
<izzol>
GaryOak_: yes
djbkd has quit [Ping timeout: 250 seconds]
<shevy>
izzol perhaps if you make a game, and have one class GameEngine
<shevy>
and in that class you have lots of player objects
<GaryOak_>
something like logging in your code as well
Flowrhent has joined #ruby
momomomomo has quit [Quit: momomomomo]
<GaryOak_>
You only need a single instance to write to a log file
<izzol>
GaryOak_: but every self.something is a singleton class ?
julian-delphiki has quit [Ping timeout: 246 seconds]
aspiers has quit [Ping timeout: 244 seconds]
<workmad3>
shevy: which is great... right up until you actually end up allowing > 1 GameEngine because you're wanting to allow a server mode that runs several headless game engines for server-side multiplayer stuff :P
<GaryOak_>
Well Ruby has another concept of a singleton
milesmatthias has quit [Ping timeout: 264 seconds]
<shevy>
workmad3 we don't allow that
<workmad3>
izzol: in ruby, 'singleton class' is not a Singleton pattern (well, it kinda is a singleton, in that each object has one, and only one, singleton class)
mistermocha has quit [Ping timeout: 255 seconds]
allenn has quit [Remote host closed the connection]
<shevy>
you guys need to keep things really simple
znst has quit [Quit: ERC Version 5.3 (IRC client for Emacs)]
<workmad3>
shevy: I was more pointing out that for most singleton cases I've encountered, it doesn't take much thought to come up with a situation where it's not actually desirable to have a Singleton ;)
<shevy>
I actually think I never needed a singleton so far
aspiers has joined #ruby
<GaryOak_>
they are pretty rare
<workmad3>
shevy: most of the time I've encountered them, they've been a crappy wrapper around global variables
<shevy>
hehe
<GaryOak_>
what workmad3 said
<shevy>
I actually added "include Singleton" in mud objects... where there were unique items... I thought they should be singletons... for no particular reason
<workmad3>
people seem to go "Oh crap, global variables are bad? Well then, it's a good thing this isn't a global variable, it's a Singleton class!"
<shevy>
Thor's hammer!
triple_b has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<shevy>
can you actually use global variables in a semi-global variant? like you could... use a module, and an @ivar on that module, and access a method that returns that @ivar right?
<workmad3>
shevy: sure
<GaryOak_>
it's just a module level var
nux443_ has quit [Quit: leaving]
<workmad3>
shevy: you could do the same with a class ivar and access it through a class-method :P
paulcsmith has quit [Quit: Be back later ...]
<havenwood>
izzol: A Module if you're not instanciating. A Class if you are instanciating. Mixin Singleton if it's important it only be instanciated once.
Deele has quit [Ping timeout: 256 seconds]
<shevy>
havenwood sounds like a lord of the rings priest there
<shevy>
or like Gandalf
<GaryOak_>
WHAT
<shevy>
Gandalfwood!
<shevy>
izzol so as you can see... nobody uses them :D
Cache_Money has joined #ruby
_honning_ has quit [Ping timeout: 250 seconds]
aclearman037 has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
momomomomo has joined #ruby
<izzol>
shevy: :)
aclearman037 has joined #ruby
dfinninger has joined #ruby
<havenwood>
shevy: This is your realm, and the heart of the greater realm that shall be. The Third Age of C is ended, and the new age is begun; and it is your task to order its beginning and to preserve what must be preserved.
wohlert has left #ruby [#ruby]
<banister>
havenwood you messed with rust at all?
<havenwood>
banister: just poked at it, but no not really
senayar has quit [Remote host closed the connection]
<izzol>
but someone told me that I'm using singleton here: http://pastebin.com/zV7eFEHj when I'm calling this by Monit::Check.ping(host)
<helpa>
Hi izzol. We in #ruby would really appreciate it if you did not use pastebin during your time with us.
<helpa>
Pastebin is not good because it loads slowly for most, has ads which are distracting and has terrible formatting. Please use Gist (http://gist.github.com) or Pastie (http://pastie.org) instead. Thanks!
<havenwood>
banister: have you?
<banister>
havenwood no, but i'm looking for a new language to get my teeth into
stef204 has quit [Ping timeout: 256 seconds]
<c-c>
had a look at go?
<shevy>
izzol why? that is just a class method there
<GaryOak_>
Rust Rust Rust!
<shevy>
you can add lots more class methods to class Ping
rbennacer has quit [Remote host closed the connection]
<izzol>
hmm ok
joonty has quit [Quit: joonty]
<shevy>
the reason people like class methods is because it can do a lot for readable code. Like: Monster.create :goblin
<shevy>
though you could do Goblin.new too I guess :P
quimrstorres has quit [Remote host closed the connection]
nicolastarzia has joined #ruby
banister has quit [Read error: Connection reset by peer]
sevvie has joined #ruby
RegulationD has quit [Remote host closed the connection]
quimrstorres has joined #ruby
<havenwood>
banister: i've been enjoying crystal-lang. it's different enough from Ruby to be exciting but familiar enough i feel productive.
<shevy>
things may be easier to remember though... Ftp.connect to: 'www.ruby.com'
banister has joined #ruby
<totimkopf>
hehe
nicolastarzia has quit [Read error: Connection reset by peer]
<totimkopf>
what itch does crystal scratch? a ruby-like language that can be compiled?
nicolastarzia has joined #ruby
<shevy>
I guess so. It promises to be FAST
<izzol>
My problem is that I want to send "hosts" to the class method or instance method (not sure which one yet). Then that method will check if host is Up or Down by Ping module. In that case it's better to have instance or class?
<shevy>
they may well obsolete mruby!
<totimkopf>
Crystal On Rails
<totimkopf>
\o/
lemur has joined #ruby
<totimkopf>
sounds almost like a drug
<izzol>
As I understand instance will create new object for each host?
<izzol>
and class?
jaequery has joined #ruby
christiandsg has quit [Remote host closed the connection]
<havenwood>
totimkopf: a really nice stdlib is forming up. macros. no vm startup time. some neat syntax. etc.
<helpa>
Hi jhass. We in #ruby would really appreciate it if you did not use pastebin during your time with us.
<helpa>
Pastebin is not good because it loads slowly for most, has ads which are distracting and has terrible formatting. Please use Gist (http://gist.github.com) or Pastie (http://pastie.org) instead. Thanks!
<jhass>
this for example
<jhass>
!gist
<helpa>
http://gist.github.com - Put your codes online with pretty syntax highlighting and the ability to embed it into other pages.
<jhass>
or this
quimrstorres has joined #ruby
<jhass>
and so on
bim has quit [Remote host closed the connection]
doodlehaus has joined #ruby
cacocola has quit [Remote host closed the connection]
Megtastique has quit []
jottr_ has joined #ruby
ninjs has joined #ruby
sephilix has quit [Ping timeout: 250 seconds]
nateberkopec has joined #ruby
beneggett has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<romking>
say I have a log file, say an access log file, and I want to count all of the occurances of ip addresses in it, what's an easy ruby way to do that?
<baweaver>
A beaver is never early, and never late. He appears precisely when he means to.
<baweaver>
psuedo code
smcquaid has joined #ruby
<jhass>
more like replacements = rules.map {|var, rule| ["##{var}#", rule.dup] }; replacements while replacements.values.any? {|rule| rule.gsub!(...) } I guess
<baweaver>
ip_file.lines.select { |line| line =~ /\d{3}\.\d{3}\.\d{3}\.\d{3}\/ }
bMalum has quit [Quit: bMalum]
mleung has joined #ruby
MatthewsFace has joined #ruby
Juanchito has quit [Quit: Connection closed for inactivity]
<KrzaQ>
It doesn't *have* to be a one-liner :P
<baweaver>
a more proper ip regex can be used
<jhass>
KrzaQ: in IRC ; are newlines :P
chinmay_dd has quit [Quit: Leaving]
<KrzaQ>
good point
yqt has joined #ruby
<baweaver>
buuuut I don't want to look that RFC nightmare thing up.
<jhass>
that problem would be a good coding challenge actually
sevvie has quit [Ping timeout: 264 seconds]
<romking>
well I am asking if the log file has 2 thousand entries, and there's 20-0 uniq ips in there, but all randomly accessed, I want to get a count of each
doodlehaus has quit []
rubie has joined #ruby
<KrzaQ>
is .dup the same as .clone?
ghr has quit [Ping timeout: 256 seconds]
<baweaver>
romking: then put a #length on the end of there
<rubie>
no they are not the same
<rubie>
but they do similar things
triple_b has joined #ruby
DEA7TH has joined #ruby
<baweaver>
you're selecting all lines with an ip in there, which gives an array of all matches.
__main__ has joined #ruby
JoshGlzB_ has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<romking>
actually baweaver I am doing
<baweaver>
Now if you want to rip out the IPs on the other hand, use capture groups
<romking>
chunk.each_line do |line|
<romking>
if line =~ /CF-Connecting-IP: (\d+.\d+.\d+.\d+)/
<jhass>
KrzaQ: iirc .clone is supposed to make a deep copy and .dup a shallow one, the default implementations from Object both make a shallow one though
<romking>
end
<romking>
end
<baweaver>
stio
<baweaver>
stop
<baweaver>
gist it
mac__ has quit [Quit: This computer has gone to sleep]
macoecho has quit [Quit: This computer has gone to sleep]
cacocola has joined #ruby
<jhass>
KrzaQ: there were some differences in how .frozen? is transferred but I can never remember those
<baweaver>
romking: gist.github.com
<rubie>
is there a method to call .each but start at index 1 instead of 0
<jhass>
and I think even Array#clone and Hash#clone are still shallow
<crowell>
irb(main):009:0> a.uniq.each{|i| p a.count(i)}
<crowell>
1
<crowell>
2
<crowell>
1
<crowell>
=> [1, 3, 2]
<baweaver>
avoid bang methods unless you really need to use them, makes a mess
reset has joined #ruby
<jhass>
crowell: /topic
<crowell>
sry
noname1 has quit [Ping timeout: 255 seconds]
<baweaver>
jhass: any reason on it or just an alias?
<jhass>
just an alias and shorter to type
<baweaver>
fair enough
cacocola has quit [Remote host closed the connection]
<romking>
nice
<romking>
thanks!
<jhass>
.map over .collect for much the same reason really
reset has quit [Client Quit]
<baweaver>
map over collect and reduce over inject because I've used too much JS / OCaml
<baweaver>
or foldL from too much Haskell :D
davidhq has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
Crazy_Atheist has joined #ruby
spiderbyte has quit [Ping timeout: 245 seconds]
<shevy>
well you save more in map vs. collect, than reduce vs. inject
The_Phoenix has quit [Read error: Connection reset by peer]
<baweaver>
I still think F# and Scala are effectively OCaml / SML anyways.
ndrei has joined #ruby
<jhass>
I actually .inject over .reduce. Mostly because used that way, if I had to argue I'd make something up about not all inject usecases reducing a set of values to a single one
naftilos76 has quit [Read error: Connection reset by peer]
<jhass>
KrzaQ: you can extract rx out of the loop
<KrzaQ>
hm, true
StephenOTT has quit [Read error: No route to host]
musashi1 has joined #ruby
iliketurtles has joined #ruby
<KrzaQ>
I try not to litter the scope with useless variables
<jhass>
you can do str = v.gsub directly
<jhass>
I'd also refrain from k,v in actual code, variable, rule seems better
huddy has quit [Quit: Connection closed for inactivity]
nicolastarzia has joined #ruby
Dreamer3 has joined #ruby
<jhass>
and you don't actually need to recreate rule_changes all the time, after all we cloned the rule in order to own it and thus can reasonably call .gsub! on it
<jhass>
which means you can turn your map into a values.each do |rule|
rrichardsr3_away has quit [Quit: Textual IRC Client: www.textualapp.com]
mac__ has joined #ruby
macoecho has joined #ruby
<jhass>
in that case I'd go with .each_index
<yxhuvud>
I'd go with .sort
<jhass>
yxhuvud: nope, that's quicksort not bubblesort :P
<yxhuvud>
jhass: that is almost always a feature.
<jhass>
.size.times do |i| is also a common idiom
Mia has joined #ruby
Mia has joined #ruby
<jhass>
yxhuvud: the only implementations of bubble sort are educational, at least that's what I want to believe
milesmatthias has joined #ruby
<yxhuvud>
jhass: you are not cynical enough :P
maciejczyzewski has joined #ruby
<jhass>
I'm still young
bim has quit [Remote host closed the connection]
<jhass>
gotta use that time
hpoydar has quit [Remote host closed the connection]
<crowell>
why would you want bubble sort over qsort/
<jhass>
because you came up with it yourself and feel smart that you invented a sorting algorithm
<crowell>
you can make ruby do a stable sort with something like "sort_by.with_index { |x, idx| [x, idx] }"
maciejczyzewski has quit [Client Quit]
stevechiagozie has quit [Quit: Computer has gone to sleep.]
JoshGlzBrk has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<yxhuvud>
crowell: well, maybe you want to heat your building or something.
gfawcettpq has quit [Ping timeout: 244 seconds]
mjuszcza_ has quit []
krisquigley has joined #ruby
startupality has quit [Quit: startupality]
Zai00 has quit [Quit: Zai00]
startupality has joined #ruby
bim has joined #ruby
wallerdev has quit [Quit: wallerdev]
hpoydar has joined #ruby
cacocola has joined #ruby
krisquigley has quit [Ping timeout: 255 seconds]
<rubie>
hi all: im a little confused about the difference between integers and arrays. If i create a variable set to an array and modify the original array the variable i set to that array changes too, however thats not the case with integers, here is an example....https://gist.github.com/anonymous/161f2b3aec88c548fc91
agarie_ has quit [Remote host closed the connection]
joe_meade has quit [Remote host closed the connection]
cacocola has quit [Remote host closed the connection]
bluOxigen has quit [Ping timeout: 252 seconds]
<Sou|cutter>
what if you did array += [5] instead of <<
<Sou|cutter>
= is an assignment of a variable, << is an operator that modifies the existing variable
<rubie>
ahh
Zai00 has joined #ruby
zorak8 has quit [Quit: Leaving]
mistermocha has joined #ruby
<Sou|cutter>
also if you really want a dupe, there's a dup method
symbol_ has joined #ruby
<rubie>
ya i used that yesterday
robbyoconnor has quit [Ping timeout: 250 seconds]
<rubie>
still messing learning about this tho
momomomomo has quit [Quit: momomomomo]
<rubie>
thanks
<Sou|cutter>
no problem
zenith_ has joined #ruby
sevvie has quit [Ping timeout: 244 seconds]
mjuszczak has joined #ruby
<jhass>
rubie: it helps to make the differences between variables and objects clear
<jhass>
variables are references to objects
<rubie>
what do you mean by that
mistermocha has quit [Ping timeout: 256 seconds]
<jhass>
the only way to change a variable is the equal sign =
greenbagels has joined #ruby
<rubie>
ok
quimrstorres has quit [Remote host closed the connection]
<jhass>
a = 1; a is a reference to the object 1 of class Fixnum; a = "foo"; now a is a reference to the object "foo" of type String. The variable a was changed, the referenced objects were not
quimrstorres has joined #ruby
nettoweb_ has joined #ruby
aswen has joined #ruby
StephenOTT has joined #ruby
<jhass>
things like +=, -=, /=, *=, ||=, &&= are syntax sugar, for the first part they expand to a = a + b, a = a * b etc, a ||= b expands to a || a = b, a &&= b expands to a && a = b
zenith_ has quit [Ping timeout: 252 seconds]
chridal has quit [Ping timeout: 272 seconds]
<jhass>
so it's really just a = b again, the only way to change a variable is the assignment
<jhass>
everything else changes the referenced object
<jhass>
(or returns a new one)
quimrstorres has quit [Read error: Connection reset by peer]
<weaksauce>
a5i look at upto and downto as well
quimrstorres has joined #ruby
<Sou|cutter>
good explanation
chrishough has joined #ruby
nettoweb has quit [Ping timeout: 265 seconds]
fakam has joined #ruby
pdoherty has joined #ruby
O_the_Del has joined #ruby
Lewix has quit [Remote host closed the connection]
storagedragon has joined #ruby
<fakam>
Hello, http://repl.it/gZr/6 <-- i have a ruby script but it prints out nil when trying to case a array. Can I get some help?
<Sou|cutter>
I feel like it takes experience before object/reference becomes intuitive, though. It'll come
<jhass>
yeah, sure
<fakam>
Thanks
<apeiros>
fakam: that's not how case/when works
O_the_Del has left #ruby [#ruby]
DEA7TH has quit [Ping timeout: 244 seconds]
<apeiros>
fakam: your code causes ruby to evaluate the following in e.g. your first when: `users.include?("admin") === choice`
<fakam>
How does it work?
<apeiros>
fakam: use if/elsif for this kind of construct
<fakam>
okay
<apeiros>
though your conditions don't seem to make much sense anyway…
timonv has quit [Ping timeout: 250 seconds]
<apeiros>
users.include?("admin") is a tautology. you set users to ["admin", "moderator", "builder"]. it's already defined that it will include "admin"
<bradland>
if your usernames are a static list, there's no point in looking up against an array
wallerdev has joined #ruby
<bradland>
even if Array#include? did return the result
djbkd has quit [Remote host closed the connection]
bruno- has quit [Quit: Lost terminal]
dstarh has joined #ruby
nicolastarzia has quit [Remote host closed the connection]
DerisiveLogic has quit [Ping timeout: 250 seconds]
<fakam>
Ahh
<fakam>
noobs
symbol__ has joined #ruby
Volsus has joined #ruby
stevechiagozie has joined #ruby
rocknrollmarc has quit [Ping timeout: 255 seconds]
arturhoo has quit [Ping timeout: 256 seconds]
Soda has joined #ruby
deol has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
bruno- has joined #ruby
arturhoo has joined #ruby
symbol_ has quit [Ping timeout: 265 seconds]
Aswebb_ has joined #ruby
sevvie has joined #ruby
<shevy>
boobs?
quimrstorres has joined #ruby
DerisiveLogic has joined #ruby
asterite has joined #ruby
Sirupsen has quit [Ping timeout: 250 seconds]
asterite has left #ruby [#ruby]
<centrx>
roobs
deol has joined #ruby
aswen has joined #ruby
cfengineers has joined #ruby
baweaver has joined #ruby
StephenOTT has quit [Quit: StephenOTT]
<ddv>
troops
<bradland>
hoops!
<ddv>
i'm out of words
<storagedragon>
roots the noobs boobs troops in hoops?
Filete has joined #ruby
d10n-work has joined #ruby
baweaver has quit [Remote host closed the connection]
sevvie has quit [Ping timeout: 256 seconds]
<atmosx>
aloha
ndrei has quit [Ping timeout: 272 seconds]
<atmosx>
shevy: what are you up to now, work or study?
deol has quit [Read error: Connection reset by peer]
lorn has quit [Ping timeout: 252 seconds]
niftylettuce has joined #ruby
<shevy>
atmosx right now we have easter holidays for 2 weeks, then I have 3 exams ("advanced immunology and allergy", "basic technical chemistry" and "sustainable ecology")
<atmosx>
I'm gonna crash to bed. later all
<atmosx>
sustainable ecology hahaha
<atmosx>
awesome :-P
<shevy>
hehe
yh has quit [Ping timeout: 256 seconds]
mistermo_ is now known as mistermocha
nfk|laptop has joined #ruby
<atmosx>
night and have fun in your vacations! :-)
<shevy>
eh just 3.0 ECTS but what I memorize there will be useful for other exams lateron in agritechn/biotech
<shevy>
cya
baweaver has joined #ruby
baweaver has quit [Remote host closed the connection]
<GaryOak_>
I sucked at chemistry
lorn has joined #ruby
Cache_Money has quit [Quit: Cache_Money]
<GaryOak_>
Good luck shevy
CpuID has joined #ruby
Volsus has quit [Quit: Leaving]
<shevy>
I do too, I also hate it but there isn't quite a good way around it. My biggest gripe with technical chemistry is that it is based on math, so the questions will involve a lot of math
<GaryOak_>
that sounds gross
baweaver has joined #ruby
<shevy>
yeah
<GaryOak_>
Chemistry just doesn't make any sense to me!
<GaryOak_>
and 3 sig fig
Volsus has joined #ruby
mac__ has quit [Quit: This computer has gone to sleep]
macoecho has quit [Quit: This computer has gone to sleep]
sevvie has joined #ruby
<shevy>
well basic chemistry is ok
mac__ has joined #ruby
macoecho has joined #ruby
nicolastarzia has joined #ruby
<shevy>
but the examples are like, you need to finish some part, get some data out of that, then continue with that for the other part of the same questions about 2 times. so if you make a mistake early on, or can not solve, you have 0 points there
<GaryOak_>
:(
yh has joined #ruby
<shevy>
what I don't quite understand is why we can't use computers
<baweaver>
or notes, or books, or resources in general
chridal has quit [Ping timeout: 265 seconds]
<baweaver>
considering every sane job lets you in the real world.
Cache_Money has joined #ruby
<bradland>
considering every sane job benefits from use of computers in the real world
<GaryOak_>
only on an exam is speed valued more than correctness
<shevy>
for instance, on the commandline for Glucose, I just do "molmass C6H12O6" and it yields me 180.155 u (g / mol) in like for a total of 4 seconds that it takes me to type the command + formula
<baweaver>
GaryOak_: I don't know about that
<baweaver>
Have you SEEN most large software projects?
<shevy>
but with a classical calculator, man... it takes me like ... half a minute. and I can typo
<GaryOak_>
they want speed and correctness
<rubie>
shevy what is your end goal with your education?
<baweaver>
speed is definitely above correctness far more often than you dare think possible.
Kricir has quit [Remote host closed the connection]
quimrstorres has quit [Remote host closed the connection]
<shevy>
rubie oh man, that's like lightyears off
<GaryOak_>
well yeah, not for mixing chemicals though
Elite6809 has quit [Quit: WeeChat 1.1.1]
<GaryOak_>
or fabricating medicine
quimrstorres has joined #ruby
<baweaver>
want to know a horrifying little secret?
ndrei has joined #ruby
<baweaver>
Every job cuts corners somewhere.
<shevy>
rubie what I myself want to do does not really exist in this form - it would be a mixture of gene therapy, biotechnology and synthetic biology
<shevy>
nah not really... as long as the simulations aren't precisely how things would be how a real cell works, it's not really that useful
<baweaver>
Go the SF way, if the job you want doesn't exist then make it.
<shevy>
take bioinformatics - it's essentially math and big data crunching. I have no interest to pour years into statistics, I care about the end result
Jiyuhen has quit [Ping timeout: 250 seconds]
Jiyuhen has joined #ruby
MatthewsFace has joined #ruby
<baweaver>
I'm in the nice little niche that just happens to grok statistics naturally. Really I don't think it'd take years though
centrx has quit [Remote host closed the connection]
fakam has quit [Quit: Leaving]
x1337807x has joined #ruby
x1337807x has quit [Client Quit]
jenrzzz has quit [Ping timeout: 256 seconds]
graydot has joined #ruby
roolo has joined #ruby
aswen has quit [Ping timeout: 248 seconds]
JDiPierro has quit [Remote host closed the connection]
<agarie>
when you run a Ruby program, it creates a new process
<agarie>
if you put the env var in that line, the spawned process will be able to access it
<frem>
Is there a way to access env vars from ruby without putting them in the same line as the command?
<eam>
frem: FOO=bar isn't an environment variable
djbkd has joined #ruby
<eam>
export FOO puts the bash variable foo into the environment
<eam>
export FOO=bar # env var FOO
Zamyatin has quit [Client Quit]
<eam>
otherwise FOO=bar is just a bash language variable
<eam>
bash overlaps environment and local interpreter variables in the same namespace without clearly distinguishing between them
elaptics_away is now known as elaptics
<frem>
Ah, like `set -x` in fish.
n_blownapart has joined #ruby
<frem>
That makes sense. Thanks!
<eam>
FOO=bar some_command doesn't set a local bash variable OR set an environment variable in the current process -- rather it sets it in the environment of the child only
martinbmadsen has joined #ruby
wottam has joined #ruby
__main__ has quit [Read error: Connection reset by peer]
rbennacer has quit [Remote host closed the connection]
mac__ has quit [Quit: This computer has gone to sleep]
macoecho has quit [Quit: This computer has gone to sleep]
rbennacer has joined #ruby
macoecho has joined #ruby
mac__ has joined #ruby
djbkd has quit [Ping timeout: 255 seconds]
x1337807x has joined #ruby
lordkryss has quit [Quit: Connection closed for inactivity]
freerobby has quit [Quit: Leaving.]
baweaver has quit [Remote host closed the connection]
ghostpl_ has joined #ruby
wottam has quit [Ping timeout: 250 seconds]
djbkd has joined #ruby
bline79 has joined #ruby
yfeldblum has joined #ruby
havenwood has quit []
<bline79>
let's say I have a list of names, how do I repeatedly put that list of names infinitely? names = [ "Fred", "Bob", "Jim" ] for example.
psy_ has quit [Ping timeout: 250 seconds]
<Radar>
bline79: while true
<Radar>
bline79: I think you might be able to figure out the rest :)
martinbm1dsen has quit [Ping timeout: 252 seconds]
zacts has quit [Quit: ERC Version 5.3 (IRC client for Emacs)]
thumpba has quit [Ping timeout: 264 seconds]
beneggett has joined #ruby
nettoweb has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
beneggett has quit [Client Quit]
<bradland>
any comments on the maturity/preparedness of shoes4 for simple apps?
RegulationD has quit [Remote host closed the connection]
<bradland>
i want/need to wrap a command line tool or two for some new users who are _compeltely_ lost on the command line
albedoa_ has quit [Ping timeout: 272 seconds]
avril14th has quit [Ping timeout: 255 seconds]
palms has quit [Ping timeout: 264 seconds]
Delsol has joined #ruby
<jhass>
the actual UI from what I've seen looks too unpolished for me, which is why I never really investigated it
dling has quit []
<bradland>
yeah, it's pretty soft there.
x1337807x has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<bradland>
i'm going to end up with a file browser and a few checkboxes with a "run" button
<bradland>
bleh
<jhass>
I yet have to play with them, but the ruby-gir bindings look pretty solid
felltir has quit []
<bradland>
may just go with a curses app! ha
<jhass>
and actually recent tk stuff doesn't look too bad either if you apply the right tricks
<Delsol>
Stupid question. Activerecord is repeating the same exact sql queries dozens of times sometimes. Any way to make it less retarded? Or is it most likely retarded code?
olekenneth has joined #ruby
<jhass>
Delsol: the later tbh
Stalkr has quit [Changing host]
Stalkr has joined #ruby
<jhass>
missing .includes or so
nobitanobi has joined #ruby
<bradland>
Delsol: AR referrs to this as eager loading associations.
<nobitanobi>
Can group_by be used with two fields?
<Delsol>
So if Im loading like sale.employee.fullname for each sale..... It does a select * from employees where ID = 7 for example, for each sale in a list....
<bradland>
look for the assignment to sale
<bradland>
it should be some kind of Sale.where(foo)
<bradland>
or something
<bradland>
have a look at the link I posted for eager loading associations
Aswebb_ has quit []
Flowrhent has quit [Quit: Flowrhent]
<bradland>
nobitanobi: you'll have to be more specific. are you referring to Enumerable#group_by?
gluten_hell_ has quit [Quit: Computer has gone to sleep.]
macoecho has joined #ruby
pdoherty has joined #ruby
mac_ has joined #ruby
aclearman037 has quit [Quit: I'm out!]
spider-mario has quit [Ping timeout: 244 seconds]
<bradland>
Enumerable#group_by groups by the result of the block passed to it, so if you are passing in an object, you can assemble a string key, as if you were building a cache key.
<Delsol>
one possible solution I had was to load all the employees, shove all that crap in an array.... Then look it up in memory from the array... But that's extra code to write, etc.... Multiply by a zillion different things equals project never gets finished....
<Delsol>
But your saying I can just include all the stuff I need, grab it once, no major extra code?
<bradland>
Delsol: dude
<bradland>
have you even looked at the link I posted?
hpoydar has quit [Remote host closed the connection]
<bradland>
eager
<bradland>
loading
<bradland>
associations
blackmesa has quit [Ping timeout: 256 seconds]
<bradland>
it's less than two pages of docs
hpoydar has joined #ruby
<Delsol>
Yeah... I looked at it... Just confirming, that's going to solve my issues?
<bradland>
Yes. It will solve your issue.
<bradland>
The queries you're seeing are called N + 1 queries
<Delsol>
Badass.
<bradland>
understanding why is important though
sgambino has quit [Remote host closed the connection]
<bradland>
there must be a relationship between sales and employees
<bradland>
when you call sale.employee, you're telling activerecord to follow that association
<bradland>
so it triggers a query
pengin has quit [Remote host closed the connection]
<bradland>
your idea with the array where you stuff the data from before?
leafybasil has joined #ruby
<bradland>
that's kind of what includes does, only smarter
<bradland>
it tells activerecord to query the relation at the time the main query is executed
sevvie has quit [Ping timeout: 265 seconds]
pengin has joined #ruby
codeFiend has joined #ruby
<bradland>
that way it any time it encounters sale.employee.fullname (or whatever), the employee data is *eager loaded*
DerisiveLogic has quit [Ping timeout: 272 seconds]
robbyoconnor has joined #ruby
hpoydar has quit [Remote host closed the connection]
gr33n7007h has joined #ruby
<jhass>
was *already* eagerly loaded
hpoydar has joined #ruby
<bradland>
those who do not understand ActiveRecord are doomed to abuse it
beneggett has joined #ruby
tus has joined #ruby
<jhass>
you mean the average rails user :P
<bradland>
haha
<wallerdev>
what do you guys think of python
pengin_ has joined #ruby
<jhass>
wallerdev: we think you want to troll
<jhass>
:P
<wallerdev>
i'm no troll :p
<wallerdev>
might end up having to use it soon
<bradland>
python is great
dcarper has quit [Remote host closed the connection]
pengin has quit [Remote host closed the connection]
<bradland>
get used to callbacks in many cases instead of blocks
<wallerdev>
i've dabbed a bit in it and it seems like ruby but worse
<bradland>
lol
<wallerdev>
does it have anonymous callback methods?
<Delsol>
im not the main developer, I'm a php guy normally... Write my own sql, etc.... In this instance, I'm finding bugs, usability issues, etc... And trying to make it usable on less than 3.2ghz hardware....
bim has joined #ruby
jonr22 has joined #ruby
Ove_ has quit [Ping timeout: 244 seconds]
<agarie>
that's ok Delsol
<agarie>
the link bradland sent you (RailsGuides) is a wonderful way to gain familiarity with the various parts of Rails
bim has quit [Remote host closed the connection]
<bradland>
wallerdev: it has lambda functions
<bradland>
i've not used it enough to compare it to blocks though
<bradland>
i'm kind of head over heels for ruby
<Delsol>
In my opinion, gtk drawing an array of text boxes and checkboxes should be the slow part... Not mysql and activerecord.... Five hundred rows shouldn't take 90 bloody freaking seconds, heh.
<bradland>
agree 100%
<bradland>
sounds like someone really screwed the pooch on that app
bim has joined #ruby
<agarie>
there are lambdas, but most pythonists I know (my last job was in a Python shop) hate them and prefer to write a method and simply use its name
<wallerdev>
yeah
Sawbones_ has joined #ruby
<wallerdev>
thats kind of what ive heard too
<agarie>
There are two things that I *really* like in Python: its module system and the list comprehension syntax
zenith_ has joined #ruby
<wallerdev>
i find list comprehensions hard to read :|
<bradland>
Delsol: if you're familiar with SQL, you'll find ActiveRecord's .to_sql method useful
<bradland>
anywhere you see an assignment from an ActiveRecord model, you can drop that code in to a Rails console and add .to_sql to the end
bim has quit [Remote host closed the connection]
<bradland>
and see what kind of SQL it would generate
Notte has joined #ruby
<agarie>
you'd be in trouble reading my last job's codebase, wallerdev
<wallerdev>
haha
<wallerdev>
i might end up doing php to python conversion :|
<agarie>
oh god
jonr22 has joined #ruby
<wallerdev>
moving to a lesser evil lol
mac_ has quit [Quit: This computer has gone to sleep]
<bradland>
Delsol: most ActiveRecord performance issues are related to failure to generate indexes, and poorly formed ActiveRecord queries
macoecho has quit [Quit: This computer has gone to sleep]
<jhass>
wallerdev: my experience with list comprehensions is that if you're new to python they're hard to read, then they become easy and if you stop doing python for a while they become hard again
<jhass>
super useful comment, I know
bim has joined #ruby
icebourg has quit []
jconnolly has quit [Ping timeout: 256 seconds]
<wallerdev>
haha :)
Ove_ has joined #ruby
<agarie>
I started reading comprehensions like a mix of #map and #select :P
<jhass>
what I wanted to say there's a click moment to them, like with rubys blocks perhaps
zenith_ has quit [Remote host closed the connection]
Dude007 has quit [Remote host closed the connection]
<agarie>
yeah, I felt the same, jhass
<agarie>
it gets really natural after you've done it for a while
<wallerdev>
gotcha
<wallerdev>
well
<wallerdev>
i'll keep you guys updated
<wallerdev>
:p
iamjarvo has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
wildroman2 has joined #ruby
kyrylo_ has joined #ruby
agarie has quit []
adriancb has joined #ruby
kyrylo has quit [Ping timeout: 265 seconds]
iliketur_ has joined #ruby
zarubin has joined #ruby
<bradland>
oh man, this guy
<bradland>
hilarious
baweaver has quit [Remote host closed the connection]
kaleido has joined #ruby
<bradland>
says overclocking his server made performance tolerable
<rager>
lol
<rager>
I'll believe it
<bradland>
scary part is, someone is paying for this
<rager>
and by that... I mean that now that he thinks his server is faster due to overclocking, he can tolerate it melting itself into a pool of slag by next tuesday
<wallerdev>
o.o
<wallerdev>
if your server is under enough load to necessitate overclocking you probably need another server lol
iliketurtles has quit [Ping timeout: 264 seconds]
<rager>
if your server is under enough load that you think that overclocking could help, you're probably not going to own that server for very long after you overclock it
<wallerdev>
:p
kyrylo_ is now known as kyrylo
JimmyNeutron has quit [Read error: Connection reset by peer]
krisquigley has joined #ruby
phexydelic has joined #ruby
adriancb has quit [Remote host closed the connection]
Chris- is now known as Soliah
rajeshchawla has quit [Remote host closed the connection]
zarubin has quit [Ping timeout: 265 seconds]
Filete has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
MrSamuel has joined #ruby
krisquigley has quit [Ping timeout: 250 seconds]
gluten_hell_ has joined #ruby
jimms has quit [Remote host closed the connection]
baweaver has joined #ruby
michael_mbp has quit [Excess Flood]
iamjarvo has joined #ruby
quimrstorres has quit [Remote host closed the connection]
riotjones has joined #ruby
x1337807x has joined #ruby
michael_mbp has joined #ruby
Notte has quit [Remote host closed the connection]
basiclaser has quit [Quit: Connection closed for inactivity]
baweaver has quit [Remote host closed the connection]
OtterCoder has quit [Remote host closed the connection]
macoecho has joined #ruby
rim-k has joined #ruby
<rim-k>
hello*
baweaver has joined #ruby
Ove_ has quit [Ping timeout: 256 seconds]
relix has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
freerobby has joined #ruby
<jhass>
hi
gluten_hell_ has quit [Ping timeout: 244 seconds]
pengin_ has quit [Remote host closed the connection]
<rim-k>
I have a quick question
riotjones has quit [Ping timeout: 244 seconds]
adriancb has joined #ruby
Zai00 has quit [Quit: Zai00]
<rim-k>
say I ran "bundle install --without xxxx yyyy zzzz"
Spami has quit [Quit: This computer has gone to sleep]
<rim-k>
and I want to start from scratch
<rim-k>
i.e. regenerate my GemFile
<jhass>
rm .bundle/config
<rim-k>
oh ok
<jhass>
you don't generate the Gemfile, you write it
<rim-k>
that easy? :)
c355E3B has joined #ruby
<rim-k>
I mean the GemFile.lock
<rim-k>
is that the same?
<jhass>
well, that you could just delete too, but what's your actual issue?
macoecho has quit [Ping timeout: 248 seconds]
Delsol has quit [Quit: Page closed]
adriancb has quit [Remote host closed the connection]
iceden has quit [Read error: Connection reset by peer]
Lewix has joined #ruby
sevvie has joined #ruby
pengin has joined #ruby
tvw has quit [Remote host closed the connection]
jlast has quit [Remote host closed the connection]
baweaver has quit [Remote host closed the connection]
adriancb has joined #ruby
adriancb has quit [Remote host closed the connection]
OtterCoder has joined #ruby
snath has left #ruby ["Leaving"]
<Radar>
rim-k: Gemfile.lock is generated by Bundler.
dfinninger has quit [Remote host closed the connection]