lidenskap has quit [Remote host closed the connection]
Yzguy has quit [Quit: I'm sleeping, go away.]
macoecho has quit [Read error: Connection reset by peer]
doodlehaus has joined #ruby
c355E3B has quit [Quit: Leaving]
<havenwood>
SinCabeza: It's just `SubsetSum.subset_sum values, want, max_seconds = nil`, look at the code.
<multi_io>
ah, forgot to run rbenv rehash
<SinCabeza>
havenwood: How can I see the source from the web? Is only possible when I download the gem?
<havenwood>
multi_io: That's usually the rbenv answer it seems. There's no #rbenv to point folk to. If you get bored some day checkout chruby and leave the world of shims behind.
<geeknik>
Could someone re-open https://bugs.ruby-lang.org/issues/10957? It was closed as fixed, I see the code was patched, but I can still trigger it after compiling from git source today.
<geeknik>
havenwood: I just cloned the entire repo and built it, didn't checkout any specific branch. ./ruby -v shows ruby 2.3.0dev (2015-04-11 trunk 50237) [x86_64-linux]
macoecho has quit [Client Quit]
scripore has quit [Remote host closed the connection]
<havenwood>
geeknik: Ah, so it's there for the one you built?
maximski has quit [Max SendQ exceeded]
<SinCabeza>
I was thinking about something using zip and join
<geeknik>
havenwood: If I run your command line, I get the uninitialized constant (NameError), but if I run my command line, I get 2.3.0. So, confusing. ;)
maximski has joined #ruby
maximski has quit [Max SendQ exceeded]
<havenwood>
geeknik: compare `which ruby` with `which ./ruby`
<geeknik>
the only ruby installed on this VM is in /home/xxx/ruby
maximski has joined #ruby
dx7_ has joined #ruby
dx7 has quit [Read error: No route to host]
yqt has quit [Ping timeout: 252 seconds]
maximski has quit [Max SendQ exceeded]
astrobunny has joined #ruby
<havenwood>
i can reproduce the segfault on yesterdays build, compiling now to try head
<geeknik>
havenwood: whoops, I typed your commandline in the wrong VM terminal. I get 2.3.0 now in the right terminal.
<geeknik>
I have like 3000 ssh sessions going at the same time. heh
<havenwood>
geeknik: aha, just a sanity check that you're on trunk - configuring now
<SinCabeza>
havenwood: that what I was thinking about, cycle is better than using * to create the array
apoplexy has quit [Ping timeout: 245 seconds]
silentpost has quit [Read error: Connection reset by peer]
<havenwood>
SinCabeza: I was just joking with the #each_with_object and #cycle. Just #map.
silentpost has joined #ruby
rixius_ has joined #ruby
malcolmva has joined #ruby
quimrstorres has quit [Remote host closed the connection]
vim_shimm has joined #ruby
mengu has quit [Ping timeout: 252 seconds]
<SinCabeza>
/lisp
attamusc has joined #ruby
<havenwood>
geeknik: Yup, segfault on trunk with: ruby -e '0..%w.'
coderhs has joined #ruby
coderhs has quit [Read error: Connection reset by peer]
Rollabunna has quit [Remote host closed the connection]
<geeknik>
havenwood: excellent.
Rollabunna has joined #ruby
<SinCabeza>
bye, time to go bed
OtterCoder has joined #ruby
<geeknik>
havenwood: Glad I came back to do another pass over Ruby. ;)
riotjones has quit [Ping timeout: 245 seconds]
Rollabunna has quit [Read error: No route to host]
Rollabunna has joined #ruby
<havenwood>
geeknik: I think your report should be sufficient to trigger it being reopened. You could check in #ruby-core but it's usually quite quiet there. Good catch!
<havenwood>
6 char segfault!
<geeknik>
Almost as good as the 1 char segfault in PHP5 that earned me CVE-2014-9427. ;)
<SinCabeza>
/part
SinCabeza has left #ruby [#ruby]
rixius_ has quit [Read error: Connection reset by peer]
gorpon has quit [Ping timeout: 272 seconds]
Pharaoh2 has joined #ruby
Soda has quit [Remote host closed the connection]
Pharaoh2 has quit [Client Quit]
rixius_ has joined #ruby
doodlehaus has quit [Remote host closed the connection]
ClosedGL has quit [Quit: Leaving]
dfinninger has joined #ruby
<geeknik>
havenwood: I posted in #ruby-core, thanks for your help and have a good evening
delianides has quit [Remote host closed the connection]
MXfive has joined #ruby
{orb} has quit [Quit: {orb}]
rixius_ has quit [Ping timeout: 255 seconds]
geeknik has left #ruby ["Closing Window"]
{orb} has joined #ruby
doodlehaus has joined #ruby
doodlehaus has quit [Remote host closed the connection]
<weaksauce>
would that just call to_sym on @obj centrx
<weaksauce>
or do something else
<dudedudeman>
centrx: I could do that and just do something like, @obj = gets.chomp?
<centrx>
yeah I agree, using objects as keys is a bad idea
markalanevans has joined #ruby
<centrx>
and can be slow, like using even a slow array as a key is much slower
<centrx>
*even a small array
Eiam_ has quit [Ping timeout: 265 seconds]
dx7_ has quit [Remote host closed the connection]
<weaksauce>
I guess in the first case it would call to_sym in the second just hash the object and use it as a key
<centrx>
dudedudeman, yes
<centrx>
dudedudeman, string key is good, or call to_sym on it if that makes sense
juanpablo____ has joined #ruby
<centrx>
?dude
<ruboto>
I don't know anything about dude
<dudedudeman>
@obj = gets.chomp.to_sym
<centrx>
dudedudeman, What is the input? A sentence?
<centrx>
dudedudeman, you may want to validate the input
gorpon has joined #ruby
sevvie has quit [Ping timeout: 245 seconds]
<dudedudeman>
the input will be a string entered from a text box in one of my forms
<centrx>
and why is it the key of a hash?
markalanevans has quit [Client Quit]
michael_mbp has quit [Excess Flood]
<centrx>
seems like it would be the value in a field, not the field name/key
<dudedudeman>
it doesn't have to be. i'm just searching for the best way to get input from text boxes x y z and matching them the appropiate columns in my two tables
juanpablo____ has quit [Ping timeout: 264 seconds]
gorpon has quit [Client Quit]
michael_mbp has joined #ruby
gorpon has joined #ruby
horsecowdog has quit [Remote host closed the connection]
<hfp>
I have another issue. I am writing a gem that uses rest-client and nokogiri. In my module,
charliesome has joined #ruby
<dudedudeman>
what issue are you running in to, hfp
<dudedudeman>
?
narsrim has joined #ruby
sevvie has joined #ruby
<hfp>
I am using RestClient.get('http://example.com') but my tests fail with uninitialized constant VoipmsRates::ControllerMethods::RestClient
<hfp>
dudedudeman: Sorry, the cat walked on the keyboard and pressed enter before I was done
marcoamo1 has joined #ruby
legit has quit [Quit: Leaving]
<dudedudeman>
ha! I wish i had a cat to walk on my keyboard. :(
<hfp>
I am using the Adhearsion framework but if it makes any difference and anyone knows it
CloCkWeRX has quit [Ping timeout: 250 seconds]
<hfp>
s/but//
Feyn has joined #ruby
<hfp>
I required rest-client and then my module in spec_helper, I would have expected RestClient to be assigned then?
zorak8 has quit [Read error: Connection reset by peer]
zorak8 has joined #ruby
weemsledeux has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
marcoamo1 has quit [Quit: WeeChat 1.1.1]
Rickmasta has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
pen has joined #ruby
<centrx>
Is VoipmsRates a class in rest-client?
<centrx>
Seems like that would be in your gem or something else
narsrim has quit []
<centrx>
the RestClient at the end is a child of the others, a subcategory
iotouch has quit [Ping timeout: 250 seconds]
iotouch has joined #ruby
jwalk has joined #ruby
<jwalk>
I'm trying to use refinements to override Hash#[] but for some reason it seems to be applying the refinement to non-hash classes such as NilClass
<jwalk>
I'm not sure if I'm doing it wrong or something
<ruboto>
pastebin.com loads slowly for most, has ads which are distracting and has terrible formatting.
<jwalk>
its pretty simple stuff
<centrx>
How would it affect NilClass? Are you calling nil[] or something?
sankaber has joined #ruby
<jwalk>
i dont know, but i get wierd errors like [] not defined on NillClass. And when i put puts in the refinement - it tells me the class is NilClass
iotouch has quit [Ping timeout: 256 seconds]
<centrx>
That means you have a nil in a variable that you thought had an objecet
<heftig>
your use of super is wrong
<heftig>
you're basically calling the parent method, then calling [] again on the result
michaeldeol has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<jwalk>
ah... refinements are new to me, I thought super in this context was the original method
iotouch has joined #ruby
<heftig>
I think you want super(k.to_s) || super(k.to_sym)
<heftig>
jwalk: it is
<jwalk>
I see.. That makes more sense
krisquigley has quit [Ping timeout: 250 seconds]
<centrx>
You're opening up an existing class, not inheriting from another class
<heftig>
or is it? I haven't used refinements before
<centrx>
If you defined a class MyHash < Hash
lidenskap has quit [Remote host closed the connection]
<centrx>
Refinements are just a way to confine behavior changes to specific areas in your code
<centrx>
So e.g. monkey-patching only affects one area of your code, not overriding Hash everywhere
RegulationD has quit [Ping timeout: 244 seconds]
<jwalk>
Yeah that was it. I got confused and used [] instead of ()
<jwalk>
replacing with () works fine
CloCkWeRX has joined #ruby
delianides has joined #ruby
r0bby_ has joined #ruby
quimrstorres has quit [Remote host closed the connection]
mitchellhenke has quit [Quit: Computer has gone to sleep.]
robbyoconnor has quit [Ping timeout: 240 seconds]
Igorshp has joined #ruby
<jwalk>
thanks for the help
<heftig>
centrx: super actually works as in the subclass case
<centrx>
yeah it looks like it prepends the refinement in the list of ancestor modules
<centrx>
it seems like it shouldn't work like that
dfinninger has joined #ruby
<centrx>
since doing the same thing elsewhere requires alias_method/_chain
<centrx>
Does make it more useful though
bim has joined #ruby
<centrx>
sometimes
bim is now known as Guest18072
<jwalk>
do i use self.method() to call other methods in the context of the refinement?
<jwalk>
or super.method()
sevvie has quit [Ping timeout: 256 seconds]
<jwalk>
i think it would be self - but i'm not sure
freestyl3r has quit [Quit: WeeChat 1.1.1]
<drocsid>
Trying to learn to use the net/http lib. I'm getting read_body called twice IOError.
<jwalk>
Also, whats a good way to make a spec for refinements?
fedexo has joined #ruby
horsecowdog has joined #ruby
fabrice31 has quit [Ping timeout: 252 seconds]
anthony has joined #ruby
davedev24_ has quit [Ping timeout: 245 seconds]
anthony is now known as Guest10328
<centrx>
jwalk, whether you use the parent definition or the refinement definition depends on what the method is supposed to do
<centrx>
jwalk, if you don't define a method in the refinement, but call self.method, it will just go up the chain to the parent method
hmsimha has quit [Ping timeout: 252 seconds]
davedev24_ has joined #ruby
Lilian has joined #ruby
maciejczyzewski has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
astrobunny has quit [Remote host closed the connection]
casshern2 has quit [Ping timeout: 250 seconds]
horsecowdog has quit [Remote host closed the connection]
<drocsid>
anybody have any ideas about the duplicate readbody? It says here http://apidock.com/ruby/Net/HTTPResponse/read_body Calling this method a second or subsequent time for the same HTTPResponse object will return the value already read. When I got the response did it get the body itself? response=http.request request
Lilian has left #ruby ["Leaving"]
hmsimha has joined #ruby
astrobunny has joined #ruby
iotouch has quit [Quit: This computer has gone to sleep]
Beoran__ has joined #ruby
lemur has quit [Remote host closed the connection]
iotouch has joined #ruby
maximski has joined #ruby
willharrison has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
Nuck has joined #ruby
speakingcode has joined #ruby
Beoran_ has quit [Ping timeout: 250 seconds]
speakingcode has quit [Remote host closed the connection]
<hfp>
centrx: It seems I needed to manually require it in the controller using that module. Not sure if there is a better way?
<hfp>
centrx: Sorry, I meant I have to require 'rest-client' in the module
sevvie has joined #ruby
wingedsnake has quit [Ping timeout: 240 seconds]
jottr_ has joined #ruby
ParmesanCaesar has joined #ruby
jottr has quit [Read error: Connection reset by peer]
riotjones has joined #ruby
willharrison has joined #ruby
Guest53782 has joined #ruby
lanemeyer has quit [Ping timeout: 256 seconds]
iasoon has quit [Ping timeout: 265 seconds]
r0bby_ is now known as robbyoconnor
jeramy_s has joined #ruby
<{orb}>
yes guys where is ruby for a beginning programmer?
<{orb}>
I need to know what will make me learn, exercises?
<drocsid>
tryruby is the site I'm familiar with.
<sweeper>
lol. just scared the crap out of my kids by telling them the story of herobrine
<zubov_>
free code school class ruby koans
ausloschung has joined #ruby
<ParmesanCaesar>
or just run the irb binary and work on implementing something
scripore has quit [Quit: This computer has gone to sleep]
<mozzarella>
musashi: try teh following:
<xxneolithicxx>
i think the left menu needs more contrast separation or some color differentiation
<mozzarella>
p method(:divmod).parameters
<xxneolithicxx>
and i think the overall background and the background of the individual sections are too close in color (but thats just my preference)
<shevy>
xxneolithicxx interesting. I kind of went from pages to pages, downloading gnutls, libnettle, libogg and lots more things... and that was the first page that was actually visually pleasing (I just downloaded ffmpeg-2.6.2, currently compiling it)
Rodya_ has quit [Quit: Leaving...]
krisquigley has quit [Ping timeout: 256 seconds]
<mozzarella>
musashi: tell us what it says
threh has joined #ruby
psy_ has joined #ruby
jason^ has quit [Quit: WeeChat 1.1]
RegulationD has quit [Ping timeout: 252 seconds]
<musashi>
Ok.
<xxneolithicxx>
shevy: its simplistic and better than some though so its got that going for it lol. its like a modern contemporary clean feel
x1337807x has joined #ruby
x1337807x has quit [Max SendQ exceeded]
x1337807x has joined #ruby
willharrison has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<shevy>
:)
delianides has quit [Read error: Connection reset by peer]
<shevy>
if you want to see competitors... gnutls wants libunbound... so I went to find it... https://unbound.net/download.html not so pleasing... but at least it is easily navigable
delianides has joined #ruby
<shevy>
what I hate most are pages where I can not quickly find what I am trying to find
<shevy>
it's like walking through a labyrinth, that world wide web.....
reinaldob has joined #ruby
astrobunny has quit [Remote host closed the connection]
<musashi>
mozzarella: im having trouble doing that because it's part of an application.
tosbourn has joined #ruby
Meow-J has joined #ruby
dc has joined #ruby
<ParmesanCaesar>
I wonder if we were the artificial intelligence created by the dinosaurs
dc has quit [Remote host closed the connection]
fabrice31 has joined #ruby
<shevy>
the dinosaurs were not great hackers
<ParmesanCaesar>
hue hue hue
<shevy>
it was too warm and there was too much oxygen in the air
<ParmesanCaesar>
AI begets AI
<xxneolithicxx>
was that why they were bigger? fuck i forget my grade school stuff
dc has joined #ruby
tosbourn has quit [Ping timeout: 272 seconds]
mitchellhenke has joined #ruby
gorpon has quit [Ping timeout: 244 seconds]
tkuchiki has joined #ruby
fabrice31 has quit [Ping timeout: 264 seconds]
vim_shimm has joined #ruby
lidenskap has joined #ruby
lethosor|away has quit [Quit: Connection closed for inactivity]
lemur has joined #ruby
<shevy>
dunno. I mean they required a lot of food logically, so there must have been a lot of plants too
x1337807_ has joined #ruby
<xxneolithicxx>
no well the oxygen did play a factor IIRC, similar to how theres some mount people in some country that are insanely short due to high elevation and lack of oxygen
<xxneolithicxx>
*mountain
<shevy>
the japanese?
<xxneolithicxx>
lol
<shevy>
:D
<shevy>
we are weird because we don't normally have fur
wldcordeiro has joined #ruby
tmk1108 has joined #ruby
bim has joined #ruby
sdothum has quit [Quit: ZNC - 1.6.0 - http://znc.in]
delianides has quit [Remote host closed the connection]
jottr_ has quit [Ping timeout: 272 seconds]
x1337807x has quit [Ping timeout: 256 seconds]
edwardly has quit [Read error: Connection reset by peer]
bim is now known as Guest81694
claptor has joined #ruby
willharrison has joined #ruby
<musashi>
mozzarella: yeah, i can't print the output. :/
mleung has joined #ruby
<Obfuscate>
xxneolithicxx: They're called pygmies, and such people are usually found in heavily forested areas and at low elevation...
<musashi>
Sometimes explaining your code can be a useful exercise.. I forget the name for the debugging strat where you read your code to someone
BlackGear has quit [Max SendQ exceeded]
Rollabunna has quit [Quit: Leaving...]
oo_ has quit [Remote host closed the connection]
Rollabunna has joined #ruby
BlackGear has joined #ruby
BlackGear has quit [Max SendQ exceeded]
<xxneolithicxx>
pair programming?
riotjones has quit [Ping timeout: 245 seconds]
<eam>
rubber ducking
BlackGear has joined #ruby
BlackGear has quit [Client Quit]
<Obfuscate>
If you pair two people together, as long as one of them still cares in the slightest, code quality tends to go up simply due to the embarrassment factor.
<xxneolithicxx>
wth, seriously, thats whats it called lol
<eam>
Obfuscate: two people in a pair -- one of them is learning for sure
<xxneolithicxx>
weak coders stay away for fear of posting crappy code
<eam>
xxneolithicxx: if you like learning you should find a way to enjoy teaching too
<xxneolithicxx>
but thats a dumb fear imo, its part of the learning process
colorisco has joined #ruby
<xxneolithicxx>
eam: i enjoy teaching, its just my fellow workers dont enjoy learning
<Obfuscate>
eam: If both are strong developers, there's not much point (unless perhaps one of them has given up on life and needs constant "motivation").
gr33n7007h has quit [Ping timeout: 245 seconds]
<eam>
strength is a magnitude but there are many directions :)
iamninja has joined #ruby
gr33n7007h has joined #ruby
<xxneolithicxx>
eam: confusius says?
<Obfuscate>
I have no argument. ;)
mburns is now known as mburns_
silentpost has quit [Read error: Connection reset by peer]
ohaibbq has joined #ruby
silentpost has joined #ruby
markholmes has joined #ruby
gr33n7007h has quit [Ping timeout: 246 seconds]
Igorshp has joined #ruby
Eiam_ has joined #ruby
d10n-work has quit [Quit: Connection closed for inactivity]
<mozzarella>
ponga: how does it handle eval? does it allow you to do low level stuff? do you have to compile everything every time?
Channel6 has quit [Quit: Leaving]
ta has joined #ruby
JoshGlzB_ has joined #ruby
<ponga>
mozzarella: dunno/ nope iirc/ yes and you build it to exec
<shevy>
browndawg yeah
JoshGlzBrk has quit [Ping timeout: 244 seconds]
<browndawg>
shevy: the type inference any good?
<shevy>
I did not try it out yet :)
<shevy>
I have way too much to do with ruby really
<mozzarella>
I don't know, man
<browndawg>
meh
<mozzarella>
another compiled managed language
<browndawg>
because that alone would be a great reason to explore
<browndawg>
crystal
Igorshp has joined #ruby
<ponga>
type is dynamic, and sometimes you need to manually declare type for parameters, to be safe
<mozzarella>
have you tried elixir?
<mozzarella>
the syntax is also similar to ruby
<ponga>
not yet
Takle has joined #ruby
<ponga>
for crystal, compiler guesses the type most of the time
Darryl___ has joined #ruby
oo_ has quit [Remote host closed the connection]
cefkamcau has joined #ruby
tosbourn has joined #ruby
<mozzarella>
you know something that elixir does and I wish ruby also did?
<ponga>
haven't tried elixir yet, so my answer is no
arescorpio has quit [Excess Flood]
<mozzarella>
10 / 3 returns a float, not some truncated integer
armyriad has quit [Quit: Leaving]
<ponga>
mozzarella: but for crystal i always exprienced free speed, varying from 3~7 times in execution for me
Igorshp has quit [Ping timeout: 256 seconds]
dx7 has joined #ruby
astrobunny has joined #ruby
juanpablo____ has joined #ruby
<mozzarella>
I'd rather use an unmanaged language like C or an interpreted language like ruby, I don't have much use for the stuff inbetween
<ponga>
for most of the time all i needed to do was to declare type for some variable(mostly parameters) and methods for array i.e. "arr.map_with_index" in crystal whereas i did "arr.map.with_index"
<ponga>
in ruby
eshiffob has quit [Ping timeout: 252 seconds]
oo_ has joined #ruby
tosbourn has quit [Ping timeout: 240 seconds]
charliesome has joined #ruby
<mozzarella>
you can't do "arr.map.with_index" in crystal?
lidenskap has quit [Remote host closed the connection]
x1337807x has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<ponga>
mozzarella: iirc it spat out error
<ponga>
i changed it to map_with_index
oo_ has quit [Remote host closed the connection]
dx7 has quit [Ping timeout: 256 seconds]
juanpablo____ has quit [Ping timeout: 256 seconds]
lidenskap has joined #ruby
<diegoviola>
isn't ruby trying to be faster already with things like rubinius by using LLVM, etc?
charliesome has quit [Quit: zzz]
psy_ has quit [Read error: No route to host]
tkuchiki has quit [Remote host closed the connection]
lidenskap has quit [Remote host closed the connection]
<mozzarella>
I really should give rubinius a try
tkuchiki has joined #ruby
<mozzarella>
but I'm extremely lazy
sevenseacat has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
JoshGlzB_ has quit [Ping timeout: 265 seconds]
Rickmasta has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
ponga has quit [Quit: Leaving...]
ponga has joined #ruby
JoshGlzBrk has joined #ruby
tkuchiki has quit [Ping timeout: 248 seconds]
fedexo has quit [Remote host closed the connection]
<shevy>
ERROR: While executing gem ... (Gem::Exception)
<shevy>
Unable to require openssl, install OpenSSL and rebuild ruby (preferred) or use non-HTTPS sources
<shevy>
so annoying :(
<shevy>
diegoviola mruby would promise to be super fast
RegulationD has joined #ruby
grindmodeon has joined #ruby
tkuchiki has joined #ruby
iotouch has joined #ruby
lavros has quit [Quit: leaving]
lavros has joined #ruby
krisquigley has quit [Ping timeout: 252 seconds]
_mak has left #ruby [".."]
zzing has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
RegulationD has quit [Ping timeout: 265 seconds]
Porfa has quit [Quit: porfa]
ghr has joined #ruby
aghalarp has joined #ruby
jeromelanteri has joined #ruby
Jackneill has joined #ruby
fabrice31 has joined #ruby
Takle has quit [Remote host closed the connection]
dseitz has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
Hounddog has joined #ruby
User458764 has joined #ruby
Hounddog has quit [Remote host closed the connection]
fabrice31 has quit [Ping timeout: 246 seconds]
iotouch has quit [Quit: This computer has gone to sleep]
oo_ has joined #ruby
Spami has quit [Quit: This computer has gone to sleep]
riotjones has joined #ruby
DerisiveLogic has quit [Remote host closed the connection]
lkba has joined #ruby
User458764 has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
roolo has joined #ruby
DavidDudson has joined #ruby
baash05 has joined #ruby
hanmac has quit [Ping timeout: 256 seconds]
ujihisa has quit [Ping timeout: 252 seconds]
antgel has joined #ruby
FernandoBasso has joined #ruby
Renich has joined #ruby
longfeet has quit [Ping timeout: 240 seconds]
riotjones has quit [Ping timeout: 265 seconds]
roshanavand has joined #ruby
<atmosx>
hello
<atmosx>
good morning shevy
roshanavand has quit [Read error: Connection reset by peer]
<musashi>
Hola
ohaibbq has quit [Quit: Leaving...]
iamjarvo has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
Pharaoh2 has joined #ruby
GlenK_ has joined #ruby
<musashi>
I'm showing my radio buttons correctly with "%input{type: 'radio', name: 'workout', value: workout.workout_id}" but I can't figure out how to preselect a radio button... Is it possible to do this?
tosbourn has joined #ruby
User458764 has joined #ruby
GlenK_ has left #ruby [#ruby]
hanmac has joined #ruby
<atmosx>
musashi: rails?
<Mon_Ouie>
checked: "chucked"? That seems to just be something that translates to HTML
lewix has joined #ruby
<musashi>
Atmosx:Sinatra
<shevy>
yo atmosx
ujihisa has joined #ruby
tosbourn has quit [Ping timeout: 250 seconds]
gsd has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<atmosx>
musashi: it is possible but could you offer a little bit more context.
wottam has joined #ruby
<diegoviola>
I really like Ruby, but not many jobs with ruby in my area unfortunately
<musashi>
atmosx: sure.. What can i do to provide that?
<atmosx>
musashi: I'd like to see the entire view file, post it on github (gist)
<atmosx>
then show me (screenshot) what exactly you would like to accomplish.
Joufflu has quit [Read error: Connection reset by peer]
<musashi>
Why do you have the first value = test there?
jimms has joined #ruby
<musashi>
Just for demonstration/testing?
jhass has joined #ruby
<apeiros>
atmosx: equals? is core ruby. it's on Object even. it is used for object identity.
browndawg has quit [Ping timeout: 264 seconds]
<apeiros>
(should really be called same?, but that's another story)
<apeiros>
>> a = "hi"; [a.equals?("hi"), a.equals?(a)]
<ruboto>
apeiros # => undefined method `equals?' for "hi":String (NoMethodError) ...check link for more (https://eval.in/312336)
<apeiros>
oooh, equal?, not equals?, sorry
dx7 has joined #ruby
<apeiros>
meh, I should fully wake up first. I see musashi even wrote "equals", not "equal?". sorry. never mind me :)
juanpablo____ has joined #ruby
<musashi>
Hey all good
sigurding has joined #ruby
<musashi>
I just got it completely working. :) thanks much
silentpost has quit [Read error: Connection reset by peer]
lemur has quit [Remote host closed the connection]
silentpost has joined #ruby
Pupeno has joined #ruby
<atmosx>
apeiros: morning
<atmosx>
musashi: good :-)
<apeiros>
moin atmosx :)
jayeshsolanki has joined #ruby
roshanavand has joined #ruby
<baash05>
be careful with equal? it is not the same as == or eql?
dx7 has quit [Ping timeout: 248 seconds]
juanpablo____ has quit [Ping timeout: 256 seconds]
antgel has quit [Ping timeout: 244 seconds]
antgel has joined #ruby
<wasamasa>
no
user083 has joined #ruby
<wasamasa>
there's pointer equality and structural equality
<wasamasa>
and stuff in-between those
<wasamasa>
I suspect eql? would qualify for that
towski_ has joined #ruby
<wasamasa>
aha, == is structural equality and implemented by specific classes, eql? is pointer equality and implemented by Object, equal? should be the in-between one gem authors need to write themselves
<apeiros>
that is, <=> returning zero implies == being true
<baash05>
That really nails it down well.
Renich has quit [Quit: leaving]
<wasamasa>
wat
<apeiros>
you even get == from defining <=> and including Comparable
<apeiros>
if your object does not implement <=>, == should be equivalent to eql?
lewix has quit [Remote host closed the connection]
<baash05>
unless your object is a number :) then they == is not the same as eql?
<baash05>
1.eql? 1.0 #=> false
<apeiros>
baash05: numbers have <=>
<apeiros>
and == is in terms of <=>
<baash05>
I love finding things like this out.. often they don't help, but once in a while they really do
bkxd has joined #ruby
iotouch has joined #ruby
psy_ has joined #ruby
DeBot has joined #ruby
<baash05>
right numbers have <=> but == is not the same as eql? for numbers of different types.
lkba has quit [Ping timeout: 248 seconds]
<baash05>
because eql? won't convert float to int
<apeiros>
you may want to reread what I wrote ;-)
<baash05>
Ah.. Yeah.. I read it slower.
Pharaoh2 has quit [Disconnected by services]
Pharaoh2_ has joined #ruby
browndawg has joined #ruby
astrobunny has quit [Remote host closed the connection]
krisquigley has joined #ruby
RegulationD has joined #ruby
quimrstorres has joined #ruby
Pharaoh2_ has quit [Ping timeout: 250 seconds]
lavros has quit [Ping timeout: 248 seconds]
lavros has joined #ruby
delianides has joined #ruby
krisquigley has quit [Ping timeout: 244 seconds]
iotouch has quit [Quit: This computer has gone to sleep]
RegulationD has quit [Ping timeout: 265 seconds]
_1_waqas has joined #ruby
_1_waqas has quit [Remote host closed the connection]
ponga has quit [Quit: Leaving...]
delianides has quit [Ping timeout: 244 seconds]
predator117 has quit [Ping timeout: 252 seconds]
predator117 has joined #ruby
grindmodeon has quit [Quit: Leaving.]
fabrice31 has joined #ruby
baash05 has quit [Ping timeout: 264 seconds]
predator117 has quit [Ping timeout: 246 seconds]
<musashi>
What is happening in this code? "Workout_models.map(&:attribute)"? Spefically, what is the &:attribute?
aghalarp has quit [Read error: Connection reset by peer]
lobolars has joined #ruby
aghalarp has joined #ruby
<jhass>
x = proc { }; models.map(&x) # do you understand this?
<musashi>
No sir
fabrice31 has quit [Ping timeout: 250 seconds]
<jhass>
models.map {|model| model.attribute } # but this, right?
<musashi>
Neither the proc nor the &x
<musashi>
That creates an array with all the attributes in it?
Billias has quit [Ping timeout: 256 seconds]
<jhass>
yeah
bkxd has quit [Ping timeout: 256 seconds]
bkxd has joined #ruby
aghalarp has quit [Client Quit]
<jhass>
.map(&:attribute) is shortcut to this
<jhass>
it calls to_proc on the symbol, converts it into a block and passes it to the method
quimrstorres has quit [Remote host closed the connection]
<jhass>
the proc returned by Symbol#to_proc calls the method with the name of the symbol on the first argument passed to the proc
A205B064 has quit [Ping timeout: 252 seconds]
<musashi>
O.o
predator117 has joined #ruby
<musashi>
Lmao i thought i had a clue until that one.. What does the & do?
<jhass>
it does what I just wrote
CorpusCallosum has joined #ruby
<musashi>
It alone does that?
<jhass>
the & is the operator that does that, like the * in 1 * 2 is the operator that does the multiplication
<jhass>
it's okay to remember .map(&:foo) is a shortcut to .map {|x| x.foo } for now
<jhass>
so you're in rails?
greenbagels has quit [Quit: Leaving]
Billias has joined #ruby
lidenskap has quit [Remote host closed the connection]
<musashi>
Sinatra
<jhass>
but with activerecord?
<musashi>
God the latter is so much more clear to me.
<jhass>
it doesn't explain how it works though ;)
Hijiri has quit [Ping timeout: 265 seconds]
<musashi>
No active record i believe
bjeanes_ is now known as bjeanes
<jhass>
what's your ORM then?
GreyHands has joined #ruby
<musashi>
Looking
Hijiri has joined #ruby
jottr_ has joined #ruby
<musashi>
Im including active support so it must be active record?
jimms has quit [Ping timeout: 252 seconds]
riotjones has joined #ruby
roshanavand has quit [Remote host closed the connection]
<jhass>
no
<jhass>
if you use activerecord you also get activesupport, but not the other way around
<musashi>
Possibly sequel extension
<jhass>
mkay
lobolars has quit [Ping timeout: 256 seconds]
casshern2 has joined #ruby
<jhass>
and you call .map on a Sequel::Model ?
jottr_ has quit [Ping timeout: 250 seconds]
towski_ has quit [Remote host closed the connection]
Parmesan1aesar has quit [Ping timeout: 265 seconds]
<musashi>
Trying to determine that
anaeem1 has joined #ruby
aghalarp has joined #ruby
<jhass>
well, what's Workout_models? entirely made up code?
riotjones has quit [Ping timeout: 256 seconds]
<musashi>
Yeah
oddskill_away is now known as oddskill
<jhass>
ah, don't make up code
<jhass>
that usually makes it harder to help you
<musashi>
Heh heh
Takle has joined #ruby
<musashi>
I'm gonna keep reading and then ask again later when i have a better understanding.
<musashi>
Ty again
ponga has joined #ruby
aghalarp has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
ponga has quit [Client Quit]
User458764 has joined #ruby
bim has joined #ruby
bim is now known as Guest94149
predator117 has quit [Ping timeout: 250 seconds]
yetone has joined #ruby
predator117 has joined #ruby
jimms has joined #ruby
Guest94149 has quit [Remote host closed the connection]
gauke has joined #ruby
Takle_ has joined #ruby
jimms has quit [Remote host closed the connection]
Hijiri has quit [Ping timeout: 252 seconds]
Takle has quit [Ping timeout: 264 seconds]
ghr has quit [Ping timeout: 250 seconds]
jheg has quit [Quit: jheg]
quimrstorres has joined #ruby
govg has quit [Quit: leaving]
jimms has joined #ruby
Dakuan has quit [Remote host closed the connection]
<atmosx>
wtf, my computer just logged me out. hackers!
Dakuan has joined #ruby
<atmosx>
truth to be told with all that shit-load of network connections required by osx you can't do proper network monitoring. Not even with littleSnitch.
zotherstupidguy has quit [Ping timeout: 255 seconds]
MXfive has joined #ruby
MXfive has quit [Client Quit]
gauke has quit [Ping timeout: 256 seconds]
Dakuan has quit [Remote host closed the connection]
User458764 has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
gauke has joined #ruby
reinaldob has joined #ruby
coderhs has quit [Ping timeout: 250 seconds]
wottam has joined #ruby
reinaldob has quit [Remote host closed the connection]
sevenseacat has joined #ruby
jenrzzz has joined #ruby
theotherstupidgu has joined #ruby
elaptics_away is now known as elaptics
maciejczyzewski has joined #ruby
gitup has joined #ruby
gauke has quit [Quit: gauke]
astrobunny has joined #ruby
oo_ has quit [Remote host closed the connection]
roshanavand has joined #ruby
The_Phoenix has joined #ruby
lkba has joined #ruby
User458764 has joined #ruby
Hijiri has joined #ruby
sigurding has quit [Quit: sigurding]
mengu has joined #ruby
cpt_yossarian has quit [Ping timeout: 256 seconds]
ghr has joined #ruby
astrobunny has quit [Ping timeout: 272 seconds]
exadeci has joined #ruby
mengu has quit [Read error: Connection reset by peer]
mengu has joined #ruby
The_Phoenix has quit [Ping timeout: 248 seconds]
coderhs has joined #ruby
User458764 has quit [Ping timeout: 272 seconds]
anaeem___ has joined #ruby
lordkryss has joined #ruby
ghr has quit [Ping timeout: 246 seconds]
bim has joined #ruby
mengu has quit [Remote host closed the connection]
juanpablo____ has quit [Ping timeout: 245 seconds]
dx7 has quit [Ping timeout: 256 seconds]
jottr_ has quit [Ping timeout: 272 seconds]
antgel has joined #ruby
turtil has quit [Quit: WeeChat 1.1.1]
baash05 has joined #ruby
Lopson has joined #ruby
Takle has joined #ruby
anaeem1_ has joined #ruby
mitchellhenke has quit [Quit: Computer has gone to sleep.]
AlexRussia has quit [Ping timeout: 252 seconds]
Takle_ has quit [Ping timeout: 252 seconds]
AlexRussia has joined #ruby
ponga has joined #ruby
sunny__ has joined #ruby
sunny__ is now known as hyto
hyto has left #ruby [#ruby]
jenrzzz has quit [Ping timeout: 250 seconds]
silentpost has quit [Read error: Connection reset by peer]
silentpost has joined #ruby
bluOxigen has joined #ruby
havenwood has quit [Remote host closed the connection]
<Lopson>
Hi everyone! I'm trying to build a gem's native extensions, but it's giving me some errors. I'd like to change the arguments used when GCC's called, but I don't really know how to do it in the extconf.rb file. How do I set my own "warnflags" and "CFLAGS" values?
davidhq has joined #ruby
<Mon_Ouie>
Change the $CFLAGS global variable
spider-mario has joined #ruby
krisquigley has joined #ruby
<Lopson>
And how would I go about changing the warnflags in the generated Makefile, Mon_Ouie?
RegulationD has joined #ruby
Guest47272 has quit [Remote host closed the connection]
<Mon_Ouie>
Not sure, I don't know if there's a variable used to generate them as well
jayeshsolanki has quit [Quit: bye!]
<Lopson>
I see, thanks Mon_Ouie.
krisquigley has quit [Ping timeout: 248 seconds]
RegulationD has quit [Ping timeout: 255 seconds]
sevenseacat has quit [Quit: Me dun like you no more.]
iss has joined #ruby
scripore has joined #ruby
<iss>
hi
<jhass>
hi
sigurding has quit [Quit: sigurding]
pagios has joined #ruby
iss has quit [Client Quit]
Dakuan has joined #ruby
panga has joined #ruby
elaptics is now known as elaptics_away
fabrice31 has joined #ruby
elaptics_away is now known as elaptics
ponga has quit [Ping timeout: 265 seconds]
maximski has joined #ruby
vivekananda has quit [Ping timeout: 240 seconds]
riotjones has joined #ruby
iasoon has joined #ruby
Dakuan has quit [Ping timeout: 264 seconds]
jimms has quit [Remote host closed the connection]
axilla has joined #ruby
nszceta has joined #ruby
fabrice31 has quit [Ping timeout: 255 seconds]
michael_mbp has quit [Excess Flood]
elaptics is now known as elaptics_away
DEA7TH has joined #ruby
mengu__ has joined #ruby
scripore has quit [Quit: This computer has gone to sleep]
scripore has joined #ruby
jokke has joined #ruby
michael_mbp has joined #ruby
<panga>
"Matz noted that so-called “optional” typing is sort of infectious: in any real program, “optional” static typing quickly becomes static typing with 99% coverage"
<panga>
static ruby?
* panga
is speechless
bkxd has quit [Quit: Reconnecting]
riotjones has quit [Ping timeout: 264 seconds]
bkxd has joined #ruby
scripore has quit [Client Quit]
<Beoran__>
panga, type checking can be done by a sufficiently advanced compiler. Not for Ruby though but for certain languages...
snapcase has joined #ruby
tkuchiki has joined #ruby
jimms has joined #ruby
reinaldob has joined #ruby
wingedsnake has quit [Ping timeout: 264 seconds]
ghr has joined #ruby
scripore has joined #ruby
reinaldob has quit [Remote host closed the connection]
scripore has quit [Client Quit]
grindmodeon has joined #ruby
mostlybadfly has joined #ruby
sd_neil__ has quit [Ping timeout: 246 seconds]
robustus has quit [Ping timeout: 255 seconds]
psy_ has quit [Ping timeout: 248 seconds]
psy_ has joined #ruby
ghr has quit [Ping timeout: 252 seconds]
jimms has quit [Ping timeout: 244 seconds]
bim has joined #ruby
bim is now known as Guest94421
robustus has joined #ruby
jimms has joined #ruby
tosbourn has joined #ruby
ghr has joined #ruby
jottr_ has joined #ruby
jimms has quit [Ping timeout: 252 seconds]
tosbourn has quit [Ping timeout: 264 seconds]
tgunr has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
jottr_ has quit [Ping timeout: 248 seconds]
serivich has joined #ruby
yetone has quit [Max SendQ exceeded]
jimms has joined #ruby
ujjain has joined #ruby
banister has joined #ruby
<Lopson>
I've changed the CFLAGS variable, yet whenever I try to compile a gem's native extension, it simply ignores the value of this variable. Does anyone know why?
robustus has quit [Ping timeout: 264 seconds]
maximski_ has joined #ruby
jimms has quit [Read error: Connection reset by peer]
jimms has joined #ruby
kirun has joined #ruby
psy_ has quit [Ping timeout: 250 seconds]
kevinying has joined #ruby
maximski has quit [Ping timeout: 248 seconds]
<jhass>
did you export it? sometimes that helps. Anyway, usually this is specific to the gem
DEA7TH has quit [Changing host]
DEA7TH has joined #ruby
diegoviola has quit [Quit: WeeChat 1.1.1]
stef204 has joined #ruby
psy_ has joined #ruby
bkxd has quit [Ping timeout: 276 seconds]
<jhass>
!unmute merdam
m8 has joined #ruby
bruno- has joined #ruby
bruno- has quit [Client Quit]
musashi has quit [Quit: Connection closed for inactivity]
LudicrousMango has joined #ruby
bkxd has joined #ruby
roshanavand1 has joined #ruby
arrnas has joined #ruby
roshanavand has quit [Ping timeout: 246 seconds]
jimms has quit [Read error: Connection reset by peer]
jimms has joined #ruby
lolmaus has joined #ruby
leafybasil has quit [Remote host closed the connection]
robustus|Off has joined #ruby
robustus|Off is now known as robustus
bruno- has joined #ruby
ujjain has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<banister>
jhass idk about germany (i think you guys are still rocking to david hasselhoff's music from the 80s) but that joke is no longer consider funny in the english speaking world ;)
reinaldob has joined #ruby
lkba has quit [Ping timeout: 245 seconds]
<jhass>
good, I don't like to be funny
reinaldob has quit [Remote host closed the connection]
<jhass>
pagios: I wonder if you even did any research before asking
<pagios>
jhass: i am asking if the angular implementation of RSA works with ruby RSA
silentpost has quit [Read error: Connection reset by peer]
<jhass>
pagios: I don't think you should touch crypto if you ask such a question
<pagios>
ok
<jhass>
at least not for anything that's in any remote way important
silentpost has joined #ruby
duckpunch has joined #ruby
uri_ has joined #ruby
ParmesanCaesar has joined #ruby
iotouch has quit [Quit: This computer has gone to sleep]
N0Lif3 has joined #ruby
jayeshsolanki has joined #ruby
triangles has joined #ruby
<triangles>
Was hoping someone could give me a quick tip. I'm trying to delete an element from a hash, but by using its value, not its key. What's the preferred way to do this?
scripore has joined #ruby
ParmesanCaesar has quit [Ping timeout: 245 seconds]
<triangles>
I couldn't see a method for it in the documentation, so would I use select block, or two inversions?
lkba has joined #ruby
bruno-_ has quit [Quit: Lost terminal]
ndrei_ has quit [Ping timeout: 252 seconds]
bruno-_ has joined #ruby
<triangles>
Or delete_if, I suppose?
lkba_ has quit [Ping timeout: 256 seconds]
bruno-_ has quit [Client Quit]
daynaskully has quit [Ping timeout: 264 seconds]
<ytti>
hash.delete hash.key(value)
krisquigley has joined #ruby
<triangles>
Damn, I missed that one. Thanks ytti.
<jhass>
triangles: you're sure you made your mapping the right way around though?
<triangles>
jhass: I'm usually deleting/addressing by key, it's just a special case where I have to access by value
anaeem1_ has quit [Remote host closed the connection]
<jhass>
kk, just checking ;)
riotjones has joined #ruby
roshanavand has joined #ruby
bruno-_ has joined #ruby
reinaldob has joined #ruby
roshanavand1 has quit [Ping timeout: 264 seconds]
reinaldob has quit [Remote host closed the connection]
krisquigley has quit [Ping timeout: 252 seconds]
anaeem1 has joined #ruby
anaeem1 has quit [Remote host closed the connection]
Guest24 has quit [Ping timeout: 272 seconds]
fabrice31 has joined #ruby
riotjones has quit [Ping timeout: 248 seconds]
lele has joined #ruby
BTRE has quit [Ping timeout: 246 seconds]
BTRE has joined #ruby
fabrice31 has quit [Ping timeout: 264 seconds]
amystephen has joined #ruby
<hfp>
Hey all, I would need a bit of advice. I am writing a module that fetches the per minute rate for a given phone number from an API. If it finds a rate, it will return a float for that rate. If it doesn't find the rate, it will return -1. Is this the right way of handling the "rate not found" case?
<jhass>
hfp: doesn't sound right no
<jhass>
if not found is a rare case and should probably make a user requested action fail, raise
<jhass>
else return nil
LudicrousMango has quit [Remote host closed the connection]
<hfp>
ah ok I thought `nil` would be like silently failing and wasn't good
<hfp>
Thanks jhass
<jhass>
hfp: nil is falsey, so the caller can easily check for it
<jhass>
rate = get_rate; if rate; do_it; else; nope_no_idea; end;
<jhass>
or rate = get_rate || default_value
delianides has quit [Remote host closed the connection]
sdothum has joined #ruby
ismaelga has joined #ruby
reinaldob has joined #ruby
reinaldob has quit [Remote host closed the connection]
dfinninger has joined #ruby
<hfp>
makes sense, thhanks
mist__ is now known as mist
tosbourn has joined #ruby
lxsameer has quit [Quit: Leaving]
jottr_ has joined #ruby
sankaber has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
ringarin has joined #ruby
tosbourn has quit [Ping timeout: 248 seconds]
haxrbyte has joined #ruby
dx7 has joined #ruby
jottr_ has quit [Ping timeout: 276 seconds]
Rickmasta has joined #ruby
lethosor|away has joined #ruby
lethosor|away is now known as lethosor
ghr has joined #ruby
reinaldob has joined #ruby
reinaldob has quit [Remote host closed the connection]
maximski has joined #ruby
zz_AlphaTech is now known as AlphaTech
maximski has quit [Max SendQ exceeded]
maximski has joined #ruby
haxrbyte has quit [Quit: Leaving...]
maximski has quit [Max SendQ exceeded]
maximski has joined #ruby
penzur has joined #ruby
wingedsnake has joined #ruby
maximski has quit [Max SendQ exceeded]
maximski has joined #ruby
roshanavand1 has joined #ruby
haxrbyte has joined #ruby
maximski has quit [Max SendQ exceeded]
roshanavand has quit [Ping timeout: 248 seconds]
maximski has joined #ruby
maximski has quit [Max SendQ exceeded]
<ohcibi>
i have an array of objects... how can I get a specific object by a certain property of that object? I found that one could use any? for this, which I had expected as well, however any? does only return true or false.. whats the current way to do this?
<jhass>
shevy: no, binary data printed to the screen
<phale>
this is the color data
<shevy>
aaah
codeitagile has joined #ruby
<Mon_Ouie>
To deal with binary formats, you'll often want to use String#unpack
konsolebox has joined #ruby
cpt_yossarian has joined #ruby
maximski has joined #ruby
ismaelga has joined #ruby
maximski has quit [Max SendQ exceeded]
Feyn has quit [Quit: Leaving]
maximski has joined #ruby
maximski has quit [Max SendQ exceeded]
chinmay_dd has joined #ruby
jimms has joined #ruby
maximski has joined #ruby
nettoweb has joined #ruby
scripore has joined #ruby
maximski has quit [Max SendQ exceeded]
ndrei has quit [Ping timeout: 272 seconds]
jimms_ has quit [Read error: Connection reset by peer]
riotjones has joined #ruby
konsolebox has quit [Client Quit]
maximski has joined #ruby
ndrei has joined #ruby
astrobunny has joined #ruby
maximski has quit [Max SendQ exceeded]
<phale>
hmm
fabrice31 has joined #ruby
<phale>
how dod i use unpack for this specific binary color code
maximski has joined #ruby
<ytti>
you reverse engineer the format or find its documents
<ytti>
you could start reversing by changing bits
<ytti>
and see how it impacts output
maximski has quit [Max SendQ exceeded]
silentpost has quit [Read error: Connection reset by peer]
centrx has joined #ruby
monod has joined #ruby
silentpost has joined #ruby
oo_ has joined #ruby
ParmesanCaesar has joined #ruby
fabrice31 has quit [Ping timeout: 264 seconds]
nettoweb has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
wingedsnake has quit [Ping timeout: 264 seconds]
timanema has quit [Ping timeout: 245 seconds]
jheg has joined #ruby
<shevy>
Detective phale is floating about
CloCkWeRX has quit [Quit: Leaving.]
<phale>
no im crying
riotjones has quit [Ping timeout: 252 seconds]
delianides has joined #ruby
lavros has joined #ruby
enebo has joined #ruby
ParmesanCaesar has quit [Ping timeout: 250 seconds]
<shevy>
haha
<shevy>
remember, for any problem out there
<shevy>
there is a simple solution
<phale>
yea
<jhass>
shevy: how about world peace?
bobbrez has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
lele is now known as Guest24
<shevy>
jhass well, that's harder because as long as there are incentives to go to war it'll happen, so one would have to take out the profit from war first, which I am unsure if this is feasible
Azure has quit [Ping timeout: 248 seconds]
gwm_ has joined #ruby
gwm_ has left #ruby [#ruby]
ascarter has joined #ruby
jimms has quit [Read error: Connection reset by peer]
<shevy>
hmm
<shevy>
can I write firefox extensions in opal? anyone happens to know that?
jimms has joined #ruby
jimms has quit [Read error: Connection reset by peer]
roolo has quit [Remote host closed the connection]
jimms has joined #ruby
freestyl3r has joined #ruby
reinaldob has joined #ruby
<freestyl3r>
hello. i have a class method that needs to call an instance method. can it be done or do i need to make the instance method a class one as well?
<shevy>
depends; if you have initialized your object, you could just call the method on said object
<undeadaedra>
you can pass the instance to the class method as argument
triangles3 has joined #ruby
siaw23 has left #ruby [#ruby]
<shevy>
p First.insult obviously won't work as this is a class method
<shevy>
and you have no instance of class First anywhere in that code
<shevy>
you could define a class method, and have an instance method call it
enebo has quit [Ping timeout: 265 seconds]
<freestyl3r>
i do not want to create an instance of this class ever. i want people to only be able to call First.greet and hide from the my helper functions like insult
Guest94421 has quit [Remote host closed the connection]
<shevy>
hiding class methods?
jimms has quit [Ping timeout: 255 seconds]
Hijiri has quit [Ping timeout: 252 seconds]
<centrx>
What is this class for? Why no instances of it?
dfinninger has joined #ruby
triangles2 has quit [Ping timeout: 240 seconds]
<freestyl3r>
ok i'll try to reword my question (sorry my english is not very good)
phale has left #ruby ["Leaving"]
<centrx>
Doesn't sound like it should be a class
<shevy>
that is the first time that I hear that someone is trying to hide a class method :)
<shevy>
normally I'd hear that only for instance methods with public vs. private
<shevy>
you could try to use the keyword private
<freestyl3r>
i want the First class to only have one visible class method. the greet one. i want to be able to use helper methods but i don't want those to be visible to others
<freestyl3r>
(others = outside the class scope)
justin_pdx has joined #ruby
willharrison has joined #ruby
Hijiri has joined #ruby
<undeadaedra>
Easiest way would be to have instance methods, as they can be private
<undeadaedra>
Then, if you want only one instance of your object, make it a Singleton
reinaldob has quit [Remote host closed the connection]
<freestyl3r>
so, there is no way without creating class instances afaik
Megtastique has joined #ruby
ParmesanCaesar has joined #ruby
<shevy>
yeah I don't think I have heard of access restriction in regards to class-level methods before
<shevy>
you define a method and it is usually callable
MatthewsFace has quit [Remote host closed the connection]
<shevy>
have you tried class << self; private yet?
<shevy>
I mean I never tried myself, I never would have had that idea
Hijiri has quit [Ping timeout: 245 seconds]
<freestyl3r>
since the gem i'm trying to contribute makes classes but never makes any objects with them, does modules sound a better design decision?
<shevy>
not really
<shevy>
the only difference will be that you can "include" a module, which you can't with a class
<shevy>
well actually centrx is right
<shevy>
a module would seem more logical here
<centrx>
yeah if there's no instance
delianides has quit [Ping timeout: 256 seconds]
astrobunny has quit [Remote host closed the connection]
Hijiri has joined #ruby
<freestyl3r>
so, inside a module can you hide certain methods from those that include the module?
<centrx>
no
<centrx>
what's the point of all this
<shevy>
you can't ever really hide anything in ruby
<shevy>
there is .public_send but also .send
dseitz has joined #ruby
jimms has joined #ruby
delianides has joined #ruby
bim has joined #ruby
dfinninger has quit [Remote host closed the connection]
juanpablo____ has quit [Ping timeout: 244 seconds]
<shevy>
perl is making a comeback guys!
<shevy>
it climbed a rank
oo_ has joined #ruby
triangles3 has quit [Ping timeout: 255 seconds]
triangles3 has joined #ruby
RegulationD has joined #ruby
jottr_ has quit [Ping timeout: 264 seconds]
coderhs has quit [Ping timeout: 264 seconds]
triangles2 has quit [Ping timeout: 244 seconds]
rubytor has joined #ruby
FernandoBasso has quit [Quit: leaving]
freerobby has quit [Quit: Leaving.]
RegulationD has quit [Ping timeout: 240 seconds]
chinmay_dd_ is now known as chinmay_dd
leafybasil has joined #ruby
<centrx>
shevy, TIOBE turns out to be bullshit
<centrx>
shevy, It's just based on Google search results
amclain has joined #ruby
<centrx>
"Popular search engines such as Google, Bing, Yahoo!, Wikipedia, Amazon, YouTube and Baidu are used to calculate the ratings. It is important to note that the TIOBE index is not about the best programming language or the language in which most lines of code have been written."
<shevy>
DerisiveLogic I'd say it is in a steady state
<shevy>
DerisiveLogic during the initial rails hype there was an increase, from like 2005 to 2009, that later subsided again
<DerisiveLogic>
shevy: That's what I figured, but it seems like it'll start declining probably in 2-3 years.
dc has quit [Remote host closed the connection]
<DerisiveLogic>
Especially with all the node hype at the moment.
<shevy>
nah javascript can't be a competitor
<undeadaedra>
eurk, node.
<shevy>
all tasks that are automatable I wrote in ruby script. I would not know how to use javascript standalone in quite that way
<shevy>
*via ruby scripts
<DerisiveLogic>
shevy: How come?
<DerisiveLogic>
And which scripts?
<shevy>
all of them
<shevy>
ruby is general purpose after all
<undeadaedra>
code all the scripts!
<shevy>
a language that could replace ruby there would have to be able to do the very same things as well
<shevy>
how do you create a directory in javascript from a standalone file?
<DerisiveLogic>
Like not being async friendly?
<undeadaedra>
what?
<shevy>
do I need async for everything
<zubov>
I think Python is the biggest competitor
<shevy>
yeah
<DerisiveLogic>
How so?
otisZart has joined #ruby
<shevy>
it will probably overtake PHP's share
<dorei>
do you think so?
<jhass>
DerisiveLogic: what are truly wondering here? why do you care how many people do use and will use Ruby in the near future?
<zubov>
scripting based language, easy of use, fast enough, tons of library/framework support
<wasamasa>
shevy: you'd use node for that
<DerisiveLogic>
jhass: So that I don't waste my time learning a language that I won't benefit monetarily from.
chinmay_dd_ has joined #ruby
<a5i>
python is fast ?
roshanavand has quit [Ping timeout: 244 seconds]
<shevy>
wasamasa so how?
roshanavand1 has joined #ruby
<wasamasa>
shevy: dunno, I don't use it
musashi has joined #ruby
<wasamasa>
shevy: but be assured, it's possible
<shevy>
ok so you don't know
<wasamasa>
shevy: people have written streaming torrent clients in it
<jhass>
DerisiveLogic: IME every language I learned, applicable in a job that pays me or not, teached me at least one thing that improved my general skills and workflows as a programmer, so that point is moot to me
<zubov>
I prefer Ruby at this time.
<DerisiveLogic>
I rather learn Haskell than ruby at this point for pushing my skills as a programmer, definitely not ruby.
<jhass>
then do that
<havenwood>
DerisiveLogic: In several years Ruby will have broken new, novel ground. It will be a popular language along with most of the popular languages now as well as a few others. If you think Node is a threat to Ruby you're sorely mistaken.
<jhass>
DerisiveLogic: nobody cares
<a5i>
Ruby and haskell are different paradigms
<a5i>
how can u compare them ?
<havenwood>
DerisiveLogic: I thought HN already dropped Node for Go and dropped Go for Rust. Live in the now, man!
<apeiros>
what? people still use Rust?
<apeiros>
that's so yesterminute
<shevy>
DerisiveLogic haskell is so completely different, do you use a scripting language?
<DerisiveLogic>
Shots fired.
<havenwood>
As soon as Rust hit beta I was over it.
chinmay_dd has quit [Ping timeout: 264 seconds]
mengu has quit [Remote host closed the connection]
zzing has joined #ruby
lolmaus has quit [Ping timeout: 264 seconds]
<havenwood>
:P
<DerisiveLogic>
shevy: Yes, I'm debating right now if I should learn Ruby.
mengu has joined #ruby
<shevy>
no I mean, what language do you use already
<apeiros>
DerisiveLogic: learn what you feel like learning most
<havenwood>
DerisiveLogic: Use languages that make you happy.
<apeiros>
if that's not ruby, then so be it. no kittens will die due to that.
<shevy>
surely you must have written some code before
<zubov>
DerisiveLogic, try a couple different ones and continue with the one you like the most/feel comfortable with
<shevy>
_1_ejo stop using WhatsChat crap man, use a real IRC client
nszceta has joined #ruby
<_1_ejo>
how
<shevy>
:(
<_1_ejo>
:'(
<_1_ejo>
i m new here
sigurding has joined #ruby
djbkd_ has joined #ruby
ndrei has joined #ruby
<shevy>
no
<shevy>
you don't belong here
<zubov>
I was looking at visualruby
<zubov>
looks decent
chinmay_dd has quit [Quit: Leaving]
reinaldob has quit [Ping timeout: 250 seconds]
<jhass>
_1_ejo: this channel is about the Ruby programming language, your client didn't make that clear? Good, give it a 1-star rating in the play store then please
inavele has quit [Remote host closed the connection]
roshanavand1 has quit [Ping timeout: 240 seconds]
<shevy>
glade is XML though right?
<shevy>
I so hate XML
<zubov>
yes
<zubov>
not a fan myself of XML
lidenskap has joined #ruby
roshanavand has joined #ruby
quimrstorres has joined #ruby
sinkensabe has joined #ruby
dfinninger has joined #ruby
<undeadaedra>
XML is nice for complex data description
N0Lif3 has quit [Quit: Leaving]
versatiletech has quit [Quit: versatiletech]
tvw has joined #ruby
<ytti>
it's just quite verbose
<ytti>
but most languages come with good library to work with XML data
<ytti>
and when handed data to work with
<ytti>
if it's XML, things are already pretty good, in my books
iamjarvo has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
parduse has joined #ruby
<zubov>
indeed, I just rather work with json most of the time
Morkel has joined #ruby
<nszceta>
my buddy works for a financial company using Java
_1_Brown has joined #ruby
ZJvandeWeg has joined #ruby
<nszceta>
they have XML files which instantiate objects
duckpunch has quit [Quit: leaving]
<nszceta>
I am not sure wtf is going on there but have you guys heard of this?
<jhass>
?whatschat _1_Brown
<ruboto>
_1_Brown, WhatsChat is a crappy app that abuses IRC for something it is not: a dating chat. Please remove this app.
duckpunch has joined #ruby
xtsee has quit []
<ytti>
speaking of serialization, anyone familiar with cap'n proto?
Joufflu has joined #ruby
<nszceta>
wtf chatschat?
_1_Brown has left #ruby [#ruby]
<nszceta>
IRC is 99.999% dudes so is this the new Grindr?
<nszceta>
*whatschat
roshanavand has quit [Ping timeout: 250 seconds]
<wasamasa>
rofl
blackmesa has joined #ruby
<wasamasa>
_1_ejo: we're no ladyboys
tlarevo has joined #ruby
dc has joined #ruby
versatiletech has joined #ruby
<wasamasa>
_1_ejo: go pleasure yourself
dfinninger has quit [Ping timeout: 255 seconds]
tlarevo has quit [Remote host closed the connection]
pen has quit []
willharrison has joined #ruby
<havenwood>
wasamasa: Some of us might be, but it's irrelevant.
cpt_yossarian has quit [Ping timeout: 245 seconds]
<havenwood>
Ruby please!
<wasamasa>
ok, ok
<apeiros>
anybody against banning _1_* (the whatschat users)
<apeiros>
?
<havenwood>
apeiros: It doesn't seem like anyone is actually trying to use it as an irc client. At least nobody yet.
djbkd_ has quit [Read error: Connection reset by peer]
lidenskap has quit [Remote host closed the connection]
<undeadaedra>
apeiros: Already proposed i
<undeadaedra>
it*
versatiletech has quit [Client Quit]
<apeiros>
undeadaedra: I know. I hesitated. it might ban legitimate users. but so far the score's around 30:0
gorpon has quit [Ping timeout: 246 seconds]
_1_ejo has quit [Ping timeout: 255 seconds]
<undeadaedra>
+q them?
<a5i>
hes g0ne
<apeiros>
I think that's worse than ban
<undeadaedra>
send them to #ruby-whatschat ?
<apeiros>
heh
Nuck has joined #ruby
<undeadaedra>
There should be an automatic warning if there is something done (except ban, for which nothing can really be done)
xtsee has joined #ruby
ZJvandeWeg has quit [Quit: WeeChat 1.1.1]
<undeadaedra>
I don’t know if this thing receives notices or pm
jottr has joined #ruby
pushpak has joined #ruby
ujihisa has quit [Ping timeout: 250 seconds]
<apeiros>
redirectis a good idea.
<Mon_Ouie>
And there should be a bot on that channel that just prints that same message everytime someone joins :p
<apeiros>
topic of ##whatschat is "20:27 apeiros has set topic: Dear WhatsChat user - the #ruby channel is not a dating channel and whatschat is crap, please rate it accordingly in the playstore."
<undeadaedra>
topic.
scripore has quit [Quit: This computer has gone to sleep]
<undeadaedra>
Let’s just hope whatschat displays the topic :D
oo_ has joined #ruby
<jhass>
iirc it doesn't :P
<jhass>
until you go to menu or something
<apeiros>
too bad
<apeiros>
welcome message?
hmsimha has joined #ruby
<jhass>
I'll get genymotion and we can experiment a bit
panga has quit [Quit: Leaving...]
jottr has quit [Ping timeout: 245 seconds]
<hfp>
What is the point of using this syntax in a gemspec file? `s.add_development_dependency %q<rake>, [">= 0"] ` instead of just `'rake'` ?
<apeiros>
I thought those were just in generated gemspecs
ta has quit [Remote host closed the connection]
<apeiros>
but even there I didn't really get why. using .inspect to generate those strings should be less fragile.
wingedsnake has joined #ruby
reinaldob has joined #ruby
reinaldob has quit [Remote host closed the connection]
zz_AlphaTech is now known as AlphaTech
dc has quit [Read error: Connection timed out]
dc has joined #ruby
jeramy_s has joined #ruby
wingedsnake has quit [Ping timeout: 265 seconds]
anaeem1_ has quit [Remote host closed the connection]
sinkensabe has quit [Remote host closed the connection]
anaeem1_ has joined #ruby
aridere_ has joined #ruby
duckpunch has quit [Quit: leaving]
zerowaitstate has joined #ruby
sigurding has quit [Quit: sigurding]
jrcharney has joined #ruby
maximski has joined #ruby
anaeem1_ has quit [Ping timeout: 245 seconds]
duckpunch has joined #ruby
Megtastique has quit []
lidenskap has joined #ruby
nfk|laptop has joined #ruby
bruno- has quit [Ping timeout: 255 seconds]
sinkensabe has joined #ruby
<jrcharney>
Just in case nobody at #rvm is home, does anyone know why RVM won't install Ruby on Cygwin? It could but it won't. http://pastebin.com/V4tnMzMB
mengu has quit [Read error: Connection reset by peer]
makepkgnotwar has quit [Max SendQ exceeded]
mengu has joined #ruby
makepkgnotwar has joined #ruby
FernandoBasso has joined #ruby
<jrcharney>
There is a message about Tcl/Tk not being round. I'll look for that and see if that helps.
makepkgnotwar has quit [Max SendQ exceeded]
delianides has joined #ruby
Rickmasta has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
maximski has quit []
banister has joined #ruby
makepkgnotwar has joined #ruby
juanpablo____ has joined #ruby
makepkgnotwar has quit [Client Quit]
juanpablo____ has quit [Ping timeout: 245 seconds]
willharrison has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
jrcharney has quit [Quit: Back in a few. Trying to install ruby]
hectortrope has quit [Remote host closed the connection]
ChoiKyuSang has quit [Quit: Going offline, see ya! (( www.adiirc.com )]
makepkgnotwar has joined #ruby
pcp135 has quit [Read error: Connection reset by peer]
pcp135 has joined #ruby
dfinninger has joined #ruby
nettoweb has joined #ruby
poguez_ has quit [Quit: Connection closed for inactivity]
reinaldob has joined #ruby
kyrylo has quit [Ping timeout: 245 seconds]
dfinninger has quit [Ping timeout: 272 seconds]
inavele has joined #ruby
Filete has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
last_staff has joined #ruby
Igorshp has joined #ruby
Igorshp has quit [Remote host closed the connection]
Igorshp has joined #ruby
Morkel has quit [Quit: Morkel]
bigmac has quit [Remote host closed the connection]
ChoiKyuSang has joined #ruby
Spami has joined #ruby
reinaldob has quit [Remote host closed the connection]
<hfp>
I'm having trouble with the VCR doc here: https://relishapp.com/vcr/vcr/docs. Where do the different pieces from the Synopsis go? They all go into spec/spec_helper.rb?
MatthewsFace has joined #ruby
mostlybadfly has joined #ruby
freestyl3r has left #ruby ["WeeChat 1.1.1"]
Igorshp has quit [Ping timeout: 272 seconds]
jottr has joined #ruby
nettoweb_ has joined #ruby
byprdct has joined #ruby
nettoweb has quit [Ping timeout: 265 seconds]
soulcake has joined #ruby
bigmac has joined #ruby
MatthewsFace has quit [Ping timeout: 256 seconds]
<a5i>
does Ruby support more aspects of functional programming than JS ?
<apeiros>
note that it currently lists authnames. this will change in the next few days.
gorpon has quit [Ping timeout: 240 seconds]
rshetty has joined #ruby
Contigi has quit [Ping timeout: 244 seconds]
gorpon has joined #ruby
FaresKAlaboud has quit [Quit: Quit~]
<jhass>
kubunto: /msg ChanServ help flags
fierycatnet has quit []
Pupeno_ has quit [Ping timeout: 265 seconds]
sinkensabe has joined #ruby
FaresKAlaboud has joined #ruby
sinkensa_ has quit [Read error: Connection reset by peer]
RegulationD has quit [Ping timeout: 240 seconds]
tpimtts is now known as tpimtts_away
riotjones has quit [Ping timeout: 276 seconds]
<kubunto>
is there a reason you dont use nickserv?
dfinninger has joined #ruby
<jhass>
?
rshetty has quit [Remote host closed the connection]
<jhass>
oh you mean why I use saslserv?
<kubunto>
no
<apeiros>
kubunto: can you be a bit more specific?
mtakkman has joined #ruby
rshetty has joined #ruby
bruno- has joined #ruby
<kubunto>
the orignal channel i found on freenode shows the little @ and + for ops and voices
iamjarvo has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<kubunto>
i think they use nickserv as the back bone
<apeiros>
"they"?
kuiiu has joined #ruby
<kubunto>
the ops on those channels
<apeiros>
back bone for what?
<apeiros>
*sob*
<Mon_Ouie>
That's because we only op ourselves when we need op powers
<apeiros>
you're speaking in riddles…
<apeiros>
"those" channels?
<Mon_Ouie>
Which is the recommended policy on freenode
<kubunto>
Mon_Ouie: ty
<apeiros>
any chance you be specific and not just extremely vague kubunto?
<apeiros>
*are
<jhass>
kubunto: nickserv is for managing your useraccount on freenode
otisZart has quit [Read error: Connection reset by peer]
<jhass>
see, now I have the @
<jhass>
and now you have the +v
<jhass>
*the +
<jhass>
it just means operator and voiced status
Jiyuhen has quit [Ping timeout: 250 seconds]
<jhass>
has nothing to do with chanserv or nickserv
<kubunto>
ty
Jiyuhen has joined #ruby
dfinninger has quit [Ping timeout: 252 seconds]
tosbourn has joined #ruby
rshetty has quit [Ping timeout: 256 seconds]
SouL_|_ has quit [Remote host closed the connection]
<apeiros>
ok, I still have no idea what the question was…
<jhass>
"I'm very new to IRC, how does it work?"
<apeiros>
hm
<apeiros>
actually might be worth an article on ruby-community.com. explain irc and how to use it.
<kubunto>
jhass: ive been around for 2 yrs
<undeadaedra>
I can haz +v
<shevy>
that makes you a half expert
<jhass>
kubunto: mh, I googled all the channel and user flags for a long time at that point :P
pangur has joined #ruby
<ytti>
ytti@ytti ~/u/l/irc> du -hs .
<ytti>
792M.
<ytti>
all gzipped
<ytti>
i have no life
<undeadaedra>
apeiros: and then, comes the moment you have to provide some IRC clients.
nfk has quit [Remote host closed the connection]
<undeadaedra>
du -h logs
<undeadaedra>
0
<apeiros>
undeadaedra: linking should be sufficient. worst case link freenode webchat (even though it's IMO horrible)
quimrsto_ has joined #ruby
<kuiiu>
little question, can a beginner create a new channel here?
maximski has joined #ruby
<undeadaedra>
everyone can create a channel
<pangur>
I have switched back from Linux to Windows, and decided that I would give Sequel a whirl with sqlite3. However, when I run the "Short Example" from the Sequel website, I get the following errors: http://fpaste.org/210134/88699631/
<pangur>
I have switched back from Linux to Windows, and decided that I would give Sequel a whirl with sqlite3. However, when I run the "Short Example" from the Sequel website, I get the following errors: http://fpaste.org/210134/88699631/
<pangur>
I have switched back from Linux to Windows, and decided that I would give Sequel a whirl with sqlite3. However, when I run the "Short Example" from the Sequel website, I get the following errors: http://fpaste.org/210134/88699631/
<apeiros>
kuiiu: that's a #freenode question, and yes, you can
<pangur>
21:20:05 | <pangur> I am using Windows 8.
nettoweb_ has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<apeiros>
pangur: wtf?
<kuiiu>
how do you create a new channel?
<undeadaedra>
wth pangur
turtil has joined #ruby
<apeiros>
kuiiu: you join it
<pangur>
oops, sorry
<undeadaedra>
kuiiu: join it
<jhass>
kuiiu: use ##foo for channels that aren't associated to a project though
<apeiros>
pangur: did you cross-post that that you copy&pasted it?
tosbourn has quit [Ping timeout: 255 seconds]
<undeadaedra>
then, if you want to have persistant settings, like operator, you can register it through ChanServ
<pangur>
Yes, apeiros. I posted first of all in #sequel channel.
<pangur>
I then copied and pasted.
<kuiiu>
ok, I just created by joining a new channel, can I control the access?
<undeadaedra>
ah, I knew I already seen that somewhere
Kricir_ has quit [Remote host closed the connection]
<jhass>
kuiiu: yes, you should have ops
<undeadaedra>
kuiiu: You’re op there ?
<apeiros>
pangur: haven't we told you more than once now that when you cross-post, you're expected to tell that in the channels?
<undeadaedra>
kuiiu: what is it, so when can not be noisy here?
quimrstorres has quit [Ping timeout: 245 seconds]
<kuiiu>
what is ops?
ghr has quit [Ping timeout: 245 seconds]
<pangur>
No, apeiros. I have not been told that before. But it seems a reasonable thing that that should be your expectation. I shall know to do that in the future.
<apeiros>
pangur: ok
<apeiros>
maybe it was somebody with a similar nick then
<jhass>
kuiiu: +o flag, many clients display it with a @ in front
maximski has quit [Client Quit]
<undeadaedra>
kuiiu: on unregistered channels, you get it automatically if you’re the first one to join
makepkgnotwar has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<kuiiu>
jhass: thanks, I can see @, now if anyone want to go my channel they need my permission?
<undeadaedra>
no
<undeadaedra>
the name of the channel
lidenskap has quit [Remote host closed the connection]
<jhass>
kuiiu: there are flags you can set for that though
<ytti>
i would install linux on virtualPC, unless i'd be able to autonomously solve issues
tvw has quit []
WildBamboo-Josh has quit [Client Quit]
<jhass>
btw gem list supports filtering, no?
<pangur>
ytti, I had sequel working on linux. I agree that linux would be easier but I have inherited a machine that has some OCR stuff on it like Omnipage Ultimate, for which Linux does not have a comparable software.
<jhass>
yup, gem list sql lists sqlite3 here
gorpon has quit [Ping timeout: 256 seconds]
<zubov>
pangur, wingrep is free
willharrison has joined #ruby
dc has quit []
<pangur>
*** LOCAL GEMS *** sqlite3 (1.3.10 x64-mingw32)
gorpon has joined #ruby
<jhass>
pangur: so, what about my question, do you still have the output of gem install sqlite3 ?
<jhass>
this is why people are quick to recommend getting a VM
Guest74929 has quit [Remote host closed the connection]
mbff has joined #ruby
<pangur>
I tried downloading a bitnami version but it would not run.
<jhass>
it's kinda the inverse of the linux kernel and thinkpads, nobody uses windows in the ruby community, so things get slower patched there or aren't working at all, so nobody uses windows
quimrsto_ has quit [Ping timeout: 240 seconds]
thumpba_ has joined #ruby
hs366 has quit [Quit: Leaving]
<mbff>
Can you print an array element with "#{array[0]}"
<jhass>
yes
kubunto has left #ruby [#ruby]
<mbff>
ok thanks
<jhass>
I prefer .to_s over "#{x}" if it's just about ensuring a string
<jhass>
methods like puts and print will even call .to_s on the argument for you
thumpba has quit [Ping timeout: 250 seconds]
<mbff>
can you do if(conditional) ? with "()"
govg has joined #ruby
ghr has quit [Ping timeout: 245 seconds]
<pangur>
One of these days, I shall try to get Linux dual-booted on my machine. Thanks for confirming that my current Windows will not run Ruby, jhass. Do I just find out what previous version of Ruby might work by trial and error, or is there a generally available answer to that?
<jhass>
mbff: yes, but it's very unidiomatic
Vile` has joined #ruby
<mbff>
hmmm... but it wouldn't break anything right
<jhass>
pangur: the last stackoverflow link references a mailing list post which has the answer
iotouch has quit [Quit: This computer has gone to sleep]
<Darkwater>
ooh, nice
yfeldblum has quit [Ping timeout: 255 seconds]
dfinninger has joined #ruby
ByronJohnson has joined #ruby
ByronJohnson has quit [Client Quit]
nfk|laptop has quit [Quit: yawn]
dfinning_ has joined #ruby
WildBamboo-Josh has joined #ruby
quimrstorres has quit [Remote host closed the connection]
quimrstorres has joined #ruby
dfinninger has quit [Ping timeout: 245 seconds]
WildBamboo-Josh has quit [Client Quit]
colorisco has quit [Ping timeout: 252 seconds]
ByronJohnson has joined #ruby
WildBamboo-Josh has joined #ruby
sdothum has quit [Quit: ZNC - 1.6.0 - http://znc.in]
<willharrison>
Radar I have just started reading some of R4IA but I was wondering, do you want me to make PRs to remove things like 'This chapter covers' on the preface? or is that a placeholder for something?
sdothum has joined #ruby
Filete has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
mengu has joined #ruby
mengu has joined #ruby
pen-soldier has left #ruby ["Leaving"]
iasoon has quit [Ping timeout: 272 seconds]
rbennace_ has joined #ruby
sdothum has quit [Client Quit]
delianides has quit []
CorpusCallosum has quit [Read error: Connection reset by peer]
ghr has joined #ruby
lidenskap has joined #ruby
sdothum has joined #ruby
<anskeit>
can someone tell me how i can access themselves changing keys in json?
<jhass>
changing how?
<jhass>
can you normalize them perhaps?
AlphaAtom has quit [Ping timeout: 256 seconds]
jottr has quit [Ping timeout: 245 seconds]
<Radar>
willharrison: Those will be replaced by Manning's proofers.
<anskeit>
the key is different everytime.
<willharrison>
Radar ah ok cool
<jhass>
anskeit: got some examples?
<centrx>
anskeit, I'm not going to let you access my JSON keys without a good reason
<anskeit>
yea sure. http://pastebin.com/PaERmgp7 the number in the first row is changing and i have no clue how i can access the other stuff then
<ruboto>
pastebin.com loads slowly for most, has ads which are distracting and has terrible formatting.
<centrx>
anskeit, How are they changing?
ghr has quit [Ping timeout: 248 seconds]
lidenskap has quit [Ping timeout: 276 seconds]
mengu has quit [Ping timeout: 245 seconds]
<jhass>
anskeit: so it's always just one entry at the top level?
<anskeit>
there are 10 different ones and centrx, i dont understand your question. the number in the first row jsut changes everytime(its like a Player ID)
<jhass>
do you want all or just the first or?
MatthewsFace has joined #ruby
<anskeit>
it would be the best if i can access the stuff from all of them. but if its just one, it would be okay too
Azure has joined #ruby
<centrx>
anskeit, You can get all the values in order, but those number keys must have some meaning?
<jhass>
okay, if you want to stay vague you'll get a vague answer: iterate over the hash then, look at .each, .each_value, .values
aridere_ has quit [Quit: Leaving]
<anskeit>
yea. these keys are the Id of a player in a game. im getting this id with a api call and his name. after that im tryhing to get his ladder ranking in the game and this is what i get back. but the key is changing, because the player isnt always the same.
freerobby has quit [Quit: Leaving.]
<centrx>
You're still being kind of vague
<centrx>
anskeit, jhass> anskeit: so it's always just one entry at the top level?
Igorshp has joined #ruby
Igorshp has quit [Remote host closed the connection]
MatthewsFace has quit [Ping timeout: 252 seconds]
centrx has quit [Remote host closed the connection]
<jhass>
anskeit: if you have the id, just use it?
centrx has joined #ruby
<jhass>
>> id = 15; data = {15 => :a, 16 => :b}; data[id]
<anskeit>
wait. so i can use variables in the square brackets? i was trying this already and it didnt work
<jhass>
yes you can
havenwood has joined #ruby
poguez_ has quit [Quit: Connection closed for inactivity]
<anskeit>
well looks like im not very smart, ha. thank you for your help and sorry that you had to read my horrible english
xenokiller has joined #ruby
<jhass>
the english is fine, the detail in the issue description could've been a bit better without us asking half a dozen questions ;) but you're welcome anyway
quimrsto_ has joined #ruby
michael_mbp has quit [Excess Flood]
quimrsto_ has quit [Remote host closed the connection]
quimrsto_ has joined #ruby
quimrstorres has quit [Ping timeout: 252 seconds]
bobbrez has joined #ruby
michael_mbp has joined #ruby
fwaokda has joined #ruby
roolo has quit [Quit: Leaving...]
_ixti_ is now known as ixti
rbennace_ has quit [Ping timeout: 264 seconds]
bobbrez has quit [Client Quit]
quimrsto_ has quit [Ping timeout: 252 seconds]
horsecowdog has quit [Remote host closed the connection]
enebo has quit [Quit: enebo]
ramfjord has joined #ruby
rbennacer has joined #ruby
Azure has quit [Ping timeout: 256 seconds]
gsd has joined #ruby
Kricir has joined #ruby
CloCkWeRX has joined #ruby
blackmesa has quit [Ping timeout: 255 seconds]
grindmodeon has joined #ruby
scripore has quit [Quit: This computer has gone to sleep]