<doppler>
hanmac1 (key.hex ^ msg.hex).to_s(16) worked like a charm ^_^
<doppler>
seems like unpack wasnt the way to go. way to complicated
Hirzu has quit [Ping timeout: 272 seconds]
BradPitt has joined #ruby
ahmetkapikiran has joined #ruby
crazymykl has joined #ruby
<jasabella>
is ruby1.9 deprecated now?
<havenwood>
jasabella: yup
<sevenseacat>
aye.
Hounddog has joined #ruby
<jasabella>
dang debian :P
balazs has joined #ruby
<sevenseacat>
it'll have a 2.0 package.
<jasabella>
yea in testing
yfeldblum has joined #ruby
<jasabella>
which breaks my live usb stick x(
<sevenseacat>
hey you want stable, you get stupidly old but stable stuff :P
<jasabella>
true lol
<jasabella>
i'm thinking of switching to lubuntu
Mirc-user has joined #ruby
<doppler>
debian <3
Filete has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<jasabella>
leave debian for server
<sevenseacat>
i miss ubuntu.
krisquigley has joined #ruby
<jasabella>
what are you on?
<sevenseacat>
osx
<jasabella>
ahhh
<jasabella>
bsd :P
<doppler>
better than windows
<jasabella>
yea
<jasabella>
ls /dev/sda*
<jasabella>
oops
alex88 has joined #ruby
<Mirc-user>
yeaah
<doppler>
jasabella which distro are u running?
balazs has quit [Ping timeout: 250 seconds]
<sevenseacat>
they said debian
<jasabella>
wheeezy
robustus has quit [Ping timeout: 255 seconds]
Timba-as_ has joined #ruby
<doppler>
oh
<jasabella>
oh well, jessie's round the corner, should be good
<Mirc-user>
gay got laud
krisquigley has quit [Ping timeout: 250 seconds]
robustus has joined #ruby
* sevenseacat
raises an eyebrow
tesuji has joined #ruby
snufft has joined #ruby
<snufft>
hi guys
<havenwood>
snufft: hi
<doppler>
its released on the 25th right?
<Mirc-user>
Gays Got Laud !!!
<sevenseacat>
Mirc-user: dunno what you're on about, but it sounds un-ruby-related.
<havenwood>
Mirc-user: That's incomprehensible. Have any good Ruby to show us?
<snufft>
i use compass and sass for web dev projects, so i'm pretty new to rubygems themselves. I've got a problem with "gem list" listing gems that I can't seem to uninstall. If I try and run "gem uninstall [projectname]" I get the following error: INFO: gem "projectname" is not installed.
<snufft>
is there a cache i need to clear, or something like that?
<sevenseacat>
are you trying to remove the default gems?
<flughafen>
sup sevenseacat ! certainty
<sevenseacat>
cuz that wont work
<sevenseacat>
flughafen: good afternoon
Timba-as_ has quit [Ping timeout: 276 seconds]
<flughafen>
good after midnight to you
<sevenseacat>
is 3.30pm here :)
<havenwood>
snufft: What's an example of a gem you're unable to install? Trying to uninstall all you're able or particular gems?
<snufft>
sevenseacat: I don't think so? it's just egms like compass, sass, etc?
<flughafen>
it's 930am here
hanmac has quit [Ping timeout: 265 seconds]
<havenwood>
0:28 here
AlphaAtom has joined #ruby
edwinvdgraaf has joined #ruby
<snufft>
so far, compass, compass-import-core, ffi, fssm are a few that i'm having problems with at the moment :)
<Bozo>
0:29 here
<havenwood>
snufft: So `gem list "^compass$"` shows it but `gem uninstall compass` doesn't work?
dumdedum has joined #ruby
shoutsid has joined #ruby
Timba-as_ has joined #ruby
<snufft>
havenwood: exactly :) gem uninstall compass gives me: INFO: gem "compass" is not installed
<snufft>
the installed version is 0.12.2 if that helps
<havenwood>
snufft: What do you get for?: gem which compass
shoutsid has quit [Remote host closed the connection]
ta has joined #ruby
snufft has quit [Quit: Page closed]
edwinvdg_ has joined #ruby
msmith_ has quit [Ping timeout: 245 seconds]
narcan has quit [Quit: -[AppDelegate installMalware]: unrecognized selector sent to instance 0x156109c0]
tubuliferous has quit [Ping timeout: 264 seconds]
`sicks has joined #ruby
dumdedum has joined #ruby
narcan has joined #ruby
narcan has quit [Client Quit]
plutonic has quit [Quit: plutonic]
jolg42 has joined #ruby
edwinvdgraaf has quit [Ping timeout: 264 seconds]
adamjleonard has quit [Quit: Leaving...]
granthatcher has joined #ruby
niKeITA has joined #ruby
shoutsid has joined #ruby
milesmatthias has joined #ruby
andikr has joined #ruby
Bozo has quit [Quit: Leaving...]
Bozo has joined #ruby
Sp4rKy has quit [Quit: Sp4rKy]
krisquigley has joined #ruby
Bozo is now known as Brozo
Sp4rKy has joined #ruby
milesmatthias has quit [Ping timeout: 256 seconds]
sevenseacat has quit [Quit: Me dun like you no more.]
ndrei has quit [Ping timeout: 255 seconds]
sevenseacat has joined #ruby
sevenseacat has quit [Client Quit]
mikecmpbll has joined #ruby
marr has joined #ruby
crazymykl has quit [Ping timeout: 272 seconds]
Brozo has quit [Quit: Leaving...]
Brozo has joined #ruby
krisquigley has quit [Remote host closed the connection]
krisquigley has joined #ruby
bim has joined #ruby
bim is now known as Guest74932
agent_white has quit [Quit: goodnight]
blackmesa has joined #ruby
pierombaabu has joined #ruby
TheHodge has joined #ruby
pacMakaveli has joined #ruby
edwinvdg_ has quit [Remote host closed the connection]
swills_ has joined #ruby
Brozo has quit [Remote host closed the connection]
tesuji_ has joined #ruby
tesuji has quit [Ping timeout: 255 seconds]
hanmac1 has quit [Ping timeout: 255 seconds]
edwinvdgraaf has joined #ruby
swills has quit [Read error: Connection reset by peer]
cassianoleal has quit [Quit: (null)]
tesuji_ is now known as tesuji
hanmac1 has joined #ruby
vtunka has joined #ruby
krisquigley has quit [Ping timeout: 248 seconds]
ki0 has joined #ruby
tvw has quit [Remote host closed the connection]
balazs_ has joined #ruby
antgel has quit [Quit: leaving]
antgel has joined #ruby
krisquigley has joined #ruby
balazs_ has quit [Ping timeout: 256 seconds]
OnBrokenWings has joined #ruby
bennysan has joined #ruby
krisquigley has quit [Client Quit]
lidenska_ has quit [Remote host closed the connection]
juanpablo_ has joined #ruby
hs366 has joined #ruby
OnBrokenWings has quit [Quit: Leaving]
juanpablo_ has quit [Ping timeout: 264 seconds]
cpt_yossarian has quit [Read error: Connection reset by peer]
_OnBrokenWings_ has joined #ruby
OnBrokenWings has joined #ruby
_OnBrokenWings_ has quit [Client Quit]
OnBrokenWings has quit [Remote host closed the connection]
OnBrokenWings has joined #ruby
OnBrokenWings has quit [Remote host closed the connection]
vivekananda has joined #ruby
krisquigley has joined #ruby
ahmetkapikiran has quit [Read error: No route to host]
Zai00 has joined #ruby
OnBrokenWings has joined #ruby
BradPitt has quit [Ping timeout: 245 seconds]
mikecmpb_ has joined #ruby
nfk|laptop has joined #ruby
mikecmpbll has quit [Read error: Connection reset by peer]
OnBrokenWings has quit [Client Quit]
OnBrokenWings has joined #ruby
OnBrokenWings has quit [Remote host closed the connection]
OnBrokenWings has joined #ruby
c0m0 has joined #ruby
Cust0sL1men has joined #ruby
lkba has quit [Read error: Connection reset by peer]
OnBrokenWings has quit [Client Quit]
serard has quit [Remote host closed the connection]
OnBrokenWings has joined #ruby
RegulationD has joined #ruby
lolmaus has quit [Ping timeout: 256 seconds]
lloyd is now known as Lloyd
quimrstorres has joined #ruby
ahmetkapikiran has joined #ruby
pierombaabu has quit [Remote host closed the connection]
RegulationD has quit [Ping timeout: 240 seconds]
Igorshp has joined #ruby
quimrstorres has quit [Remote host closed the connection]
quimrstorres has joined #ruby
OnBrokenWings has quit [Quit: Leaving]
OnBrokenWings has joined #ruby
niKeITA has quit [Quit: ZZZzzz…]
OnBrokenWings has quit [Remote host closed the connection]
OnBrokenWings has joined #ruby
lkba has joined #ruby
crazymykl has joined #ruby
cassianoleal has joined #ruby
AlphaAtom has quit [Ping timeout: 256 seconds]
quimrstorres has quit [Ping timeout: 245 seconds]
quimrstorres has joined #ruby
niKeITA has joined #ruby
kbarry has quit [Ping timeout: 265 seconds]
colorisco is now known as cool_coder_forfo
OnBrokenWings has quit [Quit: Leaving]
iotouch has joined #ruby
OnBrokenWings has joined #ruby
jespada has quit [Ping timeout: 250 seconds]
codecop has quit [Remote host closed the connection]
chinmay_dd has quit [Quit: Leaving]
lolmaus has joined #ruby
startupality has joined #ruby
OnBrokenWings has quit [Client Quit]
vtunka has quit [Quit: Leaving]
OnBrokenWings has joined #ruby
vickleton has joined #ruby
vdamewood has joined #ruby
asaff has joined #ruby
OnBrokenWings has quit [Client Quit]
<asaff>
today for the first time I started rails application in production environment 'rails s -p 5001 -e production' in my local pc and I encounter this error ERROR RuntimeError: Missing `secret_token` and `secret_key_base` for 'production' environment, set these values in `config/secrets.yml`................ please help me with this
OnBrokenWings has joined #ruby
OnBrokenWings has quit [Remote host closed the connection]
ki0 has quit [Ping timeout: 248 seconds]
OnBrokenWings has joined #ruby
<canton7>
... are those values set in config/secrets.yml? :P
Vile` has quit [Read error: Connection reset by peer]
tvw has joined #ruby
Joufflu has joined #ruby
<apeiros>
asaff: your error tells you "set these values in `config/secrets.yml`" - did you do that?
OnBrokenWings has quit [Client Quit]
<ddv>
I see we have a website now?
OnBrokenWings has joined #ruby
<asaff>
how to set secret_key_base and secret_key
<ddv>
Or did I just never read the topic?
<asaff>
apeiros_
platzhirsch has joined #ruby
OnBrokenWings has left #ruby [#ruby]
Joufflu_ has joined #ruby
<apeiros>
asaff: it tells you right in the error. look at the config/secrets.yml file
platzhirsch has left #ruby [#ruby]
<asaff>
in 3.2.13 I used start same way .... never encountered any issue
<adaedra>
ddv: it's been there for a long time I think
<ddv>
ok :)
<adaedra>
asaff: secret file was added some time ago, 4.2 iirc
Guest74932 has quit [Remote host closed the connection]
OnBrokenWings has joined #ruby
<apeiros>
ddv: for about 3 weeks now
<ddv>
ah :)
<adaedra>
3 whole weeks
<apeiros>
started with it when we got channel ownership
GreyHands has joined #ruby
<ddv>
Nice apeiros
OnBrokenWings has quit [Remote host closed the connection]
vtunka has joined #ruby
livathinos has quit [Ping timeout: 256 seconds]
Vile` has joined #ruby
Joufflu has quit [Ping timeout: 245 seconds]
<doppler>
o/
<apeiros>
ddv: contributors are welcome :)
bruno- has joined #ruby
plashchynski has joined #ruby
ndrei has joined #ruby
sigurding has quit [Quit: sigurding]
plashchynski has quit [Client Quit]
bim has joined #ruby
bim is now known as Guest62673
vivekananda has quit [Ping timeout: 255 seconds]
Mon_Ouie has joined #ruby
Guest62673 has quit [Read error: Connection reset by peer]
plashchynski has joined #ruby
asaff has quit [Ping timeout: 246 seconds]
OnBrokenWings has joined #ruby
bruno- has quit [Ping timeout: 252 seconds]
sigurding has joined #ruby
krisquigley has quit [Remote host closed the connection]
krisquigley has joined #ruby
iasoon has joined #ruby
ghr has joined #ruby
<hanmac1>
apeiros & shevy did you guys have seen the last google doogle from today? ;P
startupality has quit [Quit: startupality]
AlphaAtom has joined #ruby
Cust0sL1men has quit [Ping timeout: 250 seconds]
joast has quit [Ping timeout: 245 seconds]
plashchynski has quit [Quit: plashchynski]
plashchynski has joined #ruby
<apeiros>
no
Soda has joined #ruby
lidenskap has joined #ruby
niKeITA has quit [Quit: ZZZzzz…]
lolmaus has quit [Ping timeout: 256 seconds]
startupality has joined #ruby
<hanmac1>
apeiros: check it out! its with nessi ;P
cpt_yossarian has joined #ruby
<apeiros>
I don't even know what a google doogle is
roshanavand has joined #ruby
n008f4g_ has joined #ruby
pontiki has joined #ruby
OnBrokenWings has quit [Quit: Leaving]
iasoon has quit [Ping timeout: 264 seconds]
OnBrokenWings has joined #ruby
shellfu has quit [Read error: Connection reset by peer]
<hanmac1>
A124 if the data is not compareable then an ArgumentError is raised by min ... if you have some specific data use the block form or min_by
parduse is now known as Guest37797
startupality has quit [Quit: startupality]
Guest37797 has quit [Ping timeout: 264 seconds]
chipotle has joined #ruby
startupality has joined #ruby
<A124>
Yeah, those are numbers.. currently trying to find a shortest way to return order of numbers by size, and.. what I think there is simple way.. summing each subarray.
pardusf has joined #ruby
<A124>
Is inject the way to go or is there any simpler?
chipotle has quit [Max SendQ exceeded]
phale has joined #ruby
startupality has quit [Client Quit]
chipotle has joined #ruby
vivekananda has joined #ruby
jespada has joined #ruby
plutonic has joined #ruby
phale has left #ruby ["Leaving"]
chipotle has quit [Max SendQ exceeded]
startupality has joined #ruby
Pumukel has joined #ruby
chipotle has joined #ruby
<catphish>
A124: you want the smallest sub-array by total?
codecop has quit [Remote host closed the connection]
Guest85850 has quit [Remote host closed the connection]
<A124>
Yeah, that too. Basically return a number representing order sorted by minimal sum.
oo_ has quit [Remote host closed the connection]
<A124>
Number instead of subarray.
doodlehaus has joined #ruby
oo_ has joined #ruby
<catphish>
this works: array.map{|i|[i.inject{|sum,x| sum + x }, i]}.min[1]
<ytti>
inject{|sum,x| sum + x } == inject(:+)
<catphish>
this creates an array where each element is [sum, [n,n,n]] eg [10, [1,2,3,4]] then orders it by the first item
<hanmac1>
catphish: why not [[1,2,1],[3]].min_by{|i|[i.inject(0,:+), i]} ? with min_by ?
<catphish>
this assumes you actually want the array to survive to the end
<A124>
Nope, I dont care about survival.
pwattste has joined #ruby
<catphish>
A124: you just want the smallest sum?
<catphish>
i like hanmac1's solution best
<catphish>
but if you only need the min sum: array.inject(0,:+).min
cefkamcau has quit [Ping timeout: 245 seconds]
<A124>
Array of subarrays, those replaced by order, which is sort by sum of the subarray.
niKeITA has quit [Quit: ZZZzzz…]
<A124>
I hope I said that good :D
SOLDIERz has joined #ruby
<catphish>
oh, my last example it totally wrong
mengu has quit [Remote host closed the connection]
plutonic has quit [Quit: plutonic]
<catphish>
so either: array.min_by{|i|[i.inject(0,:+), i]}
<catphish>
or array.map{|i|i.inject(:+)}.min
<A124>
Yeah, if I wanted only the min hanmac1 is excellent, thanks! Having to decide which is the right choice given on parameters. Which if making flat simple decision, would be hanmac1 example, plus .index to find the index.
<catphish>
depending what data you want
cool_coder_forfo has quit [Ping timeout: 245 seconds]
<hanmac1>
A124: IF you want the index use .each_with_index instead of the extra #index call
<A124>
[[1,2,1],[1,1,1]] to [2,1] .. So one can compare differences either human, or if margins small, pick the best and give another algo to decide.
goggy has quit [Ping timeout: 265 seconds]
RTG` has quit [Ping timeout: 272 seconds]
<A124>
hanmac1 Alright.. thought of that. Just.. returning to ruby and some of the nifty techniques (most) slipped away.
cefkamcau has joined #ruby
<A124>
So instead doing it small, efficient and smart, doing things multistep. Which does nto benefit as much from C runtimes, unles run on virtual machine, which I am not.
tosbourn has quit [Ping timeout: 256 seconds]
roolo_ has joined #ruby
<A124>
Thank you for your help all.
duncannz has quit [Remote host closed the connection]
Alina-malina has quit [Read error: Connection reset by peer]
oo_ has quit [Remote host closed the connection]
bruno- has joined #ruby
roolo has quit [Ping timeout: 272 seconds]
_honning_ has joined #ruby
shoutsid06 has quit [Remote host closed the connection]
Alina-malina has joined #ruby
niKeITA has joined #ruby
scottstamp has quit [Read error: Connection reset by peer]
relix has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
tkuchiki has quit [Ping timeout: 256 seconds]
sigurding has joined #ruby
klavs has joined #ruby
relix has joined #ruby
iasoon has joined #ruby
weemsledeux has joined #ruby
klavs has left #ruby [#ruby]
juanpaucar has joined #ruby
Vivex_ has joined #ruby
beat_ has joined #ruby
lxsameer has quit [Quit: Leaving]
ych_ has joined #ruby
Vivex has quit [Ping timeout: 272 seconds]
scottstamp has joined #ruby
matchaw has joined #ruby
tubuliferous has joined #ruby
juanpaucar has quit [Ping timeout: 265 seconds]
ndrei has quit [Ping timeout: 255 seconds]
shoutsid has joined #ruby
cool_coder_forfo has joined #ruby
jefus has joined #ruby
RTG` has joined #ruby
vim_shimm has joined #ruby
jottr_ is now known as jottr
SouL_|_ has quit [Ping timeout: 240 seconds]
tubuliferous has quit [Ping timeout: 246 seconds]
scripore has quit [Quit: This computer has gone to sleep]
mengu has joined #ruby
mengu has joined #ruby
iteratorP has quit [Quit: Leaving...]
Cork has quit [Remote host closed the connection]
cool_coder_forfo has quit [Ping timeout: 256 seconds]
Igorshp has quit [Remote host closed the connection]
Papierkorb has joined #ruby
goggy has joined #ruby
milesmatthias has joined #ruby
vim_shimm has quit [Ping timeout: 276 seconds]
nfk|laptop has quit [Read error: Connection reset by peer]
nfk|laptop has joined #ruby
Morkel has joined #ruby
serivich has joined #ruby
<kq_away>
is there a way to create a Time object from a string generated by strftime?
<kq_away>
I have the format string
edwinvdgraaf has quit []
edwinvdgraaf has joined #ruby
milesmatthias has quit [Ping timeout: 244 seconds]
tosbourn has joined #ruby
RTG` has quit [Ping timeout: 265 seconds]
dudedudeman has quit [Ping timeout: 276 seconds]
relix has quit [Remote host closed the connection]
RTG` has joined #ruby
RegulationD has joined #ruby
relix has joined #ruby
chinmay_dd has joined #ruby
vt102 has joined #ruby
doodlehaus has quit [Remote host closed the connection]
nfk|laptop has quit [Ping timeout: 256 seconds]
<apeiros>
kq_away: require 'time' and see Time.strptime
roshanavand has quit [Ping timeout: 252 seconds]
cool_coder_forfo has joined #ruby
roshanavand has joined #ruby
RegulationD has quit [Ping timeout: 250 seconds]
postmodern has quit [Quit: Leaving]
acarpe has joined #ruby
krz has quit [Quit: WeeChat 1.0.1]
colorados has quit [Quit: Leaving]
blackmesa has quit [Ping timeout: 250 seconds]
FernandoBasso has joined #ruby
chipotle has quit [Quit: cheerio]
Mia has joined #ruby
Mia has quit [Changing host]
Mia has joined #ruby
jottr has quit [Ping timeout: 244 seconds]
Pumukel has quit [Ping timeout: 256 seconds]
fabrice31 has joined #ruby
Pumukel has joined #ruby
last_staff has joined #ruby
AlphaAtom has quit [Ping timeout: 246 seconds]
ghr has quit [Ping timeout: 248 seconds]
tosbourn has quit [Ping timeout: 276 seconds]
dudedudeman has joined #ruby
Pumukel has quit [Ping timeout: 265 seconds]
juanpablo_ has joined #ruby
ndrei has joined #ruby
shoutsid has quit [Remote host closed the connection]
fabrice31 has quit [Remote host closed the connection]
antgel has quit [Ping timeout: 250 seconds]
pika_pika has joined #ruby
quimrstorres has quit [Remote host closed the connection]
dudedudeman has quit [Ping timeout: 246 seconds]
quimrstorres has joined #ruby
fabrice31 has joined #ruby
juanpablo_ has quit [Ping timeout: 272 seconds]
narcan has joined #ruby
dudedudeman has joined #ruby
shoutsid has joined #ruby
vtunka has joined #ruby
quimrstorres has quit [Ping timeout: 255 seconds]
doppler has quit [Ping timeout: 246 seconds]
startupality has quit [Quit: startupality]
niKeITA has quit [Quit: ZZZzzz…]
wWwBUKOLAYcom has joined #ruby
workmad3 has joined #ruby
noname has quit [Ping timeout: 264 seconds]
quimrstorres has joined #ruby
startupality has joined #ruby
Cork has joined #ruby
Cork is now known as Guest33791
philip1 has joined #ruby
philip1 is now known as phutchins
startupality has quit [Client Quit]
startupality has joined #ruby
shoutsid has quit [Remote host closed the connection]
revoohc has joined #ruby
shoutsid has joined #ruby
Guest33791 has quit [Changing host]
Guest33791 has joined #ruby
doodlehaus has joined #ruby
<krainboltgreene>
Today I'm going to write net-http-request.gem
Guest33791 is now known as Cork
doodlehaus has quit [Remote host closed the connection]
iotouch has joined #ruby
kobain has joined #ruby
fabrice31 has quit [Remote host closed the connection]
ddarkpassenger has joined #ruby
fabrice31 has joined #ruby
kyrylo has quit [Quit: Konversation terminated!]
kyrylo has joined #ruby
Igorshp has joined #ruby
sevvie has quit [Ping timeout: 252 seconds]
renier_ has joined #ruby
jamto11 has joined #ruby
Technodrome has quit [Quit: Technodrome]
renier has quit [Ping timeout: 248 seconds]
banister has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
ponga has quit [Remote host closed the connection]
sevvie has joined #ruby
connor_goodwolf has quit [Ping timeout: 252 seconds]
FireHui has joined #ruby
FireHui has quit [Max SendQ exceeded]
connor_goodwolf has joined #ruby
havenwood has quit [Remote host closed the connection]
iotouch has quit [Quit: This computer has gone to sleep]
jottr has joined #ruby
terlar has joined #ruby
weemsledeux has quit [Ping timeout: 264 seconds]
willharrison has joined #ruby
FireHui has joined #ruby
quimrstorres has quit [Remote host closed the connection]
quimrstorres has joined #ruby
ponga has joined #ruby
bim has joined #ruby
bim is now known as Guest90910
FireHui has quit [Max SendQ exceeded]
terlar has quit [Quit: WeeChat 1.1.1]
fabrice31 has quit [Remote host closed the connection]
Rollabunna has quit [Remote host closed the connection]
bim has joined #ruby
Rollabunna has joined #ruby
bim is now known as Guest69156
workmad3 has quit [Ping timeout: 264 seconds]
iamjarvo has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
sigurding has quit [Quit: sigurding]
Technodrome has joined #ruby
iamjarvo has joined #ruby
i has joined #ruby
<i>
Hello
i is now known as Guest51605
<dudedudeman>
sup!
Guest51605 is now known as izzol
<adaedra>
i
mwlang has quit [Quit: mwlang]
chipotle has joined #ruby
Morkel has quit [Quit: Morkel]
<dudedudeman>
i am legion?
<apeiros>
i doubt that
<adaedra>
you're dudedudeman
<dudedudeman>
well, i'm more like, ashamed dudedudeman at this point
sinkensabe has joined #ruby
<dudedudeman>
you guys were really breaking your necks to help me last night
josephleon has joined #ruby
<dudedudeman>
and i was sucking up the whole communication part
<ninjs>
Hey so I have a script that iterates through all folders in a directory and renames them.. is there a way that I can skip a folder if it's busy (i.e. being accessed)?
pagios has quit [Ping timeout: 276 seconds]
pagios has joined #ruby
sinkensabe has quit [Remote host closed the connection]
<NinjaOps>
ninjs next if some_condition
<DaniG2k>
ninjs: there's no way to know if another program is accessing it (eg antivirus) unless there's some lock file that you can reference and cehck
<NinjaOps>
ninjs: what do you define as 'busy'?
<DaniG2k>
ninjs: actually if you're on linux you might be able to check open files with lsof and see if more than 1 program is using that dir (just grep for its name)
banister has joined #ruby
banister has quit [Max SendQ exceeded]
<ninjs>
So what happens is i get "Permission denied @ sys_fail2 " if the folder that I try to rename is in use. So I'm wondering if there's a way to skip that folder instead of erroring out and quitting
iamjarvo has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
StephenOTT has quit [Quit: StephenOTT]
<apeiros>
ninjs: rescue the exception
snockerton has joined #ruby
<izzol>
I'm trying to sum two values and I have a problem with it :( The problem is that one value is from one 'while' and second from second 'while', and I want to sum them, print, and go to the next loop, and again sum, print.
<ninjs>
izzol: what are you trying to do? so like 3 + 5, then 3(+3) + 5(+5)?
<ninjs>
and so on
krisquig_ has joined #ruby
niKeITA has joined #ruby
mdarby has joined #ruby
arturaz has quit [Ping timeout: 245 seconds]
<izzol>
ninjs: I need to have on first output: 3+5 (8), on second: 3+3+5+5 (16), third: 3+3+3+5+5+5 (24) and so on.
banister has joined #ruby
Kruppe has joined #ruby
<DaniG2k>
ninjs: either rescue the exception or, as I said, in Linux you can lsof to list the open files and check if another program isn't using it. You can always return to it and modify it at a later time ;)
krisquigley has quit [Ping timeout: 276 seconds]
<izzol>
ninjs: and on the end I want to check something like: puts sum if sum < 99999
startupality has quit [Read error: Connection reset by peer]
tubuliferous has quit [Ping timeout: 245 seconds]
<matugm>
ninjs, you don't need that "else next"
<ninjs>
oh whoops. Thanks
startupality has joined #ruby
Flowrhent has joined #ruby
CloCkWeRX has quit [Remote host closed the connection]
Mia has quit [Read error: Connection reset by peer]
serivich has quit [Ping timeout: 255 seconds]
mdarby has quit [Ping timeout: 256 seconds]
bricker has joined #ruby
mistermocha has joined #ruby
_honning_ has joined #ruby
<matugm>
Ninjs, have you tried wrapping the File.rename witha begin ... rescue ... end?
Guest42873 has quit [Ping timeout: 256 seconds]
kblake has quit [Ping timeout: 256 seconds]
ych_ has joined #ruby
gagrio has quit [Ping timeout: 256 seconds]
ponga has quit [Quit: Leaving...]
Morkel has joined #ruby
doppler has joined #ruby
<doppler>
i have a an array which looks like this (actually its one array containing several arrays): [[key, val], [key, val]]. etc. now, i want to xor the elements "key" and "val". how do i do this? >_>
<doppler>
i want to xor the two words togheter. but they arent the same length, so i thought that might be one way to do it. now. "cycle" works great. but then i get a two dimensional array, and now i want to xor each letter in msg with each letter in key
jaequery has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<izzol>
ninjs: yes, this is working now :_0
<izzol>
:-)
<izzol>
ninjs: now I need to undestand what is this % and why ;-)
<doppler>
momomomomo wait. i think that worked?
wald0 has quit [Read error: Connection reset by peer]
startupality has quit [Quit: startupality]
Kruppe has joined #ruby
dgbaley has joined #ruby
<izzol>
ahh
<izzol>
it's simply
sinkensabe has quit [Remote host closed the connection]
mengu has quit [Remote host closed the connection]
B1n4r10 has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
sinkensabe has joined #ruby
<dgbaley>
Hey. I'm writing an erb template and trying to use a splat on a variable that will either be a hash, or a list of hashes. Is there some little piece of sugar I can use so that the splat doesn't convert the single hash into a list?
thumpba_ has joined #ruby
<IceDragon>
dgbaley: Why is that single variable so many types?
B1n4r10 has joined #ruby
edwinvdgraaf has quit [Ping timeout: 245 seconds]
balazs has joined #ruby
startupality has joined #ruby
sinkensabe has quit [Remote host closed the connection]
bkxd has quit [Ping timeout: 264 seconds]
pacMakaveli has quit [Remote host closed the connection]
<dgbaley>
It's just a single item or a list thereof... It's coming from Puppet, where most of the time it's only a single hash. The list of hashes is only used infrequently so we'd like to support either syntax
<GaryOak_>
ytti: are you joining the threads after you spawn them?
Megtastique has joined #ruby
Megtastique has quit [Max SendQ exceeded]
kbarry has joined #ruby
cjim_ has joined #ruby
Megtastique has joined #ruby
Megtastique has quit [Max SendQ exceeded]
<ytti>
GaryOak_, no, there is forever loop which should keep everything running
lavros has joined #ruby
<izzol>
ninjs: but I think I know how to change your code :-)
Megtastique has joined #ruby
Megtastique has quit [Max SendQ exceeded]
msmith_ has joined #ruby
jenrzzz has quit [Ping timeout: 264 seconds]
<izzol>
ninjs: I just changed puts sum to pust i
<izzol>
and I think this is what I'm looking for
<GaryOak_>
ytti: if you are spawning a thread and never joining it back into the parent process, you can't do the binding.pry, although you could write output to a file
msmith_ has quit [Read error: Connection reset by peer]
evanjs has quit [Remote host closed the connection]
<doppler>
canton7 i tried { |x, y| x ^ y } before. but maybe i didnt tried to convert the elements to ints. anyway i will try it again
MatthewsFace has joined #ruby
idealexit has quit [Remote host closed the connection]
basiclaser has quit [Quit: Connection closed for inactivity]
Cust0sL1men has quit [Ping timeout: 240 seconds]
duderonomy has quit [Ping timeout: 252 seconds]
c0m0 has quit [Ping timeout: 250 seconds]
iamjarvo has joined #ruby
<ddarkpassenger>
I have a mysterious string: 'gPUFOxZsadgWl7ohETxnP4NyrKA=' that represents sha1 of a file content: '80f5053b166c69d81697ba21113c673f8372aca0'
<ddarkpassenger>
Does anyone have a clue of how I go from mysterious to SHA1?
<mizbotre>
hey, I'm trying to build a metasploit fork from distribution gems...
mitchellhenke has quit [Read error: Connection reset by peer]
rodfersou has quit [Ping timeout: 256 seconds]
asmodlol has joined #ruby
<mizbotre>
thing is that I'll throw an ssl error, some missing AES and a bad call to fog. There is no .bundle for me to really change it, but that's what I think...
mitchellhenke has joined #ruby
<mizbotre>
tl;dr, bundler tips?
tearan has joined #ruby
chthon has quit [Ping timeout: 244 seconds]
CaffeineShot has quit [Quit: Leaving]
allcentury has joined #ruby
Morkel has quit [Ping timeout: 276 seconds]
phale has joined #ruby
<phale>
alright i accidentally broke my quantum computer
anarang has quit [Quit: Leaving]
<jhass>
phale: with Ruby?
<phale>
no
<phale>
i literally broke it
<jhass>
then I'm not sure why you inform us about that
<phale>
because I was using a Ruby MD5 hash cracker
<apeiros>
you use QuantumRuby?
<phale>
no
<jhass>
well, get a better one that doesn't break on such an easy task then
<apeiros>
doppler: not sure where you see i XOR "c" returning "1" there.
<havenwood>
doppler: Look at the Array result before you join it.
tubuliferous has quit [Ping timeout: 264 seconds]
<doppler>
apeiros oh maybe its supposed to be 13 then. but then, why 13?
allcentury has joined #ruby
<hanmac>
doppler: you need to do { |x, y| (x.hex ^ y.hex).to_s(16) }.join so its hex again
<gregf_>
apeiros: i think by 'i' (s?)he's referring to (him|her)self
hazelux has quit []
sohrab has joined #ruby
adamjleonard has quit [Quit: Leaving...]
lolmaus has quit [Quit: Konversation terminated!]
<doppler>
hanmac oh, right, i forgot
swgillespie has joined #ruby
pengin has quit [Remote host closed the connection]
<doppler>
hanmac thank you!
x1337807x has joined #ruby
tubuliferous has joined #ruby
phale has left #ruby ["Leaving"]
gfawcettpq has quit [Ping timeout: 240 seconds]
revoohc has joined #ruby
adamjleonard has joined #ruby
revoohc has quit [Client Quit]
pengin has joined #ruby
wallerdev has joined #ruby
ramfjord has joined #ruby
<doppler>
looks like i get the result im looking for now (i did like hanmac said). so what were those numbers i got before? i.e. "01009013014031601311401306"?
<doppler>
obviously i didnt follow the exact instructions.. i was just playing around..
lkba has joined #ruby
pontiki has quit [Ping timeout: 240 seconds]
Jonah11_ has joined #ruby
Jonah11_ has quit [Client Quit]
mrsolo has quit [Quit: Leaving]
Jonah11_ has joined #ruby
ag4ve_ has joined #ruby
segfalt has joined #ruby
dualbus has joined #ruby
lkba_ has quit [Ping timeout: 245 seconds]
konsolebox has joined #ruby
work has quit [Quit: Leaving]
relix has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
gfawcettpq has joined #ruby
<havenwood>
doppler: You just want to see a solution?
<rom1504>
0
jaequery has joined #ruby
Brozo has joined #ruby
_honning_ has quit [Ping timeout: 240 seconds]
<doppler>
havenwood yeah, im sure there must be a better way to write the script.
<havenwood>
doppler: One that gives the desired output would be better! You could be using String#bytes.
<havenwood>
>> "Burning 'em, if you ain't quick and nimble\nI go crazy when I hear a cymbal".bytes.zip("ICE".bytes.cycle).map { |x, y| sprintf "%02x", x ^ y }.join
<ruboto>
havenwood # => "0b3637272a2b2e63622c2e69692a23693a2a3c6324202d623d63343c2a26226324272765272a282b2f20430a652e2c652a3 ...check link for more (https://eval.in/316637)
<ruboto>
eam # => /tmp/execpad-f93841ab83b9/source-f93841ab83b9:3: syntax error, unexpected tCONSTANT, expecting keywo ...check link for more (https://eval.in/316642)
<bjaX>
Hello! ruby noob here. I'm reading a book (Programming Ruby 1.9 & 2.0) and I'm missing something when it comes to classes and attr_reader/attr_accessor. In the book there is a attribute declared with attr_accessor :price.. and then later its used in a method without @.. is that correct?
<ruboto>
eam # => /tmp/execpad-959e73e4cede/source-959e73e4cede:2: invalid multibyte char (UTF-8) ...check link for more (https://eval.in/316648)
plashchynski has quit [Client Quit]
<wallerdev>
lol
<hanmac>
eam its also a bug for me too in my ruby (same warning) ... but i think it might be more a opimition that only ASCII chars for the demitter are allowed
ki0 has joined #ruby
<eam>
doesn't work in jruby either, though there I see SyntaxError: (irb):3: unknown type of %string
<Mon_Ouie>
>> %été
<ruboto>
Mon_Ouie # => /tmp/execpad-4d6a7c1b8e38/source-4d6a7c1b8e38:2: invalid multibyte char (UTF-8) ...check link for more (https://eval.in/316649)
<Mon_Ouie>
Oh, I get a different message in my REPL with that one
<eam>
hm ?☃ is broken in jruby but works in mri
_honning_ has joined #ruby
maciejczyzewski has joined #ruby
tus has joined #ruby
<shevy>
teaches you to use java!
edwinvdg_ has joined #ruby
kblake has joined #ruby
edwinvdgraaf has quit [Ping timeout: 250 seconds]
msmith has quit []
quimrstorres has quit [Remote host closed the connection]
ki0 has quit [Ping timeout: 252 seconds]
Juanchito has joined #ruby
baweaver has quit [Remote host closed the connection]
quimrstorres has joined #ruby
<ninjs>
bjaX: No, I'm pretty sure you still do. I think that's a typo
msmith has joined #ruby
towski_ has joined #ruby
<ninjs>
attr_accessor just lets you do class.attribute outside of the class without defining getter and setter methods
<bjaX>
ninjs: yeah, gonna try it out.. that would make so much more sense
lolmaus has quit [Quit: Konversation terminated!]
<ddarkpassenger>
is there an way to do? array.map(&:to_s(16))
<ddarkpassenger>
?
<Sou|cutter>
array.map { |x| x.to_s(16) }
<Mon_Ouie>
bjaX: No, just checked, there's no mistake there.
<Mon_Ouie>
attr_accessor :foo is just def foo; @foo; end and def foo=(value); @foo = value; end
charliesome has joined #ruby
<Mon_Ouie>
and just "price" without the "@" (assuming there's no local variable called price at that point) is a call to the price method
<Mon_Ouie>
Otherwise it is a reference to a local variable, as for example on line 6 in your gist
<bjaX>
ah!
Pipoca has quit [Quit: Leaving]
edwinvdg_ has quit [Ping timeout: 256 seconds]
phale has joined #ruby
<phale>
what hash is this: 78318c085caf834a480e85c132e880d3
<bjaX>
thank you both!
<hanmac>
ddarkpassenger: i once did a script that let you do that with (&:to_s.(16)) but yeah that was very hacky
terlar has joined #ruby
quimrstorres has quit [Ping timeout: 246 seconds]
<hanmac>
phale: yours, you found it, you keep it ;P
<phale>
what?
<phale>
is it MD5?
edwinvdgraaf has joined #ruby
exadeci has quit [Quit: Connection closed for inactivity]
plashchynski has joined #ruby
<ninjs>
Mon_Ouie: ohh I get it
segfalt has quit [Quit: segfalt]
<Mon_Ouie>
How would we know the hashing algorithm used to generate a sequence of byte you pasted?
mdarby has joined #ruby
konsolebox has joined #ruby
joonty has quit [Quit: joonty]
<hanmac>
phale: hm yeah from the size it might be a hex encoded MD5 hash
coderkevin has quit [Ping timeout: 265 seconds]
neektza has quit [Ping timeout: 252 seconds]
<phale>
hanmac: yeah it's in a "pmkey"
<phale>
on some code I found
<phale>
i suppose it's my password or something
milesmatthias has quit [Remote host closed the connection]
x1337807x has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
rodfersou has joined #ruby
<hanmac>
phale: no, its only the hash of your password ... databases which store your password in plaintext should be deleted on sight
lkba_ has joined #ruby
joonty has joined #ruby
coderkevin has joined #ruby
mrsolo has joined #ruby
claw_ has quit [Ping timeout: 250 seconds]
mrsolo has left #ruby [#ruby]
streaxy has quit [Ping timeout: 256 seconds]
claw has joined #ruby
neektza has joined #ruby
graydot has joined #ruby
rodferso1 has quit [Ping timeout: 245 seconds]
SouL_|_ has quit [Ping timeout: 252 seconds]
joonty has quit [Client Quit]
baweaver has joined #ruby
SouL_|_ has joined #ruby
lkba has quit [Ping timeout: 256 seconds]
jeregrine has quit [Ping timeout: 252 seconds]
phale has left #ruby ["Leaving"]
cjim_ has quit [Quit: (null)]
pdoherty has joined #ruby
streaxy has joined #ruby
DerisiveLogic has joined #ruby
djbkd has quit [Remote host closed the connection]
andikr has quit [Remote host closed the connection]
momomomomo has joined #ruby
sinkensabe has quit [Remote host closed the connection]
<havenwood>
pagios: Is it just that you're providing `'upsert'` when the `:upsert` is expected?
sinkensabe has joined #ruby
jenrzzz has joined #ruby
jheg has joined #ruby
kblake has quit [Remote host closed the connection]
RegulationD has quit [Ping timeout: 256 seconds]
<havenwood>
pagios: It's nice to provide some context for questions like this. Like what library are you using and where the method comes from. Check the documentation for an example.
martin_work has joined #ruby
spider-mario has joined #ruby
startupality has quit [Quit: startupality]
<havenwood>
Strange way to check to upsert, but what the heck is upserting anyways?: "@option opts [ true, false ] :upsert Whether to upsert if the document doesn't exist."
cranq has joined #ruby
mdw has joined #ruby
pika_pika has joined #ruby
SouL_|_ has joined #ruby
<xxneolithicxx>
having a reallly weird issue and its ticking me off, need some ideas
maciejczyzewski has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<havenwood>
xxneolithicxx: bacon!
BTRE has joined #ruby
djbkd has joined #ruby
relix has joined #ruby
<xxneolithicxx>
i have a heredoc style string in a variable: var = <<-HELP data HELP (data starts on next line and HELP is the only thing on the closing line
<xxneolithicxx>
when i print the inspected string, all looks good
relix has quit [Client Quit]
<xxneolithicxx>
when i print the the string itself a few lines in the middle are gone
<xxneolithicxx>
i thought i might have added some crazy escape characters so i retyped it out again but no dice
<havenwood>
xxneolithicxx: Show us the output of?: p string
<xxneolithicxx>
one sec let me just push it to repo
gfawcettpq1 has joined #ruby
SouL_|__ has quit [Ping timeout: 265 seconds]
bjaX has quit []
pagios has quit [Ping timeout: 245 seconds]
pagios has joined #ruby
momomomomo has quit [Ping timeout: 255 seconds]
gfawcettpq has quit [Ping timeout: 265 seconds]
Sirupsen has joined #ruby
xploshioon has quit [Quit: Leaving]
Sirupsen has quit [Client Quit]
cranq has quit [Ping timeout: 246 seconds]
wldcordeiro_ has joined #ruby
Limix has joined #ruby
relix has joined #ruby
zoo-zed has joined #ruby
Synthead has joined #ruby
startupality has joined #ruby
<ninjs>
So i have a hash that I'm using to change values... like insurance_hash = {'Select Health' => 'Select'} then comparing it to a spot in an array like insurance_hash.fetch(array[91], "unknown")
hiyosi has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
juanpaucar has joined #ruby
<ninjs>
My question is can I get it to return the value if I have the key as part of the string in that spot in the array?
<ninjs>
So if I have Select Health Colorado... I need to check it against that hash and return 'Select', without specifying Select Health Colorado in the hash.
edwinvdg_ has quit [Read error: Connection reset by peer]
<havenwood>
ninjs: Show a simplified example with expected input and desired output.
Cust0sL1men has joined #ruby
doodlehaus has joined #ruby
MatthewsFace has quit [Remote host closed the connection]
edwinvdgraaf has joined #ruby
willywos has joined #ruby
niKeITA has quit [Quit: ZZZzzz…]
Sirupsen has joined #ruby
<havenwood>
ninjs: Like given this Hash and this Array I want this return value.
balazs has joined #ruby
sinkensabe has quit [Remote host closed the connection]
<xxneolithicxx>
ok so when i run that tool with -h I should get those lines printed out, simple
tus has quit [Ping timeout: 265 seconds]
<xxneolithicxx>
but 1312-1317 get truncated when i print the string
<sohrab>
is there a way to import a ruby file into pry to fool around in?
<xxneolithicxx>
i might have to just bisect and find the last working one
<sohrab>
like pry <filename.rb>
nettoweb has joined #ruby
juanpaucar has quit [Ping timeout: 276 seconds]
<havenwood>
ninjs: insurance_array[3] #=> nil
relix has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<havenwood>
ninjs: ^ that intended or did you mean something else?
TheHodge has quit [Quit: Connection closed for inactivity]
cpt_yossarian has quit [Ping timeout: 244 seconds]
<sohrab>
okay. binding.pry in the file works
claw has quit [Ping timeout: 252 seconds]
martin_work has quit [Quit: martin_work]
segfalt has joined #ruby
claw has joined #ruby
<bricker>
sohrab: you can also require the file
edwinvdg_ has joined #ruby
<havenwood>
xxneolithicxx: er, that's strange
jenrzzz has quit [Ping timeout: 276 seconds]
<bricker>
require 'your_file'
Lissie has joined #ruby
<ninjs>
havenwood: No I want to be able to check each value in the array for "Select Health" in the string, and if it exists, return 'Select'. I was told not to use a bunch of if...else statements and prefer a hash.
rrichardsr3 has joined #ruby
edwinvdgraaf has quit [Read error: Connection reset by peer]
pengin has quit [Remote host closed the connection]
<havenwood>
pagios: So does that work then? Use snake_case for variables not headlessCamelCase. Use 1.9 Hash syntax for Symbols. If you're asking about a gem, say which gem you're using. We don't know all these random methods. Looking at the method you're using in the code is usually helpful.
hollywood has quit [Quit: Leaving]
pengin has joined #ruby
Pumukel has quit [Ping timeout: 256 seconds]
<pagios>
yes ia m using mongo gem
mdw has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
pengin has quit [Read error: Connection reset by peer]
<havenwood>
ninjs: So you want to check each element of the Array and see if there is a corresponding Hash key, and if there is return the value?
pengin has joined #ruby
<havenwood>
ninjs: Seems convoluted.
<ninjs>
Yes! but sometimes only parth of the string will be the hash key..
postmodern has joined #ruby
<havenwood>
ninjs: Only part?
basiclaser has joined #ruby
<ninjs>
yeah. it is. Is there a better way? The way I originally had it was a ton of if...else statements
<havenwood>
ninjs: I don't understand the only part part.
<havenwood>
ninjs: Whatcha mean?
<havenwood>
ninjs: Given the Hash and Array you've shown, what output do you want?
<ninjs>
havenwood: Yeah like I need for example "Select Health Colorado", "Select Health New Mexico", "Select Health whatever else blah blah" to all return "Select", without explicitly saying so.. because I can't program to every case.
kirun has joined #ruby
<havenwood>
insurance_hash[insurance_array.find { |s| insurance_hash.key? s }] #=> "Select"
claw has quit [Quit: No Ping reply in 180 seconds.]
pontiki has joined #ruby
<ninjs>
Hmm okay I'm trying to understand that. Thanks
claw has joined #ruby
ponga has joined #ruby
milesmatthias has quit [Remote host closed the connection]
pontiki has quit [Ping timeout: 245 seconds]
plashchynski has joined #ruby
banister has joined #ruby
claw has quit [Remote host closed the connection]
digitalZombie has quit [Ping timeout: 248 seconds]
chinmay_dd has quit [Ping timeout: 256 seconds]
Guest25611 has quit [Remote host closed the connection]
<pagios>
havenwood: result = client[:'userTable'].find( { :arn => @subscriberARN } ).update_one( $set => {:token => subscriberToken , { :subscribedTo => @topicTypes } , { :upsert => true } ) can i get syntax assistance on that one? still not working i get error| unexpected ',', expecting tASSOC unexpected ')', expecting keyword_end
VegasSith has joined #ruby
swgillespie has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
Filete has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
blaxter has quit [Ping timeout: 244 seconds]
<izzol>
pagios: it looks like there is missing 'end' somewhere
konsolebox has quit [Remote host closed the connection]
jenrzzz has joined #ruby
<izzol>
pagios: on the end try to add '}' after ' true } '
scripore has quit [Quit: This computer has gone to sleep]
cpt_yossarian has joined #ruby
Zai00 has joined #ruby
<pagios>
result = client[:'userTable'].find( "arn" => @subscriberARN ).update_one( "$set" => { :token => subscriberToken , :subscribedTo => @topicTypes , :upsert => true } ) doesnt give an error but upsert does not work
lidenskap has quit [Remote host closed the connection]
milesmatthias has joined #ruby
doppler has quit [Ping timeout: 246 seconds]
_honning_ has quit [Ping timeout: 245 seconds]
jaequery has joined #ruby
MasterPiece has joined #ruby
danzilio has joined #ruby
iasoon has quit [Ping timeout: 248 seconds]
krisquigley has joined #ruby
digitalZombie has joined #ruby
cjim_ has joined #ruby
sinkensabe has joined #ruby
Brozo has quit [Ping timeout: 252 seconds]
MasterPiece has quit [Max SendQ exceeded]
MasterPiece has joined #ruby
iamjarvo has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<andrew-l>
can't one setup postgres to be in-memory only?
<eam>
havenwood: interesting, thx
<yxhuvud>
eam: sqlite support storing the database in memory.
tercenya has joined #ruby
centrx has joined #ruby
MyGreenPickle has joined #ruby
MyGreenPickle has quit [Client Quit]
<eam>
yxhuvud: I'm using sqlite now and -- does it?
<mizbotre>
A124: that's the last thing I tried, didn't go too well. I wanted to compile it under a non-root user though, distro came with a bunch of ruby crap and things probably went off the rails.
catcher has quit [Quit: Leaving]
<mizbotre>
thanks for the link though, almost forgot.
<A124>
mizbotre Uninstall all systemwide ruby, install build tools.
<eam>
sqlite 3.x is extremely slow; it insists on doing open/seek/read/seek/close instead of just caching the whole (very small - megabyte sized) database in memory
<A124>
andrew-l What platform?
<A124>
Sorry, eam
evanjs has quit [Remote host closed the connection]
<eam>
A124: linux
bim has joined #ruby
<avgerinos>
eam: sqlite, afaik, supports in memory dbs
plribeiro3000 has joined #ruby
<A124>
Also there are.. adapters.. aka you can use one thing and querry it like other.
<enroxorz>
Hello. Is there a way to return true in javascript when turbolinks is done processing and the body has been re-written? I am writing selenium tests that are hitting a rails app that has turbolinks and need to wait until page is done re-rendering.
<yxhuvud>
hmm. interesting.
AlexRussia has quit [Ping timeout: 240 seconds]
<enroxorz>
interesting indeed
jenrzzz has joined #ruby
allcentury has quit [Ping timeout: 240 seconds]
iamjarvo has joined #ruby
<jhass>
?rails enroxorz
<ruboto>
enroxorz, Please join #RubyOnRails for Rails questions. You need to be authenticated with NickServ, see /msg NickServ help
<enroxorz>
thanks jhass
<Senjai>
jhass: You dont need to be authed to join anymore, I got radar to change that, just to send to channel :P
<jhass>
kk
<jhass>
!fact ed rails Please join #RubyOnRails for Rails questions.
<ruboto>
jhass, I stand corrected that rails is Please join #RubyOnRails for Rails questions.
joonty has quit [Quit: joonty]
A205B064 has joined #ruby
mrmargolis has joined #ruby
plashchynski has joined #ruby
blackmesa has joined #ruby
<havenwood>
Senjai: Glad you did! That makes pointing folk there much simpler.
<Senjai>
Aye, its quite a convoluted feature
<havenwood>
Explaining nick auth isn't a fun way to greet people who first arrive for help.
<Radar>
You need to be authed to send messages to that channel.
<Senjai>
No, but they have to auth to send to channel
<Radar>
havenwood: It's a nice little intelligence test barrier.
<Senjai>
At least then its disclaimed in the topic of the channel
<Senjai>
which they get (depending on the client) on open
Filete has joined #ruby
<Senjai>
Radar: Me gusta
ndrei has quit [Remote host closed the connection]
enroxorz has quit [Quit: Page closed]
<jhass>
I guess we try how many bounces we get from not explaining it
ndrei has joined #ruby
ki0 has joined #ruby
<Senjai>
I wouldn't be opposed to having it for #ruby too :P. It's used pretty often on popular programming channels.
jaequery has joined #ruby
ndrei has quit [Remote host closed the connection]
goggy has quit [Ping timeout: 246 seconds]
adamjleonard has quit [Quit: Leaving...]
balazs__ has joined #ruby
ndrei has joined #ruby
tus has joined #ruby
Squarepy has quit [Quit: Leaving]
Soda has quit [Ping timeout: 276 seconds]
ddarkpassenger has quit [Quit: Leaving]
perrier has quit [Read error: Connection reset by peer]
decoponio has quit [Quit: Leaving...]
perrier has joined #ruby
Soda has joined #ruby
sohrab has quit [Quit: Lost terminal]
nettoweb has joined #ruby
milesmatthias has joined #ruby
lolmaus has quit [Ping timeout: 256 seconds]
sohrab has joined #ruby
jeramy_s has joined #ruby
gusrub has quit [Quit: Leaving]
ki0 has quit [Remote host closed the connection]
balazs__ has quit [Ping timeout: 256 seconds]
plashchynski has quit [Quit: plashchynski]
cpt_yossarian has joined #ruby
bigmac is now known as i8igmac
plashchynski has joined #ruby
milesmatthias has quit [Remote host closed the connection]
kaspernj has quit [Remote host closed the connection]
digitalZombie has quit [Ping timeout: 248 seconds]
nettoweb has quit [Client Quit]
workmad3 has joined #ruby
Morkel has quit [Quit: Morkel]
wldcordeiro_ has quit [Remote host closed the connection]
Flowrhent has quit [Quit: Flowrhent]
evanjs has joined #ruby
renier has joined #ruby
niKeITA has quit [Quit: ZZZzzz…]
DerisiveLogic has quit [Ping timeout: 256 seconds]
JDiPierro has quit [Remote host closed the connection]
yfeldblum has joined #ruby
renier_ has quit [Ping timeout: 276 seconds]
baweaver has quit [Remote host closed the connection]
avgerinos has quit []
xploshioon has joined #ruby
plashchynski has quit [Quit: plashchynski]
mjuszczak has quit []
pengin has joined #ruby
swgillespie has joined #ruby
segfalt has quit [Ping timeout: 265 seconds]
relix has joined #ruby
segfalt has joined #ruby
AlexRussia has joined #ruby
ta_ has joined #ruby
musashi1 has joined #ruby
mrmargolis has quit [Read error: Connection reset by peer]
deric_skibotn has quit [Read error: Connection reset by peer]
PaulCapestany has quit [Read error: Connection reset by peer]
claw has quit [Ping timeout: 245 seconds]
mrmargolis has joined #ruby
claw_ has joined #ruby
deric_skibotn has joined #ruby
Igorshp has quit [Remote host closed the connection]
PaulCapestany has joined #ruby
deric_skibotn has quit [Read error: Connection reset by peer]
iamjarvo has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
sankaber has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
deric_skibotn has joined #ruby
deric_skibotn has quit [Client Quit]
ta has quit [Ping timeout: 276 seconds]
ki0 has joined #ruby
Nowaker has quit [Ping timeout: 246 seconds]
arminius has joined #ruby
michaeldeol has joined #ruby
pengin has quit [Remote host closed the connection]
evanjs has quit [Remote host closed the connection]
benlieb has quit [Quit: Leaving]
segfalt has quit [Quit: segfalt]
Nowaker has joined #ruby
Hounddog has quit [Remote host closed the connection]
digitalZombie has joined #ruby
sgambino has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
ki0_ has joined #ruby
ki0 has quit [Read error: No route to host]
pengin_ has joined #ruby
Pupeno_ has joined #ruby
ki0_ has quit [Client Quit]
Pupeno has quit [Read error: Connection reset by peer]
Hijiri has joined #ruby
jeramy_s has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
Lissie has quit []
ghostmoth has quit [Quit: ghostmoth]
chipotle has joined #ruby
Limix has quit [Quit: Limix]
sinkensabe has quit [Remote host closed the connection]
sinkensabe has joined #ruby
jeramy_s has joined #ruby
plashchynski has joined #ruby
_honning_ has quit [Ping timeout: 240 seconds]
bim has joined #ruby
benlieb has joined #ruby
edwinvdg_ has quit [Ping timeout: 256 seconds]
bim is now known as Guest73450
josephleon has quit [Read error: Connection reset by peer]
GnuYawk has joined #ruby
milesmatthias has joined #ruby
symbol has quit [Ping timeout: 250 seconds]
Limix has joined #ruby
Technodrome has quit [Quit: Technodrome]
jenrzzz has quit [Ping timeout: 272 seconds]
djbkd has quit [Remote host closed the connection]
sinkensabe has quit [Ping timeout: 250 seconds]
nettoweb has joined #ruby
kyrylo has quit [Ping timeout: 255 seconds]
iamjarvo has joined #ruby
nettoweb has quit [Client Quit]
djbkd has joined #ruby
sinkensabe has joined #ruby
jenrzzz has joined #ruby
Soda has quit [Remote host closed the connection]
rippa has quit [Quit: {#`%${%&`+'${`%&NO CARRIER]
kblake has joined #ruby
plribeiro3000 has quit [Quit: Leaving.]
baweaver has joined #ruby
Juanchito has quit [Quit: Connection closed for inactivity]
musashi1 has quit [Ping timeout: 244 seconds]
jerius has quit [Ping timeout: 276 seconds]
plashchynski has quit [Quit: plashchynski]
mordocai has joined #ruby
edwinvdgraaf has joined #ruby
sinkensabe has quit [Ping timeout: 276 seconds]
doodlehaus has quit [Remote host closed the connection]
lidenskap has quit [Remote host closed the connection]
krisquigley has joined #ruby
djbkd has quit [Remote host closed the connection]
granthatcher has joined #ruby
Igorshp has joined #ruby
CaptainCibai has quit [Remote host closed the connection]
<Senjai>
Though you typically also have a "hub" server
<Senjai>
That regular users cannot connect to
dudedudeman has quit [Changing host]
dudedudeman has joined #ruby
<dudedudeman>
fascinating.
<dudedudeman>
i mean that.
yfeldblum has quit [Quit: Leaving...]
<Senjai>
Yeah, if you're interested in network programming
<Senjai>
making a small ircd is fun
<Senjai>
Each server can be "plugged in" or "removed" from the network without causing much disruption, except to users that were connected to the network via that server.
<cool_coder_forfo>
i runned 'rvm upgrade 2.2-head'
<Senjai>
Lets IRC scale pretty well
odin22 has quit [Quit: Leaving]
<cool_coder_forfo>
Are you sure you wish to upgrade from ruby-2.2-head to ruby-2.2.1?
<xxneolithicxx>
are there any round robin dns for servers?
Flowrhent has joined #ruby
<Flowrhent>
66a5
<cool_coder_forfo>
why does it downgrade me?
hornairs has joined #ruby
<Senjai>
66a5 indeed!
_blizzy_ has joined #ruby
<dudedudeman>
man, the #freenode chat. you really gotta keep up with that one
nw_skipper_ has joined #ruby
<Senjai>
dudedudeman: Unless you have things to say there, you should leave.
<Senjai>
They dont really take kindly to idlers
<dudedudeman>
i just did.
pragmaticivan has joined #ruby
<dudedudeman>
at least i think i did
<ytti>
if someone sees the trouble of writing ircd
<ytti>
i would not write standard compliant server2server protocol
<ytti>
server2client obviously has to be standard
<ytti>
but server2server should be something more tolerant
Guest73450 has quit [Remote host closed the connection]
granthatcher has quit []
jheg has quit [Quit: jheg]
<ytti>
three is no reason why irc network is less tolerant to errors than underlaying IP network
<ytti>
if your upstream server is gone, there is outage, even if IP level connectivity evyerwhere else exists
<Senjai>
Of course, its a modular system
<Senjai>
It should be that way
<ytti>
it's just bad design
<Senjai>
If you could ddos one endpoint and take down the entire network, it wouldn't be very tolerant
<Senjai>
not really
<ytti>
and terrible protocol
<Senjai>
which is why you cant even connect to hub or services servers
jenrzzz has quit [Ping timeout: 256 seconds]
balazs_ has quit [Ping timeout: 256 seconds]
<Senjai>
They're there only for linking purposes
<ytti>
if hub1 is gone, there is no reason why you couldn't reroute via hub2
dudedudeman has quit [Quit: Leaving.]
<ytti>
without impacting your customers
yfeldblum has joined #ruby
RegulationD has joined #ruby
dudedudeman has joined #ruby
<Senjai>
ytti: servers handle that. If server1 go down, people connected via server1 will disconnect, when they reconnect, they'll be load balanced to an active server
<dudedudeman>
ah, i hadn't clicked on that link yet. should have.
<dudedudeman>
thanks jhass, havenwood
hazelux has joined #ruby
vsh_ has joined #ruby
<dudedudeman>
also, jhass, i finished my goals for my little app i've been working on. expanding on what we talked about yesterday, i can now fully write to the database and route it all like i wanted
<jhass>
great!
<dudedudeman>
i really do appreciate your help, even while i was being mildly infuriating. :)
kith_ is now known as kith
<dudedudeman>
onward and forwards!
<adaedra>
great
<dudedudeman>
adaedra: you too, your help was great.
* dudedudeman
feeling grateful
AlphaAtom has quit [Ping timeout: 265 seconds]
AlphaAtom has joined #ruby
OnBrokenWings has quit [Quit: Leaving]
mjuszczak has joined #ruby
frem has joined #ruby
tjohnson has quit [Quit: Connection closed for inactivity]
<dudedudeman>
you guys have a wonderful evening. i'm headed to a local hacknight in my city. more to learn!
<Senjai>
dudedudeman: have fun
<sohrab>
what is your planning process when designing a program? mine is to sit still and stare into space. is this normal?
sevvie has quit [Quit: leaving]
<centrx>
sohrab, you need a rubber ducky
<adaedra>
^
<adaedra>
I should use mine more
<sohrab>
hm, i've heard about that. you just talk to it out loud?
sevvie has joined #ruby
<adaedra>
yes
<centrx>
it also works with children, small animals, and your friendly neighborhood developer
<adaedra>
you expose your idea to an external entity, an inanimate object, an animal, your screen, another person, out loud
balazs_ has joined #ruby
<adaedra>
explaining will sometimes trigger new things
<adaedra>
I did this at work today, guess I was a bit annoying for colleages :/
<adaedra>
coworkers*
vim_shimm has quit [Ping timeout: 264 seconds]
<sohrab>
my thought process is like ocean waves. i push forward and put things together, then once i reach the difficult part i advance 1 step, and then retreat. then repeat. this is what i've been doing all afternoon
CaptainCibai has quit [Remote host closed the connection]
CaptainCibai has joined #ruby
CaptainCibai has quit [Remote host closed the connection]
dudedudeman has quit [Quit: Leaving.]
bim has joined #ruby
<sohrab>
yeah i need people to bounce ideas off of. i write a journal kinda. i guess that helps some
CaptainCibai has joined #ruby
bim has quit [Remote host closed the connection]
relix has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<adaedra>
Personally, speaking out loud ideas is really great
<adaedra>
The problem, is that I apply the same thing when discussing ideas with others, so they often have only half-sentences and are completely lost :/
lidenskap has quit [Remote host closed the connection]
<sohrab>
lol
juanpaucar has joined #ruby
CaptainCibai has quit [Remote host closed the connection]
CaptainCibai has joined #ruby
Zai00 has quit [Quit: Zai00]
mordocai has quit [Quit: The cake is a lie]
riotjone_ has joined #ruby
<adaedra>
we should have a #rubberduck channel
duncannz has joined #ruby
jeramy_s has quit [Quit: My Mac has gone to sleep. ZZZzzz…]