dapz has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
mary5030 has quit [Ping timeout: 272 seconds]
M-Technic has quit [Ping timeout: 240 seconds]
rgrinberg has quit [Quit: Leaving.]
lxsameer has joined #ruby
hakunin has quit [Ping timeout: 244 seconds]
rgrinberg has joined #ruby
diegoviola has quit [Ping timeout: 240 seconds]
prathamesh has joined #ruby
fgo has joined #ruby
diegovio1 has joined #ruby
timonv has quit [Remote host closed the connection]
garndt has quit [Quit: Connection closed for inactivity]
Zebroid has joined #ruby
ta has quit [Remote host closed the connection]
ta has joined #ruby
Zebroid has quit [Ping timeout: 255 seconds]
CorpusCallosum has joined #ruby
noop has quit [Ping timeout: 272 seconds]
tjr9898 has joined #ruby
ta has quit [Ping timeout: 264 seconds]
rgrinberg has quit [Quit: Leaving.]
stytown has quit [Quit: stytown]
dreamchaser has joined #ruby
danijoo has quit [Read error: Connection reset by peer]
danijoo has joined #ruby
hakunin has joined #ruby
tjr9898 has quit [Ping timeout: 264 seconds]
shvelo has joined #ruby
x1337807x has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
causasui has joined #ruby
heftig has quit [Quit: Quitting]
oo_ has quit [Remote host closed the connection]
CaptainJet has quit []
Cache_Money has quit [Quit: Cache_Money]
phinfonet has quit []
oo_ has joined #ruby
ta has joined #ruby
Xeago has quit [Ping timeout: 244 seconds]
M-Technic has joined #ruby
techsethi has joined #ruby
stytown has joined #ruby
ghr has joined #ruby
rgrinberg has joined #ruby
tobago has joined #ruby
Mooneye has joined #ruby
shvelo has quit [Ping timeout: 264 seconds]
oo_ has quit [Remote host closed the connection]
oo_ has joined #ruby
mweshi has quit [Quit: mweshi]
ghr has quit [Ping timeout: 255 seconds]
mijicd has joined #ruby
dreamchaser has quit [Ping timeout: 264 seconds]
fluve has quit [Remote host closed the connection]
setra has joined #ruby
Rahul_Roy has joined #ruby
Xeago has joined #ruby
Macaveli has joined #ruby
Notte has joined #ruby
mikepack has quit [Remote host closed the connection]
alem0lars has joined #ruby
Arkaniad has quit [Ping timeout: 272 seconds]
bal has joined #ruby
wallerdev has joined #ruby
bal has quit [Read error: Connection reset by peer]
ra4king1 has joined #ruby
bal has joined #ruby
ra4king has quit [Disconnected by services]
ra4king1 is now known as ra4king
alem0lars has quit [Client Quit]
Shidash has joined #ruby
dreamchaser has joined #ruby
nerdy has quit [Quit: Computer has gone to sleep.]
diegovio1 has quit [Quit: WeeChat 0.4.3]
Mooneye has quit [Quit: Leaving]
lewix has quit [Remote host closed the connection]
Ankhers has joined #ruby
tjr9898 has joined #ruby
lewix has joined #ruby
tagrudev has joined #ruby
bigkevmcd has joined #ruby
vyorkin has joined #ruby
Xeago has quit [Ping timeout: 264 seconds]
cory_ has quit [Quit: Connection closed for inactivity]
jprovazn has joined #ruby
Arkaniad has joined #ruby
toastynerd has quit [Remote host closed the connection]
duncannz has joined #ruby
lewix has quit [Ping timeout: 244 seconds]
Ankhers has quit [Ping timeout: 264 seconds]
mercwithamouth has quit [Ping timeout: 240 seconds]
ta has quit [Read error: Connection reset by peer]
tjr9898 has quit [Ping timeout: 264 seconds]
alem0lars has joined #ruby
vyorkin has quit [Ping timeout: 240 seconds]
mijicd has quit [Remote host closed the connection]
techsethi has quit [Quit: techsethi]
metadave has quit [Ping timeout: 264 seconds]
doev has joined #ruby
doev has quit [Read error: Connection reset by peer]
peeja has quit [Ping timeout: 264 seconds]
mercwithamouth has joined #ruby
okinomo has quit [Ping timeout: 264 seconds]
chrstphrhrt has quit [Quit: chrstphrhrt]
metadave has joined #ruby
okinomo has joined #ruby
peeja has joined #ruby
Mooneye has joined #ruby
mijicd has joined #ruby
Notte has quit [Remote host closed the connection]
mikeymicrophone has joined #ruby
<mikeymicrophone>
I’m using the twitter gem to create an oauth login system. I can’t figure out how to set the callback url (I have it set in my dev.twitter.com interface but not in my code).
toastynerd has joined #ruby
razrunelord has joined #ruby
benlieb has quit [Quit: benlieb]
Zebroid has joined #ruby
mercwithamouth has quit [Ping timeout: 264 seconds]
bubbajones has quit [Quit: leaving]
ta has joined #ruby
JasmeetQA has joined #ruby
mercwithamouth has joined #ruby
bubbajones has joined #ruby
etqqkoiflwhb has joined #ruby
doev has joined #ruby
razrunelord has quit [Ping timeout: 245 seconds]
etqqkoiflwhb has quit [Client Quit]
Zebroid has quit [Ping timeout: 240 seconds]
mijicd has quit [Remote host closed the connection]
apeiros has joined #ruby
charliesome has joined #ruby
<csmrfx>
mikeymicrophone: if I remember correctly, it is a parameter in the call
mijicd has joined #ruby
pencilcheck has joined #ruby
ritz has joined #ruby
ritz has quit [Client Quit]
prathamesh has quit [Remote host closed the connection]
vyorkin has joined #ruby
jhass|off is now known as jhass
relix has joined #ruby
<mikeymicrophone>
csmrfx: thanks! no luck yet but I’ll keep trying.
pencilcheck has quit []
luckyruby has joined #ruby
Darryl has joined #ruby
setra has quit [Ping timeout: 244 seconds]
zigomir has joined #ruby
zigomir has quit [Read error: Connection reset by peer]
zigomir has joined #ruby
<Hanmac>
shevy ping
yubrew has joined #ruby
Xeago has joined #ruby
kenndel_ has joined #ruby
kireevco has quit [Quit: Leaving.]
dreamchaser has quit [Read error: Connection reset by peer]
dreamchaser has joined #ruby
mijicd has quit [Remote host closed the connection]
yubrew has quit [Ping timeout: 240 seconds]
davedev24_ has quit [Remote host closed the connection]
fabrice31 has joined #ruby
kenndel has quit [Ping timeout: 264 seconds]
davedev24_ has joined #ruby
felixdd has joined #ruby
mijicd has joined #ruby
jheg has joined #ruby
ghr has joined #ruby
ndrei has joined #ruby
charliesome has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
charliesome has joined #ruby
klaut has joined #ruby
davedev24_ has quit [Ping timeout: 240 seconds]
noop has joined #ruby
ghr has quit [Ping timeout: 240 seconds]
benlieb has joined #ruby
JohnBat26 has joined #ruby
Mon_Ouie has joined #ruby
techsethi has joined #ruby
whitedawg has quit [Ping timeout: 245 seconds]
nanodano has quit [Quit: Leaving.]
jarray52 has left #ruby [#ruby]
dangerousdave has joined #ruby
techsethi has quit [Ping timeout: 245 seconds]
techsethi has joined #ruby
<mozzarella>
guys, any of you know of a tutorial on writing a rakefile for actually compiling and linking stuff, not just basic tasks?
<jhass>
avdi grimm had a nice video series recently
<ari-_-e>
mozzarella: uh, ones that don't involve ruby?
<mozzarella>
ari-_-e: yeah
moritzschaefer has quit [Ping timeout: 264 seconds]
<mozzarella>
jhass: thank you, I will watch them
mocchi has joined #ruby
Mooneye has quit [Quit: Leaving]
Poky has joined #ruby
ta has quit [Remote host closed the connection]
havenwood has quit [Ping timeout: 264 seconds]
ta has joined #ruby
vyorkin has quit [Ping timeout: 245 seconds]
atmosx has quit [Ping timeout: 264 seconds]
alex88 has joined #ruby
ta has quit [Read error: Connection reset by peer]
felixdd has quit [Ping timeout: 264 seconds]
mercwithamouth has quit [Ping timeout: 272 seconds]
d34th4ck3r has joined #ruby
atmosx has joined #ruby
havenwood has joined #ruby
xcv has joined #ruby
jmeeuwen has quit [Quit: Disconnecting from stoned server.]
jmeeuwen_ has joined #ruby
whitedawg has joined #ruby
jmeeuwen_ is now known as jmeeuwen
alex88 has quit [Quit: Leaving...]
alex88 has joined #ruby
dc has quit [Remote host closed the connection]
Dreamer3 has quit [Quit: Leaving...]
anarang has joined #ruby
d34th4ck3r has left #ruby [#ruby]
jackneill has joined #ruby
dreamchaser has quit [Ping timeout: 264 seconds]
LiohAu has joined #ruby
spicerack has joined #ruby
razrunelord has joined #ruby
Zebroid has joined #ruby
qba73 has joined #ruby
qba73 has quit [Remote host closed the connection]
kwd has joined #ruby
razrunelord has quit [Ping timeout: 244 seconds]
xcv has quit [Remote host closed the connection]
toastynerd has quit [Remote host closed the connection]
Zebroid has quit [Ping timeout: 245 seconds]
northfurr has quit [Quit: northfurr]
brandoncordell has quit [Quit: Lost terminal]
charliesome has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
_pingu has joined #ruby
ta has joined #ruby
skaflem has joined #ruby
causasui has quit [Remote host closed the connection]
wallerdev has quit [Quit: wallerdev]
ephemerian has joined #ruby
causasui has joined #ruby
<_pingu>
http://pastebin.com/XSaFeK3m That is a working serverspec example. How can I test this n times with a sleep in between?
sara2010 has left #ruby [#ruby]
yubrew has joined #ruby
mocchi has quit [Remote host closed the connection]
alem0lars has quit [Quit: Going AFK...]
prathamesh has joined #ruby
r0bby is now known as robbyoconnor
Joulse has joined #ruby
Shidash has quit [Ping timeout: 240 seconds]
yubrew has quit [Ping timeout: 244 seconds]
sepp2k has joined #ruby
weklj has joined #ruby
<weklj>
do we have a ruby bot here?
apeiros has quit [Remote host closed the connection]
apeiros has joined #ruby
<weklj>
If I have to find out what is the use of included keyword, how can I found that out?
jhass is now known as jhass|off
<sevenseacat>
google it?
<weklj>
that's what I am doing and I guess I found the answer now
<sevenseacat>
:)
<sevenseacat>
everyone's a winner
yakko has joined #ruby
yakko has quit [Remote host closed the connection]
<Hanmac>
weklj: "included" is not a keyword, "include" isnt one too but might look like one, "included" is a "hook-method" that is called in the module when the module is included into another module/class
apeiros has quit [Ping timeout: 244 seconds]
hermanmunster has quit [Remote host closed the connection]
MrDoctor has joined #ruby
<MrDoctor>
I'm working on a rails project which has google_api_client in the Gemfile
hermanmunster has joined #ruby
<MrDoctor>
google_api_client has multi_json 1.3.6. as a dependency
<MrDoctor>
And I want do add desk 1.0.1 into the Gemfile
<Hanmac>
MrDoctor: #rubyonrails ?
<MrDoctor>
Which inturn has multi_json 1.6.0 as a dependency
<weklj>
Hanmac: I am doing rubymonk and there is one question that uses included
<_pingu>
http://pastebin.com/XSaFeK3m That is a working serverspec example. How can I test this n times with a sleep in between? if the test failes the test should be done again after some seconds
<weklj>
and that A.included(B) is called from within the B?
AlSquirrel has joined #ruby
alem0lars has joined #ruby
<weklj>
got the diff, Hanmac , ty
jhass|off is now known as jhass
<Hanmac>
wekij: yeah include does that: #include first calls #append_features that will add the constants and methods from module A into class B, if that was successful it calls #included
Xeago has quit [Remote host closed the connection]
<weklj>
I am now letting module Foo know that ClassMethods is included it in
Xeago has joined #ruby
<weklj>
and then including the Foo in Bar class
toastynerd has joined #ruby
<weklj>
Can anyone please tell me what am I doing wrong?
nfk has joined #ruby
AlSquirrel has quit [Ping timeout: 255 seconds]
zarubin has quit []
kaspergrubbe has joined #ruby
prathamesh has quit [Read error: Connection reset by peer]
prathamesh has joined #ruby
sandelius has joined #ruby
roolo has joined #ruby
toastynerd has quit [Ping timeout: 245 seconds]
moritzs has quit [Ping timeout: 244 seconds]
dreamchaser has joined #ruby
Takle has joined #ruby
moritzs has joined #ruby
francisfish has joined #ruby
ghr has joined #ruby
<_pingu>
no one?
einarj has joined #ruby
<csmrfx>
?
<_pingu>
http://pastebin.com/XSaFeK3m That is a working serverspec example. How can I test this n times with a sleep in between? if the test failes the test should be done again after some seconds
timonv has quit [Remote host closed the connection]
francisfish has joined #ruby
danijoo has quit [Read error: Connection reset by peer]
prathamesh has quit [Remote host closed the connection]
prathamesh has joined #ruby
northfurr has joined #ruby
danijoo has joined #ruby
danijoo has quit [Read error: Connection reset by peer]
danijoo has joined #ruby
timonv_ has joined #ruby
tesuji has joined #ruby
wasamasa has joined #ruby
maloik has joined #ruby
prathamesh has quit [Ping timeout: 272 seconds]
timonv_ has quit [Ping timeout: 272 seconds]
robbyoconnor has quit [Read error: Connection reset by peer]
<wasamasa>
hi, what's the ruby equivalent of the python requests module?
eka has joined #ruby
<wasamasa>
I've already figured out that nokogiri seems to be the equivalent to lxml
<csmrfx>
open3 perhaps
robbyoconnor has joined #ruby
<DouweM>
I'd go with HTTParty
<csmrfx>
Kilo`byte: and command was "make me a sammixh"?
eka has quit [Client Quit]
<Kilo`byte>
csmrfx: nah, that is what i get when starting bash
ldnunes has joined #ruby
<wasamasa>
csmrfx: open3 looks to me more like subprocess than http
<wasamasa>
csmrfx: as in, safer interaction with processes
<csmrfx>
OpenUri?
<csmrfx>
*OpenURI
jxf has quit [Ping timeout: 252 seconds]
centrx has joined #ruby
Takle has joined #ruby
xcv has quit [Remote host closed the connection]
Notte has quit [Remote host closed the connection]
xcv has joined #ruby
relix has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<wasamasa>
looks okayish for an stdlib library
xcv has quit [Remote host closed the connection]
karupa is now known as zz_karupa
timonv has joined #ruby
schaary is now known as schaary|afk
linojon has joined #ruby
<wasamasa>
hmm, the http gem is cool, too
<wasamasa>
looks a bit more to me like requests than httparty
<wasamasa>
thanks
JasmeetQA has quit [Read error: Connection reset by peer]
<workmad3>
wasamasa: faraday is also a good interface for HTTP requests
<matti>
Faraday <3
<wasamasa>
hmm, faraday looks more like something I'd use in a web application than quick and dirty commandline applications :P
<tagrudev>
devoloping a gem is it possible to to load the current environment with pry
<tagrudev>
and how
shevy has quit [Ping timeout: 272 seconds]
<tagrudev>
it seems to ignore the require_paths in my gemspec file
<tagrudev>
hmm
setra has joined #ruby
alem0lars has joined #ruby
northfurr has quit [Quit: northfurr]
hpoydar has joined #ruby
relix has joined #ruby
yalue has joined #ruby
toastynerd has joined #ruby
yubrew has joined #ruby
shredding has joined #ruby
shredding has quit [Client Quit]
hydrozen has joined #ruby
shredding has joined #ruby
Nahra has quit [Remote host closed the connection]
DanielI has joined #ruby
schaary|afk is now known as schaary
shevy has joined #ruby
alem0lars has quit [Ping timeout: 255 seconds]
relix has quit [Ping timeout: 240 seconds]
<Hanmac>
yesterday nearly midnidght i tried to make an ERM of my rpg classes, (Actor, Skill, etc) and try to show how they are connected ;P ... just say there are many many 1->n and m->n connections ... and the connection between Actor and Skill for sample are 5 Classes/Tables ;P
hpoydar has quit [Ping timeout: 272 seconds]
toastynerd has quit [Ping timeout: 240 seconds]
<workmad3>
Hanmac: sounds about right :)
maximski has quit [Read error: Connection reset by peer]
ndrei has joined #ruby
lw has quit [Quit: s]
<Hanmac>
ah i captured someones interest ;P *plan succeeded*
Ankhers has joined #ruby
yubrew has quit [Ping timeout: 240 seconds]
maximski has joined #ruby
<centrx>
You are making an ORM ERM RPG?
<workmad3>
Hanmac: I used to try that sort of thing back when I tried to make games :)
<workmad3>
Hanmac: also fun is trying to create an object model of a game engine...
ihme-TTilus is now known as TTilus
shevy has quit [Ping timeout: 272 seconds]
<Hanmac>
centrx: hm nope ... i write a new script engine for a possible RPG maker games ... yesterday ad night i was lying around and i thought how they are connected ... because i KNOW that someday i will get stack-error from the interconnections
hydrozen has quit [Quit: Computer has gone to sleep.]
<centrx>
An ERM RPG ORM?
<deepy>
ERM?
<workmad3>
deepy: entity relationship model
<Hanmac>
centrx: the ERM was only to get my mind clear ... currently the data are some xml stucture, but database should be possible to ... if wanted
<workmad3>
deepy: or possibly enterprise relation manager...
little_fu has joined #ruby
<workmad3>
deepy: but going by context, I'm gonna go with my first though :)
<centrx>
ahh, so it's actually an XML ERM RPG ORM
<Hanmac>
hm centrx if you want that you could commit that to the prossible project ;P
Ankhers has quit [Ping timeout: 264 seconds]
linojon has quit [Quit: linojon]
<centrx>
k I'll get right on it
bluOxigen has quit [Ping timeout: 272 seconds]
sumark has quit [Remote host closed the connection]
bluOxigen has joined #ruby
sumark has joined #ruby
trepidaciousMBR has joined #ruby
jxf has joined #ruby
oo_ has quit [Remote host closed the connection]
<trepidaciousMBR>
Hi - I have shrimp installed, and it shows up on "gem list", but if I require it, I get "no such file to load". This is on OS X, ruby 1.8.7
<Hanmac>
workmad3: in the last rewrite i did, i tried to make it "feature" based ... means Skills are not direct connected to ActorClass for sample, its more like:
<Hanmac>
Actor has many ActorClasses, ActorClass has many Level, Level has Features (i explain later, but ActorClass has many Features too), Feature has many Skills ...
<Hanmac>
the interesting part about Feature is that its a connection point between where is something added and what should be added (like it can add skills to Actor, Enemy, ActorClass, Levelable::Level, and many more, and Feature also has a Requirement part, with that it can also check if some requirement is set, like Actor has ActorClass(X) level >= Y)
ta has quit [Remote host closed the connection]
lxsameer has quit [Quit: Leaving]
<Hanmac>
trepidaciousMBR: ruby1.8.7 is that problem, replace it with newer version 2.1.2 is current release
linojon has joined #ruby
<trepidaciousMBR>
I'll have a look at that, also require 'rubygems' before require 'shrimp' seems to help?
<posixpascal>
trepidaciousMBR: also require 'rubygems' before requireing shrimp
<trepidaciousMBR>
posixpascal: Yup that fixes it, thanks
<posixpascal>
Be sure to upgrade to at least ruby 2.0. :) you can use rvm/rbenv for that purpose.
<workmad3>
you don't need 'require "rubygems" ' on ruby > 1.9 ;)
<workmad3>
and ruby 1.8 is EoL... has been for a while now
<posixpascal>
jup
workmad3 is now known as wm3|away
prathamesh has joined #ruby
Takle has quit [Remote host closed the connection]
atraylen has joined #ruby
WormDrink has quit [Ping timeout: 264 seconds]
Zebroid has joined #ruby
noop has quit [Ping timeout: 240 seconds]
<wasamasa>
so, rbenv is the tool giving me sandboxes where I can install project-specific gems?
little_fu has quit [Remote host closed the connection]
<wasamasa>
while rvm is more of "Do what I mean"?
Zebroid has quit [Ping timeout: 272 seconds]
uresu has quit [Quit: uresu]
ta has joined #ruby
xcv has joined #ruby
posixpascal has quit [Ping timeout: 252 seconds]
posixpascal has joined #ruby
Takle has joined #ruby
<csmrfx>
is rbenv a sandbox these days?
mary5030 has joined #ruby
sailias has joined #ruby
<csmrfx>
I thought is was the "simpler pythonic rvm"
zarubin has joined #ruby
sailias has quit [Remote host closed the connection]
dANOKELOFF has joined #ruby
eighthbit has joined #ruby
tier has joined #ruby
tier has quit [Remote host closed the connection]
tier has joined #ruby
rlazoti has joined #ruby
WormDrink has joined #ruby
sailias has joined #ruby
WormDrink has quit [Changing host]
WormDrink has joined #ruby
<wasamasa>
hmm
<wasamasa>
or maybe even chruby?
<sevenseacat>
i never saw a use for project-specific gems with a tool like rvm - thats what bundler is for
garndt has joined #ruby
Takle has quit [Remote host closed the connection]
Ankhers has joined #ruby
wm3|away has quit [Ping timeout: 272 seconds]
nowthatsamatt has joined #ruby
jerius has joined #ruby
ta has quit [Ping timeout: 272 seconds]
Takle has joined #ruby
phinfonet has joined #ruby
rlazoti has quit [Quit: Leaving]
alexju has joined #ruby
lewix has joined #ruby
lewix has quit [Changing host]
lewix has joined #ruby
shredding has quit [Quit: shredding]
rlazoti has joined #ruby
naw has quit [Read error: Connection reset by peer]
naw has joined #ruby
danijoo has quit [Read error: Connection reset by peer]
Darkchaos has joined #ruby
danijoo has joined #ruby
trepidaciousMBR has quit [Ping timeout: 240 seconds]
sinan has joined #ruby
trei3212 has joined #ruby
<sinan>
Are hashes thread-safe in MRI?
<Darkchaos>
Hello Guys. I only have a quick question regarding the mechanize gem: I am browsing a site whose javascript changes some link's href. Now the thing is, mechanize does not notice. Is there some flush/rescan or does it not support js at all?
jerius has quit []
northfurr has joined #ruby
<sinan>
Darkchaos: doesn't support JS. I faced the same issue recently, didn't find a ruby library that supported JS nicely, ended up using CasperJS.
<Darkchaos>
sinan: may I use it additionally to mechanize?
<wasamasa>
Darkchaos: I'd try working around the js
<wasamasa>
Darkchaos: for example if it ends up using some rest api, use it instead
<sinan>
Darkchaos: it would be very hackish to use it with mechanize; CasperJS is not ruby, it is a full javascript solution
<Darkchaos>
the js is heavily obfuscated :/ Ill look into it
mary5030 has quit [Remote host closed the connection]
lw has joined #ruby
<sinan>
Darkchaos, wasamasa: that was my case too, the JS calculated some hash that it would sent through the REST API, figuring out how the hash is caclulated would have taken me forever :)
<csmrfx>
sinan: dont use threads in MRI
<csmrfx>
(unless theres changes in newest ruby versions)
<sinan>
csmrfx: thanks, but that doesn't answer my question :)
<Darkchaos>
sinan So I can use CasperJS to "debug" it?
<csmrfx>
sinan: probably are as threads are locking in MRI
<csmrfx>
but, threading requires care
<sinan>
Darkchaos: umm ... CasperJS allows you to do what mechanize does, but it runs in the context of the javascript of the page. So basically, any JS that comes with the page would run naturally. You wouldn't be able to link it back to ruby easily, but if you are doing a standalone solution, you could use CasperJS
<sinan>
Darkchaos: in my situation, I let my ruby code spawn a process, run CasperJS inside it, and return what I was looking for. It was very slow, but my situation didn't require speed
Morkel has quit [Quit: Morkel]
cobakobodob has quit [Ping timeout: 255 seconds]
<wasamasa>
sinan: well, you could reimplement the hashing procedure in ruby, no?
<sinan>
wasamasa: in concept, yes. In reality, it would take me a week to realize what the code was doing
yfeldblum has quit [Ping timeout: 272 seconds]
<sinan>
wasamasa: imagine 200kb of obfuscated JS doing "something" on the page.
hamakn has quit [Remote host closed the connection]
<sinan>
csmrfx: I am asking because I was looking into the code of https://github.com/ruby-concurrency/thread_safe, and when they find you are running MRI they just use the standard Hash and Array.
sopheny has left #ruby ["Quitte"]
yubrew has joined #ruby
<sinan>
I was wondering if their code is out of date, or it is still safe to assume Hash and Array are threadsafe in MRI.
jmurray has joined #ruby
<sinan>
wasamasa: that's some very cool stuff right there, thanks :D
<wasamasa>
no idea how it works on non-opensource stuff
<wasamasa>
hmm, that gave me an idea
<wasamasa>
writing a commandline ruby script that uses jsnice.org
<wasamasa>
which leads me to my next question
<wasamasa>
good argument parsing libraries?
<wasamasa>
I'm used to argparse under python, but would like having something a little bit less verbose :P
<Darkchaos>
wasamasa it is better than jsbeautifer.org however the result is still not nice :D
Bira has joined #ruby
<Darkchaos>
i just used OptionParser
lewix has quit [Remote host closed the connection]
ta has joined #ruby
ltd has quit [Remote host closed the connection]
qwyeth has joined #ruby
davedev24_ has quit [Ping timeout: 264 seconds]
yubrew has quit [Ping timeout: 245 seconds]
garethrees has quit [Ping timeout: 240 seconds]
<wasamasa>
hmm
<wasamasa>
rubygems.org tells me its docs live on rubyforge.org which seems to be down?
alex88 has quit [Ping timeout: 240 seconds]
toastynerd has joined #ruby
alex88_ has joined #ruby
krz has quit [Quit: WeeChat 0.4.3]
sinan has quit [Quit: leaving]
phoo1234567 has quit [Remote host closed the connection]
DanielI has quit [Changing host]
DanielI has joined #ruby
davedev24_ has joined #ruby
brasten has joined #ruby
Takle has quit [Remote host closed the connection]
toastynerd has quit [Ping timeout: 240 seconds]
qwyeth has quit [Read error: Connection timed out]
exgf has joined #ruby
qwyeth has joined #ruby
exgf has quit [Client Quit]
aniM has joined #ruby
thesheff17 has quit [Ping timeout: 244 seconds]
blackms has quit [Remote host closed the connection]
exgf has joined #ruby
ghr has joined #ruby
phoo1234567 has joined #ruby
northfurr has quit [Quit: northfurr]
Deele has joined #ruby
voodoofish1 is now known as voodoofish
gr33n7007h has quit [Quit: Leaving]
thesheff17 has joined #ruby
momomomomo has joined #ruby
Takle has joined #ruby
mary5030 has joined #ruby
obscured has joined #ruby
LadyRainicorn has joined #ruby
lewix has joined #ruby
ffranz has quit [Ping timeout: 244 seconds]
hamakn has joined #ruby
tesuji has quit [Ping timeout: 272 seconds]
ta has quit [Ping timeout: 244 seconds]
yakko has joined #ruby
yfeldblum has joined #ruby
cobakobodob has joined #ruby
wowXiDD has quit [Remote host closed the connection]
<ericwood>
if you're doing stuff with JS and ruby I would ASSUME you're using some kind of web framework, right?
<ericwood>
or are you insane
<shevy>
sevenseacat the reason is simple - it takes away resources to have to adjust to different modes
<shevy>
ericwood I am not insane; I am using my own helper code, the question is how to best do so
<ericwood>
shevy: use heredoc
<ericwood>
but tbh I hate rails helpers...make use of partials instead
<dorei>
shevy: haml will help you trick yourself that u're not writing html
lw has joined #ruby
mengu has joined #ruby
mengu has joined #ruby
mengu has quit [Changing host]
wm3|away is now known as workmad3
<shevy>
dorei well the problem is that it is just a haml->html conversion
<shevy>
same with coffeescript->javascript
<shevy>
it's all like a jigsaw puzzle
oo_ has joined #ruby
<ericwood>
the trick is to just write javascript and html instead
<ericwood>
weird, I know
<sevenseacat>
lol
<shevy>
I already don't write html since about 10 years, ruby generates the whole html/css stack for me
<shevy>
nah, that sounds like what a noob would do
<ericwood>
I am a huge proponent of SASS, though
<ericwood>
you can pry sass from my cold dead hands
<shevy>
hmm
<workmad3>
ericwood: it does help when the language adds new and useful features :)
qba73 has quit []
<ericwood>
workmad3: yeah, whatever does it for you really
<workmad3>
ericwood: especially with the scss dialect... so it's CSS but with extras :)
danielpclark has joined #ruby
<ericwood>
I kinda prefer normal JS over coffeescript but I've come to accept that people are the other way around
<ericwood>
workmad3: yah SCSS is the greatest thing ever
<ericwood>
I actually just put together a presentation that goes over all of its features
troulouliou_dev has quit [Remote host closed the connection]
<ericwood>
<3
trei3212 has quit [Ping timeout: 272 seconds]
<workmad3>
I like coffeescript and haml... but I'm also perfectly happy using plain HTML and JS if I can't be bothered to set them up in a project or I'm working with people who don't like them
francisfish has quit [Remote host closed the connection]
<sevenseacat>
haml and sass are win.... coffeescript is a mixed bag
<workmad3>
my main gripes are when I go from coffeescript to ruby and back... then I end up doing (foobar)-> in ruby and ->(foobar) in coffeescript...
<ericwood>
last time I tried using haml it really got in my way...but I've heard there's some syntax changes
<workmad3>
depends on what you're doing with haml
<ericwood>
usually I'm using it to generate html
<sevenseacat>
lol
<workmad3>
haha :P
<ericwood>
it is a lot easier to read tho
theRoUS has joined #ruby
<ericwood>
html hurts my eyes
theRoUS has joined #ruby
theRoUS has quit [Changing host]
<workmad3>
haml can be pretty quick to read and write for HTML structure... but it's a PITA for nesting structure and content together
yubrew has joined #ruby
ta has joined #ruby
mary5030 has joined #ruby
<ericwood>
shevy: anyways, avoid using ruby strings etc for generating markup
<ericwood>
use some kind of templating language
<ericwood>
and keep your shit in separate files
ta has quit [Remote host closed the connection]
<ericwood>
I HATE running into gigantic strings with heredoc in ruby files
<ericwood>
shit is unmaintainable
<workmad3>
tends to look shit then too... '%p<newline>Please accept the <newline>%input{type: 'checkbox', name: "toc"}<newline> Terms and Conditions
<workmad3>
ericwood: how about the DATA section at the end of a ruby file? :D
<ericwood>
oh boy even better!!!
<workmad3>
ericwood: I've met someone who used the DATA section for *another* ruby script before...
<ericwood>
you can do that?
<workmad3>
ericwood: so he ran a script locally, it connected via SSH to a server, dumped the DATA out there and then ran it...
<ericwood>
impressive.
<shevy>
going the template route will lead to spaghetti code like php
<ericwood>
that's the spirit, shevy
<ericwood>
how about throwing a framework in there
<workmad3>
ericwood: ruby has eval()...
<ericwood>
like sinatra or rails or something
<shevy>
they use templates as well
<shevy>
erb crap for instance
<workmad3>
ericwood: so yeah, you can put scripts in DATA :)
<workmad3>
shevy: in PHP *everything* is a crappy template though
<workmad3>
shevy: and has shit separation for them :)
<shevy>
I am so glad to have abandoned php man
<ericwood>
workmad3: I literally saw someone reimplement const_get in a controller by doing: eval(params[:class])
<workmad3>
ericwood: haha
<shevy>
php does not deserve to be more popular than ruby
<ericwood>
they didn't work here anymore otherwise we would have good reason to fire them
<ericwood>
shevy: PHP has its uses
<ericwood>
doesn't make it okay, tho
<workmad3>
ericwood: I like printing the PHP documentation out onto soft paper...
<shevy>
lol
__class__ has quit [Read error: Connection reset by peer]
djcp has joined #ruby
djcp has left #ruby [#ruby]
posixpascal has quit [Ping timeout: 252 seconds]
<shevy>
well
<shevy>
the php docu is not that bad
yubrew has quit [Ping timeout: 272 seconds]
rlazoti has quit [Quit: Leaving]
<workmad3>
shevy: it's awful
<ericwood>
there are worse things
<workmad3>
shevy: it's filled with PHP code samples
hamakn has quit [Remote host closed the connection]
<shevy>
I find it better than ruby's official documentation
<shevy>
the user contributions are about 80% useless
<wasamasa>
the comments are horrifying
<ericwood>
apparently most PHP functions have weird names to avoid collisions because the original hashing mechanism for that stuff internally was based on the function name
<shevy>
and way too long, it's like covering 80% of that page height
eighthbit has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<ericwood>
so they just built the language conventions around the fact that the interpreter was shit
<workmad3>
ericwood: and then they never deprecate *anything*... :(
<ericwood>
yep
<workmad3>
shevy: see, that doc page is awful... PHP code in it!
unop_ has joined #ruby
<tobiasvl>
$HTTP_POST_VARS is luckily deprecated
NukePuppy has joined #ruby
<ericwood>
oh man thank god
<shevy>
it looks prettier than ruby docu workmad3!
thisirs has joined #ruby
Takle has quit [Remote host closed the connection]
Xeago has quit [Read error: Connection reset by peer]
<shevy>
:P
<shevy>
yeah
<shevy>
well
|RicharD| has joined #ruby
Xeago has joined #ruby
<shevy>
apidock has the right idea, I don't like the visual mark right now, but I think the idea behind it is better than the ruby-doc.org/stdlib-2.1.2/libdoc* one
<|RicharD|>
Hi if I have a float like this: 1.529876826983034e-05 - how I can show with correct 0 and without -05 ?
Xeago has quit [Remote host closed the connection]
<MrDoctor>
Is there a way I can open files from http url's, ones that require authentication, using oauth instead of basic http authentication?
<Darkchaos>
thanks that is nice, rdark
<shevy>
when you guys write css
<shevy>
do you prefer style A:
<shevy>
p.hover_test1:hover { opacity: 0.4; }
<shevy>
or style B, separate lines (so newlines after { and between each individual element
Zebroid has quit [Ping timeout: 244 seconds]
<tobiasvl>
style B
<sevenseacat>
would never use style A
<rdark>
+1 style B
<shevy>
ok
mattstratton has joined #ruby
bean__ has joined #ruby
endash has joined #ruby
snath has quit [Ping timeout: 272 seconds]
eka has quit [Ping timeout: 240 seconds]
<Darkchaos>
depends, for one element one could use a 1liner, but never for multiple
<jxf>
shevy: +1 for style B, with one possible exception: if I had to write a series of one-attribute statements and I wanted to make the differences between them more readily visible
<jxf>
e.g. (if they were all slightly different opacities)
Bira has quit [Remote host closed the connection]
<jxf>
but I'd probably use Sass for that, not raw CSS
Xeago_ has joined #ruby
Kricir has quit [Remote host closed the connection]
lmickh has joined #ruby
Xeago_ has quit [Read error: Connection reset by peer]
Xeago_ has joined #ruby
<shevy>
hmm
senayar has joined #ruby
spastorino has joined #ruby
einarj has quit [Remote host closed the connection]
einarj has joined #ruby
Xeago_ has quit [Remote host closed the connection]
Xeago has quit [Ping timeout: 255 seconds]
kireevco has joined #ruby
krz has joined #ruby
enebo has joined #ruby
Bira has joined #ruby
felixdd has quit [Remote host closed the connection]
einarj_ has joined #ruby
kilk_ has quit [Quit: Leaving]
bean__ has quit [Quit: bean__]
bal has quit [Quit: bal]
bal has joined #ruby
geggam has joined #ruby
mikepack has joined #ruby
eighthbit has joined #ruby
francisfish has joined #ruby
stytown has joined #ruby
jottr_ has joined #ruby
rayners has quit [Remote host closed the connection]
einarj has quit [Ping timeout: 264 seconds]
eka has joined #ruby
jprovazn has quit [Quit: Leaving]
anarang has quit [Quit: Leaving]
bean__ has joined #ruby
poguez_ has joined #ruby
renderful has quit [Remote host closed the connection]
acrussell has joined #ruby
prathamesh has quit [Remote host closed the connection]
yubrew has joined #ruby
bal has quit [Client Quit]
renderful has joined #ruby
kwd has quit [Quit: kwd]
dangerou_ has joined #ruby
dangerousdave has quit [Read error: Connection reset by peer]
<jeeves_moss>
I'd apericate any help if you have time. I'd really like to get it working on my Ubuntu install. The windows install would just be a bonus (since it's on my netbook, and I use it as a second screen)
terrellt has joined #ruby
<shevy>
it seems as if that project requires bundler
<jeeves_moss>
the ubuntu system I'm trying to get it to work on is my BeagleBone Black and a 7" LCD screen
stytown has quit [Quit: stytown]
<shevy>
as I don't use bundler I really have no idea how I could help you
<jeeves_moss>
Ihave no idea what bundler is
<shevy>
rake aborted!
<shevy>
cannot load such file -- bundler/gem_tasks
<shevy>
gem install bundler
<shevy>
but I don't use it so I am at end here sorry
<jeeves_moss>
ok, thanks
<jeeves_moss>
I just want to get it active on my BBB. That way, I can leave it plugged in on my desk
fschuindt has quit [Ping timeout: 240 seconds]
jhass|off is now known as jhass
ghr has quit [Ping timeout: 240 seconds]
<shevy>
well he has github
<shevy>
so you can file issue requests
<shevy>
such as "make it simpler to install your code"
<jeeves_moss>
cool, thanks. I'm a networking guy, not a programmer
<shevy>
if he is interested then he will improve his readme etc...
echevemaster has joined #ruby
yubrew has quit [Ping timeout: 240 seconds]
<shevy>
I'd say about 80% of the projects/authors on github I filed an issue request, replied or improved so it's usually a very good way
<shevy>
the author from coderay even told me how to solve a specific problem, so it was like getting free help :P
aspires has joined #ruby
<jeeves_moss>
cool. I love the software when it's running (it's a good visual to leave running in the waiting room of an I.T. place).
mailo has joined #ruby
<jeeves_moss>
and if I can make it run on the BeagleBone, then I have a low power soulition
troyready has joined #ruby
Morkel has quit [Quit: Morkel]
<jeeves_moss>
and if you know what you're looking for, it's informative
Aryasam has joined #ruby
jeeves has joined #ruby
kireevco has joined #ruby
luckyruby has quit [Quit: Leaving...]
prathamesh has quit [Remote host closed the connection]
prathamesh has joined #ruby
johnhamelink has quit [Ping timeout: 272 seconds]
krz has quit [Quit: WeeChat 0.4.3]
snath has joined #ruby
edgarjs_afk is now known as edgarjs
<jeeves>
sorry, had to swap WiFi adaptors to auth the little one
johnhamelink has joined #ruby
phinfonet has quit [Ping timeout: 240 seconds]
ixti has joined #ruby
timonv_ has quit [Remote host closed the connection]
jeeves_moss has quit [Ping timeout: 240 seconds]
lkba has quit [Ping timeout: 264 seconds]
Zenigor has quit [Remote host closed the connection]
timonv has joined #ruby
zigomir has quit [Remote host closed the connection]
sailias has quit [Quit: Leaving.]
sailias1 has joined #ruby
lkb has quit [Ping timeout: 264 seconds]
olivier_bK has quit [Ping timeout: 240 seconds]
mailo has quit [Quit: Leaving...]
roolo has quit [Quit: Leaving...]
prathamesh has quit [Ping timeout: 255 seconds]
<shevy>
let's build the best package manager in ruby
SBoolean has joined #ruby
<ericwood>
no thanks
bricker`work has joined #ruby
<shevy>
why not?
<ericwood>
too much work, rubygems works fine
<ericwood>
stop stirring up controversy, do as you're told
<centrx>
shevy, Debian's apt is already the best package manager.
<ericwood>
eh
<shevy>
rubygems is limited to .gem
kaspergrubbe has quit [Remote host closed the connection]
<ericwood>
I actually really love homebrew
<ericwood>
it's been so nice to me
timonv has quit [Ping timeout: 240 seconds]
<centrx>
We need a package manager that will install ANY file!
<shevy>
yes centrx
<ericwood>
well, in defense of rubygems, it's kinda like designed for ruby libs...
voodoofish430 has left #ruby [#ruby]
<shevy>
yeah
jespada has quit [Remote host closed the connection]
<shevy>
by and large rubygems is quite ok
<shevy>
a bit too slow at times or so it appears
<jeeves>
lol
phinfonet has joined #ruby
<jeeves>
budle is broken.. grrrrrrr. everything I touch is broken
<shevy>
jeeves now you know why I don't use it :P
Xeago_ has quit [Remote host closed the connection]
<jeeves>
yea yea
<shevy>
jeeves though it's not so much the broken stuff, one can often work around; it's more like that it tries to do things on its own
<workmad3>
jeeves: 'broken' means what exactly here? :)
<shevy>
here is the most famous quote I have from it:
jespada has joined #ruby
little_fu has quit [Remote host closed the connection]
<jeeves>
it won't matter if it's a comuter or a tool. everything that I pick up is broken. I spend more time fixing things than I do fixing things that need to be fixed.
andrewlio has quit [Remote host closed the connection]
<shevy>
June 2012: <banisterfiend> somehow bundler is getting in the way but i didnt ask bundler to do a damn thing
<jeeves>
I'll pick up a screwdriver, and someone will have broken the blade in half.
little_fu has joined #ruby
<shevy>
jeeves you need to pick the good tools and avoid the bad
<shevy>
and some projects are broken so one should avoid these as well
Xeago has joined #ruby
<jeeves>
lol
<shevy>
jeeves here is the most important basic question firstly
Xeago has quit [Remote host closed the connection]
<shevy>
(1) does irb work?
<shevy>
and then
<shevy>
(2) does gem work?
momomomomo has quit [Quit: momomomomo]
<jeeves>
I don't get that option. I'm usally the last guy to get called in because they know I'll keep at it until it's fixed. two weekends ago, I spent 16 hours in the machine shop making a tool to fix sometihg. I'm NOT a machinist. I'm an Administrator
eka has quit [Ping timeout: 272 seconds]
<shevy>
if you can answer twice with yes then your situation is not totally hopeless
rbartos has joined #ruby
<shevy>
you were simply unlucky to be available
<shevy>
you should improve your hidey mode
<shevy>
or delegate to others
<jeeves>
lol yea.
<shevy>
hey, ruby question now
<jeeves>
ok, what gives with this "could not locate gemfile" crap?!
<shevy>
the newer pickaxe gives an example of instance_method()
<shevy>
as opposed to using alias_method
Xeago has joined #ruby
<shevy>
but I am unsure ... do people rather use alias-ways or instance_method ways to refer to old methods, that they wish to change?
<shevy>
jeeves I guess it could not find the file called Gemfile
gondalier has joined #ruby
<shevy>
/Depot/Downloads/gltail-master/Gemfile
<shevy>
gltail has it though
jahkobi has joined #ruby
little_fu has quit [Ping timeout: 240 seconds]
Ankhers has quit [Read error: Connection reset by peer]
gondalier has quit [Client Quit]
<jeeves>
nm, went into the program folder, and it did it's thing
lkb has joined #ruby
<shevy>
haha
Takle has quit [Remote host closed the connection]
eka has joined #ruby
mary5030 has quit [Remote host closed the connection]
<jeeves>
I think we have a winner here on the Ubuntu machine. Windows, not so much
jmbrown412 has joined #ruby
maletor has joined #ruby
havenwood has joined #ruby
mikepack has quit [Remote host closed the connection]
djbkd has joined #ruby
mary5030 has joined #ruby
shredding has quit [Quit: shredding]
mary5030 has quit [Remote host closed the connection]
mary5030 has joined #ruby
eka has quit [Ping timeout: 255 seconds]
thisirs has joined #ruby
<jeeves>
shevy, can you give me a quick hand with this error?
baroquebobcat has quit [Quit: baroquebobcat]
SBoolean has quit [Ping timeout: 240 seconds]
ziyadb has joined #ruby
<shevy>
what error
<shevy>
shall I read your mind
<shevy>
ACK
<shevy>
YOU WERE THINKING ABOUT BOOBS
eka has joined #ruby
<jeeves>
one sec. trying to pastebin
<shevy>
please not pastebin :(
<shevy>
gist github or pastie.org
<shevy>
pastebin plays flash ads :P
<jeeves>
DL is deprecated, please use Fiddle]
<shevy>
well
<shevy>
that is bad
<jeeves>
No such file or directory - git ls-files from
<shevy>
lol
Zenigor has joined #ruby
<shevy>
that sounds like bundler trying to use git
<shevy>
there is #bundler btw if you really wanna try to find out what it is running
mikepack has joined #ruby
lkba has joined #ruby
<jeeves>
oh, thanks
<shevy>
I opted the lazy way and live a bundler-free life
<ddv>
check your gemspec
kaspergrubbe has joined #ruby
<jeeves>
ddv, I don't know what that is
toastynerd has joined #ruby
Aryasam_ has joined #ruby
<jeeves>
how do I fix this one now? "/var/lib/gems/1.9.1/gems/chipmunk-5.3.4.5/lib/chipmunk.rb:6: Use RbConfig instead of obsolete and deprecated Config.
<jeeves>
"
doev has quit [Ping timeout: 244 seconds]
hpoydar has joined #ruby
Aryasam has quit [Ping timeout: 240 seconds]
<jhass>
by doing what it says
SBoolean has joined #ruby
<jhass>
should only be a warning though?
<centrx>
It must be a warning. The chipmunk github page says it supports 1.9.x
<jeeves>
ok, one sec
BradLsys has joined #ruby
BradLsys has quit [Read error: Connection reset by peer]
tkuchiki has quit [Remote host closed the connection]
<jhass>
gl_tail.yaml has a syntax error on line 5 column 38
phinfonet has quit [Ping timeout: 240 seconds]
jottr_ has quit [Ping timeout: 264 seconds]
phinfonet has joined #ruby
razrunelord has joined #ruby
Hobogrammer has quit [Ping timeout: 272 seconds]
IceDragon has joined #ruby
iceden has quit [Ping timeout: 264 seconds]
AndChat| has joined #ruby
lkba has quit [Read error: Connection reset by peer]
francisfish has quit [Remote host closed the connection]
havenwood has quit [Remote host closed the connection]
dumdedum has quit [Quit: foo]
baroquebobcat has joined #ruby
<jeeves>
jhass. lol
gondalier has joined #ruby
scarolan has joined #ruby
vpretzel has joined #ruby
robbyoconnor has quit [Excess Flood]
scarolan has quit [Client Quit]
robbyoconnor has joined #ruby
Eiam has joined #ruby
maximski has joined #ruby
snath has quit [Ping timeout: 245 seconds]
rebelshrug has joined #ruby
rebelshrug has quit [Max SendQ exceeded]
razrunelord has quit []
mr_snowf1ake has joined #ruby
AndChat| has quit [Read error: Connection reset by peer]
lkba has joined #ruby
Joulse has quit [Quit: Joulse]
Aryasam_ has quit [Ping timeout: 272 seconds]
tvw has quit []
redondos has quit [Excess Flood]
sonofflynn has quit [Ping timeout: 240 seconds]
Zebroid has joined #ruby
redondos has joined #ruby
redondos has joined #ruby
redondos has quit [Changing host]
cmhobbs has quit [Quit: Leaving]
towbes has quit [Ping timeout: 255 seconds]
Rahul_Roy has quit [Quit: Connection closed for inactivity]
sonofflynn has joined #ruby
yfeldblum has quit [Remote host closed the connection]
jrhorn424 is now known as zz_jrhorn424
prathamesh has joined #ruby
ixx has quit [Ping timeout: 252 seconds]
fresham has joined #ruby
snath has joined #ruby
charliesome has joined #ruby
<jeeves>
so, if I install gltail from gem install, how do I run it?
larsam has joined #ruby
Zebroid has quit [Ping timeout: 244 seconds]
klaut has quit [Remote host closed the connection]
iceden has joined #ruby
hobogrammer1 has joined #ruby
Arkaniad has joined #ruby
<wasamasa>
hmm
naiyte has joined #ruby
naiyte has quit [Max SendQ exceeded]
eka has quit [Read error: Connection reset by peer]
<wasamasa>
so I've figured out that to use the jsnice api I need to use a http library that supports chunked/streaming upload
<wasamasa>
interesting
<wasamasa>
looks like em-http-request does that
eka has joined #ruby
Shidash has joined #ruby
naiyte has joined #ruby
mikecmpbll has joined #ruby
<stian>
does anyone work as a developer full time in here?
kevind has joined #ruby
<centrx>
stian, Many
stytown has joined #ruby
danielpclark has quit [Ping timeout: 240 seconds]
danielpclark has joined #ruby
CaptainJet has quit []
SBoolean has quit [Ping timeout: 240 seconds]
SBoolean_ has joined #ruby
<stian>
hmm
<stian>
I'm curious, at the age of soon to be 26, and just starting out is it eevn possible for me to get a job within software development
<stian>
or development at all really
<centrx>
Why wouldn't it be?
<stian>
I dunno
<stian>
the bar is high
maestrojed has joined #ruby
<stian>
I'm getting old
<centrx>
Even 100 year olds are not old
hpoydar has quit [Remote host closed the connection]
larsam has quit [Remote host closed the connection]
<stian>
:D
<centrx>
Computer-related fields are a growing industry
chth0n has quit [Ping timeout: 240 seconds]
hpoydar has joined #ruby
dc has joined #ruby
<stian>
so from being a complete noob, such as myself to actually landing a job
<centrx>
They are one of the few fields much less affected by the recession
jeeves has quit []
<stian>
how many years do you think that'd take; realistically
<centrx>
*some of the few fields
<stian>
5 years?
<centrx>
Have you done anything with computers in the last 26 years?
<stian>
Yes I have been working within IT for about 2 years full time for a small software development company now
axl_ has joined #ruby
<stian>
had a few jobs here and there within IT too, mostly administrative crap
ta has joined #ruby
diegoviola has joined #ruby
<centrx>
Is this system administration/network administration?
<stian>
yes
<centrx>
technical support/help desk?
<stian>
I do both currently
<stian>
all of those
<centrx>
What programming have you done?
alex88_ has quit [Quit: Leaving...]
<centrx>
Did you ever have that one day of class in the 6th grade where you learned BASIC for a day?
<stian>
I've written a caller id module in asterisk (php) and a temperature converter in ruby
<GeekOnCoffee>
get a decent github profile with ruby/rails work and you'll have little trouble finding work
<stian>
already know github :D
djbkd has quit [Remote host closed the connection]
<stian>
s/github/git
<Sou|cutter>
bottom line, it doesn't take 5 years of experience to get a junior level developer position
<stian>
yes I did do basic but I hated it to hell
<stian>
did a bit of pearl too but I didn't pay attention in school at all
* wasamasa
was told at his current internship to learn some ruby and rails
<wasamasa>
that's why I'm here
<Edelwin>
Hi
<stian>
I don't even care about rails at this point :P
eka has quit [Ping timeout: 240 seconds]
hpoydar has quit [Ping timeout: 264 seconds]
nowthatsamatt has quit [Quit: nowthatsamatt]
towbes has joined #ruby
<shevy>
haha
skaflem has quit [Quit: This computer has gone to sleep]
einarj_ has quit [Remote host closed the connection]
<stian>
Sou|cutter: how many years would you say then if you were to just throw a number out there
<shevy>
wasamasa we here are good at ruby
<GeekOnCoffee>
stian: find something to care about and make yourself an expert
<shevy>
but we suck at rails
dANOKELOFF has joined #ruby
<shevy>
so we push them over towards #rubyonrails
skaflem has joined #ruby
<stian>
GeekOnCoffee: that's my problem :P
<Sou|cutter>
stian: set a goal, work towards it. How long it takes depends on how hard you work, but I've seen people ramp up to junior developer in less than a year. It depends on the person
<stian>
GeekOnCoffee: don't really care about anything tbh
<shevy>
stian walks into a pub and sees two sturdy booleans, asking:
bradleyprice has joined #ruby
naiyte has joined #ruby
<shevy>
[someone else continue the joke]
<shevy>
sorry :P
chrishough has joined #ruby
edgarjs_afk is now known as edgarjs
naiyte1 has joined #ruby
<jhass>
I didn't even know php had casts
naiyte1 has left #ruby [#ruby]
saarinen has joined #ruby
saarinen has quit [Client Quit]
<stian>
I don't even know what that is
<jhass>
(array)json_decode($value,true); looks like one
naiyte1 has joined #ruby
<jhass>
normally you have that in statically typed languages
elricsfate has joined #ruby
<shevy>
php has cats?
<stian>
lol
<shevy>
oh yeah
<stian>
jhass: it's above my head
renier has quit [Ping timeout: 244 seconds]
<shevy>
I remember the () one
<stian>
all that code is hacked together
<shevy>
it did remind me of C/LPC
naiyte1 has left #ruby [#ruby]
naiyte1 has joined #ruby
<jhass>
you get an object of some super type, say Number, but you know it's actually its subclass Integer and you need a feature only the child has
<jhass>
so you cast it into that
naiyte1 has left #ruby [#ruby]
<jhass>
basically tell the compiler, "I know this is this class, treat it as such"
saarinen has joined #ruby
<jhass>
php probably abuses it to do some kind of conversion
<shevy>
please stian
naiyte1 has joined #ruby
<shevy>
leave your dark past behind today
naiyte1 has left #ruby [#ruby]
<stian>
indeed
goleldar has joined #ruby
<stian>
I'm just going to clean it up, add some regex and call it a day
<stian>
then leave php behind
qwyeth has quit [Quit: Leaving]
bradleyprice has quit [Ping timeout: 240 seconds]
<stian>
as I said, only wrote it because the modules are in php
Spami has joined #ruby
blackmesa has joined #ruby
<pontiki>
that really is a valid reason
naiyte has quit [Ping timeout: 264 seconds]
<stian>
lol
eka has joined #ruby
Takle has joined #ruby
naiyte has joined #ruby
oliver3 has joined #ruby
Arkaniad has quit [Ping timeout: 264 seconds]
<stian>
well, I don't know how I could of written it in ruby then had it work with the module I would of written it for, would have to have made some sort of wrapper
<stian>
or as someone mentioned, shelled out and called my ruby script I guess
qhartman has quit [Quit: Ex-Chat]
<pontiki>
don't
<stian>
but it needs to return the caller id in time and meh
<pontiki>
really
eka_ has joined #ruby
<stian>
haha :)
<pontiki>
if you start mixing languages in a package, future maintainers will be highly confused
<stian>
indeed
bean__ has quit [Quit: bean__]
<pontiki>
and shelling out to another script adds way more process overhead
<stian>
I want to make the module usable so it can be merged if wanted, then from there move on to more ruby stuff
eka_ has quit [Read error: Connection reset by peer]
axl_ has joined #ruby
<stian>
I've got a lot of motivation now at least after this weekend of hell
djbkd has quit [Remote host closed the connection]
<shevy>
of course one day you may also hate parts of ruby
chrstphrhrt has quit [Quit: chrstphrhrt]
<centrx>
It is so clean
<shevy>
but it will still stay significantly nicer than php
<stian>
sure
posixpascal has joined #ruby
renier has joined #ruby
<shevy>
python probably is better than php as well :P
<pontiki>
become deeply benched in as many languages as you can, as many systems, packages, etc
<centrx>
Everything is better than PHP.
<stian>
I really don't care that much as long as I'm learning something, besides it's a language
<pontiki>
become the most versatile developer you can
<stian>
pontiki: this
Xeago has quit [Remote host closed the connection]
<pontiki>
centrx: COBOL is MUCH worse than PHP
<stian>
I need to learn the concepts more than language imo
<wasamasa>
hmpf
axl_ has quit [Client Quit]
eka_ has joined #ruby
<stian>
currently reading "Well-Grounded Rubyist", really good book
siflyn has joined #ruby
<pontiki>
yes; programming is itself a skill separate from language syntax and libraries
<centrx>
COBOL is at least organized and self-consistent
<wasamasa>
eventmachine throws me an error when I attempt using its streaming example
dukedave has joined #ruby
eka has quit [Ping timeout: 272 seconds]
<centrx>
COBOL is insane, yes, but it is not fundamentally as bad as PHP in every respect
<stian>
pontiki: :)
Kruppe has joined #ruby
djbkd has joined #ruby
tjr9898 has quit [Remote host closed the connection]
havenwood has joined #ruby
Morkel has joined #ruby
NivenHuH has joined #ruby
djbkd has quit [Read error: Connection reset by peer]
_djbkd has joined #ruby
testcore has joined #ruby
<pontiki>
you may certainly choose to never write in PHP, but I choose to know PHP well enough that I can write useful and maintainable code in it when it is required.
<stian>
I agree
<stian>
being versitile is a good thing
maoko has joined #ruby
francisfish has joined #ruby
ehc has quit [Quit: ehc]
<pontiki>
i will say writing in ruby is a whole lot more fun than writing in PHP
<stian>
uh
<stian>
*duh
<wasamasa>
requiring the right thing kind of fixed it except
<Darkchaos>
however still not better. I hate it :D Will just touch and copy+paste..
<jhass>
lolmaus: make foo a constant
endash has joined #ruby
freerobby has quit [Read error: Connection reset by peer]
posixpascal has quit [Ping timeout: 252 seconds]
<jhass>
lolmaus: if it's not a constant value make it a parameter to bar
<Darkchaos>
works^^
maoko has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
freerobby has joined #ruby
eka_ has quit [Ping timeout: 240 seconds]
<jhass>
lolmaus: or an instance variable that has to be defined in the class the module is included to
shinobi_one has joined #ruby
Notte has quit [Remote host closed the connection]
havenwood has quit [Ping timeout: 264 seconds]
<RubyPanther>
pontiki: it doesn't press your key, but it will tend to generate your platforms end-of-line sequence. In shells and most editors it will really generate the enter key keycode. The shell would not have any special ^M code for that in most cases
sinkensabe has joined #ruby
<RubyPanther>
obviously some editors will trap everything from the keyboard and then actually see the ^M but that is atypical behavior
<pontiki>
you of course realize you're not saying anything in particular?
icole has joined #ruby
<pontiki>
quite tautological
<lolmaus>
jhass: it's a value read from a Yaml file, so i believe i can make it a constant.
<RubyPanther>
"Gee, I didn't get the point... there must not have been one!"
<Darkchaos>
No. My Case was: Ruby File made on Windows Machine. Encoding set to Windows/ANSI
mikepack has quit [Remote host closed the connection]
<RubyPanther>
pontiki: Yeah, I do get that a lot.
<Darkchaos>
so, was expected
<pontiki>
a platform-specific end of line seuquence will generate an end of line response
ghr has quit [Ping timeout: 240 seconds]
<Darkchaos>
however: How would I deploy my Files to a Linux machine then? or vice-versa?
danijoo has quit [Read error: Connection reset by peer]
<jhass>
Darkchaos: a decent editor lets you create files with UNIX lineendings and (BOM-less) UTF-8 on any platform
<jhass>
make sure your ftp client doesn't mess it up again, if that's what you're using
danijoo has joined #ruby
<Darkchaos>
yes but I mean it's ruby. How might I ensure that it works on both platforms?
<Edelwin>
Darkchaos: look at the code of the ruby VM
sinkensabe has quit [Remote host closed the connection]
<Darkchaos>
It would work with that editor I guess
ixti has quit [Ping timeout: 264 seconds]
b00stfr3ak has quit [Ping timeout: 244 seconds]
<Darkchaos>
Edelwin: does it auto-adopt?
<jhass>
1) don't use a shebang, 2) declare the encoding at the top (# -*- encoding: utf8) 3) run with ruby file.rb
jobewan has joined #ruby
<_pingu>
I start some rspec tests with: RSpec::Core::Runner.run(existing_test_files) How can I assign a custom object to the runner, that i have access to this object in the tests? Documetation for RSpec::Core::Runner.run says: run(args, err = $stderr, out = $stdout). so, can I do RSpec::Core::Runner.run(existing_test_files, myObject) ?
tier has quit [Remote host closed the connection]
gattuso has quit [Read error: Connection reset by peer]
<Darkchaos>
jhass: And What to do when I want to have it in the BASH Path. Alias to ruby file.rb?
AlSquire has quit [Quit: This computer has gone to sleep]
havenwood has joined #ruby
qwyeth has joined #ruby
<RubyPanther>
Darkchaos: if you take off the \r crap then it works fine everywhere. You gain portability by doing it the *nix way
<jhass>
Darkchaos: I don't work with windows, but you even if you add a shebang you should be able to run it with ruby file.rb there
Thermo has joined #ruby
b00stfr3ak has joined #ruby
St_Marx has quit [Quit: Ex-Chat]
<RubyPanther>
windows will use the file extension and ignore the #!
LekeFly has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<RubyPanther>
so you use both correctly
<Darkchaos>
jhass: That was dedicated to linux, to have it work like a usual unix program?
<Darkchaos>
Okay and strip off \r
eka has joined #ruby
<RubyPanther>
the "correct" *nix ways will already work portably, there is no extra steps
phinfonet has quit []
ra4king has joined #ruby
thisirs has quit [Ping timeout: 240 seconds]
yubrew has joined #ruby
<stian>
dammit centrex
<stian>
where'd ya go
Rahul_Roy has joined #ruby
Zebroid has joined #ruby
yfeldblum has joined #ruby
postmodern has joined #ruby
<_pingu>
ok, think i have a way.
_pingu has quit [Quit: ChatZilla 0.9.90.1 [Firefox 30.0/20140608211828]]
mikecmpbll has quit [Quit: i've nodded off.]
chrstphrhrt has joined #ruby
maoko has joined #ruby
dANOKELOFF has quit [Remote host closed the connection]
Xeago has joined #ruby
yubrew has quit [Ping timeout: 264 seconds]
Aryasam has joined #ruby
Xeago has quit [Remote host closed the connection]
Aryasam has quit [Client Quit]
dideler|work has quit [Ping timeout: 245 seconds]
Zebroid has quit [Ping timeout: 264 seconds]
Eiam has quit [Ping timeout: 260 seconds]
Xeago has joined #ruby
dc has quit [Remote host closed the connection]
rdark has quit [Quit: leaving]
LadyRainicorn has quit [Ping timeout: 245 seconds]
rezzack has quit [Quit: Leaving.]
_maes_ has quit [Ping timeout: 244 seconds]
ixti has joined #ruby
|RicharD| has quit [Ping timeout: 245 seconds]
bean__ has joined #ruby
eka has quit [Ping timeout: 240 seconds]
shinobi_one has quit [Quit: shinobi_one]
rezzack has joined #ruby
Macaveli has joined #ruby
rezzack has quit [Client Quit]
dideler|work has joined #ruby
Notte has joined #ruby
ehc has joined #ruby
whitedawg has quit [Quit: Leaving.]
b00stfr3ak has quit [Read error: Connection reset by peer]
eka has joined #ruby
alexju has quit [Remote host closed the connection]
trepidaciousMBR has quit [Quit: trepidaciousMBR]
<stian>
Man the link centrx (I think) posted is fantastic
posixpascal has joined #ruby
Mooneye has joined #ruby
jmurray has quit [Ping timeout: 240 seconds]
tcstar has quit [Ping timeout: 240 seconds]
jonahR has joined #ruby
jonahR has quit [Remote host closed the connection]
iamjusthatdude has joined #ruby
jonahR has joined #ruby
<iamjusthatdude>
rspec is not that hard
xcv has quit [Remote host closed the connection]
lxsameer has quit [Quit: Leaving]
nickgartmann has joined #ruby
tjr9898 has joined #ruby
SBoolean has joined #ruby
axl_ has joined #ruby
SBoolean_ has quit [Ping timeout: 255 seconds]
b00stfr3ak has joined #ruby
treehug88 has quit [Ping timeout: 245 seconds]
SBoolean_ has joined #ruby
sinkensabe has joined #ruby
hakunin_ is now known as hakunin
rbartos has quit [Remote host closed the connection]
towbes has quit [Ping timeout: 272 seconds]
datafirm has joined #ruby
Morkel has quit [Quit: Morkel]
Takle has quit [Remote host closed the connection]
obs has quit [Quit: Konversation terminated!]
SBoolean has quit [Ping timeout: 240 seconds]
willbarrettdev has joined #ruby
jmurray has joined #ruby
sepp2k has joined #ruby
gondalier has joined #ruby
mikecmpbll has joined #ruby
_djbkd has quit [Remote host closed the connection]
yfeldblu_ has joined #ruby
rbartos has joined #ruby
yfeldblum has quit [Ping timeout: 260 seconds]
bradleyprice has joined #ruby
Mooneye is now known as Isak
alexju has joined #ruby
momomomomo has joined #ruby
tcstar has joined #ruby
Isak is now known as J-bIock
<stian>
!seen centrx
nateberkopec has joined #ruby
<stian>
dammeit
<stian>
*dammit
djbkd has joined #ruby
J-bIock is now known as J-brock
JBreit has left #ruby ["Leaving"]
nateberkopec has quit [Client Quit]
J-brock is now known as bartwe
bartwe is now known as ogod
ogod is now known as J-bloke
bradleyp_ has joined #ruby
icole has quit [Remote host closed the connection]
carraroj has joined #ruby
carraroj has quit [Changing host]
carraroj has joined #ruby
bradleyprice has quit [Read error: Connection reset by peer]
<shevy>
last time I used rdoc was like 10 years ago
<rbennacer>
i am escaping the parenthesis
<jhass>
shevy: you haven't been on ruby-doc.org or rubydoc.info ever?
SBoolean_ has quit [Ping timeout: 264 seconds]
<shevy>
tobiasvl yeah; I come to a ratio of about at least 3 lines of docu or docu-related lines compared to real code
<jhass>
or called ri in the last 10 years?
sprihodko has joined #ruby
shinobi_one has quit [Quit: shinobi_one]
<shevy>
I don't have ri
<tobiasvl>
shevy: and why is that a bad thing
<shevy>
all docu is gathered locally and integrated into my knowledge base
<jhass>
shevy: what about ruby-doc.org/rubydoc.info?
<tobiasvl>
why do you want to get rid of comments
timonv_ has joined #ruby
<shevy>
jhass only to extract information for the first time
<tobiasvl>
just set up your editor to hide all comments then ...
<tobiasvl>
jeez what is this discussion
<shevy>
tobiasvl my editors reach the complexity of just about notepad
<shevy>
and a bit colour highlighting
<rbennacer>
any idea?
<jhass>
rbennacer: well, looks like the ) in the filename doesn't actually get escaped
<shevy>
rbennacer that paste is hard to read
<jhass>
rbennacer: use %x[ or %x{ or whatever
shinobi_one has joined #ruby
ghr has joined #ruby
mikespla_ has joined #ruby
sprihodko has quit [Client Quit]
<tobiasvl>
shevy: so you use a bad editor, don't use ri, and don't need comments at all (neither rdoc or inline comments) and you think it would be better to just drop all comments, although you haven't stated why you think it's a good idea to drop them. does that sum up your crazy view on programming ruby
<jhass>
rbennacer: and seriously? wth you need sudo to convert a f*ing movie?
<Senjai>
rbennacer: use a different delimiter as jhass suggested. Or use backticks
<shevy>
rbennacer usually the shell does not like unescaped ( and ) tokens
mikespla_ has quit [Read error: Connection reset by peer]
mikespl__ has joined #ruby
<rbennacer>
i tried to use other delimiter , it is the same problem
<jhass>
oh, yeah the shell is barfing
<rbennacer>
and i am escaping them
<rbennacer>
i am using \(
<shevy>
tobiasvl my editor is perfect; I have no need for ri; comments may be useful sometimes but useless other times - I did not come to a conclusion, I asked a simple question
<jhass>
escape twice or yet better quote
benzrf is now known as benzrf|offline
Giic is now known as Mooneye
<rbennacer>
can it interpolate a variable?
<tobiasvl>
shevy: okay the answer is "no, it would not be better if .rb files have no comments at all"
<rbennacer>
can i use interpolated variables in the %x command
SBoolean has joined #ruby
<stian>
any vim & tmux users in here? :)
<shevy>
rbennacer yep
chrishough has joined #ruby
<rbennacer>
how?
Thermo has quit [Remote host closed the connection]
<rbennacer>
can i get an example
<shevy>
rbennacer though actually, I would rather build the full string before you really want to do that
<iamjusthatdude>
still, don't you guys feel slighted interested on doing some bootcamp stuff?
<stian>
sure I do iamjusthatdude
<stian>
I've though about it alot
<shevy>
though he is from Rio de Janeiro
<iamjusthatdude>
thanks for the support guys
<stian>
but listen man...
<stian>
this is the internet
top4o has joined #ruby
<stian>
and for the future, we don't need visas
<stian>
you can work from home etc
<stian>
if you're skilled
<shevy>
iamjusthatdude he wrote htop and started gobolinux back when he was a student
<stian>
htop huh :P I use that a lot
<iamjusthatdude>
wow
<iamjusthatdude>
there are a lot of talented people around here
<shevy>
I forgot where he works now... I think it used to be somewhere in his CV
<stian>
sure are a lot of talented people here no doubt
<shevy>
though he also finished his master thesis quite some years ago
<stian>
but you'll always think everyone else is better than you, smarter than you
<stian>
what you need to do is to start believing in yourself, and apply yourself to what you want to do
little_f_ has quit [Remote host closed the connection]
<stian>
and just take it one step at a time
<iamjusthatdude>
thanks man
<iamjusthatdude>
really, Thank you very much
<stian>
I barely know how to write a simple program in ruby, and I'm 26 years old
<iamjusthatdude>
I just need to breathe, think and fight
<stian>
I barely know shit
<stian>
might loose my job in a month
<iamjusthatdude>
why is that? :/
mikespl__ has quit [Read error: Connection reset by peer]
<stian>
I do technical support for a pretty small startup here in norway, and we're running out of money
<stian>
I'll be the first on the chopping block most likely
mikesplain has joined #ruby
<shevy>
fish filet!
<stian>
we've got some US investors at this point but I dunno if they'll pick us up or not, and either way I think I'll get the boot
<iamjusthatdude>
that's bad man
<iamjusthatdude>
whats your plan?
<stian>
I have none
<iamjusthatdude>
to get out of this situation
<stian>
live with my mom maybe
<stian>
I dunno
<iamjusthatdude>
how much do you know to code?
<shevy>
stian go to brazil :D
<jonahR>
i feel you dawgs
<jonahR>
the situation is the same in Puerto Rico
<iamjusthatdude>
we have jobs on tech and developer community here
<iamjusthatdude>
at least in Recife, we do
dc_ has joined #ruby
kilk_ has joined #ruby
<iamjusthatdude>
I hope stuff sort it out foir you stian
<jonahR>
unless you're willing to suck it up and code in Java, .NET or go the lowest you can by doing sites with PHP you're pretty much left with no choice
rbartos has quit []
<stian>
how much do I know to code?
<stian>
I know nothing
diegoviola has quit [Remote host closed the connection]
<iamjusthatdude>
in times like this, I just think to get in my room, and study code for a entire year straight out
<iamjusthatdude>
jonah
<iamjusthatdude>
you could learn to code web
andrewjanssen has quit [Quit: Leaving...]
<iamjusthatdude>
and put your own business up
timonv_ has quit [Remote host closed the connection]
<jonahR>
I've tried but it's hard to get good clients here
<iamjusthatdude>
not even web stian?
francisfish has quit [Remote host closed the connection]
<iamjusthatdude>
You are from porto rico?
<Hanmac1>
jonahR: you can go deeper and program a website in C :p
ndrei has quit [Remote host closed the connection]
<iamjusthatdude>
Stian, save some money
<iamjusthatdude>
and subscribe to treehouse
<iamjusthatdude>
they have great classes on web
jespada has quit [Read error: Connection reset by peer]
<iamjusthatdude>
and even ruby on rails
<iamjusthatdude>
just study your ass off
mikesplain has quit [Ping timeout: 255 seconds]
<jonahR>
most clients aren't willing to pay the real price and want projects dirt cheap
<stian>
hehe
<benzrf>
RoR pfft
phutchins has quit [Ping timeout: 240 seconds]
<benzrf>
who needs it!
<stian>
I can't save moeny tbh
<momomomomo>
a good way to start is by gonig through harvard's cs50 course
<iamjusthatdude>
just pay it directly with your credit card dude
<iamjusthatdude>
you can do it
<iamjusthatdude>
I'm ending Ruby basic syntax
<stian>
I don't have CC
<iamjusthatdude>
and I will get back to web dev
<stian>
I don't know ifI even want to be a developer
<stian>
I just really like the culture
<stian>
lol
little_fu has joined #ruby
<stian>
I don't know what I want to do in life
<iamjusthatdude>
lol, I see
<stian>
Now tell me that's not worse than your situation
<iamjusthatdude>
I want to learn to code so I can do science better
<iamjusthatdude>
yeah, you are right
<momomomomo>
that's not necessarily a bad place to be
<iamjusthatdude>
but don't give up
<stian>
everyone else I know have something they want to do
<momomomomo>
self discovery is good :p
jahkobi has quit [Quit: jahkobi]
<momomomomo>
I've switched careers 3 times
<iamjusthatdude>
I spent some 4 years to learn what I wish to do with my life
<stian>
momomomomo: I've been self discovering for 6 years now
<momomomomo>
looping back to development; which I did when I was a kid
<stian>
still have no clue haha
<iamjusthatdude>
read books on interesting stuff
<iamjusthatdude>
and read a lot
<iamjusthatdude>
this may help you discover what you are passsionate about
<jonahR>
I've had to give up music to earn a living and still not getting paid enough
Bira has quit [Remote host closed the connection]
maoko has quit [Ping timeout: 272 seconds]
<stian>
but you still have something you're passionate about
<iamjusthatdude>
true
<iamjusthatdude>
I love science, code, math
<iamjusthatdude>
I just need to study it hard
<Hanmac1>
i should commit my recent changes for my scripting engine ... i can say, if someone does understand what the code does, than this one is a pro ;P
djbkd has joined #ruby
<stian>
git commit!
ARCADIVS has joined #ruby
<stian>
I love science too but I hate math
yubrew has joined #ruby
<iamjusthatdude>
math is needed for science :(
gr33n7007h has joined #ruby
<iamjusthatdude>
I'm trying to move from basic math to more advanced calculus
<iamjusthatdude>
come on man, you can do it, you can sort it out too
<iamjusthatdude>
I just need to breathe, and step out of desesperation
<iamjusthatdude>
it will all be fine
<iamjusthatdude>
if we do our work
<iamjusthatdude>
we just need to sort it out
<iamjusthatdude>
I 'learned' basic ruby syntax
ghr has joined #ruby
<iamjusthatdude>
on one/two months on the books
<iamjusthatdude>
still reviewing it
aspires has quit []
<iamjusthatdude>
I have the book names if you need it
<iamjusthatdude>
I'm going to take a bath now, Brazil games is about to start
<iamjusthatdude>
and I'm watching with my future ex-girlfriend
<iamjusthatdude>
and my friends
<shevy>
lol
<stian>
haha
<stian>
damn
jottr_ has quit [Ping timeout: 255 seconds]
<stian>
iamjusthatdude: listen man if you ever need anyonet to talk to I'm here for ya
mjsmith2 has quit []
noop has quit [Ping timeout: 244 seconds]
stytown has joined #ruby
<stian>
and if you ever need any help I'm sure the guys who know ruby here can help
mjsmith2 has joined #ruby
mehlah has joined #ruby
<iamjusthatdude>
okay man, thanks
<iamjusthatdude>
for real
<iamjusthatdude>
I really needed some perspective
<iamjusthatdude>
thank you all for real
yubrew has quit [Ping timeout: 240 seconds]
<stian>
no worries man
<stian>
Everyone wants to make it big; at least some part of everyone does
<stian>
We all want to magically have enough moeny to be able to live life happily ever after
<stian>
Hanmac: what am I looking at? :)
mikesplain has joined #ruby
shvelo has joined #ruby
datafirm has joined #ruby
Bira has joined #ruby
mikepack has joined #ruby
chrstphrhrt has quit [Quit: chrstphrhrt]
decoponio has quit [Quit: Leaving...]
<Hanmac>
stian: the scripting engine of a new RPG game/system ... this part is for Requirement of features, for dynamic enable and disable of features or similar (with that you can say that Skill A is only available if the Battler has State B or similar)
aspires has joined #ruby
<stian>
Hmm
<Hanmac>
the marked part are helper for parsing and generating xml code (the "database" stuff support xml)
endash has quit [Ping timeout: 244 seconds]
<stian>
cool you can highlight stuff
iamjusthatdude has quit [Ping timeout: 272 seconds]
RyanV has quit [Quit: Computer has gone to sleep.]
<stian>
Ok let me see if I can read the code at least
djbkd has quit [Remote host closed the connection]
<stian>
the method takes a lot of parameters that's for sure
andrewjanssen has joined #ruby
<stian>
have no idea what it does tbh
<stian>
why do you have two methods with the name parse_xml?
<stian>
well one having _ infront
elaptics is now known as elaptics`away
eka has joined #ruby
sdwrage has joined #ruby
djbkd has joined #ruby
<renier>
Hi. Does anyone know if there is a way to generate a dependency graph of your project, without including the development dependencies?
<stian>
Hanmac: :(
djbkd has quit [Remote host closed the connection]
havenwood has quit [Remote host closed the connection]
djbkd has joined #ruby
xcv has joined #ruby
Zebroid has joined #ruby
havenwood has joined #ruby
djbkd has quit [Remote host closed the connection]
<stian>
I wonder how the hell people manage to code after work hours :/
baroquebobcat has joined #ruby
<stian>
that's not how it is for me at all tbh
Kricir has quit [Ping timeout: 272 seconds]
<stian>
my curve is flatline until 10am
<stian>
then lasts until 4-5pm then game over
little_fu has quit [Remote host closed the connection]
sailias has joined #ruby
<stian>
unless I'm really engaged in something and I'm not interrupted
gondalier has joined #ruby
alem0lars has joined #ruby
lkba has quit [Read error: Connection reset by peer]
AndChat| has joined #ruby
<stian>
but that curve is pretty accurate except the night hours as I can't stay awake that late
towbes has joined #ruby
<stian>
either that or I haven't actually really worked on something I'm engaged in in a LONG time :P
<jhass>
:P
<apeiros>
jhass: nice! I try to sleep after midnight nowadays, though :D
nanoyak has quit [Read error: Connection reset by peer]
<jhass>
yeah...
kaspergr_ has quit []
mattmcclure has joined #ruby
nanoyak has joined #ruby
kevind_ has joined #ruby
<stian>
I try to get minimum 7 hours a night
<apeiros>
stian: if that's the case for you, it means your work exhausts you and you're probably working at a too fast pace
<stian>
apeiros: not really tbh
aspires has quit []
<stian>
I work tech support
kilk__ has joined #ruby
<apeiros>
do you watch tv when you get home?
<stian>
no
mikepack has quit [Remote host closed the connection]
<stian>
I never watch tv
<apeiros>
then I have no idea what your problem is :)
<stian>
reddit, probablyu
<stian>
and irc, stuff like that.
francisfish has joined #ruby
<stian>
I lack discipline :)
prathamesh has quit [Remote host closed the connection]
<Poky>
try not using reddit/irc for 14 days. even after you come back, you'll have plenty more time. for quite some time ;)
francisfish has quit [Read error: No route to host]
nanoyak has quit [Client Quit]
kevind has quit [Ping timeout: 244 seconds]
kevind_ is now known as kevind
francisfish has joined #ruby
<stian>
Poky: I'll have to start out with no reddit after work
sailias has quit [Remote host closed the connection]
maestrojed has joined #ruby
<stian>
I reddit a bit at work but that's mostly to take a break etc
<Senjai>
I don't understand how people get hooked on reddit
<stian>
Honestly it's just a way of wasting time
<yxhuvud>
it is easy. Avoid the default subreddits.
<stian>
It's the same with anything really
kilk_ has quit [Ping timeout: 264 seconds]
rippa has quit [Quit: {#`%${%&`+'${`%&NO CARRIER]
<Poky>
yxhuvud: to get or not get hooked?
<yxhuvud>
to get hooked. the default subreddits are pretty crap
nanoyak has joined #ruby
<Poky>
I guess it depends on what you mean by hooked. I mean reading interesting articles / blogs etc. takes way more effort than browsing through gifs. so you might be less likely to daze out while doing so ;)
blackmesa has quit [Ping timeout: 264 seconds]
<stian>
I usually skim the articles and read the comments :(
x1337807x has joined #ruby
<stian>
I'm one of /those/ people
<stian>
haha
nowthatsamatt has joined #ruby
jahkobi has joined #ruby
casheew has joined #ruby
kilk__ has quit [Ping timeout: 272 seconds]
ghr has joined #ruby
casheew has quit [Client Quit]
stytown has quit [Quit: stytown]
djbkd has joined #ruby
codabrink has quit [Ping timeout: 272 seconds]
cocotton has joined #ruby
DouweM has joined #ruby
<Poky>
I usually read comments first. And only if I find it interesting afterwards, the article. :)
codabrink has joined #ruby
Notte has joined #ruby
Notte has quit [Remote host closed the connection]
banister has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
jottr_ has joined #ruby
Xeago has quit [Remote host closed the connection]
x1337807x has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
chrishough has quit [Quit: chrishough]
ARCADIVS has quit [Quit: WeeChat 0.4.3]
yfeldblum has joined #ruby
<Hanmac>
jhass: hey! i have also my own binding for wxWidgets ;P
teoric has quit [Quit: WeeChat 0.4.2]
<bmurt>
this might be a dumb question, but i'm doing some screen scraping on aws' status page, but want to save the result for the next loop up to prevent unnecessary alerts from being sent. my initial thought was to store that value outside of the script, but didn't want to use a file on the filesystem. is there another way?
yfeldblum has quit [Read error: Connection reset by peer]
<jhass>
Hanmac: are they done?
RyanV has joined #ruby
<jhass>
yet?
yfeldblum has joined #ruby
<bmurt>
the script itself is executed via cron so simply storing it in the script would cause it to get wiped on every execution
banister has joined #ruby
<jhass>
bmurt: file would be the classical way. Alternatives are writing a daemon, connecting to some DBMS/datastore
<bmurt>
yeah, damnit
timonv has joined #ruby
jfran has quit [Quit: Going offline, see ya! (www.adiirc.com)]
<bmurt>
i figured as much, because i came across Tempfile but that also goes away when the script ends
Veejay has left #ruby ["WeeChat 0.4.0"]
<jhass>
yeah, tempfiles are for intermediate stuff, you're searching for persistence
scarolan has joined #ruby
kilk__ has joined #ruby
yubrew has joined #ruby
<Hanmac>
jhass: Total Lines : 31,881 Code Lines : 17,744 https://www.ohloh.net/p/rubywx i did many of the code but its still not finish yet :/ but it works with recent wx and recent ruby ... not like wxRuby
<shevy>
hehe
geggam has quit [Quit: wfh_rest_of_day]
<bmurt>
yessir jhass
<shevy>
but you still did not put it into a .gem :(
<bmurt>
oh well, thanks
<jhass>
Hanmac: can I make fresh looking Gnome apps in that?
<jhass>
you know, popovers, action bars, that fancy stuff
scarolan has quit [Client Quit]
<Hanmac>
jhass: ... hm nope most of the stuff is to new and does not have wx widget represents, but i try to add them into wx itself directly later
<Hanmac>
shevy i added wxMessageDialog recently ... with that i might add more sample code (and maybe a gem ... sometime this year ... maybe)
<jhass>
I wish we had a good GI (GObject Introspection) binding
<shevy>
hehehe
<shevy>
didn't you say that last year as well ;P
duncannz has joined #ruby
<jhass>
it's really a wish of mine!
<shevy>
but now you even have less time because you have to work!
TDJACR has quit [Ping timeout: 252 seconds]
timonv has quit [Ping timeout: 255 seconds]
<Hanmac>
shevy i think i will do a rwx gem before centos drop ruby1.8 ;P
<shevy>
we should really map out the percentage of github-based projects in ruby vs. these projects also being available at rubygems.org
chrishough has joined #ruby
posixpascal has joined #ruby
<shevy>
I will bet on centos
terrell_t has joined #ruby
m8 has quit [Quit: Sto andando via]
yubrew has quit [Ping timeout: 245 seconds]
<shvelo>
I wish there was a desktop UI framework that didn't suck
banister is now known as banisterfiend
terrell_t has quit [Read error: Connection reset by peer]
<Hanmac>
shvelo: wxWidgets is nice ... the only bad thing is that it does not have all gtk widgets :/
djbkd has quit [Remote host closed the connection]
<shevy>
so one could write in one language and it works everywehre
little_fu has joined #ruby
ARCADIVS has joined #ruby
<agent_white>
Herro
terrellt has quit [Ping timeout: 255 seconds]
hobogrammer1 has quit [Ping timeout: 264 seconds]
<shvelo>
herro prease
XenoWolf_ has quit [Ping timeout: 240 seconds]
XenoWolf has joined #ruby
djbkd has joined #ruby
<shevy>
whatch guys tarking about
CaptainJet has joined #ruby
<oliver3>
shvelo, Qt. I don't know if there are Ruby bindings, but Qt is the best I've ever used. Next up would be JavaFX (again, no Ruby joy there unless you go JRuby with Java for your controller classes).
<shevy>
nobody here uses ruby + qt :(
<oliver3>
"Best" also being subjective depending on use-case.
chipotle has joined #ruby
<posixpascal>
I think ruby + qt is possible
<posixpascal>
cuz I used it in one of my projects
nanoyak has quit [Read error: Connection reset by peer]
<posixpascal>
but I was just experimenting with QT and switched to PyQT cuz I liked that more.
<shevy>
you read design guidelines for building gnome apps?
<jhass>
well, I never built a serious gnome app before
<jhass>
but I probably would if I do so
<shevy>
the thing is that the core functionality should be very similar among the various toolkits
<shevy>
so let's say a given user has only either qt/kde, or either gtk/gnome
Sawbones has joined #ruby
endash has quit [Ping timeout: 244 seconds]
<shevy>
so you write for the gtk/gnome folks but that leaves out the qt/kde folks
<Hanmac>
shevy rwx can be created as gem, it has the rake commands for that ... i only didnt pushed it yet to rubygems because i still think it is not finish enough for rhat ... there are still many classes missing
<shvelo>
btw what's the best language for creating UI? Is it XML or something else?
<oliver3>
HTML5
<posixpascal>
Depends on the app
kyb3r_ has joined #ruby
<shevy>
I here think that kde konsole is awesome, better than gnome-terminal, but as far as editors are concerned, I think the gtk/gnome based editors beat the qt/kde ones
<jhass>
shevy: my point is that it's better if it fits in one DE than if it fits in none, even if that means it looks even worse in others
<posixpascal>
or project. HTML is pretty nice especially with CSS. Java'S Swing for CrossPlatform is nice too.
<shvelo>
so Node-Webkit?
<shevy>
I like CSS
Zenigor has quit [Remote host closed the connection]
<oliver3>
Seriously actually why didn't I say that before... Sod desktop apps, just write a web app and possibly make it a Chrome desktop app... Maybe utilising this? http://opalrb.org/
gondalier has quit []
mikepack has joined #ruby
<posixpascal>
jhass: You can for sure use both QT and GTK
<shevy>
I think gtk3 gave people in gnome-land for the first time the ability to use or markup in a css-like fashion
timgauthier has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<jhass>
posixpascal: yeah, in case I get more bored than usual
<posixpascal>
OpalRB isn't production ready in my opinion. It has a large footprint of libraries and you'd better drive with javascript alone.
<shevy>
imagine if we would be able to design the whole UI of any web app, qt, gnome, or windows app in just css alone!
nickgartmann has quit [Quit: Connection closed for inactivity]
<jhass>
gtk is pretty much there
GriffinHeart has joined #ruby
<oliver3>
posixpascal, Swing is old school. Java has JavaFX now which replaces Swing. It's similar to the web stack (HTML, CSS, JS) except with more styling properties and a FXML instead of HTML.
<oliver3>
And this is #ruby so I'm going to stop talking about Java.
<posixpascal>
oh didnt know that
<shvelo>
GTK CSS documentation is horrible
<jhass>
now that adwaita will be the default engine
<jhass>
gtk docs in general are horrible
<shvelo>
yup
mikepack_ has joined #ruby
mikepack has quit [Read error: Connection reset by peer]
nfk has joined #ruby
terrell_t has quit [Remote host closed the connection]
<posixpascal>
Well. Node-Webkit is really awesome for building apps. But it'll look different on both: qt and gtk.
closer has quit [*.net *.split]
cibs has quit [*.net *.split]
minecoins has quit [*.net *.split]
Zespre has quit [*.net *.split]
eshy has quit [*.net *.split]
zz_karupa has quit [*.net *.split]
terrellt has joined #ruby
carraroj has quit [Quit: Konversation terminated!]
<posixpascal>
also: you can't remove that 'webpage' feel completely...
Notte_ has joined #ruby
timgauthier has joined #ruby
<jhass>
sure, there are many crossplatform/toolkit technologies, my only point is that they don't work if you want anything that integrates well into your DE and that I prefer stuff that does
<jhass>
same for mobile platforms btw
<Hanmac>
shevy: wxWidgets has a php binding ... think about THAT! ;P
<jhass>
hell, even gtk has one
SilverKey has joined #ruby
Notte has quit [Ping timeout: 255 seconds]
<shvelo>
eww
naiyte1 has quit [Quit: Leaving.]
LiohAu has quit [Quit: LiohAu]
<posixpascal>
I heard about an ICQ client written in php+gtk.
mocfive has joined #ruby
<shvelo>
Android has the best UI framework on Linux yet
jpierre03 has quit [Read error: Connection reset by peer]
GriffinHeart has quit [Ping timeout: 245 seconds]
chrstphrhrt has joined #ruby
duncannz has quit [Ping timeout: 264 seconds]
<posixpascal>
I don't think you'll find the 'perfect' toolkit...
<posixpascal>
which fits into both DE
<shvelo>
Chrome OS seems to be the best-looking Linux distro, but it's also one of the most useless
mikepack_ has quit [Ping timeout: 240 seconds]
naiyte has joined #ruby
Hobogrammer has joined #ruby
naiyte has quit [Max SendQ exceeded]
jpierre03 has joined #ruby
naiyte has joined #ruby
naiyte has quit [Max SendQ exceeded]
elico has joined #ruby
nanoyak has quit [Quit: Computer has gone to sleep.]
Zebroid has joined #ruby
<shvelo>
Why can't Android UI be ported to desktop
naiyte has joined #ruby
naiyte has quit [Max SendQ exceeded]
<elico>
I am trying to insert a lot of records to a mysql using activerecord interface and it seems to take a lot of time to insert each of the rows.
mattstratton has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
mikepack has joined #ruby
<elico>
Are there any ways to make it faster or run it on threads?
<jhass>
elico: have a look at activerecord-import
naiyte has joined #ruby
naiyte has quit [Max SendQ exceeded]
naiyte has joined #ruby
naiyte has quit [Max SendQ exceeded]
naiyte has joined #ruby
naiyte has quit [Max SendQ exceeded]
Zebroid has quit [Ping timeout: 245 seconds]
Sawbones has quit []
sinkensabe has quit [Remote host closed the connection]
<shevy>
anyone knows what .partition does without looking at the doc?
<jhass>
yep
<shevy>
I have an old snippet from manveru
naiyte has joined #ruby
<shevy>
from years ago
<shevy>
looks as if I never looked at it again ... it goes like this:
<shevy>
(splitter = Dir.entries('.')).partition {|i| File.directory?(i)}[0].map{|s| (s[0,1] == ".")? s = nil : s = s}.compact
naiyte has quit [Max SendQ exceeded]
danijoo has quit [Read error: Connection reset by peer]
naiyte has joined #ruby
danijoo has joined #ruby
naiyte has quit [Max SendQ exceeded]
GeraldoRamos has joined #ruby
<shevy>
hmm
naiyte has joined #ruby
<jhass>
the map content is just s if s[0] == '.'
<shevy>
I think that may be the only instance where I have ever used .partition
naiyte has quit [Max SendQ exceeded]
srnty has joined #ruby
boris has quit [Remote host closed the connection]
<elico>
jhass: thanls
<elico>
thanks
Bira has quit [Remote host closed the connection]
naiyte has joined #ruby
Thermo has joined #ruby
naiyte has quit [Max SendQ exceeded]
mary5030 has quit [Remote host closed the connection]
Kricir has joined #ruby
naiyte has joined #ruby
naiyte has quit [Max SendQ exceeded]
cpruitt has joined #ruby
naiyte has joined #ruby
cocotton_ has joined #ruby
naiyte has quit [Max SendQ exceeded]
Sawbones has joined #ruby
naiyte has joined #ruby
naiyte has quit [Max SendQ exceeded]
<elico>
jhass: I am not sure how to even read the documentation on this. I did not found any example which I can try by to understand the usage.
<shevy>
Equivalent to calling Dir.glob(array,0) and Dir.glob([string,...],0)
srnty has quit [Remote host closed the connection]
naiyte has joined #ruby
<shevy>
though you have to keep in mind that these two are not the same
DanielI has quit [Ping timeout: 244 seconds]
naiyte has quit [Max SendQ exceeded]
<shvelo>
Dir.glob accepts enumerator
<shevy>
can you give an example?
naiyte has joined #ruby
terrellt has quit [Ping timeout: 240 seconds]
naiyte has quit [Max SendQ exceeded]
gondalier has joined #ruby
<shvelo>
too lazy
vpretzel_ has joined #ruby
Zespre has joined #ruby
closer009 has joined #ruby
eshy has joined #ruby
cibs has joined #ruby
minecoins has joined #ruby
zz_karupa has joined #ruby
naiyte has joined #ruby
naiyte has quit [Max SendQ exceeded]
nanoyak has quit [Client Quit]
terrell_t has quit [Ping timeout: 264 seconds]
<shvelo>
can we use regex in Dir.glob?
nanoyak has joined #ruby
lord4163 has left #ruby [#ruby]
<jhass>
no, only glob patterns
naiyte has joined #ruby
naiyte has quit [Max SendQ exceeded]
vpretzel has quit [Ping timeout: 240 seconds]
Rollabunna has joined #ruby
jaiks has quit [Ping timeout: 244 seconds]
naiyte has joined #ruby
timgauthier has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
obscured has quit [Quit: leaving]
<elico>
jhass: it's indeed much faster...
<elico>
now I can make it in jumps of 100 instead of 1
Notte_ has quit [Remote host closed the connection]
<elico>
jhass: is there a way to find couple options the same as import ? or maybe you do have in mind an idea how to do a search of 10-20 options in one query?
timgauthier has joined #ruby
<jhass>
"options"?
noeden_ has joined #ruby
Rollabunna has quit [Ping timeout: 245 seconds]
Arkaniad has quit [Ping timeout: 240 seconds]
aspires has quit []
aspires has joined #ruby
<elico>
I have a url which I am dividing into couple segments and which I need to find couple components based on the url but If I do couple queries for each component it will take couple more secs.
<Solnse>
1.upto(below - 1) just looks sloppy to me...
AlexRussia has joined #ruby
<jhass>
I kind of prefer that actually, I find the visual difference between .. and ... too low
ahuman has quit [Quit: No Ping reply in 180 seconds.]
orionstein is now known as orionstein_away
<jhass>
but that's personal preference
x1337807x has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
bmurt has quit []
ahuman has joined #ruby
workmad3 has quit [Ping timeout: 264 seconds]
Bira has quit [Ping timeout: 240 seconds]
top4o has quit [Quit: ChatZilla 0.9.90.1 [Firefox 30.0/20140605174243]]
nickgartmann has joined #ruby
agent_white has joined #ruby
<Solnse>
I seem to remember a simple way to add all numbers in array using map and :+ or something... I can't find anything like that now... any hints?
sdwrage has quit [Quit: This computer has gone to sleep]
jpierre03 has joined #ruby
Poky has quit [Ping timeout: 240 seconds]
shinobi_one has quit [Quit: shinobi_one]
phinfonet has joined #ruby
unop_ has joined #ruby
Zebroid has joined #ruby
shinobi_one has joined #ruby
sdwrage has joined #ruby
nanoyak has quit [Quit: Computer has gone to sleep.]
lemur has quit [Remote host closed the connection]
nanoyak has joined #ruby
Zebroid has quit [Ping timeout: 272 seconds]
Notte has joined #ruby
djbkd has quit [Remote host closed the connection]
nfk has quit [Quit: yawn]
duncannz has joined #ruby
stytown has joined #ruby
Kricir has joined #ruby
asteve has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
banisterfiend has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
sailias has quit [Quit: Leaving.]
djbkd has joined #ruby
gattuso has joined #ruby
Mooneye has quit [Quit: Leaving]
kilk__ has quit [Ping timeout: 240 seconds]
Kricir has quit [Ping timeout: 255 seconds]
SilverKey has quit [Quit: Halted.]
qwyeth has quit [Quit: Leaving]
testcore has quit [Ping timeout: 264 seconds]
isthisreallife has joined #ruby
isthisreallife has left #ruby [#ruby]
chrstphrhrt has quit [Quit: chrstphrhrt]
aniM has joined #ruby
djbkd has quit [Remote host closed the connection]
edgarjs is now known as edgarjs_afk
aspires has quit []
djbkd has joined #ruby
maximski has quit []
jobewan has quit [Quit: Leaving]
aspires has joined #ruby
naiyte has quit [Quit: Leaving.]
geggam has joined #ruby
northfurr has joined #ruby
naiyte has joined #ruby
naiyte has quit [Max SendQ exceeded]
naiyte has joined #ruby
naiyte has quit [Max SendQ exceeded]
timonv has joined #ruby
aspires has quit [Client Quit]
naiyte has joined #ruby
naiyte has quit [Max SendQ exceeded]
rlazoti has joined #ruby
jheg has quit [Quit: jheg]
naiyte has joined #ruby
naiyte has quit [Max SendQ exceeded]
kireevco has quit [Read error: Connection reset by peer]
naiyte has joined #ruby
kireevco has joined #ruby
naiyte has quit [Max SendQ exceeded]
ghr has joined #ruby
divbell has quit [Ping timeout: 240 seconds]
naiyte has joined #ruby
naiyte has quit [Max SendQ exceeded]
andrewjanssen has quit [Quit: Leaving...]
aspires has joined #ruby
naiyte has joined #ruby
marr has joined #ruby
naiyte has quit [Max SendQ exceeded]
timonv has quit [Ping timeout: 240 seconds]
riotjone_ has joined #ruby
naiyte has joined #ruby
Notte has quit [Remote host closed the connection]
divbell has joined #ruby
mjsmith2 has quit [Remote host closed the connection]
duncannz has quit [Ping timeout: 272 seconds]
riotjones has quit [Ping timeout: 240 seconds]
ghr has quit [Ping timeout: 244 seconds]
lkb has quit [Quit: Wychodzi]
siflyn has quit []
posixpascal has quit [Quit: leaving]
aspires has quit []
aspires has joined #ruby
chrstphrhrt has joined #ruby
oliver3 has quit [Quit: Leaving]
edgarjs_afk is now known as edgarjs
djbkd has quit [Read error: Connection reset by peer]
Thermo has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
djbkd has joined #ruby
terrell_t has joined #ruby
GriffinHeart has joined #ruby
Mooneye has joined #ruby
zB0hs has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
vifino has quit [Quit: Me sais Laptop sleepy.]
andrewlio has quit [Quit: Leaving.]
moritzs has quit [Ping timeout: 240 seconds]
terrellt has quit [Ping timeout: 244 seconds]
Kricir has joined #ruby
GriffinHeart has quit [Ping timeout: 255 seconds]
toastynerd has quit [Remote host closed the connection]
Xeago has joined #ruby
codeurge has joined #ruby
toastynerd has joined #ruby
cpruitt has quit [Quit: cpruitt]
brasten has joined #ruby
bbloom has joined #ruby
nanoyak has quit [Quit: Computer has gone to sleep.]
kirun has quit [Quit: Client exiting]
alexju has quit [Remote host closed the connection]
et09 has joined #ruby
<et09>
how do i tidy-style fix the indentation of a ruby file
Xeago has quit [Ping timeout: 272 seconds]
<AntelopeSalad>
et09: do you use sublime?
<et09>
no
<ericwood>
et09: what editor do you use?
<xybre>
In Vim you just gg=G
<ericwood>
^^^^^^
<et09>
wow.
<et09>
that didn't exactly do it correctly tho
Mooneye has quit [Ping timeout: 264 seconds]
<ericwood>
huh?
<ericwood>
what editor do you use?
<et09>
vim with some vimrc set up already
<ericwood>
ah
<ericwood>
ggVG=
<xybre>
It should be based on the syntax file you have and it relies on some settings, like your tabs and stuff.
<et09>
same prob
<AntelopeSalad>
who named that command?
cpruitt has joined #ruby
<et09>
tabstop=4, shiftwidth=4, expandtab
<xybre>
It's not named
<AntelopeSalad>
you literally hit =?
<ericwood>
I highly recommend installing the vim-ruby package rather than the one that ships with vim
<xybre>
"g" is a precursor command, "g" means 'move cursor to top of file' "=" means 're-indent' and "G" means 'all the way to the end of the file'.
<xybre>
You don't type this into a commandline, they are actions performed from Normal mode.
<ericwood>
yep
<ericwood>
stop what you're doing and hit esc 10000 times
charliesome has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<ericwood>
then do what xybre said
<ericwood>
:)
<et09>
that really works awfully
SCHAAP137 has quit [Remote host closed the connection]
<ericwood>
do what I recommended and install the vim-ruby package
<et09>
just indents everything to one space
cpruitt has quit [Read error: Connection reset by peer]
<et09>
ericwood: what do i do after that, ggVG= again?
<ericwood>
restart vim, do the indent trick again yah
<xybre>
It's more of an action sequence. Think of playing a video game on your computer. "wwwwwwwwwaaswwwawwwwd" is what the action might look like to move forward, sidestep left, take a step back run forward and juke right, but you wouldn't call that a named command.
<AntelopeSalad>
yeah i get it now
<et09>
boy, this is not the best readme.md
<ericwood>
you should pastebin the before and after
cpruitt has joined #ruby
<AntelopeSalad>
up up down down left right left right select start
<ericwood>
et09: have you installed a vim package before?
<et09>
yes
<ericwood>
okay
<xybre>
et09: Does vim "know" the file is Ruby?
<et09>
judging by the syn. hilite, yes
<ericwood>
:set filetype=ruby
alem0lars has quit [Quit: alem0lars]
mikepack has quit [Remote host closed the connection]
<et09>
what is the vim runtimepath
andrewjanssen has joined #ruby
<et09>
(isn't there a script that will just do this)
ffranz has quit [Quit: Leaving]
<xybre>
Hmm. I've been using that command since.. like.. 2006 and I've never had an issue. I wonder what the problem is. Gotta be a setting somewhere.
spider-mario has quit [Read error: Connection reset by peer]
ARCADIVS has joined #ruby
<et09>
i have a missing 'end' somewhere, about to blow my brains out over it
nanoyak has joined #ruby
<xybre>
A syntax error could cause Vim to blow up too :p
<et09>
hm
<AntelopeSalad>
is it gistable?
<AntelopeSalad>
i bet i can find it in under 5 seconds
<et09>
i'm not sure
<et09>
its like 500 lines
<AntelopeSalad>
doesn't matter
Zebroid has joined #ruby
<et09>
not sure regardless i mean
j_mcnally has joined #ruby
<j_mcnally>
Heyo
<j_mcnally>
Running into an issue with 2.1.1 / Brew and Ruby-install
<xybre>
Thats the vim-re-indented version from my side. It doesn't look like there is a missing end. :/
<xybre>
At least not in that block.
<et09>
but the vim syntax highlighting has a yellow 'end' instead of brown 'end'
sinkensabe has joined #ruby
<matkal>
my host is in UK, how do i force time for New Zealand
<et09>
maybe not a missing 'end', i'm really not sure
<xybre>
Maybe its an end in the wrong location then.
<xybre>
Which is a bit more difficult to identify.
noob101 has joined #ruby
<xybre>
Because I don't know waht the code is supposed to do (its nightmarish anyway).
julian-delphiki has joined #ruby
Zebroid has quit [Ping timeout: 264 seconds]
<et09>
should i be using sublime here
<et09>
is it gpl
<AntelopeSalad>
sublime does have a plugin that insta perfectly formats ruby
<xybre>
The editor won't make much difference, you can use Sublime if it helps, Sublime isn't FOSS, its Shareware.
<et09>
what a pita
<AntelopeSalad>
every 10min to 40min it pops up a dialog saying to buy it, but it lasts forever
Guest2260 has quit [Ping timeout: 245 seconds]
<AntelopeSalad>
if you don't feel like buying it
<et09>
how much does it cost lol
<AntelopeSalad>
$6,800
<noob101>
I am trying to choose an option. I want computer engineer but in the list that I am looking at, it says three things. Engineer, Engineer/Cooperative Engineering and Engineering/Engineering Technologies. Which one is related to computer engineering?
<xybre>
Not that much, less than 100 bucks.
<jhass>
$70 actually
<noob101>
I know it's a noob question, I just need an answer please. Sorry
nateberkopec has quit [Quit: Leaving...]
<et09>
Noob101: could be any of the 3...
<jhass>
but as said, free to use forever, just that popup on every 15 saves
<AntelopeSalad>
ah 15 saves? i never figured that out
<AntelopeSalad>
thought it was random
<jhass>
iirc, something like that
<xybre>
Noob101: I'd probably stick with just Engineering, but the last one won't scare anyone away either.
<jhass>
might be 20 or whatever
agent_wh1te has joined #ruby
<noob101>
It's not computer technologies?
agent_white has quit [Ping timeout: 244 seconds]
<noob101>
I mean no
terrell_t has quit [Remote host closed the connection]
<noob101>
Engineering technologies? It's not that?
terrellt has joined #ruby
<matkal>
anyone help me with timezone
sinkensabe has quit [Ping timeout: 240 seconds]
<matkal>
in ruby
<matkal>
?
Georg3 has joined #ruby
<noob101>
I would of thought that it was engineering technologies but I will stick with Engineering I guess. Thanks for the help.
<j_mcnally>
What versions of readline are supported currently? I saw a bug about 6.3 not being supported in 6.3 being supported, what version should i have installed?
<xybre>
Noob101: its not a big deal as long as your job description makes sense.
nateberkopec has joined #ruby
<noob101>
Computer engineering doesn't lay below engineering technologies I guess.
francisfish has quit [Remote host closed the connection]
<noob101>
xybre: Oh ok np. I will eat now, thanks for telling me.
libsys has quit [Ping timeout: 245 seconds]
<Georg3>
anyone use vim on mac?
<jhass>
j_mcnally: that was a build system issue and is fixed in the latest releases of 2.0 and 2.1
djbkd has quit [Remote host closed the connection]
<j_mcnally>
hmmm im using ruby-install
jahkobi has quit [Quit: jahkobi]
qhartman has joined #ruby
Bira_ has quit [Remote host closed the connection]
timgauthier has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
Shidash has quit [Ping timeout: 272 seconds]
<AntelopeSalad>
et09: what's with this , addLinkUnderRoute(link.attributes['href'], link.inner_text, @vidresr, j+1) if !link.attributes['href'].to_s.include?("ocw.mit.edu") && if !link.inner_text.include?(/itunes/i)
<AntelopeSalad>
&& if !...
<et09>
u just found it at the same time as me i think
segmond has joined #ruby
<xybre>
Noob101: np
<et09>
inside Session Activites when?
<xybre>
Georg3: Lotsa people.
<AntelopeSalad>
you have a few of them in that group
<AntelopeSalad>
as soon as i put it into rubymine it said i was on drugs
autonomousdev has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<et09>
something in that block is wrong... it ?'s out when i copy and paste it in the editor
jahkobi has joined #ruby
<Georg3>
xybre: I was just curious if by default the configuration files and vimrc was supposed to install to ~/usr/share ?
<xybre>
AntelopeSalad: that code.. my eyes..
<AntelopeSalad>
then notified me of that section
<et09>
xybre: it's meant to be for me only ;)
<et09>
which turned out great
chrstphrhrt has quit [Quit: chrstphrhrt]
autonomousdev has joined #ruby
lemur has joined #ruby
Bira has joined #ruby
<xybre>
Georg3: I'm using MacVim via Homebrew and it only puts stuff in /usr/local/share. Did you compile it yourself?
ARCADIVS has quit [Quit: WeeChat 0.4.3]
x1337807x has joined #ruby
<zzak_>
j_mcnally: yeah, try upgrading to 2.1.2
<j_mcnally>
k thnx zzak_
<xybre>
et09: You msut really dislike yourself :(
<Georg3>
xybre: not I installed macvim through home-brew as well
enebo has quit [Quit: enebo]
<et09>
it's not my fault, it's MIT's fault.
<j_mcnally>
o im an idiot im using 2.1.1
<et09>
unstructured HTML :(
ItSANgo_ has quit [Quit: Leaving...]
<xybre>
Georg3: Hmm. Let me double check my configuration.
<Georg3>
xybre: do you have vim installed? no mvim?
<j_mcnally>
unstructured html?
<matkal>
i have activesupport installed but Time.zone not working for me
<Georg3>
xybre: vim installed alongside mvim*
<et09>
yeah like <h2>section 1</h2><p>...</p>...<h2>section 2><p>...</p><p>...
Takle has quit [Remote host closed the connection]
<et09>
:(
<j_mcnally>
looks strucutred lol
<matkal>
can anyone help with Time.zone
<xybre>
Georg3: I have both (--override-system-vim). There's no ~/usr or ~/shared path on my system though.
<et09>
it's not ideal for my purposes, but w/e
<et09>
mostly dealt with
<j_mcnally>
yeah i feel u
<Georg3>
xybre: I did the same thing, you don't have a /usr/share/vim/vim73 folder on your system?>
gondalier has quit []
freerobby has quit [Quit: Leaving.]
dangerousdave has quit [Ping timeout: 240 seconds]
agent_wh1te has quit [Ping timeout: 245 seconds]
<xybre>
Georg3: I do have a /usr/share/vim folder, yes, but not ~/usr...
<AntelopeSalad>
et09: for fun i grepped the file, there's 36x do and 16x end
<j_mcnally>
et09: is the issue u cant really be sure everything between two h2s actually relate to the original h2?
<et09>
AntelopeSalad: there's each's too
nanoyak has joined #ruby
<xybre>
AntelopeSalad: How the .. wat. O_o
<Georg3>
xybre: duh my bad, I'm still learning the command line and vim - does ~ mean root?
RyanV has quit [Quit: Computer has gone to sleep.]
<et09>
j_mcnally: no, i can. sort of.
<AntelopeSalad>
14x each
<et09>
hmm.
<AntelopeSalad>
30 vs 36
<xybre>
Georg3: Nope, ~ means "home" It's basically a shortcut for $HOME
<et09>
there's each_with_index too
blackmesa has quit [Ping timeout: 240 seconds]
<Georg3>
xybre: ah alright, well glad we have the same setup
agent_white has joined #ruby
<Georg3>
xybre: thanks for checking.
<xybre>
Georg3: Starting a path wit just / on its own implies "root" :)
mehlah has quit [Quit: Leaving...]
<AntelopeSalad>
i don't think this approach will work hah
<Georg3>
xybre: noted! =)
lemur has quit [Ping timeout: 240 seconds]
Kricir has quit [Remote host closed the connection]
<xybre>
Georg3: Your own configurations should go into ~/.vimrc and ~/.vim/
djbkd has joined #ruby
<AntelopeSalad>
but there's no way those if statements are legit
<et09>
which if statements
<et09>
oh
cpruitt has quit [Quit: cpruitt]
<et09>
you're right, wtf
RyanV has joined #ruby
<xybre>
et09: Did you write that code? You didn't, right?
<et09>
why did i write "if" twice
<AntelopeSalad>
i don't know
ARCADIVS has joined #ruby
<xybre>
Okay, code drunk, refactor sober.
<AntelopeSalad>
probably forgot there was a 300 character condition before it haha
<et09>
phew!
<et09>
fixed it
<AntelopeSalad>
it was just those 2 right?
<et09>
yep
<et09>
thanks
<Georg3>
xybre: see thats where I'm lost - I do "cd ~/" then "ls -a" and it shows a bunch of . files even .viminfo but no .vimrc and .vim...
<AntelopeSalad>
np
<xybre>
Georg3: Vim won't create them for you, typically.
danielpclark has quit [Ping timeout: 264 seconds]
<xybre>
Georg3: the .vimrc is just a text file
<Georg3>
xybre: ah ok, that's where I was messed up.
yubrew has joined #ruby
zigomir has quit [Remote host closed the connection]
<xybre>
I commented it pretty well, so you can at least get an idea of whats going on. Soem of it is for plugins I use, and the rest you can always `:help foo` where "foo" is whatever you're not sure about.
naiyte has joined #ruby
nateberkopec has quit [Quit: Leaving...]
naiyte has quit [Max SendQ exceeded]
mconnolly has quit [Quit: mconnolly]
<xybre>
(anything that starts with `let g:` is for a plugin and can be safly ignored when you're starting out)
<Georg3>
xybre: interesting... alright and .vim is a folder where I can create a "colors" folder to add a different theme correct? (stock one kills my eyes)
<Georg3>
xybre: I guess looking at ti again it looks like it's not "required" but they recommend it.
ghr has joined #ruby
<xybre>
Georg3: Oh. Yeah you can skip Janus. It's even bigger and more complex than mine.
mikepack has joined #ruby
mocfive has quit [Remote host closed the connection]
tjr9898 has quit [Remote host closed the connection]
naiyte has joined #ruby
naiyte has quit [Max SendQ exceeded]
tjr9898 has joined #ruby
stytown has quit [Quit: stytown]
naiyte has joined #ruby
<xybre>
Georg3: I'd say starting out from scratch is a good way to do it, but its also good to try on bigger configurations like Janus or mine or someone else's to see how it works/looks/feels and then reverse engineer it back into your own.
mconnolly has quit [Quit: mconnolly]
naiyte has quit [Max SendQ exceeded]
lmickh has quit [Remote host closed the connection]
naiyte has joined #ruby
mconnolly has joined #ruby
shvelo has quit [Ping timeout: 240 seconds]
naiyte has quit [Max SendQ exceeded]
naiyte has joined #ruby
danielpclark has joined #ruby
thesheff17_ has joined #ruby
<Georg3>
xybre: ya what I think I'm going to do is work on getting macvim setup so I can comfortably use it as an editor and go from there. maybe peek into yours and the janus config tomorrow
naiyte has quit [Max SendQ exceeded]
thesheff17 has quit [Disconnected by services]
thesheff17_ is now known as thesheff17
naiyte has joined #ruby
naiyte has quit [Max SendQ exceeded]
<Georg3>
xybre: can you explain something though? In his config he has me put the small snippet after I copy the vim color file into .vim/colors into a .gvim folder
mikepack has quit [Ping timeout: 240 seconds]
<Georg3>
isn't .gvim different than macvim?
ghr has quit [Ping timeout: 264 seconds]
testcore has joined #ruby
<Georg3>
xybre: "~/.gvimrc.after" sorry that's what I'm talking about - will macvim read from this?
DanielI has quit [Quit: Leaving]
naiyte has joined #ruby
nanoyak has quit [Read error: Connection reset by peer]
naiyte has quit [Max SendQ exceeded]
nanoyak has joined #ruby
<xybre>
Georg3: hmm, looking now
djbkd has quit [Remote host closed the connection]
tjr9898 has quit [Ping timeout: 272 seconds]
naiyte has joined #ruby
kenneth has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
naiyte has quit [Max SendQ exceeded]
mikecmpbll has quit [Quit: i've nodded off.]
danman has quit [Quit: danman]
chrstphrhrt has joined #ruby
mikepack has joined #ruby
naiyte has joined #ruby
naiyte has quit [Max SendQ exceeded]
naiyte has joined #ruby
naiyte has quit [Max SendQ exceeded]
xcv has quit [Remote host closed the connection]
naiyte has joined #ruby
naiyte has quit [Max SendQ exceeded]
Arkaniad has joined #ruby
<Georg3>
xybre: I created ~/.vim/colors and added the codeschool.vim file, I just don't know if I follow his next step.
naiyte has joined #ruby
<xybre>
Georg3: I think the .after bit emulates ~/.vim/after but I can't find any documentation on it
naiyte has quit [Max SendQ exceeded]
<Georg3>
xybre: ok well say for now I just want macvim to use that theme, what would be my next step? I have the theme.vim inside ~/.vim/colors
naiyte has joined #ruby
naiyte has quit [Max SendQ exceeded]
<xybre>
Georg3: I just put the colorscheme command in my .vimrc and it works fine. I'm not sure what the difference is. I'm kinda curious now.
jarto has joined #ruby
<xybre>
the #vim guys might know.
naiyte has joined #ruby
naiyte has quit [Max SendQ exceeded]
<Georg3>
xybre: agh that's right :colorscheme - alright. perfect =) - if you end up finding out what it is let me know =P
<xybre>
Oh, I'm using a plugin that translate the colorscheme for terminal-vim also, so it looks nearly as nice as gvim.
freerobby has joined #ruby
naiyte has joined #ruby
naiyte has quit [Max SendQ exceeded]
<Georg3>
O_o? I'm gonna save whatever that is for another day lol
mconnolly has quit [Quit: mconnolly]
<xybre>
Well, colorschemes are defined typically either for Gvim or for normal Vim.
<xybre>
A lot of the really nice ones are only set up for Gvim.
naiyte has joined #ruby
naiyte has quit [Max SendQ exceeded]
<Georg3>
Gvim, vim and MacVim are all different correct?
<xybre>
That annoyed me, so I found a plugin that makes them work for Vim too.
<benzrf>
hey
<Georg3>
gotchya
<benzrf>
i'm using sequel
brasten has quit [Quit: brasten]
nateberkopec has joined #ruby
<benzrf>
how do i check if every item in a list is a primary key of my table
naiyte has joined #ruby
<xybre>
When I say "vim" I mean what yo ucan run from Terminal.app/iTerm, and Gvim I'm using as a blanket description for any GTK, MacVim, etc visual vim outside of a terminal.
<benzrf>
without that many lookups
andrewlio has joined #ruby
naiyte has quit [Max SendQ exceeded]
kenneth has joined #ruby
<Georg3>
xybre: ah ok, I didn't know that correlation.
<xybre>
benzrf: get a list of primary keys for that table?
<xybre>
benzrf: then compare?
<benzrf>
seems like overkill
naiyte has joined #ruby
<benzrf>
there has to be an sql way of doing that
<xybre>
Cause.. uh.. how many primary keys are you going to have...
naiyte has quit [Max SendQ exceeded]
sdwrage has quit [Quit: This computer has gone to sleep]
kevind has quit [Quit: kevind]
<benzrf>
not that many
<benzrf>
but this is a matter of principle :p
Bira has quit [Remote host closed the connection]
<benzrf>
i mean, is a value of some row's primary key
naiyte has joined #ruby
naiyte has quit [Max SendQ exceeded]
<xybre>
Georg3: I make the distinction because OSx doesn't have a very good ability to title windows (Spectacle helps) so I run terminal vim inside of tmux which is much nicer for me than gvim, even though Gvim does a better job with certain rendering bits.
<Georg3>
xybre: gotchya - for color scheme do i need to preface that with
naiyte has joined #ruby
<xybre>
benzrf: Oh, you mean if the primary key is "ID" and the values are 1, 2, 3; given a list of 2, 3, 4 you want to see if they're all valid IDs?
<Georg3>
xybre: ":" or only if I'm entering it inside vim
nanoyak has quit [Quit: Computer has gone to sleep.]
naiyte has quit [Max SendQ exceeded]
<benzrf>
xybre: precisely
<xybre>
Georg3: Only from inside vim, you can leave off the leading :, but I think its still valid if you put it.
mikecmpbll has joined #ruby
<benzrf>
xybre: wait never mind, it would make sense to preload the list of keys anyway
<Georg3>
xybre: excellent.
naiyte has joined #ruby
naiyte has quit [Max SendQ exceeded]
naiyte has joined #ruby
<benzrf>
xybre: nvm im wrong, did you have something in mind?
testcore has quit [Ping timeout: 264 seconds]
naiyte has quit [Max SendQ exceeded]
<xybre>
benzrf: Oh okay, took me a minute. In that case you can do a IN query with a COUNT. Like SELECT COUNT FROM table WHERE id IN (2,3,4); If the length is different than the length of your list, then they don't all match up.
<benzrf>
xybre: is there a simple way to do that with Sequel or should i just write in the sql
naiyte has joined #ruby
naiyte has quit [Max SendQ exceeded]
naiyte has joined #ruby
<xybre>
benzrf: There should be but I'd have to read the docs