koldbrutality has quit [Ping timeout: 256 seconds]
kus has joined #ruby
<tekeli-li>
I humbly offer seasonal felicitations to any person who wishes to accept them.
gnufied has joined #ruby
edwinvdgraaf has joined #ruby
walterheck has joined #ruby
arescorpio has joined #ruby
GodFather has joined #ruby
kareelee has joined #ruby
kus has quit [Quit: Konversation terminated!]
GodFather has quit [Remote host closed the connection]
edwinvdgraaf has quit [Ping timeout: 252 seconds]
GodFather has joined #ruby
symm- has quit [Quit: Leaving...]
roshanavand has joined #ruby
kus has joined #ruby
jenrzzz has quit [Ping timeout: 265 seconds]
kus has quit [Client Quit]
bronson has joined #ruby
GodFather has quit [Ping timeout: 260 seconds]
nankyokusei has joined #ruby
learning has joined #ruby
Pumukel has joined #ruby
bronson has quit [Ping timeout: 256 seconds]
kirun has quit [Quit: Konversation terminated!]
roshanavand has quit [Quit: Leaving]
spenser has quit [Ping timeout: 250 seconds]
roshanavand has joined #ruby
nankyokusei has quit [Ping timeout: 265 seconds]
Pumukel has quit [Ping timeout: 245 seconds]
spenser has joined #ruby
nowhereman has joined #ruby
nowhereman has quit [Read error: Connection reset by peer]
nowhereman has joined #ruby
rykou has quit [Ping timeout: 252 seconds]
nowhere_man has joined #ruby
nowhereman has quit [Client Quit]
buglessdr has quit [Quit: Leaving]
koldbrutality has joined #ruby
symm- has joined #ruby
Rodya_ has joined #ruby
koldbrutality has quit [Ping timeout: 248 seconds]
blackbombay has quit [Ping timeout: 260 seconds]
maloik has quit [Remote host closed the connection]
jshjsh has joined #ruby
maloik has joined #ruby
drPoggs has quit [Quit: +++ATH]
Azure has joined #ruby
tk__ has joined #ruby
Rodya_ has quit [Ping timeout: 240 seconds]
JoshS has quit [Ping timeout: 268 seconds]
dminuoso has quit [Ping timeout: 252 seconds]
pwnd_nsfw` has joined #ruby
pwnd_nsfw has quit [Ping timeout: 248 seconds]
AnoHito has quit [Quit: Leaving]
kareelee has quit [Remote host closed the connection]
polysics has joined #ruby
<Yonk_>
This is an abstract question mostly but I would appreciate feedback.
kareelee has joined #ruby
AnoHito has joined #ruby
kareelee has quit [Remote host closed the connection]
CorthValira has quit [Quit: CorthValira]
<Yonk_>
When creating a test framework like RSpec is there a reason to also append _spec to a filename. Wouldn't it be nice to just put stuff inside of a `/spec` folder and not have to append _spec to the filename?
<Yonk_>
I just wonder if there's a super good reason to put spec besides the nomenclature that is rspec
edwinvdgraaf has joined #ruby
polysics has quit [Ping timeout: 258 seconds]
<nofxx>
Yonk_, you'll get dups, it'll be confuse... lots of reasons to use it, can't think of one to don't
<elomatreb>
Yonk_: It's just a convention, and allows you to automatically require all spec files (matching "*_spec.rb") as specs, but still allows you to have helper files in the same directories
<Yonk_>
*nods*
* Yonk_
nods
<Yonk_>
@nofxx I like that you can't come up with reasons why you wouldn't. Thank you.
<Yonk_>
@elomatreb Thanks, you make an excellent point of conflicting with helpers. Awesome.
<manveru>
Yonk_: i never liked that convention myself, i name files without it when using bacon
<Yonk_>
@manveru but doesn't your keyboard get greasy?
<elomatreb>
nice
<manveru>
:)
AnoHito has quit [Quit: Leaving]
bronson has joined #ruby
enyo has joined #ruby
gnufied has quit [Ping timeout: 240 seconds]
emiserson is now known as emerson
Gasher has quit [Quit: Leaving]
bronson has quit [Ping timeout: 252 seconds]
Pumukel has joined #ruby
enyo has quit [Ping timeout: 268 seconds]
pilne has joined #ruby
blackbombay has joined #ruby
Pumukel has quit [Ping timeout: 250 seconds]
bogi has joined #ruby
bogi has quit [Client Quit]
charliesome has joined #ruby
AnoHito has joined #ruby
duderonomy has joined #ruby
d0nn1e has quit [Ping timeout: 268 seconds]
milardovich has joined #ruby
edwinvdgraaf has quit [Ping timeout: 252 seconds]
charliesome has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<elomatreb>
That empty line in the headers is invalid
<Nilium>
That's also kind of weird that there is one
<Nilium>
Weird, Base64.encode64 sticks a \n at the end
<elomatreb>
To explain why your error 404s in that case: Your Host header is seen as part of the payload, so the server doesn't know which host you're talking to
<Nilium>
Probably use strict_encode64
<elomatreb>
Or .chomp :shrug:
<Nilium>
Well, one strips the \n and one doesn't create the \n in the first place
<Nilium>
So, choices
<d34th4ck3r>
Yeah .chomp did the trick
<d34th4ck3r>
but now I’m getting HTTP 400
<Nilium>
Would be better to use strict since if the auth token ever exceeds 60 chars, it's going to have a \n in it.
<elomatreb>
If I were to read the code, I'd have to look up why you're using that method over regular encode, unless you add a commetn
<Nilium>
That said, what I'd really recommend doing is seeing if there's a way to attach basic authorization to the request without setting the header yourself
Rodya_ has joined #ruby
<Nilium>
I don't generally use Ruby for HTTP stuff, so mostly on your own there.
optiz0r has quit [Ping timeout: 245 seconds]
<d34th4ck3r>
Yeah! But Authorization doesn’t seem to be the issue, right? Because I’m not getting 403
reaVer_ has quit [Remote host closed the connection]
<Guest47585>
?
hsagar has joined #ruby
reaVer has joined #ruby
<Guest47585>
anyone did learnrubythehard?
<surrounder>
+way
nowhere_man has quit [Ping timeout: 258 seconds]
DTZUZU has quit [Read error: Connection reset by peer]
<matthewd>
Guest47585: If you have a question about something specific, you'll be better off just asking it. People who haven't read that book can probably still help.
dtzu has quit [Read error: Connection reset by peer]
<matthewd>
Guest47585: If you're looking for opinions on the book, then you obviously need people who've read it... but your hit rate is probably not going to be high enough to get impatient after a couple of minutes
<Guest47585>
haha okay, im going to finish it, just asking if you guys find it hard? as you progress from ext45 onwards
skydiver has joined #ruby
<Guest47585>
i always refer to answer to understand the code
<matthewd>
Well, it is called "the hard way" ;)
<Guest47585>
haha okay
<Guest47585>
harder from 45 onwards i would say
<Guest47585>
that's why i refer to people code
<matthewd>
I'm not familiar with the actual contents, though, sorry. At a glance, it does sound like exercise 45 is intended to be a steeper learning curve.
<Guest47585>
oh i see
nankyokusei has joined #ruby
<matthewd>
But it sounds like the thing you're supposed to be learning there isn't how to solve the problem, but how to work out the solution
<matthewd>
i.e., that you should be hitting the Internet to work it out, but you should be researching the components of the solution you need and then combining them, not finding a built solution then trying to understand it
anisha has quit [Ping timeout: 248 seconds]
<Guest47585>
oh kk
anisha has joined #ruby
bronson has joined #ruby
<matthewd>
That's just from reading its intro, though
Vingador has quit [Remote host closed the connection]
nadir|mobile has quit [Quit: Connection closed for inactivity]
roshanavand has quit [Ping timeout: 258 seconds]
pwnd_nsfw has joined #ruby
bronson has joined #ruby
pwnd_nsfw` has quit [Ping timeout: 252 seconds]
postmodern has quit [Quit: Leaving]
AlexRussia has quit [Ping timeout: 246 seconds]
Silox| has joined #ruby
bronson has quit [Ping timeout: 258 seconds]
adgtl has quit [Changing host]
adgtl has joined #ruby
adgtl has joined #ruby
polysics has joined #ruby
kedibasi has joined #ruby
dionysus69 has quit [Ping timeout: 265 seconds]
dling has joined #ruby
roshanavand has joined #ruby
spectrum has quit [Ping timeout: 268 seconds]
pilne has joined #ruby
pawnbox has quit [Remote host closed the connection]
roshanavand has quit [Ping timeout: 258 seconds]
SpiffTR has quit [Quit: Leaving.]
pia has left #ruby ["Leaving"]
pwnd_nsfw` has joined #ruby
enyo has joined #ruby
pwnd_nsfw has quit [Ping timeout: 246 seconds]
bkxd has joined #ruby
marchelzo has joined #ruby
<marchelzo>
hi
enyo has quit [Ping timeout: 248 seconds]
bkxd has quit [Ping timeout: 264 seconds]
Macrobiotic has joined #ruby
SJr has quit [Ping timeout: 268 seconds]
nettoweb has quit [Ping timeout: 248 seconds]
Azure|dc has quit [Ping timeout: 256 seconds]
nettoweb1 has joined #ruby
pwnd_nsfw` has quit [Ping timeout: 264 seconds]
Azure has joined #ruby
pwnd_nsfw has joined #ruby
polysics has quit [Remote host closed the connection]
hsagar has quit [Quit: hsagar]
polysics has joined #ruby
hsagar has joined #ruby
harfangk has joined #ruby
ruby-lang881 has joined #ruby
Pumukel has joined #ruby
eminencehc has joined #ruby
loechel has joined #ruby
UserJosh has joined #ruby
Pumukel has quit [Ping timeout: 260 seconds]
marciol has joined #ruby
jshjsh has quit [Ping timeout: 258 seconds]
loechel has quit [Ping timeout: 260 seconds]
Pumukel has joined #ruby
Azure has quit [Ping timeout: 256 seconds]
<eminencehc>
How would I sort this hash by key, using an array of keys? hash = {2=>{}, 1=>{}, 3=>{}} order_of_keys = [3, 2, 1] I want the hash to be sorted and return {3=>{}, 2=>{}, 1=>{}}
nankyokusei has joined #ruby
<matthewd>
eminencehc: Construct a new hash, extracting the values from the old hash in your chosen order
d34th4ck3r has joined #ruby
Angel47 has joined #ruby
Angel47 has left #ruby [#ruby]
bronson has joined #ruby
<eminencehc>
matthewd: I like the idea about constructing a new hash, but how would I extract the values into a chosen order?
<matthewd>
order_of_keys.each do ...
marciol has quit [Remote host closed the connection]
Pumukel has quit [Ping timeout: 250 seconds]
<eminencehc>
matthewd: perfect. thanks.
<marchelzo>
wait items in hashes have an ordering?
nankyokusei has quit [Ping timeout: 265 seconds]
ruby-lang881 has quit [Ping timeout: 260 seconds]
<matthewd>
marchelzo: Yes, hashes are insertion ordered
<matthewd>
ytti: That makes it universally true for any version I'm prepared to acknowledge still exists :)
<marchelzo>
so to construct Hash#keys you have to chase all kinds of pointers
bronson has quit [Ping timeout: 264 seconds]
banisterfiend has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
sdothum has joined #ruby
<marchelzo>
Hash#keys and Hash#values would be significantly faster if there was no specified ordering, no?
DLSteve has joined #ruby
<matthewd>
marchelzo: I don't think so, though I haven't actually done the math
blackbombay has quit [Ping timeout: 268 seconds]
<matthewd>
As I implied above, it's more a trade of space than time
Azure has joined #ruby
<marchelzo>
if Hash is implemented with open addressing, despite the fact that you still get O(n) implementations with the linked list, having an unspecified order would likely still be a lot faster due to the cache friendliness of just iterating over the array, i think
shinnya has joined #ruby
<marchelzo>
suppose you wanted to add variants of #keys and #values that ignored insertion order... what would you name them?
pawnbox has joined #ruby
eggshke has quit []
ruid_ has joined #ruby
<Papierkorb>
marchelzo: What order should they have then?
<marchelzo>
whatever order they happen to be in in the hash table
<marchelzo>
unspecified as far as the user is concerned
<Papierkorb>
unordered_*
<marchelzo>
that's so verbose, though
<matthewd>
It should be verbose; it's blatantly ignoring an intrinsic property of the class
<Papierkorb>
that's a really special case almost no one uses, thus barely anyone will see these methods often and thus they should be rather explicit
<marchelzo>
i disagree. i think that should be your go-to default way of iterating over keys or values. imposing the order is a special case.
<marchelzo>
usually it's just "do something for all the keys in the Hash"
<Papierkorb>
marchelzo: That's #each_key, which works fine even if you don't care about the order
<matthewd>
Then give it a temporary long/descriptive name, and produce benchmarks that prove the difference matters
<marchelzo>
matthewd: good idea
blackbombay has joined #ruby
<Papierkorb>
I've found Hash to be "surprisingly fast" in the general case.
<marchelzo>
i will try implementing the unordered variant
<marchelzo>
if i can figure out MRI's source code well enough
kedibasi has quit [Ping timeout: 264 seconds]
toretore has joined #ruby
brendan- has joined #ruby
saneax is now known as saneax-_-|AFK
eizua has quit [Remote host closed the connection]
bkxd has joined #ruby
hsagar has quit [Quit: hsagar]
hsagar has joined #ruby
vuoto has quit [Quit: Lost terminal]
anisha has quit [Quit: Leaving]
kassav has quit [Remote host closed the connection]
kassav has joined #ruby
<marchelzo>
does anyone know what ST_DATA_COMPATIBLE_P means
<marchelzo>
it seems like if ST_DATA_COMPATIBLE_P(VALUE), it just does what i suggested anyway
tubuliferous has joined #ruby
bkxd has quit [Ping timeout: 265 seconds]
lenwood has quit [Ping timeout: 258 seconds]
aryaching has joined #ruby
ruid_ has quit [Ping timeout: 268 seconds]
red_menace has joined #ruby
koldbrutality has joined #ruby
polysics has quit [Remote host closed the connection]
polysics has joined #ruby
brendan- has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
charliesome has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
kus has joined #ruby
kassav has quit [Quit: kassav]
kassav has joined #ruby
polysics has quit [Ping timeout: 258 seconds]
polysics has joined #ruby
tuxaddicted has quit [Ping timeout: 265 seconds]
DTZUZU has joined #ruby
blackbom1 has joined #ruby
alem0lars__ has quit [Read error: Connection reset by peer]
dtzu has joined #ruby
sagax_ has quit [Remote host closed the connection]
symm- has joined #ruby
blackbombay has quit [Ping timeout: 260 seconds]
bronson has joined #ruby
tubuliferous has quit [Ping timeout: 258 seconds]
bronson has quit [Ping timeout: 256 seconds]
skweek has joined #ruby
hsagar has quit [Quit: hsagar]
hsagar has joined #ruby
milardovich has quit [Remote host closed the connection]
milardovich has joined #ruby
platzhirsch has joined #ruby
shinnya has quit [Ping timeout: 252 seconds]
milardovich has quit [Remote host closed the connection]
milardovich has joined #ruby
enyo has joined #ruby
SpiffTR has joined #ruby
beanHolez has joined #ruby
enyo has quit [Ping timeout: 268 seconds]
d0nn1e has quit [Ping timeout: 264 seconds]
Vile` has joined #ruby
SpiffTR has quit [Quit: Leaving.]
d0nn1e has joined #ruby
xen0fon has joined #ruby
milardovich has quit [Remote host closed the connection]
synthroid has joined #ruby
milardovich has joined #ruby
Vile` has quit [Remote host closed the connection]
pwnd_nsfw` has joined #ruby
jeffreylevesque_ has quit [Ping timeout: 256 seconds]
Gasher_ has joined #ruby
milardovich has quit [Ping timeout: 246 seconds]
Gasher has quit [Ping timeout: 265 seconds]
bkxd has joined #ruby
pwnd_nsfw has quit [Ping timeout: 264 seconds]
jshjsh has joined #ruby
hsagar has quit [Quit: hsagar]
Macaveli has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
bkxd has quit [Ping timeout: 252 seconds]
UserJosh has quit [Ping timeout: 248 seconds]
<marchelzo>
ah
<marchelzo>
the entries of the hash table are actually physically stored in memory in the order they were inserted in
<marchelzo>
MRI doesn't use the linked-list thing anymore
polysics has quit [Remote host closed the connection]
lenwood has joined #ruby
platzhirsch has quit [Ping timeout: 248 seconds]
tau has joined #ruby
UserJosh has joined #ruby
polysics has joined #ruby
montanonic has quit [Ping timeout: 245 seconds]
beanHolez has quit [Remote host closed the connection]
jshjsh has quit [Ping timeout: 258 seconds]
SesMan has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
polysics has quit [Ping timeout: 248 seconds]
jtd has quit [Ping timeout: 245 seconds]
<apeiros>
hm, I guess I have to read up on that. linked list guaranteed O(1) insertion and deletion. wonder whether, and if, how they achieve that this way
seggy has quit [Quit: leaving]
seggy has joined #ruby
milardovich has joined #ruby
aef has joined #ruby
polysics has joined #ruby
jtd has joined #ruby
lenwood has quit [Ping timeout: 252 seconds]
pawnbox has quit [Remote host closed the connection]
skweek has quit [Ping timeout: 264 seconds]
<canton7>
yeah, but that's offset by the lack of cache coherency, iirc
polysics has quit [Ping timeout: 245 seconds]
Pumukel has joined #ruby
nankyokusei has joined #ruby
hsagar has joined #ruby
pawnbox has joined #ruby
Guest72104 has joined #ruby
kassav has quit [Ping timeout: 250 seconds]
blackbom1 has quit [Ping timeout: 260 seconds]
bronson has joined #ruby
milardovich has quit [Remote host closed the connection]
Pumukel has quit [Ping timeout: 260 seconds]
toretore has quit [Ping timeout: 260 seconds]
milardovich has joined #ruby
nankyokusei has quit [Ping timeout: 245 seconds]
pwnd_nsfw has joined #ruby
conta has joined #ruby
pwnd_nsfw` has quit [Ping timeout: 265 seconds]
Guest72104 has left #ruby [#ruby]
bronson has quit [Ping timeout: 268 seconds]
milardovich has quit [Ping timeout: 258 seconds]
milardovich has joined #ruby
troys has joined #ruby
polysics has joined #ruby
Pumukel has joined #ruby
Silox| has quit [Quit: Connection closed for inactivity]
polysics has quit [Ping timeout: 250 seconds]
sagax_ has joined #ruby
skweek has joined #ruby
Pumukel has quit [Ping timeout: 260 seconds]
synthroid has quit [Remote host closed the connection]
Pumukel has joined #ruby
polysics has joined #ruby
natevick has joined #ruby
hinbody has quit [Quit: leaving]
jphase_ has quit [Read error: Connection reset by peer]
xen0fon has quit [Read error: Connection reset by peer]
xen0fon has joined #ruby
benlieb has joined #ruby
ResidentBiscuit has joined #ruby
jtdoncas has joined #ruby
jshjsh has joined #ruby
sdothum has quit [Quit: ZNC - 1.6.0 - http://znc.in]
konsolebox has joined #ruby
JoshS has quit [Ping timeout: 268 seconds]
jtdoncas has quit [Ping timeout: 246 seconds]
enyo has joined #ruby
conta has quit [Ping timeout: 268 seconds]
bronson has joined #ruby
GodFather has joined #ruby
ishe_ua has quit [Read error: Connection reset by peer]
tildes has joined #ruby
enyo has quit [Ping timeout: 265 seconds]
Pumukel has joined #ruby
bronson has quit [Ping timeout: 256 seconds]
cdg has joined #ruby
chouhoulis has joined #ruby
frozengeek has quit [Quit: frozengeek]
kus has quit [Quit: Konversation terminated!]
Pumukel has quit [Ping timeout: 250 seconds]
kus has joined #ruby
aupadhye has quit [Ping timeout: 250 seconds]
SuperLag_ is now known as SuperLag
SuperLag has quit [Changing host]
SuperLag has joined #ruby
MrBismuth has quit [Ping timeout: 248 seconds]
Ohga has joined #ruby
Pumukel has joined #ruby
bkxd has joined #ruby
ResidentBiscuit has quit [Remote host closed the connection]
troys is now known as troys_
xall has quit [Ping timeout: 248 seconds]
madgen has joined #ruby
BTRE has quit [Read error: Connection reset by peer]
Pumukel has quit [Ping timeout: 260 seconds]
xall has joined #ruby
platzhirsch has quit [Ping timeout: 248 seconds]
<Ohga>
This: 'class PartParser; def initialize path; @path = StringScanner.new path.strip; #...' I get "uninitialized constant PartParser::StringScanner (NameError)", but I can initialize an object in pry without any problem, and without requiring anything. What could be wrong? (ruby 2.1.5 win)
bkxd has quit [Ping timeout: 258 seconds]
chouhoulis has quit [Remote host closed the connection]
milardovich has quit [Remote host closed the connection]
enilsen16 has joined #ruby
milardovich has joined #ruby
dionysus69 has joined #ruby
<matthewd>
Ohga: Something else is probably requiring strscan
<Ohga>
.. in pry?
<matthewd>
Ohga: Yeah.. at a glance, coderay does -- which pry uses for syntax highlighting
<Ohga>
ok, so I need... "require 'strscan'"?
chouhoul_ has joined #ruby
BTRE has joined #ruby
<matthewd>
Yes, that's where StringScanner is defined
skydiver has quit [Ping timeout: 252 seconds]
<matthewd>
It's in the stdlib, not core
milardovich has quit [Ping timeout: 248 seconds]
d34th4ck3r has quit [Quit: d34th4ck3r]
troys_ is now known as troys
<Ohga>
matthewd: yeah, that did it
<Ohga>
on another note, why is paranthesis required with the following:
<Ohga>
def scan_cmd; @path.scan(/\w/); end
<Ohga>
def scan_wsp; @path.scan(/ +/); end
<Ohga>
without it complains at the place of the \w
<matthewd>
You're welcome
Gasher_ has quit [Ping timeout: 258 seconds]
pawnbox has quit [Remote host closed the connection]
<Ohga>
matthewd: yes of course; Thank you for helping
<matthewd>
Without the paren, it looks like division
aremaref has joined #ruby
<Ohga>
so it doesn't look ahead to see it's a regex?
<matthewd>
It wouldn't be able to tell definitively, in the general case
jshjsh has quit [Ping timeout: 268 seconds]
<Ohga>
hm, ok.. Thank you
<matthewd>
So it doesn't look too far ahead, because that would mean a subtle difference in the middle of a long regex suddenly changed the meaning of the whole line
skweek has quit [Ping timeout: 250 seconds]
benlieb has quit [Ping timeout: 250 seconds]
<matthewd>
(I say "too far" because the presence of whitespace at the start of the regex does make a difference.. don't recall whether there are other heuristics)
skweek has joined #ruby
Illianthe has joined #ruby
<Ohga>
well, I have a rough explanation now at least
cdg_ has joined #ruby
cdg has quit [Ping timeout: 245 seconds]
byte512 has quit [Ping timeout: 245 seconds]
synthroid has quit [Remote host closed the connection]
sagax_ has quit [Read error: Connection reset by peer]
sagax_ has joined #ruby
enilsen16 has quit [Quit: enilsen16]
AlexRussia has joined #ruby
lenwood has joined #ruby
enilsen16 has joined #ruby
sagax_ has quit [Remote host closed the connection]
cdg_ has quit [Read error: Connection reset by peer]
braincrash has quit [Ping timeout: 248 seconds]
<marchelzo>
apeiros: it's like a hash table, but instead of values, you store the index into the array of ordered values
kedibasi has joined #ruby
cdg has joined #ruby
Gasher_ has joined #ruby
<marchelzo>
apeiros: so it's one more pointer dereference per lookup, but still O(1)
<marchelzo>
i'm surprised i've never seen that before. but i guess ordered iteration isn't usually a priority for hash tables
JoshS has joined #ruby
<marchelzo>
there's a big block comment at the top of hash.c that explains it nicely, and explains why they chose to move away from the linked-list implementation
kus has quit [Quit: Konversation terminated!]
synthroid has joined #ruby
braincrash has joined #ruby
marciol has joined #ruby
chouhoul_ has quit [Remote host closed the connection]
chouhoulis has joined #ruby
Biohazard_ has quit [Ping timeout: 250 seconds]
aremaref has quit [Ping timeout: 248 seconds]
benlieb has joined #ruby
braincrash has quit [Ping timeout: 258 seconds]
chouhoulis has quit [Ping timeout: 246 seconds]
oaklndr1 has joined #ruby
jshjsh has joined #ruby
nankyokusei has joined #ruby
SpiffTR has joined #ruby
bilal80 has joined #ruby
conta has joined #ruby
JoshS has quit [Ping timeout: 268 seconds]
oaklndr1 has quit [Quit: Leaving]
oaklndr1 has joined #ruby
nankyokusei has quit [Ping timeout: 264 seconds]
bronson has joined #ruby
bronson has quit [Ping timeout: 250 seconds]
sdothum has joined #ruby
aremaref has joined #ruby
<apeiros>
marchelzo: deleting from an array is not O(1), inserting neither.
<apeiros>
you have to move all the entries to the right of the inserted/deleted
h1fuelcell has quit [Remote host closed the connection]
marchelzo has quit [Ping timeout: 252 seconds]
<apeiros>
but memcpy is very fast, so it might be one of those cases where the constant cost is more important than the scaling
<apeiros>
I'll certainly read the comment in hash.c :)
Biohazard has joined #ruby
sdothum has quit [Quit: ZNC - 1.6.0 - http://znc.in]
sdothum has joined #ruby
flak has quit [Ping timeout: 264 seconds]
antoniobeyah has joined #ruby
nadir|mobile has joined #ruby
konsolebox has quit [Quit: Leaving]
antoniobeyah has quit [Client Quit]
xall has quit [Ping timeout: 265 seconds]
testuser1 has joined #ruby
skweek has quit [Ping timeout: 245 seconds]
conta has quit [Ping timeout: 246 seconds]
beanHolez has joined #ruby
weaksauce has joined #ruby
dviola has joined #ruby
eminencehc has quit []
blackbom1 has joined #ruby
beanHolez has quit [Remote host closed the connection]
<tau>
hi. there is a tcl courses lib named ctk that maps tk API(but works on top of ncurses) i'm wondering whether it would be hard to get that working with ruby.
<tau>
so, it would be possible to run some tk applications that are written in ruby on console(with a few changes).
beanHolez has joined #ruby
antoniobeyah has joined #ruby
synthroid has quit [Remote host closed the connection]
blackbombay has joined #ruby
blackbom1 has quit [Ping timeout: 246 seconds]
Lord_of_Life has quit [Excess Flood]
SpiffTR has quit [Quit: Leaving.]
beanHolez has quit []
bkxd has joined #ruby
skweek has joined #ruby
swills_ is now known as swills
Lord_of_Life has joined #ruby
antoniobeyah has quit [Quit: antoniobeyah]
enyo has joined #ruby
troys is now known as troys_
Channel6 has joined #ruby
bkxd has quit [Ping timeout: 258 seconds]
enilsen16 has quit [Quit: enilsen16]
Dimik has joined #ruby
enyo has quit [Ping timeout: 258 seconds]
UserJosh has joined #ruby
BTRE has quit [Ping timeout: 246 seconds]
cdg has quit [Remote host closed the connection]
cdg has joined #ruby
jshjsh has quit [Ping timeout: 258 seconds]
dionysus69 has quit [Ping timeout: 250 seconds]
friday has quit [Changing host]
friday has joined #ruby
cdg has quit [Ping timeout: 240 seconds]
<havenwood>
tau: Let us know if it works!
red_menace has left #ruby ["bye bye..."]
houhoulis has joined #ruby
synthroid has joined #ruby
bronson has joined #ruby
jhack has joined #ruby
sphex has quit [Ping timeout: 256 seconds]
bronson has quit [Ping timeout: 268 seconds]
dionysus69 has joined #ruby
h1fuelcell has joined #ruby
enilsen16 has joined #ruby
<Yxhuvud>
apeiros: also, deleting from hashes is not exactly very common
BTRE has joined #ruby
Pumukel has joined #ruby
h1fuelcell has quit [Ping timeout: 256 seconds]
ResidentBiscuit has joined #ruby
houhoulis has quit []
rippa has joined #ruby
SpiffTR has joined #ruby
houhoulis has joined #ruby
Pumukel has quit [Ping timeout: 246 seconds]
ResidentBiscuit has quit [Ping timeout: 258 seconds]
SpiffTR has quit [Client Quit]
milardovich has joined #ruby
rippa has quit [Quit: {#`%${%&`+'${`%&NO CARRIER]
lacour has joined #ruby
milardovich has quit [Ping timeout: 256 seconds]
Fernando-Basso has quit [Quit: Leaving]
blackbom1 has joined #ruby
madgen has quit [Quit: Lost terminal]
blackbombay has quit [Ping timeout: 258 seconds]
TomyLobo has joined #ruby
Gasher_ has quit [Ping timeout: 252 seconds]
Disavowed has left #ruby [#ruby]
dviola has quit [Quit: WeeChat 1.6]
diego1 has joined #ruby
diego1 has quit [Changing host]
diego1 has joined #ruby
diego1 is now known as dviola
<apeiros>
Yxhuvud: that may be. but it's common to assume deletion to be O(1) with hashes.
statelesscode has quit [Quit: statelesscode]
marciol has quit [Remote host closed the connection]
<trelos>
the highest rated comment reads: You've always hit the nail on the head, all you require is a far larger platform for your knowledge to be heard.
<trelos>
Well, they are destroying the entire planet and have no connection to nature or anything/anyone, so it wouldn't surprise me one bit. Either way, they must be stopped.