swgillespie has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<cyrus_mc>
attempting to debug an error in an open source ruby app. Receive undefined method sort_by! for #<Array:...>. The line of code is responses.sort_by! { |r| r[:sender] }
That1Guy has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
baweaver has joined #ruby
<cyrus_mc>
sort_by is a valid method for Arrays. Just wondering if the negation sign at the end is valid syntax and if so what that signifies
reinaldob has joined #ruby
<bricker>
cyrus_mc: it's not negation there, it's part of the method name
<cyrus_mc>
bricker: ok. so it identifies the object as an array, to which sort_by is a valid method.
reinaldob has quit [Remote host closed the connection]
That1Guy has joined #ruby
gkra_ is now known as gkra
reinaldob has joined #ruby
<bricker>
cyrus_mc: sort_by! was added in Ruby 1.9.3, make sure you're on at least that version
<bricker>
1.9.2 actually
<bricker>
but it doesn't matter, you should be on 2.x
<cyrus_mc>
bricker: that is it. On CentOS 6 and it has 1.8.7
<bricker>
cyrus_mc: time to upgrade :) 1.8.7 is two years EOL'd now
<bricker>
2=
<bricker>
2+
diegoaguilar has quit [Remote host closed the connection]
<cyrus_mc>
bricker: ya. I will roll my own package
reinaldob has quit [Remote host closed the connection]
reinaldob has joined #ruby
orionstein_away is now known as orionstein
rahult has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
neohunter has joined #ruby
hornairs has joined #ruby
mbwe has quit [Quit: WeeChat 0.4.2]
mbwe has joined #ruby
mbwe has quit [Client Quit]
thoffmeyer has joined #ruby
thoffmeyer has joined #ruby
reinaldob has quit [Ping timeout: 244 seconds]
gusrub has quit [Quit: Leaving]
arescorpio has joined #ruby
astrobunny has joined #ruby
x1337807x has quit [Ping timeout: 265 seconds]
MatthewsFace has quit [Remote host closed the connection]
akurilin2 has joined #ruby
devoldmx has joined #ruby
That1Guy has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
devoldmx has quit [Remote host closed the connection]
akurilin has quit [Ping timeout: 272 seconds]
devoldmx has joined #ruby
Guest1421 has quit [Ping timeout: 240 seconds]
_blizzy_ has quit [Quit: Leaving]
Irfan_A has joined #ruby
_blizzy_ has joined #ruby
DynamicMetaFlow has quit [Remote host closed the connection]
psy_ has quit [Ping timeout: 265 seconds]
That1Guy has joined #ruby
blackmesa has quit [Quit: WeeChat 1.1.1]
diegoviola has joined #ruby
serivich has quit [Ping timeout: 256 seconds]
veduardo has joined #ruby
reinaldob has joined #ruby
reinaldob has quit [Remote host closed the connection]
snockerton has quit [Quit: Leaving.]
DynamicMetaFlow has joined #ruby
DynamicMetaFlow has quit [Max SendQ exceeded]
That1Guy has quit [Client Quit]
ramfjord_ has quit [Ping timeout: 258 seconds]
DynamicMetaFlow has joined #ruby
<neohunter>
i have a very basic and dumb question
<neohunter>
im building a gem.
scripore has joined #ruby
oo_ has joined #ruby
<neohunter>
and im playing with it on my application, i use gem install --local to install the .gem file.
<neohunter>
how I can do a require, from the other path where i have the gem
<neohunter>
so i dont need to build the gem and install again each time i make changes
That1Guy has joined #ruby
Irfan_A has left #ruby [#ruby]
<neohunter>
just for development / debugging purporses
scripore has quit [Client Quit]
reinaldob has joined #ruby
fella5s has quit [Read error: Connection reset by peer]
Musashi007 has joined #ruby
quimrstorres has quit [Remote host closed the connection]
That1Guy has quit [Client Quit]
veduardo has quit [Ping timeout: 256 seconds]
Musashi007 has quit [Client Quit]
Musashi007 has joined #ruby
blazes816 has quit [Remote host closed the connection]
reinaldob has quit [Ping timeout: 264 seconds]
freerobby has joined #ruby
bricker has quit [Quit: leaving]
bootstrappm has left #ruby [#ruby]
devoldmx has quit [Ping timeout: 246 seconds]
devoldmx has joined #ruby
IrishGringo has joined #ruby
ramfjord has joined #ruby
scripore has joined #ruby
<neohunter>
why this doesnt work if file exists: require 'lib/file.rb'
sami has quit [Ping timeout: 272 seconds]
<neohunter>
how i can know what is the path that require is using?
<neohunter>
i'm not able to include a file in a subfolder using a pry session
<neohunter>
`require': cannot load such file -
endash has joined #ruby
<neohunter>
neither works with require_relative
<neohunter>
is somebody here :)?
DynamicMetaFlow has quit [Remote host closed the connection]
chipotle has joined #ruby
sargas has quit [Quit: Leaving]
nobitanobi has quit [Remote host closed the connection]
DynamicMetaFlow has joined #ruby
veduardo has joined #ruby
paulcsmith_ has joined #ruby
paulcsmith_ has quit [Client Quit]
hornairs has quit [Quit: hornairs]
maletor_ has quit [Ping timeout: 256 seconds]
DynamicMetaFlow has quit [Remote host closed the connection]
DynamicMetaFlow has joined #ruby
DynamicMetaFlow has quit [Max SendQ exceeded]
swgillespie has joined #ruby
DynamicMetaFlow has joined #ruby
That1Guy has joined #ruby
vikaton has joined #ruby
That1Guy has quit [Client Quit]
Spami has quit [Quit: This computer has gone to sleep]
robustus has quit [Ping timeout: 264 seconds]
That1Guy has joined #ruby
zzxc has joined #ruby
charliesome has joined #ruby
EllisTAA has joined #ruby
<EllisTAA>
should i use mac vim? i’m currrently using sublime but everyone says vim is the shit
maletor_ has joined #ruby
<wallerdev>
up to you
DynamicMetaFlow has quit [Remote host closed the connection]
<wallerdev>
its a personal preference thing
<gizmore>
i like nano
<wallerdev>
ive used vim, emacs and a bunch of other stuff but i use textmate for my day to day stuff
<weaksauce>
I love vim but it's another thing to learn
veduardo has quit [Ping timeout: 272 seconds]
<wallerdev>
i find learning emacs more useful for mac users than vim
veduardo_ has joined #ruby
<weaksauce>
neohunter remove the .rb from the line
<wallerdev>
since every text field on a mac supports a subset of emacs shortcuts
<weaksauce>
and add ./ to the front of lib
robustus has joined #ruby
<EllisTAA>
yeah i’ve heard people say emacs and vim are the best. so are they equally bad ass?
<weaksauce>
nope
<weaksauce>
vim is best
<wallerdev>
lol
<weaksauce>
:D
<eam>
emacs is a lot better, emacs is a vi, vi isn't an emacs
<weaksauce>
good thing too
orionstein is now known as orionstein_away
<wallerdev>
its all opinions
<veduardo_>
EllisTAA: +1 for weaksauce's answer
jtdowney has quit []
<wallerdev>
just try them and stick with what you like
<wallerdev>
theres no best
<EllisTAA>
lol
<EllisTAA>
ok will do
<EllisTAA>
downloading emacs now
<eam>
good man
meph has joined #ruby
al2o3-cr has joined #ruby
meph has quit [Client Quit]
<weaksauce>
they are two very different approaches to text editing really. emacs is a bunch of awkward(imo) and unmemorable key chords with a bunch of different modes that you can be in each with different bindings. very programable and everything is easily programable from the get go.
reinaldob has joined #ruby
reinaldob has quit [Remote host closed the connection]
<weaksauce>
vim is a few different modes. mostly memorable key bindings. and the programming language to customize it is crap
reinaldob has joined #ruby
reinaldob has quit [Remote host closed the connection]
<EllisTAA>
why would i need bindings?
<weaksauce>
vim is a grammar that operates on text basically. daw means delete a word. ci" means change inner quotes etc.
<weaksauce>
and you just need to be somewhere inside the quotes for it to find the first quote delete everything up to the next quote and then leave you in insert mode where you can type text
<EllisTAA>
sounds archaic
rahult has joined #ruby
tus has quit []
michaeldeol has quit [Ping timeout: 264 seconds]
<weaksauce>
not really. it's an extremely efficient way to edit.
<EllisTAA>
interesting. i guess ill try it out
<EllisTAA>
how long does it take someone to learn emacs or vim?
<weaksauce>
eam how would you do the equivalent of ci" in emacs?
tkuchiki has joined #ruby
<weaksauce>
or cit
kwekuanase has quit [Quit: Connection closed for inactivity]
<weaksauce>
you never stop learning something new EllisTAA
jtdowney has joined #ruby
steffes has joined #ruby
swgillespie has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<EllisTAA>
gotcha
d34th4ck3r has joined #ruby
RegulationD has joined #ruby
iteratorP has joined #ruby
pocketprotector has joined #ruby
daed_ has left #ruby [#ruby]
daed has joined #ruby
Xiti has joined #ruby
<eam>
weaksauce: well personally I load viper-mode and apply exactly the same keystrokes
<eam>
vi keybindings are great -- it's the engine that sucks
<eam>
who wants to write vimscript?
<weaksauce>
ah. were you a proficient vim user before moving over to emacs/
<weaksauce>
?
<eam>
yeah
<eam>
well, pre-vim
RegulationD has quit [Ping timeout: 256 seconds]
<weaksauce>
how do you find the emulator? does it have some of the more powerful things in vim?
lidenskap has quit [Remote host closed the connection]
<eam>
well, it's just keybindings, and it works well. emacs stuff is accessible too
<eam>
weaksauce: surely anything missing in the vim emu exists in the emacs side :)
Musashi007 has quit [Quit: Musashi007]
<weaksauce>
lol
<weaksauce>
can you type jj to exit insert mode if you map it?
<weaksauce>
inoremap jj <esc>
<weaksauce>
that's a big one to me
<eam>
sure, but I don't think so via the vim layer
lidenskap has quit [Remote host closed the connection]
* Nilium
just binds capslock to escape
Musashi007 has joined #ruby
<Nilium>
Though this screws me up when I'm on other people's computers
<eam>
a multi-key sequence results in a delay, no?
<eam>
Nilium: capslock is ctrl for me
willgorman|away has quit [Ping timeout: 255 seconds]
<Nilium>
I'd think it would only introduce a delay if there were more potential mappings following it
<Nilium>
For insert mode, jj is probably instantaneous.
<eam>
well I mean, do you not want jj inserted?
<weaksauce>
no
<weaksauce>
jj exits insert mode immediately
<Nilium>
If you map jj to escape, you won't insert it
<Nilium>
Vim will swallow it
<Nilium>
If you type ja it might not show the j until you hit a for a small amount of time.
<eam>
yeah I realize, what I'm saying is that for any multi-sequence you have to have some kind of timeout
ruby964 has joined #ruby
<eam>
Nilium: yeah that's what I mean
<Nilium>
If you type just j, it might not show up for a second, but the timeout is configurable.
sevvie has quit [Ping timeout: 256 seconds]
<eam>
same issue with taps vs tap-drag on phones
<weaksauce>
it inserts the first j then when the next one happens it eats the first and exits insert
<eam>
I can't tolerate time-based sequences
<Nilium>
I keep mine around 250ms
<eam>
I disable them
<eam>
emacs does do that by default in vim mode btw
<eam>
(setq viper-ESC-keyseq-timeout 0)
<Nilium>
I think the 200-300ms range is usually good enough for typing, but I also don't do insert-mode mappings.
<eam>
200ms kills me
<weaksauce>
eam the time delay sequences are not there. only if you want to insert a j that doesn't have anything else following it
<Nilium>
In general, the only key mappings I do have are for normal/visual/etc.
<al2o3-cr>
vim you gotta love it !gist % and BOOM!
<eam>
weaksauce: yeah, but it'd drive me nuts
<Nilium>
Insert only has mappings for control combos
<eam>
ssh does the same thing, with ~
<weaksauce>
so if you type `just` in insert mode it will insert just immediately
<eam>
luckily I rarely type ~
tuelz has joined #ruby
DerisiveLogic has joined #ruby
<weaksauce>
what part about it would annoy you?
<weaksauce>
there is no waiting in general
FernandoBasso has quit [Quit: leaving]
<eam>
I don't see the visual response I expect and it distracts me
<tuelz>
what's the appropriate way to turn a file into a file object and pass it around safely? Just open it up and hope they close it when they are done with it?
veduardo_ has quit [Ping timeout: 264 seconds]
<eam>
tuelz: depends what you want to pass around
jespada has quit [Ping timeout: 256 seconds]
<tuelz>
I've always just passed around filenames, but this stubbed out class is asking me to to return a file object
dorei has quit []
<tuelz>
it's just a pdf
<eam>
returning a descriptor is fine
Limix has joined #ruby
<tuelz>
what is a file descriptor? Just a file path?
robbyoconnor has joined #ruby
zzxc has quit [Ping timeout: 272 seconds]
mase-chatter has joined #ruby
<eam>
when you open a file, a descriptor is generated. File objects represent this as a class
<tuelz>
gotcha, thanks
<eam>
internally it's just an integer indexing into a table in the kernel
<tuelz>
ahh, cool. Thanks
ruby964 has quit [Ping timeout: 246 seconds]
diegoaguilar has joined #ruby
mase-chatter has quit [Client Quit]
maletor_ has joined #ruby
almostworking has joined #ruby
ruby136 has joined #ruby
willgorman has joined #ruby
krisquigley has joined #ruby
wallerdev has quit [Quit: wallerdev]
Spami has joined #ruby
ruby136 has quit [Changing host]
ruby136 has joined #ruby
ruby136 has joined #ruby
<ruby136>
ayyyy. it worked
ruby136 is now known as dudedudeman_
zotherstupidguy has joined #ruby
That1Guy has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
Bira has joined #ruby
Guest1421 has joined #ruby
almostworking has left #ruby ["Leaving"]
Timba-as has quit [Quit: Be back later ...]
mase-chatter has joined #ruby
baweaver has quit [Remote host closed the connection]
akurilin2 has quit [Read error: Connection reset by peer]
Bira has quit [Quit: Leaving]
akurilin2 has joined #ruby
multi_io has quit [Ping timeout: 246 seconds]
<dudedudeman_>
hey guys. does anyone know a good channel for bootstrap questions?
<weaksauce>
you could try #css
<dudedudeman_>
i've applied bootstrap to my app, but it's only showing up on like, 60% of my pages. it's not applying it to all of them(using a layout to apply it through a <%= yield %>
weemsledeux has joined #ruby
multi_io has joined #ruby
<dudedudeman_>
i'll take a visit over there, weaksauce thanks
Bira has joined #ruby
<weaksauce>
probably more of a sinatra question though
<weaksauce>
you can pm me the site again and I can take a look dudedudeman_
<weaksauce>
repo*
<dudedudeman_>
will do!
<al2o3-cr>
q haml v erb ?
<weaksauce>
haml
veduardo_ has joined #ruby
iotouch has joined #ruby
<al2o3-cr>
weaksauce: why?
<weaksauce>
it's way nicer to use al2o3-cr
<weaksauce>
way way way nicer
<al2o3-cr>
weaksauce: agreed :)
bmusson has joined #ruby
<dudedudeman_>
i decided to stick with erb as a newer person to all of this, because i didn't want to learn another 'language' and syntax while i'm throwing myself at ruby
<weaksauce>
you don't have to close tags. commenting is nested. when you comment out a line with nerdcommenter it actually comments out the line without having to add a space between the %>
nobitanobi has joined #ruby
duderonomy has quit [Ping timeout: 256 seconds]
<al2o3-cr>
weaksauce: ftw
<dudedudeman_>
that makes a lot of sense
felixjet_ has joined #ruby
<al2o3-cr>
and it's creator :)
<weaksauce>
it's a lot more readable too
<weaksauce>
you are?
<weaksauce>
ha nice
<al2o3-cr>
weaksauce: no no no
<weaksauce>
ha
<dudedudeman_>
wait
<dudedudeman_>
is the creator of haml sittign right here?!
<al2o3-cr>
dudedudeman_: :)
<dudedudeman_>
what in the world
<dudedudeman_>
i must go learn it now
<dudedudeman_>
lol
veduardo_ has quit [Ping timeout: 256 seconds]
<al2o3-cr>
matz == genius incognito
felixjet__ has quit [Ping timeout: 256 seconds]
mistermocha has joined #ruby
<dudedudeman_>
wait.
<al2o3-cr>
why?
<dudedudeman_>
you're hampton catlin?
<Radar>
lol
<Radar>
LOL
<Radar>
dudedudeman_: You're funny
tuelz has quit [Ping timeout: 256 seconds]
<dudedudeman_>
i mean, hey, weirder things have happened
<Marvina>
Hi, is it possible to learn Ruby & RoR at the same time?
Limix has quit [Ping timeout: 256 seconds]
Guest1421 has quit [Ping timeout: 245 seconds]
veduardo_ has quit [Ping timeout: 256 seconds]
nahtnam has quit [Quit: Connection closed for inactivity]
duderonomy has joined #ruby
psy_ has joined #ruby
<Ropeney>
yes Marvina, most books target that now
mary5030 has joined #ruby
<Marvina>
Well, I come from another background so I'm a bit confused. Should I go read a beginners book about Ruby or what should I do to get started with RoR_
<Marvina>
?
User458764 has joined #ruby
<dudedudeman_>
i'd say start with a few articles and books about ruby, and then if you want move to rails
shazaum has quit [Ping timeout: 252 seconds]
<dudedudeman_>
i'm currently doing that, learning mostly ruby and just now starting to sprinkle in rails
sdothum has quit [Quit: ZNC - 1.6.0 - http://znc.in]
mary5030 has quit [Remote host closed the connection]
mary5030 has joined #ruby
<Marvina>
Did you read it or you just advertising for #ruby authors :)
<Ropeney>
as i said, good recommendations
<mase-chatter>
mixins?
scripore has quit [Quit: This computer has gone to sleep]
That1Guy has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
That1Guy has joined #ruby
mary5030 has quit [Ping timeout: 264 seconds]
lidenskap has quit [Remote host closed the connection]
RegulationD has joined #ruby
mitchellhenke has joined #ruby
lidenskap has joined #ruby
veduardo_ has joined #ruby
nobitanobi has quit [Remote host closed the connection]
RegulationD has quit [Ping timeout: 244 seconds]
<zotherstupidguy>
Marvina read about ruby
<Marvina>
One of the best of the worst advices.
Jamo has quit [Remote host closed the connection]
<zotherstupidguy>
ok, lets try again, whats your objective?
<zotherstupidguy>
if you want to build a website with rails, then start with rails
<Marvina>
I asked how to get started since I have previous experience in programming.
<zotherstupidguy>
rails is unique
<zotherstupidguy>
the things you will learn in plain ruby is not the same as rails things
phutchins has joined #ruby
<zotherstupidguy>
so if you want to build a website with rails, go learn rails
<zotherstupidguy>
if you want to understand ruby, then learn ruby first, then go read rails sourcecode to understand how it works, while you use it. will take you about 2 years to get there
<Marvina>
How about Ruby? Some say learn Ruby first but that's a stupid advice. Because learning has different definitions so I don't know if they mean get familiar with it or master it.
<Encapsulation>
zotherstupidguy, is that an argument to not learn basic ruby along with rails?
wolfleemeta____ has joined #ruby
<zotherstupidguy>
Encapsulation i dont think it matters much, as the rails way is meant to be "the rails way"
braincrash has quit [Quit: bye bye]
<zotherstupidguy>
Marvina you need to master rails to use rails, mastering ruby while not understanding how rails works, will get you nowhere
mase-chatter has quit [Quit: Leaving]
<Marvina>
Yea but how much Ruby is necessary really. Some is, it's obvious. But how much, there's where I struggle.
Sawbones has quit [Remote host closed the connection]
<zotherstupidguy>
Marvina ok watch codeschool recent rails videos and get a feel for it
avarice has quit [Quit: this channel is bakas]
<zotherstupidguy>
join #rubyonrails
<Marvina>
I have few books here, "Eloquent Ruby", "The Ruby Way", "OOP With Ruby" etc.
<Marvina>
Dunno if I should read all?
wolfleemeta___ has quit [Ping timeout: 256 seconds]
<Marvina>
They are small, 400 pages or so
phutchins has quit [Ping timeout: 258 seconds]
<zotherstupidguy>
Marvina give it a try
veduardo_ has quit [Ping timeout: 272 seconds]
<Marvina>
Which one?
<zotherstupidguy>
Eloquent ruby
greenbagels has quit [Read error: Connection reset by peer]
<Marvina>
Alright.
Channel6 has joined #ruby
Rickmasta has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<Marvina>
I have some previous experience in C if that helps, also C++ OOP stuff and such.
rahult has joined #ruby
reinaldob has joined #ruby
reinaldob has quit [Remote host closed the connection]
<zotherstupidguy>
C experiance is always cool; in ruby you may write C extenstions; to get the ruby way, experiance with perl or lisp might be more important, but not nescessary ofcourse
reinaldob has joined #ruby
reinaldob has quit [Remote host closed the connection]
msmith_ has quit [Remote host closed the connection]
braincras has joined #ruby
reinaldob has joined #ruby
Rickmasta has joined #ruby
reinaldob has quit [Remote host closed the connection]
reinaldob has quit [Remote host closed the connection]
P1RATEZ has quit [Quit: pc cooldown]
reinaldob has joined #ruby
scripore has joined #ruby
reinaldob has quit [Remote host closed the connection]
reinaldob has joined #ruby
reinaldob has quit [Remote host closed the connection]
reinaldob has joined #ruby
reinaldob has quit [Remote host closed the connection]
reinaldob has joined #ruby
reinaldob has quit [Remote host closed the connection]
<Marvina>
Yea I see. Well there are some differences as I read, 0 in Ruby means true and such. And that everything is an object. I might get stuck at some parts of the book but I can just google them up right? Or is it like in C or C++ that there is a lot of "theory" behind each target?
<Ropeney>
Marvina, I've had the same annoyances coming from C
reinaldob has joined #ruby
reinaldob has quit [Remote host closed the connection]
<Marvina>
Example in C++, a vector is a container, sure. But to understand vectors you have to spend time on them, but you can use them without fully understand the implementations of it.
reinaldob has joined #ruby
Dreamer3 has joined #ruby
reinaldob has quit [Remote host closed the connection]
tuelz has quit [Ping timeout: 250 seconds]
devoldmx has joined #ruby
pontiki has joined #ruby
reinaldob has joined #ruby
Porfa has quit [Quit: porfa]
reinaldob has quit [Remote host closed the connection]
diegoaguilar has quit [Remote host closed the connection]
reinaldob has joined #ruby
reinaldob has quit [Remote host closed the connection]
djbkd has joined #ruby
dfoolz has joined #ruby
reinaldob has joined #ruby
reinaldob has quit [Remote host closed the connection]
jenrzzz has quit [Ping timeout: 272 seconds]
reinaldob has joined #ruby
reinaldob has quit [Remote host closed the connection]
nateberkopec has quit [Quit: Leaving...]
charliesome has quit [Quit: zzz]
maletor has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
reinaldob has joined #ruby
reinaldob has quit [Remote host closed the connection]
pontiki has quit [Ping timeout: 244 seconds]
reinaldob has joined #ruby
reinaldob has quit [Remote host closed the connection]
reinaldob has joined #ruby
reinaldob has quit [Remote host closed the connection]
reinaldob has joined #ruby
astrobun_ has joined #ruby
reinaldob has quit [Remote host closed the connection]
reinaldob has joined #ruby
djbkd has quit [Ping timeout: 255 seconds]
devoldmx has quit [Remote host closed the connection]
x1337807x has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
baweaver has joined #ruby
ghr has joined #ruby
zotherstupidguy has quit [Quit: Lost terminal]
lidenskap has quit [Remote host closed the connection]
reinaldob has quit [Ping timeout: 272 seconds]
maletor_ has quit [Quit: Computer has gone to sleep.]
Porfa has joined #ruby
zotherstupidguy has joined #ruby
paradisaeidae has quit [Ping timeout: 276 seconds]
That1Guy has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
jeromelanteri has quit [Ping timeout: 272 seconds]
iotouch has joined #ruby
iamninja has quit [Read error: Connection reset by peer]
iamninja has joined #ruby
That1Guy has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
CloCkWeRX1 has joined #ruby
CloCkWeRX has quit [Ping timeout: 265 seconds]
mary5030 has joined #ruby
oo_ has quit [Remote host closed the connection]
Limix has joined #ruby
ramfjord has joined #ruby
wldcordeiro_ has joined #ruby
oo_ has joined #ruby
jeromelanteri has joined #ruby
Deele has joined #ruby
iotouch has quit [Quit: This computer has gone to sleep]
mary5030 has quit [Ping timeout: 256 seconds]
devoldmx has joined #ruby
pontiki has joined #ruby
reinaldob has joined #ruby
reinaldob has quit [Remote host closed the connection]
jack_rabbit has joined #ruby
tuelz has joined #ruby
frem has quit [Quit: Connection closed for inactivity]
iotouch has joined #ruby
icebourg has quit []
reinaldob has joined #ruby
reinaldob has quit [Remote host closed the connection]
pdoherty has joined #ruby
scripore has quit [Quit: This computer has gone to sleep]
Rickmasta has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
vdamewood has joined #ruby
tuelz has quit [Ping timeout: 240 seconds]
starless has joined #ruby
lidenskap has joined #ruby
wldcordeiro_ has quit [Remote host closed the connection]
reinaldob has joined #ruby
reinaldob has quit [Remote host closed the connection]
Sawbones has joined #ruby
reinaldob has joined #ruby
wldcordeiro_ has joined #ruby
reinaldob has quit [Remote host closed the connection]
reinaldob has joined #ruby
reinaldob has quit [Remote host closed the connection]
reinaldob has joined #ruby
reinaldob has quit [Remote host closed the connection]
thatslifeson has quit [Remote host closed the connection]
reinaldob has joined #ruby
hmsimha has joined #ruby
reinaldob has quit [Remote host closed the connection]
dudedudeman_ has quit []
reinaldob has joined #ruby
reinaldob has quit [Remote host closed the connection]
That1Guy has joined #ruby
P1RATEZ has joined #ruby
reinaldob has joined #ruby
konsolebox has quit [Quit: Leaving]
reinaldob has quit [Remote host closed the connection]
reinaldob has joined #ruby
reinaldob has quit [Remote host closed the connection]
That1Guy has quit [Client Quit]
reinaldob has joined #ruby
reinaldob has quit [Remote host closed the connection]
ghr has joined #ruby
icebourg has joined #ruby
iotouch has quit [Quit: This computer has gone to sleep]
That1Guy has joined #ruby
bmusson has joined #ruby
<chipotle>
so, stupid question: i'm new to ruby and web frameworks other than using drupal
<chipotle>
drupal is obviously a dynamic php app
<chipotle>
using something like jekyll or middleman is static. and they say a static blog is teh way to go
lrcezimbra has joined #ruby
<chipotle>
butttt if it's static, how do you have things like blog comments? or a popular content block on the blog?
Sawbones has quit [Remote host closed the connection]
Limix has quit [Quit: Limix]
IrishGringo has joined #ruby
Musashi007 has joined #ruby
ghr has quit [Ping timeout: 264 seconds]
<Radar>
chipotle: I use jekyll for my blog at ryanbigg.com
<Radar>
chipotle: The comments are powered by Disqus.
<Radar>
I don't worry about popular content :)
<chipotle>
Radar: oh. but what if you want your own commenting system, not disqus or fb comments?
That1Guy has quit [Client Quit]
<chipotle>
i guess both of those are the preferred way of doing it, rather than dealing with comment spam yourself though, eh?
<Radar>
chipotle: Then I would make it dynamic.
<chipotle>
Radar: wait a second, you wrote rails 4 in action? holy shit
<Radar>
Yes that's me
* zotherstupidguy
:)
<Radar>
I wrote it with Steve + Rebecca and a bunch of other people who contributed :)
<chipotle>
yeah yeah
<chipotle>
:)
<chipotle>
i'm coming from a drupal world
<chipotle>
i'm trying to become a real coder
<chipotle>
but i feel a bit paralyzed
<Radar>
That'll pass in time :)
<chipotle>
there's just so much... if i want to be a backend web dev. there's ruby, js, js frameworks (just not jquery, i know that much), some html+css, a nosql db. i am really lost on how to begin. i don't even know what's involved in a non-web software app
<Radar>
How much of Rails 4 in Action have you read?
bmusson has quit [Ping timeout: 255 seconds]
mikecmpbll has quit [Quit: ciao.]
astrobun_ has quit [Remote host closed the connection]
<Radar>
It teaches the basics about Rails + working with databases and some sprinkling of JS in there. There's even a sub-current of Git in there :)
<chipotle>
Radar: i'm still on the well grounded rubyist
<chipotle>
i did buy the MEAP
<Radar>
ah
<chipotle>
from what i've been told, i need to read the well grounded rubyist to know how to program, then rails4 in action, to have a "cookbook" or tutorials?
<Radar>
Don't stress about not knowing everything now. Just learn things as you need them.
<Radar>
It sounds like you want to make a blog now. The Rails Getting Started guide covers that.
<Radar>
Well-Grounded teaches you about Ruby and then in Rails 4 in Action you can use that knowledge to build a Rails app.
<Radar>
You can also read R4IA without knowing Ruby. Just follow the bouncing ball.
<Radar>
We've gone to great pains to make it easy to follow.
rohit_ has joined #ruby
diegoviola has quit [Quit: WeeChat 1.1.1]
<chipotle>
Radar: but, i am afraid to jump into tutorials without knowing how to program.
<chipotle>
that's what happened with drupal
<chipotle>
i got thrown into it years ago
<Radar>
How much of Well-Grounded have you read?
<chipotle>
i can piece things together, make a custom module in a hack approach
<chipotle>
but i can't sit down and write a program in php, or ruby, yet, on my own
<chipotle>
i've gone through chris pine's learn to program
<chipotle>
and second chapter of well grounded
krz has joined #ruby
bmusson has joined #ruby
RegulationD has joined #ruby
wottam has joined #ruby
<rohit_>
chipotle, can you give an example of what you mean by "a program"?
<Radar>
Keep going through Well-Grounded, then I reckon :)
<chipotle>
i'm trying to get a new job, so i wanna rewrite my personal site in ruby. just a simple couple of pages about me, hosting my CV, etc
<chipotle>
so i thought now was a good time to try something
<chipotle>
rohit_: heh, yeah, it's a bit abstract
<chipotle>
in the drupal world, it means writing a module
<chipotle>
an add on functionality to the drupal cms
<chipotle>
in ruby, i'm sitll trying to figure it out
<chipotle>
i know i write a few lines of code to solve a specific problem and name it n.rb
<chipotle>
then i can run it
<chipotle>
but that's it
<chipotle>
:/
iotouch has joined #ruby
bmusson has quit [Ping timeout: 240 seconds]
<Radar>
Yup, that's pretty much what the first two chapters cover :)
<chipotle>
it's just hard to understand how rails ties into js, and a framework (wel, that makes sense. ruby is the programming language. rails is the framework app that is written in ruby). but how you use js to solve something, etc
<chipotle>
i know what html and css is
<chipotle>
i'm just lost
<chipotle>
and i feel stuck because i don't know where to go
<chipotle>
i haven't opened up the well grounded book in like 10 days
<chipotle>
partly because i had surgery (cancer free now!), but partly because i just am overwhelmed and don't know what i'm doing
RegulationD has quit [Ping timeout: 256 seconds]
<Radar>
chipotle: I think you've got two choices. You can keep reading Well Grounded or you can read through the first ... 5 chapters of Rails 4 in Action.
* chipotle
comes from a theoretical physics background
<Radar>
chipotle: Also go through the Getting Started Guide from guides.rubyonrails.org
millerti has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
x1337807x has quit [Max SendQ exceeded]
chipotle has quit [Excess Flood]
x1337807x has joined #ruby
chipotle has joined #ruby
<rohit_>
chipotle, Well that's interesting. Maybe you can try writing a web app to do something related to theoretical physics? I don't know, may be take a few parameters from the user and run a simulation or something physics-y.
jeromelanteri has joined #ruby
oo_ has quit [Remote host closed the connection]
<chipotle>
sorry i got dc'ed, did anybody say anything relevant after my comment radar why first five?
chipotle has quit [Excess Flood]
<Radar>
and gone again
iotouch has quit [Quit: This computer has gone to sleep]
chipotle has joined #ruby
oo_ has joined #ruby
<chipotle>
what the hell??
<chipotle>
why do i keep getting flood dc'ed
reinaldob has joined #ruby
zzxc has quit [Ping timeout: 244 seconds]
reinaldob has quit [Remote host closed the connection]
wldcordeiro_ has quit [Ping timeout: 240 seconds]
<Radar>
chipotle: Nobody knows.
<Radar>
chipotle: The first 5 teach you about the fundamentals of Rails.
<Radar>
ch 6 is where it starts to get hard
<chipotle>
heh
<chipotle>
ok
Xiti has quit [Read error: Connection reset by peer]
iamninja has quit [Read error: Connection reset by peer]
reinaldob has quit [Remote host closed the connection]
<zotherstupidguy>
i asked the guys at #freenode they said /who #channel %i
<zotherstupidguy>
this returns the IPs
<wasamasa>
canton7: you just revealed your location!
reinaldob has joined #ruby
reinaldob has quit [Remote host closed the connection]
<zotherstupidguy>
canton7 we know where you are :D
<canton7>
:O
<canton7>
shocker
<zotherstupidguy>
you are in the UK
<zotherstupidguy>
hide now
<zotherstupidguy>
lol
<canton7>
I'm also connecting through a bouncer, so you'll get the location of my vps's datacenter :P
<zotherstupidguy>
ok so we get a list of the IPs, now i need to pipe it to geoip thingy, but first how can i get it out of irc!! use a bot or irc client with programming interface?
<canton7>
zotherstupidguy, copy-paste
ebonics has quit [Quit: Leaving]
<canton7>
zotherstupidguy, c'mon
<zotherstupidguy>
canton7 ?
<wasamasa>
zotherstupidguy: I'm using an IRC client with a programming interface
<wasamasa>
zotherstupidguy: hence my earlier joke
* canton7
types that /who command, copies the list of ips, pastes them into a text editor
rohit has joined #ruby
<canton7>
done!
<zotherstupidguy>
actually not bad
roolo_ has joined #ruby
<zotherstupidguy>
but what if we want to run it all day
<zotherstupidguy>
to get stats long run
toretore has joined #ruby
<canton7>
then you need to write an IRC client in ruby, or get a client with a ruby API
<zotherstupidguy>
wasamasa i missed the joke :)
<canton7>
but... first things first
<canton7>
get a proof-of-concept that works
<canton7>
... and that means doing things the hacky way. like copy/paste.
<canton7>
once you've got the geoip bit and map-drawing bit, tackle the "automatic" and "irc" parts
User458764 has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
<zotherstupidguy>
i done geoip before
<zotherstupidguy>
i dont remmber it, but i knw its simple
<wasamasa>
zotherstupidguy: I'm using an emacs IRC client
<zotherstupidguy>
as long as you got the geo db
<canton7>
it don't matter: get it working now :P
<zotherstupidguy>
cool
<wasamasa>
zotherstupidguy: so, writing a bot with it is very simple as it's all lisp and I just need to operate its completely exposed backend commands, even while it's running
roolo has quit [Ping timeout: 250 seconds]
<zotherstupidguy>
yeah i know about the emacs church, but i still live in vim releam
djbkd has joined #ruby
astrobun_ has quit [Remote host closed the connection]
User458764 has joined #ruby
sango_ has joined #ruby
thatslifeson has joined #ruby
iteratorP has quit [Remote host closed the connection]
rohit has quit [Quit: Leaving]
ndrei has quit [Ping timeout: 256 seconds]
djbkd has quit [Ping timeout: 272 seconds]
Ropeney has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
thatslifeson has quit [Ping timeout: 265 seconds]
RegulationD has joined #ruby
craigp has quit []
edwinvdgraaf has quit [Remote host closed the connection]
reinaldob has quit [Remote host closed the connection]
AlphaAtom has joined #ruby
reinaldob has joined #ruby
rahult has joined #ruby
tuelz has joined #ruby
robustus has quit [Ping timeout: 255 seconds]
vivekananda has joined #ruby
robustus|Off has joined #ruby
robustus|Off is now known as robustus
chenillen has quit [Remote host closed the connection]
jackjackdripper has quit [Ping timeout: 272 seconds]
rodfersou has joined #ruby
jtdowney has quit []
reinaldob has quit [Ping timeout: 252 seconds]
tuelz has quit [Ping timeout: 258 seconds]
einarj has joined #ruby
holigan101 has joined #ruby
holigan101 has quit [Changing host]
holigan101 has joined #ruby
holigan101 has joined #ruby
EasyCo has joined #ruby
einarj_ has quit [Ping timeout: 265 seconds]
<zotherstupidguy>
i think i got it working, but yet to do ipv6 and to find a way to pipe things out of to the program instead of copy/pase
<zotherstupidguy>
canton7 i did the initial hack
parduse has quit []
noonius has joined #ruby
<canton7>
sweet¬
<canton7>
got it drawing a map yet?
sdothum has joined #ruby
<zotherstupidguy>
hmm, no not yet
<zotherstupidguy>
but i want it from the irc client
<zotherstupidguy>
piping it out :(
<zotherstupidguy>
it would be cool to have this on the ruby channel website, huh?
<zotherstupidguy>
:)
reinaldob has joined #ruby
<zotherstupidguy>
but i think its static githubpage, one of us will need to host it and provide the ip
<zotherstupidguy>
api*
einarj_ has joined #ruby
einarj has quit [Ping timeout: 258 seconds]
<zotherstupidguy>
i am not much of a js guy
doodlehaus has joined #ruby
<zotherstupidguy>
but i am sure someone where would do the effort of this map thingy
allcentury has quit [Ping timeout: 244 seconds]
<zotherstupidguy>
here*
thatslifeson has joined #ruby
n008f4g_ has joined #ruby
tejasmanohar has quit [Quit: WeeChat 1.1.1]
withnale_ has joined #ruby
tkuchiki has quit [Ping timeout: 245 seconds]
thatslifeson has quit [Ping timeout: 245 seconds]
mengu has quit [Remote host closed the connection]
startupality has quit [Quit: startupality]
iotouch has quit [Quit: This computer has gone to sleep]
tuelz has joined #ruby
noonius has quit [Quit: noonius]
ndrei has joined #ruby
rocknrollmarc has joined #ruby
claptor has quit [Quit: this channel is bakas]
shuber_ has joined #ruby
AlphaAtom has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
startupality has joined #ruby
<adaedra>
<zotherstupidguy> it would be cool to have this on the ruby channel website, huh?
<adaedra>
you can file an issue
shuber_ has quit [Ping timeout: 256 seconds]
dEPy has quit [Quit: (null)]
parduse has joined #ruby
rodferso1 has joined #ruby
SouL_|_ has quit [Ping timeout: 272 seconds]
mengu has joined #ruby
rodfersou has quit [Ping timeout: 240 seconds]
chinmay_dd has joined #ruby
chinmay_dd has quit [Remote host closed the connection]
rodferso1 has quit [Client Quit]
chinmay_dd has joined #ruby
ldnunes has joined #ruby
parduse has quit []
a346 has joined #ruby
freerobby has joined #ruby
postmodern has quit [Quit: Leaving]
startupality has quit [Quit: startupality]
sevenseacat has joined #ruby
jespada has joined #ruby
freerobby has quit [Client Quit]
Jamo has joined #ruby
jgt has quit [Ping timeout: 276 seconds]
noonius has joined #ruby
freerobby has joined #ruby
rodfersou has joined #ruby
jespada has quit [Ping timeout: 258 seconds]
diegoaguilar has joined #ruby
<zotherstupidguy>
adaedra yeah, i am looking into a ruby way to get the whois
chinmay_dd has quit [Remote host closed the connection]
<zotherstupidguy>
adaedra any ideas?
<adaedra>
I'm missing so much context here I'm floating in space
Guest66261 has quit [Ping timeout: 264 seconds]
doodlehaus has quit [Remote host closed the connection]
Mohan has joined #ruby
<zotherstupidguy>
using /who #ruby %i we can get all the ips in the channel, i made a small script using gem geoip to get the country of the ip list, but i did that by copy/paste the ips, now i need a way to get it from IRC automatically. if done, we can make an API for this and offer it to a js guy who can add it to the rubychannel website
Mohan is now known as Guest15454
CloCkWeRX has joined #ruby
TheBrayn has joined #ruby
<adaedra>
You'll need an IRC bot for that who does /who
<adaedra>
but be careful, as who'ing the whole channel will probably get your bot kicked out
<adaedra>
if it doesn't, it should support sending raw commands, so it should be good
codecop has quit [Remote host closed the connection]
<zotherstupidguy>
that needs a deeper look
<adaedra>
but you should speak about this apeiros before implementing it, I'm not sure it is well appreciated by everyone in here
DerisiveLogic has joined #ruby
<zotherstupidguy>
i think they are sleepin, beside who cares, i just wanna know if it is easy enough
<zotherstupidguy>
it needs a js guy anyhow
codecop has joined #ruby
<adaedra>
collecting everyone's ip seems a bad idea, and I'm not sure if it's not in violation of freenode rules
Hounddog has quit [Ping timeout: 272 seconds]
<zotherstupidguy>
i think users can ask freenode to protect their ips
<adaedra>
but yeah, in the idea, a cinch bot should be good for that.
<zotherstupidguy>
if they want to
sango_ has quit [Ping timeout: 246 seconds]
<adaedra>
that's not the question.
<zotherstupidguy>
let me put it this way, it is avialable info that nobody cared to hide
qwertme has joined #ruby
<zotherstupidguy>
but yeah i get your point, privacy and all,
<zotherstupidguy>
keep in mind that we are showing the coutnry
<adaedra>
er, you know
<zotherstupidguy>
so not the nick associated with the IP
Papipo has quit [Remote host closed the connection]
<adaedra>
chat messages are public info, but we still protect the chat logs and freenode forbids logging if not clearly stated
<zotherstupidguy>
i am interested in the techie side of this equation
Papipo has joined #ruby
<adaedra>
and storing other people ips may be reglemented by law in the country you store them
<adaedra>
(it is where I live)
<adaedra>
yeah, technical side it's all good
allcentury has joined #ruby
DerisiveLogic has quit [Ping timeout: 250 seconds]
bruno- has quit [Ping timeout: 256 seconds]
<adaedra>
just, be careful if you do it
<adaedra>
anyway, time for lunch
<zotherstupidguy>
thanks, cheers
orionstein_away is now known as orionstein
freerobby has quit [Quit: Leaving.]
<sevenseacat>
sounds like not a goodidea.
vdamewood has quit [Quit: Life beckons.]
RegulationD has joined #ruby
workmad3 has quit [Ping timeout: 246 seconds]
gaganjyot has joined #ruby
Joshes43 has joined #ruby
parduse has joined #ruby
mengu has quit [Remote host closed the connection]
sevenseacat has quit [Quit: Me dun like you no more.]
RegulationD has quit [Ping timeout: 244 seconds]
Joshes43 has left #ruby [#ruby]
freerobby has joined #ruby
chinmay_dd has joined #ruby
banister has joined #ruby
thatslifeson has joined #ruby
mjuszczak has quit []
CloCkWeRX has quit [Ping timeout: 256 seconds]
ddfreyne has joined #ruby
allcentury has quit [Ping timeout: 272 seconds]
lessless has joined #ruby
mcpierce` has left #ruby [#ruby]
freerobby has quit [Client Quit]
mcpierce has joined #ruby
banister has quit [Ping timeout: 256 seconds]
thatslifeson has quit [Ping timeout: 252 seconds]
chinmay__ has joined #ruby
gregf_ has left #ruby [#ruby]
gregf_ has joined #ruby
gregf_ has left #ruby [#ruby]
chinmay_dd has quit [Ping timeout: 245 seconds]
gregf_ has joined #ruby
holigan101 has quit [Quit: Page closed]
sgambino has joined #ruby
Dackel has quit [Ping timeout: 258 seconds]
Dackel has joined #ruby
krz has quit [Quit: WeeChat 1.0.1]
ndrei has quit [Ping timeout: 258 seconds]
banister has joined #ruby
but3k4 has joined #ruby
Papipo has quit [Remote host closed the connection]
devoldmx has joined #ruby
Papipo has joined #ruby
roshanavand has quit [Quit: Konversation terminated!]
shazaum has joined #ruby
CloCkWeRX has joined #ruby
CloCkWeRX has left #ruby [#ruby]
doodlehaus has joined #ruby
doodlehaus has quit [Remote host closed the connection]
TinkerTyper has quit [Ping timeout: 255 seconds]
devoldmx has quit [Ping timeout: 255 seconds]
aspiers has quit [Quit: WeeChat 1.1.1]
pontiki has joined #ruby
pontiki has quit [Client Quit]
ndrei has joined #ruby
TinkerTyper has joined #ruby
n80 has joined #ruby
Papierkorb has quit [Remote host closed the connection]
sankaber has joined #ruby
chinmay__ has quit [Ping timeout: 256 seconds]
lkba has joined #ruby
thatslifeson has joined #ruby
iotouch has joined #ruby
wsylvest has joined #ruby
rocknrollmarc has quit [Ping timeout: 265 seconds]
Ropeney has joined #ruby
Papipo has quit [Remote host closed the connection]
wsylvest has quit [Client Quit]
quimrstorres has quit [Remote host closed the connection]
Papipo has joined #ruby
havenwood has joined #ruby
chinmay_dd has joined #ruby
e1nh4nd3r has joined #ruby
dstarh has joined #ruby
ndrei has quit [Ping timeout: 258 seconds]
djbkd has joined #ruby
Alina-malina has quit [Ping timeout: 250 seconds]
parduse has quit []
jespada has joined #ruby
Alina-malina has joined #ruby
ArchRogem has joined #ruby
simpyll has quit [Ping timeout: 272 seconds]
djbkd has quit [Ping timeout: 258 seconds]
allcentury has joined #ruby
DaniG2k has quit [Ping timeout: 250 seconds]
jespada has quit [Ping timeout: 272 seconds]
Rapier- has joined #ruby
charliesome has joined #ruby
spider-mario has joined #ruby
Papipo has quit [Remote host closed the connection]
Papipo has joined #ruby
goodcodeguy has joined #ruby
TheNet has joined #ruby
krz has joined #ruby
roshanavand has joined #ruby
Soda has joined #ruby
JDiPierro has joined #ruby
workmad3 has joined #ruby
kotk has joined #ruby
ki0 has quit [Ping timeout: 272 seconds]
allcentury has quit [Ping timeout: 255 seconds]
qwertme has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
hewenhong has joined #ruby
Porfa has joined #ruby
d10n-work has joined #ruby
<arup_r>
where are all Ruby Pro... ?
serivich has joined #ruby
mitchellhenke has joined #ruby
chthon has joined #ruby
krz has quit [Ping timeout: 276 seconds]
bMalum has joined #ruby
Musashi007 has joined #ruby
airdisa has joined #ruby
noonius has quit [Quit: noonius]
nateberkopec has joined #ruby
ahmetkapikiran has joined #ruby
nszceta has quit [Ping timeout: 276 seconds]
<havenwood>
arup_r: Huh?
<IceDragon>
arup_r: Probably on vacation?
<arup_r>
Ahh.. One Pro I can see... now..
<arup_r>
:)
<IceDragon>
or not
freerobby has joined #ruby
nszceta has joined #ruby
iainjames88 has joined #ruby
iainjames88 has left #ruby [#ruby]
<canton7>
"I need as Ruby Pro! I'm holding out for a Ruby Pro 'til the end of the night.. He's gotta be strong and he's gotta be fast and he's gotta be fresh from the fight..."
<mwlang>
heh…I think that question also falls into the category of “Anybody have experience with Ruby?”
jerius has joined #ruby
<mwlang>
or whatever gem, library, whatnot
RegulationD has joined #ruby
diegoaguilar has quit [Remote host closed the connection]
einarj has joined #ruby
einarj_ has quit [Ping timeout: 276 seconds]
ki0 has joined #ruby
ki0 has quit [Remote host closed the connection]
TuxOtaku has joined #ruby
djellemah__ has joined #ruby
ki0 has joined #ruby
yokel has quit [Ping timeout: 252 seconds]
genpaku has quit [Ping timeout: 272 seconds]
bMalum has quit [Quit: bMalum]
<zotherstupidguy>
sevenseacat why so :(
RegulationD has quit [Ping timeout: 244 seconds]
Dackel has quit [Remote host closed the connection]
genpaku has joined #ruby
yokel has joined #ruby
djellemah has quit [Ping timeout: 240 seconds]
zzxc has joined #ruby
zzxc has joined #ruby
lkba has quit [Ping timeout: 240 seconds]
uri_ has joined #ruby
doodlehaus has joined #ruby
msmith_ has joined #ruby
codecop has quit [Remote host closed the connection]
chinmay_dd has quit []
ki0_ has joined #ruby
roshanavand has quit [Ping timeout: 272 seconds]
griffindy has joined #ruby
roshanavand has joined #ruby
mtakkman has joined #ruby
ki0 has quit [Ping timeout: 256 seconds]
ki0_ has quit [Remote host closed the connection]
ki0 has joined #ruby
DaniG2k has joined #ruby
ki0 has quit [Read error: Connection reset by peer]
ki0_ has joined #ruby
rahult has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
msmith_ has quit [Remote host closed the connection]
s_e has quit [Ping timeout: 264 seconds]
ndrei has joined #ruby
freerobby has quit [Read error: Connection reset by peer]
freerobby has joined #ruby
oo_ has quit [Remote host closed the connection]
enebo has joined #ruby
AlphaAtom has joined #ruby
allcentury has joined #ruby
bruno- has joined #ruby
noonius has joined #ruby
bruno- is now known as Guest98109
Musashi007 has quit [Quit: Musashi007]
StevenXL has quit [Quit: leaving]
paulcsmith_ has joined #ruby
quimrstorres has joined #ruby
StevenXL has joined #ruby
tkuchiki has joined #ruby
mtakkman has quit [Read error: Connection reset by peer]
charliesome has quit [Quit: zzz]
DEA7TH has joined #ruby
qwertme has joined #ruby
jespada has joined #ruby
JDiPierro has quit [Remote host closed the connection]
charliesome has joined #ruby
brahman has joined #ruby
brahman has quit [Changing host]
brahman has joined #ruby
rahult has joined #ruby
ki0 has joined #ruby
quimrstorres has quit [Ping timeout: 264 seconds]
RegulationD has joined #ruby
Porfa has quit [Quit: porfa]
<brahman>
Hi, looking to connect to Mysql using ruby. Seems that the most used library for this is tmtm's Ruby Mysql but in the rubydocs there is a mention that tmtm has deprecated this library. What is the recommended way to interface with mysql from Ruby?
mase-chatter has joined #ruby
aganov has quit [Remote host closed the connection]
quimrstorres has joined #ruby
JDiPierro has joined #ruby
ki0_ has quit [Ping timeout: 252 seconds]
einarj_ has joined #ruby
<adaedra>
You have mysql and mysal2 gems for direct access
serivich has quit [Ping timeout: 255 seconds]
<adaedra>
If you need higher level, you can look at sequel, datamapper and activerecord
serivich has joined #ruby
slash_nick has joined #ruby
einarj has quit [Ping timeout: 264 seconds]
lkba has joined #ruby
arup_r has quit [Remote host closed the connection]
<pagios>
mwlang: what i wanna do is mainly i have a program in C that does certain animations in its own window, i wanna include that in a program with some buttons underneath
nfk has joined #ruby
go|dfish has quit [Ping timeout: 264 seconds]
<pagios>
i dont want it to be independant in its own window
<gambl0re>
ok thanks...
tjohnson has joined #ruby
<mduk>
hey, does anyone here have any experience with/examples of building multipart MIME messages for use with AWS cloud-init? I'm trying to use the MIME gem to reproduce the example python script (http://cloudinit.readthedocs.org/en/latest/topics/format.html) but can't figure out how to specify the "filename" part of the Content-Disposition header. Any pointers would be greatly appriciated. :)
<mwlang>
pagios: I have no idea if shoes can do that or not.
ki0 has joined #ruby
<pagios>
mwlang: any idea how i can do that
<mwlang>
pagios: if it were just a c program getting info and reporting it back in text format, then yeah, you could control that with a shoes program, invoke the c program, gather the output and display it…but animation, I have no idea.
<pagios>
yea its more of an animation thing playing in its own window
momomomomo has quit [Ping timeout: 256 seconds]
momomomomo_ has joined #ruby
<neonrooster>
pagios: use a Unix pipe thingy
<pagios>
?
<neonrooster>
just run program | animator
<neonrooster>
or tail | animator
_blizzy_ has quit [Ping timeout: 265 seconds]
<pagios>
neonrooster: i want that output to be in a specific window in the program
<neonrooster>
pagios: oh no idea
<pagios>
say you have a window to have that anitmation in it and underneath i want to include buttons
a346 has quit [Quit: a346]
Giorgio has quit [Remote host closed the connection]
sanguisdex has quit [Ping timeout: 276 seconds]
<neonrooster>
pagios: use a thread to read progress information from another part of the program or a file and use another thread to animate
<pagios>
neonrooster: take a simple example: consider you have a ruby program having two areas (GUI) and you want to display the xcalc in a window and another program say gedit in another area (all in the same program window)
<neonrooster>
OH
jordanm has quit [Remote host closed the connection]
<neonrooster>
then use xembed to embed the program
<pagios>
xembed?
jordanm has joined #ruby
thatslifeson has quit [Remote host closed the connection]
<neonrooster>
yes, a program rendering to a window you create inside your own program
<pagios>
amazing thats what i want
<pagios>
shoes has it?
<neonrooster>
no idea, I've never coded before
ReK2 has quit [Remote host closed the connection]
That1Guy has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<neonrooster>
I wish you'd be my mentor
<neonrooster>
tell me, what can I code?
<neonrooster>
if you wanted me to code XEmbed demo
avril14th has quit [Remote host closed the connection]
lkba has quit [Ping timeout: 245 seconds]
jobewan_ has quit [Quit: leaving]
ki0 has quit [Remote host closed the connection]
That1Guy has quit [Client Quit]
<pagios>
neonrooster: can you code GTK in ruby? i didnt get it
<neonrooster>
pagios: um...I can't but you can
<neonrooster>
never did it before
<pagios>
gtk is coded in c i think or tcl?
<neonrooster>
there's a Ruby GTK binding somewhere
gaganjyot has quit [Ping timeout: 256 seconds]
Papipo has quit [Remote host closed the connection]
That1Guy has joined #ruby
<neonrooster>
yes but you can use it in Ruby
jobewan has joined #ruby
Papipo has joined #ruby
Papipo has quit [Remote host closed the connection]
<neonrooster>
if you taught me GTK in Ruby I'd be happy
idafyaid has joined #ruby
Papipo has joined #ruby
<neonrooster>
but I have to get home first
krzkrz has joined #ruby
krz has quit [Read error: Connection reset by peer]
That1Guy has quit [Client Quit]
unshadow has joined #ruby
That1Guy has joined #ruby
<mwlang>
whatever happened to _why, anyhow. I heard he up and dissappeared. Did he ever resurface?
Rollabunna has joined #ruby
chinmay_dd has joined #ruby
<Nilium>
Yes. He'd rather be left alone, last I heard.
danman has joined #ruby
poguez_ has joined #ruby
arturaz has quit [Ping timeout: 264 seconds]
ki0 has joined #ruby
neonrooster has quit [Quit: Page closed]
segfalt has joined #ruby
haroldwu has quit [Read error: Connection reset by peer]
MasterPiece has joined #ruby
<mwlang>
Nilium: heh…I wasn’t looking to go bother him. Just curious if he came back to developing in Ruby or publishing again, but it sounds like that’s a “no”
<unshadow>
This is a little bit wierd, but, is any of you on Arch-Linux and using RubyMine ?
That1Guy has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<adaedra>
well, before I take a look, does it works?
workmad3 has quit [Ping timeout: 252 seconds]
<StevenXL>
adaedra: it works, except that at the very end, it returns the <Class: Memory Location> of the Dinodex object, which I would like it not to do.
<adaedra>
Yes
<adaedra>
I see that
<adaedra>
And I already said why
wsylvest has joined #ruby
<adaedra>
mwlang too
gsd has joined #ruby
gsd has quit [Max SendQ exceeded]
<StevenXL>
adaedra: ok, so I shouldn't call puts in the Dinodex#to_s
<adaedra>
no
ahmetkapikiran has quit [Quit: ahmetkapikiran]
<adaedra>
you should return a string
That1Guy has joined #ruby
<adaedra>
but there's not too much to change
gsd has joined #ruby
mistermocha has quit [Remote host closed the connection]
<StevenXL>
adaedra: I'm sorry. I'm confused. I am replacing Dinodex#to_s with dino.to_s, which does return a string, but nothing gets outputed to the terminal.
<StevenXL>
adaedra: Let me think about this for a second.
<adaedra>
ok
bmurt has joined #ruby
jottr has quit [Ping timeout: 245 seconds]
<StevenXL>
ah - there's a puts outside the iteration that I forgot about.
<StevenXL>
and Dinodex#to_s should return a string as well, not just Dinosaur#to_s
lkba has joined #ruby
<StevenXL>
ok i see
<StevenXL>
(I think).
<adaedra>
sounds right.
Guest49_ has joined #ruby
jmignault has quit [Read error: Connection reset by peer]
gaganjyot has joined #ruby
jespada has joined #ruby
slash_nick has joined #ruby
rahult is now known as rahult_
sinkensabe has quit [Remote host closed the connection]
workmad3 has joined #ruby
That1Guy has quit [Ping timeout: 256 seconds]
konsolebox has quit [Read error: Connection reset by peer]
<StevenXL>
Which is what was originally happening.
moted has joined #ruby
momomomomo_ has quit [Quit: momomomomo_]
<adaedra>
>> ('a'..'z').to_a
<ruboto>
adaedra # => ["a", "b", "c", "d", "e", "f", "g", "h", "i", "j", "k", "l", "m", "n", "o", "p", "q", "r", "s", "t", ...check link for more (https://eval.in/358182)
quimrstorres has joined #ruby
<adaedra>
gambl0re: for your lines 15-17
<StevenXL>
I had to over-ride Dinodex#to_s to return a string representation of the data, but since the data was an array of Dinosaurs, I had over-ride Dinosaur#to_s so that I could represent the Dinosaurs in a string format as well.
gaganjyot has quit [Ping timeout: 256 seconds]
bmusson has joined #ruby
selu has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
astrobun_ has joined #ruby
<adaedra>
gambl0re: anyway, if your goal is to calculate position of a letter in the alphabet, you don't need that. just do letter.ord - 'a'.ord
<adaedra>
StevenXL: sounds ok
<StevenXL>
Another stumblin block was that I was calling puts in the to_s methods that I over-wrote. The purpose of to_s is to return a string; the original call to puts will take care of displaying to the screen
serivich has quit [Ping timeout: 258 seconds]
snockerton has joined #ruby
<adaedra>
gambl0re: your main block seems unnecessary complicated
ndrei has quit [Ping timeout: 244 seconds]
<gambl0re>
how would you do it?...i wasn't really interested in writing the most efficient code. i just wanted to get it to work.
zzxc has quit [Ping timeout: 272 seconds]
<adaedra>
gambl0re: basically, you just need String#ord and Integer#chr to get characters index.
<StevenXL>
adaedra: Thanks for the help!
joonty has quit [Quit: joonty]
<StevenXL>
You should've seen the first time I tried to solve this exercise. I didn't even use any objects. A true mess.
<gambl0re>
hmm..im not sure exactly waht you mean but i'll look into it.
ndrei has joined #ruby
powder has quit [Quit: leaving]
<waxjar>
not using any objects in ruby? now that is wizardry!
maletor has quit [Quit: Computer has gone to sleep.]
<adaedra>
actually, should not be reversible for end of alphabet, but it's a start
astrobun_ has quit [Remote host closed the connection]
<adaedra>
waxjar: OOP's not easy for everyone
a346 has quit [Quit: a346]
<StevenXL>
waxjar: heheh wizardry indeed!
<allcentury>
any Mongoid users here?
<adaedra>
sigh.
<StevenXL>
waxjar: I should pull that out. Lol.
<adaedra>
Ask your question, if someone can answer, he will, allcentury
baroquebobcat has joined #ruby
dfinninger has quit [Remote host closed the connection]
baroquebobcat has quit [Remote host closed the connection]
rehat has joined #ruby
baroquebobcat has joined #ruby
<allcentury>
In mongoid, I'm seeing eager loading happening on occasion in production but cannot reproduce it locally. Basically, a model, say User -- has_many :addresses, :whatever; There are 15 associations, on some queries I'm seeing all 15 associations get executed only for a "find". I have zero clue how that's possible -- identity map is off and the query that seems to trigger it is User.find('some_id')
<allcentury>
baffled.
SouL_|_ has joined #ruby
rbennacer has quit [Remote host closed the connection]
<waxjar>
btw, String#tr is good for a simple ceasar cipher
mary5030_ has quit [Remote host closed the connection]
hmsimha is now known as Guest36441
ixti has joined #ruby
zzxc has joined #ruby
Porfa_ has joined #ruby
mary5030 has quit [Ping timeout: 255 seconds]
rbennacer has joined #ruby
mary5030 has joined #ruby
<adaedra>
waxjar: yeah, but if it's implementing the algorithm that is the goal here, that's a bit too much condensed, although perfectly correct
startupality has quit [Read error: Connection reset by peer]
dfinninger has joined #ruby
jonatin has joined #ruby
konsolebox has joined #ruby
konsolebox has quit [Read error: Connection reset by peer]
Porfa has quit [Ping timeout: 252 seconds]
Porfa_ is now known as Porfa
startupality has joined #ruby
nullset68 has joined #ruby
umgrosscol has joined #ruby
<gambl0re>
i could have done x = ("a".."z").to_a
zzxc has quit [Ping timeout: 246 seconds]
ebbflowgo has joined #ruby
jamo___ has joined #ruby
zzxc has joined #ruby
zzxc has quit [Changing host]
zzxc has joined #ruby
granthatcher has quit []
sohrab has joined #ruby
alex88 has quit []
jamo___ has quit [Client Quit]
granthatcher has joined #ruby
granthatcher has quit [Client Quit]
RegulationD has quit []
shredding has joined #ruby
scripore has quit [Quit: This computer has gone to sleep]
GaryOak_ has joined #ruby
parduse has quit []
mistermocha has joined #ruby
RegulationD has joined #ruby
jobewan has joined #ruby
bb010g has quit [Quit: Connection closed for inactivity]
maletor has joined #ruby
parduse has joined #ruby
Rickmasta has joined #ruby
dawkirst has joined #ruby
a346 has joined #ruby
krzkrz has joined #ruby
<Senjai>
Hello ruby
<GaryOak_>
Hello Senjai
momomomomo has joined #ruby
<Senjai>
Are modules that just have random methods (that dont get included by anything, but are called directly) acceptable? Even if their logic is central to only one model?
<pagios>
is there any good ruby binding for QT?
shuber_ has joined #ruby
iamninja has quit [Ping timeout: 264 seconds]
x1337807x has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<waxjar>
sure Senjai, although it's better to be general
ndrei has quit [Ping timeout: 240 seconds]
chthon has quit [Quit: Ex-Chat]
chenillen has joined #ruby
ndrei has joined #ruby
startupality has quit [Quit: startupality]
scripore has joined #ruby
shuber_ has quit [Ping timeout: 276 seconds]
woodruffw has quit [Quit: And then he took off.]
crazydiamond has quit [Remote host closed the connection]
lessless has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
mikecmpbll has quit [Ping timeout: 258 seconds]
airdisa has quit []
startupality has joined #ruby
endash has joined #ruby
thatego has joined #ruby
michaeldeol has joined #ruby
<BLuEGoD>
I have a conceptual question related to http long polling and ruby. I'm using Goliath and a Grape API with PosgreSQL. I want to hold the client's HTTP request until there is data in the DB. If I get this right, is it the case of using EventMachine with a timer (say 1 second) that queries the DB every second and only sends a response back when there is data?
scripore has quit [Client Quit]
dawkirst has quit [Quit: Leaving...]
sdothum has quit [Quit: ZNC - 1.6.0 - http://znc.in]
startupality has quit [Client Quit]
startupality has joined #ruby
sdothum has joined #ruby
jottr has joined #ruby
Kricir has joined #ruby
<GaryOak_>
BLuEGoD: You can use a trigger in Postgresql to callback when the data gets added
scripore has joined #ruby
noonius has quit [Quit: noonius]
<GaryOak_>
In Postgres it's called Notify/Listen
Sou|cutter has joined #ruby
qwertme has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
JimmyNeutron has quit [Remote host closed the connection]
<BLuEGoD>
GaryOak_: Ah, awesome. That makes sense. So is it what I have to something like pause with EventMachine until I get the notify callback from psql ?
qwertme has joined #ruby
chenillen has quit [Quit: chenillen]
roshanavand has quit [Quit: Konversation terminated!]
baweaver has joined #ruby
<GaryOak_>
Well the listen call will block the thread until the notify comes back or it times out
a346 has quit [Quit: a346]
momomomomo has quit [Ping timeout: 250 seconds]
gsd has quit [Read error: Connection reset by peer]
<BLuEGoD>
ahh got you. I have another question, but not enterily related. I'm considering using Redis instead, however the query will need to get a 'top' list of stuff ordered by timestamp. That looks more SQLish for me, but do you think is it possible / worth to use Redis for that?
gsd has joined #ruby
MatthewsFace has joined #ruby
<GaryOak_>
BLuEGoD: yeah that's more of a SQL thing if you want to order data by timestamp, Redis is mostly just for Key value storage
lkba has quit [Ping timeout: 246 seconds]
lavros has quit [Quit: leaving]
<BLuEGoD>
yeah, I assumed so
<BLuEGoD>
thanks GaryOak_ :)
dvlwrk has joined #ruby
nullset68 has quit [Quit: WeeChat 0.4.2]
nullset68 has joined #ruby
n008f4g_ has joined #ruby
ghostmoth has joined #ruby
rbennacer has quit [Remote host closed the connection]
baweaver has quit [Remote host closed the connection]
<allcentury>
coveralls includes test coverage for the tests themselves -- anyway to turn that off?
Guest1421 has quit [Ping timeout: 258 seconds]
snockerton has quit [Quit: Leaving.]
snockerton has joined #ruby
Rollabunna has quit [Remote host closed the connection]
konsolebox has joined #ruby
qwertme has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
konsolebox has quit [Read error: Connection reset by peer]
RegulationD has quit [Remote host closed the connection]
<mwlang>
what’s the difference between spawning on mac vs linux? By spawning on mac (where I was developing), I was able to process in parallel and utilize all cores of the CPU…but on linux, all processing is occurring under one CPU core. (MRI Ruby 2.1.5)
Rollabunna has joined #ruby
bmusson has quit [Quit: WeeChat 1.1]
<eam>
mwlang: what do you mean spawning?
mahlon_ has quit [Ping timeout: 246 seconds]
<mwlang>
eam: Kernel#spawn
yqt has joined #ruby
jobewan has quit [Quit: leaving]
ghr has quit [Ping timeout: 255 seconds]
<havenwood>
mwlang: Does the linux box only have one core?
mahlon_ has joined #ruby
<eam>
mwlang: should just be fork
spider-mario has quit [Read error: Connection reset by peer]
<mwlang>
havenwood: it has 4
<havenwood>
mwlang: Have an example of the code you're running?
<mwlang>
eam: I thought #fork makes sub-processes
<eam>
so does spawn
<mwlang>
havenwood: yeah, putting the gist together momentarily.
RegulationD has joined #ruby
spider-mario has joined #ruby
<eam>
mwlang: specifically, I suspect spawn is a vfork
scripore has quit [Quit: This computer has gone to sleep]
shredding has quit [Remote host closed the connection]
einarj has joined #ruby
RegulationD has quit [Remote host closed the connection]
CustosLimen has quit [Ping timeout: 246 seconds]
<mwlang>
eam: ok, let me look up vfork to learn more…I was under the impression reading the #spawn documentation that it was firing stuff off to it’s own processes rather than belonging under the parent process that was the current ruby script.
<eam>
mwlang: you don't want to use detach there, it's not doing what you think
<eam>
detach operates on the current process
<mwlang>
and on macs, that seemed to confirm it as the Parent PID was different than the PID of the script that spawned it.
<eam>
mwlang: all processes belong to the parent
juanpaucar has quit [Remote host closed the connection]
<eam>
fork() makes an exact copy of the current process into a new process, with the only difference being the returned value of fork()
<eam>
often, the child then calls execve() to become a new program
jobewan has joined #ruby
<eam>
vfork() is an optimization on the fork/exec combo which doesn't make a new copy of the process before calling exec
<mwlang>
eam: so fork would be a better option?
sohrab has quit [Ping timeout: 272 seconds]
<eam>
at this level you almost certainly don't care
wallerdev has joined #ruby
<eam>
it's absolutely certain that the sub processes are distinct processes able to be scheduled independently
allcentury has quit [Ping timeout: 256 seconds]
<mwlang>
eam: “at this level” meaning “ruby” or “system”? or what?
Guest98109 has quit [Ping timeout: 276 seconds]
momomomomo has joined #ruby
<eam>
mwlang: vfork() exists to optimize for high cost of copying a large process
<eam>
if you don't need to worry about avoiding that cost, you don't care
<eam>
most people don't
<mwlang>
eam: yeah, I don’t care about that setup cost.
<eam>
mwlang: imagine ruby -e'fork' # really fast
<mwlang>
I just need to get things onto all the cores
hoovsan has quit []
<eam>
ruby -e'allocate(100 gigs); fork'# this is going to be really slow
<mwlang>
because one core cannot max out the linux server nor the dbms.
wallerdev has quit [Client Quit]
bricker has joined #ruby
<eam>
yeah, you are certainly doing that with your code, maybe here's a better question: how are you measuring?
jobewan has quit [Client Quit]
einarj has quit [Ping timeout: 245 seconds]
wallerdev has joined #ruby
<mwlang>
eam: the processes I’m kicking off are going to be running for hours, so whether it takes 30 secs or 5 minutes to kick off is a non-issue.
mikecmpbll has joined #ruby
<eam>
right
<eam>
how have you determined that linux is only using one core?
<mwlang>
eam: running top and pressing “1”
<mwlang>
1 core busy, 3 sitting at 0.0%
<eam>
using ps, how many rake jobs do you see running?
hoov has joined #ruby
<mwlang>
eam: I see four at a time
a346 has joined #ruby
<mwlang>
I can take out the limit on the cores and just spawn ‘em all.
zzxc has quit [Ping timeout: 244 seconds]
<eam>
well, it's odd that they're all on one core, if they're contending for cpu there's no reason they shouldn't be scheduled across other cores
Spami has quit [Quit: This computer has gone to sleep]
jobewan has joined #ruby
<eam>
mwlang: what does taskset -p $pid say, for each of those workers?
<mwlang>
eam: I may be having other issues, though…that one cpu core never goes above 10%
<eam>
you may not be cpu bound at all
<mwlang>
eam: you may be right….let me dig further into why the one core isn’t getting maxed.
bricker has quit [Quit: leaving]
pdoherty has quit [Ping timeout: 276 seconds]
orionstein is now known as orionstein_away
momomomomo_ has joined #ruby
allcentury has joined #ruby
<mwlang>
eam what does this mean? pid 50212's current affinity mask: 5
<eam>
aha
<eam>
unexpected result, but I had a hunch
momomomomo has quit [Ping timeout: 244 seconds]
momomomomo_ is now known as momomomomo
<eam>
it's a mask of which CPUs a process is permitted to execute on
spider-mario has quit [Read error: Connection reset by peer]
<eam>
all bits set (ffff) means all processors
<eam>
so somewhere you've got something that's setting a mask and restricting you
icarus has joined #ruby
rbennacer has joined #ruby
juanpaucar has joined #ruby
<mwlang>
eam: hmmm…and what does this one mean? pid 50339's current affinity mask: f
<eam>
to two processors, #1 and #4
<eam>
mwlang: f should be any processor
<eam>
or, any of the first 16
<eam>
assuming you don't have >16 processors
<mwlang>
eam: ok, that all makes sense.
huddy has quit [Quit: Connection closed for inactivity]
<eam>
mwlang: it's an inherited trait, so if something sets that initially, sub-processes get it
<mwlang>
eam: yeah.
zzxc has joined #ruby
<eam>
maybe you're operating in an environment where someone has limited your jobs to particular cores?
Neutrino9 has joined #ruby
<mwlang>
eam: I’m thinking its stemming from the fact that the Linux server is virtualized.
Hijiri has quit [Quit: WeeChat 1.0.1]
<eam>
possibly, depending on what your host is doing
jobewan has quit [Quit: leaving]
jobewan has joined #ruby
<mwlang>
eam: is there a way to tell if the processes are definitely throttled?
spider-mario has joined #ruby
<eam>
well, the affinity mask will certainly prevent it from running on all cores
nullset68 has quit [Quit: WeeChat 0.4.2]
leafybas_ has joined #ruby
yqt has quit [Ping timeout: 252 seconds]
Oka has quit [Quit: さようなら]
bruno- has joined #ruby
jespada has joined #ruby
startupality has quit [Quit: startupality]
Neutrino9 has left #ruby [#ruby]
mtakkman has joined #ruby
ping-pong has quit [Ping timeout: 252 seconds]
ghostmoth has quit [Quit: ghostmoth]
leafybasil has quit [Ping timeout: 256 seconds]
ebonics has joined #ruby
malcolmva has quit [Ping timeout: 245 seconds]
j_mcnally has joined #ruby
alexherbo2 has joined #ruby
ghr has joined #ruby
Spami has joined #ruby
scripore has joined #ruby
werelivinginthef has quit [Remote host closed the connection]
<ruboto>
toretore # => /tmp/execpad-0087f6fae913/source-0087f6fae913:2: Can't assign to nil ...check link for more (https://eval.in/358368)
juanpaucar has joined #ruby
<toretore>
>> nil + 1
<ruboto>
toretore # => undefined method `+' for nil:NilClass (NoMethodError) ...check link for more (https://eval.in/358369)
karpuragauram has joined #ruby
quimrstorres has quit [Remote host closed the connection]
lidenskap has joined #ruby
dumdedum has quit [Quit: foo]
soulcake has quit [Quit: Quack.]
rgb-one has joined #ruby
qwertme has joined #ruby
soulcake has joined #ruby
The_Phoenix has quit [Read error: Connection reset by peer]
vivekananda has quit [Ping timeout: 244 seconds]
djbkd has joined #ruby
russt has quit [Read error: Connection reset by peer]
juanpaucar has quit [Ping timeout: 264 seconds]
asmodlol has quit [Ping timeout: 246 seconds]
nricciar has quit [Ping timeout: 256 seconds]
<gambl0re>
is it because the count hash is empty?
<gambl0re>
it has no key to add anything to?
jobewan has quit [Quit: leaving]
ghr has quit [Ping timeout: 264 seconds]
asmodlol has joined #ruby
ping-pong has joined #ruby
slash_nick has quit [Ping timeout: 252 seconds]
malcolmva has joined #ruby
jobewan has joined #ruby
doodlehaus has quit [Ping timeout: 265 seconds]
wldcordeiro_ has joined #ruby
QKO has quit [Remote host closed the connection]
wottam has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
jobewan has quit [Client Quit]
nricciar has joined #ruby
hackeron has quit [Ping timeout: 245 seconds]
QKO has joined #ruby
hackeron has joined #ruby
mtakkman has quit [Read error: Connection reset by peer]
giuseppesolinas has joined #ruby
Igorshp has quit [Remote host closed the connection]
<mwlang>
eam: I think a couple times processes were ending as I was running taskset…because with this: for i in $(ps -ae | grep seti | awk '{print $1}'); do taskset -p $i; done I am consistently seeing the affinity mask at “f” so it’s assignable to any of the CPUs
wottam has joined #ruby
nobitanobi has quit [Remote host closed the connection]
jobewan has joined #ruby
paulcsmith has joined #ruby
QKO has quit [Changing host]
QKO has joined #ruby
bMalum has joined #ruby
RegulationD has joined #ruby
<eam>
mwlang: that's more what I'd expect
pagios has left #ruby ["Leaving"]
wottam has quit [Client Quit]
momomomomo_ has joined #ruby
<mwlang>
eam: fired off an email to the server admins to see what they may’ve configured to by way of throttling the cpus.
tcrypt has joined #ruby
momomomomo has quit [Ping timeout: 255 seconds]
momomomomo_ is now known as momomomomo
n80 has quit [Quit: n80]
_seanc_ has quit [Quit: _seanc_]
sudog has quit [Ping timeout: 256 seconds]
scripore has quit [Quit: This computer has gone to sleep]
asmodlol has quit [Ping timeout: 240 seconds]
irccat4s2 has joined #ruby
wolfleemeta has joined #ruby
irccat4s2 has quit [Remote host closed the connection]
irccat4s2 has joined #ruby
Igorshp has joined #ruby
dru has joined #ruby
Igorshp has quit [Remote host closed the connection]
asmodlol has joined #ruby
irccat4s2 has quit [Remote host closed the connection]
braincrash has quit [Read error: Connection reset by peer]
sudog has joined #ruby
ki0 has joined #ruby
chipotle has quit [Quit: cheerio]
mclosson has joined #ruby
_seanc_ has joined #ruby
lele is now known as Guest24
itouchthings has joined #ruby
itouchthings has quit [Remote host closed the connection]
dfinninger has quit [Remote host closed the connection]
marr has quit [Ping timeout: 246 seconds]
braincrash has joined #ruby
edwinvdg_ has quit [Ping timeout: 256 seconds]
Guest1421 has joined #ruby
thatslifeson has quit [Remote host closed the connection]
dfinninger has joined #ruby
sohrab has joined #ruby
einarj has joined #ruby
msgodf has quit [Ping timeout: 264 seconds]
Hijiri has joined #ruby
inspiron has joined #ruby
mistermocha has quit [Read error: Connection reset by peer]
mistermocha has joined #ruby
djellemah__ has quit [Ping timeout: 256 seconds]
ramfjord has joined #ruby
Guest1421 has quit [Ping timeout: 272 seconds]
einarj has quit [Ping timeout: 264 seconds]
devoldmx has quit [Read error: Connection reset by peer]
devoldmx has joined #ruby
<inspiron>
hi, i'm trying to install a specific version of a gem. when i do so (sudo gem install librarian-puppet-maestrodev -v 0.9.10.1) I get "ERROR: While executing gem.. (Gem::Package::FormatError) No Metadata found! So I tried downloading the gem file here: https://rubygems.org/gems/librarian-puppet-maestrodev/versions/0.9.10.1 and ran: sudo gem install --local librarian-puppet-maestrodev-0.9.10.1.gem and I get "ERROR: could not find
<inspiron>
a valid gem 'librarian-puppet-maestrodev-0.9.10.1.gem' (>= 0) in any repository
x1337807x has joined #ruby
Porfa has quit [Ping timeout: 240 seconds]
x1337807x has quit [Max SendQ exceeded]
snockerton has quit [Quit: Leaving.]
snockerton has joined #ruby
x1337807x has joined #ruby
danman has quit [Quit: danman]
Guest15454 has quit [Ping timeout: 258 seconds]
leafybas_ has quit [Read error: Connection reset by peer]
failshell has quit [Remote host closed the connection]
kirun has joined #ruby
<pipework>
inspiron: Do you not care that it's deprecated in favor of another gem?
<inspiron>
unfortunatley it has to be this version because the customer has many other puppet scripts, etc... build around these old versions :(
Guest1421 has joined #ruby
sinkensabe has quit [Remote host closed the connection]
jespada has quit [Ping timeout: 256 seconds]
<treehug88>
I'm using activerecord with the activerecord:Timestamps, which generates the created_at and updated_at times in the ruby code. Is there a (reasonable) way I can have the created_at and updated_at times automatically set to the time the surrounding transaction was committed? I know I could update the rows after the fact with the time it was committed, but can I have ActiveRecord do this automatically?
doodlehaus has joined #ruby
jespada_ has joined #ruby
rippa has joined #ruby
hippyphysicist has joined #ruby
davidcollom has quit [Quit: Connection closed for inactivity]
_seanc_ has quit [Quit: _seanc_]
hippyphysicist has quit [Read error: Connection reset by peer]
sinkensabe has joined #ruby
baweaver has quit [Remote host closed the connection]
_blizzy_ has joined #ruby
rdark has quit [Quit: leaving]
diegoviola has joined #ruby
noonius has joined #ruby
sinkensabe has quit [Remote host closed the connection]
paulcsmith has quit [Quit: Be back later ...]
Mohan_ has joined #ruby
QKO has quit [Remote host closed the connection]
<treehug88>
I'm using ActiveRecord with ActiveRecord::Timestamp, which generates the created_at and updated_at times in the ruby code. Is there a (reasonable) way I can have the created_at and updated_at times automatically set to the time the surrounding transaction was committed? I know I could update the rows after the fact with the time it was committed, but can I have ActiveRecord do this automatically? (crossposted from #ruby,
<treehug88>
apologies:)
<treehug88>
oops
baweaver has joined #ruby
noonius has quit [Client Quit]
x1337807x has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
jespada_ has quit [Ping timeout: 264 seconds]
x1337807x has joined #ruby
r0bby_ has joined #ruby
gsd has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
j_mcnally has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
dru has left #ruby [#ruby]
x1337807x has quit [Ping timeout: 265 seconds]
Raverix has left #ruby [#ruby]
_blizzy_ has quit [Ping timeout: 256 seconds]
druuu has joined #ruby
<druuu>
Is there a way to get the source of a method as a string (or something else I can pass into define_method) without having to go through source_location and i/o?
TinkerTyper has quit [Ping timeout: 258 seconds]
Mohan_ has quit [Ping timeout: 256 seconds]
TinkerTyper has joined #ruby
gsd has joined #ruby
A205B064 has joined #ruby
russt_ has joined #ruby
tuelz has quit [Ping timeout: 256 seconds]
blizzy has left #ruby [#ruby]
iamninja has joined #ruby
lidenska_ has quit [Remote host closed the connection]
shuber_ has quit [Remote host closed the connection]
mistermocha has quit [Ping timeout: 244 seconds]
sinkensabe has quit [Remote host closed the connection]
mistermocha has joined #ruby
scripore has joined #ruby
tjbiddle has quit [Quit: tjbiddle]
rippa has joined #ruby
<mwlang>
MSSQL server 2005 rocks….*not* :-/
<shevy>
hmmm a question
<shevy>
suppose I have two strings; x = 'abc//def' and y = 'abc/def'
<xxneolithicxx>
i almost spit my juice at my monitor reading the first half of that mwlang
<shevy>
I dislike the two '/' and wish to get rid of it, so I use .squeeze '/'
sinkensabe has joined #ruby
lidenskap has joined #ruby
<mwlang>
I have no idea how to optimize this beast when CPU, network I/O, query activity are all largely idle.
enebo has joined #ruby
<shevy>
Now here is my question: should I first make a manual check, like: if x.include? '//' or should I directly proceed to just invoke .squeeze!('/') without any check? which one would be faster?
<adaedra>
xxneolithicxx: Windows ME rocks... at being a failure.
<mwlang>
xxneolithicxx: :-)
Encapsulation has left #ruby ["Leaving"]
<mwlang>
about all I can tell is that it has hogged 99% of the RAM and most of the time is actually killed by the OS doing page swaps ad infintum.
<GaryOak_>
shevy: this is ruby, which one looks nicer
<shevy>
GaryOak_ the one without .include?
einarj has joined #ruby
<shevy>
because it is shorter :)
<shevy>
and less to read for the human eye
<xxneolithicxx>
i say just invoke it, its going to iterate over the string regardless, so your check is adding code thats not easier to read
scripore has quit [Client Quit]
<GaryOak_>
.squeeze probably has some way to check if the value is in the string anyway, so you would probably be doing the work twice
<shevy>
yeah that kind of makes sense
jackjackdripper has quit [Quit: Leaving.]
<shevy>
you two are very wise old men
Papipo has quit [Remote host closed the connection]
Papipo has joined #ruby
Pisuke has joined #ruby
Matthews_ has joined #ruby
e1nh4nd3r has quit [Quit: Leaving.]
Mohan_ has joined #ruby
mjuszczak has joined #ruby
sinkensabe has quit [Remote host closed the connection]
Dreamer3_ has quit [Quit: Computer has gone to sleep.]
<GaryOak_>
that's really useful if you want to check if something is out of the bounds of an array
Dreamer3 has joined #ruby
Dreamer3 has quit [Client Quit]
thatslifeson has joined #ruby
sinkensabe has quit [Remote host closed the connection]
Hijiri has joined #ruby
qwertme has joined #ruby
griffindy has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
sinkensabe has joined #ruby
jackjackdripper has quit [Quit: Leaving.]
bmurt has quit []
BLuEGoD has joined #ruby
Papierkorb has joined #ruby
BLuEGoD has quit [Client Quit]
jackjackdripper has joined #ruby
JDiPierro has quit [Remote host closed the connection]
lfox has joined #ruby
lfox has quit [Max SendQ exceeded]
<pipework>
GaryOak_: What? Why not just get #size?
juanpaucar has joined #ruby
<pipework>
#fetch is great for doing things when the object doesn't exist at the provided index.
lidenska_ has quit [Ping timeout: 240 seconds]
<GaryOak_>
I don't know \o/
tuelz has joined #ruby
infinitone has quit [Remote host closed the connection]
BLuEGoD has joined #ruby
lidenskap has joined #ruby
sinkensabe has quit [Remote host closed the connection]
iasoon has joined #ruby
juanpaucar has quit [Ping timeout: 272 seconds]
startupality has quit [Quit: startupality]
shazaum has quit [Quit: Leaving]
crazydiamond has joined #ruby
rehat has quit [Ping timeout: 258 seconds]
armyriad has quit [Ping timeout: 272 seconds]
armyriad has joined #ruby
startupality has joined #ruby
ejnahc has quit [Ping timeout: 264 seconds]
Soda has joined #ruby
ejnahc has joined #ruby
rbennacer has quit [Ping timeout: 250 seconds]
Narzew has joined #ruby
blaines has joined #ruby
zzxc has quit [Ping timeout: 246 seconds]
baroquebobcat has quit [Read error: Connection reset by peer]
momomomomo has quit [Quit: momomomomo]
Papierkorb has quit [Quit: ArchLinux completes an endless loop faster than any other distro!]
Rickmasta has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
asmodlol has quit [Ping timeout: 264 seconds]
baroquebobcat has joined #ruby
duncannz has joined #ruby
<xxneolithicxx>
ok i finished my Python deep dive on packaging now i need to package up my ruby stuffs. Any good recommended guides besides rubygems.org docs?
Papierkorb has joined #ruby
shuber_ has joined #ruby
mhib has quit [Remote host closed the connection]
momomomomo has joined #ruby
asmodlol has joined #ruby
iasoon has quit [Ping timeout: 265 seconds]
ldnunes has quit [Quit: Leaving]
sinkensabe has joined #ruby
Narzew has quit [Quit: Leaving]
goodcodeguy has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
iasoon has joined #ruby
baroquebobcat_ has joined #ruby
duderonomy has joined #ruby
shuber_ has quit [Ping timeout: 256 seconds]
ghr has joined #ruby
baroquebobcat has quit [Ping timeout: 264 seconds]
baroquebobcat_ is now known as baroquebobcat
chipotle has quit [Quit: cheerio]
slash_nick has quit [Ping timeout: 264 seconds]
Brando753 has quit [Ping timeout: 265 seconds]
sinkensabe has quit [Remote host closed the connection]
<shevy>
they are all awful
<shevy>
one useful thing is this here xxneolithicxx
<shevy>
s.post_install_message
deric_skibotn has quit [Ping timeout: 276 seconds]
mjuszczak has quit []
<shevy>
when someone installs your gem, you can add some lines of helpful info to the user
Musashi007 has joined #ruby
juanpablo_ has joined #ruby
jriese has quit [Quit: welp]
<juanpablo_>
Does anyone know what the abbreviation strptime stands for? I know what the method does, but not what its name means
jriese has joined #ruby
phutchins has joined #ruby
baweaver has quit [Remote host closed the connection]
doodlehaus has quit [Remote host closed the connection]
<GaryOak_>
string parse time, I would guess
momomomomo has quit [Quit: momomomomo]
<weaksauce>
yeah string parse time
seitensei has quit [Ping timeout: 252 seconds]
werelivinginthef has quit [Remote host closed the connection]
<zotherstupidguy>
Radar i was going through some trouble with irc and i wanted to ask you about ur old irc project summer
<zotherstupidguy>
Radar now i know that i can chat in IRC via telnet and netcat :) i am one step away from my original goal but too sleepy to see it through
mjuszcza_ has quit [Read error: Connection reset by peer]
asmodlol has quit [Ping timeout: 246 seconds]
last_staff has quit [Quit: last_staff]
pkrnj has joined #ruby
ProLoser has joined #ruby
<ProLoser>
hallo
<ProLoser>
i have a recursive appearing endpoint and no idea how to debug what's going on
<ProLoser>
how do you guys inspect in ruby?
Rickmasta has joined #ruby
<ProLoser>
i'm a noob (js / frontend dev)
pengin has joined #ruby
<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
mary5030 has quit [Ping timeout: 255 seconds]
<adaedra>
ProLoser: look at that ^
<ProLoser>
how would i use it alongside rails?
<adaedra>
You're in rails?
<ProLoser>
yeah
<ProLoser>
i have an endpoint taking 4 minutes
<ProLoser>
and it looks like it's querying the same data over and over
<hololeap>
ProLoser: just add `gem 'pry'` to your Gemfile
mitchellhenke has quit [Quit: Computer has gone to sleep.]
asmodlol has joined #ruby
<hololeap>
ProLoser: sorry about the weird backticks, i'm used to putting code in them
zzing has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<ProLoser>
we all use github, it's fine
Sawbones has quit [Remote host closed the connection]
<ProLoser>
so i can't just run pry in a separate process after rails is run? or something?
<adaedra>
Use `rails console`
<adaedra>
But that would just help you test objects
<ProLoser>
okay so i added pry to my gemfile in dev only
<adaedra>
For performance issues, I remember that rails has some tools to test that
<ProLoser>
and now how do i like pause an execution thread?
<adaedra>
Use binding.pry
<adaedra>
At the place you want to drop to a console
<adaedra>
I recommand adding pry-byebug too to have debugging tools (step-by-step, ...)
qwertme has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
einarj has quit [Ping timeout: 250 seconds]
Deele has quit [Ping timeout: 256 seconds]
Rollabunna has quit [Ping timeout: 244 seconds]
lidenskap has quit [Remote host closed the connection]
_cake has joined #ruby
pietr0 has quit [Ping timeout: 245 seconds]
duncannz has quit [Ping timeout: 245 seconds]
momomomomo has joined #ruby
baweaver has quit [Remote host closed the connection]
qwertme has joined #ruby
momomomomo has quit [Client Quit]
Sawbones has joined #ruby
airdisa has quit []
riotjones has joined #ruby
failshell has joined #ruby
centrx has joined #ruby
mclosson has quit [Ping timeout: 264 seconds]
failshell has quit [Remote host closed the connection]
enebo has quit [Quit: enebo]
EllisTAA has joined #ruby
riotjone_ has quit [Ping timeout: 252 seconds]
danman has joined #ruby
MasterPiece has quit [Remote host closed the connection]
<EllisTAA>
is there a text editor that goes horizontal instead of vertical?
snockerton has quit [Quit: Leaving.]
Azure has quit [Read error: Connection reset by peer]
<shevy>
huh
<shevy>
turn the monitor sideways
<mwlang>
EllisTAA: Microsoft Excel
orionstein is now known as orionstein_away
Azure has joined #ruby
bogdanteleaga has quit [Ping timeout: 264 seconds]
vickleton has joined #ruby
duncannz has joined #ruby
doodlehaus has joined #ruby
deric_skibotn has joined #ruby
BLuEGoD has joined #ruby
slash_nick has quit [Ping timeout: 250 seconds]
<weaksauce>
what does that even mean EllisTAA
doodlehaus has quit [Remote host closed the connection]
jenrzzz_ has quit [Ping timeout: 272 seconds]
bogdanteleaga has joined #ruby
<EllisTAA>
weaksauce: let’s say you write a method and then you are going to start writing a new method. instead of that new method appearing below the first, it would appear to the right, so instead of scrolling up and down to read a document you would scroll right to left. i bet it would increase comprehension at least for me in reagards to understanding source code.
SouL_|_ has quit [Ping timeout: 272 seconds]
<weaksauce>
vim has splits.
reinaldob has quit [Remote host closed the connection]
<weaksauce>
you can open up the same file in more than one split and navigate how ever you want
reinaldo_ has joined #ruby
<EllisTAA>
what does the split do?
reinaldo_ has quit [Remote host closed the connection]
<EllisTAA>
open two tabs?
doodlehaus has joined #ruby
duncannz has quit [Read error: Connection reset by peer]
<adaedra>
open two panes, side-by-side
<adaedra>
they can have the same document, at different places
<EllisTAA>
gotcha
<adaedra>
closest to what you're asking, I guess
<EllisTAA>
i guess i could test it out by copying code to a piece of paper and having someone read it
<adaedra>
if you're trying to compare two bits of code at the eye, using splits are a good way
<adaedra>
lot of editors offer that, actually
<EllisTAA>
how do y’all find cool open source projects to contribute to?
<adaedra>
GitHub
lidenskap has joined #ruby
tus has joined #ruby
<shevy>
EllisTAA usually I only would tend to contribute to projects that have a certain structure, and are useful to me
Papipo has quit [Remote host closed the connection]
<weaksauce>
prawn is pretty decent for pdfs
j_mcnally has joined #ruby
<shevy>
yeah
<weaksauce>
some layout stuff can be a bit stunted though
jenrzzz has joined #ruby
Papipo has joined #ruby
<EllisTAA>
:)
fantazo has quit [Quit: Verlassend]
<EllisTAA>
thanks for sharing that
lidenskap has joined #ruby
icebourg has quit []
<adaedra>
'night
roolo_ has quit [Remote host closed the connection]
shosti has joined #ruby
mjuszczak has quit []
startupality has quit [Quit: startupality]
<shevy>
well, I try to use the pdf generation part usually as simple as possible
workmad3 has quit [Ping timeout: 276 seconds]
<shevy>
like to generate a manual for a larger ruby gem, as .pdf too
<shevy>
I tend to mess up when it comes to design
<centrx>
Poll: Should I start using Google Calendar?
<shevy>
it works great on my screen!
<shevy>
centrx do not give in to google!
doodlehaus has quit [Remote host closed the connection]
<centrx>
But they already have all my financial and medical information. What could possibly go wrong?
mjuszczak has joined #ruby
<shevy>
I actually note down appointments etc... in yaml files, and let ruby tell me what happens next
j_mcnally has quit [Read error: Connection reset by peer]
fakam has joined #ruby
<shevy>
others profit from your information
<shevy>
do you profit as well?
<centrx>
Their #1 principle is Don't Be Evil
<centrx>
QED
baweaver has joined #ruby
<shevy>
they abandoned that several years ago
<shevy>
once they got big enough
<adaedra>
centrx: it depends, what are the alternatives?
<shevy>
they pulled down the mask
<centrx>
oh, what does it say now?
<shevy>
<adaedra> 'night <--- HEY!
<centrx>
The main alternative is continuing to keep it all in my head
<shevy>
centrx The World belongs to US
<adaedra>
shevy: IRC won't let me go :(
<centrx>
'Murica?
<shevy>
or perhaps "Resistance is futile." but I think they'd stolen that
fakam has quit [Client Quit]
<mwlang>
how do I match on this N'Bloomsbury Publishing Plc' and turn into %s? “N'Bloomsbury Publishing Plc’”.gsub(/N\’.^[\’]+’/,’%s’) is my attempt thus-far.
<centrx>
huh/
<shevy>
you want to capture "N'Bloomsbury Publishing Plc'" precisely?
<mwlang>
basically, I’m trying to say, “capture everything between the single quotes, including the single quote and the preceding “N”
<adaedra>
mwlang: why are you quotes different in ruby sample?
<shevy>
aha so between
<shevy>
wait what
<weaksauce>
shevy I had some problems with trying to make a 3 column layout that could span multiple pages
<shevy>
"capture everything between the single quotes, including the single quote"
<shevy>
so what now
<shevy>
capture everything BETWEEN
<weaksauce>
or actually just a 2 column layout
<shevy>
or capture everything starting AT the '
<adaedra>
should'nt your ^ be in []? so [^\']+ ?
danman has quit [Quit: danman]
<mwlang>
I’m basically turning literal strings in a SQL statement into %s => “SELECT TOP (1) [ID] FROM [MARKET_ASSIGNMENTS] WITH (NOLOCK) WHERE (([MARKET_CODE] = N'US') AND ([ITEM_ID] = 9781448201471) AND ([SUPPLIER_NAME] = N'Bloomsbury Publishing Plc’))”” => SELECT TOP (1) [ID] FROM [MARKET_ASSIGNMENTS] WITH (NOLOCK) WHERE (([MARKET_CODE] = %s) AND ([ITEM_ID] = 9781448201471) AND ([SUPPLIER_NAME] = %s))"
<shevy>
adaedra I think he uses some special encoding
<shevy>
argh
<shevy>
my eyes were blinded by SQL injection
<mwlang>
shevy: :-)
<weaksauce>
bobby tables wants to have a word with you mwlang
atmosx has quit [Read error: Connection reset by peer]
<apeiros>
iirc top-level methods are slightly special. iirc they're local to the file you define them in.
QKO has quit [Remote host closed the connection]
<apeiros>
going to bed now, though. so I won't verify that today.
atmosx has joined #ruby
<apeiros>
another iirc: def self.foo on top level will create a method which can only be called at top level
airdisa has quit [Remote host closed the connection]
airdisa has joined #ruby
treehugging has quit [Quit: Page closed]
Shidash has quit [Remote host closed the connection]
iamninja has quit [Read error: Connection reset by peer]
Ropeney has joined #ruby
gsd has joined #ruby
iamninja has joined #ruby
jimms has quit [Remote host closed the connection]
QKO has joined #ruby
Musashi007 has quit [Quit: Musashi007]
Pumukel has quit [Quit: ChatZilla 0.9.91.1 [Firefox 37.0.2/20150415140819]]
Hijiri has joined #ruby
Shidash has joined #ruby
<Eiam>
hmm. are Resque & DelayedJob the only two shops in town for job/task management in ruby? I'm looking for something that can handle start/stopping jobs, recording the history of jobs (Who ran it, when, where, etc) which doesn't seem fully covered by resque
ki0 has joined #ruby
<Eiam>
short of course, of writing it myself
<centrx>
There's a difference between background jobs/queue and scheduled jobs/cron-like