io_syl has quit [Quit: Computer has gone to sleep.]
dhruvasagar has joined #ruby-lang
io_syl has joined #ruby-lang
bzalasky has joined #ruby-lang
TheNotary has joined #ruby-lang
sduckett has joined #ruby-lang
io_syl has quit [Quit: Computer has gone to sleep.]
krz has joined #ruby-lang
sduckett has quit [Ping timeout: 256 seconds]
cofin has quit [Quit: cofin]
cordax has quit [Quit: Computer has gone to sleep.]
sush24 has joined #ruby-lang
cordax has joined #ruby-lang
symm- has quit [Ping timeout: 252 seconds]
mistym has quit [Remote host closed the connection]
cofin has joined #ruby-lang
cout_ is now known as cout
havenwood has quit [Remote host closed the connection]
cout is now known as cout_
cout_ is now known as cout
cout is now known as cout_
cout_ is now known as cout
bzalasky has quit [Remote host closed the connection]
wesside_ has joined #ruby-lang
wesside_ has quit [Remote host closed the connection]
<BinaJr>
Thank you whitequark!
DerBoki has quit []
bzalasky has joined #ruby-lang
cofin has quit [Quit: cofin]
BinaJr has left #ruby-lang ["Once you know what it is you want to be true, instinct is a very useful device for enabling you to know that it is"]
nofxx__ has quit [Ping timeout: 272 seconds]
io_syl has joined #ruby-lang
infecto has quit [Ping timeout: 255 seconds]
mistym has joined #ruby-lang
sailias has quit [Quit: Leaving.]
lcdhoffman has quit [Quit: lcdhoffman]
robbin_ has joined #ruby-lang
cofin has joined #ruby-lang
krz has quit [Quit: krz]
cordax has quit [Quit: Computer has gone to sleep.]
sush24 has quit [Quit: This computer has gone to sleep]
srbaker has quit [Quit: Computer has gone to sleep.]
krz has joined #ruby-lang
setmeaway has quit [Ping timeout: 256 seconds]
krohrbaugh has joined #ruby-lang
MouseTheLuckyDog has joined #ruby-lang
<MouseTheLuckyDog>
Hey I have a list I want to associate with one of several states. What I would like to do is lay out the elements on the screen in a grid a bit like 1-2-3 and associate a color with each state. Is there something that will allow me to do that?
dmwuw has joined #ruby-lang
krohrbaugh has quit [Read error: Operation timed out]
jxie has quit [Quit: leaving]
mbj_ has joined #ruby-lang
dmwuw has quit [Remote host closed the connection]
mistym has quit [Remote host closed the connection]
|Vargas| has joined #ruby-lang
|Vargas| has quit [Changing host]
|Vargas| has joined #ruby-lang
krohrbaugh has joined #ruby-lang
krohrbaugh has quit [Ping timeout: 252 seconds]
woollyams has quit [Ping timeout: 264 seconds]
tsion has joined #ruby-lang
jackhammer2022 has joined #ruby-lang
bzalasky has quit [Remote host closed the connection]
slippyd has joined #ruby-lang
noop has joined #ruby-lang
jg_ has joined #ruby-lang
Mon_Ouie has quit [Ping timeout: 256 seconds]
yfeldblum has joined #ruby-lang
io_syl has quit [Quit: Computer has gone to sleep.]
nertzy2 has joined #ruby-lang
tomzx_mac has quit [Ping timeout: 256 seconds]
barttenb_ has joined #ruby-lang
nertzy3 has quit [Ping timeout: 252 seconds]
wallerdev has quit [Quit: wallerdev]
tylersmith has joined #ruby-lang
solars has joined #ruby-lang
idkazuma has quit [Remote host closed the connection]
tylersmith has quit [Read error: Operation timed out]
fsvehla has quit [Quit: fsvehla]
JohnBat26 has joined #ruby-lang
scottschecter has joined #ruby-lang
idkazuma has joined #ruby-lang
r0bgleeson has quit [Ping timeout: 272 seconds]
scottschecter has quit [Quit: WeeChat 0.4.0]
apeiros has quit [Remote host closed the connection]
tonni has quit [Remote host closed the connection]
sduckett has joined #ruby-lang
scottschecter has joined #ruby-lang
r0bgleeson has joined #ruby-lang
mjio has quit []
sduckett has quit [Ping timeout: 252 seconds]
mjio has joined #ruby-lang
sush24 has joined #ruby-lang
joshH10 has joined #ruby-lang
joshH10 has quit [Read error: Connection reset by peer]
joshH10 has joined #ruby-lang
joshH10 has quit [Read error: Connection reset by peer]
dominikh has quit [Remote host closed the connection]
joshH10 has joined #ruby-lang
joshH10 has quit [Read error: Connection reset by peer]
joshH10 has joined #ruby-lang
dominikh has joined #ruby-lang
joshH10 has quit [Read error: Connection reset by peer]
dr_bob has joined #ruby-lang
joshH10 has joined #ruby-lang
joshH10 has quit [Read error: Connection reset by peer]
joshH10 has joined #ruby-lang
krohrbaugh has joined #ruby-lang
joshH11 has joined #ruby-lang
DomKM1 has quit [Quit: Leaving.]
tonni has joined #ruby-lang
joshH12 has joined #ruby-lang
szabcsee has joined #ruby-lang
joshH12 has quit [Read error: Connection reset by peer]
xxaM has quit [Quit: brbrbrb]
judofyr has joined #ruby-lang
joshH12 has joined #ruby-lang
xxaM has joined #ruby-lang
joshH12 has quit [Read error: Connection reset by peer]
joshH10 has quit [Ping timeout: 256 seconds]
joshH12 has joined #ruby-lang
joevandyk has quit [Ping timeout: 252 seconds]
krohrbaugh has quit [Read error: Operation timed out]
joshH11 has quit [Ping timeout: 256 seconds]
joshH12 has quit [Read error: Connection reset by peer]
joshH12 has joined #ruby-lang
joshH12 has quit [Read error: Connection reset by peer]
Domon_ has joined #ruby-lang
joshH12 has joined #ruby-lang
Domon has quit [Ping timeout: 268 seconds]
joshH12 has quit [Read error: Connection reset by peer]
joshH12 has joined #ruby-lang
joshH12 has quit [Read error: Connection reset by peer]
joshH12 has joined #ruby-lang
joshH12 has quit [Read error: Connection reset by peer]
joshH12 has joined #ruby-lang
joshH12 has quit [Read error: Connection reset by peer]
joshH12 has joined #ruby-lang
jackhammer2022 has quit [Read error: Connection reset by peer]
barttenb_ has quit [Remote host closed the connection]
joshH13 has joined #ruby-lang
szabcsee has left #ruby-lang [#ruby-lang]
joshH12 has quit [Ping timeout: 252 seconds]
r0bgleeson has quit [Ping timeout: 255 seconds]
<injekt>
postmodern: the latter
<judofyr>
what about Project::FooTask ?
<injekt>
depends how many there were, I'd use FooTask for one or two tasks, but anything more I'd prefer to namespace into a Tasks module
<judofyr>
ditto
<erikh>
fart
<erikh>
that's my weigh-in
<judofyr>
thanks erikh
<injekt>
the ever wise erikh
<judofyr>
or, well, I've never really written a re-usable (gemified) Rake task
<judofyr>
I'm a copy-paster
<erikh>
tons of them in github.com/chef-workflow/chef-workflow-tasklib
<erikh>
(fwiw, I just made them plain requires)
<erikh>
but in all seriousness that project was borne from a smaller project called "fart"
swav has joined #ruby-lang
<erikh>
which was named at seattlerb when I asked drbrain what I should name it and he said "I wouldn't worry about that right now"
<judofyr>
erikh: that doesn't mean to pick a name you would worry about later
<erikh>
I didn't
<erikh>
it was just something to explore the idea
<erikh>
fartotype
<erikh>
it's ok, I understand the lack of sense of humor europeans that are not from england have
<erikh>
:P
<injekt>
HAH in yo' face europeans no from england!
<erikh>
yeah
<erikh>
IN YOUR FACE
<erikh>
totally have not been drinking
<injekt>
you can tell
<erikh>
yes I can
<erikh>
I am trying to tell you now
<erikh>
ink jet: suppose I wanted more than the tutorial for go
<erikh>
what do?
tonni has quit [Remote host closed the connection]
tonni has joined #ruby-lang
<postmodern>
what happened to rubyflow.com
tonni has quit [Ping timeout: 256 seconds]
<injekt>
erikh: more than the stuff on golang.org?
<erikh>
injekt: yeah, if you have any good resources
<injekt>
erikh: I have 'the way to Go' in pdf format which more than explains most Go stuff, but in terms of online resources I dont really have much, a lot of the go blogs suck. I learned the stuff I have from that book, reading the stdlib docs and being told my code sucks in #go-nuts
<erikh>
gotcha
<erikh>
the way to Go is a book?
<injekt>
yup
<erikh>
ok cool
<erikh>
well, I'll give it a shot with what I have here.
<erikh>
thanks!
<injekt>
I have a pdf if you want it
alessio_rocco has joined #ruby-lang
<erikh>
sure, shoot me a link?
<erikh>
gonna go through the go tutorial again tonight
<judofyr>
the thing I found most difficult with Go was creating the correct directory structure
<injekt>
aye
<erikh>
or pelr -e
<injekt>
judofyr: there is no normal way, that's the problem
<injekt>
I agree it's weird
Oloryn_lt2 has joined #ruby-lang
<judofyr>
I just wanted an executable + split up my library into several files
marr has joined #ruby-lang
<judofyr>
and I spent hours getting Go to look in the correct folder
<injekt>
oh
<judofyr>
or, placing my file in the correct folder
<injekt>
just create bin/ and src/
<yorickpeterse>
morning
<judofyr>
(s/folder/directory/ for you UNIX-weenies)
barttenbrinke has joined #ruby-lang
<injekt>
`go help packages` is not bad
dhruvasagar has joined #ruby-lang
<injekt>
also `go help gopath`
<injekt>
yorickpeterse: morn
<judofyr>
injekt: here's the example: I have execute `a` that uses library `b` and uses library `c`. I like to have everything in the same repo, but I want b and c to be separate.
<judofyr>
s/execute/executable/
mjio has quit []
<injekt>
judofyr: separate packages?
<judofyr>
(err, `a` only uses `b`, and it's `b` that uses `c`)
krohrbaugh has quit [Ping timeout: 256 seconds]
<judofyr>
inkjet: maybe? I dunno, I just want to split it up somehow.
<injekt>
you can import them separately, go doesn't care about files it only cares about packages
<dingus_khan>
fart
<judofyr>
erikh: look at what you've started
<dingus_khan>
he taught me to play the violin, he did
<dingus_khan>
well, forced
<judofyr>
dingus_khan++
<judofyr>
(do we have a karma bot in here?)
<judofyr>
corundum: help karma
<injekt>
corundum: botsnack
<dingus_khan>
my orc has lots of corundum
<injekt>
:/
<dingus_khan>
there's karma in irc?
<judofyr>
karma runs through everything in life
<dingus_khan>
judofyr++
<injekt>
choo choo
<dingus_khan>
karma train express
<judofyr>
corundum: remind dingus_khan about karma every minute
<dingus_khan>
cats, cats in the furnace
<judofyr>
corundum: botsnack
<judofyr>
such a silent bot
<dingus_khan>
botsnack
<dingus_khan>
I know more about pouring molten metal than I do ruby
<dingus_khan>
PS happy Cinco De Mustache, I'm keeping mine forever, and now I go sleep
Oloryn_lt2 has quit [Ping timeout: 256 seconds]
dingus_khan has quit [Quit: Leaving]
zavier has left #ruby-lang ["WeeChat 0.4.0"]
lsegal has quit [Quit: Quit: Quit: Quit: Stack Overflow.]
idkazuma has quit [Remote host closed the connection]
asellus has joined #ruby-lang
tonni has quit [Ping timeout: 256 seconds]
<erikh>
judofyr: not there's no karma bot in here
<erikh>
dominikh: so where's my go irc bot framework
<dominikh>
erikh: in hell, where it belongs :)
<dominikh>
I won't write another one of those :P
<erikh>
hahah
<erikh>
damn.
migz1 has joined #ruby-lang
tonni has joined #ruby-lang
rwk1 has quit [Remote host closed the connection]
TheNotary has quit [Ping timeout: 264 seconds]
benlovell has joined #ruby-lang
dhruvasagar has quit [Ping timeout: 268 seconds]
dhruvasagar has joined #ruby-lang
benlovell has quit [Ping timeout: 268 seconds]
TheNotary has joined #ruby-lang
apeiros has joined #ruby-lang
setmeaway has joined #ruby-lang
skade has joined #ruby-lang
bright_day has joined #ruby-lang
krohrbaugh has joined #ruby-lang
<erikh>
injekt: fwiw, :!go run % is working great for me in vim
rwk1 has joined #ruby-lang
<erikh>
gonna make it a key or something
tonni has quit [Remote host closed the connection]
mbj has joined #ruby-lang
workmad3 has quit [Ping timeout: 272 seconds]
tsion has quit [Quit: Leaving]
krohrbaugh has quit [Ping timeout: 264 seconds]
barttenbrinke has quit [Read error: Connection reset by peer]
barttenbrinke has joined #ruby-lang
TheNotary has quit [Ping timeout: 252 seconds]
FiXato has quit [Ping timeout: 256 seconds]
FiXato has joined #ruby-lang
Criztian has joined #ruby-lang
TheNotary has joined #ruby-lang
Manny_42 has joined #ruby-lang
rwk1 has quit [Remote host closed the connection]
tonni has joined #ruby-lang
megha has joined #ruby-lang
arooni-mobile has quit [Ping timeout: 264 seconds]
<hagabaka>
I'm trying to JSON.parse a string with multiple lines, and it's showing JSON::ParserError: 757: unexpected token at, followed by the entire string instead of a specific line. What does this mean?
<injekt>
then I would lead with that in your issue, not "examples?" there's some pretty clear examples on the readme, they just dont do what you want
jvrmaia has joined #ruby-lang
<injekt>
to be honest it looks like the project has pretty much been abandoned
<injekt>
maybe you should start a new one :)
<naquad>
i hope i don't, i wanted a quick embedding of google drive (very basic functionality: upload, download, create folder, delete folder - thats it) into project, but it looks like i was to optimistic on point "quickly"
lele has joined #ruby-lang
jsullivandigs has joined #ruby-lang
krohrbaugh has joined #ruby-lang
carloslopes has joined #ruby-lang
bzalasky has quit [Remote host closed the connection]
marr has joined #ruby-lang
vlad_starkov has quit [Remote host closed the connection]
vlad_starkov has joined #ruby-lang
benlovell has joined #ruby-lang
vlad_starkov has quit [Ping timeout: 245 seconds]
bzalasky has joined #ruby-lang
tylersmith has joined #ruby-lang
dhruvasagar has quit [Ping timeout: 268 seconds]
fosky has quit [Remote host closed the connection]
bzalasky has quit [Remote host closed the connection]
brianpWins has joined #ruby-lang
xcombelle has joined #ruby-lang
Nautes has joined #ruby-lang
mikestok has quit [Quit: Computer has gone to sleep.]
tenderlove has quit [Remote host closed the connection]
vivekrai has quit [Quit: Connection closed for inactivity]
<whitequark>
C++ and Apple, to me, are similar in that I like, a lot, what they can give you. However, I despise the object itself as much as to refuse to ever touch it unless I have a really compelling reason.
<ericwood>
I just hate everything C++ stands for
<ericwood>
overly complicated, getting more complicated every day
<whitequark>
ericwood: it's insanely overengineered, but you can do things with it which you couldn't do with anything else.
<whitequark>
e.g. LLVM, or V8, or Webkit
<ericwood>
I found that I enjoy writing JS a lot because I'm fucked up in the head, and because of the utter simplicity of the language
<whitequark>
all of those are similar in that they're using only a small subset of C++... lemme find the quote
<yorickpeterse>
I just don't get why Go is more or less procedural
<yorickpeterse>
I figured people would move away from that in 2013
<zzak>
injekt: sweet!
<zzak>
ericwood: maybe try rust then
<whitequark>
yorickpeterse: because it is a replacement for C
<ericwood>
Go seems to have more stuff behind it right now
breakingthings has quit [Ping timeout: 245 seconds]
<ericwood>
I do kinda get tired of procedural programming, though, I like a mixture
<yorickpeterse>
whitequark: why replace a pile of shit with a slightly smaller pile of shit?
<ericwood>
like rubay!!!
<yorickpeterse>
why not instead clean up the shit and replace it with a decent toilet?
<yorickpeterse>
though at least it has modules
<whitequark>
yorickpeterse: Go wasn't designed by saying "let's make a neat language"; if you look at the FAQ, you'll see a sentence there... "go was designed to perform the kinds of tasks we used to perform at google with c, but better"
dr_bob has quit [Quit: Leaving.]
<whitequark>
and, indeed, it suits that task well
<injekt>
I use it at work, fits pretty well for our tasks, too
* yorickpeterse
has been trying to hunt down a memory leak in C for days but can't find it
benlovell has quit [Ping timeout: 245 seconds]
breakingthings has joined #ruby-lang
<whitequark>
yorickpeterse: val. grind. *smack*
<whitequark>
-fsanitize=memory *smack*
<yorickpeterse>
that's what I'm using
<yorickpeterse>
`valgrind --track-origins=yes --leak-check=full` to be exact
robbyoconnor has joined #ruby-lang
<yorickpeterse>
but I'll give that fsanitize flag a try
<whitequark>
funny thing is, `parser` would handle that just fine
ryez_ has joined #ruby-lang
<whitequark>
parse.y is shit and sometimes treats the input as byte seq and sometimes as codepoint seq
<whitequark>
yorickpeterse: why the hell do you need separate _new and _initialize
<whitequark>
doesn't make sense
ryez has quit [Ping timeout: 245 seconds]
<whitequark>
also "a" does not necessarily == "a" in C, even if both are literals
<yorickpeterse>
somewhere in the back of my head I was going to make _new a reusable method
<yorickpeterse>
I know that, I don't do string checking atm
<whitequark>
they will often be, because of how toolchains work, but that's not guaranteed
<whitequark>
every operator in C can be called "fuck you operator", well, because you think it works and it just fucks you
<whitequark>
int i = 0x40000000 << 1 // fuck you
<whitequark>
</rant>
mytrile has joined #ruby-lang
fragamus has quit [Quit: Computer has gone to sleep.]
mytrile has quit [Remote host closed the connection]
<whitequark>
sigh
<whitequark>
yorickpeterse: it's obvious
<yorickpeterse>
clearly
ryez_ has quit [Ping timeout: 245 seconds]
Criztian has quit [Remote host closed the connection]
sailias has quit [Ping timeout: 258 seconds]
<whitequark>
oh wait, msan and asan don't detect leaks
mbj has joined #ruby-lang
<whitequark>
ummm I cannot install valgrind because my system is a weird clusterfuck
<yorickpeterse>
lol wat
<whitequark>
(I have libc6 from debian experimental suite, don't ask)
<yorickpeterse>
well clearly what you need to do is start a virtualmachine in virtualbox running <insert distro> so you can then check for memory leaks
zommi has quit [Read error: Connection reset by peer]
<yorickpeterse>
eeeeeh wat
<yorickpeterse>
shouldn't the for loop take care of that?
<yorickpeterse>
since it frees everything in it one by one
<yorickpeterse>
and heh, apparently I still have the old name in the Makefile
<whitequark>
um
<whitequark>
well, the short answer is no
<whitequark>
shall I explain or do you want to figure it out yourself?
<yorickpeterse>
Explain, because although I have some vague idea it never hurts to have some extra info
<whitequark>
also wtf
<whitequark>
look, you do this realloc: realloc(nodes->values, sizeof(Node) * new_length);
<whitequark>
but nodes->values is of type Node**
<whitequark>
what realloc returns is essentially of type Node*
<yorickpeterse>
hm
<whitequark>
half of your program thinks it's an array of pointers, each of which points to a separate area allocated on its own
<yorickpeterse>
I messed around with using `Node *values` instead of `Node **values` but that failed in all kinds of ways
<whitequark>
(pointers to Node) and the other half thinks it's an array of Nodes themselves, which are not allocated by their own
<whitequark>
ie, it's one level of indirection or two levels
* yorickpeterse
apparently doesn't get pointers
<whitequark>
also with C++ you won't have this problem :p
<yorickpeterse>
fuck off
<whitequark>
std::vector
<yorickpeterse>
I moved away from C++ because I figured C would be easier
<yorickpeterse>
and meh, vector
<whitequark>
LOL
<yorickpeterse>
meh
snarfmason has joined #ruby-lang
<yorickpeterse>
I recall that if I used a regular pointer array either realloc would shit itself or the updating of node->values after that, but I'd have to take another look at it
* whitequark
shrugs
<whitequark>
it's a question of aliasing
<whitequark>
as in... if you want your Node to outlive your NodeList, you need two levels of indirection, like Node**
<whitequark>
(or a more complex memory management scheme, like refcounting)
robbyoconnor has quit [Max SendQ exceeded]
r0bby has joined #ruby-lang
<yorickpeterse>
my use case wouldn't require that I believe. Stuff goes in the list and once the entire list is destroyed the nodes won't be needed anymore anyway
<whitequark>
ok. but then you won't have a separate Node_new
<whitequark>
NodeList would be a Node allocator.
hramrach_ has quit [Remote host closed the connection]