chouhoulis has quit [Remote host closed the connection]
xaviergmail has joined #ruby
mrconfused has quit [Ping timeout: 248 seconds]
lenwood has quit [Ping timeout: 245 seconds]
ddffg has quit [Ping timeout: 240 seconds]
tolerablyjake has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
mrconfused has joined #ruby
cibs has quit [Ping timeout: 268 seconds]
milardovich has joined #ruby
_sfiguser has joined #ruby
harai_ has quit [Ping timeout: 255 seconds]
cibs has joined #ruby
kht has joined #ruby
dogweather has joined #ruby
<dogweather>
Has anyone made a way to run a function on an object, but in dot-form? I.e., reversing the invocation order? This could be really useful, and simple to make, i think:
<dogweather>
say i've made an array function, #all_but_last(an_array) ...
<dogweather>
it'd be cool to add just one new method to Array that'd allow it to run in dot form: `some_array.f(&:all_but_last)`
milardovich has quit [Ping timeout: 245 seconds]
<Radar>
all_by_last(an_array) is by far a simpler syntax.
<dogweather>
I.e., like #map, but passes the entire object to the block. The advantage is that this could be used in a chain of array method calls
jero_ has quit [Quit: Leaving]
<Radar>
dogweather: real example of usage please. I am not convinced yet.
<dogweather>
Oh, #tap mutates the object and returns the original instance?
<Radar>
[11:40:44] <Radar>Try it :)
nadir is now known as nadir|mobile
<Radar>
As long as you're not doing something like defining your all_but_last on the main context, what you're suggesting won't work.
JeanCarloMachado has quit [Ping timeout: 240 seconds]
JeanCarloMachado has joined #ruby
Andrew_TA has quit [Ping timeout: 255 seconds]
Cohedrin_ has quit [Ping timeout: 255 seconds]
BadAtom has joined #ruby
Cohedrin_ has joined #ruby
Cohedrin_ has quit [Max SendQ exceeded]
Cohedrin_ has joined #ruby
<zenspider>
still haven't looked at F#...
arescorpio has joined #ruby
porfa has joined #ruby
charliesome has joined #ruby
<zenspider>
dogweather: isn't that #send? some_array.f(&:all_but_last) -> some_array.send(:all_but_last)
<Radar>
zenspider: all_but_last takes an arg which is an array
<Radar>
The method isn't defined on the Array class and so send won't work?
Guest46066 is now known as ged
ged is now known as Guest27676
Ropeney has joined #ruby
blandflakes has joined #ruby
roamingdog has joined #ruby
alexar has quit [Remote host closed the connection]
charliesome has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<zenspider>
well... I was assuming he was adding onto Array... but otherwise it could be instance_eval. not a good idea either way. there are better ways to do composability
Devalo has joined #ruby
nankyokusei has joined #ruby
roamingdog has quit [Ping timeout: 240 seconds]
blackbombay has joined #ruby
charliesome has joined #ruby
alexar has joined #ruby
<zenspider>
btw... for this case, activesupport just does: "#{self[0...-1].join(options[:words_connector])}#{options[:last_word_connector]}#{self[-1]}"
milardovich has joined #ruby
<zenspider>
not that that is the point, but sometimes you should just stay straightforward
Devalo has quit [Ping timeout: 240 seconds]
nankyokusei has quit [Ping timeout: 256 seconds]
charliesome has quit [Client Quit]
alexar has quit [Ping timeout: 240 seconds]
s2013 has joined #ruby
ur5us has quit [Remote host closed the connection]
astrobun_ has joined #ruby
ur5us has joined #ruby
AndBobsY_ has quit [Remote host closed the connection]
milardovich has quit [Ping timeout: 260 seconds]
JeanCarloMachado has quit [Ping timeout: 240 seconds]
astrobunny has quit [Read error: Connection reset by peer]
mrconfused has quit [Ping timeout: 240 seconds]
irondocwatson has joined #ruby
ur5us has quit [Ping timeout: 260 seconds]
irondocwatson has quit [Ping timeout: 258 seconds]
AndBobsY_ has joined #ruby
masondesu has quit [Quit: sleep!]
paradisaeidae has joined #ruby
paradisaeidae_ has joined #ruby
zacts has quit [Ping timeout: 240 seconds]
charliesome has joined #ruby
ur5us has joined #ruby
blackmesa has quit [Quit: WeeChat 1.6]
sylario has quit [Quit: Connection closed for inactivity]
jameser has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
bhaak has quit [Ping timeout: 245 seconds]
bhaak has joined #ruby
thegriff has quit [Ping timeout: 240 seconds]
tristanp has quit [Remote host closed the connection]
tristanp has joined #ruby
alan_w has quit [Quit: WeeChat 1.4]
hightower2 has joined #ruby
statelesscode_ has joined #ruby
hqip has joined #ruby
hightower3 has quit [Ping timeout: 240 seconds]
tristanp has quit [Ping timeout: 255 seconds]
harfangk has joined #ruby
dc2 has joined #ruby
djbkd_ has quit [Remote host closed the connection]
djbkd has joined #ruby
mostlybadfly has joined #ruby
jaequery has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
djbkd_ has joined #ruby
s2013 has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
djbkd has quit [Ping timeout: 256 seconds]
<markholmes>
i don't know how to phrase my question, so i'm gonna start talking and maybe someone can guide me. i have a 16-bit number (1010101011111111) that i'm trying to l-r swap, basically such that 1010101011111111 becomes 1111111110101010
polysics has quit [Read error: Connection reset by peer]
hahuang61 has joined #ruby
claudiu has joined #ruby
toretore has joined #ruby
Kug3lis has joined #ruby
Kug3lis has quit [Client Quit]
jsrn_ has joined #ruby
hahuang61 has quit [Ping timeout: 258 seconds]
Cohedrin_ has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
DoubleMalt has joined #ruby
Kug3lis has joined #ruby
Guest10762 has quit [Ping timeout: 240 seconds]
TvL2386 has joined #ruby
giraffe has joined #ruby
giraffe is now known as Guest316
tomphp has joined #ruby
tpendragon has joined #ruby
milardovich has joined #ruby
tinti has joined #ruby
jeyraof has quit [Quit: Leaving]
workmad3 has joined #ruby
tinti is now known as Guest18291
pawnbox has joined #ruby
voker57 has quit [Ping timeout: 240 seconds]
voker57 has joined #ruby
voker57 has quit [Changing host]
voker57 has joined #ruby
govg has joined #ruby
Kug3lis has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
pawnbox has quit [Ping timeout: 255 seconds]
charliesome has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
Guest52110 is now known as ged
ged is now known as Guest29830
ishe_ua has joined #ruby
Kug3lis has joined #ruby
charliesome has joined #ruby
jaequery has joined #ruby
faces has quit [Read error: Connection reset by peer]
faces has joined #ruby
terens has quit [Read error: Connection reset by peer]
Shashikant86 has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
pandaant has joined #ruby
terens has joined #ruby
frerich has joined #ruby
ur5us has quit [Remote host closed the connection]
<frerich>
Hi all! Would this be an appropriate place to ask questions regarding building the Ruby interpreter on Windows? I'd like to embed the Ruby interpreter into a program built with Visual Studio, so I cannot use the MinGW builds which are readily available.
s2013 has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<frerich>
Hence, I'm building Ruby 2.2.2 using Visual Studio - which works, except that I can't seem to make the build system pick up OpenSSL. Does anybody have some clue about this stuff?
nadir has quit [Quit: Connection closed for inactivity]
<Burgestrand>
frerich e.g. the mailing list. It's not directly related to the RubyInstaller so it might be a bit off-topic, but I figured the people there probably know a lot about ruby on windows.
nettoweb has joined #ruby
blackbombay has joined #ruby
astrobunny has quit [Remote host closed the connection]
astrobunny has joined #ruby
blackbombay has quit [Ping timeout: 240 seconds]
astrobunny has quit [Ping timeout: 260 seconds]
xall has joined #ruby
hahuang61 has joined #ruby
tvw has joined #ruby
pawnbox has joined #ruby
braincrash has quit [Ping timeout: 256 seconds]
psychicist__ has joined #ruby
jshjsh has joined #ruby
hahuang61 has quit [Ping timeout: 256 seconds]
JoshS has quit [Disconnected by services]
jshjsh is now known as JoshS
terens has quit [Ping timeout: 240 seconds]
aupadhye has quit [Ping timeout: 258 seconds]
aupadhye has joined #ruby
Shashikant86 has joined #ruby
braincrash has joined #ruby
AndBobsYourUncle has joined #ruby
nankyokusei has joined #ruby
Seich has quit [Ping timeout: 255 seconds]
braincrash has quit [Ping timeout: 240 seconds]
AndBobsYourUncle has quit [Ping timeout: 245 seconds]
nankyokusei has quit [Ping timeout: 248 seconds]
mostlybadfly has joined #ruby
govg has quit [Ping timeout: 255 seconds]
Kug3lis has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
hutch34 has joined #ruby
nowhereman has joined #ruby
govg has joined #ruby
jaequery has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
al2o3-cr has joined #ruby
hutch34 has quit [Ping timeout: 245 seconds]
tvw has quit []
tvw has joined #ruby
Guest29830 is now known as ged
ged is now known as Guest36202
patarr has joined #ruby
braincrash has joined #ruby
enyo has quit [Ping timeout: 248 seconds]
walterheck__ has joined #ruby
matp_ has joined #ruby
matp has quit [Ping timeout: 255 seconds]
leah2 has quit [Ping timeout: 255 seconds]
terens has joined #ruby
patarr has quit [Ping timeout: 256 seconds]
pawnbox has quit [Remote host closed the connection]
pawnbox has joined #ruby
braincrash has quit [Ping timeout: 255 seconds]
xen0fon has quit [Ping timeout: 255 seconds]
agent_white has joined #ruby
xall has quit [Ping timeout: 252 seconds]
aganov has quit [Remote host closed the connection]
TheWhip has quit [Remote host closed the connection]
wugy has joined #ruby
braincrash has joined #ruby
tristanp has joined #ruby
nuck has quit [Ping timeout: 255 seconds]
walterheck__ has quit [Ping timeout: 240 seconds]
Seich has joined #ruby
lxsameer has quit [Quit: WeeChat 1.6]
Kug3lis has joined #ruby
braincrash has quit [Ping timeout: 240 seconds]
saneax is now known as saneax-_-|AFK
leah2 has joined #ruby
polysics has joined #ruby
tristanp has quit [Ping timeout: 260 seconds]
saneax-_-|AFK is now known as saneax
polysics_ has quit [Ping timeout: 240 seconds]
Gasher has joined #ruby
braincrash has joined #ruby
blackbombay has joined #ruby
tvw has quit []
tvw has joined #ruby
nuck has joined #ruby
govg has quit [Ping timeout: 240 seconds]
lxsameer has joined #ruby
enyo has joined #ruby
braincrash has quit [Ping timeout: 248 seconds]
blackbombay has quit [Ping timeout: 240 seconds]
nbol has joined #ruby
TheWhip has joined #ruby
claudiu has quit [Ping timeout: 240 seconds]
byte512 has joined #ruby
tobiasvl has quit [Quit: Lost terminal]
pandaant has quit [Remote host closed the connection]
tvl has joined #ruby
tvl is now known as tobiasvl
LiquidInsect has quit [Ping timeout: 256 seconds]
pandaant has joined #ruby
xen0fon has joined #ruby
gix has quit [Ping timeout: 240 seconds]
<frerich>
Burgestrand: Thanks! Will have a look!
koldbrutality has quit [Ping timeout: 240 seconds]
Shashikant86 has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
sepp2k has joined #ruby
LiquidInsect has joined #ruby
frerich has quit [Ping timeout: 260 seconds]
matp_ has quit [Remote host closed the connection]
psychicist__ has quit [Ping timeout: 252 seconds]
matp has joined #ruby
patarr has joined #ruby
psychicist__ has joined #ruby
walterheck__ has joined #ruby
mniip has quit [Ping timeout: 620 seconds]
blackmesa has joined #ruby
patarr has quit [Ping timeout: 240 seconds]
empty_cup has quit [Remote host closed the connection]
al2o3-cr has quit [Ping timeout: 258 seconds]
Andrew_TA has joined #ruby
Guest36202 is now known as ged
ged is now known as Guest35122
braincrash has joined #ruby
Kug3lis has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
Andrew_TA has quit [Ping timeout: 248 seconds]
blackmesa has quit [Read error: Connection reset by peer]
blackmesa has joined #ruby
nobitanobi has quit [Remote host closed the connection]
gix has joined #ruby
xen0fon has quit [Quit: xen0fon]
Kug3lis has joined #ruby
eggshke has quit []
tyang has joined #ruby
blackmes1 has joined #ruby
mniip has joined #ruby
moufl has quit [Ping timeout: 240 seconds]
iooner has quit [Ping timeout: 240 seconds]
sheepman has quit [Ping timeout: 258 seconds]
evertversteeg has quit [Ping timeout: 240 seconds]
KrzaQ has quit [Ping timeout: 240 seconds]
kodnin has joined #ruby
blackmesa has quit [Ping timeout: 258 seconds]
milardovich has quit []
Tempesta has quit [Quit: See ya!]
iooner has joined #ruby
sdothum has joined #ruby
nadir has joined #ruby
<Silthias1>
Stupid question this may be, but is there a simple way of doing a 'sed' replacement in ruby on a file, eg changing a hashed password in /etc/shadow? I'd like to keep everything in ruby rather than an external system call
sheepman has joined #ruby
SerialDev has joined #ruby
KrzaQ has joined #ruby
c355e3b has joined #ruby
dionysus70 has joined #ruby
dionysus69 has quit [Ping timeout: 240 seconds]
dionysus70 is now known as dionysus69
moufl has joined #ruby
<apeiros>
Silthias1: depends. sed is a powerful tool and there's no 1:1 method doing everything sed can do.
irondocwatson has quit [Ping timeout: 248 seconds]
<apeiros>
something akin `File.write(path, File.read(path).gsub(…))` might do what you need
walterheck__ has quit [Ping timeout: 240 seconds]
malconis has joined #ruby
hahuang61 has joined #ruby
pawnbox has quit [Remote host closed the connection]
evertversteeg has joined #ruby
<Silthias1>
thanks, I'll have a look at that approach then. n
Mortomes|Work has quit [Ping timeout: 260 seconds]
blackmes1 has quit [Ping timeout: 240 seconds]
thegriff has joined #ruby
pawnbox has joined #ruby
dionysus69 has quit [Ping timeout: 260 seconds]
Shashikant86 has joined #ruby
hahuang61 has quit [Ping timeout: 256 seconds]
workmad3 has quit [Ping timeout: 240 seconds]
milardovich has joined #ruby
malconis has quit [Ping timeout: 245 seconds]
prestorium has joined #ruby
malconis has joined #ruby
AndBobsYourUncle has joined #ruby
nankyokusei has joined #ruby
bmurt has joined #ruby
walterheck__ has joined #ruby
mrconfused has joined #ruby
blackbombay has joined #ruby
shayan_ has joined #ruby
AndBobsYourUncle has quit [Ping timeout: 260 seconds]
nankyokusei has quit [Ping timeout: 240 seconds]
xen0fon has joined #ruby
mrconfused has quit [Ping timeout: 245 seconds]
pandaant has quit [Remote host closed the connection]
claudiug has joined #ruby
truenito has joined #ruby
hutch34 has joined #ruby
irondocwatson has joined #ruby
saneax is now known as saneax-_-|AFK
x00r__ has joined #ruby
s2013 has joined #ruby
xen0fon has quit [Quit: xen0fon]
foooobear has quit [Quit: (null)]
LiquidInsect has quit [Ping timeout: 248 seconds]
agent_white has quit [Ping timeout: 256 seconds]
millerti has joined #ruby
s2013 has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
Shashikant86 has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
Andrew_TA has joined #ruby
<Silthias1>
@apeiros: Thanks that seems to have done exactly what I needed.
<apeiros>
yw
<apeiros>
btw.: no @ required in irc ;-)
foooobear has joined #ruby
LiquidInsect has joined #ruby
synthroid has joined #ruby
dmaj has quit [Read error: Connection reset by peer]
walterheck__ has quit [Ping timeout: 256 seconds]
jshjsh has joined #ruby
SteenJobs has joined #ruby
JoshS has quit [Ping timeout: 258 seconds]
<Silthias1>
old habits :)
tristanp has joined #ruby
synthroi_ has joined #ruby
siddart has joined #ruby
nobitanobi has joined #ruby
synthroid has quit [Ping timeout: 240 seconds]
Guest35122 is now known as ged
kht has joined #ruby
ged is now known as Guest22334
SteenJobs has quit [Quit: SteenJobs]
bmurt has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
tristanp has quit [Ping timeout: 240 seconds]
charliesome has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
mostlybadfly has quit [Quit: Connection closed for inactivity]
Voker57|2 has joined #ruby
flying has quit [Read error: Connection reset by peer]
polysics_ has joined #ruby
flying has joined #ruby
s2013 has joined #ruby
polysics has quit [Ping timeout: 255 seconds]
workmad3 has joined #ruby
charliesome has joined #ruby
xen0fon has joined #ruby
SteenJobs has joined #ruby
truenito has quit [Ping timeout: 256 seconds]
nettoweb has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
nobodyknows has joined #ruby
millerti has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
nobodyknows has quit [Client Quit]
mostlybadfly has joined #ruby
Shashikant86 has joined #ruby
jhack has joined #ruby
Shashikant86 has quit [Client Quit]
nettoweb has joined #ruby
nettoweb has quit [Client Quit]
_2easy has joined #ruby
_2easy has quit [Changing host]
_2easy has joined #ruby
thegriff has quit [Ping timeout: 260 seconds]
thegriff has joined #ruby
the_drow has joined #ruby
jhack has quit [Quit: jhack]
eblip has quit [Read error: Connection reset by peer]
irondocwatson has left #ruby ["WeeChat 1.6"]
kht has quit [Changing host]
kht has joined #ruby
jhack has joined #ruby
eblip has joined #ruby
frozengeek__ has quit [Quit: frozengeek__]
bmurt has joined #ruby
frozengeek__ has joined #ruby
frozengeek__ has quit [Read error: Connection reset by peer]
frozengeek___ has joined #ruby
Devalo has joined #ruby
SteenJobs has quit [Quit: SteenJobs]
Shashikant86 has joined #ruby
irondocwatson has joined #ruby
ramortegui has joined #ruby
Devalo has quit [Ping timeout: 258 seconds]
__Yiota has joined #ruby
irondocwatson has quit [Client Quit]
SteenJobs has joined #ruby
jameser has joined #ruby
anisha has quit [Quit: This computer has gone to sleep]
hutch34_ has joined #ruby
s2013 has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
cdg has joined #ruby
j3r0 has quit [Ping timeout: 256 seconds]
jameser has quit [Client Quit]
the_drow has quit [Quit: This computer has gone to sleep]
jameser has joined #ruby
hutch34 has quit [Ping timeout: 240 seconds]
saslam has joined #ruby
chouhoulis has joined #ruby
jshjsh has quit [Ping timeout: 240 seconds]
Kug3lis has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
the_drow has joined #ruby
Kug3lis has joined #ruby
irondocwatson has joined #ruby
saslam has quit [Ping timeout: 245 seconds]
SteenJobs has quit [Ping timeout: 240 seconds]
wugy has quit []
TheWhip has quit [Remote host closed the connection]
nettoweb has joined #ruby
radic has quit [Ping timeout: 240 seconds]
ruby-lang445 has joined #ruby
bentanweihao has quit [Remote host closed the connection]
<ruby-lang445>
after learning ruby, should i start learning rails and build web apps?
bentanweihao has joined #ruby
<ruby-lang445>
or build ruby application
Kug3lis has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
def_jam has joined #ruby
ben_____ has joined #ruby
eblip has quit [Ping timeout: 260 seconds]
charliesome has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
chouhoulis has quit [Remote host closed the connection]
chouhoulis has joined #ruby
tvw has quit [Ping timeout: 248 seconds]
SteenJobs has joined #ruby
ruler has joined #ruby
ben___ has quit [Ping timeout: 245 seconds]
terens has quit [Remote host closed the connection]
nobitano_ has joined #ruby
Kug3lis has joined #ruby
Tempesta has joined #ruby
xen0fon has quit [Ping timeout: 248 seconds]
polishdub has joined #ruby
naftilos76 has joined #ruby
nobitanobi has quit [Ping timeout: 252 seconds]
<tobiasvl>
ruby-lang445: depends what you want do do…
Guest22334 is now known as ged
ged is now known as Guest87566
Snickers has quit [Ping timeout: 240 seconds]
SteenJobs has quit [Quit: SteenJobs]
gnufied has joined #ruby
claudiug has quit [Quit: This computer has gone to sleep]
nankyokusei has joined #ruby
kht has quit [Ping timeout: 258 seconds]
tvw has joined #ruby
saslam_ has joined #ruby
<ruby-lang445>
@tobiasvl my objective to build web apps though
rippa has joined #ruby
hahuang61 has joined #ruby
tristanp has joined #ruby
a1fa has quit [Ping timeout: 258 seconds]
masondesu has joined #ruby
midacts has joined #ruby
<tobiasvl>
in rails?
a1fa has joined #ruby
<ruby-lang445>
haha yup
<ruby-lang445>
i finished buidling 1 project for ruby though
<ruby-lang445>
my personal game
the_drow has quit [Quit: This computer has gone to sleep]
millerti has joined #ruby
<tobiasvl>
well if you want to build web apps in rails I would advise you to learn rails :P
xen0fon has joined #ruby
<herwin>
tobiasvl: you genius ;)
<ruby-lang445>
yup im learning rails soon
<midacts>
Do you guys know of the best gem to use to talk to MSSQL servers using ruby? I'm guessing odbc might be the best option
saslam_ has quit [Read error: Connection reset by peer]
saslam_ has joined #ruby
<herwin>
altough I don't think there really is a point that you could define as "after learning ruby", there's always more to learn
<ruby-lang445>
oh kk
<ruby-lang445>
i was thinking building web apps is better than ruby application
saneax-_-|AFK is now known as saneax
hahuang61 has quit [Ping timeout: 240 seconds]
masondesu has quit [Client Quit]
blackbom1 has joined #ruby
<ruby-lang445>
@tobiasvl should i continue building ruby application or start learning rails ?
<tobiasvl>
I have no idea why you are asking this
<tobiasvl>
if you want to learn rails, why not learn rails?
<jokke>
with the `:strict` option, all properties are condisidered to have `"required": true` and all objects `"additionalProperties": false`with the `:strict` option, all properties are condisidered to have `"required": true` and all objects `"additionalProperties": false`
<jokke>
ups
blackmes1 has quit [Read error: Connection reset by peer]
_sfiguser has quit [Ping timeout: 240 seconds]
<jokke>
so my bad for not reading the docs :)
* herwin
quacks like a rubber duck
<jokke>
i would hope there was something that let me set additionalProperties to false for all objects..
Devalo has quit [Ping timeout: 255 seconds]
synthroid has joined #ruby
patarr has joined #ruby
vali_ has joined #ruby
StoneCypher has joined #ruby
alphor has joined #ruby
brent__ has joined #ruby
gagrio has quit [Quit: Leaving...]
redhedded1 has joined #ruby
pawnbox has quit [Remote host closed the connection]
pawnbox has joined #ruby
patarr has quit [Ping timeout: 256 seconds]
saslam_ has quit [Read error: Connection reset by peer]
Guest33 has joined #ruby
saslam_ has joined #ruby
Guest33 has quit [Client Quit]
saslam_ has quit [Read error: Connection reset by peer]
teclator has quit [Ping timeout: 240 seconds]
saslam_ has joined #ruby
_sfiguser has joined #ruby
ianmethyst has quit [Quit: WeeChat 1.6]
aufi has quit [Ping timeout: 252 seconds]
au has joined #ruby
ianmethyst has joined #ruby
mekeor- has quit [Quit: fully-automated luxury queer space communism – with free software!]
saslam_ has quit [Read error: Connection reset by peer]
saslam_ has joined #ruby
kikadisa has joined #ruby
<kikadisa>
Hey
<kikadisa>
If i split my code in some files
<kikadisa>
where should i mention my requirements ?
alexar has joined #ruby
<kikadisa>
I use some gem especially mysql
<kikadisa>
i should let it in my program
<kikadisa>
not in a class specific rregarding mysql function ?
claudiug has quit [Quit: This computer has gone to sleep]
mark_66 has quit [Remote host closed the connection]
agit0 has joined #ruby
siddart has quit [Ping timeout: 240 seconds]
saneax-_-|AFK is now known as saneax
bentanweihao has quit [Remote host closed the connection]
bentanweihao has joined #ruby
alexar has quit [Ping timeout: 240 seconds]
sid_fules has joined #ruby
Kug3lis has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
danieldocki has joined #ruby
conta has quit [Ping timeout: 245 seconds]
agit0 has quit [Ping timeout: 248 seconds]
croberts has joined #ruby
millerti has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
patarr has joined #ruby
dionysus69 has joined #ruby
<toretore>
kikadisa: do you mean where you should put your `require` calls?
<toretore>
you should `require` everything that is used inside a file in that file
<Yxhuvud>
or if you use bundler, require all gems in the Gemfile.
duderonomy has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
Zamyatin has joined #ruby
Shashikant86 has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
sdothum has quit [Quit: ZNC - 1.6.0 - http://znc.in]
nowz has joined #ruby
Kug3lis has joined #ruby
patarr has quit [Ping timeout: 240 seconds]
xall_ has joined #ruby
Shashikant86 has joined #ruby
last_staff has quit [Quit: last_staff]
foooobear has joined #ruby
eelster has joined #ruby
eelster has quit [Client Quit]
xall has quit [Ping timeout: 260 seconds]
Guest33 has joined #ruby
tolerablyjake has joined #ruby
synthroid has quit [Remote host closed the connection]
ferr1 has quit [Quit: WeeChat 1.6]
ferr2 has quit [Quit: WeeChat 1.6]
saslam__ has joined #ruby
<apeiros>
kikadisa: you might do well to just make your code a gem
<apeiros>
note: you don't have to publish your gem
claudiug has joined #ruby
solocshaw has joined #ruby
patarr has joined #ruby
pawnbox has quit [Remote host closed the connection]
saslam_ has quit [Ping timeout: 240 seconds]
claudiug has quit [Client Quit]
ishe_ua has quit [Remote host closed the connection]
TomyWork has quit [Ping timeout: 240 seconds]
minimalism has joined #ruby
millerti has joined #ruby
jaruga____ has joined #ruby
x00r__ has joined #ruby
Shashikant86 has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
sid_fules has quit [Quit: Leaving...]
jaruga____ has quit [Remote host closed the connection]
jaruga___ has quit [Read error: Connection reset by peer]
jaruga____ has joined #ruby
amclain has joined #ruby
patarr has quit [Ping timeout: 258 seconds]
Burgestrand has joined #ruby
andikr has quit [Remote host closed the connection]
<kikadisa>
o
vali_ has quit [Quit: My MacBook Air has gone to sleep. ZZZzzz…]
milardovich has quit [Remote host closed the connection]
<kikadisa>
apeiros: in fact it's just a script which grab some information and trasnform them for occasional uses
<kikadisa>
i split my code in multiple file
<kikadisa>
in my main file i add require_relative to this file
<apeiros>
kikadisa: yet you are solving all the things again which making it a gem solves.
<kikadisa>
but one of this script use mysql gem
solocshaw has quit [Ping timeout: 255 seconds]
<kikadisa>
should i put require mysql in my main program or in my file
tomphp has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
alexar has joined #ruby
zeroDi has joined #ruby
Kug3lis has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
AckZ has joined #ruby
<apeiros>
require statements belong into the file where you make use of the dependency
pawnbox has joined #ruby
enyo has quit [Ping timeout: 255 seconds]
Guest78156 is now known as ged
xall_ has quit [Read error: Connection reset by peer]
jhn has joined #ruby
saneax is now known as saneax-_-|AFK
nankyokusei has joined #ruby
Kug3lis has joined #ruby
SesMan has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
ged is now known as Guest79108
foooobear has quit [Quit: (null)]
pawnbox has quit [Ping timeout: 240 seconds]
phoo1234567 has joined #ruby
<kikadisa>
ok apeiros that's clear
<kikadisa>
Thanks you everyone even toretore & Yxhuvud
<kikadisa>
Bye
* kikadisa
Tchô à la prochaine !
nankyokusei has quit [Ping timeout: 255 seconds]
kodnin has quit [Ping timeout: 258 seconds]
JoshS has joined #ruby
kht has joined #ruby
<baweaver>
Mon français n'est pas bon, mais amusez-vous
Kug3lis has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
skweek has quit [Ping timeout: 260 seconds]
gusrub has joined #ruby
synthroid has joined #ruby
patarr has joined #ruby
jsrn_ has quit [Quit: Leaving]
milardovich has joined #ruby
maddmaxx has joined #ruby
pawnbox has joined #ruby
<sheepman>
anyone got any tips of a lightweight insecure hash function to use in Ruby? I'm using SHA256 but its way overkill currently so after something lighter :)
saslam__ has quit [Ping timeout: 255 seconds]
govg has joined #ruby
lenwood has joined #ruby
<dminuoso>
sheepman: What kind of hash are you looking for? Whats its purpose?
atmosx has quit [Quit: WeeChat 1.4]
<dminuoso>
sheepman: What characteristics do you require of it? What kind of data do you have?
<sheepman>
im basically using it to just create a unique ID based on a few strings
DoubleMalt has quit [Ping timeout: 260 seconds]
<sheepman>
i could concat all the strings together but it looks ugly
Burgestrand has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
patarr has quit [Ping timeout: 255 seconds]
<dminuoso>
sheepman: so you cant have collisions at all?
<apeiros>
sheepman: does it have to be repeatable across processes/runs?
frozengeek__ has quit [Remote host closed the connection]
<sheepman>
no collisions and yes repeatable
ramfjord has joined #ruby
<dminuoso>
sheepman: is it fine if hashes get reassigned?
<dminuoso>
sheepman: or do you need the mapping to be persisted and permanent?
<sheepman>
reassigned is ok i guess
kht has quit [Ping timeout: 240 seconds]
Tau has quit [Remote host closed the connection]
<sheepman>
i may just stick with sha256 tbh as the performance is killing it just seems way too much
<sheepman>
i kinda need a sha32 or something lol
<dminuoso>
sheepman: You either require a perfect hashing function, or a way to resolve collisions (such as cuckoo hashing).
<sheepman>
just need something one way i guess
<dminuoso>
Or enough entropy that collisions become unlikely, but you don't get well distributed hash functions outside cryptographic hashing functions.
<baweaver>
get_me_a_hash until all_hashes doesn't include that hash
<dminuoso>
sheepman: Look into the Pearson hash function.
<sheepman>
ok
<sheepman>
thanks all
<dminuoso>
Just as a random thing.
<dminuoso>
There's so many hash functions around.. :S
nobitano_ has quit [Remote host closed the connection]
blackmes1 has joined #ruby
saslam has joined #ruby
<sheepman>
yeah this is it, wasn't sure whats "light" as such
TomyLobo has joined #ruby
irondocwatson has quit [Ping timeout: 240 seconds]
<apeiros>
if by "light" you refer to cpu load, something like md5 or sha256 which have wide hardware support might actually be better than a simpler algorithm which doesn't
milardovich has quit [Remote host closed the connection]
mrconfused has joined #ruby
AndrewIsHere has joined #ruby
GinoManWorks has joined #ruby
blackmesa has joined #ruby
xall_ has joined #ruby
blackmes1 has quit [Ping timeout: 256 seconds]
s2013 has joined #ruby
tvw has quit [Read error: Connection reset by peer]
patarr has joined #ruby
sdothum has joined #ruby
<havenwood>
sheepman: What are the shortcomings for SHA256 in your use case? Is it related to speed, memory, output size, or just general feeling?
nettoweb has quit [Read error: Connection reset by peer]
<havenwood>
Use SHA3 since it's one better than SHA2. :-P
patarr has quit [Ping timeout: 240 seconds]
xall_ has quit [Ping timeout: 256 seconds]
moei has quit [Quit: Leaving...]
nettoweb has joined #ruby
montanonic has joined #ruby
TheWhip_ has joined #ruby
tolerablyjake has quit [Ping timeout: 255 seconds]
j3r0 has joined #ruby
TheWhip has quit [Ping timeout: 245 seconds]
TvL2386 has joined #ruby
thegriff has quit [Ping timeout: 240 seconds]
Yxhuvud has quit [Remote host closed the connection]
nobitanobi has joined #ruby
malconis has quit [Read error: Connection reset by peer]
Yxhuvud has joined #ruby
cdg has quit [Remote host closed the connection]
Andrew_TA has quit [Remote host closed the connection]
cjbottaro has joined #ruby
hahuang61 has joined #ruby
AndBobsYourUncle has joined #ruby
AndBobsYourUncle has quit [Remote host closed the connection]
AndBobsYourUncle has joined #ruby
patarr has joined #ruby
AustinMatherne has quit [Remote host closed the connection]
AustinMatherne has joined #ruby
qswz has joined #ruby
<qswz>
Hello, someone ever tried to install Discourse on heroku?
irondocwatson has quit [Ping timeout: 260 seconds]
havenwood has joined #ruby
havenwood has joined #ruby
TreyG has joined #ruby
brent__ has quit [Read error: Connection reset by peer]
spt0 has joined #ruby
Hink has left #ruby [#ruby]
unshadow has quit [Ping timeout: 240 seconds]
TreyG has quit [Client Quit]
xen0fon has quit [Quit: xen0fon]
jaequery has joined #ruby
gnufied has joined #ruby
TreyG has joined #ruby
sebastiansier has joined #ruby
sebastia_ has quit [Read error: Connection reset by peer]
jaequery has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
thegriff has quit [Ping timeout: 240 seconds]
ur5us has joined #ruby
prestorium has quit [Quit: Leaving]
StoneCypher has quit [Ping timeout: 240 seconds]
spt0 has quit [Ping timeout: 240 seconds]
Fin1te has joined #ruby
thegriff has joined #ruby
ace_33 has joined #ruby
j3r0 has quit [Ping timeout: 240 seconds]
blackbom1 has quit [Ping timeout: 240 seconds]
sepp2k has joined #ruby
enyo has joined #ruby
jenrzzz has joined #ruby
thegriff has quit [Ping timeout: 255 seconds]
blackbom1 has joined #ruby
x00r__ has quit [Read error: Connection reset by peer]
enyo has quit [Ping timeout: 240 seconds]
jshjsh has joined #ruby
gusrub has quit [Remote host closed the connection]
thegriff has joined #ruby
mrconfused has quit [Ping timeout: 255 seconds]
JoshS has quit [Ping timeout: 240 seconds]
gusrub has joined #ruby
montanonic has quit [Ping timeout: 248 seconds]
moei has joined #ruby
siddart has joined #ruby
synthroi_ has joined #ruby
spt0 has joined #ruby
malconis has quit [Read error: Connection reset by peer]
malconis_ has joined #ruby
StoneCypher has joined #ruby
gusrub has quit [Ping timeout: 240 seconds]
thegriff has quit [Ping timeout: 255 seconds]
synthroid has quit [Ping timeout: 260 seconds]
_sfiguser has quit [Ping timeout: 248 seconds]
BitWhisperer has quit [Ping timeout: 245 seconds]
Norm has joined #ruby
xen0fon has joined #ruby
malconis_ has quit [Write error: Connection reset by peer]
<Norm>
I’ve got a binary string whose .length == 19. But when I write it to a file with .write(string), it says it wrote 20 bytes. Any idea where the discrepency is coming from?
Davey has quit [Excess Flood]
tolerablyjake has joined #ruby
thegriff has joined #ruby
Fernando-Basso has quit [Quit: WeeChat 1.5]
ace_33 has quit [Remote host closed the connection]
DrCode has joined #ruby
ldnunes has quit [Quit: Leaving]
montanonic has joined #ruby
matp has quit [Remote host closed the connection]
<toretore>
Norm: gist?
thegriff has quit [Ping timeout: 240 seconds]
<Norm>
Coming right up
<havenwood>
Norm: Just to sanity check, is the #bytesize the same?
<toretore>
^
<Norm>
ooh, bytesize is 20, good call
matp has joined #ruby
<Norm>
let me finish this gist, you can probably point me toward the solution
Jayson_Virissimo has quit []
Devalo has joined #ruby
Davey has joined #ruby
Davey has joined #ruby
Davey has quit [Changing host]
<Norm>
i might have stumbled my way through it, thanks for the pointer though
<toretore>
at the very least, your "binary string" should be tagged as such, which is isn't if size != bytesize
thegriff has joined #ruby
<Norm>
tagged, how so?
<toretore>
with the correct encoding
Devalo has quit [Ping timeout: 240 seconds]
AndBobsYourUncle has quit []
<toretore>
the reason size != bytesize is because it tries to parse multiple bytes as one character
<Norm>
right
<Norm>
it seems to be sitting at UTF-8 now
vali__ has quit [Quit: My MacBook Air has gone to sleep. ZZZzzz…]
<sonOfRa>
Also, just for the sake of everyone using your software: There's really no good reason to use MD5 for anything when writing new software
mrconfused has quit [Ping timeout: 255 seconds]
nobitanobi has joined #ruby
shayan_ has joined #ruby
unshadow has joined #ruby
nankyokusei has joined #ruby
dkings has joined #ruby
enterprisey has quit [Remote host closed the connection]
nobitanobi has quit [Remote host closed the connection]
Shiro has joined #ruby
<Shiro>
H-hi there!
Shiro is now known as Guest98694
<Guest98694>
I'm trying to learn Ruby using Code Academy, and so far it's been great, but I am currently confused as to what Yield does. Could someone explain it to me? @_@
<baweaver>
icalo: typically ruby people put them in one file
biberu has quit [Read error: Connection reset by peer]
eelster has joined #ruby
<icalo>
baweaver: doesnt this blows up when the project has several dependencies? And if I want reuse one class I cannot just copy the file into a different project. Sounds strange. Do you know why the “one file” approach is preferred?
mrconfused has joined #ruby
Rodya_ has quit [Quit: Leaving...]
TvL2386 has quit [Quit: Ex-Chat]
thegriff has quit [Ping timeout: 248 seconds]
Tau has quit [Remote host closed the connection]
irondocwatson has joined #ruby
Tau has joined #ruby
workmad3 has joined #ruby
djbkd has quit [Remote host closed the connection]
djbkd has joined #ruby
irondocwatson has quit [Ping timeout: 258 seconds]
thegriff has joined #ruby
icalo has quit [Quit: icalo]
saslam has quit [Ping timeout: 258 seconds]
djbkd has quit [Ping timeout: 256 seconds]
mrconfused has quit [Ping timeout: 255 seconds]
enyo has joined #ruby
djbkd has joined #ruby
starkus has quit [Quit: Page closed]
mikeric has quit []
walterheck__ has quit [Remote host closed the connection]
enyo has quit [Ping timeout: 258 seconds]
Tau has quit [Remote host closed the connection]
harai_ has quit [Ping timeout: 255 seconds]
Lord_of_Life has quit [Excess Flood]
mrconfused has joined #ruby
synthroid has quit []
<Guest98694>
baweaver: Thank you for your link. I think I understand what yield is now
Guest23680 is now known as ged
Lord_of_Life has joined #ruby
ged is now known as Guest64586
VeryBewitching has quit [Quit: Konversation terminated!]
AndrewIsHere has quit []
Guest98694 has quit [Quit: Page closed]
thegriff has quit [Ping timeout: 260 seconds]
thegriff has joined #ruby
Ishido has quit [Quit: Roads? Where We're Going We Don't Need Roads.]
LoneHerm_ has joined #ruby
gajus has joined #ruby
millerti has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
whathappens has quit [Remote host closed the connection]
thegriff has quit [Ping timeout: 240 seconds]
whathappens has joined #ruby
millerti has joined #ruby
whathappens has quit [Remote host closed the connection]
harai_ has joined #ruby
whathappens has joined #ruby
millerti has quit [Client Quit]
brent__ has joined #ruby
millerti has joined #ruby
jenrzzz has quit [Ping timeout: 240 seconds]
millerti has quit [Client Quit]
pawnbox has joined #ruby
blackwind_123 has quit [Ping timeout: 240 seconds]
jenrzzz has joined #ruby
thegriff has joined #ruby
mrconfused has quit [Ping timeout: 255 seconds]
blackwind_123 has joined #ruby
LoneHerm_ has quit [Remote host closed the connection]
pawnbox has quit [Ping timeout: 258 seconds]
alibby1 has joined #ruby
alibby has quit [Read error: No route to host]
alibby has joined #ruby
ianmethyst has joined #ruby
saslam has joined #ruby
thegriff has quit [Ping timeout: 258 seconds]
alibby1 has quit [Ping timeout: 240 seconds]
Tau has joined #ruby
ianmethyst has quit [Quit: WeeChat 1.6]
malconis has joined #ruby
thegriff has joined #ruby
sebastiansier has quit [Remote host closed the connection]
ianmethyst has joined #ruby
hahuang61 has quit [Ping timeout: 256 seconds]
fuinho has joined #ruby
eelster has quit [Ping timeout: 255 seconds]
Tau has quit [Remote host closed the connection]
fuinho has quit [Remote host closed the connection]
Tau has joined #ruby
fuinhoo has joined #ruby
arquebus has joined #ruby
fuinhoo has quit [Remote host closed the connection]
Tau has quit [Remote host closed the connection]
teclator has quit [Ping timeout: 260 seconds]
thegriff has quit [Ping timeout: 255 seconds]
Tau has joined #ruby
Devalo has joined #ruby
Tau has quit [Remote host closed the connection]
Andrew_TA has quit [Remote host closed the connection]
nettoweb has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]