sdouglas has quit [Remote host closed the connection]
dingus_khan has joined #ruby-lang
toastynerd has quit [Remote host closed the connection]
sdouglas has joined #ruby-lang
kalehv has quit [Remote host closed the connection]
<zenspider>
cored: still there?
kalehv has joined #ruby-lang
sdouglas has quit [Ping timeout: 264 seconds]
dorei has quit []
kalehv has quit [Ping timeout: 252 seconds]
CaptainJet has quit []
patriciomacadden has quit [Remote host closed the connection]
patriciomacadden has joined #ruby-lang
prc has quit [Quit: Leaving.]
prc has joined #ruby-lang
toretore has quit [Quit: This computer has gone to sleep]
yubrew has joined #ruby-lang
patricio_ has joined #ruby-lang
noober3 has quit [Quit: Man who run behind car get exhausted]
toastynerd has joined #ruby-lang
patriciomacadden has quit [Ping timeout: 264 seconds]
yubrew has quit [Ping timeout: 264 seconds]
elliotec has quit [Remote host closed the connection]
joelroa has joined #ruby-lang
elliotec has joined #ruby-lang
elliotec has quit [Read error: Connection reset by peer]
elliotec has joined #ruby-lang
khaase has joined #ruby-lang
khaase has quit [Changing host]
khaase has joined #ruby-lang
joelroa has quit [Ping timeout: 264 seconds]
cnivolle has quit [Remote host closed the connection]
khaase has quit [Ping timeout: 265 seconds]
cnivolle has joined #ruby-lang
dik_dak has quit [Quit: Leaving]
shashin has quit [Quit: shashin]
Raycaster has quit [Ping timeout: 244 seconds]
webgen has quit [Ping timeout: 240 seconds]
tkuchiki has quit [Remote host closed the connection]
cnivolle has quit [Ping timeout: 265 seconds]
lcdhoffman has quit [Quit: lcdhoffman]
hahuang65 has quit [Ping timeout: 240 seconds]
mbj has joined #ruby-lang
jcs222 has quit [Quit: leaving]
|jemc| has quit [Ping timeout: 240 seconds]
mbj has left #ruby-lang [#ruby-lang]
patricio_ is now known as patriciomacadden
itsraining has joined #ruby-lang
sdouglas has joined #ruby-lang
mehlah has quit [Quit: Leaving...]
seanlinsley has quit [Quit: …]
skade has quit [Quit: Computer has gone to sleep.]
lcdhoffman has joined #ruby-lang
jcs222 has joined #ruby-lang
jhass is now known as jhass|off
tkuchiki has joined #ruby-lang
shinnya has quit [Ping timeout: 265 seconds]
tedstriker has quit [Quit: Anti-Fraping status set.]
tedstriker has joined #ruby-lang
elliotec has quit [Remote host closed the connection]
elliotec has joined #ruby-lang
kalehv has joined #ruby-lang
brianpWins has quit [Quit: brianpWins]
vlad_starkov has quit [Remote host closed the connection]
mikecmpbll has quit [Quit: i've nodded off.]
yubrew has joined #ruby-lang
dingus_khan has quit [Remote host closed the connection]
cored has quit [Ping timeout: 240 seconds]
dingus_khan has joined #ruby-lang
yubrew has quit [Ping timeout: 240 seconds]
elliotec has quit [Remote host closed the connection]
kalehv has quit []
elliotec has joined #ruby-lang
musl has quit [Quit: WeeChat 0.4.3-dev]
Wardrop has joined #ruby-lang
fraterlaetus has quit []
kalehv has joined #ruby-lang
toastynerd has quit [Remote host closed the connection]
Tn6o has joined #ruby-lang
elliotec has quit [Remote host closed the connection]
elliotec has joined #ruby-lang
musl has joined #ruby-lang
RoxasShadowRS has joined #ruby-lang
<Wardrop>
What's the best way to determine whether a float has anything non-zero after the decimal? The best method I've found is `float.denominator == 1`; if true, the float is a whole number, otherwise it's fractional.
<Wardrop>
I need to do this so when I print "5.0" for example, it comes out as "5" and not "5.0". But if it's 5.1 or 5.56, I want to preserve what's after the decimal.
elliotec has quit [Remote host closed the connection]
elliotec has joined #ruby-lang
amerine has quit [Quit: Computer has gone to sleep.]
dingus_khan has quit [Remote host closed the connection]
<zenspider>
Wardrop: they're floats... you can barely even approximate what's after the decimal.
<zenspider>
how about float.to_i != float ... seems easier
simono has quit [Read error: Connection reset by peer]
elliotec has quit [Remote host closed the connection]
<Wardrop>
zenspider: That seems to work well. Thanks.
charliesome has quit [Read error: Connection reset by peer]
charliesome has joined #ruby-lang
bradcliffe has joined #ruby-lang
Cakey has joined #ruby-lang
kitak has quit [Remote host closed the connection]
joelroa has joined #ruby-lang
kitak has joined #ruby-lang
setmeaway has joined #ruby-lang
rickyrickyrice has joined #ruby-lang
rahul_j has joined #ruby-lang
khaase has joined #ruby-lang
rickyrickyrice has quit []
woollyams has joined #ruby-lang
zastern_ has quit [Quit: WeeChat 0.4.2]
zastern has joined #ruby-lang
khaase has quit [Ping timeout: 240 seconds]
amerine has joined #ruby-lang
yubrew has joined #ruby-lang
anannie has quit [Remote host closed the connection]
tenderlove has joined #ruby-lang
Barrin6 has joined #ruby-lang
yubrew has quit [Ping timeout: 240 seconds]
rickhull has joined #ruby-lang
marcdel has quit []
yfeldblum has quit [Ping timeout: 269 seconds]
marcdel has joined #ruby-lang
sdouglas has quit [Remote host closed the connection]
sdouglas has joined #ruby-lang
spinlock has quit [Quit: terminated!]
mykoweb has quit [Remote host closed the connection]
skade has joined #ruby-lang
Coincidental has quit [Remote host closed the connection]
ledestin has joined #ruby-lang
jtw has quit []
Cakey has quit [Ping timeout: 240 seconds]
phansch has joined #ruby-lang
Raycaster has joined #ruby-lang
woollyams has quit [Ping timeout: 252 seconds]
closer has quit [Ping timeout: 252 seconds]
closer has joined #ruby-lang
anannie has joined #ruby-lang
Mon_Ouie has joined #ruby-lang
yfeldblum has joined #ruby-lang
bradcliffe has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
TvL2386 has joined #ruby-lang
_ht has joined #ruby-lang
bradcliffe has joined #ruby-lang
chuck_ has joined #ruby-lang
chuck_ has left #ruby-lang [#ruby-lang]
sdouglas has quit [Remote host closed the connection]
sdouglas has joined #ruby-lang
marcdel has quit []
bradcliffe has quit [Ping timeout: 244 seconds]
sdouglas has quit [Ping timeout: 253 seconds]
toastynerd has joined #ruby-lang
Barrin6 has quit [Quit: Leaving]
yubrew has joined #ruby-lang
khaase has joined #ruby-lang
woollyams has joined #ruby-lang
caral has joined #ruby-lang
yubrew has quit [Ping timeout: 240 seconds]
khaase has quit [Ping timeout: 240 seconds]
x0f_ has joined #ruby-lang
x0f has quit [Ping timeout: 265 seconds]
marcdel has joined #ruby-lang
dbussink has quit [Ping timeout: 264 seconds]
Wardrop has quit [Quit: Wardrop]
dbussink has joined #ruby-lang
toastynerd has quit [Remote host closed the connection]
toastynerd has joined #ruby-lang
tenderlove has quit [Remote host closed the connection]
tenderlove has joined #ruby-lang
michd is now known as MichD
symm- has joined #ruby-lang
apeiros has quit [Remote host closed the connection]
apeiros has joined #ruby-lang
Coincidental has joined #ruby-lang
iliketurtles has joined #ruby-lang
[spoiler] has joined #ruby-lang
toastynerd has quit [Remote host closed the connection]
apeiros has quit [Ping timeout: 240 seconds]
rahul_j has quit [Quit: rahul_j]
woollyams has quit [Ping timeout: 252 seconds]
rahul_j has joined #ruby-lang
CaptainJet has quit []
elliotec has joined #ruby-lang
kalehv has quit [Remote host closed the connection]
caral has quit [Quit: caral]
vpretzel has quit [Ping timeout: 265 seconds]
arBmind has joined #ruby-lang
Mon_Ouie has quit [Ping timeout: 264 seconds]
mr-foobar has joined #ruby-lang
skade has quit [Quit: Computer has gone to sleep.]
amclain has quit [Quit: Leaving]
tbuehlmann has joined #ruby-lang
jcs222 has joined #ruby-lang
solars has joined #ruby-lang
yubrew has joined #ruby-lang
RickHull1 has joined #ruby-lang
khaase has joined #ruby-lang
vlad_starkov has joined #ruby-lang
yubrew has quit [Ping timeout: 240 seconds]
marcdel has quit []
dagobah has joined #ruby-lang
marcdel has joined #ruby-lang
bzalasky has quit [Remote host closed the connection]
elliotec has quit [Remote host closed the connection]
elliotec has joined #ruby-lang
bzalasky has joined #ruby-lang
centrx has quit [Quit: All this computer hacking is making me thirsty]
vlad_starkov has quit [Remote host closed the connection]
faces has quit [Ping timeout: 252 seconds]
kitak has quit [Remote host closed the connection]
kitak has joined #ruby-lang
ledestin has quit [Ping timeout: 252 seconds]
saarinen has joined #ruby-lang
lsegal has quit [Quit: Quit: Quit: Quit: Stack Overflow.]
<[spoiler]>
Gosh, does anyone here know why Rails behind Passenger takes so long to load? I know it kills the app after a while, but after I changed the Apache directives for Passenger it's still happening :(
shashin has joined #ruby-lang
shashin has joined #ruby-lang
<[spoiler]>
p.s: I work for a web hosting company (with cpanel, regretfully) and I'm asking for a client
iliketurtles has quit [Quit: zzzzz…..]
ledestin has joined #ruby-lang
<lianj>
wonder why anyone would use apache for rails
shashin has quit [Client Quit]
Coincidental has quit [Remote host closed the connection]
yfeldblu_ has joined #ruby-lang
yfeldblum has quit [Ping timeout: 265 seconds]
knu has quit [Ping timeout: 252 seconds]
knu has joined #ruby-lang
<TvL2386>
hi guys, I'm creating lots of tiny scripts/applications for all kinds of purposes. I'm not really sure how to manage it, but thus far I've always been creating a private gem for each of the scripts. I'm wondering if that is actually the way to go or if there some better approach. It seems that a gem is not really the same thing as an application.
jhass|off is now known as jhass
marcdel has quit []
<[spoiler]>
lianj: lmao, because it's a shared hosting environment, and the client's too big of a bitch to get a VPS :P
<[spoiler]>
TvL2386: As long as the approach suits you, why not.
apeiros has joined #ruby-lang
<[spoiler]>
I generally tend to put mine in ~/ruby/tools/<script directory>/bin/
yubrew has joined #ruby-lang
skade has joined #ruby-lang
<[spoiler]>
apeiros: you're a ruby virtuoso, so I'm hoping that at some point you suffered the incompetence that's Apache+Passenger :o Any idea why it kills the app pool after ~10 mins even though you've set it up not to :-)
yubrew has quit [Ping timeout: 240 seconds]
|jemc| has quit [Ping timeout: 244 seconds]
<jhass>
[spoiler]: I found #passenger to be surprisingly responsive (for the channel size)
<[spoiler]>
jhass: oh that exists?! I love you, thanks!
robmiller has joined #ruby-lang
vlad_starkov has joined #ruby-lang
tylersmith has quit [Remote host closed the connection]
tylersmith has joined #ruby-lang
ruby-lang162 has joined #ruby-lang
<apeiros>
[spoiler]: sorry, that combination works like a charm here
<apeiros>
so no, no experience with the issue you describe
joelroa has quit [Ping timeout: 252 seconds]
rahul_j has quit [Quit: rahul_j]
<apeiros>
might want to check the obvious suspects (aka error logs, both, apache and webapp)
kitak_ has joined #ruby-lang
kitak has quit [Read error: Connection reset by peer]
<TvL2386>
[spoiler], yeah it suits me, but maintaining gems is a lot more work than simply throwing a script in a directory. But on the upside: this approach kinda forces me to put it in a git repo and maintain dependencies the correct way
<ruby-lang162>
apologies if there is a channel more well suited for this type of question, but wondering about an issue I'm having with dynamically reloading a bundler context. There's a method Bundler.with_clean_env and I basically want to reload the gems specified in my Gemfile when there's an update to any versions or gems. could someone point me in the right direction?
tylersmith has quit [Ping timeout: 244 seconds]
dc5ala has joined #ruby-lang
mikecmpbll has joined #ruby-lang
toretore has joined #ruby-lang
havenwood has quit []
<[spoiler]>
I asked the question in #passenger :D
<TvL2386>
any of you guys familiar with ldap and following referrals?
vlad_starkov has quit [Remote host closed the connection]
rahul_j has joined #ruby-lang
kitak_ has quit [Read error: Connection reset by peer]
<zenspider>
rawr
kitak has joined #ruby-lang
<[spoiler]>
Why do they insist on friggin cpanel, this whole thing is eviiiiil
<[spoiler]>
apeiros: there aren't any errors, I tried looking there already :(
<zenspider>
evil?? please. it's software.
<[spoiler]>
zenspider: Yeah, good point... It *produces* evil :P
<[spoiler]>
It's so beyond evil
<[spoiler]>
jk. jk
<[spoiler]>
I just can't figure this out. It's like it ignores the configuration completely
anannie has quit [Remote host closed the connection]
amerine has quit [Quit: Computer has gone to sleep.]
skade has joined #ruby-lang
robbyoconnor has quit [Remote host closed the connection]
robbyoconnor has joined #ruby-lang
symm- has quit [Ping timeout: 240 seconds]
elia has joined #ruby-lang
joelroa has joined #ruby-lang
relix has joined #ruby-lang
yubrew has joined #ruby-lang
<yorickpeterse>
morning
<[spoiler]>
yo
workmad3 has joined #ruby-lang
hahuang65 has quit [Ping timeout: 265 seconds]
<ljarvis>
hi
woollyams has joined #ruby-lang
arBmind has joined #ruby-lang
canton7-mac has joined #ruby-lang
yubrew has quit [Ping timeout: 240 seconds]
joelroa has quit [Ping timeout: 240 seconds]
<ljarvis>
™
benlovell has quit [Ping timeout: 240 seconds]
<yorickpeterse>
( ´・‿-) ~ ♥
elliotec has quit [Remote host closed the connection]
Onixs has quit [Quit: Caught sigterm, terminating...]
<apeiros>
[spoiler]: sorry, at work
<apeiros>
ljarvis: solved your encoding woes?
woollyams has quit [Ping timeout: 252 seconds]
<ljarvis>
apeiros: yep!
<ljarvis>
well.. solved might not be the right word
<apeiros>
gave up?
<ljarvis>
but i dont have them anymore
<ljarvis>
na
bzalasky has quit [Remote host closed the connection]
<workmad3>
added .force_encoding("BINARY") ?
<ljarvis>
I force encoded and removed any chars that couldn't be transcoded into the new encoding
lewix has quit [Quit: Leaving...]
<workmad3>
heh
<apeiros>
ew :)
<apeiros>
transliteration would have been an idea…
<apeiros>
but well
<ljarvis>
I tried that too
<ljarvis>
but it didn't work out
<workmad3>
force to 8859-1 and then transcode to utf8 == no more encoding errors!
<apeiros>
fuck, I hate this task I have atm :(
<ljarvis>
and I couldn't be bothered to figure out why it wasn't working, this is the first time we've had this problem in the years we've been using this provider, so apparently our customers dont use weird encodings too often
<apeiros>
sanitize ancient data. it's already hard to test anyway and I don't get the time to actually write any sane tests :(
<ljarvis>
but, I've asked the provider to sort their shit out
<apeiros>
and it's lots of data, so most of the time I'm waiting…
cnivolle has joined #ruby-lang
<apeiros>
ljarvis: yeah, anything international not using unicode is batshitcrazy
* apeiros
has to work with BSC providers far too often, sadly (financial sector…)
<ljarvis>
i blame the germans
<lianj>
wut
<apeiros>
i blame the americans
<apeiros>
germans at least have äöü and so are at least somewhat aware of encoding issues.
<ljarvis>
i blame russia
<yorickpeterse>
hey
<ljarvis>
apeiros: it's a german provider :(
<yorickpeterse>
blame the computer
<toretore>
blame canada
<ljarvis>
i blame the computer for everything else
tylersmith has joined #ruby-lang
<ljarvis>
encoding is definitely the chinese fault
kitak has quit [Remote host closed the connection]
<yorickpeterse>
HA HA! My shit crashed
<yorickpeterse>
^ not something I'm often happy about
<ljarvis>
god i love vim
<yorickpeterse>
god damn race conditions are a PITA to track down
benlovell has joined #ruby-lang
kitak has joined #ruby-lang
bzalasky has joined #ruby-lang
francisfish has joined #ruby-lang
tylersmith has quit [Ping timeout: 265 seconds]
vlad_starkov has joined #ruby-lang
achru has joined #ruby-lang
vlad_starkov has quit [Ping timeout: 264 seconds]
eval-in___ has quit [Remote host closed the connection]
eval-in has joined #ruby-lang
vlad_starkov has joined #ruby-lang
bzalasky has quit [Remote host closed the connection]
swills has quit [Ping timeout: 246 seconds]
adphillips has joined #ruby-lang
dilated_dinosaur has joined #ruby-lang
benlovell has quit [Ping timeout: 240 seconds]
achru has quit []
swills has joined #ruby-lang
swills has quit [Changing host]
swills has joined #ruby-lang
futilegames has joined #ruby-lang
yubrew has joined #ruby-lang
futilegames has quit [Client Quit]
khaase_ has joined #ruby-lang
postmodern has quit [Quit: Leaving]
eval-in has quit [Remote host closed the connection]
eval-in has joined #ruby-lang
khaase has quit [Ping timeout: 264 seconds]
yubrew has quit [Ping timeout: 265 seconds]
khaase_ has quit [Ping timeout: 240 seconds]
<maloik>
ugh, migrating a highly customized bootstrap 2 into a bootstrap 3 isn't too much fun
<maloik>
not that I expected otherwise but still
elliotec has joined #ruby-lang
alexju has quit [Remote host closed the connection]
rolfb has joined #ruby-lang
joelroa has joined #ruby-lang
futilegames has joined #ruby-lang
Coincidental has joined #ruby-lang
futilegames has quit [Client Quit]
futilegames has joined #ruby-lang
elliotec has quit [Ping timeout: 244 seconds]
mr-foobar has quit [Remote host closed the connection]
mr-foobar has joined #ruby-lang
joelroa has quit [Ping timeout: 244 seconds]
futilegames has quit [Client Quit]
futilegames has joined #ruby-lang
futilegames has quit [Client Quit]
plexus has joined #ruby-lang
futilegames has joined #ruby-lang
futilegames has quit [Client Quit]
futilegames has joined #ruby-lang
khaase has joined #ruby-lang
mr-foobar has quit [Ping timeout: 269 seconds]
Coincidental has quit [Ping timeout: 240 seconds]
<yorickpeterse>
herp derp lets use text for a field
<yorickpeterse>
oh shit now we have more than 65 KB of data
<yorickpeterse>
no wonder this doesn't work
<ljarvis>
:/
ledestin has quit [Ping timeout: 240 seconds]
robmiller has quit [Quit: Leaving.]
<yorickpeterse>
there, longtext should be enough
<yorickpeterse>
and thank you MyFirstSQL for not throwing errors
<yorickpeterse>
(max 4GB)
mehlah has joined #ruby-lang
woollyams has joined #ruby-lang
benlovell has joined #ruby-lang
vlad_starkov has quit [Remote host closed the connection]
vlad_starkov has joined #ruby-lang
Asher has quit [Read error: Connection reset by peer]
Asher has joined #ruby-lang
domakesaythings has joined #ruby-lang
woollyams has quit [Read error: Connection reset by peer]
<cored>
he says that he dislike mocks I wonder how is he breaking dependencies using fake class
<cored>
:-/
BubonicPestilenc has quit [Ping timeout: 252 seconds]
BubonicPestilenc has joined #ruby-lang
yfeldblum has quit [Ping timeout: 244 seconds]
anannie has quit [Ping timeout: 240 seconds]
diegoviola has joined #ruby-lang
toastynerd has quit [Remote host closed the connection]
<ljarvis>
ask him
<cored>
ljarvis: waiting for him ;-)
<cored>
now I found at a restriction that minitest have forcing the developer to not mock twice; so I opted to use fake objects inside my test
cnivolle_ has quit [Remote host closed the connection]
cnivolle has joined #ruby-lang
vpretzel has quit [Read error: Connection reset by peer]
vpretzel has joined #ruby-lang
toastynerd has joined #ruby-lang
sdouglas has quit [Remote host closed the connection]
tenderlove has quit [Remote host closed the connection]
tenderlove has joined #ruby-lang
skade has quit [Quit: Computer has gone to sleep.]
d4rkr4i has joined #ruby-lang
dharms has quit [Remote host closed the connection]
|jemc| has joined #ruby-lang
robmiller1 has joined #ruby-lang
marcofernandez has quit [Ping timeout: 265 seconds]
anannie has joined #ruby-lang
anannie has quit [Changing host]
anannie has joined #ruby-lang
rippa has joined #ruby-lang
flak has joined #ruby-lang
bzalasky has joined #ruby-lang
flak is now known as Guest34641
vlad_starkov has joined #ruby-lang
Atw has quit [Ping timeout: 252 seconds]
robmiller has quit [Ping timeout: 264 seconds]
toastynerd has quit [Remote host closed the connection]
khaase has quit [Remote host closed the connection]
dwknoxy has joined #ruby-lang
mykoweb has quit [Remote host closed the connection]
rkmetzl has joined #ruby-lang
anannie has quit [Ping timeout: 264 seconds]
ratmav has joined #ruby-lang
ratmav has quit [Read error: Connection reset by peer]
d4rkr4i has quit [Ping timeout: 241 seconds]
marcofernandez has joined #ruby-lang
anannie has joined #ruby-lang
rahul_j has quit [Quit: rahul_j]
Cakey has quit [Ping timeout: 252 seconds]
bzalasky has quit [Remote host closed the connection]
apeiros has quit [Remote host closed the connection]
symm- has joined #ruby-lang
ayonkhan has joined #ruby-lang
apeiros has joined #ruby-lang
rahul_j has joined #ruby-lang
rippa has quit [Quit: {#`%${%&`+'${`%&NO CARRIER]
rkmetzl has left #ruby-lang [#ruby-lang]
apeiros has quit [Ping timeout: 252 seconds]
joelroa has joined #ruby-lang
centrx has joined #ruby-lang
tylersmith has quit [Remote host closed the connection]
tylersmith has joined #ruby-lang
Coincidental has joined #ruby-lang
cored has quit [Ping timeout: 240 seconds]
TvL2386 has joined #ruby-lang
joelroa has quit [Ping timeout: 265 seconds]
<TvL2386>
hi guys, I'm using net-ldap but how do I know if this is blocking? I'm using multiple threads but don't know if I benefit from it...
tylersmith has quit [Ping timeout: 244 seconds]
Coincidental has quit [Ping timeout: 240 seconds]
<yorickpeterse>
wat
<toretore>
unless it says otherwise, assume it's blocking
d4rkr4i has joined #ruby-lang
MultiSwan has quit [Ping timeout: 240 seconds]
jsullivandigs has joined #ruby-lang
<yorickpeterse>
If it's blocking and it's not IO related then yes, you're dun goofd
<yorickpeterse>
Even then I've found MRIs (assuming you're using MRI) threading "support" to be hilarious
ayonkhan has quit [Remote host closed the connection]
havenwood has joined #ruby-lang
ivanskie has joined #ruby-lang
d4rkr4i has quit [Ping timeout: 252 seconds]
yfeldblum has joined #ruby-lang
<TvL2386>
I'm using MRI 2.1
wallerdev has joined #ruby-lang
Guest34641 is now known as rippa
khaase has joined #ruby-lang
khaase has quit [Changing host]
khaase has joined #ruby-lang
<yorickpeterse>
are you actually having concurrency related problems?
<yorickpeterse>
That is, do you have to use multi-threading/multi-processing because it's too slow?
momomomomo has quit [Quit: momomomomo]
momomomomo has joined #ruby-lang
yfeldblum has quit [Ping timeout: 244 seconds]
<TvL2386>
I don't have any problems not using concurrency, it's just possible to use it here. Since requests go all over the world, I can do it in 4 seconds instead of 10... I know I should avoid using threads if it's not needed...
elcontrastador has joined #ruby-lang
<yorickpeterse>
I'm not saying you should avoid it
<yorickpeterse>
However, it's more tricky so you should at least be aware of the things involved with it
<darix>
TvL2386: do you have any actual problems or is this theoretical?
<yorickpeterse>
I'd start with actually benchmarking things before dealing with this
<yorickpeterse>
so you can assert that it's actually worth the time/effort
<toretore>
TvL2386: it's difficult to give advice on vague issues regarding threads (or anything)
<TvL2386>
darix, it's kinda theoretical because I have no issues :)
<yorickpeterse>
Then your first step is to write some benchmarks
<yorickpeterse>
then ignore it until it becomes an issue
jsrn has quit [Quit: Leaving]
<TvL2386>
yep yep... it was just fun :)
mahlon_ is now known as mahlon
<TvL2386>
I'm doing a net-ldap query to an Active Directory server and I'm getting 8 referrals that I have to follow. I can do that serial or in parallel... I already benchmarked that it takes about 7 seconds to complete serially and 4 seconds if I follow the referrals in parallel...
<toretore>
where do the referrals point to?
<TvL2386>
and this is not an issue at all, I shouldn't actually spend time with this, but I just thought it was fun ;)
<TvL2386>
to other AD servers
<TvL2386>
:)
<darix>
also did you spend time to figure out where in that is your bottleneck?
<darix>
waiting for the reply, connecting, and so on
<TvL2386>
I'm creating a script the lists all members of a certain group. The ldap query fetches all objects from that group. The members can live in other AD's which are "subsites or something in the forest" (MS talking), that's why I get referrals
wallerdev has quit [Quit: wallerdev]
<TvL2386>
I know the bottleneck: It's latency from Amsterdam to Singapore and Amsterdam to San Diego
d4rkr4i has joined #ruby-lang
<TvL2386>
so I thought: perfect for threading :)
<darix>
even evented programming would work
dagobah has quit [Quit: Leaving...]
<toretore>
you can gain a lot by doing it asynchronously, you just have to know where and when to use threads
fraterlaetus has joined #ruby-lang
<TvL2386>
thanks guys!
apeiros has joined #ruby-lang
mehlah has quit [Quit: Leaving...]
judofyr has joined #ruby-lang
<imperator>
according to the docs, ldap_search is an asynchronous function
<imperator>
dunno how net-ldap implements it on winders though
mechanicles has joined #ruby-lang
judofyr has quit [Remote host closed the connection]
judofyr has joined #ruby-lang
elliotec has joined #ruby-lang
__butch__ has joined #ruby-lang
kwando_ has joined #ruby-lang
d4rkr4i has quit [Ping timeout: 268 seconds]
matp has quit [Ping timeout: 252 seconds]
judofyr has quit [Ping timeout: 240 seconds]
kwando has quit [Ping timeout: 264 seconds]
yfeldblum has joined #ruby-lang
mbj has joined #ruby-lang
mehlah has joined #ruby-lang
jxpx777 has joined #ruby-lang
joelroa has joined #ruby-lang
d4rkr4i has joined #ruby-lang
toastynerd has joined #ruby-lang
amerine has joined #ruby-lang
matp has joined #ruby-lang
amsi has joined #ruby-lang
mikecmpbll has quit [Quit: i've nodded off.]
yfeldblum has quit [Remote host closed the connection]
canton7-mac has quit [Quit: Leaving]
cnivolle_ has joined #ruby-lang
elliotec has quit [Remote host closed the connection]
elliotec has joined #ruby-lang
cnivolle has quit [Ping timeout: 245 seconds]
elliotec has quit [Remote host closed the connection]
elia has quit [Quit: Computer has gone to sleep.]
d4rkr4i has quit [Ping timeout: 240 seconds]
elliotec has joined #ruby-lang
benlovell has quit [Ping timeout: 240 seconds]
cuicui_ has joined #ruby-lang
levifig_ has joined #ruby-lang
hanikazmi_ has joined #ruby-lang
jevs_ has joined #ruby-lang
diegoviola has quit [Quit: WeeChat 0.4.3]
rue|w has quit [Disconnected by services]
rue|w_ has joined #ruby-lang
rue|w_ is now known as rue_
mechanicles has quit []
itsraining has joined #ruby-lang
saarinen has joined #ruby-lang
phrozen7- has joined #ruby-lang
jinie_ has joined #ruby-lang
enebo has quit [Quit: enebo]
levifig has quit [*.net *.split]
cuicui has quit [*.net *.split]
jevs has quit [*.net *.split]
beawesomeinstead has quit [*.net *.split]
tommyblue has quit [*.net *.split]
jinie has quit [*.net *.split]
phrozen77 has quit [*.net *.split]
hanikazmi has quit [*.net *.split]
nrk has quit [*.net *.split]
tommyblu` has joined #ruby-lang
jevs_ is now known as jevs
groszek has left #ruby-lang ["."]
beawesomeinstead has joined #ruby-lang
jcs222 has quit [Quit: leaving]
anannie has quit [Quit: Leaving...]
anannie has joined #ruby-lang
d4rkr4i has joined #ruby-lang
toastynerd has quit [Remote host closed the connection]
<imperator>
i think dns resolution on osx may suck
imperator has quit [Quit: Leaving]
nrk has joined #ruby-lang
toastynerd has joined #ruby-lang
tylersmith has joined #ruby-lang
d4rkr4i has quit [Ping timeout: 240 seconds]
bradcliffe has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
dc5ala has quit [Quit: Ex-Chat]
elcontrastador has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
elcontrastador has joined #ruby-lang
rahul_j has quit [Quit: rahul_j]
elliotec has quit [Remote host closed the connection]
solars has quit [Ping timeout: 264 seconds]
jevs has quit []
jevs has joined #ruby-lang
enebo has joined #ruby-lang
elliotec has joined #ruby-lang
toastynerd has quit [Remote host closed the connection]
elliotec has quit [Remote host closed the connection]
elliotec has joined #ruby-lang
robmiller1 has quit [Quit: Leaving.]
rahul_j has joined #ruby-lang
yfeldblum has joined #ruby-lang
mikecmpbll has joined #ruby-lang
robbyoconnor has joined #ruby-lang
rippa has quit [Quit: {#`%${%&`+'${`%&NO CARRIER]
d4rkr4i has joined #ruby-lang
toastynerd has joined #ruby-lang
wallerdev has joined #ruby-lang
wallerdev has quit [Client Quit]
d4rkr4i has quit [Ping timeout: 265 seconds]
phrozen7- has quit [Changing host]
phrozen7- has joined #ruby-lang
sdouglas has joined #ruby-lang
hahuang65 has joined #ruby-lang
sdouglas has quit [Remote host closed the connection]
davidko has joined #ruby-lang
vlad_starkov has quit [Remote host closed the connection]
elliotec has quit [Remote host closed the connection]
elliotec has joined #ruby-lang
mbj has quit [Quit: leaving]
Coincidental has joined #ruby-lang
d4rkr4i has joined #ruby-lang
Coincidental has quit [Ping timeout: 244 seconds]
momomomomo has quit [Quit: momomomomo]
dilated_dinosaur has quit [Ping timeout: 252 seconds]
d4rkr4i has quit [Read error: Connection reset by peer]
robmiller has joined #ruby-lang
elliotec has quit [Remote host closed the connection]
robbyoconnor has quit [Ping timeout: 240 seconds]
jtw has quit [Ping timeout: 244 seconds]
Coincidental has joined #ruby-lang
futilegames has quit [Quit: futilegames]
rahul_j has quit [Quit: rahul_j]
BubonicPestilenc has quit [Quit: BubonicPestilenc]
mikecmpbll has quit [Quit: i've nodded off.]
jtw has joined #ruby-lang
<ljarvis>
first world problems: forgetting the cascade direction in PG
CaptainJet has joined #ruby-lang
pr0ton has joined #ruby-lang
<jhass>
for foreign keys constraints? think about which side can exist without the other one
joelroa has quit [Ping timeout: 240 seconds]
<yorickpeterse>
ljarvis: you dun goofd
<ljarvis>
jhass: yeah that's generally how i look at it, but that requires brain power
<yorickpeterse>
also clearly you shouldn't be using foreign keys because your database logic should be in your application
elliotec has joined #ruby-lang
<ljarvis>
:D
<ljarvis>
dat rails
<ljarvis>
fuck dependent: destroy
jtw has quit [Ping timeout: 244 seconds]
jtw has joined #ruby-lang
<yorickpeterse>
it's a problem in general
<yorickpeterse>
"The DB is just a dumb storage mechanism" - too many devs
<yorickpeterse>
Too many people see it as a folder in ~/Downloads that they can just throw stuff in :/
<jhass>
:o, you got folders inside ~/Downloads?
pr0ton has left #ruby-lang [#ruby-lang]
<yorickpeterse>
I don't, I slap everything in /tmp
<ljarvis>
~/Downloads/Downloads
<yorickpeterse>
but I know people who basically shove everything in ~/Downloads
<ljarvis>
I use ~/tmp
<ljarvis>
i dunno why
<ljarvis>
must be a reason
havenwood has quit [Remote host closed the connection]
d4rkr4i has joined #ruby-lang
havenwood has joined #ruby-lang
cored has joined #ruby-lang
cored has quit [Changing host]
cored has joined #ruby-lang
io_syl has joined #ruby-lang
lsegal has joined #ruby-lang
d4rkr4i has quit [Ping timeout: 240 seconds]
havenwood has quit [Ping timeout: 244 seconds]
sepp2k has joined #ruby-lang
mikecmpbll has joined #ruby-lang
brettweavnet has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
diegoviola has joined #ruby-lang
riffraff has quit [Quit: Leaving]
futilegames has joined #ruby-lang
toastynerd has quit [Remote host closed the connection]
poor_leno has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
d4rkr4i has joined #ruby-lang
toastynerd has joined #ruby-lang
momomomomo has joined #ruby-lang
joelroa has joined #ruby-lang
mehlah has quit [Quit: Leaving...]
robmiller has quit [Quit: Leaving.]
jperry has joined #ruby-lang
bradcliffe has joined #ruby-lang
joelroa has quit [Read error: Operation timed out]
mikecmpbll has quit [Quit: i've nodded off.]
m4t- has quit [Remote host closed the connection]
elliotec has quit [Remote host closed the connection]
benlovell has joined #ruby-lang
bradcliffe has quit [Client Quit]
Neuromancr has joined #ruby-lang
cnivolle has joined #ruby-lang
toastynerd has quit [Remote host closed the connection]
Coincidental has quit [Remote host closed the connection]
Neuromancr has quit [Read error: Connection reset by peer]
elcontrastador has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
bradcliffe has joined #ruby-lang
vlad_starkov has joined #ruby-lang
workmad3 has quit [Ping timeout: 265 seconds]
anannie has quit [Remote host closed the connection]
vlad_starkov has quit [Ping timeout: 240 seconds]
benoit_ has quit [Quit: Connection closed for inactivity]
mikecmpbll has quit [Quit: i've nodded off.]
panpainter has joined #ruby-lang
vlad_starkov has joined #ruby-lang
brettweavnet has joined #ruby-lang
elliotec has quit [Remote host closed the connection]
setmeaway has quit [Ping timeout: 252 seconds]
elliotec has joined #ruby-lang
isaacsanders has joined #ruby-lang
<isaacsanders>
user
anannie has joined #ruby-lang
isaacsanders has quit [Client Quit]
<cored>
I wonder why minitest-rails remove my rake test:unit task
tenderlove has quit [Quit: Leaving...]
mikecmpbll has joined #ruby-lang
Neuromancr has joined #ruby-lang
<ljarvis>
sigils vs barewords GO
Fushi has quit [Quit: Connection closed for inactivity]
<yorickpeterse>
bearwords
d4rkr4i has quit [Ping timeout: 240 seconds]
<ljarvis>
oh you
<apeiros>
beerwords?
<ljarvis>
those are the best words
momomomomo has quit [Quit: momomomomo]
<apeiros>
ljarvis: I love barewords, but sometimes sigils help readability/clarity. it's a difficult balance.
elliotec has quit [Remote host closed the connection]
<ljarvis>
aye
toastynerd has joined #ruby-lang
elliotec has joined #ruby-lang
<apeiros>
what are you working on?
jcs222 has joined #ruby-lang
<ljarvis>
actually having a discussion about haml and slim with collegues
<yorickpeterse>
oh dear
<yorickpeterse>
hold on to your poopers
<yorickpeterse>
hold on, I'll give you a reason why not to use HAML
<yorickpeterse>
if it's still around that is
<yorickpeterse>
Hm can't seem to find it, either way, there was this massive block of eval() shit going on
<yorickpeterse>
and from what I remember it, a few months ago, made Rbx very sad performance wise
<yorickpeterse>
either way, HAML is slow
<yorickpeterse>
slim is faster
<ljarvis>
well yeah
<ljarvis>
i should note that for the purpose of this discussion, speed does not matter
<ljarvis>
if speed did matter, i would not be using ruby
<yorickpeterse>
it will matter when that shit speeds up your web requests by quite a lot
<yorickpeterse>
also "lol I use Ruby fuck performance" is why Ruby is slow in the first place
<yorickpeterse>
might as well use VisualBasic
<judofyr>
Slim has far cleaner internals :)
<ljarvis>
well of course speed matters, which is why i stated 'for the purpose of this discussion'. Since I'm not wanting to discuss speed
<ljarvis>
judofyr: that it does
<judofyr>
but honestly I don't think there's many features that separates them
<yorickpeterse>
HAML has fucked up line wrapping, not sure what Slim does with that
<yorickpeterse>
%foo(bar="baz" |
<yorickpeterse>
rest-here)
<ljarvis>
if my line needs to be wrapped, it's too long
<yorickpeterse>
good luck with that
joelroa has joined #ruby-lang
<ljarvis>
I have a project here with over 500 haml files, not one line in one file is wrapped
<ljarvis>
(well, obviously since haml chokes on it, but there are no lines that would be wrapped should haml support it)
brettweavnet has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<yorickpeterse>
It very much depends on the nesting crazyness of your HTML
postmodern has joined #ruby-lang
<ljarvis>
sure
<yorickpeterse>
other than that I'd say Slim just looks a bit nicer, that's it
Neuromancr has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<ljarvis>
i know when i used slim some time ago i kept getting template errors non of which provided a stack trace
jgpawletko is now known as jgpawletko_away
<ljarvis>
if it happened inside a partial, i was essentially fucked
<ljarvis>
anyway i think it's time to eat some pancakes
devgiant has joined #ruby-lang
FiXato has quit [Excess Flood]
thisirs has joined #ruby-lang
FiXato has joined #ruby-lang
joelroa has quit [Ping timeout: 520 seconds]
Coincidental has joined #ruby-lang
jmeeuwen has quit [Quit: Disconnecting from stoned server.]
jmeeuwen has joined #ruby-lang
elliotec has quit [Remote host closed the connection]
symm- has quit [Ping timeout: 265 seconds]
ivanskie has quit [Ping timeout: 240 seconds]
d4rkr4i has joined #ruby-lang
Asher has joined #ruby-lang
TvL2386 has quit [Quit: Ex-Chat]
elliotec has joined #ruby-lang
jsilver-ipod has joined #ruby-lang
sindork has quit [Ping timeout: 252 seconds]
elliotec has quit [Remote host closed the connection]
dmiller_ has quit [Ping timeout: 252 seconds]
wnd has quit [Excess Flood]
Neuromancr has joined #ruby-lang
wnd has joined #ruby-lang
tbuehlmann has quit [Remote host closed the connection]
skade has joined #ruby-lang
sindork has joined #ruby-lang
elia has quit [Quit: Computer has gone to sleep.]
dmiller_ has joined #ruby-lang
amsi has quit [Ping timeout: 244 seconds]
d4rkr4i has quit [Ping timeout: 244 seconds]
jsilver-ipod has quit [Remote host closed the connection]
judofyr has quit []
davidko has quit []
skade has quit [Quit: Computer has gone to sleep.]
ruby_n_max has joined #ruby-lang
Asher has quit [Quit: Leaving.]
lunsford has quit [Quit: lunsford]
symm- has joined #ruby-lang
skade has joined #ruby-lang
Neuromancr has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
specialblend has joined #ruby-lang
robmiller has joined #ruby-lang
Johz has joined #ruby-lang
prc has joined #ruby-lang
Asher has joined #ruby-lang
_ht has quit [Remote host closed the connection]
d4rkr4i has joined #ruby-lang
Neuromancr has joined #ruby-lang
devgiant_ has joined #ruby-lang
Mon_Ouie has joined #ruby-lang
Mon_Ouie has joined #ruby-lang
<specialblend>
hey guys anybody know why this "(Time.new.to_f / 100).to_s.reverse.split('.')[0].strip.to_i" in 1.8.7 generates a integer 8 num or less, but 1.9.3 it's 9 or less, throwing off this whole unique code generation method in an app I took over working on
devgiant__ has joined #ruby-lang
<specialblend>
I can see Time.new.to_f is longer in 1.9.3 than 1.8.7 but can't figure out how to restrict it in a safe way down to 8 or less num
devgiant has quit [Ping timeout: 265 seconds]
<lianj>
"throwing off this whole unique code generation method in an app" ?
<specialblend>
lianj: custom
<lianj>
weird :D
<specialblend>
lianj: don't look into the design, just trying to solve the Ruby lol
mbj has joined #ruby-lang
devgiant_ has quit [Ping timeout: 240 seconds]
nisstyre has quit [Quit: WeeChat 0.4.3]
<specialblend>
simply result - 1 doesn't work either
<jhass>
specialblend: I guess you could just round to the number of digits you need, but then I don't what changed here between 1.8 and 1.9
<jhass>
*I don't know
mbj has left #ruby-lang [#ruby-lang]
<jhass>
bad day for my written English :/
<apeiros>
specialblend: what the heck are you trying to do there?
<specialblend>
jhass: ya, I'm just scared because of it's whole uniqueness...
<jhass>
he said we shouldn't question it, apeiros
<jhass>
can't you accept that
<apeiros>
no
<specialblend>
apeiros: i didn't write that code, but it's supposed to return a unique number based on time apparently
<apeiros>
specialblend: I assumed it to be something like that. BAD. IDEA.
bradcliffe has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<specialblend>
apeiros: yes, i didn't mention there is an existing number check. we'll I'm trying to figure out a better way, just needs to fit under 8 chars
diegoviola has quit [Quit: WeeChat 0.4.3]
d4rkr4i has quit [Ping timeout: 240 seconds]
<apeiros>
you could use .usec and .to_i
<specialblend>
apeiros: field is a varchar, so I'm thinking it's ok to utilize alpha numeric as well
<apeiros>
well, then I'd go with SecureRandom probably
<specialblend>
apeiros: ok thanks I'll look into it
<jhass>
SecureRandom isn't as unique as you'd think
<jhass>
I like uuids
<apeiros>
jhass: agreed, but uuid = 16 byte
<apeiros>
and securerandom is there for uuids too
skade has quit [Quit: Computer has gone to sleep.]
<jhass>
but for isolated systems (you don't have more than one system generating the tokens) it's good enough I guess
<apeiros>
SecureRandom.uuid
<apeiros>
so if you say "SecureRandom isn't as unique as you'd think" you say "uuid's aren't as unique as you think" :-p
* apeiros
off killing some zerg
<apeiros>
hopefully not too many of my own
elia has joined #ruby-lang
marcdel has joined #ruby-lang
<jhass>
hm, yeah I kindoff always forget that SecureRandom has them
panpainter has quit [Ping timeout: 244 seconds]
arBmind1 has quit [Quit: Leaving.]
skade has joined #ruby-lang
<jhass>
apeiros: ah, I remember why I don't like that one: "The version 4 UUID is purely random (except the version). It doesn't contain meaningful information such as MAC address, time, etc."
<jhass>
so it's not very collision resistant in distributed systems either
panpainter has joined #ruby-lang
Neuromancr has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<lianj>
you guys must be a lucky bunch, finding 32 bytes collisions
<apeiros>
jhass: you're kidding, right?
<jhass>
apeiros: straight from the docs
<apeiros>
jhass: not that part
<dvorak>
I think he means the "you're not going to find a collision in any reasonably generated UUID" part.
<apeiros>
of course SecureRandom uses the randomized uuid version, that's kinda the point of the *Random* part in SecureRandom's name
ruby_n_max has quit [Ping timeout: 240 seconds]
madb055 has quit [Remote host closed the connection]
elliotec has joined #ruby-lang
<apeiros>
what dvorak said
madb055 has joined #ruby-lang
<dvorak>
the "universally unique" part is intended literally.
marcdel has quit [Ping timeout: 244 seconds]
joelroa has joined #ruby-lang
elliotec has quit [Remote host closed the connection]