<mwlang>
mistergibson: I’m digging through them thar docs now…It might be the trick I need…I was actually just thinking to fork and run rake task passing commandline argument…but if I can just spin up cells and that’ll span CPU cores, then that’s good, too.
<Encapsulation>
is it really that easy to have concurrency
<Encapsulation>
how does threading work
<zenspider>
no. you can't do anything with ruby. you should use python.
<Encapsulation>
ok
<Encapsulation>
thats what I was wondering
<Encapsulation>
I'm deciding between the two
<Encapsulation>
coming from c++
<mwlang>
Encapsulation: the answer to that question is different, depending on what version of Ruby you’re using.
<Encapsulation>
I'd like to develop software for the pi
rahult has joined #ruby
mrsolo has quit [Quit: Leaving]
nanoyak has quit []
gaboesquivel has quit [Read error: Connection reset by peer]
<Encapsulation>
zenspider, what are some reasons I might choose python over ruby?
infinitone has quit [Remote host closed the connection]
<Encapsulation>
is ruby a "web language?
<mozzarella>
have you never heard of ruby on rails?
<Encapsulation>
I read about ruby and see rails, but there is more to it
<Encapsulation>
?
rahult is now known as rahult_
astrobun_ has joined #ruby
<Encapsulation>
I have but what about normal ruby
rahult_ is now known as rahult
<havenwood>
Encapsulation: Do you prefer blackberry cobbler or strawberry rhubarb pie?
<zenspider>
Encapsulation: so we can avoid more questions like "can you do anything with ruby"
<Encapsulation>
havenwood, blackberry cobbler by far
<zenspider>
blackberry. no question
<havenwood>
Encapsulation: The eat that!
<havenwood>
Then*
<awwaiid>
Encapsulation: one really fun thing on the pi done in ruby is Sonic Pi
_djbkd has quit [Remote host closed the connection]
DynamicMetaFlow has joined #ruby
DynamicMetaFlow has quit [Max SendQ exceeded]
<Encapsulation>
awwaiid, thank you. this is excellent
nobitanobi has joined #ruby
dorei has quit []
DynamicMetaFlow has joined #ruby
<awwaiid>
ya, it's pretty fun. It is both written in ruby and you implement the sound generation in ruby -- it is basically a sound-generation IDE
tuelz has joined #ruby
P1RATEZ has joined #ruby
DynamicMetaFlow has quit [Client Quit]
DynamicMetaFlow has joined #ruby
DynamicMetaFlow has quit [Max SendQ exceeded]
DynamicMetaFlow has joined #ruby
baweaver has joined #ruby
BTRE has joined #ruby
kappy has quit [Remote host closed the connection]
AlphaAtom has quit [Read error: Connection reset by peer]
AlphaAtom has joined #ruby
rawrmonstar has joined #ruby
tuelz has quit [Ping timeout: 272 seconds]
startupality has joined #ruby
nateberkopec has quit [Quit: Leaving...]
woodruffw has quit [Quit: And then he took off.]
woodruffw has joined #ruby
thiagovsk has quit [Quit: Connection closed for inactivity]
fschuindt has joined #ruby
oo_ has joined #ruby
oo_ has quit [Remote host closed the connection]
alderamin has joined #ruby
oo_ has joined #ruby
BTRE has quit [Read error: Connection reset by peer]
CustosLimen has quit [Read error: Connection timed out]
nobitanobi has quit [Remote host closed the connection]
CustosLimen has joined #ruby
tkuchiki has joined #ruby
oo_ has quit [Remote host closed the connection]
lidenskap has quit [Remote host closed the connection]
mistermo_ has quit [Ping timeout: 245 seconds]
oo_ has joined #ruby
pontiki has joined #ruby
nobitanobi has joined #ruby
<pontiki>
g'evening
oo_ has quit [Ping timeout: 252 seconds]
AlphaAtom has quit [Read error: Connection reset by peer]
AlphaAtom has joined #ruby
FernandoBasso has quit [Quit: leaving]
oo_ has joined #ruby
casadei_ has joined #ruby
wallerdev has quit [Quit: wallerdev]
zacts has quit [Quit: ERC Version 5.3 (IRC client for Emacs)]
sgambino has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
Igorshp has joined #ruby
DEA7TH has quit [Ping timeout: 252 seconds]
duderonomy has quit [Ping timeout: 250 seconds]
fella5s has quit [Read error: Connection reset by peer]
rahult has quit [Read error: Connection reset by peer]
rahult_ has joined #ruby
fella5s has joined #ruby
casadei_ has quit [Ping timeout: 246 seconds]
startupality has quit [Quit: startupality]
yfeldblum has joined #ruby
Igorshp has quit [Ping timeout: 276 seconds]
MatthewsFace has quit [Remote host closed the connection]
eyeamaye has quit [Quit: Leaving.]
charliesome has joined #ruby
marr has joined #ruby
michaeldeol has quit [Ping timeout: 256 seconds]
marr has quit [Client Quit]
AlphaAtom has quit [Read error: Connection reset by peer]
AlphaAtom has joined #ruby
tuelz has joined #ruby
wallerdev has joined #ruby
davedev24_ has quit [Ping timeout: 265 seconds]
davedev24_ has joined #ruby
robustus has quit [Ping timeout: 255 seconds]
ramfjord has quit [Ping timeout: 244 seconds]
davedev2_ has joined #ruby
davedev24_ has quit [Read error: Connection reset by peer]
bricker has quit [Quit: leaving]
robustus has joined #ruby
iotouch has joined #ruby
Channel6 has quit [Quit: Leaving]
charliesome has quit [Quit: zzz]
scripore has quit [Quit: This computer has gone to sleep]
_djbkd has joined #ruby
_djbkd has quit [Remote host closed the connection]
iteratorP has joined #ruby
scripore has joined #ruby
davedev2_ has quit [Read error: Connection reset by peer]
davedev24_ has joined #ruby
shakes has joined #ruby
bruno-_ has quit [Ping timeout: 255 seconds]
Spami has quit [Quit: This computer has gone to sleep]
AlphaAtom has quit [Read error: Connection reset by peer]
Akagi201 has joined #ruby
tuelz has quit [Ping timeout: 272 seconds]
CloCkWeRX1 has joined #ruby
casadei_ has joined #ruby
CloCkWeRX has quit [Read error: Connection reset by peer]
neanderslob has quit [Read error: Connection reset by peer]
TheNet has joined #ruby
sinkensabe has joined #ruby
<TheNet>
was ruby-lang.org redesigned?
iotouch has quit [Quit: This computer has gone to sleep]
neanderslob has joined #ruby
<pontiki>
looks like
AlphaAtom has joined #ruby
d34th4ck3r has joined #ruby
AlphaAtom has quit [Max SendQ exceeded]
<sevenseacat>
that was done a while ago
<pontiki>
shows how often i go there :)
RegulationD has quit [Remote host closed the connection]
sinkensabe has quit [Ping timeout: 276 seconds]
AlphaAtom has joined #ruby
jefus has left #ruby ["Leaving"]
AlphaAtom has quit [Max SendQ exceeded]
jenrzzz has quit [Ping timeout: 244 seconds]
AlphaAtom has joined #ruby
<pontiki>
man, ruby.com goes to kay jewelers :P
willharrison has joined #ruby
zz_barkerd427 is now known as barkerd427
dstarh has joined #ruby
AlphaAtom has quit [Read error: Connection reset by peer]
wallerdev has quit [Quit: wallerdev]
MatthewsFace has joined #ruby
nobitanobi has quit [Remote host closed the connection]
qiukun has joined #ruby
charliesome has joined #ruby
qiukun has quit [Client Quit]
CloCkWeRX1 has quit [Quit: Leaving.]
AlphaAtom has joined #ruby
rodferso1 has quit [Quit: leaving]
iotouch has joined #ruby
CloCkWeRX has joined #ruby
tus has quit []
baweaver has quit [Remote host closed the connection]
Spami has joined #ruby
avahey has joined #ruby
KrzaQ has joined #ruby
multi_io has quit [Ping timeout: 276 seconds]
AlphaAtom has quit [Read error: Connection reset by peer]
multi_io has joined #ruby
starless has joined #ruby
tcrypt has quit [Remote host closed the connection]
d34th4ck3r has quit [Quit: zzz]
juanpablo_ has joined #ruby
DerisiveLogic has quit [Ping timeout: 256 seconds]
Igorshp has joined #ruby
AlphaAtom has joined #ruby
ndrei has quit [Ping timeout: 276 seconds]
ebernhardson is now known as ebernhard|night
tuelz has joined #ruby
mengu has joined #ruby
juanpablo_ has quit [Ping timeout: 272 seconds]
Igorshp has quit [Ping timeout: 272 seconds]
Lucky__ has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
goodcodeguy has joined #ruby
duderonomy has joined #ruby
mengu has quit [Ping timeout: 256 seconds]
TheNet has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
simpyll has joined #ruby
DerisiveLogic has joined #ruby
swgillespie has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
AlphaAtom has quit [Read error: Connection reset by peer]
dwithers has joined #ruby
chipotle has joined #ruby
TheNet has joined #ruby
dwithers1 has joined #ruby
pl1ght has quit [Read error: Connection reset by peer]
amclain has joined #ruby
mary5030 has joined #ruby
TheNet has quit [Client Quit]
AlphaAtom has joined #ruby
fedexo has joined #ruby
TheNet has joined #ruby
chipotle has quit [Max SendQ exceeded]
TheNet has quit [Client Quit]
mistermocha has joined #ruby
dwithers has quit [Ping timeout: 265 seconds]
Cubix_ has quit [Quit: Leaving]
chipotle has joined #ruby
Akagi201 has quit []
starless has quit [Quit: Leaving]
Cust0sLim3n has quit [Read error: Connection timed out]
chipotle has quit [Max SendQ exceeded]
Cust0sLim3n has joined #ruby
chipotle has joined #ruby
kwekuanase has quit [Quit: Connection closed for inactivity]
scripore has quit [Quit: This computer has gone to sleep]
bruno- has joined #ruby
Musashi007 has quit [Quit: Musashi007]
_seanc_ has joined #ruby
drocsid has quit [Quit: leaving]
goodcodeguy has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
CustosLimen has quit [Read error: Connection timed out]
AlphaAtom has quit [Read error: Connection reset by peer]
CustosLimen has joined #ruby
scripore has joined #ruby
bruno- has quit [Ping timeout: 245 seconds]
sinkensabe has joined #ruby
tjbiddle has quit [Read error: Connection reset by peer]
mistermocha has quit [Remote host closed the connection]
cryptograms has joined #ruby
AlphaAtom has joined #ruby
jeromelanteri has joined #ruby
jzigmund has quit [Ping timeout: 272 seconds]
Hijiri has quit [Quit: WeeChat 1.0.1]
RegulationD has joined #ruby
scripore has quit [Quit: This computer has gone to sleep]
Guest1421 has quit [Ping timeout: 255 seconds]
sinkensabe has quit [Ping timeout: 256 seconds]
Filete has quit [Ping timeout: 256 seconds]
d34th4ck3r has joined #ruby
RegulationD has quit [Ping timeout: 272 seconds]
scripore has joined #ruby
AlphaAtom has quit [Read error: Connection reset by peer]
AlphaAtom has joined #ruby
rahult_ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
wolfleemeta_ has quit [Remote host closed the connection]
wolfleemeta_ has joined #ruby
Fezzler has joined #ruby
oo_ has quit [Remote host closed the connection]
Igorshp has quit [Ping timeout: 265 seconds]
zenguy_pc has quit [Ping timeout: 246 seconds]
St1gma has joined #ruby
zenguy_pc has joined #ruby
baweaver has joined #ruby
tuelz has joined #ruby
<St1gma>
anybody with some sinatra experience? What would be the best way of terminating a session when a user logs in and provide them with a new authenticated session?
joelataylor has joined #ruby
amystephen has joined #ruby
jtdowney has quit []
<Radar>
huh?
fschuindt has quit [Ping timeout: 272 seconds]
jeromelanteri has quit [Ping timeout: 240 seconds]
tuelz has quit [Ping timeout: 258 seconds]
Deele has joined #ruby
simpyll has quit [Ping timeout: 265 seconds]
joelataylor has quit [Ping timeout: 265 seconds]
<Encapsulation>
is ruby better than emerald
<Radar>
Encapsulation: Certainly.
<Encapsulation>
are there any major limitations or could I use ruby to develop a full application
<Radar>
"Full application" is very vague.
sdothum has quit [Quit: ZNC - 1.6.0 - http://znc.in]
<mwlang>
Encapsulation: still asking language questions? I suggest googling “comparison of programming languages” and start reading if you want in-depth treatment on the topic.
<Encapsulation>
embedded control software for a hwardware device
<Encapsulation>
mwlang, I'm doing a bit of that as well
<Encapsulation>
trying to pull info from all sources
<Radar>
Encapsulation: And what is Emerald anyway?
<mwlang>
Encapsulation: at the end of the day, the choice of language to use for any application must be made based on task at hand and whether its the right tool for the job. If you’re looking for *the* language that’s going to get you hired somewhere making the big bucks and you don’t care what you’re building with that language, then hit tieboe’s language rankings and pick on in the top 10 and start mastering it.
<mwlang>
Encapsulation: on the other hand, if you’re looking to do something rather specific, like say, build a website that can talk to a database backend and hads scads of how-to’s on doing that, then pick Ruby. If you’re wanting to do the same but think speed is paramount importance, then pick node.js, python, or php.
<Radar>
kbarry: Don't install Ruby things with apt-get.
<kbarry>
I didn't (inherited it)
pwnz0r_ has joined #ruby
pwnz0r_ has quit [Remote host closed the connection]
<kbarry>
And i am a newb
<shevy>
awww
<shevy>
debian-ruby
<shevy>
these are annoying
<kbarry>
when i uninstalled bundler with apt-get remove bundler, i lose rails aswell. yet, rails is installed with the use running the website.
<kbarry>
......
<kbarry>
wait, are you saying that this is tricky because its debian?
<shevy>
they use another gem path by default for instance
<shevy>
mkmf is usually also not available by default
<kbarry>
(all my experience is w/ centos, this is my first time working with debian, so....... not sure what is normal....
<Radar>
I'm saying it's tricky because the Debian package maintainers fail to understand how to setup Ruby correctly.
<shevy>
normal is what the plain sources are doing
<Radar>
Use ruby-install + chruby and you'll be fine
<Radar>
And why are you even wanting to use Redmine anyway? There are better tools out there that do the same thing.
<Radar>
What does Redmine provide that you care about?
<kbarry>
ticket system,
<kbarry>
Free
<Radar>
GitHub
pwnz0r_ has joined #ruby
<Radar>
BitBucket
<kbarry>
Private
<Radar>
BitBucket can be private + free
<Radar>
Bonus: you don't have to host it yourself.
<kbarry>
I hear you.
<kbarry>
I have only recently started using redmine (Can you tell I am new here?)
casadei_ has quit []
<kbarry>
but i understand we are using it mostly for ticket system.,
oo_ has quit [Ping timeout: 264 seconds]
<Radar>
I strongly advise switching away from that to something else.
MasterPiece has quit [Quit: Leaving]
krz has quit [Ping timeout: 250 seconds]
<kbarry>
from redmine to something else?
kenndel_ has quit [Ping timeout: 256 seconds]
<kbarry>
Have any of you used the stnad-along appliace
<kbarry>
ir bitnami?
_djbkd has joined #ruby
Musashi007 has quit [Read error: Connection reset by peer]
<Radar>
Yes, go from Redmine to Bitbucket or Trello.
Musashi007 has joined #ruby
konsolebox has joined #ruby
pocketprotector has joined #ruby
oo_ has joined #ruby
<sevenseacat>
there are so, so many online services that offer ticket tracking and basic project management
areologist has joined #ruby
<sevenseacat>
i can see the appeal of redmine but honestly, not worth the hassle
rippa has joined #ruby
<Nilium>
We just use GitLab at work.
<areologist>
peace and long life, rubyists
gsd has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
avahey has quit [Quit: Connection closed for inactivity]
<Nilium>
Self-hosted, since we didn't want to pay for stuff.
ohaibbq has joined #ruby
<sevenseacat>
see: not worth the hassle
workmad3 has joined #ruby
<Nilium>
It has basic issues, that's all I need. If I wanted something more, I'd use Jira.
malcolmva has quit [Ping timeout: 250 seconds]
<kbarry>
but jira isnt free is it?
<Nilium>
Well, I'd use YouTrack if I didn't have to convince people to use it over Jira.
<Nilium>
Jira isn't free, but it costs like $10 for 10 people.
rejerson69 has quit [Remote host closed the connection]
<Nilium>
And as long as I limit it to our dev team, the next license after that is all we should need.
<areologist>
What are the best sites, free or sub, for learning and keeping current with Ruby? I'd like to upgrade Ruby from its current position in my skill set. For .NET I use Pluralsight.com, for JS-related things I use egghead.io and frontendmasters.com... So that kind of thing. Thanks!
<shevy>
never heard of any of that
<sevenseacat>
we use pivotal tracker at work for project management... it does the job, kinda
cgrieger^away is now known as cgrieger
<Nilium>
We also use Asana at work. By we I mean people who are not me.
<shevy>
sometimes there are blogs elsehwere but they are dispersed
<shevy>
I liked the peter cooper ones but he seems to have given up
<zenspider>
areologist: pluralsight bought peepcode, so it has a lot of ruby content
jenrzzz has quit [Ping timeout: 264 seconds]
<sevenseacat>
pluralsight also bought codeschool
<zenspider>
some of it is older... but usually that doesn't matter
Pupeno has quit [Quit: Leaving...]
<areologist>
yes, "spoonfeed distilled content is kind of correct". for my focus platforms I try to read at least one book a month, listen to podcasts during exercise, subscribe to the mailing lists, read release notes for tooling and frameworks that I use, follow the best blogs, and continually experiment and explore.. The video sites like egghead.io held particularly with the latter.
<sevenseacat>
i have a five-hour plane ride tomorrow that has to use up one of my professional development days from work. recommend me stuff to read/do
rahult has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<Nilium>
Learn Go?
<areologist>
I've yet to get *that* into Ruby but I'd like to, so seeing what people have to say with respect to resources. And thank you, those who have replied so far.
lidenskap has quit [Remote host closed the connection]
DynamicMetaFlow has quit [Quit: Leaving]
<diegoviola>
I tend to read source code when traveling
<Nilium>
Could study the Quake 1 engine source code.
<diegoviola>
source code I wouldn't usually read otherwise
<Nilium>
That said, that's code I'd read for fun.
<sevenseacat>
eh i'll probably go on a book-buying spree and then not read any of them
<pipework>
Just don't go on a book buying spree.
<pipework>
I don't know if books about spree would be worth it.
<sevenseacat>
lol
<areologist>
Looking now and indeed, pluralsight has a decent amount of Ruby content.
Cust0sLim3n has quit [Ping timeout: 265 seconds]
<Nilium>
I still have a pile of books on walled communities that I need to get through.
<shevy>
I can't recommend any books because the books I read are fat, non-computer science-related books
<areologist>
I buy more books than I can read too. Plenty of obsolete Java and Flex and DirectX 9 books on my shelf. ha
felixjet__ has joined #ruby
<shevy>
omg java books
<Nilium>
I stopped buying most programming books.
* sevenseacat
looks at Programming Elixir
<Nilium>
Programming Pearls was the last one I got.
<diegoviola>
gosh, never in my 15 years of using linux a DE frustrated me as much as GNOME
pwnz0r_ has quit [Remote host closed the connection]
<diegoviola>
GNOME 3
<shevy>
diegoviola did you use unity
malcolmva has joined #ruby
<pipework>
I buy lots of ebooks.
<Nilium>
Insert insistence that Fluxbox is the correct WM/desktop thing combo.
<shevy>
and you read them as well?
<areologist>
Elixir? Friend of mine who hits a lot of conferences (and a Rubyist, incidentally) was at an Elixir conference recently and said it was the best conference he'd been to in a while.
crus has joined #ruby
<diegoviola>
shevy: yes, frustrating too, but GNOME frustrated me more because I actually tried to use it, I didn't use unity as much
MuffinPimp_ has joined #ruby
<areologist>
By "recently" I suppose I mean late last year. time flies..
<shevy>
diegoviola yeah GNOME is for eye candy, use xfce or fluxbox :>
<diegoviola>
with GNOME it feels like they took all the possible bad decisions and smashed it into a DE to annoy users on purpose
<Nilium>
Alternatively: tiling WMs.
andrew-l` has joined #ruby
<pipework>
My favorite DE is just a full screen terminal emulator.
<diegoviola>
shevy: GNOME looks nice, sure
<Nilium>
My favorite DE is Mac OS.
<pipework>
TTY's just don't have the eye candy I need.
Cust0sLim3n has joined #ruby
<diegoviola>
pipework: unless you are using kmscon
jerryberry__ has joined #ruby
<diegoviola>
that will give you some eyecandy
musty_ has joined #ruby
<pipework>
Nilium: The correct way to refer to that is _windowserver
<diegoviola>
on the tty
patteh has joined #ruby
<Nilium>
And then I just spend all day with three monitors running iTerm2 fullscreen.
<diegoviola>
like 256 colors and antialiased fonts on the tty
kbarry_ has joined #ruby
<diegoviola>
plus other niceties
<diegoviola>
I think it can do more than 256 colors actually
<Nilium>
pipework: That would be correct if I said window manager.
<pipework>
Nilium: _windowserver does more than that, or appears to.
<pipework>
It's fun to kill.
<Nilium>
Been there, done that, not trying it twice.
<pipework>
diegoviola: Huh, Owl be able to get this to run on a TTY?
orionstein_ has joined #ruby
dyce_ has joined #ruby
<pipework>
That'd be pretty great.
<diegoviola>
shevy: I would use fluxbox/openbox/i3 but I can't find a terminal emulator that gets the copy/paste right
<Nilium>
You just need more modifier keys.
jobewan_ has joined #ruby
sinkensabe has joined #ruby
thefynx_ has joined #ruby
<Nilium>
And a Linux DE that uses meta as a Mac OS command-like key.
PaulePan1er has joined #ruby
ccooke_ has joined #ruby
<Nilium>
Instead of the weird obsession with imitating Windows keys
<pipework>
diegoviola: Oh I see, the note makes sense.
<pipework>
Neat, thanks!
<diegoviola>
pipework: you just disable agetty and enable kmscon, you don't have to disable all agettys, you can enable kmscon just for one or two ttys and so on
<diegoviola>
yeah sure
wookiehangover_ has joined #ruby
<diegoviola>
but it requires KMS (kernel mode setting), that is, free drivers like intel/nouveau/radeon
<diegoviola>
afaik
ukd1_ has joined #ruby
kent\n_ has joined #ruby
kent\n_ has quit [Changing host]
kent\n_ has joined #ruby
jenrzzz has joined #ruby
<pipework>
diegoviola: I virtualize my lunixen these days, so perhaps it'll work fine.
<diegoviola>
you can have comic sans in your tty with this
nnnn has joined #ruby
<pipework>
If not, I can find another way to get it.
<diegoviola>
pipework: it should
rejerson69 has joined #ruby
<pipework>
fuck yeah
<diegoviola>
it links to freetype iirc
<diegoviola>
so any fonts should work
spider-mario has quit [Ping timeout: 256 seconds]
<diegoviola>
not sure
mosez_ has joined #ruby
maloik has joined #ruby
<diegoviola>
waiting for my new ThinkPad T450
<diegoviola>
I'll remove that windows crap and install arch
Musashi007 has quit [Quit: Musashi007]
<pipework>
Slackware!
kent\n has quit [Killed (orwell.freenode.net (Nickname regained by services))]
kent\n_ is now known as kent\n
kloeri_ has joined #ruby
<Nilium>
Also known as best distro.
juanpablo_ has joined #ruby
<diegoviola>
heh
avelldiroll has quit [Ping timeout: 245 seconds]
matled- has joined #ruby
<Nilium>
It only took six hours and about ten reboots for my Windows 8 VM to successfully install updates.
<Nilium>
Good job, Windows.
sinkensabe has quit [Ping timeout: 252 seconds]
<Nilium>
Oh wait, it might've failed the updates.
<pipework>
Nilium: Certain things cannot change in the universe. Change and windows installs taking no less than 4 reboots.
Igorshp has joined #ruby
<diegoviola>
kmscon is actually a good solution if you are using vim/emacs and want to have 256 colors (or more) so you can switch between X/Wayland and the TTY and still have those nice colors. agetty tends to degrade those colors because it doesn't support anything more than 8 colors (afaik)
<Nilium>
This wasn't even an install.
hanmac1 has joined #ruby
<Nilium>
It was just running Windows update.
brixen_ has joined #ruby
RegulationD has quit [Ping timeout: 256 seconds]
<Nilium>
And then it failed and got in a reboot cycle where it kept telling me it was reverting changes.
<pipework>
diegoviola: Yeah, that checks out here. I've always just dealt with it because I never tried to replace agetty.
<pipework>
I'm super stoked to try.
<diegoviola>
it's a pain when you are on vim and then you Ctrl + Alt + F4 and then your vim breaks there (colors)
daed_ has joined #ruby
mr_rich101 has joined #ruby
<diegoviola>
kmscon fixes this
RedDwarf has joined #ruby
<Nilium>
Going to have to keep kmscon in mind for my work machine.
scripore has quit [Quit: This computer has gone to sleep]
<diegoviola>
I wish I could move to a modern editor sometimes but there's nothing that beats vim yet
thirdknife_ has joined #ruby
<diegoviola>
f*ck sublime
<Nilium>
I went from Sublime to vim, but that was for semi-petty reasons
<Nilium>
i.e., Sublime was crashing a lot, I got impatient, and finally just went back to vim.
parduse has joined #ruby
sevvie has quit [Ping timeout: 255 seconds]
<Nilium>
The crashes were proooobably my fault but I really don't care to diagnose that stuff.
<areologist>
I've been using Atom lately in cases where I'd have used Sublime
<Nilium>
I object to Atom on moral grounds.
<pipework>
I'm pretty into vim.
juanpablo_ has quit [Ping timeout: 272 seconds]
<areologist>
Can't vouch for its Ruby experience
bier_ has joined #ruby
<Nilium>
Using an editor that's just stuffed into a browser window isn't my idea of fun.
<diegoviola>
Vim is nice but sometimes I have to admit I want a modern editor with real colors, gvim doens't cut it
<Nilium>
That way lies madness.
<pipework>
I even know a good amount of vim compatibility mode.
scripore has joined #ruby
<diegoviola>
neovim is not there yet
<pipework>
It's frustrating, but nice that I can use an editor without configuration.
<Nilium>
I only use terminal vim, but I'm not really hurting for colors
thatslifeson has quit [Remote host closed the connection]
<pipework>
I use vim within tmux mostly.
Igorshp has quit [Ping timeout: 252 seconds]
thirdknife has quit [*.net *.split]
rippa has quit [*.net *.split]
braincrash has quit [*.net *.split]
kbarry has quit [*.net *.split]
Deck` has quit [*.net *.split]
jobewan has quit [*.net *.split]
A124 has quit [*.net *.split]
gigetoo has quit [*.net *.split]
maloik_ has quit [*.net *.split]
jerryberry_ has quit [*.net *.split]
thefynx has quit [*.net *.split]
dwn has quit [*.net *.split]
matled has quit [*.net *.split]
orionstein has quit [*.net *.split]
daed has quit [*.net *.split]
MuffinPimp has quit [*.net *.split]
andrew-l has quit [*.net *.split]
Zackio has quit [*.net *.split]
SHyx0rmZ has quit [*.net *.split]
musty has quit [*.net *.split]
ping-pong has quit [*.net *.split]
felixjet_ has quit [*.net *.split]
wookiehangover has quit [*.net *.split]
kloeri has quit [*.net *.split]
mr_rich102 has quit [*.net *.split]
brixen has quit [*.net *.split]
patteh_ has quit [*.net *.split]
tommylommykins has quit [*.net *.split]
mosez has quit [*.net *.split]
PaulePanter has quit [*.net *.split]
dyce has quit [*.net *.split]
vroomanj has quit [*.net *.split]
ccooke has quit [*.net *.split]
GnuYawk has quit [*.net *.split]
ukd1 has quit [*.net *.split]
bier has quit [*.net *.split]
matled- is now known as matled
gigetoo_ is now known as gigetoo
MuffinPimp_ is now known as MuffinPimp
wookiehangover_ is now known as wookiehangover
* pipework
rides the netsplit
ping-pong has joined #ruby
thatslifeson has joined #ruby
vroomanj has joined #ruby
<areologist>
Doesn't JetBrains make a Ruby IDE? Is that popular at all?
thatslifeson has quit [Remote host closed the connection]
shakes has quit [Quit: Leaving]
<pipework>
rubymine? Fairly.
<pipework>
People who seem to like IDEs also seem to like Rubymine.
<Nilium>
Stopped using tmux with it 'cause I couldn't find an acceptable prefix key that didn't swallow a key I wanted in vim.
<pipework>
Nilium: I just use ^a
braincrash has joined #ruby
<pipework>
Then I just press ^a^a to send ^a to vim.
tuelz has joined #ruby
<areologist>
Having a handy debugger and tools for refactoring and things like that is nice, I suppose
andikr has joined #ruby
<Nilium>
I have C-a bound to jump to the start of the line since I borrowed that from emacs.
<Nilium>
C-a and C-e, basically.
<pipework>
Or really, (^a*nested_tmuxen) + ^a
wldcordeiro_ has joined #ruby
<pipework>
Nilium: Pressing ^a twice isn't a big deal though.
<Nilium>
It's sufficiently annoying.
iotouch has joined #ruby
<pipework>
Nilium: It's something I got used to. Seemed silly to let bother me and then it stopped bothering me.
d34th4ck3r has joined #ruby
brixen_ is now known as brixen
mallu has quit [Ping timeout: 246 seconds]
SOLDIERz has joined #ruby
tkuchiki_ has joined #ruby
<shevy>
I can't be friends with you vimsters out there
tuelz has quit [Ping timeout: 258 seconds]
<areologist>
A couple more noob questions... It's been a while since I've gone down the Ruby path... 1. Is RSpec still the way to go for testing? 2. What are people using for web sockets and/or REST with Ruby?
techsethi has joined #ruby
nanoyak has joined #ruby
<pipework>
areologist: RSpec is a way to go. I'm fond of minitest.
joelataylor has joined #ruby
<sevenseacat>
rspec is awesome. i like it a lot.
<pipework>
As for wobsockets, thin-based stuff seems to be what people are into.
<zenspider>
for screen (I don't use tmux) I remapped from ^a to ^], since that's the escape for telnet and nobody telnets anymore
hakunin has joined #ruby
tkuchiki has quit [Ping timeout: 258 seconds]
<shevy>
I used to telnet +20 years ago to play a MUD!
<areologist>
interesting. thanks!
<pipework>
zenspider: Except when I'm on windows and have no time for that nonsense when trying to connect to a socket with a plaintext protocol.
MatthewsFace has quit [Remote host closed the connection]
* pipework
crecks out with his dreck out.
<sinepreggin>
why can't self be renamed to current_object?
<pipework>
sinepreggin: Why would you ever want that?
fabrice31 has joined #ruby
<sinepreggin>
because it makes a lot more sense in english
<pipework>
sinepreggin: Not really, no.
<pipework>
self is the basis of metaprogramming.
<pipework>
The notion of self is central to it.
<areologist>
thanks, hanmac1, I'll take a look at that.
<sinepreggin>
central to the current object
<sinepreggin>
it would be nice if self was renamed to current_object
<pipework>
sinepreggin: Do you refer to you as 'your_current_person'?
<pipework>
my_current_person
<pipework>
sinepreggin: It would be a worthless change for the sake of change.
<pipework>
Feel free to try to suggest it at bugs.ruby-lang.org but you'll probably be summarily shot down.
<sinepreggin>
where is self located? and what kind of repercussions would i face if i change the name?
<sinepreggin>
pipework: i will be shot down because of people being used to it
<pipework>
sinepreggin: You can define a method called #current_object if you want.
<sinepreggin>
and set #current_object to self?
<pipework>
yup.
<sinepreggin>
wouldn't that make the code slower though?
<areologist>
there was a talk at a Ruby conference years back in which the speaker was warning that Ruby may be the next Scheme if the Ruby community doesn't make nice with the enterprise domain etc...
<pipework>
sinepreggin: not enough to really care.
<pipework>
areologist: Scheme is pretty great, but I bet they meant with regard to the commercial market?
krz has quit [Ping timeout: 250 seconds]
tagrudev has joined #ruby
mistermocha has quit [Remote host closed the connection]
<areologist>
.. yeah, how at one point there was a lot of hype about Scheme and was the next big thing, conferences, etc. but the strongly typed OOP langauges killed it bad
mistermocha has joined #ruby
<areologist>
and allegedly part of the reason was not playing nice with enterprise needs.
<Radar>
sinepreggin: I think the bike shed should be blue.
<baweaver>
Every time I see 'this' in Javascript I have a mini heart attack
amclain has quit [Quit: Leaving]
SouL_|_ has joined #ruby
<sinepreggin>
why baweaver
<baweaver>
Mainly because people don't bind things right
<baweaver>
and then 'this' is bound to window and you inadvertently make a nasty psuedo-global state on the parent object.
iotouch has quit [Read error: Connection reset by peer]
iotouch has joined #ruby
<baweaver>
As far as redefining self, it's pointless.
<baweaver>
Ruby has sane scoping
sinkensabe has quit [Remote host closed the connection]
<baweaver>
Arguing about names of things isn't going to do you a shred of good
<areologist>
'strict mode'; or gtfo
CustosLimen has quit [Ping timeout: 240 seconds]
<baweaver>
Instead, go out and build something
<sevenseacat>
baweaver: but it's so much more fun to troll.
<baweaver>
sevenseacat: The scary part is that sometimes I'm not sure if it's trolling or just plain ignorance
fabrice31 has quit [Remote host closed the connection]
mistermocha has joined #ruby
<baweaver>
Some of these people are entirely serious when they mention something, and will hold to their guns on it fully believing in what they just said.
funburn has quit [Quit: funburn]
parduse has quit []
<baweaver>
see anti vaccine movement
mistermocha has quit [Remote host closed the connection]
<areologist>
'this' in JS is a great concept, but misnamed and thus conflated with 'this' or 'self' in other languages where it's a very different thing
<baweaver>
I didn't say it was bad, just that most people misuse it liberally
sinkensabe has joined #ruby
<areologist>
when the nature of 'this' in JS is properly understood it's fine, so I agree with you
<sinepreggin>
so this and self are not the same exact thing?
<baweaver>
!try
iotouch has quit [Ping timeout: 245 seconds]
<baweaver>
Nope, bot doesn't like me
<baweaver>
Try it out
<Nilium>
Rightly so.
<sevenseacat>
helpa isnt here anymore.
fabrice31 has joined #ruby
iotouch has joined #ruby
<sevenseacat>
oh, it is?
<sevenseacat>
!try
<baweaver>
use this in a nested function and console.log(this) in Ruby
<Nilium>
Well, neither of those would work in Ruby
<areologist>
in JS 'self' is a property on the global scope from the Netscape days that's still there, which is why the common var self = this; trope irks me slightly
<baweaver>
Javascript
<baweaver>
cri[es
<baweaver>
....
<baweaver>
cripes*
<baweaver>
Monday......
lidenskap has quit [Remote host closed the connection]
<areologist>
in JS 'this' is available in functions but doesn't refer to the function itself but to the context from which it was invoked
codecop has joined #ruby
codecop_ has joined #ruby
<Nilium>
The only thing that really irks me about most scripting languages is that control structures don't create scopes.
lidenskap has joined #ruby
<Nilium>
But that's what I get for coming from C and C-like languages.
<areologist>
so in a properly JavaScript style you might have something that interacts with 'this' and you could pass in different things with .apply or .call and have different thises
<baweaver>
Haskell :D
<areologist>
but yes, from a C-ish background it's confusing as hell
ych_ has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<Nilium>
It's not too confusing, just.. annoying.
<areologist>
I mean for JS noobs coming from a C-ish background
astrobun_ has joined #ruby
quimrstorres has joined #ruby
<Nilium>
I'd basically just like to limit the lifespan of local variables, isn't really doable in JS.
<areologist>
block scope in ES6
<Nilium>
Can't rely on new standards when it comes to JS.
<flughafen>
moring
<areologist>
transpile to ES5 with Babel or Traceur, if you don't mind the hacks that mimic the ES6 stuff
<Nilium>
C++11 and C++14 have better adoption than anything new in JS.
lkba has quit [Remote host closed the connection]
unshadow_ has quit [Ping timeout: 252 seconds]
<wasamasa>
trololol
<wasamasa>
first I'd need C++11 support in my text editor
surs has joined #ruby
<areologist>
since ES3 catch creates a block scope, so your lovely ES6 code might be transpiled to some god-awful try { var s; throw s; } catch (s) { s = "hi"; }
thatslifeson has joined #ruby
<Nilium>
Hacks produced by compilers are less preferable to just working with what's actually supported.
<areologist>
the generators to ES5 is worse
surs has quit [Changing host]
surs has joined #ruby
chipotle has joined #ruby
<Nilium>
Just a matter of being clear when writing code, for now.
<areologist>
ES6 standard is being published next month, browsers are supported it quickly, and it's an evergreen world, for th emost part
<zenspider>
baweaver: hah! did you just equate language mentarbation with anti-vaxxers?
<baweaver>
I aim to please
* sevenseacat
smiles and nods at JS talk
<Nilium>
As long as any portion of the world continues to use a browser that doesn't support something, it won't work
<Nilium>
It's a pain in the arse
<zenspider>
stop talking about JS.... take it to #masochism or something
<areologist>
haha\
sohrab has quit [Ping timeout: 258 seconds]
<baweaver>
Right next to enterprise Java
<Nilium>
Hey, I haven't gone off on a rant about how node.js is garbage yet.
<pipework>
Better yet, take it to a support group.
<Nilium>
I mean, that is cool from a technical POV.. but holy crap that's in production?
<zenspider>
my InlineFortran is in use in NASA
<baweaver>
Yep
<zenspider>
:D
<sinepreggin>
sevenseacat: i want to tell you a secret in pm
<baweaver>
COBOL engineers don't want to learn a new language
<Nilium>
I'm trying to figure out the scenario that someone had where that seemed like a good idea
<baweaver>
sinepreggin: I wouldn't
<sinepreggin>
baweaver: why would you learn a new language after learning cobol? cobol is the best programming language ever invented
Igorshp has quit [Ping timeout: 276 seconds]
<sinepreggin>
baweaver: what do you mean?
<zenspider>
baweaver: nah. I taught several cobol coders at a railsbridge
DerisiveLogic has quit [Read error: Connection reset by peer]
<baweaver>
zenspider: There are some
<baweaver>
but back home in Missouri? Good luck
<pipework>
I got to learn RPG from a pretty cool guy.
<baweaver>
I know RPG and COBOL
<baweaver>
won't ever use them
<Nilium>
Friend of mine had to use RPG IV at an insurance company. He quit not long after.
DerisiveLogic has joined #ruby
<baweaver>
At least he got IV, so Free can be used
<zenspider>
I intentionally never learned fortran or cobol so I'd never get stuck
<baweaver>
I had to use III with straight C for calc lines.....
<sinepreggin>
imo it should be ruby on cobol
longfeet has quit [Quit: Leaving]
<baweaver>
zenspider: Didn't have a choice
<sevenseacat>
sinepreggin: please stop trolling.
<Nilium>
I've never learned Cobol and my general assumption is that I'd have to be desperately trying to get a Cobol job if I learned it
<baweaver>
required classes
<zenspider>
everone has a choice
jgt has joined #ruby
<zenspider>
everyone. ugh.
<sinepreggin>
sevenseacat: i'm not trolling
<zenspider>
yes, you are. just stop.
<sinepreggin>
just because you don't agree with me, it doesn't mean that i'm trolling... cobol is a superior language
<sevenseacat>
sinepreggin: this is an actual warning, or we can go back to the kicking stuff.
<sinepreggin>
huh?
rahult has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
rdark has joined #ruby
<baweaver>
zenspider: Already most of the way through my (admittedly kinda worthless) degree, so technically had a choice but just bit the bullet on it.
<Nilium>
I'm just glad at my current job I at least get some range of choice for what I implement stuff in.
<pipework>
sinepreggin: You may want to evaluate the possible scenarios in which you find yourself still welcome here and possibly execute any one of them.
<Nilium>
Or at least nobody has ever stopped me.
<sinepreggin>
you hate cobol that much pipework ?
<pipework>
sinepreggin: Just a thought.
<zenspider>
strike two?
<sinepreggin>
cobol is the best language because it makes the most sense
<baweaver>
batters up?
<zenspider>
can we just pull the trigger?
<Nilium>
The Cobol schtick really isn't funny, so you can drop it.
<zenspider>
wait... I mixed metaphores
<sinepreggin>
i know 17 languages and cobol is my favorite for its ease and near-english syntax
<pipework>
zenspider: I made a pretty tasteless but apropos Kurt Cobain joke earlier.
<pipework>
zenspider: Quick, get that sevenseacat some coffee or we might all be doomed.
<zenspider>
baweaver: see?? I'm getting better at it!
Deck` has joined #ruby
<zenspider>
fuck off... can't have MY coffee
tuelz has joined #ruby
<baweaver>
If you're in SF I can get you coffee
ta has quit [Remote host closed the connection]
<baweaver>
but that's about it
ta has joined #ruby
User458764 has quit [Ping timeout: 250 seconds]
<pipework>
there's no amount of zen an arachnid can have that will stop the feline of no less than seven seas, but no more than seven seas. Yea, the count of seas will be seven.
avelldiroll has joined #ruby
* zotherstupidguy
used to have a cat, she was amazing, i trained her like bitbull, dogs were actually afraid from her. she was crazy and i love her
<pipework>
And here I am just a stupid fucking unit of work related to pipes. Creativity isn't my strongsuit.
jogara has joined #ruby
<zotherstupidguy>
anyone build a chatting app in ruby before?
<baweaver>
baweaver -> B.A. Weaver -> Brandon A Weaver. *shrugs* I'm not being creative either
Hounddog has joined #ruby
<zenspider>
hahaha
<baweaver>
though @baweaver is some sorority girl that's pretty pissed at me on twitter
<baweaver>
recruiters thought she was me for a while
<baweaver>
hilarity ensued
<baweaver>
blocks all around
<pipework>
I read it as Bad Ass Weaver.
<zotherstupidguy>
recruiters love me
<baweaver>
Funny that that's mildly on purpose ;)
<baweaver>
Also, I am a badass developer
<zenspider>
I pity the foo' that wrote that code
<zotherstupidguy>
lol
Starf0x has joined #ruby
<baweaver>
Build and Deployment Automation Support System that is
Starf0x has left #ruby [#ruby]
User458764 has joined #ruby
<hanmac1>
baweaver: hm reminds me at "i r baboon" from the Ren and Stimpy Show ;P
<baweaver>
shevy is convinced I'm a beaver
tuelz has quit [Ping timeout: 258 seconds]
anisha has joined #ruby
riotjones has quit [Quit: Leaving...]
pontiki has joined #ruby
joelataylor has joined #ruby
riotjones has joined #ruby
hanmac has quit [Ping timeout: 256 seconds]
xxneolithicxx has quit [Ping timeout: 255 seconds]
Equinoxdawg has left #ruby ["There is a reason I am leaving, chances are that reason is you."]
<cheeti>
adaedra if i removed that bcc mal not sending
<adaedra>
mmmh
d34th4ck3r has quit [Quit: zzz]
roshanavand has joined #ruby
<zotherstupidguy>
pipework yeah i found dnssd
fara_ has joined #ruby
quimrstorres has joined #ruby
fara_ is now known as fara
edwinvdg_ has joined #ruby
fara has quit [Changing host]
fara has joined #ruby
davidhq_ has joined #ruby
quimrstorres has quit [Remote host closed the connection]
lidenskap has quit [Ping timeout: 244 seconds]
<adaedra>
cheeti: I don't have a lot to say to you, I don't use Net::SMTP. If you can, check the email as processed by the mail server.
fschuindt has quit [Ping timeout: 272 seconds]
dtscode has left #ruby ["Leaving"]
<adaedra>
Check that the To:, Cc: and Bcc: fields are set correctly in outgoing mail.
<zotherstupidguy>
pipework the question is can i use multicast over the internet?
davidhq has quit [Ping timeout: 265 seconds]
nelmaven has quit [Remote host closed the connection]
<pipework>
zotherstupidguy: I bet you google has better answers to that question than I do.
<adaedra>
also cheeti, when you do a gist, give the right extension to the file so syntax color works, thanks :)
edwinvdgraaf has quit [Ping timeout: 276 seconds]
<rdark>
zotherstupidguy: you need a routable multicast address to communicate with
<pipework>
see mbone as well.
<rdark>
in general, it's ISP specific, and most ISPs don't implement multicast
<zotherstupidguy>
so the short answer is impossible?
<pipework>
Nope.
<pipework>
The short answer is "no", with a slightly less short answer being "No."
<rdark>
possible if all nodes are connected to the same ISP, and that ISP will do multicasting for you. but in general, no
<zotherstupidguy>
pipework mbone looks intersting
vtunka has joined #ruby
<pipework>
Whale, not really dependent on the ISP. Just that people route things for multicast properly, which most don't.
<pipework>
zotherstupidguy: If you want a rich and robust messaging system to build upon, try xmpp.
bMalum has joined #ruby
postmodern has quit [Quit: Leaving]
RegulationD has joined #ruby
djellemah has joined #ruby
<zotherstupidguy>
pipework xmpp doesn't support VoIP?
davidhq has joined #ruby
<pipework>
zotherstupidguy: Oh when you said chat, I assumed text.
<adaedra>
It's a difficult topic I think
<zotherstupidguy>
yeah, i am just checking
davidhq_ has quit [Ping timeout: 255 seconds]
<zotherstupidguy>
from my java days, i remmber a lot of weird stuff in this area, none of them was simple.
<zotherstupidguy>
personally what got me into this i was reading the other day about the skype protocol and it caught my intrest! i wanted to do a simple ruby thing to apprecaite the complexity
wolfleemeta__ has quit [Remote host closed the connection]
wolfleemeta__ has joined #ruby
<rdark>
zotherstupidguy: jingle is an xmpp extension that supports p2p stuff (including rtp/voip)
<adaedra>
ok, if you remove implementations which forbid inter-server communication?
<pipework>
zotherstupidguy: It does.
<pipework>
It might not be oldest, but it is the most proliferated.
arup_r has joined #ruby
<pipework>
So many things have been built on it. It's been deployed in so many environments.
<zotherstupidguy>
anybody remmbers google wave?
<zotherstupidguy>
from google australia
<pipework>
I tried it, didn't like the amount of flexibility. It didn't embrace new users and halp them go from beginner to power user very well.
<pontiki>
i wish they'd kept that
joelataylor has quit [Ping timeout: 265 seconds]
<pontiki>
but i can understand why they quashed it
<pipework>
Ahead of its time.
<pipework>
At least they shared it.
selu has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<zotherstupidguy>
true, but it was meant to kill email
<adaedra>
pipework: I think I was talking about Jabber itself
neanderslob has joined #ruby
<pipework>
adaedra: Jabber is XMPP.
<adaedra>
yeah, so
edwinvdg_ has joined #ruby
<adaedra>
the widely usable, s2s solution
<adaedra>
not the closed thing google and facebook offers.
<pontiki>
zotherstupidguy: i don't really think so. it extended email
<pipework>
adaedra: The 'closed thing' you refer speaks XMPP.
<adaedra>
yes, I know
techsethi has quit [Client Quit]
<pipework>
It's closed in the same way that it has protocols and routing rules.
thatslifeson has joined #ruby
<adaedra>
But I wished it would be possible to use it as planned, decentralized, open
<zotherstupidguy>
any idea what viber and whatsapp uses?
<pipework>
adaedra: It is.
<pipework>
The protocol is all you need.
<adaedra>
no
rohit has joined #ruby
<pipework>
Yes it is.
<adaedra>
there's noone on this
charliesome has quit [Read error: Connection reset by peer]
<adaedra>
everyone is on closed implementations
<adaedra>
(almost)
<pipework>
That's some serious bullshit.
jenrzzz has quit [Ping timeout: 256 seconds]
techsethi has joined #ruby
livathinos has quit []
charliesome has joined #ruby
<adaedra>
no it isn't
<pipework>
A minute ago you were saying no one uses XMPP, I don't think you're an expert on this topic.
<zotherstupidguy>
pipework please elobrate
<adaedra>
ok, misunderstanding
bruno- has joined #ruby
joonty has quit [Ping timeout: 250 seconds]
<pipework>
But I'm sure your 2 minute google spree makes you one.
<adaedra>
ok, stop
<pipework>
zotherstupidguy: On what?
<adaedra>
this is becoming insulting
<rdark>
facebook chat is based on XMPP, as is hipchat
<rdark>
I think slack is as well
<zotherstupidguy>
hipchat is a mobile app?
<pipework>
And many other things, even non-IM messaging systems.
arup_r has quit []
<rdark>
they have a mobile app
<pipework>
zotherstupidguy: It's a service.
livathinos has joined #ruby
techsethi has quit [Client Quit]
<zotherstupidguy>
cool, its hard to keep track of all the things!
edwinvdgraaf has quit [Ping timeout: 256 seconds]
<rdark>
if you're just doing text-based chat, XMPP is probably the default choice
<zotherstupidguy>
i appreciate adaeadra input to the discussion nevertheless :)
havenwood has quit [Ping timeout: 246 seconds]
<zotherstupidguy>
rdark is xmpp p2p?
astrobun_ has quit [Remote host closed the connection]
User458764 has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
<pipework>
XMPP is a protocol, and that's the only thing that needs to be open and describe a system for decentralization. The rest is up to routing/networking and the freedom of others to choose to allow federation to extend to networks outside of their control.
<adaedra>
pipework: I know what XMPP is, I know it's widely used under the hood by many services, I used many things based on it. What I was noticing, is that most of the time, those are closed platforms which are preferred - you named a lot of them - and a lot less of people seems to be using the jabber thing - s2s, with open communication outside, that's all
hgl has quit [Max SendQ exceeded]
<pipework>
adaedra: Each one of those services work with XMPP clients.
<pipework>
That's really all that matters.
<adaedra>
yes, they do
hgl has joined #ruby
<adaedra>
but they can't inter-communicate with other servers, or personnal ones
<pipework>
In what way?
gigetoo has quit [Ping timeout: 246 seconds]
astrobun_ has joined #ruby
<adaedra>
I can't with a @facebook.com xmpp address communicate with a person in the @google.com server
<zotherstupidguy>
a google account can talk to yahoo account, right?
bruno- has quit [Ping timeout: 258 seconds]
d34th4ck3r has joined #ruby
<zotherstupidguy>
linux pidgin thingy
<rdark>
zotherstupidguy: google killed s2s a while back
<pipework>
Choosing not to interoperate between other networks is a choice of the network operator, and not a limitation of the protocol.
<adaedra>
Last time I tried getting out of @google zone, it didn't work
<adaedra>
No, I know
<adaedra>
I used XMPP with s2s and chat rooms, it was nice
<pipework>
There is implementations that you can run on your own server that handle forwarding.
* atmosx
has a jabber account
<zotherstupidguy>
xmpp extenstion?
<adaedra>
I have some of them somewhere, but don't use them, without anyone to talk to :x
<adaedra>
everyone is on Google Talk or Facebook Chat :x
<rdark>
I was running ejabberd at $dayjob for a while
<zotherstupidguy>
if google is using xmpp, how they do the VoIP, jingle?
<pipework>
I'm glad that my jabber client allows multiple accounts.
<pipework>
zotherstupidguy: I'm not personally sure. I bet it's a proprietary solution on top though.
<adaedra>
pipework: that also means that if someone has a Google Talk account and gives it to you, you *have* to have a Google account to communicate with him.
<pipework>
Though I heard something about XMPP not being the real base of google talk's platform anymore, though they support that interface.
<pipework>
adaedra: So?
gigetoo has joined #ruby
<pipework>
It's not like they're not free.
<adaedra>
So if I don't want to have a google account, I can't discuss.
<pipework>
Sounds like a funny problem to have.
<pipework>
My XMPP client supports OTR.
<pontiki>
imagine if your phone worked like that
<zotherstupidguy>
they key here is to be free
sigurding has quit [Quit: sigurding]
<adaedra>
+1 pontiki
<pipework>
pontiki: That I had to sign up for services to use them?
<pontiki>
now imagine if phone communication were completely unregulated
<pipework>
Don't we already have that with everyone and their dog having apps on the store?
<adaedra>
I don't have a Facebook account, so I can't chat with people on this platform
<pipework>
adaedra: Sounds entirely reasonable.
<pontiki>
that you have to sign up for whatever service one of your mates is on to call them on the phone
areologist has quit [Quit: Leaving]
<pipework>
There's not much of a benefit for facebook to allow communication outside of their realm of control.
<adaedra>
pipework: with open platform and s2s available, this would not be a problem.
<zotherstupidguy>
we are discussing the protocol not the services...
<pontiki>
and to talk on the phone to all your mates, you need to sign up for a dozen different services
<adaedra>
If having accounts everywere is not a problem for you, good for you then.
shock_one has joined #ruby
<pipework>
adaedra: 1password or keepass
<pontiki>
the reason you only need to have one phone service to talk to nearly everyone in the world is because phone service, and especially service interconnects, are *highly* regulated
<adaedra>
pipework: not the issue
oo_ has quit [Remote host closed the connection]
<pontiki>
it's not the protocols
<pontiki>
it's the social question
<pipework>
adaedra: Some silly personal issue with signing up for a service is?
Pumukel has quit [Ping timeout: 256 seconds]
<adaedra>
"silly"
<adaedra>
That's a choice
<pipework>
It's a choice to not allow communication outside your realm of control.
<pontiki>
IM client authors came up with the best solution
<pipework>
pontiki: Who are you to try to force someone to provide a service to users they can't benefit from?
<zotherstupidguy>
personally all i care about is the rise and fall of a communication protocol,
<pontiki>
clients that can connect on multiple services *simultaneously*
<pontiki>
pipework: i'm the government and i'm here to help
<pipework>
pontiki: :D
<pipework>
I could use a drink then.
DeBot has quit [Ping timeout: 272 seconds]
<adaedra>
pipework: and with inter-communication of services, this would not be a problem, that's my point.
<adaedra>
"realm of control" tssk.
<pipework>
adaedra: There is zero benefit for google or facebook to allow it.
<adaedra>
no
oo_ has joined #ruby
excpt has quit [Ping timeout: 246 seconds]
nszceta has joined #ruby
<adaedra>
But there's an open playspace outside of google and facebook.
<pipework>
I mean, you can say 'no' all you like, I don't think it matters one iota worth of difference to them.
<adaedra>
It's not to make a difference to them.
einarj has joined #ruby
ArchRogem has joined #ruby
<pipework>
Then I think we're at a point where there's no point in further discussing the issue.
<pipework>
zotherstupidguy: XMPP is great.
<adaedra>
:|
iamninja has quit [Read error: Connection reset by peer]
iamninja has joined #ruby
lessless has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
jimms_ has quit [Remote host closed the connection]
<pipework>
arup_r: Something like that, yeah. The idea is that you'd use awesome unix tools to feed the data into your ruby process in small chunks, which you'd handle and then exit the process correctly.
jimms has quit [Remote host closed the connection]
gizless has joined #ruby
iasoon has quit [Ping timeout: 256 seconds]
enebo has joined #ruby
gizmore has quit [Ping timeout: 256 seconds]
<pipework>
arup_r: Yeah, what I bet you're seeing is that you're eating gobs of memory while parsing out this CSV
spastorino has quit []
<arup_r>
humm.. I feel so
<mwlang>
arup_r: one approach I’ve used successfully is to build up a SQL file that can be batch loaded by the database tools? This almost always an order of magnitude faster than ActiveRecord in a loop.
<pipework>
I've tried many approaches to handle huge CSVs in a single process, and while I haven't exhausted every option, I found that by essentially breaking up the work and passing it into ruby, that I was able to keep the transformations in ruby, but I had to create and throw away processes to sidestep whatever is preventing strings from not being garbage collected properly.
<pipework>
It was causing a leak of sorts.
KrzaQ has joined #ruby
<pipework>
arup_r: I'm not familiar with it personally. I don't see a problem with it though.
Guest1421 has joined #ruby
chinmay_dd has quit []
fschuindt has quit [Ping timeout: 245 seconds]
<arup_r>
ok.. thanks for the input..
<arup_r>
I think Rake's `sh` will handle OS related stuff too.. Let me give it a try and I'll let you know.. how it works
iotouch has joined #ruby
<arup_r>
Bye all..
Leef_ has joined #ruby
arup_r has quit []
RegulationD has quit [Ping timeout: 240 seconds]
iamninja has quit [Ping timeout: 252 seconds]
fschuindt has joined #ruby
tuelz has joined #ruby
joelataylor has joined #ruby
leslie has quit [Ping timeout: 252 seconds]
utkukaynar has quit []
shellfu has joined #ruby
_blizzy_ has joined #ruby
leslie has joined #ruby
leslie has quit [Changing host]
leslie has joined #ruby
quimrstorres has joined #ruby
vikaton has joined #ruby
hgl has quit [Ping timeout: 245 seconds]
quimrstorres has quit [Remote host closed the connection]
bjornar has quit [Remote host closed the connection]
vtunka has quit [Quit: Leaving]
mike_c_11 has quit [Read error: Connection reset by peer]
Rollabunna has joined #ruby
willharrison has joined #ruby
willharrison has quit [Client Quit]
hgl has joined #ruby
quimrstorres has joined #ruby
scripore has joined #ruby
paulcsmith has joined #ruby
chipotles has joined #ruby
Igorshp_ has quit [Remote host closed the connection]
17SACJ96L has joined #ruby
17SACJ96L has quit [Remote host closed the connection]
Igorshp has joined #ruby
chipotles has quit [Client Quit]
ferr has quit [Quit: WeeChat 1.1.1]
ferr has joined #ruby
leafybas_ has quit [Remote host closed the connection]
axl_ has joined #ruby
leafybasil has joined #ruby
KrzaQ has quit [Disconnected by services]
huddy has joined #ruby
KrzaQ has joined #ruby
Encapsulation has quit [Quit: Leaving]
User458764 has joined #ruby
kobain has joined #ruby
coderhs has joined #ruby
ta has quit [Remote host closed the connection]
sarkyniin has joined #ruby
<sarkyniin>
hey
<adaedra>
hej
<sarkyniin>
I'm having trouble installing nokogiri
coderhs has quit [Client Quit]
<sarkyniin>
and I can't seem to figure out what's the issue
Ropeney has quit [Remote host closed the connection]
Rollabunna has quit [Remote host closed the connection]
<adaedra>
Paste /tmp/bundler20150513-5026-17q8k40/nokogiri-1.5.0/extensions/x86_64-linux/2.2.0/nokogiri-1.5.0/gem_make.out too please.
tagrudev has quit [Remote host closed the connection]
<hanmac1>
sarkyniin: try to install newer one like nokogiri "1.6.*"
User458764 has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
<sarkyniin>
hanmac1: one of my gems seem to need the older version
neanderslob has quit [Remote host closed the connection]
<sarkyniin>
also adaedra
<sarkyniin>
the /tmp/bundler-xxxx folder is empty
<adaedra>
:)
<adaedra>
try to install it by hand through gem, bundler may clean its directories.
<hanmac1>
sarkyniin: you can try first to install the newer version of nokogiri, if that works then you know where the problem is ... if you cant install the newer version then the problem is somewhere else
AlphaAtom has joined #ruby
<sarkyniin>
looks like installing through gem
<sarkyniin>
works
sinkensabe has quit [Remote host closed the connection]
senayar has quit [Remote host closed the connection]
rbennacer has joined #ruby
<sarkyniin>
here's the content of the generated gem_make.out when using gem install: https://waa.ai/v3PP
chthon has quit [Remote host closed the connection]
<hanmac1>
hm yeah ok then it seems that this nokogiri seems to old for your ruby ... maybe you should see what gem does need that version and get it updated
unshadow_ has quit [Quit: leaving]
rbennacer has quit [Remote host closed the connection]
werelivinginthef has joined #ruby
rbennacer has joined #ruby
unshadow has quit [Remote host closed the connection]
gambl0re has joined #ruby
Macaveli has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
rippa has joined #ruby
fabrice31 has quit [Remote host closed the connection]
mitchellhenke has joined #ruby
fabrice31 has joined #ruby
badhatter has quit [Ping timeout: 264 seconds]
dstarh has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<sarkyniin>
huh
dstarh has joined #ruby
<sarkyniin>
it's strange
<sarkyniin>
installing all the gems in the gemfile manually
<sarkyniin>
with gem install produces no error
<sarkyniin>
but doing so with bundle gives me an error
fabrice31_ has joined #ruby
scripore has quit [Quit: This computer has gone to sleep]
senayar has joined #ruby
<hanmac1>
hm one of the reasons i never does trust bundler ;P
wpp has quit []
<mozzarella>
are you sure you have installed the right version of every gem, and not just teh latest?
Igorshp has quit [Remote host closed the connection]
Igorshp has joined #ruby
fabrice31 has quit [Ping timeout: 265 seconds]
vikaton has quit []
umgrosscol has joined #ruby
mary5030 has joined #ruby
mary5030 has quit [Remote host closed the connection]
<sarkyniin>
mozzarella: my gemfile just contains the latest versions
<sarkyniin>
of every gem
cgrieger is now known as cgrieger^away
P1RATEZ has joined #ruby
mary5030 has joined #ruby
<mozzarella>
weird then
Guest1421 has quit [Ping timeout: 272 seconds]
Cust0sLim3n has quit [Ping timeout: 256 seconds]
Soda has quit [Remote host closed the connection]
Rollabunna has joined #ruby
qwertme has joined #ruby
scripore has joined #ruby
idafyaid has joined #ruby
idafyaid has joined #ruby
vikaton has joined #ruby
jzigmund has joined #ruby
jzigmund has quit [Client Quit]
SOLDIERz has quit [Ping timeout: 265 seconds]
CorySimmons has joined #ruby
jzigmund has joined #ruby
lidenskap has joined #ruby
thirdknife_ has quit [Quit: This computer has gone to sleep]
slash_nick has joined #ruby
certainty has quit []
fabrice31_ has quit [Remote host closed the connection]
certainty has joined #ruby
<hanmac1>
i hate rubocop more and more ... the next joke it gots is: "Do not use parallel assignment." ... very funny when it also says: "Dont use methods longer than 10 lines" ... and now i want to ask you guys: HOW THE FUCK should i do that WITHOUT "parallel assignment"? ... PS: ther is also a "Dont use classes with more than 10 methods" or something -.-
fabrice31 has joined #ruby
konsolebox has joined #ruby
konsolebox has quit [Read error: Connection reset by peer]
<adaedra>
hanmac1: tweak it
<hanmac1>
adaedra: hm yeah i could change rubocop so that my stuff does pass the tests ;P
<adaedra>
it's made to be tweaked
konsolebox has joined #ruby
The_Phoenix has joined #ruby
<adaedra>
if you find that some of the limits are too low, and think it's fine, make them higher, or remove the cops
rippa has quit [Quit: {#`%${%&`+'${`%&NO CARRIER]
<ddv>
hanmac1: nothing wrong with that
Tennis has joined #ruby
lidenskap has quit [Ping timeout: 255 seconds]
<ddv>
hanmac1: don't blame rubocop when your code sucks
Cust0sLim3n has joined #ruby
GnuYawk has joined #ruby
Encapsulation has joined #ruby
ghr has quit [Ping timeout: 256 seconds]
<pipework>
ddv: rubocop's rules aren't reflectant of what I consider beautiful code.
<hanmac1>
ddv there is everything wrong with that ... i cant write that script if i should put nearly every line into an extra function and each 10 functions into an extra class ...
<pipework>
If matz included a ruby version of gofmt, I'd consider that canonical.
jtdowney has quit []
<hanmac1>
also hands up when you did wrote a class with more than 10 methods
<Encapsulation>
well I'm just starting out and c++ is so convoluted. It's a love hate relationship
<Encapsulation>
so I'm browsing the market
vikaton has quit []
<Encapsulation>
I'm looking at python as well
<Encapsulation>
concurrency is confusing me for sure
<toretore>
so you don't have much experience with those?
<adaedra>
python is known to be great at low level
jokester has joined #ruby
<Encapsulation>
I need to poll from sensors and have objects change state and call methods at intervals and in reaction to sensors etc
<Encapsulation>
right now I'm spawning threads and detatching them and they watch global bools
<Encapsulation>
and its probably a big fing mess
<Encapsulation>
so I'd like to do it right, and pick the best language for the application as well this time
mistermocha has joined #ruby
<Encapsulation>
I'm only about one semester in to coding
fara has quit [Ping timeout: 255 seconds]
<ponga>
ok im throwing away shoes and use gud ol' java swing
<ponga>
;(
<adaedra>
Encapsulation: you may also mix and make all interract
<adaedra>
The low level stuff in C++, the high level in Ruby
workmad3 has quit [Ping timeout: 265 seconds]
Ulrar has joined #ruby
rbennacer has quit [Remote host closed the connection]
<toretore>
Encapsulation: if you're doing mostly i/o, look into using select
<Ulrar>
Hi, I did a gem install compass, and it did create a /usr/local/bin/compass which seems to work fine as root, but throws error about not finding compass when ran as a user
dfinninger has joined #ruby
Hirzu has joined #ruby
rbennacer has joined #ruby
<Encapsulation>
toretore what it boils down to is that I need to read from sensors
<Ulrar>
Is there some procedure to apply when trying to install gems ?.
<Encapsulation>
and run timers and call funcs
<Encapsulation>
indepedent from the users ios
<Encapsulation>
io
mistermocha has quit [Remote host closed the connection]
<Encapsulation>
I don't want to break io
<Encapsulation>
I got myself stuck in an infinite menu loop in my c++ code
<Encapsulation>
and I use threads to solve it
<Encapsulation>
but It hink thats bad
<Encapsulation>
I could use a web interface witrh ruby
<Encapsulation>
and watches?
<Encapsulation>
and do this properly? is there a tutorial somewhere
<Encapsulation>
on how to have concurrency like this
<Encapsulation>
provide user io but also run the system
<adaedra>
Hi Ulrar
<Encapsulation>
I can't have a timer stop while getting input from a user, iof that makes sense
qwertme has joined #ruby
<toretore>
Encapsulation: there is no simple answer or solution to concurrency problems
<Encapsulation>
=S
<toretore>
it always depends on the situation
<Ulrar>
adaedra: Fancy seeing you there
<adaedra>
:)
<toretore>
and ou always have to understand what's going on in order to make it work properly
<adaedra>
Ulrar: what system?
<Ulrar>
adaedra: debian 7
Spami has joined #ruby
mistnim has joined #ruby
fara has joined #ruby
anisha has quit [Quit: Leaving]
<adaedra>
Ulrar: nothing like rbenv/rvm on the user side that may interfere?
konsolebox has quit [Read error: Connection reset by peer]
aganov has quit [Quit: Leaving]
snockerton has joined #ruby
<Ulrar>
adaedra: Not that I know of, created that user half an hour ago, the client only uploaded his code
willharrison has joined #ruby
ych_ has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<adaedra>
those people are always really resourcefull
_KLINE__ has joined #ruby
<_KLINE__>
HI NIGGERS =D
<arup_r>
why i am getting that error ....
<jhass>
!ban _KLINE__ !T 1d bye
_KLINE__ was banned on #ruby by ChanServ [_KLINE__!*@*]
_KLINE__ was kicked from #ruby by ChanServ [Banned: bye]
ki0 has quit [Ping timeout: 245 seconds]
<adaedra>
what did I say
<arup_r>
OMG.........
<That1Guy>
Cool website, I haven't seen eval.in before.
<arup_r>
adaedra: humm.... :/
bb010g has quit [Quit: Connection closed for inactivity]
<adaedra>
jhass: maybe just bam *KLINE*
<adaedra>
ban*
<jhass>
then he'll pick nicks that I need longer to tab complete :P
<That1Guy>
Any other cool tips for a student like me?
ki0_ has quit [Ping timeout: 240 seconds]
<havenwood>
adaedra: But all those non-troll HAPPY_KLINE and KLINE_FLAVORED_ICE_CREAM, etc.
<jhass>
That1Guy: know pry?
<adaedra>
havenwood: for the time being. Reducing the noise for a while.
<havenwood>
adaedra: :)
<adaedra>
arup_r: what, hum.
alex88 has quit []
<That1Guy>
:jhass what's that?
<adaedra>
?pry
<ruboto_>
Pry, the better IRB. Includes easy object inspection via `ls`, `history`, docs view with `?`, source view with `$` and syntax highlighting, among other features (see `help` for more). It can also be used for easy debugging by putting ’binding.pry’ directy in your source code. Visit https://pryrepl.org/ or get it now with gem install pry pry-doc
haxrbyte_ has quit [Read error: Connection reset by peer]
<adaedra>
That1Guy: short answer: your best friend.
<havenwood>
<3 REPLs
<havenwood>
Especially nice ones.
granthatcher has quit [Ping timeout: 276 seconds]
nobitanobi has quit []
Igorshp_ has joined #ruby
nobitanobi has joined #ruby
Igorshp has quit [Ping timeout: 255 seconds]
allcentury has quit [Ping timeout: 256 seconds]
<pontiki>
yay pry
<arup_r>
resolved..anyway
aswen has quit [Ping timeout: 240 seconds]
TuxOtaku has quit [Quit: <insert clever quit message here>]
shuber_ has joined #ruby
<havenwood>
arup_r: With `<<END` you can't have any spaces or indentation before the `END` but with `<<-END` you can.
haxrbyte has joined #ruby
<arup_r>
EOF was the problem.. I removed it and it is working....
<That1Guy>
It looks like pry is mostly for those that are working straight in irb
fmcgeough has joined #ruby
<adaedra>
That1Guy: it replaces irb
<adaedra>
But it's really helpful for experimenting and debugging
<adaedra>
couple it with pry-byebug and you got a really great tool
maletor_ has joined #ruby
<nobitanobi>
when doing hsh.key?(arg) - Is it idiomatic to call it without () ? In the style guide: https://github.com/bbatsov/ruby-style-guide it says: "Omit parentheses in methods that have "keyword" status in Ruby (e.g. attr_reader, puts)" What does keyword status mean?
haxrbyte_ has joined #ruby
davidhq has joined #ruby
<adaedra>
nobitanobi: methods you usually call like that without giving an explicit object (e.g. attr_reader, puts)
<nobitanobi>
adaedra: ok. So key? should have parentheses
<adaedra>
I hope g has disabled highlights.
<nobitanobi>
thanks adaedra
<havenwood>
nobitanobi: There isn't a single right way to do parens in Ruby, but most everyone agrees not to use them in certain circumstances (but there are exceptions where you need to). I often follow Seattle style where you omit parens unless it breaks the interpreter.
<adaedra>
nobitanobi: I'd say it depends
<adaedra>
people like to leave parenthesis out
senayar has quit [Remote host closed the connection]
diegoaguilar has quit [Remote host closed the connection]
stoffus has quit [Ping timeout: 256 seconds]
scripore has quit [Quit: This computer has gone to sleep]
<adaedra>
nobitanobi: so you do def a b, c, d ?
SleepDeprived has joined #ruby
livathinos has quit []
Guest54275 has quit [Ping timeout: 258 seconds]
senayar has joined #ruby
senayar has joined #ruby
ReK2WiLdS has quit [Remote host closed the connection]
konsolebox has joined #ruby
sohrab has joined #ruby
haxrbyte has quit [Ping timeout: 276 seconds]
pwattstbd has joined #ruby
joonty has quit [Quit: joonty]
davidhq_ has quit [Ping timeout: 256 seconds]
Mohan_ has joined #ruby
edwinvdg_ has quit [Remote host closed the connection]
<dudedudeman>
jhass is angry
* dudedudeman
bows to the great and mighty jhass
edwinvdgraaf has joined #ruby
<jhass>
gotta make some room in the banlist...
<adaedra>
that's some cleaning
<mozzarella>
we need a bigger banlist
shuber_ has quit [Remote host closed the connection]
GaryOak_ has joined #ruby
<dudedudeman>
can it only be of a certain size?
<jhass>
yeah
<dudedudeman>
huh
paulcsmith has quit [Quit: Be back later ...]
senayar has quit [Client Quit]
antgel has quit [Ping timeout: 246 seconds]
<adaedra>
you could use the banlist to store data
<adaedra>
encoded as base64
Diranged has joined #ruby
gsd has joined #ruby
<mwlang>
havenwood: “seattle style” ?
<gambl0re>
i'm doing puts ?A but irb is not return the ASCII value, its just print A
<wasamasa>
adaedra: lol
antgel has joined #ruby
<jhass>
gambl0re: yes, whatever you're reading that told you otherwise is ancient, pick a better resource
slash_nick has quit [Ping timeout: 265 seconds]
JDiPierro has quit [Remote host closed the connection]
<Senjai>
willharrison: Theres quite a few problems IMO. Given that this is rspec
Eiam_ has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<Senjai>
willharrison: First, you shouldnt be using allow, or doing setup in it blocks
<Senjai>
it blocks should only have one expectation
pontiki has joined #ruby
<Senjai>
Use lets, and contexts
sigurding has quit [Quit: sigurding]
<Senjai>
context "when given an argument" .... context "when an argument was not given"
chipotle has quit [Quit: cheerio]
<willharrison>
ah I see
<Senjai>
And nest them from there on
<Senjai>
context "when given an integer field" etc.
<willharrison>
I will read up on them then
<Senjai>
willharrison: They usually (but not always) come in pairs or more
<Senjai>
when something happens, when something doesnt happen
dfinninger has quit [Remote host closed the connection]
<Senjai>
Ideally it should read well if you run your specs with --format documentation
<willharrison>
I see
<Senjai>
it should read like english
maletor_ has quit [Quit: Computer has gone to sleep.]
<Senjai>
(i use --format documentation by default)
<willharrison>
can I use format documentation when I run rake?
paulcsmith has joined #ruby
<mwlang>
havenwood: do they have a style guide?
<Senjai>
E.g. if your thing requires an argument, you should test what happens when it has one, and when it doesnt. If it does something based on different types of arguments, you should have a context for each one AND one that it doesnt understand
<Senjai>
a lot of that is more work than most people do
dfinninger has joined #ruby
<Senjai>
But if your starting out, I recommend it
Deck` has quit [Read error: Connection reset by peer]
<willharrison>
I think format doc might be default on mine? I get the same output as `rspec`
<Senjai>
willharrison: Might as well throw --color on there too
<Senjai>
dots?
<Senjai>
or words
<willharrison>
words
<Senjai>
yeah
<Senjai>
probably is
<Senjai>
a project can have a .rspec or whatever
<Senjai>
that can set defaults
<havenwood>
mwlang: Not that I know of but there's some writing on the reasoning for no parens. I think the style guide is the code but I don't know: https://github.com/seattlerb
<willharrison>
it reads out all my `it`s
<Senjai>
or in your home directory
<willharrison>
ah ok I see
<arup_r>
any idea why it is not working ?
rbennacer has joined #ruby
casadei has joined #ruby
icebourg has joined #ruby
Spami has joined #ruby
<Senjai>
willharrison: also before :each is not required, just use before. Each is the default
<willharrison>
ok cool
<willharrison>
are my mocks ok or are they too invasive?
That1Guy has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
maletor_ has joined #ruby
TheHodge has quit [Quit: Connection closed for inactivity]
dfinninger has quit [Remote host closed the connection]
<mwlang>
havenwood: ok, I’m just curious…I’ve been experimenting with omitting parentheses more aggressively of late. I’ve *always* included parantheses in the method definitions, but have started dropping them almost subconciously in the last couple of months and I think it’s because I have been reading a lot of other people’s code of late.
That1Guy has joined #ruby
<gambl0re>
i dont understand this code... "This is a test".scan(/\w\w/) { |x| puts x }
<gambl0re>
what is it doing??
<havenwood>
gambl0re: Do you know what `/\w\w/` is?
tuelz has quit [Ping timeout: 256 seconds]
haxrbyte has quit [Remote host closed the connection]
griffindy has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<gambl0re>
but the previous example... "This is a test".scan(/\w\w/) { |x| puts x } isnt this the same thing? "This is a test".scan(/../) { |x| puts x }
edwinvdgraaf has quit [Ping timeout: 246 seconds]
<adaedra>
\w and . are different
scripore has joined #ruby
<havenwood>
mozzarella: ?:
<adaedra>
Try to put some symbols in that string and test with boths
<gambl0re>
i'll skip this chapter!..
conta_ has joined #ruby
conta_ has quit [Remote host closed the connection]
baweaver has joined #ruby
<mwlang>
*grumble* Why do companies still send emails using a “noreply” email address? Surely in this day and age, they can take a reply and route it automatically to support or wherever instead of auto-responding to tell you to do so.
<GaryOak_>
You've just realized a million dollar business idea...
rocknrollmarc has joined #ruby
<adaedra>
send a mail at noreply@adaedra.eu to have an answer.
rocknrollmarc has quit [Max SendQ exceeded]
sohrab has quit [Ping timeout: 276 seconds]
rocknrollmarc has joined #ruby
<adaedra>
See ya'll!
<havenwood>
adaedra: later!
<gambl0re>
\w
<gambl0re>
<gambl0re>
Matches any word character.
rocknrollmarc has quit [Max SendQ exceeded]
sohrab has joined #ruby
<gambl0re>
"This is a test".scan(/\w\w/) { |x| puts x } ok so this code matched "this,is,test,"
<mwlang>
GaryOak_: yeah, it’s called mailgun. :-)
<GaryOak_>
ahh well
<gambl0re>
it didnt print out "a" becaues it isd a single character and not a word??
ki0 has joined #ruby
Guest99295 has quit [Ping timeout: 258 seconds]
<havenwood>
gambl0re: "a" is indeed a word character, but you didn't say one word character...
<havenwood>
gambl0re: try with one: \w
rocknrollmarc has joined #ruby
rocknrollmarc has quit [Max SendQ exceeded]
Mohan_ has joined #ruby
baweaver has quit [Remote host closed the connection]
Matachin_ has joined #ruby
allcentury has joined #ruby
<gambl0re>
i get it now...
tuelz has joined #ruby
<havenwood>
gambl0re: \o/
<gambl0re>
"This is a test".scan(/\w\w/) { |x| puts x } th|is|(space)a|te|st
banister has joined #ruby
<gambl0re>
the a was ommitted because it was grouped with a space
michaeldeol has joined #ruby
DynamicMetaFlow has quit [Quit: Leaving]
DexterLB has quit [Read error: Connection reset by peer]
ki0 has quit [Ping timeout: 272 seconds]
<gambl0re>
the space didnt match the regular expression but if i did a (/../) it would give me |th|is| a|te|st
lkba has quit [Read error: Connection reset by peer]
lkba_ has joined #ruby
<havenwood>
gambl0re: yup, you got it
<gambl0re>
the (..) matches any character including spaces.
DerisiveLogic has joined #ruby
<gambl0re>
you guys could have just said something along those lines....
mjuszczak has joined #ruby
<havenwood>
gambl0re: :O
<apeiros>
gambl0re: you could also have read any regex doc
Zai00 has quit [Quit: Zai00]
djbkd has quit [Remote host closed the connection]
AlphaAtom has quit [Read error: Connection reset by peer]
<havenwood>
gambl0re: The first thing I asked was whether you understood \w, and from your answer it seemed you did. That's not a very nice way to say thanks! :P
x1337807x has joined #ruby
<gambl0re>
couldnt you tell that i copied my answer from somewhere?...
<pontiki>
no
DexterLB has joined #ruby
lkba_ has quit [Ping timeout: 256 seconds]
<apeiros>
gambl0re: so you make people waste their time trying to help you - and then have the audacity to be annoyed about how they help you?
<havenwood>
gambl0re: I actually couldn't tell if you just said the answer or copy/pasted, but if the latter I'd have thought you'd read it in the process of pasting.
vdamewood has quit [Quit: Life beckons.]
GnuYawk has quit [Ping timeout: 252 seconds]
<havenwood>
gambl0re: I assumed comprehension from the correct answer. If there's a small part of code you don't understand, show just that in the snippet. We can't tell which part you don't understand, hence the questions.
pontiki has quit [Quit: leaving]
ki0 has joined #ruby
<gambl0re>
let me give you an example why i dont read the doc files...
<mozzarella>
havenwood: thank you
rocknrollmarc has joined #ruby
<havenwood>
mozzarella: You're welcome!
<gambl0re>
lets say i want to learn strings..i go to the ruby doc files
<gambl0re>
this is the first paragraph they write.
<gambl0re>
A String object holds and manipulates an arbitrary sequence of bytes, typically representing characters. String objects may be created using String::new or as literals.
rocknrollmarc has joined #ruby
<gambl0re>
how the hell is a beginner gonna understand that?
rocknrollmarc has quit [Max SendQ exceeded]
ramfjord has quit [Ping timeout: 256 seconds]
<gambl0re>
was the doc files written by a robot?
<apeiros>
gambl0re: probably by reading it first?
bootstrappm has joined #ruby
rocknrollmarc has joined #ruby
<apeiros>
and not just freaking out at the first word they don't understand
<havenwood>
gambl0re: It's not written for programming novices. But there are good books like Chris Pine's Learn to Program for that.
<eam>
gambl0re: the docs aren't great, but they're also not aimed at complete newbies
rocknrollmarc has quit [Max SendQ exceeded]
<mozzarella>
adaedra: is that not what 'print' does?
<ccooke>
gambl0re: That's a pretty nice succinct definition. It's written so that someone new to Ruby (but not new to programming) will understand it easily
<mwlang>
gambl0re: what part of the definition of a String was unclear there? It was definitely written by a human.
<havenwood>
gambl0re: If you wrote all docs for novices the docs would be so expansive they wouldn't be as useful for programmers.
mitchellhenke has quit [Quit: Computer has gone to sleep.]
n80 has quit [Quit: n80]
<yxhuvud>
that1guy: because you have a condition that stop the recursion.
<havenwood>
That1Guy: That1Guy Try the former with a larger number, something above 10,000 or so.
<That1Guy>
What is the condition that stops the recursion?
mhoungbo_ has quit [Quit: Quitte]
<havenwood>
That1Guy: if num <= 1
ramfjord has joined #ruby
mitchellhenke has joined #ruby
wildroman2 has joined #ruby
<That1Guy>
I don't see how that stops the recursion. I see that would only keep * 1 every time it moves to -1, -2 and so on
Hijiri has quit [Ping timeout: 252 seconds]
<havenwood>
That1Guy: So in the case where it returns `1` you have: num * 1
<havenwood>
That1Guy: And you're done. No more recursing.
<That1Guy>
Is that not what the other one is doing? *1 for each new loop for lack of a better way of saying it
<havenwood>
That1Guy: The other is going forever.
<havenwood>
That1Guy: There's no case in which it doesn't recurse further.
<That1Guy>
Oh,
thirdknife_ has quit [Ping timeout: 258 seconds]
<That1Guy>
Idk why I missed it before.
<That1Guy>
yeah, I get it now
<havenwood>
That1Guy: Even with the former, you'll hit SystemStackError with larger numbers because Ruby's default is to support trace instruction rather than tailcall optimization. You can enable tailcall optimization when you compile Ruby.
jenrzzz has joined #ruby
<That1Guy>
I should probably stop and take a break. Been reading the book for 3 hours straight now.
<havenwood>
That1Guy: :)
freerobby has joined #ruby
sankaber has quit [Ping timeout: 250 seconds]
<adaedra>
thanks, mozzarella
zotherstupidguy has quit [Quit: leaving]
mjuszczak has joined #ruby
mjuszczak has quit [Max SendQ exceeded]
sankaber has joined #ruby
Hijiri has joined #ruby
mjuszczak has joined #ruby
mistermocha has quit [Remote host closed the connection]
That1Guy has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
startupality has joined #ruby
edwinvdg_ has quit [Remote host closed the connection]
bmusson has joined #ruby
edwinvdgraaf has joined #ruby
The_Phoenix has quit [Read error: Connection reset by peer]
doodlehaus has quit [Remote host closed the connection]
thirdknife_ has joined #ruby
roshanavand has joined #ruby
tuelz has quit [Ping timeout: 244 seconds]
freerobby has quit [Quit: Leaving.]
endash has joined #ruby
That1Guy has joined #ruby
nnnn is now known as dwn
quimrstorres has quit [Ping timeout: 250 seconds]
dwn has quit [Changing host]
dwn has joined #ruby
allcentury has joined #ruby
perrier has quit [Read error: Connection reset by peer]
perrier has joined #ruby
mwlang has joined #ruby
That1Guy has quit [Client Quit]
That1Guy has joined #ruby
mjuszczak has quit [Ping timeout: 276 seconds]
ramfjord has quit [Ping timeout: 255 seconds]
Guest1421 has joined #ruby
mjuszczak has joined #ruby
iasoon has quit [Ping timeout: 256 seconds]
Igorshp_ has quit [Remote host closed the connection]
perrier has quit [Read error: Connection reset by peer]
perrier has joined #ruby
iasoon has joined #ruby
<mwlang>
has celluloid’s basic usage changed since the documentation was written? A very basic example that they provide does not work. It seems that appending bang (!) to method calls is not the way to call asyncronously. https://gist.github.com/mwlang/5aab67c937d647a86add
nullset68 has joined #ruby
gizmore has joined #ruby
<Senjai>
mwlang: Short answer: Yes
<Senjai>
mwlang: There has been major refactorings on celluloid done
<Senjai>
mwlang: They have an IRC channel, Id check there
<mwlang>
also, with celluloid, is the only wait to wait for all actors to finish is to “sleep” ?
<Senjai>
mwlang: You can join on the supervision pool. But I think that was pulled from core. I havent used the 'new' version
<mwlang>
Senjai: thanks. I’ll hop over to there.
quimrstorres has joined #ruby
RegulationD has joined #ruby
baweaver has joined #ruby
kwekuanase has joined #ruby
<mwlang>
quiet channel over a #celluloid Senjai do you know offhand if celluloid pushes work onto every CPU core available when using the pool?
diegoaguilar has quit [Remote host closed the connection]
tuelz has joined #ruby
<Senjai>
mwlang: Ruby uses native threads, yes.
<mwlang>
using MRI Ruby 2.2
nux443 has joined #ruby
<Senjai>
mwlang: However if you're using MRI, you have the GIL
<Senjai>
mwlang: Which is still the same thing as always
<Senjai>
will only ever run one thread at a time
<Senjai>
This isn't that bad... as the actor system accomodates this pretty well
<Senjai>
unless you need high performance threading
<Senjai>
mwlang: Also, just ask, and people will eventually respond. It is a slower channel
<Senjai>
but it is active
lxsameer has joined #ruby
lxsameer has joined #ruby
<mwlang>
Senjai: I’m just wanting to tax all CPU cores since I’m loading data from file and inserting into DB
<mwlang>
Senjai: ah, drb…I’d totally forgotten that option.
<Senjai>
:)
Mohan has joined #ruby
Mohan is now known as Guest94214
<mwlang>
Senjai: really all I need to do, I think is set up the rake task to fire off a whole new process for each *.xml file and that’ll tax the cores plenty good.
Guest1421 has quit [Ping timeout: 276 seconds]
<mwlang>
I just haven’t done fork or spawn within ruby before…but I think those are sub processes of the main process (and hence same core) anyway…
moretti has joined #ruby
nanoyak has joined #ruby
That1Guy has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
That1Guy has joined #ruby
workmad3 has quit [Ping timeout: 246 seconds]
chinmay_dd|away is now known as chinmay_dd
nanoyak has quit [Client Quit]
moretti_ has joined #ruby
SouL_|_ has joined #ruby
tus has joined #ruby
_ixti_ has joined #ruby
jespada has joined #ruby
moretti has quit [Ping timeout: 265 seconds]
ixti has quit [Ping timeout: 245 seconds]
huddy has quit [Quit: Connection closed for inactivity]
Juanchito has quit [Quit: Connection closed for inactivity]
baweaver has quit [Remote host closed the connection]
certainty has quit [Quit: WeeChat 0.4.3]
DEA7TH has joined #ruby
certainty has joined #ruby
edwinvdg_ has joined #ruby
jerius has quit [Quit: /quit]
alam has joined #ruby
<alam>
wanna hear something funny?
<dudedudeman>
i like jokes
edwinvdg_ has quit [Remote host closed the connection]
thiagovsk has joined #ruby
<alam>
yesterday there was a black guy claiming he's good at programming at chipotle and bragging
certainty has quit [Client Quit]
edwinvdgraaf has quit [Read error: Connection reset by peer]
edwinvdg_ has joined #ruby
certainty has joined #ruby
kadoppe has quit [Ping timeout: 276 seconds]
* GaryOak_
can feel the admin ban in the air
<alam>
he's like i'm becoming really good at programming i know what this string of code does and but i don't have any friends who are programmers because i all they are good at is code and have no social skills
kadoppe has joined #ruby
ramfjord has joined #ruby
<dudedudeman>
i don't like joke
<alam>
all the while he's trying to sound whiter than george bush
<shevy>
someone permaban alam, he is back again trolling
w0jtas has quit [Quit: Leaving.]
<alam>
what?
<alam>
i'm not trolling
<shevy>
you know you are lying man
<alam>
lying about what?
<shevy>
did you do the same thing the last 5 days here
<alam>
no
<shevy>
are you telling the truth right now
<alam>
yes
mjuszczak has joined #ruby
alam was kicked from #ruby by apeiros [your racism is not welcome here.]
gagrio has joined #ruby
<shevy>
excellent timing :D
<dudedudeman>
Thank you, apeiros. that was almost magically seeing that
<shevy>
dudedudeman don't get your hopes up
<shevy>
he'l be back
<dudedudeman>
ugh.
<shevy>
it took sevenseacat about 11 bans yesterday
xxneolithicxx has joined #ruby
<dudedudeman>
i hope i'm here for it
<dudedudeman>
good lord
edwinvdgraaf has joined #ruby
<apeiros>
you're welcome. I know I wasn't responsive the last few days. been sick :( (and sometimes just not my timezone). but please keep using !ops
* arup_r
feels helpless
kirun has joined #ruby
antgel has quit [Ping timeout: 250 seconds]
ninjs is now known as firevolt
<shevy>
jhass was also fighting the troll
<dudedudeman>
what does !ops do?
<dudedudeman>
yeah, saw that one earlier
A205B064 has joined #ruby
<dudedudeman>
i know i can ignore anyone, but that's no fun
StevenXL has joined #ruby
dfinninger has joined #ruby
<GaryOak_>
arup_r: is it giving you an errors?
xcyclist has joined #ruby
codecop has joined #ruby
edwinvdg_ has quit [Ping timeout: 246 seconds]
<StevenXL>
Hi - does anyone know any source code that I can use to learn how to use the CSV Standard Library?
slash_nick has joined #ruby
griffindy has joined #ruby
<arup_r>
GaryOak_: no..
baweaver has quit [Remote host closed the connection]
dfinning_ has joined #ruby
<StevenXL>
I am having a hard time utilizing it even after reading the documentation on the library, so I was hoping real code might help solidify the ideas.
dfinninger has quit [Read error: Connection reset by peer]
<GaryOak_>
arup_r: on line 14 of output.sh your \t changed
<StevenXL>
arup_r: thanks I'll do that.
<arup_r>
humm.. that's strange..
<arup_r>
i hv no idea why so... GaryOak_
<mwlang>
hot speedalio…jruby has really cleaned up nicely since I last touched it. I can actually type “gem install” and “ruby ….” etc. on command line.
alam has joined #ruby
<GaryOak_>
mwlang: you mean running ruby lolz
rbirch_ has joined #ruby
lxsameer has quit [Quit: Leaving]
<jhass>
!kick alam
alam was kicked from #ruby by ruboto_ [alam]
<mwlang>
GaryOak_: yeah…I mean it actually feels familiar to MRI vs. having to call “jruby” or build my war/jars myself.
ki0 has quit [Remote host closed the connection]
EasyCo has quit [Quit: Connection closed for inactivity]
endash has quit [Quit: endash]
<GaryOak_>
mwlang: the last time I used jruby was for RubyProcessing, and it worked ok
colorados has quit [Ping timeout: 276 seconds]
<mwlang>
and rvm installed it just fine, too…so barrier to entry is nice and low.
lordkryss has quit [Quit: Connection closed for inactivity]
endash has joined #ruby
scripore has joined #ruby
quimrstorres has quit [Remote host closed the connection]
w0jtas has joined #ruby
anisha has joined #ruby
leafybas_ has joined #ruby
rbirch has quit []
rbirch_ is now known as rbirch
Matthews_ has quit [Remote host closed the connection]
turtil has joined #ruby
<mwlang>
ah, too good to be true…failing on nokogumbo gem.
<arup_r>
GaryOak_: any suggestion ?
<GaryOak_>
arup_r: you probably need to figure out why that \t is getting changed
leafybasil has quit [Ping timeout: 264 seconds]
psy_ has quit [Ping timeout: 272 seconds]
leafybas_ has quit [Ping timeout: 244 seconds]
jokke has quit [Quit: ninja vanish]
tvw has joined #ruby
<GaryOak_>
otherwise pg is looking for ' ' as a delimiter
jackjackdripper has quit [Quit: Leaving.]
danman has joined #ruby
roshanavand has joined #ruby
postmodern has joined #ruby
sohrab has joined #ruby
davidhq has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<weaksauce>
That1Guy when world[y] is out of bounds it will be nil. then nil[x] gives you that error
fmcgeough has joined #ruby
<pjackson>
apeiros: weird - this is with ruby 2.1.2p95
<pjackson>
i'll try updating and see if that's just a bug in my ruby version
<apeiros>
pjackson: your problem is only the first example?
<adaedra>
hi
<apeiros>
hi adaedra
wildroman2 has quit [Remote host closed the connection]
<That1Guy>
weaksauce: Can I not just add something like || world[y] == nil to the end of 21
DEA7TH has quit [Ping timeout: 265 seconds]
<adaedra>
apeiros: weather was full of bans on the channel today :o
sankaber has quit [Read error: Connection reset by peer]
ki0 has joined #ruby
_mak has joined #ruby
Stalkr_ has joined #ruby
sankaber has joined #ruby
weemsledeux has joined #ruby
lxsameer has joined #ruby
weemsledeux has quit [Max SendQ exceeded]
<weaksauce>
yeah. typically That1Guy, you'd drop the == nil
<weaksauce>
but you need to reverse the order
<weaksauce>
actually That1Guy with an or you'd still have the error. rewrite it using an && and have the earlier check be for nil
ngr has quit [Remote host closed the connection]
<adaedra>
or use .nil?
<pjackson>
apeiros: yes, although the second fixes it by assigning a random instance variable first
<_mak>
I have an optimization problem. The code in the lines 60-67 is reeeaaaalllyyyy slow. Is there anything I can do to run it faster? http://privatepaste.com/0a65041ba3
<pjackson>
which makes no sense
<apeiros>
pjackson: and you're sure you ran the right file? as in, cat it first, then run it with ruby?
<apeiros>
(you'd not be the first to edit the wrong file…)
krz has quit [Quit: WeeChat 1.0.1]
arup_r has quit [Quit: ChatZilla 0.9.91.1 [Firefox 37.0.2/2015041600]]
<pjackson>
yes i'm sure, i made this just to demonstrate it after observing it in my actual app
<havenwood>
pjackson: Works in 2.1 and 2.2, so dunno...
<havenwood>
pjackson: Just tried it on 2.1.6 and 2.2.2 but both are as expected.
* pipework
wishes the debugging options for ruby 2.0.0 weren't abominable
Hirzu has quit [Remote host closed the connection]
<That1Guy>
weaksauce: I don't understand why yours worked and this one didn't https://eval.in/355310
almostworking has joined #ruby
<That1Guy>
I just spent the last ten minute looking it over. Github shows the only changes are /Users/TheMoores/Desktop/Screen Shot 2015-05-13 at 12.44.13 PM.png
swgillespie has joined #ruby
<_mak>
havenwood: will do. thanks mate!
_seanc_ has joined #ruby
RegulationD has quit [Ping timeout: 258 seconds]
<That1Guy>
if world[y][x] != 'land' || world[y].nil?
<That1Guy>
if world[y].nil? || world[y][x] != 'land'
<weaksauce>
That1Guy order matters
almostworking has quit [Remote host closed the connection]
Soda has joined #ruby
<weaksauce>
execution is from left to right until it satisfies the logic.
ki0 has quit [Remote host closed the connection]
<adaedra>
>> a = 1; b = 2; if a = 3 || b = 4 ; end ; [a, b]
<weaksauce>
That1Guy whereas with or it means if this is true do the block OR that is true do the block
<That1Guy>
So if I use and, it breaks again because it won't stop when it finds 'land'
<That1Guy>
?
Hirzu has joined #ruby
<_mak>
jhass: ok, sorry about that
mjuszczak has quit []
<havenwood>
_mak: It's usually idiomatic to use a block with File.open for automatic closing etc. You can write to a file with File.write without manually opening and closing.
<havenwood>
_mak: More folk would view your code if you pasted to gist.github.com. Your choice has an outdated certificate, etc.
maletor_ has quit [Quit: Computer has gone to sleep.]
<shevy>
I won't look at his code!
leafybasil has joined #ruby
MatthewsFace has joined #ruby
<That1Guy>
Thanks weaksauce:
<_mak>
havenwood: is just that the code is so ugly that I want it to vanish from the web after some time :) on gist it will stay from what I understood
<havenwood>
_mak: You can gist anonymously. Then delete the gist.
<_mak>
havenwood: oh, let me check it again then..
<weaksauce>
always use && for logic That1Guy
<weaksauce>
well && or || is what I mean
<weaksauce>
don't use the `and` or `or` keyword
mjuszczak has joined #ruby
quimrstorres has joined #ruby
dfinning_ has quit [Remote host closed the connection]
ernham has joined #ruby
GnuYawk has joined #ruby
einarj has quit [Remote host closed the connection]
<havenwood>
_mak: Now just name the gist filename with a .rb extension. You can edit gists or add files to them.
<shevy>
_mak you can also remove your gists from gisthub again btw
<havenwood>
_mak: If you update the same gist folk can just refresh.
mjuszczak has quit [Client Quit]
tuelz has quit [Quit: WeeChat 1.1.1]
nobitanobi has quit [Remote host closed the connection]
wildroman2 has joined #ruby
<havenwood>
_mak: Naming files correctly lets people clone your gist and try locally.
<adaedra>
"gisthub"
nobitanobi has joined #ruby
<zzxc>
Hey, I don't know if this is the place to ask this. But I'm having an issue with Bundle install not listing Rmagick. Do I need to change some config or what not?
uptownhr has quit [Read error: Connection reset by peer]
<havenwood>
adaedra: ha, it actually does redirect :)
<havenwood>
_mak: You deleted the latter too fast. But instead of a second gist, add a second file to your first gist.
<havenwood>
_mak: Edit the gist, and in the lower left "Add file"
<zzxc>
adaedra: Let me look. the gemfile references gem.local
<adaedra>
what?
<_mak>
havenwood: I don't have an edit button and anonymous I think
<_mak>
havenwood: oh you mean when I'm creating it
maletor_ has joined #ruby
<havenwood>
_mak: I actually meant to edit it, but maybe I don't create sekret gists enough. :P
<_mak>
havenwood: yes, I have only the delete button
<zzxc>
adaedra: I don't actaully see anything in the gemfile to reference any gem.
<adaedra>
zzxc: if you're unsure, gist it
axl__ has joined #ruby
<shevy>
I can edit and delete my gists on github just fine. I am logged in though
<havenwood>
_mak: Okay, looks like you have to be slightly less super-sekret to edit... You can edit a secret gist but not an anonymous sekret gist apparently.
<_mak>
ahh
<adaedra>
shevy: not everyone has a github account :/
<canton7>
not anonymous, no
axl_ has quit [Ping timeout: 256 seconds]
axl__ is now known as axl_
<shevy>
adaedra do you have one
<adaedra>
yes
<shevy>
if the french can use an english interface, then everyone else can!
zacts has quit [Read error: Connection reset by peer]
freerobby has joined #ruby
zacts has joined #ruby
Mon_Ouie has joined #ruby
Mon_Ouie has joined #ruby
<zzxc>
adaedra: More or less. I already have Redmine Installed. I just installed it without install rmagick first.
zacts has quit [Remote host closed the connection]
<_mak>
havenwood: I guess that this seems to be taking some resource: .encode!('UTF-8', 'UTF-8', :invalid => :replace)
<havenwood>
_mak: aye, a lot
<apeiros>
use String#scrub
<adaedra>
zzxc: and now you want to have rmagick
<apeiros>
@ _mak
<zzxc>
adaedra: Yep
unlimitednigga has joined #ruby
<havenwood>
_mak: profiling is handy to find the culprit
<adaedra>
what command do you use zzxc ?
<_mak>
apeiros: I'll check it, thanks
<zzxc>
For the bundle install?
<zzxc>
bundle install --without development test
<adaedra>
Yes
apt-get__ has joined #ruby
<adaedra>
ok, seems correct
<adaedra>
and it doesn't list rmagick?
almostworking has joined #ruby
<zzxc>
adaedra: Nope. Bundle show list bundler and httpclient. No rmagick
<adaedra>
So I suppose it's not in Gemfile.lock either?
<unlimitednigga>
bruh why is crackers tryna take ova dat programmin and not let black ppl in n shit what cud we do to stop dem bitch ass racists from oppressing n shi
<unlimitednigga>
i lurned ruby in 12 dayz nigga
<zzxc>
adaedra: That would be correct. just httplient.
<adaedra>
just httpclient? o_O
codecop has quit [Remote host closed the connection]
<adaedra>
redmine should be much more than just httpclient
<unlimitednigga>
we need to make a thing where we is tryna get black ppl on dat programmin asap nigga
<apeiros>
oh dear. today is mentally underprepared day…
<adaedra>
zzxc: to be sure, you call bundle install from redmine's root, not a subfolder?
unlimitednigga was kicked from #ruby by apeiros [your racism is still not welcome. piss off.]
<zzxc>
Pretty postive let me double check.
<adaedra>
"piss off."
apt-get_ has quit [Ping timeout: 244 seconds]
<adaedra>
it sounds like you're getting angry
<apeiros>
slightly
GnuYawk has quit [Ping timeout: 256 seconds]
<adaedra>
I'm going slightly mad ♫
<apeiros>
I want to watch my netflix in peace.
<adaedra>
oh, sorry
<apeiros>
always have to rewind due to that asshole.
bluOxigen has joined #ruby
That1Guy has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<zzxc>
adaedra: Nope its in /usr/share/redmine
<apeiros>
huh? nono, not angry because of you adaedra. because of that racist asshole.
<adaedra>
I know
Musashi007 has joined #ruby
<havenwood>
every time i step away for a second the trolls emerge
<adaedra>
Next time, I'll try another op :x
<zzxc>
Yeah I had a roommate like that at one point. Sorry to hear it.
<apeiros>
adaedra: just !ops as you've done before. that's the best :)
<adaedra>
zzxc: and you run bundle install from this folder, right?
<adaedra>
apeiros: yeah, sure, but your netflix!
<apeiros>
can be rewinded
<adaedra>
good guy netflix
<jhass>
apeiros: mh, do you know offhand how to turn authname into cinch user object? might hotfix it for (available) nicks
<adaedra>
zzxc: (soory if I seem repetitive, I'm not sure to see what happends, so shoots in the dark)
<zzxc>
adaedra: Yep. Its only uses httpclient and bundler when you do a bundle install.
<apeiros>
jhass: nope, sorry
<adaedra>
that's insane
<_mak>
line = CSV.parse(row.scrub!("_").gsub(/"/,"'"),{:col_sep => "|"}) if row is a string why do I get 'undefined method `scrub!' for #<String:0x00000000d9ae40> (NoMethodError)' ?
failshell has quit [Remote host closed the connection]
<zzxc>
adaedra: No worries. I'm really hoping its something simple. I don't know much about ruby unforantly.
<apeiros>
jhass: in the upcoming api, it'll be bot.user_by_auth_name
<apeiros>
too bad I've been sick for a couple of days :-/
<adaedra>
:(
<havenwood>
Any Textual user know how to silence join/part without also silencing the rest of the general messages? Been trying it out but can't figure out how to fine tune general messages.
<adaedra>
havenwood: if you find, tell me
rippa has quit [Quit: {#`%${%&`+'${`%&NO CARRIER]
<adaedra>
mmmh
<adaedra>
zzxc: i'll look with a redmine install
Rapier- has quit [Quit: (null)]
adaedra_ has joined #ruby
<zzxc>
havenwood, adaedra Found it.
ernham has left #ruby [#ruby]
adaedra_ has left #ruby [#ruby]
<zzxc>
Textual → Preferences → Style → Show general event messages (you want it unchecked)
<adaedra>
Ah
<havenwood>
zzxc: But I do want general event message other than joins and parts.
<adaedra>
I worked it by putting an ignore on *!*@* for this kind of messages
<adaedra>
zzxc: what kind?
<adaedra>
oops.
<adaedra>
havenwood: what kind?
Azure|dc has joined #ruby
That1Guy has joined #ruby
danman has quit [Quit: danman]
<adaedra>
zzxc: I thought you found why your bundle was acting weird :/
<havenwood>
adaedra: mode changes and such
<zzxc>
adaedra: ?
<adaedra>
Ah, this I can't test here
<adaedra>
havenwood: if you can't find, bug the textual github
<adaedra>
zzxc: you said 'Found it' :)
nobitanobi has quit [Remote host closed the connection]
duderonomy has joined #ruby
workmad3 has joined #ruby
<zzxc>
adaedra: Ahahaha I thought you said you found it just now. Sadly no.
<zzxc>
Would it work to add it to the gemfile somehow?
Azure has quit [Ping timeout: 256 seconds]
<_mak>
apeiros: sorry mate, I can't understand what is wrong with the way I'm trying to use scrub. line = CSV.parse(row.scrub!.gsub(/"/,"'"),{:col_sep => "|"}) is this wrong?
<adaedra>
So, who will be the slowest tonight, hg or bundler?
That1Guy has quit [Client Quit]
<adaedra>
zzxc: I'm not even sure your redmine install would work reliably here with how your bundle react...
<adaedra>
zzxc: yeah, but it also means you have a problem with your redmine :x
<zzxc>
Well the thing is it works fine.
msmith_ has joined #ruby
<adaedra>
so it don't rely on bundler
<zzxc>
Database, Svn & git integration, front end all work fine.
<zzxc>
adaedra: Where did you install yours from?
<adaedra>
you can try to install rmagick manually and see if redmine picks it up?
<adaedra>
zzxc: hg clone, like in the documentation
banister has joined #ruby
<zzxc>
adaedra: And that might be source of that issue. I ended up being lazy and just using apt-get install
<adaedra>
for redmine?
<zzxc>
Yep.
pjackson has left #ruby [#ruby]
<adaedra>
then you can try to install rmagick the same way if it exists as a package
<zzxc>
It installs 2.5.X
<adaedra>
I installed redmine though apt-get in 2013 iirc
<zzxc>
adaedra: Its a ruby gem file.
msmith_ has quit [Read error: Connection reset by peer]
<adaedra>
zzxc: debian package manager has many gems available.
<zzxc>
Funky. I didn't think gem would like that.
msmith_ has joined #ruby
<zzxc>
Uhm anyways I didn't see it. I did install the gem for however.
al2o3-cr has quit [Ping timeout: 256 seconds]
<adaedra>
Restart your redmine instance and check if rmagick is picked up.
<zzxc>
I just can't get it redmine to use it.
<zzxc>
adaedra: Did that a few times.
<adaedra>
You can try putting it in the Gemfile
<adaedra>
I just don't know anymore
wildroman3 has joined #ruby
wildroman2 has quit [Read error: Connection reset by peer]
<zzxc>
adaedra: Alright I'll try that. Thak you.
Joufflu has joined #ruby
<adaedra>
Debian, debian, debian.
<zzxc>
What are you running off of?
<zzxc>
(Just wondering)
doodlehaus has quit [Ping timeout: 264 seconds]
<adaedra>
Desktop OS X, Personal server FreeBSD
<certainty>
eek
<certainty>
*scnr*
<adaedra>
here we go
<certainty>
hehe
<adaedra>
let me guess, you don't like FreeBSD?
kappy has joined #ruby
ramfjord has quit [Ping timeout: 264 seconds]
nobitanobi has quit [Remote host closed the connection]
<certainty>
well not as a server OS
<certainty>
at least not when i have more than one server
<adaedra>
did you read what I wrote?
<adaedra>
ah no
<zzxc>
adaedra: Ahh nice. My brother was always loved freeBSD for server. Has hardware support gotten better?
x1337807x has joined #ruby
<adaedra>
should stop doing so many things at the same time -_-
<certainty>
:)
<adaedra>
certainty: well, it's a personal one. But I like FreeBSD a lot.
sumark has quit [Remote host closed the connection]
<certainty>
I'm biased. I work for a company that ran most of their servers with FreeBSD. We've replaced most of them to linux now. Maintenance was a real pain in the ass.
nobitanobi has joined #ruby
<certainty>
s/to/with/
<adaedra>
zzxc: dunno
<adaedra>
it works for mine
<adaedra>
certainty: how so? (curious)
doodlehaus has joined #ruby
<certainty>
there are however still some left. 4.3 no way to get it uptodate :/
sumark has joined #ruby
<adaedra>
4.3?
User458764 has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
<certainty>
adaedra: the upgrade procedure is so lengthy.
<certainty>
yeah
<adaedra>
ahah
granthatcher has joined #ruby
<adaedra>
ok, I understand better
granthatcher has quit [Max SendQ exceeded]
<adaedra>
we're at like, 10.1 now
<certainty>
i know
Soda has quit [Remote host closed the connection]
<certainty>
we actually run a few recent FreeBSDs
<adaedra>
zzxc: strange, your Gemfile looks nothing like the one I have here. Will look with your version of redmine.
<certainty>
my boss loves that OS :)
granthatcher has joined #ruby
<adaedra>
I love it
granthatcher has quit [Max SendQ exceeded]
<adaedra>
I use it mainly for the jail system and the ports, tbh
<certainty>
i actually dislike the ports
zarubin has quit [Remote host closed the connection]
granthatcher has joined #ruby
swgillespie has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<adaedra>
Haven't used hg in a while it seems
<zzxc>
adaedra: Jail system?
<adaedra>
Let's be lazy and use GUI tools :x
<certainty>
i'm cool with source distros. We use gentoo as the main os. But ports is just so painful.
<adaedra>
certainty: how so?
<zzxc>
chroot users?
granthatcher has quit [Client Quit]
<adaedra>
zzxc: a chroot, but pushed further
<certainty>
adaedra: dependency management just doesn't work well. Also cleaning up or upgrading a port with many dependencies like apache + php + modules can be frustrating.
<certainty>
go to 10 different places and make uninstall, then go back to the original port and make install, just to see that you forgot something
<adaedra>
certainty: until recently, I used poudriere for ports building and pkg for installing. Work'd well for me.
<certainty>
doesn't pkg just install binary packages?
<certainty>
ah, wait i think i got you wrong
<adaedra>
yes, it does
<adaedra>
poudriere builds the binary packages
<certainty>
from the ports?
<adaedra>
yes
<certainty>
i see
<adaedra>
you give the list of packages you want, and it does everything automatically
wallerdev has joined #ruby
<certainty>
i might suggest that to our admins.
nobitanobi has quit [Remote host closed the connection]
<adaedra>
had some trouble with some package building, but it was a minority
swgillespie has joined #ruby
Mohan_ has quit [Ping timeout: 272 seconds]
<adaedra>
uses zfs (if you have) and jails and build packages in parallel.
wilornel has quit [Quit: Changing server]
<zzxc>
adaedra:I had to set up a jailed sftp use with in the first couple of weeks of my first CS job (I was physics major).
nobitanobi has joined #ruby
<adaedra>
zzxc: so I have the same thing as you have in my redmine Gemfile. Only difference, I have 94 lines before...
<adaedra>
ah nice
Mohan has joined #ruby
<adaedra>
my irc bouncer is in a jail
dented42 has joined #ruby
<certainty>
poor bouncer
<adaedra>
he doesn't seems to mind
Mohan is now known as Guest94613
<adaedra>
actually, everything is jailed, "host" is a base FreeBSD with nothing extra installed.
<zzxc>
adaedra: My boss was comepletely content just giving them unrescricted sftp & ssh connection to our integration partners.
<adaedra>
:|
tcrypt has joined #ruby
xnr has quit [Quit: <3]
<certainty>
what could possibly go wrong? (TM)
decoponio has quit [Quit: Leaving...]
lkba has joined #ruby
diegoviola has quit [Quit: WeeChat 1.1.1]
Zai00 has joined #ruby
<adaedra>
Ah, where is it again?
<zzxc>
Small start up. Rather not say beyond that.
<adaedra>
™
nobitanobi has quit [Remote host closed the connection]
<adaedra>
zzxc: you don't have to :)
icebourg has quit [Ping timeout: 252 seconds]
claw has joined #ruby
<adaedra>
He didn't even stay one second :o
CloCkWeRX has joined #ruby
claw has joined #ruby
xnr has joined #ruby
sn0wb1rd has quit [Ping timeout: 265 seconds]
shuber_ has quit [Remote host closed the connection]
andikr has quit [Remote host closed the connection]
mengu has joined #ruby
mengu has quit [Changing host]
mengu has joined #ruby
icebourg has joined #ruby
<certainty>
DeBot: !hangman ruby
<DeBot>
␣␣␣␣␣␣␣␣␣␣␣ [] 0/12
<certainty>
DeBot: _
<DeBot>
␣␣␣␣␣␣␣␣␣␣␣ [_] 1/12
<certainty>
DeBot: :
<DeBot>
␣␣␣␣␣␣␣␣␣␣␣ [_:] 2/12
<certainty>
DeBot: .
<DeBot>
␣␣␣␣␣␣␣␣␣␣␣ [_:.] 3/12
<adaedra>
DeBot: #
<DeBot>
␣␣␣#␣␣␣␣␣␣␣ [_:.] 3/12
<certainty>
woops
<adaedra>
bim
<adaedra>
DeBot: net
<DeBot>
␣␣␣#␣n␣␣e␣t [_:.] 3/12
<certainty>
DeBot: r
<DeBot>
␣␣␣#␣n␣␣e␣t [_:.r] 4/12
<adaedra>
derp.
<certainty>
DeBot: i
<DeBot>
␣␣␣#in␣␣e␣t [_:.r] 4/12
<adaedra>
DeBot: u
<DeBot>
␣␣␣#in␣␣e␣t [_:.ru] 5/12
martinbmadsen has quit [Remote host closed the connection]
<adaedra>
They actually completly remove bundler from redmine
umgrosscol has quit [Remote host closed the connection]
<adaedra>
Oh my god ubuntu what are you doing
<adaedra>
(Sorry for the exclamation above, it may not be debian this time)
nateberkope has joined #ruby
charliesome has joined #ruby
paulcsmith_ has joined #ruby
crdpink has quit [Client Quit]
thoffmeyer has quit [Quit: Leaving]
<zzxc>
adaedra: Yeah. I've talked to some people who have stopped using the ubuntu version of this because they keep running into so many issues. I think this is the source.
<adaedra>
zzxc: so you're trying with a clean install from svn?
<zzxc>
Yep.
<vikaton>
How do I append to a file instead of overwriting it?
<adaedra>
great
jespada has quit [Ping timeout: 255 seconds]
<adaedra>
vikaton: see File#open flags
P1RATEZ2 has joined #ruby
reinaldob has joined #ruby
reinaldob has quit [Remote host closed the connection]
scripore has quit [Client Quit]
n80 has quit [Quit: n80]
orionstein is now known as orionstein_away
sargas_ has joined #ruby
<adaedra>
oh my god, all this lost time for something so simple.
ghr has quit [Ping timeout: 264 seconds]
<zzxc>
adaedra: Haha. I'm sorry about that.
P1RATEZ2 has quit [Client Quit]
<adaedra>
don't be, not your fault
nobitanobi has quit [Remote host closed the connection]
superspring_ has joined #ruby
bkutil__ has joined #ruby
nobitanobi has joined #ruby
P1RATEZ has quit [Disconnected by services]
blazes816 has joined #ruby
iasoon has quit [Ping timeout: 264 seconds]
P1RATEZ has joined #ruby
ramfjord_ has joined #ruby
ghr has joined #ruby
devoldmx has quit [Ping timeout: 246 seconds]
ryotarai_ has joined #ruby
ptierno_ has joined #ruby
pygospa has quit [Disconnected by services]
sinkensabe has quit [Remote host closed the connection]
gkra_ has joined #ruby
rgs_ has joined #ruby
TheRealPygo has joined #ruby
crdpink has joined #ruby
nwkr has joined #ruby
duderonomy has joined #ruby
izzol_ has joined #ruby
eythoriu1 has joined #ruby
dahl_ has joined #ruby
sohrab_ has joined #ruby
x1337807_ has joined #ruby
uri__ has joined #ruby
banister has joined #ruby
banister has quit [Max SendQ exceeded]
ruboto__ has joined #ruby
allcentury has joined #ruby
m4rCsi_ has joined #ruby
livathinos has joined #ruby
adam- has joined #ruby
GaryOak_ has quit [Remote host closed the connection]
bigmac_ has joined #ruby
gaganjyot has quit [Quit: Leaving]
cats has joined #ruby
orionstein_away is now known as orionstein
_mak has left #ruby [".."]
x1337807x has quit [Ping timeout: 250 seconds]
Spleeze has quit [Ping timeout: 250 seconds]
Brando753 has quit [Ping timeout: 250 seconds]
Ankhers has quit [Ping timeout: 250 seconds]
lostcat has quit [Ping timeout: 250 seconds]
paulcsmith has quit [Ping timeout: 250 seconds]
bkutil has quit [Ping timeout: 250 seconds]
ryotarai has quit [Ping timeout: 250 seconds]
opes has quit [Ping timeout: 250 seconds]
mclee has quit [Ping timeout: 250 seconds]
Nilium has quit [Ping timeout: 250 seconds]
ptierno has quit [Ping timeout: 250 seconds]
ramfjord has quit [Ping timeout: 250 seconds]
sargas has quit [Ping timeout: 250 seconds]
ldnunes has quit [Ping timeout: 250 seconds]
GGMethos has quit [Ping timeout: 250 seconds]
v0n has quit [Ping timeout: 250 seconds]
dudedudeman has quit [Ping timeout: 250 seconds]
rgs has quit [Ping timeout: 250 seconds]
skakri has quit [Ping timeout: 250 seconds]
jtperreault has quit [Ping timeout: 250 seconds]
tcrypt has quit [Ping timeout: 250 seconds]
sohrab has quit [Ping timeout: 250 seconds]
A205B064 has quit [Ping timeout: 250 seconds]
havenwood has quit [Ping timeout: 250 seconds]
nateberkopec has quit [Ping timeout: 250 seconds]
Giorgio has quit [Ping timeout: 250 seconds]
bigmac has quit [Ping timeout: 250 seconds]
noname1 has quit [Ping timeout: 250 seconds]
michael_mbp has quit [Ping timeout: 250 seconds]
nricciar has quit [Ping timeout: 250 seconds]
xybr_ has joined #ruby
cosmicfires has quit [Ping timeout: 250 seconds]
gkra has quit [Ping timeout: 250 seconds]
choke has quit [Ping timeout: 250 seconds]
xybre has quit [Ping timeout: 250 seconds]
Nowaker has quit [Ping timeout: 250 seconds]
eythorium has quit [Ping timeout: 250 seconds]
superspring has quit [Ping timeout: 250 seconds]
izzol has quit [Ping timeout: 250 seconds]
adam12 has quit [Ping timeout: 250 seconds]
maoi has quit [Ping timeout: 250 seconds]
m4rCsi has quit [Ping timeout: 250 seconds]
ryotarai_ is now known as ryotarai
dahl has quit [Ping timeout: 250 seconds]
cosmicfires has joined #ruby
giuseppesolinas has quit [Quit: This computer has gone to sleep]
skakri has joined #ruby
ldnunes has joined #ruby
A205B064 has joined #ruby
opes has joined #ruby
mclee has joined #ruby
dudedudeman has joined #ruby
Giorgio has joined #ruby
GGMethos_ has joined #ruby
dudedudeman has quit [Changing host]
dudedudeman has joined #ruby
Nilium has joined #ruby
jtperreault has joined #ruby
nricciar has joined #ruby
v0n has joined #ruby
Brando753 has joined #ruby
<StevenXL>
Hi everyone. I have created a new object, called dinosaur. I then put a handful of those objects in an array.
phizzbuzz has quit [Ping timeout: 272 seconds]
Ankhers has joined #ruby
Ankhers has quit [Changing host]
Ankhers has joined #ruby
Spleeze has joined #ruby
uri_ has quit [Ping timeout: 264 seconds]
michael_imac has joined #ruby
P1RATEZ has quit [Quit: wow the network is taking a shit]
livathinos has quit [Client Quit]
<adaedra>
An array of dinosaurs?
<adaedra>
Let no one escape
scripore has joined #ruby
failshell has joined #ruby
<StevenXL>
haha
amystephen has quit [Ping timeout: 256 seconds]
<StevenXL>
exactly
<Obfuscate>
dinosaurs.shuffle
<StevenXL>
I don't want Jurassic Park on my hands.
Guest36286 has joined #ruby
x1337807_ has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
amystephen has joined #ruby
Igorshp has quit [Remote host closed the connection]
<StevenXL>
Actually, I think my problem is that I didn't tell the object how to use to_s
<adaedra>
how to use, or how to respond to?
<StevenXL>
how to respond to.
<adaedra>
ok
A124 has quit [Ping timeout: 264 seconds]
<adaedra>
and so?
jtdowney has joined #ruby
jimms has quit [Ping timeout: 246 seconds]
ldnunes has quit [Quit: Leaving]
choke has joined #ruby
<zzxc>
Ack alright I'm taking a break I need to head home anyways.
failshell has quit [Ping timeout: 265 seconds]
<zzxc>
adaedra: Thank you for your help. I'll see you around.
<adaedra>
Good luck!
<zzxc>
Thanks =]
nobitanobi has quit [Remote host closed the connection]
noname1 has joined #ruby
but3k4 has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
nobitanobi has joined #ruby
shazaum_ has quit [Quit: Leaving]
fara has quit [Changing host]
fara has joined #ruby
JDiPierro has quit [Remote host closed the connection]
noonius has joined #ruby
fara has quit [Quit: Changing server]
sankaber has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
x1337807x has joined #ruby
<StevenXL>
adaedra: I'm not getting the right results when I call puts on my new class.
d10n-work has quit [Quit: Connection closed for inactivity]
<StevenXL>
I've pasted the code there. Basically, I created a new class called Dinosaurs. I also created a new class called Dinodex. Dinodex is simply an array of Dinosaurs. When I call puts on a Dinodex object, I'd like it to have the same behavior as if I called puts on an array.
roshanavand has quit [Quit: Konversation terminated!]
<StevenXL>
No the output is different than last time
<adaedra>
got the same
<adaedra>
what did you got, last time?
startupality has quit [Quit: startupality]
<StevenXL>
Last time I got only the class and the object_id, but it didn't include all teh information it does now.
<StevenXL>
Now it includes the instance variable for each dinosaur
axl_ has joined #ruby
mwlang has joined #ruby
GGMethos_ is now known as GGMethos
<adaedra>
mmh
<StevenXL>
before I was getting only the dinosaur object_id and class
Limix has joined #ruby
vickleton has quit [Quit: Ex-Chat]
uptownhr has quit [Quit: uptownhr]
<adaedra>
well, best would be to override #to_s for Dinosaur to obtain exactly what you want
<StevenXL>
hmmm, let's try that
sinkensabe has quit [Remote host closed the connection]
Igorshp has joined #ruby
<mwlang>
so I spawn a bunch of processes with spawn and have a list of pids. How do I query running processes to see if a specific pid is still running?
baweaver has quit [Remote host closed the connection]
thoffmeyer has joined #ruby
thoffmeyer has joined #ruby
<adaedra>
mwlang: wait
werelivinginthef has quit [Remote host closed the connection]
neanderslob has joined #ruby
<adaedra>
(the wait group of method, if this was not understood)
<mwlang>
adaedra: I don’t want to wait on it. I actually Process.detach intentionally. I’m putting together a rake task I can run every now and then to report on the pids still running.
jespada has joined #ruby
<adaedra>
Ah, so it actually terminates?
<mwlang>
I know I can do this with backticks and call the ps command.
Yzguy_ has quit [Quit: I'm sleeping, go away.]
<adaedra>
It doesn't go zombie?
<mwlang>
adaedra: yeah, the processes are completely detached, so when they finish, they really do finish up.
<adaedra>
wait
<mwlang>
Process#detach for more info.
<adaedra>
(now it's a request to wait)
<adaedra>
yeah, I see
<adaedra>
I finish something with StevenXL problem first
<StevenXL>
adaedra: I tried to over-ride to_s the same way in Dinosaurs class, but I got the same result.
vikaton has quit []
<mwlang>
adaedra: ah…I thought you were mentioning Process#wait. :-p
axl_ has quit [Quit: axl_]
<adaedra>
StevenXL: what did you put in Dinosaur#class?
<adaedra>
(If it's a one line, paste it here, without def/end)
reinaldob has joined #ruby
reinaldob has quit [Remote host closed the connection]
<adaedra>
Array#to_s seems to call #inspect on sub-elements.
<adaedra>
However, I would not recommend overriding #inspect
<StevenXL>
adaedra: hm... ok.
<adaedra>
What you can do, is restoring Dinosaur#to_s, and modify Dinodex#to_s by using Array#map to have an array of stringified elements
<adaedra>
mwlang: I only know a "dirty" method for this, I'll be looking if there's nothing better
jerius_ has quit [Ping timeout: 264 seconds]
Yzguy has joined #ruby
jespada has quit [Ping timeout: 256 seconds]
phizzbuzz has joined #ruby
reinaldob has joined #ruby
reinaldob has quit [Remote host closed the connection]
<StevenXL>
adaedra: I will try that.
<mwlang>
If there’s not a ruby way to inspect all running processes of the system, then I’ll just backtick my way to what I need.
freerobby has joined #ruby
<adaedra>
Ok, stack overflow says to use my trick -_-
<StevenXL>
adaedra: my battery is running out; going to save this stuff and try out your suggestion when I get home.
<StevenXL>
thanks for the help!
<adaedra>
StevenXL: ok, good luck!
<StevenXL>
I'll let you know how it goes once I get back to an outlet.
<StevenXL>
:-)
Hien has quit [Ping timeout: 265 seconds]
<bricker>
mwlang: "Backticks of Success" we call them
<StevenXL>
(my nick will be around since I'm sshing with irssi)
Sawbones has joined #ruby
mengu has quit [Remote host closed the connection]
<adaedra>
mwlang: send a signal 0 to the process. The signal is not really sent, but the process checking is done anyway. So if the process is gone, it will fail.
<mwlang>
bricker: lol
<weaksauce>
mwlang do you control the other processes?
mengu has joined #ruby
mrdmi has joined #ruby
<adaedra>
weaksauce: "I’m putting together a rake task I can run every now and then to report on the pids still running."
<mwlang>
weaksauce: I spawned and detached in a rake task. The intent is to at any point, log into the system and call “rake process:status” and see everything still running.
slash_nick has quit [Ping timeout: 256 seconds]
<adaedra>
mwlang: seems the best solution
Guest47284 has quit [Ping timeout: 258 seconds]
<weaksauce>
yeah Process.kill(0,pid) and catch exceptions if there aren't any processes with that pid
gambl0re has quit [Ping timeout: 265 seconds]
mengu has quit [Read error: Connection reset by peer]
<adaedra>
That's what I may have done in C
Yzguy has quit [Client Quit]
<weaksauce>
Errno::ESRCH mwlang
mengu has joined #ruby
reinaldob has joined #ruby
<adaedra>
C knowledge is not wasted after all :p
Mohan_ has joined #ruby
gagrio has quit [Ping timeout: 246 seconds]
Squarepy has quit [Quit: Leaving]
<mwlang>
weaksauce: thanks!
ddarkpassenger has joined #ruby
<weaksauce>
C knowledge is never wasted adaedra
baweaver has joined #ruby
w0jtas has quit [Quit: Leaving.]
mjuszczak has quit []
bogdanteleaga has quit [Ping timeout: 244 seconds]
reinaldob has joined #ruby
reinaldob has quit [Remote host closed the connection]
<adaedra>
weaksauce: good to know.
mjuszczak has joined #ruby
apt-get__ has quit [Remote host closed the connection]
<adaedra>
a = 5; a = ++a + a++; /* What will be the value of a? */
ddarkpassenger has quit [Client Quit]
allcentury has quit [Ping timeout: 245 seconds]
sgambino has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<weaksauce>
undefined probably but 13 likely?
ddarkpassenger has joined #ruby
<apeiros>
would be my guess too
<adaedra>
undefined.
<weaksauce>
depends on the compiler and if it compiles.
<adaedra>
as soon as you have multiple ++/--.
fmcgeough has quit [Ping timeout: 240 seconds]
<adaedra>
But since I have only clangs, I won't check
<adaedra>
But it's funny, I'd have said 11.
<apeiros>
I'm always baffled by how much C keeps as undefined behavior.
riotjone_ has joined #ruby
<adaedra>
rust ftw
mjuszczak has quit [Client Quit]
<ebonics>
have you used rust code for anything production related