sush24 has quit [Quit: This computer has gone to sleep]
glebm has quit [Quit: Computer has gone to sleep.]
maxmanders has quit [Quit: Computer has gone to sleep.]
sush24 has joined #ruby-lang
glebm has joined #ruby-lang
jsilver has quit [Remote host closed the connection]
mercwithamouth has quit [Ping timeout: 248 seconds]
<mistym>
If I have a module which carries around an instantiated object that's meant to be interacted with from outside, is it appropriate to assign it as a constant?
mercwithamouth has joined #ruby-lang
dzhulk has quit [Quit: Leaving.]
<mistym>
E.g. module Foo has Foo::Bar, with Bar not a class but an instantiated object
<apeiros>
mistym: "instanciated object" is a pleonasm
<mistym>
True
<canton7>
it still has to be assigned to at some point, which makes it non-constant... having said that, in rake/clean, the CLEAN and CLOBBER constants are object instances...
<mistym>
Dept. of Redundancy Dept., etc.
<apeiros>
Foo::Bar = "12"
<apeiros>
totally fine IMO
<apeiros>
there's many cases where you'll use constants for something different than a class or module
<apeiros>
also, classes and modules are just objects too (albeit slightly fancy ones)
<mistym>
Yeah, true.
<mistym>
Thanks!
<apeiros>
the difference only matters when you try to subclass, use extend or include
MaddinXx has quit [Remote host closed the connection]
<apeiros>
for about anything else, you won't see a meaningful difference (an ordinary object can even implement .new, see Struct)
jsilver has joined #ruby-lang
emocakes has quit [Quit: emocakes]
wyhaines has quit [Remote host closed the connection]
brianpWins has joined #ruby-lang
brianpWins has quit [Remote host closed the connection]
pkrnj has joined #ruby-lang
jsilver has quit [Read error: Operation timed out]
thufir_ has quit [Quit: Leaving.]
karasawa has joined #ruby-lang
srbaker has quit [Quit: Computer has gone to sleep.]
jxie has quit [Read error: Connection reset by peer]
tibig has quit [Read error: Connection reset by peer]
srbaker has quit [Quit: Computer has gone to sleep.]
vlad_starkov has quit [Remote host closed the connection]
jxie has joined #ruby-lang
marr has quit [Ping timeout: 256 seconds]
srbaker has joined #ruby-lang
<postmodern>
i notice that Webrick has it's own HTTP escape methods
<postmodern>
is it safe to use URI.escape to escape raw HTTP Header values?
toretore has quit [Quit: Leaving]
<postmodern>
also why is URI.escape / URI.unescape obsoleted?
<postmodern>
noticed warning messages are printed if $VERBOSE is enabled
<tpope>
I usually use CGI.escape
jxie has quit [Ping timeout: 256 seconds]
asaaki has quit [Ping timeout: 245 seconds]
flexd has joined #ruby-lang
io_syl has quit [Ping timeout: 252 seconds]
towski has quit [Remote host closed the connection]
io_syl has joined #ruby-lang
rsl has quit [Quit: Computer has gone to sleep.]
jxie has joined #ruby-lang
karasawa has joined #ruby-lang
asaaki has joined #ruby-lang
jxie has quit [Read error: Connection reset by peer]
slaytanic has joined #ruby-lang
karasawa has quit [Ping timeout: 244 seconds]
davidbalbert is now known as davidbalber|away
vlad_starkov has joined #ruby-lang
charliesome has joined #ruby-lang
madish has quit [Quit: ChatZilla 0.9.89 [Firefox 16.0.1/20121026125834]]
gregmoreno has quit [Remote host closed the connection]
srbaker has quit [Quit: Computer has gone to sleep.]
vlad_starkov has quit [Ping timeout: 245 seconds]
jxie has joined #ruby-lang
apeiros has quit [Remote host closed the connection]
jxie has quit [Ping timeout: 255 seconds]
mistym has quit [Remote host closed the connection]
rippa has quit [Ping timeout: 252 seconds]
stonerfish has quit [Quit: Leaving.]
Nisstyre-laptop has joined #ruby-lang
Yianna has quit []
kentos has quit [Ping timeout: 248 seconds]
jxie has joined #ruby-lang
fowl has joined #ruby-lang
<fowl>
HEY ALL YOU RUBY FOOLS, PRY 9/11 POINT FIZZOUR IS OUT, `gem update` YOUR BITCHASSES AND GET ON THAT NEXT LEVEL SHIT, YA HEARD??YA HEARD??YA HEARD??
<fowl>
HEY ALL YOU RUBY FOOLS, PRY 9/11 POINT FIZZOUR IS OUT, `gem update` YOUR BITCHASSES AND GET ON THAT NEXT LEVEL SHIT, YA HEARD??YA HEARD??YA HEARD??
<fowl>
HEY ALL YOU RUBY FOOLS, PRY 9/11 POINT FIZZOUR IS OUT, `gem update` YOUR BITCHASSES AND GET ON THAT NEXT LEVEL SHIT, YA HEARD??YA HEARD??YA HEARD??
* fowl
DROPS THE MIC
fowl has left #ruby-lang ["Leaving"]
jxie has quit [Ping timeout: 256 seconds]
cirwin has joined #ruby-lang
jxie has joined #ruby-lang
<ten1>
what a dick
karasawa has joined #ruby-lang
kentos has joined #ruby-lang
wyhaines has joined #ruby-lang
bfreeman has quit [Quit: bfreeman]
bfreeman has joined #ruby-lang
banister`sleep has left #ruby-lang [#ruby-lang]
banisterfiend has joined #ruby-lang
sush24 has quit [Quit: This computer has gone to sleep]
jxie has quit [Ping timeout: 246 seconds]
karasawa has quit [Ping timeout: 256 seconds]
ggamel has quit [Remote host closed the connection]
ggamel has joined #ruby-lang
banisterfiend is now known as banister`sleep
herpless_ is now known as herpless
ggamel has quit [Ping timeout: 252 seconds]
vlad_starkov has joined #ruby-lang
jxie has joined #ruby-lang
havenn has joined #ruby-lang
gregmoreno has joined #ruby-lang
spectra has quit [Ping timeout: 246 seconds]
gregmoreno has quit [Remote host closed the connection]
spectra has joined #ruby-lang
vlad_starkov has quit [Ping timeout: 240 seconds]
<rking>
Hahaha
kurko_ has quit [Ping timeout: 252 seconds]
jxie has quit [Read error: Connection reset by peer]
ggamel has joined #ruby-lang
apeiros has joined #ruby-lang
maxmanders has joined #ruby-lang
srbaker has joined #ruby-lang
apeiros has quit [Ping timeout: 256 seconds]
jxie has joined #ruby-lang
solars has joined #ruby-lang
sush24 has joined #ruby-lang
sush24 has quit [Quit: This computer has gone to sleep]
<mistym>
In minitest tests, I can't use my `before` block ivars when creating runtime classes since it interprets the ivars as belonging to the class being created. Is there a better alternative to that ugly behaviour?
<mistym>
(The ugly behaviour being my totally terrible workaround)
<postmodern>
mistym, Class.new i believe class_evals the block
<mistym>
postmodern: Yes, the problem is that it an ivar is evalled as the class's ivar, not an ivar from the scope Class.new was called in.
<mistym>
So accessing @ivar within a Class.new block would be nil, not the string.
sush24 has quit [Quit: This computer has gone to sleep]
<mistym>
Assigning to a regular variable works in each test but not terribly DRY when I'm using the same ivar a ton of times.
savagecroc has quit [Remote host closed the connection]
<mistym>
Oh, I guess I could define an accessor method in the before block.
aedornm has quit [Remote host closed the connection]
stonerfish has joined #ruby-lang
ggamel has quit [Remote host closed the connection]
tibig has quit [Read error: Connection reset by peer]
tibig has joined #ruby-lang
jonahR has joined #ruby-lang
rdw200169 has quit [Ping timeout: 256 seconds]
wyhaines_ has quit [Ping timeout: 255 seconds]
karasawa has joined #ruby-lang
towski has joined #ruby-lang
karasawa has quit [Ping timeout: 255 seconds]
jbsan has quit [Quit: jbsan]
Bearproof has joined #ruby-lang
Bearproof has left #ruby-lang [#ruby-lang]
psycho_one has joined #ruby-lang
waffleau has joined #ruby-lang
andrewhl has joined #ruby-lang
jbsan has joined #ruby-lang
mercwithamouth has quit [Ping timeout: 248 seconds]
mercwithamouth has joined #ruby-lang
stardiviner has joined #ruby-lang
almondo has quit [Ping timeout: 255 seconds]
stardiviner has quit [Client Quit]
dhsmith has joined #ruby-lang
Bearproof has joined #ruby-lang
Zissler has quit [Ping timeout: 260 seconds]
Bearproof has quit [Client Quit]
karasawa has joined #ruby-lang
mikepawlak408 has joined #ruby-lang
Evanescene has joined #ruby-lang
karasawa has quit [Ping timeout: 255 seconds]
andrewhl has quit [Remote host closed the connection]
dankest is now known as dankest|away
<mikepawlak408>
i am new to ruby and was wondering if anybody had some suggestions for sites that provide tutrorials, walk-throughs and things of that nature?
<mikepawlak408>
any help from the community would be greatly appreciated
wizonesolutions has quit [Ping timeout: 252 seconds]
Evanescene has left #ruby-lang [#ruby-lang]
crazyhorse has joined #ruby-lang
<ten1>
I am also learning ruby. I recommend reading the unofficial usage guide in addition to anything anyone else might suggest http://www.caliban.org/ruby/rubyguide.shtml
scottschecter has quit [Read error: Operation timed out]
toretore has joined #ruby-lang
scottschecter has joined #ruby-lang
fsvehla has quit [Remote host closed the connection]
sush24 has quit [Quit: This computer has gone to sleep]
imperator has joined #ruby-lang
Banistergalaxy has quit [Ping timeout: 256 seconds]
<imperator>
hm, did BEGIN blocks go away in 1.9 and I wasn't paying attention?
Banistergalaxy has joined #ruby-lang
<socialcoder>
I am back
<imperator>
hooray, socialcoder is back!
<socialcoder>
LOL
<socialcoder>
tbuehlmann
<socialcoder>
thanks for the gist
<socialcoder>
i understand while
<socialcoder>
for confuses me
<tbuehlmann>
what's "for"? "for each"?
<socialcoder>
in layman term what is for doing
<socialcoder>
for i in change
<socialcoder>
puts "I got #{i}"
<socialcoder>
end
<socialcoder>
wat is it doing
<socialcoder>
what is it sayig
<socialcoder>
saying
<imperator>
foreach element in something_enumerable
<shevy>
change.each would usually be more natural in ruby
<imperator>
indeed, i don't see for used very often
<socialcoder>
so i can ignore it?
ddv has quit [Ping timeout: 240 seconds]
<tbuehlmann>
it's good to know anyway
<shevy>
I don't like for much, it seems to be at odds with code like loop {} and .each whenever I try to use it
<socialcoder>
so focus on each then
<socialcoder>
i understandeach anyways
<shevy>
.each is nice because you can think of your array objects as containers, and you ask them directly what they have inside
<shevy>
whereas with for, you would have to query about their total size first
<socialcoder>
I see
socialcoder has quit []
<crazyhorse>
shevy
huma has quit []
<crazyhorse>
for bla in array
<crazyhorse>
not in ruby :)
waffleau has left #ruby-lang [#ruby-lang]
ddv has joined #ruby-lang
<canton7>
for...in has some unintuitive scoping in ruby, though
Banistergalaxy has quit [Ping timeout: 245 seconds]
probst has joined #ruby-lang
almondo has quit [Quit: Leaving]
Banistergalaxy has joined #ruby-lang
itsmeduncan has joined #ruby-lang
banister_ has joined #ruby-lang
banister_ has quit [Read error: Connection reset by peer]
apeiros has joined #ruby-lang
banister`sleep has joined #ruby-lang
maxmanders has joined #ruby-lang
maxmanders has quit [Client Quit]
apeiros has quit [Ping timeout: 252 seconds]
sush24 has joined #ruby-lang
jondot` has joined #ruby-lang
sush24 has quit [Client Quit]
probst has quit [Quit: probst]
banister`sleep has quit [Read error: Connection reset by peer]
jondot` has left #ruby-lang [#ruby-lang]
banister_ has joined #ruby-lang
jondot has joined #ruby-lang
<jondot>
hey guys. before I build it, wondering if anyone seen a library that supports transforming ruby hashes into different hashes. something of a shape shifting for hashes. the transformation should rely on existing properties of the hash, including a transformed hash (making this an n-pass transformation)
La0fer has joined #ruby-lang
banister_ has left #ruby-lang [#ruby-lang]
banisterfiend has joined #ruby-lang
<banisterfiend>
jondot: like 'map' u mean?
<jondot>
banisterfiend: not exactly.
<jondot>
for example, look at this hash: { image: 'foo.jpg' } transform into { image_url: 'http://example.com/foo.jpg' }
<jondot>
you agree that there exist a DSL that can describe this transformation?
<jondot>
something like :image => [:image_url, func_urlize] --- just throwing this in the air
<banisterfiend>
jondot: i've never needed something like that, but if people do that's probably reasonable
<jondot>
well, I personally need it to transform my source data into various clients. each has its own optimization, and I wouldn't like to over-expose data on the wire
<jondot>
I know people use RABL for that, but what I'm looking for is beyong the template of just 'collection'/'item'. More in the sense of jbuilder for hashes -- and indeed after tweaking the code a bit, is what i'm using for now (https://github.com/jondot/jbuilder/blob/master/lib/jbuilder.rb)
swav_ has quit [Remote host closed the connection]
<imperator>
when did "module; BEGIN{ }; end" stop parsing?
Rarrikins has joined #ruby-lang
thisirs has joined #ruby-lang
karasawa has quit [Ping timeout: 248 seconds]
karasawa has joined #ruby-lang
crazyhorse has quit [Remote host closed the connection]
tibig has quit [Ping timeout: 246 seconds]
retro|cz has quit [Ping timeout: 252 seconds]
srbaker has joined #ruby-lang
justinram has quit [Read error: Connection reset by peer]
justinra_ has joined #ruby-lang
Banistergalaxy has quit [Ping timeout: 245 seconds]
probst has joined #ruby-lang
srbaker has quit [Ping timeout: 252 seconds]
S2kx has quit [Quit: Leaving]
S1kx has joined #ruby-lang
S1kx has quit [Changing host]
S1kx has joined #ruby-lang
maxmanders has joined #ruby-lang
Paradox has quit [Ping timeout: 244 seconds]
retro|cz has joined #ruby-lang
Kuifje has quit [Read error: Connection reset by peer]
Kuifje has joined #ruby-lang
Kuifje has quit [Changing host]
Kuifje has joined #ruby-lang
xalei has joined #ruby-lang
La0fer has quit [Read error: Connection reset by peer]
itsmeduncan has quit [Quit: itsmeduncan]
La0fer has joined #ruby-lang
carloslopes has joined #ruby-lang
goatish_mound has joined #ruby-lang
jonahR has joined #ruby-lang
srbaker has joined #ruby-lang
probst has quit [Quit: probst]
probst has joined #ruby-lang
jxie has joined #ruby-lang
b1rkh0ff has quit [Quit: Leaving]
rdw200169 has joined #ruby-lang
Rarrikins has quit [Remote host closed the connection]
Rarrikins has joined #ruby-lang
tdy has quit [Ping timeout: 248 seconds]
Zissler has joined #ruby-lang
spinagon has quit [Read error: Connection reset by peer]
rippa has joined #ruby-lang
maxmanders has quit [Quit: Computer has gone to sleep.]
doxuanhuy has joined #ruby-lang
emocakes has quit [Quit: emocakes]
doxuanhuy has left #ruby-lang [#ruby-lang]
Bearproof has joined #ruby-lang
Bearproof has left #ruby-lang [#ruby-lang]
vlad_sta_ has quit [Remote host closed the connection]
itsmeduncan has joined #ruby-lang
jbsan has joined #ruby-lang
doxuanhuy has joined #ruby-lang
xcombelle has quit [Remote host closed the connection]
doxuanhuy has left #ruby-lang [#ruby-lang]
stonerfish has joined #ruby-lang
swav has joined #ruby-lang
huydx has joined #ruby-lang
justinra_ has quit [Remote host closed the connection]
marr has quit [Read error: Connection reset by peer]
lcdhoffman has joined #ruby-lang
rippa has quit [Read error: Connection reset by peer]
rippa has joined #ruby-lang
itsmeduncan has quit [Quit: itsmeduncan]
emocakes has joined #ruby-lang
mosesaro has joined #ruby-lang
diegoviola has quit [Ping timeout: 245 seconds]
rippa has quit [Read error: Connection reset by peer]
rippa has joined #ruby-lang
runeb has joined #ruby-lang
mercwithamouth has joined #ruby-lang
probst has quit [Quit: probst]
jondot has quit [Quit: Page closed]
b1rkh0ff has joined #ruby-lang
karasawa has quit [Ping timeout: 244 seconds]
karasawa has joined #ruby-lang
runeb has quit [Remote host closed the connection]
jonahR_ has joined #ruby-lang
marr has joined #ruby-lang
runeb has joined #ruby-lang
shevy has left #ruby-lang ["I'll be back ... maybe"]
jonahR has quit [Ping timeout: 248 seconds]
jonahR_ is now known as jonahR
maxmanders has joined #ruby-lang
kurko_ has joined #ruby-lang
mercwithamouth has quit [Ping timeout: 248 seconds]
andrewhl has joined #ruby-lang
carloslopes has quit [Remote host closed the connection]
r0bby is now known as robbyoconnor
kurko_ has quit [Ping timeout: 252 seconds]
ten1 has joined #ruby-lang
Kuifje has quit [Read error: Connection reset by peer]
<badeball>
how come bcrypts password#create returns an ASCII-8BIT encoded string?
<badeball>
Encoding.default_internal is UTF-8
<lianj>
[1].pack("C*").encoding
Kuifje has joined #ruby-lang
Kuifje has quit [Changing host]
Kuifje has joined #ruby-lang
<badeball>
I'm not sure if I understand
<yfeldblum>
badeball, crypto operations operate on bytes, not on encoded strings
<lianj>
the result is binary
<badeball>
yfeldblum: so a 'bcrypted' password shouldn't really be stored in a string column at all?
<badeball>
sqlite did not like it particularly much :P
<lianj>
what orm?
swav has quit [Remote host closed the connection]
<badeball>
Rails' activerecord
<yfeldblum>
badeball, it looks like it currently returns a string that uses only ascii-7bit characters, so you could transcode it to utf-8
<badeball>
I suppose that'd work
<bougyman>
any reason you're stuck with sqlite?
<badeball>
not at all. I'm just messing around.
<bougyman>
ok, just that pg has bcrypt built-in server-side.
<yfeldblum>
bougyman, which i would not recommend
<bougyman>
yfeldblum: nor I.
<badeball>
bougyman: yeah, I know, but I enjoy the simplicity of being able to use sqlite when developing
<bougyman>
there are better options in pgcrypto than bcrypt
kurko_ has joined #ruby-lang
<yfeldblum>
bougyman, i would not recommend the database performing application crypto operations
<yfeldblum>
bougyman, the only case where the database should be performing crypto is something like SQL Server's Transparent Data Encryption
<lianj>
badeball: not using has_secure_password?
<bougyman>
yfeldblum: you don't believe in encrypting any data in the db?
<badeball>
lianj: hey, I didn't know about that one
<yfeldblum>
bougyman, i'm ok with encrypting data before putting it in the db, or having the db transparently encrypt all data
<bougyman>
yfeldblum: I do a bit of the latter, we encrypt FISMA mandated fields only, though.
<bougyman>
if i'm doing a completely encrypted db I just put it on an encrypted fs.
<yfeldblum>
bougyman, SQL Server's TDE basically stores the db files in encrypted format; it's sort of an alternative to configuring your db server to store data on an encrypted partition
<bougyman>
yep
<yfeldblum>
bougyman, but i don't like doing things like `insert table (column) values (aes_encrypt(cleartext_key, cleartext_value))`
<bougyman>
ah right.
<bougyman>
yeah all the encryption in ours is handled by triggers, not in the query logic.
<yfeldblum>
bougyman, or anything like `insert into users (email, password_fingerprint) values ('admin@example.com', bcrypt('cleartext_password))
davidbalber|away is now known as davidbalbert
<bougyman>
and functions which take the decryption key for reading.
<yfeldblum>
bougyman, in general i prefer code in the application over code in the database, wherever feasible
<bougyman>
i don't like business logic db-side, but the manipulation of data seems a proper job for it to do.
<yfeldblum>
bougyman, all code manipulates data ...
<yfeldblum>
bougyman, that's what code does ...
<bougyman>
i meant the specific realm of data storage intricacies.
<bougyman>
you don't want your application code doing sharding or clustering, for instance.
<bougyman>
well, I don't.
<yfeldblum>
bougyman, they're different categories
<yfeldblum>
bougyman, i agree on sharding & clustering
<yfeldblum>
bougyman, the database interface should be logical storage, not physical storage; and often enough the subject of sharding and clustering deal with the physical distribution of data across the various nodes, but not with the logical storage
pbjorklund has quit [Ping timeout: 248 seconds]
pbjorklund has joined #ruby-lang
maxmanders has quit [Quit: Computer has gone to sleep.]
<bougyman>
yfeldblum: i don't see distinction between the physical distribution of data.
<bougyman>
that is, whether the data is sharded, replicated, or encrypted.
havenn has quit [Remote host closed the connection]
havenn has joined #ruby-lang
<yfeldblum>
bougyman, one rule of thumb for me is: specific handling of specific columns (encrypt this column but not any of the others) seems to me to be part of the data's logical interface (but the app's internal logic); across-the-board handling (store on encrypted volumes only; replicate everything to two slaves; etc) seems to me to be related to the operation of the database
banaan has joined #ruby-lang
tbuehlmann has quit [Remote host closed the connection]
mistym has joined #ruby-lang
mistym has joined #ruby-lang
mistym has quit [Changing host]
scottschecter has quit [Read error: Operation timed out]
pbjorklund has quit [Ping timeout: 248 seconds]
scottschecter has joined #ruby-lang
benanne has quit [Ping timeout: 260 seconds]
pbjorklund has joined #ruby-lang
pbjorklund has quit [Ping timeout: 252 seconds]
pbjorklund has joined #ruby-lang
canton7 has quit [Ping timeout: 248 seconds]
serhart has joined #ruby-lang
imperator has left #ruby-lang ["Leaving"]
lcdhoffman has quit [Quit: lcdhoffman]
mwjcomputing has joined #ruby-lang
justinram has joined #ruby-lang
canton7 has joined #ruby-lang
Bearproof has joined #ruby-lang
Bearproof has left #ruby-lang [#ruby-lang]
maxmanders has joined #ruby-lang
vlad_starkov has joined #ruby-lang
Kuifje has quit [Read error: Connection reset by peer]
MaddinXx has quit [Remote host closed the connection]
tibig has joined #ruby-lang
rippa has quit [Read error: Connection reset by peer]
rippa has joined #ruby-lang
rippa has quit [Read error: Connection reset by peer]
spinagon has joined #ruby-lang
adambeynon has joined #ruby-lang
wyhaines has joined #ruby-lang
maxmanders has quit [Quit: Computer has gone to sleep.]
kurko_ has joined #ruby-lang
diegoviola has joined #ruby-lang
karasawa has quit [Ping timeout: 260 seconds]
lcdhoffman has joined #ruby-lang
postmodern has quit [Quit: Leaving]
ddd has quit []
methods1 has joined #ruby-lang
sush24 has joined #ruby-lang
runeb has quit [Remote host closed the connection]
methods1 has left #ruby-lang [#ruby-lang]
banisterfiend has quit [Remote host closed the connection]
Bearproof has joined #ruby-lang
Bearproof has left #ruby-lang [#ruby-lang]
sepp2k has quit [Ping timeout: 260 seconds]
sepp2k has joined #ruby-lang
jhn has joined #ruby-lang
sush24 has quit [Ping timeout: 256 seconds]
pbjorklund has quit [Quit: oh no]
sush24 has joined #ruby-lang
gregmoreno has joined #ruby-lang
serhart has quit [Quit: Leaving.]
gregmoreno has quit [Remote host closed the connection]
karasawa has joined #ruby-lang
<zzak>
Zissler: you figure it out?
joshcheek has joined #ruby-lang
spinagon has quit [Read error: Connection reset by peer]
rippa has joined #ruby-lang
<joshcheek>
What's a good resource for C Ruby? I'm currently trying to figure out how to use blocks, but I'm going to have a lot of questions like this, figure a nice cheatsheet or short book would go a long way.
serhart has joined #ruby-lang
runeb has joined #ruby-lang
Kuifje has quit [Read error: Connection reset by peer]
rippa has quit [Read error: Connection reset by peer]
rippa has joined #ruby-lang
peregrin_ has joined #ruby-lang
Kuifje has joined #ruby-lang
srbaker has quit [Quit: Computer has gone to sleep.]
goatish_mound has quit [Read error: Connection reset by peer]
runeb has quit [Ping timeout: 248 seconds]
vlad_starkov has quit [Remote host closed the connection]
<mistym>
joshcheek: Yeah, there are a few good resources. What's your programming skill level in general?
runeb has joined #ruby-lang
sush24 has quit [Quit: This computer has gone to sleep]
MaddinXx_ has joined #ruby-lang
cddr`` has quit [Read error: Connection reset by peer]
cddr`` has joined #ruby-lang
tibig has quit [Read error: Connection reset by peer]
tibig has joined #ruby-lang
chrismcg is now known as zz_chrismcg
yorickpeterse has quit [Ping timeout: 246 seconds]
yorickpeterse has joined #ruby-lang
<joshcheek>
mistym: I know a lot of Ruby, and some C.
<mistym>
joshcheek: Oh, I misunderstood then. You're looking for something on writing C extensions?
Kuifje has quit [Read error: Connection reset by peer]
<joshcheek>
mistym: Yes.
Kuifje has joined #ruby-lang
Kuifje has quit [Changing host]
Kuifje has joined #ruby-lang
<yfeldblum>
joshcheek, you can look at some of the stdlib methods that are written in C and accept blocks
<joshcheek>
yfeldblum: In this case, I'm interested in calling blocks (specifically each_char on a string/stream) I've been looking through C source and can see where theyr'e defined (appears to be macros) e.g. for each_char, it looks like it's `RETURN_SIZED_ENUMERATOR(str, 0, 0, rb_str_each_char_size);` but IDK how to use that.
<joshcheek>
How to invoke it in C.
<joshcheek>
mistym: Yeah, that's a good one. It's gotten me past most of my questions so far (e.g. how to wrap a data structure in a class)
<hackeron>
if I remove the with_indifferent_access (provided by active_support) it works - but I need the indifferent access :(
sandbags has joined #ruby-lang
sandbags has joined #ruby-lang
sandbags has quit [Changing host]
<emocakes>
python is so horrible
<emocakes>
...
<emocakes>
:p
<emocakes>
seriously though
<emocakes>
I disafree with everything you have said apeiros
<emocakes>
disagree even
<emocakes>
I think it is an uneducated view
<emocakes>
kind of fanboyist
<apeiros>
lol
<apeiros>
whatever
<emocakes>
i'm serious
<emocakes>
no, don
<emocakes>
don't whatever me
<emocakes>
you have no right whatsoever to be bashing python
<emocakes>
I'm sure you've never even used it
<emocakes>
anyway
<emocakes>
bbl
<emocakes>
have to feed my snakes
maxmanders has joined #ruby-lang
MaddinXx has joined #ruby-lang
karasawa has joined #ruby-lang
maxmanders has quit [Client Quit]
<whitequark>
what was that
karasawa has quit [Ping timeout: 245 seconds]
havenn has quit [Remote host closed the connection]
havenn has joined #ruby-lang
<ten1>
language wars, episode nine billion or so
havenn has quit [Ping timeout: 245 seconds]
banaan has quit [Quit: kbai]
<apeiros>
it was something that wasn't worth to get into a discussion for.
<apeiros>
hence: whatever
jbsan has quit [Ping timeout: 248 seconds]
runeb has quit [Remote host closed the connection]
jbsan has joined #ruby-lang
runeb has joined #ruby-lang
justinram has quit [Remote host closed the connection]
vlad_starkov has quit [Remote host closed the connection]
stonerfish has joined #ruby-lang
havenn has joined #ruby-lang
vlad_starkov has joined #ruby-lang
<apeiros>
emocakes: btw., if you want a discussion, starting with 2 ad-hominems is not a good way. also it's not a welcome thing in this channel in general. bring up arguments instead.
ahf is now known as eroyf
eroyf is now known as ahf
<emocakes>
wuts an adhominem?
<emocakes>
sorry boss, im just a poor black emocake
<apeiros>
"your view is uneducated" - how educated I am has no relation to how right I am. it's aimed at my person, not at my argument.
<banisterfiend>
emocakes: i dont know why you're targeting apeiros, he made one statement compared to whitequark's multiple.
<apeiros>
hence ad-hominem.
<apeiros>
(ad-hominem literally means "towards/against the person")
spuk has quit [Quit: Human beings were created by water to transport it uphill.]
<emocakes>
ahh, sorry, forgot we were all legal students here and not neckbeards (banisterfiend excepted)
<apeiros>
also, google.
<emocakes>
I stand down
<apeiros>
that's nothing to do with the legal system
<emocakes>
apeiros, my comments were harsh and unduly targeted towards your person
<apeiros>
it's got to do with argumenting 101 and basic decency.
<banisterfiend>
emocakes: you're a fucking dick
<apeiros>
banisterfiend: please don't.
<emocakes>
dont ban me banisterfiend :(, I can change.
<emocakes>
I told my ex-wife that
<apeiros>
22:36 emocakes: sorry boss, im just a poor black emocake
<apeiros>
you could be a pink octopus, I wouldn't care.
<apeiros>
all you do is make it seem like you prepare against future repercussions.
<apeiros>
"Oooh he banned a black emo!!!"
<apeiros>
doesn't shed the best light on you.
<emocakes>
not at all apeiros
<emocakes>
I'm a very well respected member of the community
<emocakes>
obviously not this one with the way you have responded to my comments regarding python
thufir_ has quit [Quit: Leaving.]
<apeiros>
emocakes: your comments were off the mark. so stop whining.
<emocakes>
peace?
<apeiros>
up to you. I didn't declare war on you.
<emocakes>
you are swiss right? hehe
<whitequark>
*facepalm*
<emocakes>
but ok
* apeiros
sees a neutral joke coming…
<emocakes>
nope apeiros, I'm in berlin
<emocakes>
i was in zurich a few months ago and had a wonderful gipfel though