<anoldhacker>
He's using the fpu to compute an integer square root. Exactly the right thing to do in many cases, but if the fpu is emulated, you're going to have a slow time compared to code I've got working.
GranG has left #ruby [#ruby]
haraoka has joined #ruby
Lucky_ABA has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<anoldhacker>
I just double checked. I see several places with #if SIZEOF_INT < SIZEOF_LONG, which sure looks like 16-bit support.
Lucky_ABA has joined #ruby
<Nilium>
I'm not sure that's the intended message
bocaneri has joined #ruby
bocaneri has quit [Max SendQ exceeded]
djbkd has quit [Quit: Leaving...]
<allisio>
anoldhacker: Wat.
<allisio>
That is, I'm genuinely interested in how you derive 16-bit support from that directive.
bocaneri has joined #ruby
bocaneri has quit [Max SendQ exceeded]
<anoldhacker>
I'm assuming that SIZEOF_INT is the size of an integer register, while SIZEOF_LONG is the size of a long int, that is 32.
<anoldhacker>
Well, 32 bits--probably 4.
Xiti has quit [Quit: Xiti]
cxr has quit [Ping timeout: 240 seconds]
<allisio>
C's `sizeof` operator has next to nothing to do with registers, as I understand it.
saneax-_-|AFK is now known as saneax
<anoldhacker>
I'm not talking about the operator. I'm talking about the #define's.
rakm has joined #ruby
bocaneri has joined #ruby
charliesome has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
pawnbox has joined #ruby
igniting has joined #ruby
ResidentBiscuit has joined #ruby
tau has joined #ruby
CloCkWeRX has quit [Quit: Leaving.]
ResidentBiscuit has quit [Ping timeout: 246 seconds]
<anoldhacker>
Yeah, configure has it. SIZE_OF_INT is the size of the int type. SIZE_OF_LONG is the size of the long type.
brent__ has joined #ruby
r3ndta1l has joined #ruby
<allisio>
Color me unsurprised.
<r3ndta1l>
hi gy , what you recomended books for learning ruby ? ty
Pumukel has quit [Read error: Connection reset by peer]
Pumukel has joined #ruby
Pumukel has quit [Read error: Connection reset by peer]
Pumukel has joined #ruby
Snickers has joined #ruby
Burgestrand has quit [Quit: Closing time!]
Pumukel has quit [Read error: Connection reset by peer]
Guest58889 is now known as CrazEd
Pumukel has joined #ruby
CrazEd is now known as Guest69954
pawnbox has quit [Remote host closed the connection]
pawnbox has joined #ruby
<anoldhacker>
hanetzer: Report it as a bug.
leah2 has quit [Ping timeout: 240 seconds]
axsuul has quit [Ping timeout: 255 seconds]
browndawg has quit [Quit: *Mic Drop*]
<hanetzer>
anoldhacker: is it a bug, and not my personal pebcak ?
axsuul has joined #ruby
Pumukel has quit [Read error: Connection reset by peer]
pawnbox has quit [Ping timeout: 256 seconds]
Pumukel has joined #ruby
ta_ has quit [Remote host closed the connection]
Bish has joined #ruby
<anoldhacker>
If you know pebcak, then odds are pretty good that you properly RTFM'ed & such. That's pretty clearly an internal ruby blowup, so yeah. Just make a proper report. They'll let you know if it looks like you missed something. It's a cool team.
ta_ has joined #ruby
Snickers has quit [Quit: Snickers]
BTRE has quit [Ping timeout: 240 seconds]
Pumukel has quit [Read error: Connection reset by peer]
<hanetzer>
know the lingo eh?
Pumukel has joined #ruby
emin has joined #ruby
ta_ has quit [Ping timeout: 260 seconds]
aganov has joined #ruby
jenrzzz has quit [Ping timeout: 260 seconds]
aufi has joined #ruby
emin has quit [Remote host closed the connection]
benlieb has quit [Quit: benlieb]
<anoldhacker>
It's a sign that you're not gormless. :D
<hanetzer>
I don't really grok this, though ;)
<anoldhacker>
Heh. I'm trying to figure out from configure.in what size registers ruby requires....
toretore has joined #ruby
<hanetzer>
honestly I'd love to see ruby's build system get redone. CMake or Kconfig ;)
<hanetzer>
autotools is hellacious
mark_66 has joined #ruby
opus has joined #ruby
<anoldhacker>
When you see m4, you know it's time to abandon hope...
<hanetzer>
yep.
emin has joined #ruby
pawnbox has joined #ruby
teclator has quit [Remote host closed the connection]
maattdd_ has joined #ruby
Mortomes|Work has joined #ruby
antgel_ has joined #ruby
<hanetzer>
got some build warnings I'd like to clean up, specifically rb_data_typed_object_alloc->rb_data_typed_object_wrap; can you point me at some information on what a proper port should look like?
maattdd has quit [Ping timeout: 260 seconds]
<anoldhacker>
Sorry, no clue building anything but stock Linux.
tvl has joined #ruby
tvl is now known as tobiasvl
<anoldhacker>
Anyone here know what size integers are required to build ruby? Can I assume at least 32 bits? What about floating point? Are there systems where it is emulated? (I'm looking to optimize some c-ruby.)
<anoldhacker>
I am specifically wondering about the motivation for the #if SIZEOF_LONG > SIZEOF_INT checks sprinked in bignum.c, for instance.
certainty has joined #ruby
yeticry_ has joined #ruby
tau has quit [Remote host closed the connection]
yeticry has quit [Ping timeout: 268 seconds]
dionysus69 has joined #ruby
alexherbo2 has joined #ruby
tlaxkit has joined #ruby
hutch34 has joined #ruby
Cohedrin has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
hutch34 has quit [Ping timeout: 240 seconds]
ta_ has joined #ruby
ta_ has quit [Remote host closed the connection]
bkxd has joined #ruby
teclator has joined #ruby
nbol has left #ruby [#ruby]
sleetdrop has quit [Remote host closed the connection]
aupadhye has quit [Ping timeout: 260 seconds]
pawnbox has quit [Remote host closed the connection]
<hanetzer>
anoldhacker: yeah... compiling the same program, with the same libs, for linux, does not have a problem. definitely a windows issue.
pawnbox has joined #ruby
pawnbox has quit [Remote host closed the connection]
astrobunny has quit [Remote host closed the connection]
astrobunny has joined #ruby
mim1k_ has quit [Ping timeout: 264 seconds]
doublemalt_ has quit [Ping timeout: 240 seconds]
mim1k has joined #ruby
astrobunny has quit [Ping timeout: 246 seconds]
batlock666 has joined #ruby
<anoldhacker>
Anyone here know what size integers are required to build ruby? Can I assume at least 32 bits? What about floating point? Are there systems where it is emulated? (I'm looking to optimize some c-ruby.) I am specifically wondering about the motivation for the #if SIZEOF_LONG > SIZEOF_INT checks sprinked in bignum.c, for instance.
batlock666 has left #ruby [#ruby]
xall has quit [Ping timeout: 260 seconds]
Aeyris has joined #ruby
jameser has quit [Ping timeout: 260 seconds]
<Aeyris>
Hey uh, I just got autobanned by Chanserv from #ror
<Aeyris>
given the autobans elsewhere for irccloud i'm assuming that's unintentional
<Aeyris>
i don't suppose anyone has overlapping auth and can unban me?
Silex^^ has joined #ruby
Guest54796 is now known as CrazEd
Silex^^ has quit [Client Quit]
CrazEd is now known as Guest96534
segy has quit [Ping timeout: 240 seconds]
workmad3 has joined #ruby
jenrzzz has joined #ruby
jenrzzz has joined #ruby
jenrzzz has quit [Changing host]
dionysus69 has joined #ruby
jenrzzz has quit [Ping timeout: 240 seconds]
jeyraof^mbpr has quit [Quit: This computer has gone to sleep]
ferr1 has joined #ruby
aurelien has quit [Read error: Connection reset by peer]
toretore has quit [Ping timeout: 240 seconds]
jdm has joined #ruby
fclausen_ has joined #ruby
Beams has quit [Remote host closed the connection]
<catphish>
is it possible to programatically decide an "bundle install" time which gems to install, specifically i have gems that only compile under linux and i don't want OSX developers to try to install them
<catphish>
ping jhass as i suspect you know the answer
<catphish>
*at* "bundle install" time
mekeor has joined #ruby
<Aeyris>
catphish: ", platforms: []" on the gem declaration.
<catphish>
Aeyris: is there a list of platforms somewhere?
rakm has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
CrazEd is now known as Guest58877
oliv_____ has joined #ruby
patarr has quit [Ping timeout: 240 seconds]
brent__ has quit [Ping timeout: 256 seconds]
<catphish>
in my specific case i can solve it using :include => false as it does install ok
charliesome has joined #ruby
blackmesa has joined #ruby
cdg has joined #ruby
oliv_____ has quit [Ping timeout: 268 seconds]
dionysus69 has quit [Ping timeout: 258 seconds]
last_staff has joined #ruby
cschneid_ has joined #ruby
mekeor has quit [Ping timeout: 256 seconds]
pawnbox has quit [Ping timeout: 240 seconds]
ayonkhan has joined #ruby
cschneid_ has quit [Ping timeout: 246 seconds]
haennar has quit [Ping timeout: 268 seconds]
alexherbo2 has quit [Ping timeout: 268 seconds]
railswebdev has joined #ruby
pawnbox has joined #ruby
conta has joined #ruby
bkxd_ has joined #ruby
bkxd has quit [Ping timeout: 240 seconds]
AlexRussia has quit [Ping timeout: 246 seconds]
certainty has joined #ruby
alexherbo2 has joined #ruby
postmodern has quit [Quit: Leaving]
mekeor has joined #ruby
<mekeor>
with Nokogiri, how do i get `<a b="c">` out of `<a b="c"><d>foo</d>bar</a>` ?
doublemalt_ has quit [Ping timeout: 256 seconds]
antgel_ has quit [Ping timeout: 240 seconds]
haraoka has quit [Ping timeout: 240 seconds]
Fernando-Basso has joined #ruby
segy has joined #ruby
haennar has joined #ruby
<Zarthus>
.xpath('//a[@b="c"]') might work
<Zarthus>
not to say there aren't better solutions, I just need something setup to have more than guesses :)
lupine has quit [Read error: Connection reset by peer]
charliesome has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
lupine has joined #ruby
haennar has quit [Ping timeout: 260 seconds]
pawnbox has quit [Remote host closed the connection]
pawnbox has joined #ruby
ResidentBiscuit has joined #ruby
jenrzzz has joined #ruby
haennar has joined #ruby
watersoul has quit [Remote host closed the connection]
charliesome has joined #ruby
ResidentBiscuit has quit [Ping timeout: 246 seconds]
haennar has quit [Ping timeout: 268 seconds]
watersoul has joined #ruby
Burgestrand has joined #ruby
cxr has quit [Ping timeout: 260 seconds]
fclausen_ has quit [Ping timeout: 252 seconds]
doublemalt_ has joined #ruby
antgel_ has joined #ruby
jdm has quit [Ping timeout: 264 seconds]
doublemalt_ has quit [Ping timeout: 264 seconds]
unmanbearpig has joined #ruby
jdm has joined #ruby
alexherbo2 has quit [Ping timeout: 240 seconds]
patarr has joined #ruby
pawnbox has quit [Remote host closed the connection]
rubyR has joined #ruby
jenrzzz has quit [Ping timeout: 256 seconds]
pawnbox has joined #ruby
pawnbox has quit [Remote host closed the connection]
pawnbox has joined #ruby
<rubyR>
trying to extract network bits from ip using IPAddr - basically need 192.168.21 from 192.168.21.101 - any advice?
jameser has joined #ruby
patarr has quit [Ping timeout: 240 seconds]
Guest58877 is now known as CrazEd
jameser has quit [Client Quit]
CrazEd is now known as Guest67802
tvw has quit []
certainty has quit [Ping timeout: 258 seconds]
doublemalt_ has joined #ruby
<soahccc_>
rubyR: you can get the network address with use of a netmask but what you want is not a valid address. You could split/rejoin the string if you really want that
mim1k has quit [Ping timeout: 264 seconds]
blackmesa has quit [Ping timeout: 268 seconds]
shinnya has joined #ruby
AlexRussia has joined #ruby
cdg has quit [Remote host closed the connection]
modlin has joined #ruby
<dminuoso>
catphish: You can use user defined groups.
<dminuoso>
And then have the checking done by a wrapper that calls bundle perhaps.
<dminuoso>
Or just stuff some code checking at the top of your Gemfile (it is after all *just a ruby script*)
funnel has quit [Remote host closed the connection]
funnel has joined #ruby
oliv_____ has quit [Ping timeout: 258 seconds]
igniting has quit [Ping timeout: 240 seconds]
marahin has joined #ruby
<marahin>
Hello. There's a race condition in my Sidekiq worker that might trigger an exception. I'd like to rescue it & retry the worker in that rescue. Is it possible? How do I do that?
jose_leeto has joined #ruby
hutch34 has quit [Ping timeout: 240 seconds]
millerti has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
brent__ has joined #ruby
oliv_____ has joined #ruby
brent__ has quit [Ping timeout: 260 seconds]
<catphish>
rubyR: you need the netmask, then its easy, without it, its impossible
teclator has quit [Remote host closed the connection]
funnel has quit [Remote host closed the connection]
skweek has joined #ruby
VladGh has joined #ruby
<rubyR>
yeah get your point
VladGh has quit [Remote host closed the connection]
<rubyR>
does not make any sense to set this up properly
fuzzyhorns has joined #ruby
funnel has joined #ruby
<catphish>
the output you're after is called "network address and netmask", the only way to accurately show this is "192.168.21.0/255.255.255.0"
<catphish>
the address is meaningless without the mask
VladGh has joined #ruby
<catphish>
just want to make sure you understand that the general case can be any length
* soahccc_
hates on google "With our new proto3 language version, you can also work with Go, JavaNano, Ruby, and C#, with more languages to come." and everything is there but Ruby :(
<catphish>
rubyR: by the way, if you *really* just want the network bits, consider this: IPAddr.new('192.168.21.200').mask('255.255.255.128').to_i
<catphish>
rubyR: that will literally give you the bits you need
ujjain has quit [Read error: Connection reset by peer]
millerti has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
ramfjord has joined #ruby
doublemalt_ has quit [Ping timeout: 264 seconds]
arooni has joined #ruby
mim1k has quit [Ping timeout: 240 seconds]
<canton7>
Verity, why are you asking that in every programming channel I'm in?
AlexRussia has quit [Ping timeout: 240 seconds]
Silthias has joined #ruby
<Verity>
canton7, it eats away at me every day not being able to answer these questions
VladGh has quit [Remote host closed the connection]
<Verity>
I'm the type that feels like I need to fully explore and know all there is to know about something
<Verity>
with programming, this is presenting a major issue
<Verity>
and driving me mad
<fuzzyhorns>
Verity: except insofar you research on your own lol
ramfjord has quit [Ping timeout: 246 seconds]
<Verity>
(as it is impossible with such a vast field)
<fuzzyhorns>
this comes up a lot
VladGh has joined #ruby
Technaton has joined #ruby
psychicist__ has joined #ruby
mtkd has quit [Ping timeout: 240 seconds]
cyphase has quit [Ping timeout: 256 seconds]
<Verity>
Would I choose ruby for console applications? or a gui?
<fuzzyhorns>
and my answer is always the same: if you wanna do NLP or math, Python has better libraries. if you don't need those things, Ruby is a great language for getting working tasks done
Silthias1 has quit [Ping timeout: 268 seconds]
<Verity>
or is it going to be more when I'm working with web
<fuzzyhorns>
Verity: gui i doubt it, but i like using Ruby for clis
mtkd has joined #ruby
<fuzzyhorns>
Verity: web, absolutely, very rich ecosystm
millerti has joined #ruby
leah2 has quit [Quit: WeeChat 1.7]
quiller has quit [Quit: I out! ::mic drop::]
leah2_ has joined #ruby
quiller has joined #ruby
mickey has joined #ruby
leah2_ is now known as leah2
cyphase has joined #ruby
<Verity>
What ruby book should I start with? Coming from C++
cdg_ has joined #ruby
mickey is now known as `0x00
`0x00 is now known as false
Guest31866 is now known as CrazEd
oliv_____ has quit [Remote host closed the connection]
<z64>
what i usually stress to people learning ruby: play with your food (code). if you have ruby, you can run "irb" at your command line and play with code interactively. try things out as you read them, etc.
skweek has quit [Ping timeout: 240 seconds]
roamingdog has quit [Read error: Connection reset by peer]
roamingdog has joined #ruby
pawnbox has joined #ruby
AlexRussia has joined #ruby
geekb4ck_ has joined #ruby
xangria has quit [Ping timeout: 256 seconds]
Mia has joined #ruby
Mia has joined #ruby
Mia has quit [Changing host]
bkxd has quit [Ping timeout: 260 seconds]
Axelay has quit [Ping timeout: 240 seconds]
Axy has quit [Ping timeout: 268 seconds]
GBrawl has quit [Quit: (null)]
CloCkWeRX has quit [Ping timeout: 240 seconds]
agent_white has joined #ruby
<geekb4ck_>
Hello. Getting Errorno::EADDRINUSE when attempting to use a DGRAM socket. Line 2 is throwing the error and I cannot sort out why. The file exists, I can connect with socat. Can anyone have a peek and help me out? http://pastebin.ca/3774882
<catphish>
what is the difference betwen TCPSocket.new and Socket.tcp?
<al2o3-cr>
geekb4ck_: `rm /tmp/mysocket.sock` || `File.unlink('/tmp/mysocket.sock')` from ruby and try again. you can't bind to the same path twice (which is what it sounds like you've done:)
rubyR has quit [Quit: Page closed]
hanetzer has left #ruby ["WeeChat 1.7"]
blackmesa has joined #ruby
<geekb4ck_>
al2o3-cr: the file is created by a different process. im just connecting to it.
<al2o3-cr>
geekb4ck_: you paste shows you're binding to it
<geekb4ck_>
al2o3-cr: ok. so how do i specify the path of the socket i want to read/write?
ResidentBiscuit has quit [Ping timeout: 246 seconds]
<geekb4ck_>
(not being smart, just genuinely dumb)
nhhc has joined #ruby
Derperperd has quit [Ping timeout: 256 seconds]
xall has quit [Ping timeout: 256 seconds]
<al2o3-cr>
UNIXSocket.new("/tmp/mysocket.sock")
<geekb4ck_>
that opens a SOCK_STREAM socket. I need to open a SOCK_DGRAM socket.
<geekb4ck_>
so that is why i have gone to using a 'Socket' object rather then UNIXSocket so I can specify the SOCK_DGRAM, but am unsure how to tell that socket what path to use.
Derperperd has joined #ruby
samdvr has joined #ruby
<al2o3-cr>
geekb4ck_: would just be sock.connect
AlexRussia_ has joined #ruby
mim1k has quit [Ping timeout: 240 seconds]
AlexRussia has quit [Ping timeout: 268 seconds]
roamingdog has quit [Remote host closed the connection]
roamingdog has joined #ruby
samdvr has quit [Quit: samdvr]
Asher1 has quit [Quit: Leaving.]
roamingdog has quit [Remote host closed the connection]
roamingdog has joined #ruby
Axelay has quit [Read error: Connection reset by peer]
roamingdog has quit [Remote host closed the connection]
roamingdog has joined #ruby
roamingdog has quit [Remote host closed the connection]
Jayson_Virissimo has joined #ruby
Asher has joined #ruby
roamingdog has joined #ruby
<catphish>
geekb4ck_: a datagram socket doesn't necessarily have a remote destination, like UDP you can specify the destination each time you call sendto
<catphish>
geekb4ck_: you can likely also call connect() to set a default destination, but i'm not sure
roamingdog has quit [Remote host closed the connection]
skweek has joined #ruby
<catphish>
or so is my understanding of SOCK_DGRAM
<geekb4ck_>
catphish: when i try to use the 'connect' i get "Protocol wrong type for socket"
TvL2386 has quit [Quit: Ex-Chat]
roamingdog has joined #ruby
<catphish>
you may need to set up an address object
tdy has quit [Read error: Connection reset by peer]
<catphish>
or you could just try setting the destination in the sendto
<geekb4ck_>
addrinfo.unix("path")
<catphish>
seems sensible
<al2o3-cr>
geekb4ck_: that uses SOCK_STREAM
<catphish>
i'm afraid i'm just guessing now, this is all i know
modlin has joined #ruby
mim1k has joined #ruby
<al2o3-cr>
geekb4ck_: s = Socket.new Socket::AF_UNIX, Socket::SOCK_DGRAM; s.connect Socket.pack_sockaddr_un('/tmp/mysocket.sock')
<al2o3-cr>
thats it
Burgestrand has quit [Quit: Closing time!]
<catphish>
al2o3-cr: cool :)
pawnbox has quit [Remote host closed the connection]
pawnbox has joined #ruby
<catphish>
i just discovered that there's Socket.tcp as well as TCPSocket.new, i have no idea why, it bothers me
pandaant has quit [Remote host closed the connection]
<catphish>
one returns a TCPSocket, the other returns a Socket, i assume TCPSocket has more TCP specific functonality
<al2o3-cr>
catphish: with Socket.tcp you can specify a timeout
<catphish>
al2o3-cr: is that a new feature? i notice that wasn't in 2.9
<catphish>
*1.9
<al2o3-cr>
catphish: hmm... not sure
<catphish>
i know this because i just overrode both (based on 1.9 docs), and i accidentally forget to accept the timeout, and it broke :)
roamingdog has quit [Ping timeout: 240 seconds]
<catphish>
and yes, i wish i didn't have to override them, but life is cruel
<al2o3-cr>
^-^
<al2o3-cr>
**
<catphish>
i need everything in my app that uses TCP to be forced through a proxy
<catphish>
so i got hacky :(
<catphish>
i hope nothing opens TCP sockets in more imaginative ways
pawnbox has quit [Ping timeout: 240 seconds]
<al2o3-cr>
hack all the things
Rodya_ has joined #ruby
tdy has joined #ruby
Muz_ is now known as Muz
Guest76598 has quit [Quit: Konversation terminated!]
hutch34 has quit [Ping timeout: 240 seconds]
<mekeor>
how can i do something like "string".drop_while { |c| c != ' ' } which doesn't work because there's no String.drop_while but only Array.drop_while?
Guest68648 is now known as CrazEd
CrazEd is now known as Guest93539
<canton7>
"string".chars.drop_while... ?
catphish has left #ruby ["Leaving"]
<mekeor>
nice, thänks <3 (=
Volsus has joined #ruby
<mekeor>
hm, and then, i have to make it a string again... mmmh
cschneid_ has joined #ruby
TomyWork has joined #ruby
<canton7>
.join
Suslov has joined #ruby
Axelay has joined #ruby
<mekeor>
neat
bkxd has joined #ruby
ironcame1 is now known as ironcamel
Suslov has quit [Read error: Connection reset by peer]
<TomyWork>
baweaver i was contemplating adding language to that question to explicitly exclude Hash.delete, but i thought to myself "nah they'll know what i mean"
<baweaver>
setting it to nil just sets it to nil, it'll still be there
<TomyWork>
and there is no other value i can set it to to remove it?
<baweaver>
Nope
mim1k has quit [Ping timeout: 260 seconds]
millerti has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
tlaxkit has quit [Quit: ¡Adiós!]
<baweaver>
Treat one language like another at your own peril. All languages have their ways of doing things, so asking if it can do something Lua does is a very odd question. Asking how to remove a key from a Hash, on the other hand, is straightforward.
pawnbox has joined #ruby
<cr3>
when using double().as_null_object, in rspec-mocks, what can I expect the default value to equal as in: expect(double().as_null_object.foo).to eq(what_should_I_put_here?)
mark_66 has quit [Remote host closed the connection]
ptulskie has joined #ruby
* baweaver
needs to look up as_null_object
omninonsense has joined #ruby
Volsus_ has quit [Remote host closed the connection]
<baweaver>
it'd literally return the double, but that seems pointless in your example
Lucky_ABA has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<baweaver>
black holing anything sounds like a bad idea.
brent__ has joined #ruby
pawnbox has quit [Ping timeout: 246 seconds]
<Jayson_Virissimo>
TomyWork: What's your use case for wanting to set a hash key to something to remove it?
certainty has joined #ruby
mekeor has quit [Quit: luv]
brent__ has quit [Remote host closed the connection]
troulouliou_div2 has joined #ruby
brent__ has joined #ruby
Beams has joined #ruby
Volsus has quit [Ping timeout: 246 seconds]
<Jayson_Virissimo>
If you are just using the presence or absence of a key for something and don't care about the associated value, you might be better off using a set instead of a hash.
centrx has joined #ruby
centrx has joined #ruby
centrx has quit [Changing host]
shinnya has quit [Ping timeout: 260 seconds]
koooge has quit [Quit: Leaving...]
blackmesa has quit [Ping timeout: 256 seconds]
pawnbox has joined #ruby
Derperperd has quit [Max SendQ exceeded]
cxr has joined #ruby
bkxd has quit [Ping timeout: 258 seconds]
Volsus has joined #ruby
yoones has joined #ruby
<yoones>
hi. is there a way to call a module's instance method *without* modifying the module itself nor writing a class that would extend?
<yoones>
I would still need to do something like object = Object.new first
<yoones>
isn't there any way to not need instanciation?
<anoldhacker>
Yep. You must have an instance in order for instance methods to work.
<yoones>
could you please help me understand why? since my method doesn't do anything with an instance context (no instance variables, no calls to other methods, etc.)
<anoldhacker>
If there is an instance method of a module that does NOT require an object, then it's not really much of an instance method. Do you have an example?
username1 has joined #ruby
mim1k has joined #ruby
Volsus has quit [Ping timeout: 260 seconds]
<yoones>
a method that's inside a module. this methods just calls puts
<anoldhacker>
Actually, Rails does this a lot. There is this pattern of making class methods visible via instance methods that just call the class method. But that's really a hack.
<yoones>
you mean Class.new.extend(UsefulThings).get_file ?
<yoones>
nice hack
<marahin>
btw, is irclog.whitequark.org/ruby/ working for any of you (see topic)?
amclain has joined #ruby
<baweaver>
nope
<baweaver>
ah wait
<baweaver>
yep
<baweaver>
just taking a while to load.
<cr3>
baweaver: you raise a good point, about blackholing everything. I think it's acceptable for things that don't matter in the test but, if that's really the case, then I shouldn't be expecting/asserting on those values. thanks for the advice!
<yoones>
ok thanks anoldhacker
<anoldhacker>
I see what's happening.
<baweaver>
cr3: true, I just know I've introduced regressions before like that
<anoldhacker>
The problem is that these instance methods aren't really what you want at all.
<anoldhacker>
In as much as they are _instance_ methods that don't really have anything to do with the instance.
<anoldhacker>
They should be module methods, so that they can be called directly from anywhere.
roamingdog has joined #ruby
<yoones>
anoldhacker, actually I want to write rspec tests for this module's methods that will later be included in a bunch of classes
<yoones>
the classes themselves are tested, but I think it'd be best to test the module separatly
<baweaver>
Then just make a sample class
<anoldhacker>
^^^
<anoldhacker>
I do this a lot for testing modules and superclasses.
xen0fon has joined #ruby
[Butch] has joined #ruby
<Fetch>
yoones: honestly, any trickery you can do to avoid creating/instantiating a class in your testing you should probably avoid. It'll be gross and not really better (such as calling module_exec or something)
roamingdog has quit [Ping timeout: 258 seconds]
millerti has joined #ruby
modlin has quit [Quit: Konversation terminated!]
jsrn_ has quit [Quit: Leaving]
<yoones>
ok guys, thank you for the advice
<yoones>
I'll go the clean way :)
mtkd has quit [Ping timeout: 240 seconds]
<anoldhacker>
Anyone here know what size integers are required to build ruby? Can I assume at least 32 bits? What about floating point? Are there systems where it is emulated? (I'm looking to optimize some c-ruby.) I am specifically wondering about the motivation for the #if SIZEOF_LONG > SIZEOF_INT checks sprinkled in bignum.c, for instance.
mtkd has joined #ruby
dn` has quit [Quit: dn`]
Volsus has joined #ruby
Lucky_ABA has joined #ruby
certainty has quit [Ping timeout: 268 seconds]
Suslov has joined #ruby
[Butch] has quit [Ping timeout: 246 seconds]
dn` has joined #ruby
conta has joined #ruby
<anoldhacker>
yoones: You still there?
[Butch] has joined #ruby
montanonic has joined #ruby
benlieb has joined #ruby
Guest93539 is now known as CrazEd
skweek has quit [Ping timeout: 240 seconds]
CrazEd is now known as Guest98519
conta has quit [Client Quit]
<yoones>
anoldhacker, yes
Volsus has quit [Ping timeout: 260 seconds]
<yoones>
anoldhacker, about your question, sizeof(long) depends on the system you're running. some 64bit systems have it 4bytes, others have it 8bytes
<yoones>
so it's always a good idea to test for its size and not assume either option
<baweaver>
There was also the unification of Bignum into Integer
<baweaver>
then again I'm not a good person for the low level
<yoones>
anoldhacker, can you be more specific about what you're trying to do?
troulouliou_div2 has quit [Quit: Leaving]
Reihar-_- has joined #ruby
blackwind_123 has joined #ruby
oliv_____ has quit [Remote host closed the connection]
<anoldhacker>
Sorry for the afk, I needed to change mice...
Lord_of_Life has quit [Excess Flood]
xall has joined #ruby
jottr has quit [Client Quit]
<anoldhacker>
Yoones, I read your question on SO. The real problem is the kitchen sink class. Your team will regret it--this is just one of many pains to come.
Anonymoose2 has joined #ruby
Lord_of_Life has joined #ruby
reverberations has quit [Ping timeout: 240 seconds]
jottr has joined #ruby
jottr has quit [Client Quit]
<Reihar-_->
Hi
jottr has joined #ruby
<Reihar-_->
I'm looking to learn ruby. So far, I'm mostly finding tutorials aimed at people learning their first languages. There's a page on the ruby lang website about coming to ruby from other languages. Any other good ressources of the same kind?
<baweaver>
Reihar-_-: see the channel topic, we have a books list
<yoones>
anoldhacker, I'm sorry I didn't read the whole thing, but if you have two functions that depend on sizeof(long), why not put them both in your code and call the right one depending one the system that's running?
<centrx>
Reihar-_-: Also Ruby Monk and Ruby Koans
centrx has quit []
<baweaver>
Short version: Eloquent Ruby - Learn to Ruby like a Ruby person.
xall has quit [Ping timeout: 240 seconds]
jottr has quit [Client Quit]
<Reihar-_->
Thanks
xangria has quit [Ping timeout: 258 seconds]
xall has joined #ruby
<anoldhacker>
No need for a 16-bit algorithm if ruby requires 32 bits. No need for an algorithm which is slower than fpu sqrt if fpu is never emulated.
<baweaver>
havenwood: you know if any of the low level folks are about?
jottr has joined #ruby
Derperperd has joined #ruby
<anoldhacker>
baweaver: Just ask your question...
<LambdaSix>
Surely if you want any actual performance in Ruby, you write it as a c module >_>
<baweaver>
I was asking for your sake
mikecmpbll has quit [Quit: inabit. zz.]
<anoldhacker>
:D
BTRE has joined #ruby
<baweaver>
I don't know much below the surface and some other people might
<anoldhacker>
LambdaSix: It is.
mim1k has quit [Ping timeout: 268 seconds]
<LambdaSix>
Ah
caironoleto has joined #ruby
yoones has quit [Quit: Leaving]
<anoldhacker>
I couldn't find it documented anywhere, and the config code would seem to imply 32-bit minimum, but there is that conditional I mentioned...
<anoldhacker>
Likewise, there is nothing about the fpu, but that doesn't mean that fpu emulation would actually work.
<baweaver>
You might also ask the mailing lists, a lot of the JP core devs are on there frequently but tend to avoid IRC.
<LambdaSix>
A) C doesn't define the size of long/int consistantly 2) There's no gaurantee of a FPU (Though it's /highly/ likely to be present on modern architectures)
<LambdaSix>
So if you want to know the size of an int, you ask the compiler :)
<anoldhacker>
I cannot ask your compiler from my machine. :) If Ruby requires 32-bit ints, then I don't need to worry about a 16-bit version of these algorithms.
<LambdaSix>
I'm curious why you're picking such a small/specific optimisation
<LambdaSix>
BUt whatever, I'm going hooooome
<anoldhacker>
It's new, and the code's performance (relative to what it could be) is pretty bad.
jottr has quit [Quit: WeeChat 1.7]
troulouliou_div2 has joined #ruby
blackmesa has joined #ruby
<LambdaSix>
If your algorithm is word size dependent, then you should assert the size of the word before trying to do anything with it.
<LambdaSix>
calcSqrt32() calcSqrt16() -- switch (sizeof(int)) { case 4: ... case 8: ...}
<LambdaSix>
etc etc
xall has quit [Ping timeout: 240 seconds]
<anoldhacker>
And if ruby only works for 32-bit or more ints, then why have the calcSqrt16() at all?
<anoldhacker>
And you generally do these things at compile time...
OTORelic has joined #ruby
bkxd has joined #ruby
Cohedrin has joined #ruby
<LambdaSix>
Not when writing portable C, you either set a minimum required size (int32_t) or be flexible on it (int_least32_t) or don't care (int)
<LambdaSix>
fwiw, ruby appears to require at least an i386, x86_64, PPC or PPC64 to build correctly
Terminal_Jack has joined #ruby
Terminal_Jack has left #ruby ["Session terminated!"]
<anoldhacker>
Where do you see this?
<LambdaSix>
configure.in
caironoleto has left #ruby [#ruby]
<LambdaSix>
My gut feeling is that Ruby is effectively >=32bit because of it's compilation requirements and that.. well, no-one actually runs 16bit platforms anymore.
jottr has joined #ruby
jaruga_______ has joined #ruby
Rodya_ has quit [Remote host closed the connection]
jredville has quit [Ping timeout: 240 seconds]
doublemalt_ has joined #ruby
Rodya_ has joined #ruby
<LambdaSix>
Even still, the naive implementation of intsqrt(n) gives a performance of 54,219 invocations per second
chouhoulis has quit [Remote host closed the connection]
jaruga________ has joined #ruby
jaruga_______ has quit [Read error: Connection reset by peer]
renchan has quit [Quit: Leaving...]
ferr1 has quit [Quit: WeeChat 1.6]
Immune has joined #ruby
jaruga______ has quit [Ping timeout: 256 seconds]
pilne has joined #ruby
tildes has joined #ruby
troulouliou_div2 has quit [Quit: Leaving]
<havenwood>
baweaver: A couple appear to be on right now in #ruby-core, so that might be worth a shot.
Rodya_ has quit [Ping timeout: 246 seconds]
tolerablyjake has joined #ruby
<havenwood>
LambdaSix: With a quick glance I don't see anything 16 tested against: http://rubyci.org/
Beams has quit [Quit: .]
dionysus69 has joined #ruby
<TomyWork>
Jayson_Virissimo well there's this json api that i'm passing json-encoded ruby hashes to. there's one optional sub-object in that json object that i want to fill from the result of a method. I just needed something to return in case it's not supposed to be there.
<TomyWork>
Jayson_Virissimo however, turns out the API tolerates an empty sub-object, so i'm just using that
omninonsense has quit [Quit: WeeChat 1.4]
nowhere_man has quit [Ping timeout: 256 seconds]
roamingdog has joined #ruby
certainty has joined #ruby
<anoldhacker>
There are some references to target_cpu of "le32", but that might be one of the designations for ppc...
roamingdog has quit [Ping timeout: 240 seconds]
Violentr has joined #ruby
ldnunes has quit [Ping timeout: 260 seconds]
<anoldhacker>
Ahh.. alpha* sh4 ; sh4el, sh4eb...
<anoldhacker>
sparc
gusrub has quit [Remote host closed the connection]
gusrub has joined #ruby
duderonomy has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<anoldhacker>
Oh boy.. m68*, hppa*
alibby1 has joined #ruby
digital-ghost has joined #ruby
digital-ghost has quit [Client Quit]
BAZkiller has joined #ruby
fuzzyhorns has joined #ruby
gusrub has quit [Ping timeout: 268 seconds]
jenrzzz has joined #ruby
jenrzzz has joined #ruby
jenrzzz has quit [Changing host]
Pumukel has joined #ruby
Violentr has quit [Ping timeout: 260 seconds]
djbkd has joined #ruby
sungasu has joined #ruby
blackmesa has quit [Ping timeout: 260 seconds]
TomyWork has quit [Ping timeout: 240 seconds]
sungasu has quit [Client Quit]
certainty has quit [Ping timeout: 260 seconds]
loechel has joined #ruby
ldnunes has joined #ruby
psychicist__ has quit [Ping timeout: 260 seconds]
jenrzzz has quit [Ping timeout: 246 seconds]
bkxd has quit [Ping timeout: 268 seconds]
emin has quit [Remote host closed the connection]
Pumukel has quit [Ping timeout: 240 seconds]
cpruitt has quit [Quit: cpruitt]
Asher has quit [Quit: Leaving.]
oliv_____ has joined #ruby
Violentr has joined #ruby
loechel has quit [Ping timeout: 240 seconds]
blackmesa has joined #ruby
kernelPaniq has joined #ruby
Asher has joined #ruby
fclausen has joined #ruby
Guest78872 is now known as c-c
kernelPaniq has quit [Remote host closed the connection]
pnus has joined #ruby
kernelPaniq has joined #ruby
tomphp has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
tomphp has joined #ruby
stomar has joined #ruby
Pumukel has joined #ruby
tomphp has quit [Client Quit]
renchan has joined #ruby
fclausen has quit [Ping timeout: 252 seconds]
pnus has quit [Quit: Page closed]
oliv_____ has quit [Ping timeout: 240 seconds]
Pumukel has quit [Ping timeout: 240 seconds]
ta_ has joined #ruby
anothertau has joined #ruby
samdvr has joined #ruby
samdvr has quit [Client Quit]
nowhere_man has joined #ruby
tomphp has joined #ruby
vondruch has quit [Ping timeout: 240 seconds]
blackmes1 has joined #ruby
nowhere_man has quit [Ping timeout: 240 seconds]
cr3 has quit [Quit: leaving]
blackmesa has quit [Ping timeout: 260 seconds]
jredville has joined #ruby
kirun has joined #ruby
Rodya_ has joined #ruby
raspado has joined #ruby
polishdub has quit [Remote host closed the connection]
Oldn0rse has joined #ruby
Oldn0rse has quit [Changing host]
Oldn0rse has joined #ruby
chouhoulis has joined #ruby
chouhoulis has quit [Remote host closed the connection]
t-recx has joined #ruby
cxr has joined #ruby
tomphp has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
chouhoulis has joined #ruby
tomphp has joined #ruby
oliv_____ has joined #ruby
tvw has quit [Read error: Connection reset by peer]
p0p0pr37 has quit [Read error: Connection reset by peer]
bkxd has quit [Ping timeout: 256 seconds]
p0p0pr37 has joined #ruby
cdg_ has quit [Ping timeout: 260 seconds]
cdg has quit [Ping timeout: 246 seconds]
roamingdog has joined #ruby
dn`_ has joined #ruby
dn`_ has quit [Client Quit]
roamingdog has quit [Ping timeout: 260 seconds]
benlieb has joined #ruby
dn` has quit [Ping timeout: 260 seconds]
dn`_ has joined #ruby
gloscombe_ has joined #ruby
gloscombe_ has quit [Client Quit]
gloscombe_ has joined #ruby
prestorium has quit [Quit: Leaving]
rdark has joined #ruby
safetypin has joined #ruby
SeepingN has joined #ruby
nofxx has joined #ruby
jredville has quit [Ping timeout: 246 seconds]
OMGtechy has joined #ruby
s0l__ has quit [Ping timeout: 252 seconds]
s0l__ has joined #ruby
Hobbyboy has joined #ruby
montanonic has quit [Ping timeout: 240 seconds]
jredville has joined #ruby
dionysus69 has quit [Ping timeout: 260 seconds]
nowhere_man has joined #ruby
leandroalemao has joined #ruby
ta_ has quit [Remote host closed the connection]
chouhoul_ has joined #ruby
<leandroalemao>
Hi folks
jredville has quit [Ping timeout: 268 seconds]
mtkd has quit [Ping timeout: 240 seconds]
oliv_____ has quit [Quit: Leaving...]
mtkd has joined #ruby
chouhou__ has joined #ruby
ta_ has joined #ruby
chouhoulis has quit [Ping timeout: 240 seconds]
nanoz has quit [Read error: Connection reset by peer]
haennar has joined #ruby
chouhoul_ has quit [Ping timeout: 256 seconds]
cxr has joined #ruby
<havenwood>
leandroalemao: hi
<leandroalemao>
havenwood: hi.. are you alright?
nowhere_man has quit [Ping timeout: 268 seconds]
<havenwood>
leandroalemao: Have anything Ruby-related to show us or get help with?
nowhere_man has joined #ruby
fclausen has joined #ruby
<leandroalemao>
havenwood: I've got 3 years of experience now working with ruby and trying to get a new job.. but I'm failing on coding test interviews.. I don't know why.. the two interviews I failed I made all tests pass and completed the kata.. but I think It needs something else I'm missing
ta_ has quit [Remote host closed the connection]
cxr has quit [Ping timeout: 240 seconds]
<leandroalemao>
havenwood: started to re-read some books again.. specially that sandi metz book and the rails antipatterns..
<Jayson_Virissimo>
If you passed completed the coding challenges, then maybe work on other things besides code.
fclausen has quit [Ping timeout: 252 seconds]
Xentil has quit [Ping timeout: 260 seconds]
<Jayson_Virissimo>
Attitude, grooming, etc...
<c-c>
Perhaps reposition yourself on the field so that the competition isn't a problem
<OMGtechy>
The company I worked for once interviewed someone with incredible technical ability, far better than anyone I'd met before, but he was such a dick to those around him he wasn't hired.
<OMGtechy>
I'm not saying you're a dick, I'm saying that there are potentially other issues you're overlooking :)
<leandroalemao>
Jayson_Virissimo: the feedback was good about those bits.. but I think the two companies were looking for senior level developers.. but the salary was like for a junior/upper junior levels dev..
<OMGtechy>
Have you tried asking them why they didn't hire you?
pifon has quit [Quit: Connection closed for inactivity]
<Jayson_Virissimo>
They likely won't say, because they take on risk with virtually no reward.
<Jayson_Virissimo>
Still, two companies isn't very much.
npgm has joined #ruby
wrkrcoop has joined #ruby
<OMGtechy>
That's not been my experience, but I get that some places won't. Asking is low risk and low effort for you too, so even if they don't answer you've not lost much :)
<Jayson_Virissimo>
Can't infer much from two data points. Could just be noise: there were better candidates than you that time.
<leandroalemao>
OMGtechy: yes I got it the point.. the weirdest thing is.. the feedback was well good about all non-technical bits.. they said I failed because the dev skills itself.. but all tests passed in the coding test and with neat solutions..
<OMGtechy>
you can use puts "\"#{create_another}\"" to debug it too
<havenwood>
or better yet: p create_another
<wrkrcoop>
thank you!
Jayson_Virissimo has quit []
<OMGtechy>
leandroalemao, did you push them for any more than that? i.e. what about it in particular; approach, knowledge of the language, etc
binaryplease has quit [Ping timeout: 246 seconds]
<leandroalemao>
OMGtechy : I don't know if this changes something I'm in the UK.. I don't know where you guys are from
millerti has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
pifon has joined #ruby
<OMGtechy>
I'm in the UK :)
millerti has joined #ruby
<OMGtechy>
Jayson has a fair point too about the number of samples
<leandroalemao>
OMGtechy: no I've forgotten to ask for details.. just read the feedback emails.. for example this one I received from one of the companies: "I'm writing to folks now to let them know we've filled our vacancy. In terms of feedback: you came over really well and we enjoyed chatting to you; you're friendly and clearly very enthusiastic. We also felt like you got the model and were excited about the
<leandroalemao>
opportunity. In the end, though, we didn't feel like your coding skills quite matched what we're looking for right now."
<OMGtechy>
well that's good ! you can learn programming skills, much harder to learn personal skills
rippa has quit [Quit: {#`%${%&`+'${`%&NO CARRIER]
<OMGtechy>
what was the role?
<OMGtechy>
Principal Engineer? Graduate?
BAZkiller has quit [Ping timeout: 260 seconds]
<SeepingN>
wow. no one ever took the time to write that the las ttime I was looking
<leandroalemao>
OMGtechy defo agree.. but they want to pay £40k year.. for a senior developer.. I guess those salaries are more like for upper junior/mid level devs..
bkxd has joined #ruby
<OMGtechy>
that's pretty normal
<OMGtechy>
for a Senior
<OMGtechy>
(depending on where you are in the country)
tdy has quit [Read error: Connection reset by peer]
ta_ has joined #ruby
<leandroalemao>
OMGtechy I'm Liverpool based but the company is in Manchester..
<OMGtechy>
that's not so bad then
<OMGtechy>
it's not the most expensive place to live
<leandroalemao>
OMGtechy: the role title was 'Senior Ruby Developer'
<c-c>
worrying about what people want to pay is like... futile
rdark has quit [Quit: leaving]
chouhou__ has quit [Remote host closed the connection]
<c-c>
Small companies take great risk whenever hiring a new person
chouhoulis has joined #ruby
<OMGtechy>
sounds like you just need to keep at it, keep fleshing out your skills, and not worry :)
<OMGtechy>
best case, you're already at the level people are expecting, and you just haven't found the right place yet
<OMGtechy>
worst case, you're not, and you'll get there
<OMGtechy>
"Senior" varies a lot depending on company
<leandroalemao>
OMGtechy Agree but this salary is just a little step higher than I'm already getting here at my current job..
<leandroalemao>
OMGtechy I think they could pay more for the job.. one of the companies is big and the other just got £1M+ in investments for the new product they'll start to develop
<OMGtechy>
well, if you do web dev, we're hiring and have an office in Manchester ;)
millerti has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
millerti has joined #ruby
<OMGtechy>
I'm not a web dev, but last I checked we had some web dev stuff going .. will take another look
<wrkrcoop>
do i need to require ‘File’ to use this File.read(file_name) and if i use that do i just get a big array? or big string?
<leandroalemao>
OMGtechy is this indeed job role at your company?
<OMGtechy>
no, that's just a random one I found
<OMGtechy>
am looking through our careers page atm
<mikecmpbll>
in yorkshire here :)
nowhere_man has quit [Ping timeout: 240 seconds]
<mikecmpbll>
we're looking for junior/mid-level if anyone's interested :P
<wrkrcoop>
mikecmpbll: what company
Irishluc1 has joined #ruby
<leandroalemao>
OMGtechy I've applied for this one already.. received basically the same feedback as before..
<mikecmpbll>
just a smallish IT company in skipton.
mim1k has joined #ruby
Irishluc1 has quit [Client Quit]
<OMGtechy>
leandroalemao, so are there any skills in the list you don't have?
cxr has joined #ruby
<leandroalemao>
OMGtechy where is your office in Manchester? do you have a link from where I can apply to?
millerti has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<leandroalemao>
OMGtechy I've got 3 years of experience with all techies from the job description.. they just don't think I'm a senior developer.. which I agree.. because I just have 3 years of experience.. but for the salary they pay.. I was thinking the roles were for a junior/upper junior dev..
Violentr has joined #ruby
<mikecmpbll>
3 years & senior dev? :/
<Papierkorb>
OMGtechy: oh thanks, atm collecting possible future employers. Didn't think of ARM yet.
<OMGtechy>
leandroalemao, 3 years is plenty for Senior at some places
mim1k has quit [Ping timeout: 240 seconds]
<leandroalemao>
mikecmpbll: with 3 years of experience I consider myself a upper junior dev.. but as you see in the role description they want a senior developer with 3 years of experience
<OMGtechy>
I can make a temporary email address for you to forward your CV to if you'd like? Will ask around the office RE the web dev role we had going recently ...
<Papierkorb>
OMGtechy: Would you mind me PM'ing you with a quick question or two?
Pumukel has joined #ruby
<OMGtechy>
go for it :)
cxr has quit [Ping timeout: 240 seconds]
<mikecmpbll>
tbh i was senior dev with 0 years experience, cus i went to work for a small company :d
Jackneill_ has joined #ruby
pawnbox has quit [Remote host closed the connection]
millerti has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
pawnbox has joined #ruby
millerti has joined #ruby
jdm has joined #ruby
Jackneill_ has quit [Max SendQ exceeded]
fclausen has joined #ruby
binaryplease has joined #ruby
<leandroalemao>
mikecmpbll: depends.. if your boss is a long term friend of you.. you can get hired as a CTO with 0 year of experience.. everything depends..
<mikecmpbll>
well, that certainly wasn't the situation in my case
Jackneill_ has joined #ruby
<leandroalemao>
OMGtechy was the temp email message to me? I'd be glad if so
<leandroalemao>
mikecmpbll I'm not telling that I'm an EU immigrant here in the UK.. but I prefer not to quote this.. as I presume the people in general don't have problem with it when hiring people..
workmad3 has joined #ruby
<mikecmpbll>
no one cares.
Violentr has quit [Ping timeout: 258 seconds]
<leandroalemao>
mikecmpbll But I know.. if they are in doubt between my and a british guy.. they'll choose the british guy..
<leandroalemao>
mikecmpbll: *between me
mim1k has joined #ruby
<mikecmpbll>
the "if i'm on a par with someone else" imagined scenarios aren't really worth thinking about
zapata has quit [Quit: WeeChat 1.7]
<leandroalemao>
mikecmpbll but this is normal.. I face this everyday here.. already got used after a good couple of years living here..
ta_ has quit [Remote host closed the connection]
<mikecmpbll>
got used to what?
<OMGtechy>
leandroalemao, sent
Violentr has joined #ruby
<leandroalemao>
mikecmpbll to receive different treatment in restaurants... people looking different.. unknown people asking to speak english instead of my mother language.. etc..
<baweaver>
I'm not Senior and I have ~6 years experience. If I went to a startup here I likely could be. It's so relative anymore I wouldn't worry about it.
<mikecmpbll>
sounds a bit melodramatic, but who am i to say i've never lived in a foreign country :)
binaryplease1 is now known as binaryplease
<mikecmpbll>
sorry if you feel unwelcome!
wilbert has joined #ruby
<wrkrcoop>
hey im reading in files, and if they have #{some_variable} i want the value to be reflected in the stirng, but it doesnt seem to be interpolating
<baweaver>
Also, at least on IRC, we don't mind much but we may ask you to clarify things if you word them oddly.
workmad3 has quit [Ping timeout: 258 seconds]
username1 has joined #ruby
<baweaver>
wrkrcoop: Use ERB instead, easier.
<wrkrcoop>
oh yeah i forgot about that
<leandroalemao>
mikecmpbll I feel completely welcome here.. the greatest country I've ever lived with great people. etc etc all good.. I just don't care anymore about those things.. you know there's this kind of people everywhere..
<mikecmpbll>
okay cool ;0
<mikecmpbll>
:)*
<wrkrcoop>
baweaver: so just edit the templates to use erb syntax, then when i puts File.read(Dir.pwd + file_name) it will work?