Brolen has quit [Remote host closed the connection]
<apeiros>
and blocks can be nested just fine
ixti has joined #ruby
ixti has quit [Client Quit]
meatherly has joined #ruby
aryaching_ has joined #ruby
ixti has joined #ruby
wadawadawsda has joined #ruby
timonv has joined #ruby
waxjar has quit [Ping timeout: 272 seconds]
aryaching has quit [Ping timeout: 272 seconds]
kenneth has joined #ruby
meatherly has quit [Ping timeout: 252 seconds]
MrZYX is now known as MrZYX|off
anddam has quit [Ping timeout: 252 seconds]
timonv has quit [Ping timeout: 240 seconds]
Amart41 has joined #ruby
Hanmac has quit [Ping timeout: 245 seconds]
waxjar has joined #ruby
yfeldblum has quit [Read error: Connection reset by peer]
s2013 has joined #ruby
krisbulman is now known as [krisbulman]
shadoi has joined #ruby
Hanmac has joined #ruby
octoberry has joined #ruby
[krisbulman] is now known as krisbulman
atraylen has joined #ruby
sivoais has quit [Remote host closed the connection]
Amart41 has quit [Ping timeout: 240 seconds]
afhammad has quit []
waxjar has quit [Ping timeout: 245 seconds]
standyro1 has joined #ruby
postmodern has joined #ruby
shadoi has quit [Ping timeout: 245 seconds]
shedd has quit [Remote host closed the connection]
<lagweezle>
Interesting. Was having problems due to --> gem 'rb-fsevent', :require => false if RUBY_PLATFORM =~ /darwin/i
cj3kim has joined #ruby
Albright has joined #ruby
phracker has joined #ruby
phracker has quit [Max SendQ exceeded]
predator117 has joined #ruby
phracker has joined #ruby
<Albright>
Ruby complains when I try to invoke a shell command using a string that contains the NULL byte. Is there a workaround? Both backticks and Process.exec() complain…
kirun has quit [Quit: Client exiting]
aryaching has joined #ruby
<lagweezle>
Trying to run a shell command with a null byte is ... unusual.
funburn has quit [Ping timeout: 260 seconds]
Akuma has joined #ruby
<apeiros>
Albright: you'll have to be a liiiittle bit less vague
<Albright>
lagweezle: Indeed. It’s part of the Stripe CTF challenge… Git hash objects… kinda esoteric stuff.
<apeiros>
"complains" doesn't tell a thing
<Albright>
apeiros: Okay, one minute, I’ll Pastebin.
aryaching_ has quit [Ping timeout: 252 seconds]
<apeiros>
Albright: please use gist
<apeiros>
or at least anything non-ad-ridden. thx.
<xargoon>
escape it?
predator217 has quit [Ping timeout: 245 seconds]
<xargoon>
\0
aspires has quit []
<xargoon>
you cannot execute a shell command with an actual null byte, because the string is null terminated
<apeiros>
ah, no. omitted an edit and got misguided. back to prior statement.
IceyEC has joined #ruby
Wolland has joined #ruby
SiliconG has joined #ruby
<xargoon>
mhm, i would think the only way to pass a null byte to a shell command would be for the external program itself to interpret it from an escaped sequence
iamdoo2 has joined #ruby
<SiliconG>
I am not sure this is the right place to ask but I am trying to install fpm on centos
<SiliconG>
and I am getting an error ERROR: Failed to build gem native extension
krisbulman is now known as [krisbulman]
<xargoon>
since the OS passes the arguments as an array of null terminated strings
<Hanmac>
SiliconG: how did you install ruby? did you install dev packages too?
Cache_Money has joined #ruby
<Hanmac>
SiliconG: what gem does you try to install? the gem install should post a link to a file, post this file in a gist
<SiliconG>
yes - I used yum install ruby ruby-devel
<Morrolan>
Hanmac: fpm.
<apeiros>
xargoon: makes sense
<Morrolan>
I believe it depends on FFI.
sassamo has joined #ruby
<SiliconG>
it just sits there and hangs and then errors our - do I have to install other dev packages?
<apeiros>
I mean it's sad and all, but it's consistent with the observation and would fit with common C implementations
<Hanmac>
SiliconG: post the whole output of gem install into a gist
bean has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<Hanmac>
apeiros: was that about FFI? its nice but i prefer my bindings so that they are safe (Exception and no segfault ... with FFI you cant always got what you want)
iamdoo2 has quit [Ping timeout: 245 seconds]
tylersmith has joined #ruby
<apeiros>
Hanmac: that was about inability to pass \x00 as a shell arg
SCommette has joined #ruby
<Hanmac>
ah ok
<Morrolan>
FFI was about SiliconG's issue. My bet is on its headers missing on his system.
<Morrolan>
But the gem output will tell.
<Disgrntld>
Hello, I'm having trouble getting Ruby to run a Windows Script Host file using backticks (`warbandCLI.vbs "set_factions 6 7"`). I get an "Exec format error", any ideas?
<Hanmac>
Morrolan: i still dont know why he didnt show the log file .. i mean the error message says that he should look into this file ... i did tell him that he should show the file ... i mean i am a very helpful person ... *to much Quest-RPGs* ... but i cant help someone that is not listening ... i cant force him ... yet :P
s2013_ has joined #ruby
<Morrolan>
He's still around. Wait with complaining until he leaves. :P
<Morrolan>
Maybe just taking his sweet time to paste it. :D
tylersmith has quit [Ping timeout: 252 seconds]
s2013 has quit [Ping timeout: 245 seconds]
Somelauw has quit [Quit: WeeChat 0.4.1]
Cache_Money has joined #ruby
Cache_Money has quit [Client Quit]
incade has quit [Remote host closed the connection]
raw has joined #ruby
yfeldblum has quit [Ping timeout: 252 seconds]
<Hanmac>
Morrolan: do you know what i really hate? some one that appears & says: " i need help" then some of us answer: "i will help you what is your problem?" ... and then no respond and log off ... oO ... or even worse, repeating the question, dont respond to helping answers, and THEN log off ...
raw is now known as Guest97446
robustus has quit [Ping timeout: 252 seconds]
<Morrolan>
Yes, those people annoy me too. But hope's not lost yet. :D
<Morrolan>
I don't mind people who take time to respond. There's always something to do, I don't have my IRC client in the foreground 24/7.
<Guest97446>
hello how can i but a variable into ' ' (quotes)?
robustus has joined #ruby
<Morrolan>
Sorry, could you rephrase? (Or maybe give an example of what you want to do)
SCommette has quit [Quit: SCommette]
<Guest97446>
ehm
shedd has joined #ruby
shedd has quit [Read error: Connection reset by peer]
shedd has joined #ruby
<Guest97446>
i i grep a word from a .txt through File.open(.txt)readlines.each do |word|
<shevy>
Guest97446 x = "foo"; x = "'"+x+"'"
vlad_starkov has joined #ruby
<Guest97446>
but i need the word to be in ''
<shevy>
Can you try to finish the words ... ;)
<Hanmac>
Guest97446 first: use File.foreach(txt) not what you have
<Guest97446>
shevy: yea i believe its right
<Guest97446>
Hanmac: y file for each
aryaching_ has joined #ruby
<shevy>
you forget a . before readlines Guest97446 - actually, File.readlines(your_file_here).each {|word| }
vlad_starkov has quit [Read error: Connection reset by peer]
[krisbulman] is now known as krisbulman
SCommette has joined #ruby
maffi has joined #ruby
krisbulman is now known as [krisbulman]
tt1187 has quit [Ping timeout: 252 seconds]
SCommette has quit [Client Quit]
<shevy>
Guest97446 are you still awake
s2013_ is now known as s2013
sparrovv has quit [Remote host closed the connection]
Aryasam has joined #ruby
<Hanmac>
shevy like i said earlier ... wanting help and does not respond if the help was successful ... :/
<lagweezle>
Erm, suggestions for something to keep a process up an running on an EC2 instance?
xcv_ has quit [Remote host closed the connection]
<Hanmac>
lagweezle: dont use to_sym and the process will run longer ;P
aryaching_ has quit []
shedd has quit [Ping timeout: 245 seconds]
<lagweezle>
I ... er ... wat? O.o
<s2013>
stupid question but can ruby be used to control stuff like your mouse and other system stuff
<Hanmac>
s2013: with the right binding yes
* lagweezle
ponders and tries to find the right words.
<s2013>
so some low level binding?
<Hanmac>
s2013: ruby itself cant do that alone .. you need a binding to a c(++) lib that can do that for that what you want
[krisbulman] is now known as krisbulman
<s2013>
cool thanks
<lagweezle>
I need to daemonize a CLI thing I wrote.
bro is now known as sam113101
<lagweezle>
I'd rather use an external monitoring thing (like God, monit, etc.).
<Hanmac>
lagweezle: when you create symbols from userinput or other generated strings they fill up the symbol table (because symbols are not GC'd) ... => more Symbols => bigger SymbolTable => more RAM usage ... ===> if you use to_sym on user input you can DDOS an app
<lagweezle>
Hanmac: ahhh gotcha
<Hanmac>
thats why you need to be careful when you operate on symbols ... specially since Symbols does succ too ;P
jonno11 has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
bradhe has joined #ruby
x77686d has quit [Quit: x77686d]
apeiros has quit [Remote host closed the connection]
shedd has joined #ruby
sparrovv has joined #ruby
apeiros has joined #ruby
zxq9 has joined #ruby
Barrin6 has quit [Quit: Leaving]
bradhe has quit [Ping timeout: 264 seconds]
shedd has quit [Ping timeout: 240 seconds]
rcm7 has joined #ruby
jonah has joined #ruby
Hanmac1 has joined #ruby
ohwhoa has quit [Quit: woah!]
jonno11 has joined #ruby
Hanmac has quit [Ping timeout: 265 seconds]
iamdoo2 has joined #ruby
jamesaanderson has joined #ruby
jamesaanderson has quit [Max SendQ exceeded]
xcv has joined #ruby
jamesaanderson has joined #ruby
jamesaanderson has quit [Remote host closed the connection]
griffindy has quit [Quit: Computer has gone to sleep.]
styped has joined #ruby
styped has quit [Max SendQ exceeded]
iamdoo2 has quit [Ping timeout: 265 seconds]
krisbulman is now known as [krisbulman]
wadawadawsda has quit [Read error: Connection reset by peer]
vlad_starkov has joined #ruby
SiliconG has joined #ruby
vlad_starkov has quit [Read error: Connection reset by peer]
vlad_starkov has joined #ruby
clamstar has quit [Quit: Computer has gone to sleep.]
<sweeper>
well that sucks. TP-Link powerline thernet adapters apparently like to trip AFCI breakers :/
<lagweezle>
EVIL!
clamstar has joined #ruby
nifty has joined #ruby
vlad_starkov has quit [Read error: Connection reset by peer]
kevinykchan has joined #ruby
wadawadawsda has joined #ruby
RoxasShadowRS has quit [Quit: Leaving]
timonv has joined #ruby
shedd has joined #ruby
<lagweezle>
Powerline networking is evil.
jonah has left #ruby [#ruby]
saarinen has joined #ruby
x77686d has joined #ruby
fuhgeddaboudit has joined #ruby
timonv has quit [Ping timeout: 252 seconds]
xcv has quit [Remote host closed the connection]
shedd has quit [Ping timeout: 260 seconds]
awarner_ has quit [Remote host closed the connection]
phipes has quit [Remote host closed the connection]
x77686d has quit [Quit: x77686d]
Hanmac1 has quit [Ping timeout: 272 seconds]
m104 has joined #ruby
hypercube32 has joined #ruby
saarinen has quit [Ping timeout: 264 seconds]
Brolen has joined #ruby
ghanima has joined #ruby
Hanmac has joined #ruby
ckinni has joined #ruby
fuhgeddaboudit has quit [Ping timeout: 272 seconds]
thesheff17 has quit [Ping timeout: 272 seconds]
nateberkopec has quit [Quit: Leaving...]
sassamo has quit [Remote host closed the connection]
sassamo has joined #ruby
Brolen has quit [Ping timeout: 265 seconds]
iliketurtles has joined #ruby
iliketurtles has quit [Excess Flood]
Asher has joined #ruby
Guest97446 has left #ruby [#ruby]
mercwithamouth has quit [Ping timeout: 252 seconds]
Notte has quit [Remote host closed the connection]
sassamo has quit [Ping timeout: 252 seconds]
r0bby_ is now known as robbyoconnor
wadawadawsda has quit [Read error: Connection reset by peer]
Spami has quit [Quit: This computer has gone to sleep]
s2013 has quit [Read error: Connection reset by peer]
bradhe has joined #ruby
Parker0 has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
Parker0 has joined #ruby
chipotle has quit [Ping timeout: 245 seconds]
chipotle has joined #ruby
yazdmich has quit [Ping timeout: 272 seconds]
cj3kim has joined #ruby
nateberkopec has joined #ruby
kevinykchan has quit [Quit: Computer has gone to sleep.]
bradhe has quit [Ping timeout: 265 seconds]
yazdmich has joined #ruby
phipes has joined #ruby
sassamo has joined #ruby
iliketurtles has joined #ruby
iliketurtles has quit [Excess Flood]
braincra- has joined #ruby
Hobogrammer has joined #ruby
shedd has joined #ruby
brucelee has quit [Ping timeout: 252 seconds]
cj3kim has quit [Ping timeout: 252 seconds]
braincrash has quit [Ping timeout: 252 seconds]
* lagweezle
has inflicted a headache on himself, and is mentally exhausted, but SO DAMNED CLOSE to getting this figured out / finished.
nifty has quit [Ping timeout: 252 seconds]
bricker`LA has quit [Ping timeout: 248 seconds]
assurbanipal has quit [Remote host closed the connection]
shedd has quit [Ping timeout: 252 seconds]
gigetoo has quit [Remote host closed the connection]
fixl has joined #ruby
gigetoo has joined #ruby
wadawadawsda has joined #ruby
bean has joined #ruby
sparrovv has quit [Remote host closed the connection]
wynyard has quit [Ping timeout: 252 seconds]
iamdoo2 has joined #ruby
bean has quit [Client Quit]
rootshift has joined #ruby
danshultz has joined #ruby
TripTastic has joined #ruby
iamdoo2 has quit [Ping timeout: 272 seconds]
aspires has quit []
danshultz has quit [Ping timeout: 248 seconds]
ewnd9 has joined #ruby
dogweather has joined #ruby
krz has joined #ruby
JBreit has quit [Ping timeout: 264 seconds]
<dogweather>
There's something about Resque I just don't understand: must the Resque workers process always run on the same machine as the Rails/Sinatra app?
yfeldblum has joined #ruby
wynyard has joined #ruby
ckinni has quit [Ping timeout: 252 seconds]
<ghanima>
is there a hash append method
bricker`LA has joined #ruby
vlad_starkov has joined #ruby
mary5030 has joined #ruby
centrx has joined #ruby
phipes has quit [Read error: Connection reset by peer]
phipes has joined #ruby
yfeldblum has quit [Ping timeout: 245 seconds]
TripTastic has quit [Read error: Connection reset by peer]
burlyscudd has joined #ruby
vlad_starkov has quit [Read error: Connection reset by peer]
vlad_starkov has joined #ruby
vol7ron has joined #ruby
rootshift has quit [Quit: My MacBook has decided to go to sleep. Zzzz..]
<vol7ron>
gem install rails
<vol7ron>
ERROR: While executing gem ... (Gem::RemoteFetcher::UnknownHostError)
<vol7ron>
and yet... i can open that uri in a browser and download
radic has quit [Ping timeout: 265 seconds]
radic has joined #ruby
shedd has joined #ruby
Hanmac has quit [Ping timeout: 252 seconds]
<vol7ron>
never mind -- ran with sudo bah
<vol7ron>
would have thought it'd give me a different error if i wasn't su
w4pm has quit [Ping timeout: 248 seconds]
<sickweezle>
Same :/
<Steve445>
anyone use heavily use GitLab?
Fuzai has quit [Remote host closed the connection]
<Steve445>
anyone heavily use GitLab
<vol7ron>
I like GitLab
<vol7ron>
Very similar to GitHub
mary5030 has quit [Read error: Connection reset by peer]
shedd has quit [Ping timeout: 248 seconds]
<vol7ron>
Though I think it's GitLabs
phinfonet has quit [Quit: exitiing]
<vol7ron>
nope- not plural
jonathanwallace has joined #ruby
luckyruby has joined #ruby
BrindleFly has quit [Quit: BrindleFly]
pskosinski has joined #ruby
Hanmac has joined #ruby
<pskosinski>
Anyone using Bluepill? Any tip why why app is restarting every 4 seconds, while I set checks every 60 seconds?
* sickweezle
snrks.
<sickweezle>
Sorry. No idea. Also, sorry. Ignore the snrk. I'm a bad person.
simoz15 has joined #ruby
s2013 has joined #ruby
bigmac has joined #ruby
bigmac is now known as i8igmac
* vol7ron
luv snrk snrks
havenwood has joined #ruby
e^0 has joined #ruby
<Steve445>
anyone track time in GitLab?
<Steve445>
Tracking the amount of time spent on a issue or code commit
<vol7ron>
Steve can you just use gitlog?
<Steve445>
different beast
nateberkopec has quit [Quit: Leaving...]
<vol7ron>
Yeah one's third party, one's part of git :)
<vol7ron>
how about gitk
<Steve445>
has nothing to do with git
<vol7ron>
issue/code [commit]
<vol7ron>
I would think that's directly related to git
<sickweezle>
Er, I think 'git log' being timestamps vs logging time spent coding / researching / working on an issue being the differences?
<Steve445>
yes
<vol7ron>
timestamps between commits?
<sickweezle>
Time stamp between commits != time spent working on an issue.
<vol7ron>
or timestamps between commit and issue
bradhe has joined #ruby
Jetchisel has joined #ruby
<sickweezle>
vol7ron: Nothing to do with time stamps.
<Steve445>
Loggin the Amount of Time that is spent on a commit or a issue
<sickweezle>
Think more like, "I spent 2 hours and 45 minutes surfing the web to determine that the software bug isn't in our code, but is due to a quirk of the compiler."
<Steve445>
so if a dev spends 4 hours fixing a bug related to a issue, those 4 hours are logged against that issue and reportable
<Steve445>
yes
<vol7ron>
Ah you want to add metadata
<vol7ron>
Nevermind, thought you were trying to pull data that already existed
<sickweezle>
Yay! I was useful.
<RubyPanther>
According to modern theory, it doesn't matter if you were actually doing something else
<sickweezle>
O.o
bradhe has quit [Ping timeout: 260 seconds]
<RubyPanther>
If every time you see a db bug you spend 30 minutes checking the news before you start fixing it, then those bugs really do take an extra 30 minutes to fix. You can actually get accurate metrics even where the measurement doesn't measure "actual" work
<vol7ron>
Modern theory = Modern thievery
baroquebobcat has joined #ruby
mikesplain has joined #ruby
<sickweezle>
Huh.
<pskosinski>
Hm… my problem is that Bluepill is getting different pid number than it thinks that it gets. :/
<vol7ron>
sickweezle: he's using relative metrics, not actual/billable metrics
<RubyPanther>
No, the real life metric is the "actual" billable metric
<vol7ron>
haha love it
<vol7ron>
looks like Undercover Brother
altin has quit [Ping timeout: 240 seconds]
<RubyPanther>
And yes, when I'm doing sysadmin stuff I fix boxes 50% faster than the next guy... because I surf the web and read documents before I change anything non-routine
<RubyPanther>
If web surfing wasn't billable, why would anybody bother with efficient processes? They already know they'll make more money wandering in the dark
Steve445 has quit [Quit: Steve445]
<vol7ron>
RubyPanther: difference between reading documentation to solve a problem and "reading the paper"
i8igmac has quit [Ping timeout: 272 seconds]
<RubyPanther>
You don't know if it had the answer you were looking for until you read it
<vol7ron>
Purpose means a lot. A taxi going out of the way to get paid more is different from it going out of the way to avoid an accident.
mikesplain has quit [Ping timeout: 245 seconds]
e^0 has quit [Quit: WeeChat 0.4.1]
<RubyPanther>
It isn't a useful distinction. How much does the programmer actually get done in n time. THat is reality, it is the true metric. Classification of specific units of time is not productive.
burlyscudd has quit [Quit: Leaving.]
wynyard has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
wynyard has joined #ruby
<vol7ron>
Yes but stopping to play playstation shouldn't count towards that n time
AlSquirrel has quit [Quit: This computer has gone to sleep]
nateberkopec has joined #ruby
jonno11 has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<hypercube32>
RubyPanther, thats funny with the programming link, i remember programming before all these methodologies took hold and it was a flying circus where a programmer (anyone really) could never get anything right and fked up constantly
<hypercube32>
RubyPanther, without management programmers toil all day long on stuff that doesnt make a business money
<RubyPanther>
the person gets more done by the end of the day, who cares if they played 30 minutes of tux racer?
<vol7ron>
Going on vacation, making out with your wife -- you can in-build a "rest", but it needs to be proportionate and relative to the work
wynyard has quit [Client Quit]
<hypercube32>
or just make broken junk not tested all day long
araujo has quit [Remote host closed the connection]
shedd has joined #ruby
<hypercube32>
if programmers truly didnt need management, management by now wouldnt exist in this market. its pretty simple. programmers fail at business, like 98% of the time
<hypercube32>
consider said "dot bomb" that i lived through.
<vol7ron>
hypercube i wouldn't generalize that.. some programmers maybe, others do quite well
<hypercube32>
where every jerk off thought he was worth 125k and a mercedes "because he deserved it"
<havenwood>
hypercube32: billion dollar companies work without management, there is more than one way to do it
<hypercube32>
vol7ron, oh i put in a percentage there. :P
<RubyPanther>
hypercube32: You're not the only old guy around, and when I remember is that teams of passionate programmers who can see both the big picture and also zoom in are efficient working on their own, and some people need to be managed because they get lost in the details (or in useless abstractions)
<RubyPanther>
s/when/what/
<hypercube32>
and its from direct experience with over a thousand programmers in person over decades
<hypercube32>
its pretty simple really
<hypercube32>
something that programmers will never admit
<hypercube32>
such is life
<vol7ron>
haha a made up percentage
gh has joined #ruby
<hypercube32>
RubyPanther, i wouldnt say some, i would say most
<vol7ron>
99% of percentages use "99%"
decoponio has joined #ruby
<hypercube32>
there are many reasons programmers usually make tons less money than infrastructure engineers
<hypercube32>
and need to be managed more than any other in the IT field
<vol7ron>
drugs?
<havenwood>
hypercube32: like CEOs illegally conspiring to keep wages low
<havenwood>
hypercube32: anyways, low software engineer salaries is becoming a thing of the past, and about time
<hypercube32>
havenwood, this is true. but that is a few large companies, how much percentage of all programmers do they actually hold?
mehlah has quit [Quit: Leaving...]
<hypercube32>
havenwood, i doubt it, it will stay that way. companies wont change their mind because a few people file a lawsuit
<sickweezle>
I'm in a tiny company and making 100k a year. I'm basically an SDET.
shedd has quit [Ping timeout: 245 seconds]
<rmroulette>
so, is it a bad idea to tack methods onto primitives? even if they are really simple methods?
<idiocrash>
hmm, what's the name of the rubyonrails channel?
baroquebobcat has quit [Quit: baroquebobcat]
<idiocrash>
#rubyonrails is nonexistent?
<rmroulette>
idiocrash: I would guess #rails or #ruby-rails
<hypercube32>
idiocrash, #rails has people in it
<idiocrash>
aha
<havenwood>
hypercube32: once the collusion stopped due to gov't watching the salaries immediately went up, try to poach a 3-million-a-year google software engineer, g'luck
<idiocrash>
tanks
<hypercube32>
np
<centrx>
idiocrash, #rubyonrails is the more trafficked channel
<hypercube32>
havenwood, how many of those three million dollar engineers are there? my guess is extremely few, you arent a football player, get over it
<havenwood>
and smaller companies do follow the salaries of the large few, you've got to compete for the same pool
<hypercube32>
that three million dollar thing is laughable, its an ego thing solely
<havenwood>
hypercube32: money is money, pay me!!
<vol7ron>
or #ror
<hypercube32>
programmers think they're always gods, yet most cant even maintain the environment they work in.
gh has quit [Quit: Leaving]
<hypercube32>
yet most are paid the least out of IT jobs in a company :/
<hypercube32>
compare network engineer salaries to sr devs and tell me otherwise
idiocrash has quit [Remote host closed the connection]
<vol7ron>
hypercube32: when you replace someone who's spending all day tracking things in an excel sheet, you'll understand why they think that
<sickweezle>
Why would a dev maintain an environment? O.o
<havenwood>
hypercube32: the world is changing
idiocrash has joined #ruby
<hypercube32>
havenwood, you'd hope
<hypercube32>
lol
<hypercube32>
wishful thinking
* sickweezle
shivers at the thought of tracking anything in a spreadsheet.
idiocrash has quit [Client Quit]
<hypercube32>
half of that truth is that business doesnt see value in programmers because they dont handle the millions of dollars in infrastructure like san admins and network engineers
idiocrash has joined #ruby
<hypercube32>
and what holds value makes money
danshultz has joined #ruby
<vol7ron>
not to mention the security you want to ensure with hiring someone with that much power
standyro1 has joined #ruby
<havenwood>
an underpaid programmer is a sad and bizarre thing, but worse is an overpaid executive
<havenwood>
waste of skin
<hypercube32>
havenwood, trade places with an exec and the bullshit and stress they deal with, you'll beg to go back to your job
<hypercube32>
and sit in the corner with your headphones on
bigmac has joined #ruby
Brolen has joined #ruby
<hypercube32>
so we have assets, stress, trust, security, value, and a few other things like high levels of responsibility that programmers do the least in a company...
<hypercube32>
i dont think programmers have yet to demand higher salaries than these other positions ive listed.
bigmac is now known as i8igmac
speakingcode has joined #ruby
<hypercube32>
which is what it would take. oh and the fact that there are literally thousands of times more programmers than there are other types
<RubyPanther>
DBA's make more money because they can communicate directly with the BOFH without needing a translator. Without project managers to translate, developers wouldn't even succeed in getting network resources provisioned.
<rmroulette>
would it be considered 'bad practice' to extend primitive classes, even with simple methods?
<havenwood>
a bit of social savy would double rates
<hypercube32>
which makes them less demand
<hypercube32>
RubyPanther, which would be right considering they house the huge amounts of data that a company values. most times i see dba's making more than programmers as well
<havenwood>
aspergers and wage negotiation skills seldom overlap
danshultz has quit [Ping timeout: 240 seconds]
<havenwood>
we need agents
<hypercube32>
RubyPanther, i do agree
<hypercube32>
havenwood, lol
<hypercube32>
havenwood, yes you do
clamstar has quit [Quit: Computer has gone to sleep.]
<havenwood>
rmroulette: usually i'd say prefer mixins, include or extend modules
<hypercube32>
havenwood, "make friends with someone on the first day, or become someone's bitch" lol
gja has joined #ruby
allaire has joined #ruby
<hypercube32>
havenwood, best thing ive seen programmers do is make friends with the linux admin and maybe a dba
<hypercube32>
rarely a network engineer (if they are clever they will)
skyjumper has left #ruby [#ruby]
<RubyPanther>
rmroulette: "monkey patches" are okay, but they should be implemented as mixins where possible. Also it is bad practice to overwrite existing methods on core classes
<sickweezle>
So wot happens when the programmer knows more about sysadmin than the sysadmin?
axl_ has quit [Quit: axl_]
<RubyPanther>
(except where applicable, like adding logging to something, and in that case if you use method chaining then it is not bad)
gener1c has joined #ruby
<vol7ron>
hypercube32: you have a narrow definition of programmer
yfeldblum has joined #ruby
timonv has joined #ruby
cj3kim has joined #ruby
<RubyPanther>
sickweezle: I'm a better sysadmin than developer, but software bugs are more entertaining than configuration bugs
<vol7ron>
sickweezle: edward snowden
<hypercube32>
vol7ron, its from experience. so yes probably
<hypercube32>
sickweezle, i rarely see that ever happen. ever.
<rmroulette>
RubyPanther: not overwritting, but I can't see how it would be used at all outside of the primitive, so why make me have to use class primitive; extend/include whatever; end when it won't work with anything else?
simoz15 has quit [Ping timeout: 264 seconds]
<vol7ron>
RubyPanther: those are the hardest to fix
<RubyPanther>
Snowden was a better Russian spy than sysadmin, his main client got cracked right under his nose
<hypercube32>
sickweezle, ive seen many programmers claim that and they all end up caving in after a few days sitting dealing with what an admin does. not to say there may not be some out there, but still. doubtful. there is a term for that now, half/half devops
<vol7ron>
he was a contractor that knew more than the sysadmins, hence spy potential
<sickweezle>
I ask, as I did tech support at VMware for 3 years. Many a SAN admin I came across that ended up being generally less knowleadgeable than I. It scares me how incompetent they were.
<RubyPanther>
rmroulette: I'm not sure I understand your question
Davey_ has quit [Quit: Computer has gone to sleep.]
<rmroulette>
i'll message you RubyPanther
<RubyPanther>
please don't
<RubyPanther>
I bite
<sickweezle>
I also left a position at Yahoo! because I detested the lack of reward, and piles of stress, that sysadmin land offered.
<hypercube32>
sickweezle, you have to make difference to people that do their trade, and monkies out there playing the part
<hypercube32>
sickweezle, i dont consider someone who just stepped off the boat any sort of trade expert
<rmroulette>
okok. trying to figure out how to say this in simple terms...
gener1c_ has quit [Ping timeout: 272 seconds]
<hypercube32>
and by stepped off the boat i mean out of college or some shmuck that is a cert liar
<vol7ron>
rmroulette: don't add methods to primitives
<sickweezle>
Mostly I'm trying to figure out if our definitions of sysadmin / network admin / etc. and programmer are vastly different.
<RubyPanther>
a happy sysadmin has to be allowed happy processes
braincra- has quit [Quit: bye bye]
<rmroulette>
RubyPanther: nm I think I got it. thanks
<RubyPanther>
if you're suffering under a BOFH there is no way you can do a good job
timonv has quit [Ping timeout: 240 seconds]
<hypercube32>
sickweezle, and if you mean they dont know the answer to your immediate question, that doesnt count in the world of sysadmin and network engineers because their fields are so vast they work on larger projects they dont memorize everything because its impossible.
yfeldblum has quit [Ping timeout: 252 seconds]
<hypercube32>
sickweezle, there isnt some tiny language they can repeat to themselves nightly.
<havenwood>
yeah, i recite the code of the Ruby stdlib by heart every night
<hypercube32>
RubyPanther, this is true, there needs to be people working together, but mostly i see programmers resent ops because they dont just immediately get whatever crazy thing they want.
<sickweezle>
To quote one of my managers from Yahoo! (who is a pretty good guy), "Some people learn more in a week than others do in a year." I found many are the latter in ... well, both worlds. :/
<hypercube32>
RubyPanther, and rarely do they ever understand the serious details of the case of why they dont get it.
tongcx has joined #ruby
Amart41 has joined #ruby
<hypercube32>
sickweezle, i do agree
<RubyPanther>
Yeah, why don't they get their stuff?
<tongcx>
hi guys, what's the difference between "rackup" and "foreman"?
standyro1 has quit [Ping timeout: 245 seconds]
<RubyPanther>
These days with VMs they should have unlimited toys
tyl has joined #ruby
<sickweezle>
Okay. I guess we're sort of talking the same thing. I also really need to learn that I, and probably most folks in this channel, aren't "programmers".
vlad_starkov has joined #ruby
braincrash has joined #ruby
<hypercube32>
RubyPanther, that doesnt work out at all, considering the resource limitations that still happen under virtualized environments. just having vmware is a way to say you have infinite resources.
<tongcx>
sickweezle: why?
<hypercube32>
sickweezle, im usually talking about programmers as the ones they silo in a company (not devops and not sr people in serious lead positions.)
<RubyPanther>
The worst thing I see is devs with front end experience being thrown at network services and just grasping in the dark at cargo because they don't understand network design
<RubyPanther>
But that is not their fault, that is bad management
<vol7ron>
I've been sick for almost a week and spontaneously drool
<sickweezle>
tongcx: Why, to which?
<hypercube32>
RubyPanther, or just not learning outside their own immediate needs prior
<RubyPanther>
Ruby teams do it all the time
<tongcx>
sickweezle: most guys here aren't "programmers"
<vol7ron>
ruby vs perl6 -- go
<hypercube32>
vol7ron, vitamins and anti-bacterial soap are your friends
<RubyPanther>
Sure, sure, if they were more awesome they'd know more stuff already
<hypercube32>
tongcx, what are they if not programmers?
<rmroulette>
so I'm not modifying any methods, I'm just adding a new one. Is that still bad?
<tongcx>
hypercube32: don't know
<vol7ron>
hypercube32: i think that's what got me into this mess
<RubyPanther>
A bunch of Lusers shuffling around in ruby slippers
<hypercube32>
programmers to me are basically people that arent responsible for anything outside of code base
<sickweezle>
tongcx: Going by what hypercube32 just mentioned, I suspect most folks that stay in here and "live" in the channel are the senior folk, or of the mindset, rather than being the monkey-at-keyboard 'programmer'.
<rmroulette>
its not really something that can be used in other classes, it only would apply to Arrays
Amart41 has quit [Ping timeout: 245 seconds]
<hypercube32>
sickweezle, i didnt point you out as the type im refering, avoid the ego stuff
<tongcx>
hi guys, what's the difference between "rackup" and "foreman"?
<hypercube32>
"he must mean me, so ill take offense"
<hypercube32>
lol
nari has joined #ruby
<RubyPanther>
rmroulette: It is fine to add a method, especially if you name it something non-generic, like a gem blarg might add #to_blarg to Array
vlad_starkov has quit [Ping timeout: 248 seconds]
<havenwood>
tongcx: rackup is the standard default tool for running Rack apps. In addition to just running the Rack app, Foreman manages the app processes.
<rmroulette>
RubyPanther: there we go, just needed to phrase my question more clearly. Thanks!
<vol7ron>
RubyPanther: it's better to subclass
<hypercube32>
but hey guys its been real. but this is taking up some time. thanks for the convo it was enlightening.
<RubyPanther>
but #to_b is generic and shouldn't be touched
hypercube32 has left #ruby ["Leaving"]
<tongcx>
havenwood: so think or unicorn also manages app process, what's the diff?
<RubyPanther>
vol7ron: Sometimes, but often not in Ruby.
<vol7ron>
same here
<havenwood>
tongcx: Unicorn is a Rack webserver.
<vol7ron>
i'm gonna go learn rails again
<sickweezle>
:3
<rmroulette>
vol7ron: I tried that, but the code ended up being 20x longer so I figure that had to be the wrong way
<havenwood>
tongcx: You could use Foreman to launch and manage a Unicorn app.
<sickweezle>
I'm still definitely a young pup.
<vol7ron>
rmroulette: cannot attest to your attempt
<vol7ron>
take care all
<rmroulette>
bye vol7ron
<havenwood>
tongcx: Unicorn, Thin, Puma, Passenger, Webrick, and Reel-Rack are all Rack webservers. Foreman would be more in the company of tools like God and Bluepill.
vol7ron has quit [Quit: Leaving]
<tongcx>
havenwood: so what does Foreman manage? I imagine that Foreman manage the whole processes, and unicorn manage worker processes?
<i8igmac>
can i display a image in my console with out any libs?
<i8igmac>
puts image("face.jpg")
<havenwood>
tongcx: I haven't used Foreman myself, I usually use God with Unicorn.
shedd has joined #ruby
<centrx>
i8igmac, no...
<tongcx>
havenwood: sure, so in your case, what does God manage and what does unicorn manage? I think unicorn manage processes for the sake of load balance
<i8igmac>
centrx: how would you display a image ?
<i8igmac>
in the console
<i8igmac>
tk ?
<havenwood>
tongcx: God launches Unicorn and then keeps it alive.
<tongcx>
havenwood: so if Unicorn dies, God will restart it?
<havenwood>
tongcx: Yup.
<centrx>
i8igmac, consoles don't usually support images
<tongcx>
havenwood: so God keep one Unicorn process and Unicorn keeps a bunch of worker processes?
<guest12345>
maybe this has somthing to do with it
<guest12345>
Started GET "/img/loader.gif" for 127.0.0.1 at 2014-01-26 01:55:30 -0500 ActionController::RoutingError (No route matches [GET] "/img/loader.gif"):
<dseitz>
Okay
yasushi has quit [Remote host closed the connection]
<dseitz>
The asset pipeline is something you'll need to read on
<guest12345>
since the images are surrounded in <a> tags maybe the routes are fucked
Kricir has joined #ruby
<dseitz>
It's not as simple as providing a path, at least not in default configuration under production
<guest12345>
Started GET "/assets/img/portfolio/port06.jpg" for 127.0.0.1 at 2014-01-26 01:55:30 -0500 Served asset /img/portfolio/port06.jpg - 404 Not Found (2ms)
<guest12345>
Started GET "/assets/port01.jpg" for 127.0.0.1 at 2014-01-26 01:55:30 -0500 Served asset /port01.jpg - 404 Not Found (2ms) ActionController::RoutingError (No route matches [GET] "/assets/port01.jpg"):
<guest12345>
yea this is definately the problem but how do i fix
<guest12345>
the only image that works says this
<guest12345>
Started GET "/assets/user.png" for 127.0.0.1 at 2014-01-26 01:55:30 -0500 Served asset /user.png - 304 Not Modified (0ms)
<guest12345>
no that one works because there is not link tag surrounding
<guest12345>
maybe I need to sonfigure the routes for the other images?
<dseitz>
Move the question to #rubyonrails
bradhe has quit [Ping timeout: 245 seconds]
<guest12345>
lol ok
<guest12345>
thats for the logs hint
<guest12345>
i didn tknow they contained all that info tbh
<dseitz>
Throw into a gist on github and share
<guest12345>
so if somthing is broken i should check the logs?
<dseitz>
Yes
brunops has joined #ruby
<dseitz>
Rails, especially in development mode, will almost always tell you of a logic bug, broken route, etc.
<guest12345>
cool
<guest12345>
learned something new today
<dseitz>
as you get more advanced, you may embed things into the HTML which is pretty cool
SiliconG has joined #ruby
<dseitz>
I usually do this for all forms and stuff
<dseitz>
But the asset pipeline is designed for more complex systems; it's not exactly as simple as upload and reference
<guest12345>
ok then thanks a lot
anddam has left #ruby ["WeeChat 0.4.2"]
<guest12345>
Ill definately be looking at your asset pipeline link and the logs tomorrow and thinking about fixing the broken routes
<dseitz>
The solution for the routes is actually easy, you need to work with the asset pipeline and understand it. This is a pro and a con in the same for Rails as a web framework. It makes it excellent for sophisticated web systems. But a downer for up and go web applications. Sinatra is the tool of the trade here.
guest12345 has quit [Ping timeout: 245 seconds]
Tig has joined #ruby
nanoyak has quit [Quit: Computer has gone to sleep.]
shedd has joined #ruby
SiliconG has quit [Ping timeout: 252 seconds]
nanoyak has joined #ruby
phipes has quit [Remote host closed the connection]
Kricir has quit [Remote host closed the connection]
shedd has quit [Ping timeout: 245 seconds]
saarinen has quit [Quit: saarinen]
nanoyak has quit [Ping timeout: 272 seconds]
Guest3765 is now known as ponbiki
browndawg has joined #ruby
danshultz has joined #ruby
kbouwser has quit [Quit: Computer has gone to sleep.]
mocfive has quit [Remote host closed the connection]
danshultz has quit [Ping timeout: 260 seconds]
banisterone has joined #ruby
kbouwser has joined #ruby
mocfive has joined #ruby
gja has joined #ruby
gja has joined #ruby
gja has quit [Changing host]
daxroc has joined #ruby
sassamo_ has joined #ruby
rippa has joined #ruby
stkowski has joined #ruby
timonv has joined #ruby
mocfive has quit [Ping timeout: 272 seconds]
OdNairy has joined #ruby
sassamo has quit [Ping timeout: 272 seconds]
timonv has quit [Read error: Operation timed out]
sky_diver has quit [Ping timeout: 264 seconds]
nitish has quit [Quit: Bye Bye...]
aryaching has quit [Ping timeout: 252 seconds]
Asher has quit [Ping timeout: 252 seconds]
Amart41 has joined #ruby
sassamo_ has quit [Remote host closed the connection]
Steve445 has quit [Quit: Steve445]
sassamo has joined #ruby
kbouwser has quit [Quit: Computer has gone to sleep.]
Amart41 has quit [Ping timeout: 253 seconds]
v10energy has quit [Read error: Operation timed out]
shedd has joined #ruby
w1xz has joined #ruby
shedd has quit [Ping timeout: 240 seconds]
arietis has joined #ruby
iamdoo2 has joined #ruby
brunops has quit [Quit: leaving]
bradhe has joined #ruby
phipes has joined #ruby
iamdoo2 has quit [Ping timeout: 248 seconds]
banisterone has quit [Ping timeout: 264 seconds]
bradhe has quit [Ping timeout: 248 seconds]
p8952 has quit [Ping timeout: 272 seconds]
arietis has quit [Quit: Computer has gone to sleep.]
SiliconG has joined #ruby
phansch has joined #ruby
Asher has joined #ruby
vlad_starkov has joined #ruby
banister has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
klaut has joined #ruby
arietis has joined #ruby
vlad_starkov has quit [Remote host closed the connection]
timonv has quit [Remote host closed the connection]
ewnd9 has quit [Ping timeout: 272 seconds]
Davey has quit [Client Quit]
danshultz has joined #ruby
shedd has quit [Ping timeout: 240 seconds]
bradhe has joined #ruby
_5kg has quit [Ping timeout: 248 seconds]
rootshift has quit [Quit: My MacBook has decided to go to sleep. Zzzz..]
ww26 has joined #ruby
rootshift has joined #ruby
pen has quit [Remote host closed the connection]
danshultz has quit [Ping timeout: 252 seconds]
TripleDE1 has joined #ruby
TripleDE1 is now known as TD_home
bradhe has quit [Ping timeout: 240 seconds]
kirun has joined #ruby
hector has joined #ruby
shime has quit [Ping timeout: 245 seconds]
iMe has joined #ruby
hector has quit []
abdulsattar has quit [Ping timeout: 264 seconds]
RoryHugh_ has quit []
shime has joined #ruby
fixl has quit [Remote host closed the connection]
RoryHughes has joined #ruby
rootshift has quit [Quit: My MacBook has decided to go to sleep. Zzzz..]
cj3kim has quit [Remote host closed the connection]
sepp2k1 has joined #ruby
Chioque has quit [Quit: WeeChat 0.4.2]
sepp2k has quit [Ping timeout: 260 seconds]
jtdowney has joined #ruby
mojjojo has quit [Quit: mojjojo]
srji has quit [Quit: leaving]
prc has quit [Ping timeout: 248 seconds]
adamholt has quit [Ping timeout: 272 seconds]
jtdowney has quit [Client Quit]
OdNairy has joined #ruby
ndrei has quit [Ping timeout: 272 seconds]
srji has joined #ruby
iamdoo2 has joined #ruby
adamholt has joined #ruby
RoryHughes has quit []
ndrei has joined #ruby
dangerousdave has joined #ruby
shedd has joined #ruby
altin has joined #ruby
thomasxie has quit [Quit: Leaving.]
iamdoo2 has quit [Ping timeout: 252 seconds]
adamholt has quit [Ping timeout: 245 seconds]
DrCode has joined #ruby
srji has quit [Quit: leaving]
mando has joined #ruby
kewubenduben has joined #ruby
shedd has quit [Ping timeout: 252 seconds]
Rudde has joined #ruby
Shidash has quit [Ping timeout: 252 seconds]
<Rudde>
Hello guys, after I've installed ruby in Windows, how do I get ruby to be a global command so I don't have to go into bin and write ruby.exe to use it?
workmad3 has joined #ruby
<MrZYX>
iirc windows has a PATH too
mhenrixon has joined #ruby
<lewellyn>
it even has a gui to edit it.
<Rudde>
where do I find it?
<MrZYX>
google
rootshift has joined #ruby
mando has quit [Ping timeout: 272 seconds]
srji has joined #ruby
<lewellyn>
system properties
mehlah has joined #ruby
braincra- has joined #ruby
braincrash has quit [Ping timeout: 245 seconds]
braincra- is now known as braincrash
<Rudde>
nice! :D
<Rudde>
That was alo a nice little trick
<Rudde>
It it possible to change it with a script?
SiliconG has joined #ruby
top4o has joined #ruby
abdulsattar has joined #ruby
mhenrixon has quit [Ping timeout: 264 seconds]
<MrZYX>
you won't find too many windows users in here, so general windows questions are probably better asked elsewhere ;)
spider-mario has joined #ruby
gr33n7007h has quit [Read error: Connection reset by peer]
<Rudde>
Pfftt, I know you all boot up good ol' windows every time you need to play a game :P
<MrZYX>
uhm, nope
<MrZYX>
I don't play games not running on windows
<MrZYX>
*linux m(
<LadyRainicorn>
haha
<MrZYX>
still "too early" ;P
<Rudde>
:>
<Rudde>
Sure, sure MrZYX
popl has quit [Ping timeout: 248 seconds]
Xeago has joined #ruby
* LadyRainicorn
is not a game person.
<LadyRainicorn>
I do like 7x7 on Android though.
<LadyRainicorn>
That one is kind of fun.
<MrZYX>
no, seriously, since the humble bundles and since valve announced steamos there's more than enough, for the casual gamers at least
<LadyRainicorn>
I think that's the only game I actually have installed anywhere.
Notte has quit [Remote host closed the connection]
rootshift has quit [Quit: My MacBook has decided to go to sleep. Zzzz..]
RoryHughes has joined #ruby
yfeldblum has quit [Ping timeout: 245 seconds]
SiliconG has quit [Ping timeout: 272 seconds]
nism has joined #ruby
DrCode has quit [Ping timeout: 240 seconds]
Czupa has joined #ruby
RoryHughes has quit [Client Quit]
<Rudde>
And how would I use gem in windows?
<MrZYX>
hm, gem install doesn't work?
obs has joined #ruby
RoryHughes has joined #ruby
<Rudde>
Only had to make a path for that to :>
<Rudde>
But I try to build a tamplte with Gumby Framework, will this template work outside ruby on rails?
<Rudde>
Like on a PHP site or something?
Jetchisel has left #ruby ["Unfortunately time is always against us -- *Morpheus*"]
notsarah- has left #ruby ["Leaving"]
obs has quit [Remote host closed the connection]
thomasxie has joined #ruby
obs has joined #ruby
Butcho has joined #ruby
Butcho has quit [Max SendQ exceeded]
Butcho has joined #ruby
Butcho has quit [Max SendQ exceeded]
Butcho has joined #ruby
Butcho has quit [Max SendQ exceeded]
bradhe has joined #ruby
jokke has quit [Ping timeout: 272 seconds]
Butcho has joined #ruby
heftig has quit [Ping timeout: 245 seconds]
shedd has joined #ruby
gja has joined #ruby
gja has quit [Changing host]
gja has joined #ruby
Fyyr13 has joined #ruby
tyl has joined #ruby
sski has quit [Remote host closed the connection]
yasushi has joined #ruby
sski has joined #ruby
Advocation has joined #ruby
srji has quit [Quit: leaving]
danshultz has joined #ruby
bradhe has quit [Ping timeout: 264 seconds]
asmodlol has quit [Ping timeout: 265 seconds]
asmodlol has joined #ruby
gja has quit [Client Quit]
wael has quit [Quit: wael]
shedd has quit [Ping timeout: 265 seconds]
arietis has joined #ruby
sski has quit [Ping timeout: 252 seconds]
jokke has joined #ruby
danshultz has quit [Ping timeout: 272 seconds]
krz has quit [Quit: WeeChat 0.4.2]
gja has joined #ruby
yasushi has quit [Remote host closed the connection]
gja has quit [Client Quit]
Guest47286 has quit [Quit: Guest47286]
aniM has joined #ruby
krz has joined #ruby
sassamo has quit [Remote host closed the connection]
sparrovv has joined #ruby
vlad_sta_ has joined #ruby
sassamo has joined #ruby
xcv has joined #ruby
timonv has joined #ruby
vlad_starkov has quit [Ping timeout: 245 seconds]
Xeago has quit [Remote host closed the connection]
sassamo has quit [Ping timeout: 265 seconds]
vlad_starkov has joined #ruby
vlad_sta_ has quit [Read error: Connection reset by peer]
vlad_st__ has joined #ruby
vlad_st__ has quit [Remote host closed the connection]
ewnd9 has joined #ruby
krz has quit [Quit: WeeChat 0.4.2]
krz has joined #ruby
alex88 has quit [Quit: Leaving...]
vlad_starkov has quit [Ping timeout: 245 seconds]
[krisbulman] is now known as krisbulman
standyro2 has quit [Ping timeout: 264 seconds]
krisbulman is now known as [krisbulman]
Fyyr13 has quit [Remote host closed the connection]
timonv has quit [Remote host closed the connection]
Fyyr13 has joined #ruby
mavcunha has quit [Ping timeout: 245 seconds]
nucc has joined #ruby
shedd has joined #ruby
rootshift has joined #ruby
jonno11 has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
gja has joined #ruby
gja has quit [Changing host]
gja has joined #ruby
Kneferilis has quit [Read error: Connection reset by peer]
Notte has joined #ruby
pu22l3r_ has joined #ruby
arietis has quit [Quit: Computer has gone to sleep.]
ndrei has quit [Read error: Operation timed out]
shedd has quit [Ping timeout: 245 seconds]
thomasxie has quit [Quit: Leaving.]
ndrei has joined #ruby
shadoi has joined #ruby
griffindy has joined #ruby
SiliconG has joined #ruby
tyl has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
RoryHughes has quit []
tyl has joined #ruby
shadoi has quit [Ping timeout: 245 seconds]
aryaching has joined #ruby
w4pm has joined #ruby
rootshift has quit [Quit: My MacBook has decided to go to sleep. Zzzz..]
ktun_ has joined #ruby
ktun has quit [Read error: Connection reset by peer]
tyl has quit [Client Quit]
sski has joined #ruby
rippa has quit [Quit: {#`%${%&`+'${`%&NO CARRIER]
danshultz has joined #ruby
danshultz has quit [Remote host closed the connection]
workmad3 has quit [Ping timeout: 272 seconds]
mavcunha has joined #ruby
gja has quit [Quit: This computer has gone to sleep]
aniM has quit [Ping timeout: 240 seconds]
w4pm has quit [Ping timeout: 245 seconds]
centrx has joined #ruby
SiliconG has quit [Ping timeout: 240 seconds]
prc has joined #ruby
RoryHughes has joined #ruby
prc has quit [Remote host closed the connection]
rootshift has joined #ruby
bradhe has joined #ruby
standyro2 has joined #ruby
nanoyak has joined #ruby
RoryHughes has quit [Client Quit]
heftig has joined #ruby
bradhe has quit [Ping timeout: 240 seconds]
nanoyak has quit [Ping timeout: 245 seconds]
timonv has joined #ruby
sparrovv has quit [Remote host closed the connection]
standyro2 has quit [Ping timeout: 260 seconds]
sparrovv has joined #ruby
postmodern has quit [Quit: Leaving]
nfk has quit [Quit: yawn]
TaxmanBD has joined #ruby
shedd has joined #ruby
nfk has joined #ruby
rootshift has quit [Quit: My MacBook has decided to go to sleep. Zzzz..]
wael has joined #ruby
obs has quit [Remote host closed the connection]
shedd has quit [Ping timeout: 272 seconds]
sree has joined #ruby
johnmilton has joined #ruby
sree has quit [Client Quit]
LadyRainicorn has quit [Quit: Leaving]
LadyRainicorn has joined #ruby
mavcunha has quit [Ping timeout: 252 seconds]
sparrovv has quit [Remote host closed the connection]
fgo has quit [Remote host closed the connection]
jzinedine has joined #ruby
pu22l3r_ has quit [Remote host closed the connection]
dangerousdave has quit [Quit: My Mac Pro has gone to sleep. ZZZzzz…]
aniM has joined #ruby
mercwithamouth has quit [Ping timeout: 265 seconds]
vlad_starkov has joined #ruby
vlad_starkov has quit [Remote host closed the connection]
cid404 has joined #ruby
yfeldblum has joined #ruby
drumusician has joined #ruby
yasushi has joined #ruby
blackmesa has quit [Quit: WeeChat 0.4.2]
yfeldblum has quit [Ping timeout: 245 seconds]
[krisbulman] is now known as krisbulman
phinfonet has joined #ruby
netQT has quit [Read error: Connection reset by peer]
TaxmanBD has quit [Ping timeout: 252 seconds]
vlad_starkov has joined #ruby
Advocation has quit [Quit: Advocation]
yasushi has quit [Ping timeout: 260 seconds]
danijoo has quit [Read error: Connection reset by peer]
danijoo has joined #ruby
iamdoo2 has joined #ruby
vlad_starkov has quit [Remote host closed the connection]
rootshift has joined #ruby
iamdoo2 has quit [Read error: Connection reset by peer]
vlad_starkov has joined #ruby
iamdoo2 has joined #ruby
grieg has joined #ruby
<grieg>
hello, what is the zlib version for ruby 2.1.0? (i ran into trouble installing rails)
<Hanmac>
grieg: did you try #rubyonrails ?
shedd has joined #ruby
<centrx>
gem install rails
iamdoo2 has quit [Ping timeout: 252 seconds]
octoberry has quit [Ping timeout: 248 seconds]
<Hanmac>
grieg: ruby does not have zlib itself it links against the libz on your system
<shevy>
you dont have to recompile whole of ruby if you did btw, you can go into the directory ext/zlib of the ruby extracted tarball and install just in that dir
whowantstolivef3 has quit [Remote host closed the connection]
whowantstolivef3 has joined #ruby
iamdoo2 has joined #ruby
vlad_starkov has quit [Remote host closed the connection]
predator117 has quit [Ping timeout: 252 seconds]
RoryHughes has quit [Client Quit]
centrx has joined #ruby
wael has quit [Ping timeout: 252 seconds]
IceyEC has quit [Quit: IceyEC]
kbouwser has joined #ruby
whowantstolivef3 has quit [Read error: Connection reset by peer]
kbouwser has quit [Client Quit]
rootshift has quit [Quit: My MacBook has decided to go to sleep. Zzzz..]
whowantstolivef3 has joined #ruby
cjsarette has quit [Ping timeout: 272 seconds]
arietis has quit [Quit: Computer has gone to sleep.]
sungai_keruh has joined #ruby
Amart41 has quit [Ping timeout: 245 seconds]
mando has joined #ruby
dangerousdave has quit [Quit: My Mac Pro has gone to sleep. ZZZzzz…]
shedd has joined #ruby
iamdoo2 has quit [Ping timeout: 245 seconds]
<sungai_keruh>
hi
nism has quit [Quit: Leaving]
IC84 has left #ruby ["Leaving"]
kbouwser has joined #ruby
<centrx>
Ahoy
sparrovv has joined #ruby
kenneth has quit [Quit: kenneth]
wtfitsme has joined #ruby
<shevy>
grieg any luck this time?
Brolen has joined #ruby
drumusician has quit [Ping timeout: 245 seconds]
tyl has joined #ruby
kevinykchan has joined #ruby
mando has quit [Ping timeout: 272 seconds]
arietis has joined #ruby
shedd has quit [Ping timeout: 272 seconds]
<grieg>
i guess, shevy: ruby extconf.rb;make;make install is doing the job. 30 gems seem to be installed including rails-4.0.2 and now it is installing ri documentation, tho is doing it quite slowly so i thought i ll write to you when it is done
<shevy>
\o/
SiliconG has joined #ruby
tjsousa has joined #ruby
bradhe has joined #ruby
<grieg>
seems to be quite a collection of volumes, that ri documentation.. half an hour already
aryaching has joined #ruby
browndawg has joined #ruby
dgfdgf has quit [Read error: Connection reset by peer]
<shevy>
ri sucks
w4pm has joined #ruby
Vivekananda has joined #ruby
aryaching_ has quit [Ping timeout: 252 seconds]
`MArceLL` has joined #ruby
bradhe has quit [Ping timeout: 252 seconds]
ewnd9 has joined #ruby
danshultz has joined #ruby
<pontiki>
--no-document is your frenz
w4pm has quit [Ping timeout: 264 seconds]
SiliconG has quit [Ping timeout: 240 seconds]
johnmilton has quit [Ping timeout: 252 seconds]
danshultz has quit [Ping timeout: 265 seconds]
LiohAu has quit [Ping timeout: 245 seconds]
vlad_starkov has joined #ruby
charliesome has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
vlad_starkov has quit [Remote host closed the connection]
Wolland has quit [Remote host closed the connection]
OdNairy has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
iMe has joined #ruby
shime has quit [Ping timeout: 252 seconds]
shedd has joined #ruby
tjsousa has quit [Quit: Computer has gone to sleep.]
tyl has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
tjsousa has joined #ruby
wallerdev has joined #ruby
IceDragon has joined #ruby
johnmilton has joined #ruby
srji has quit [Quit: Lost terminal]
predator117 has joined #ruby
tyl has joined #ruby
cjsarette has joined #ruby
aniM has quit [Ping timeout: 260 seconds]
shedd has quit [Ping timeout: 245 seconds]
jtdowney has quit []
tjsousa has quit [Ping timeout: 252 seconds]
ndrei has quit [Ping timeout: 248 seconds]
ccapndave has joined #ruby
mtr_ has joined #ruby
mtr_ has quit [Remote host closed the connection]
bean has joined #ruby
ndrei has joined #ruby
wallerdev has quit [Quit: wallerdev]
v10energy has joined #ruby
bean has quit [Client Quit]
ganesh has joined #ruby
ganesh is now known as Guest33715
mojjojo has quit [Quit: mojjojo]
mojjojo has joined #ruby
predator117 has quit [Remote host closed the connection]
predator117 has joined #ruby
Advocation has joined #ruby
whowantstolivef3 has quit [Remote host closed the connection]
whowantstolivef3 has joined #ruby
kbouwser has quit [Quit: Computer has gone to sleep.]
LadyRainicorn has quit [Ping timeout: 272 seconds]
<sungai_keruh>
hi all
yfeldblum has joined #ruby
OdNairy has joined #ruby
Brolen has quit [Remote host closed the connection]
guardianx has joined #ruby
Brolen has joined #ruby
whowantstolivef3 has quit [Remote host closed the connection]
aniM has joined #ruby
predator117 has quit [Ping timeout: 264 seconds]
whowantstolivef3 has joined #ruby
yfeldblum has quit [Ping timeout: 272 seconds]
Spooner has joined #ruby
Brolen has quit [Ping timeout: 272 seconds]
Fyyr13 has quit [Quit: Leaving...]
mojjojo has quit [Quit: mojjojo]
mojjojo has joined #ruby
whowantstolivef3 has quit [Remote host closed the connection]
assurbanipal has quit [Ping timeout: 252 seconds]
xlogic has joined #ruby
francisfish has joined #ruby
Spooner has quit [Quit: Bye]
whowantstolivef3 has joined #ruby
seekwill has joined #ruby
francisfish has quit [Remote host closed the connection]
iamdoo2 has joined #ruby
senayar has joined #ruby
Spooner has joined #ruby
poulson has quit [Remote host closed the connection]
kbouwser has joined #ruby
<seekwill>
Hi. I'm fetching rows out of a database. I'd like to make a hash, with the date (from the db) as the key, and the value being an array of the rows in that date. I'm not sure how to make that array: http://pastie.org/private/fj9axjh7crs78oaeejsquw
DrCode has joined #ruby
<grieg>
oh finally it has finished! thank you all for your help!
falood has quit [Remote host closed the connection]
bradhe has joined #ruby
<seekwill>
centrx: Awesome, thanks!
shedd has joined #ruby
iamdoo2 has quit [Ping timeout: 245 seconds]
whowantstolivef3 has quit [Remote host closed the connection]
ccapndave has left #ruby [#ruby]
<Spooner>
That would store the whole record, not just the two fields you want,
whowantstolivef3 has joined #ruby
<Spooner>
Seekwill. That might be fine though.
<seekwill>
I'm only selecting three fields (date, id, activity), where date is the key and (id,activity) would be the value
<seekwill>
I'm new to ruby, so still trying to figure this out :)
ctp has joined #ruby
<pontiki>
much can be made of reading through the Enumerable module
<pontiki>
it has all sorts of fun things
<seekwill>
Yep :) Best way to learn
bradhe has quit [Ping timeout: 252 seconds]
shedd has quit [Ping timeout: 264 seconds]
mmcclimon has joined #ruby
SiliconG has joined #ruby
whowantstolivef3 has quit [Remote host closed the connection]
whowantstolivef3 has joined #ruby
knigitz has joined #ruby
mmcclimon has quit [Client Quit]
predator117 has joined #ruby
assurbanipal has joined #ruby
mmcclimon has joined #ruby
francisfish has joined #ruby
dwingo has quit [Ping timeout: 240 seconds]
ckinni has joined #ruby
angusigu1ss has joined #ruby
visof has quit [Ping timeout: 248 seconds]
ndrei has quit [Ping timeout: 240 seconds]
kbouwser has quit [Quit: Computer has gone to sleep.]
xcv has quit [Remote host closed the connection]
mityaz has quit [Quit: See ya!]
altin has joined #ruby
rootshift has joined #ruby
altin has quit [Changing host]
altin has joined #ruby
Kricir has joined #ruby
SiliconG has quit [Ping timeout: 252 seconds]
leoxagy12 has joined #ruby
predator117 has quit [Ping timeout: 252 seconds]
<leoxagy12>
Hi
banister has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
mmcclimon has quit [Quit: mmcclimon]
<centrx>
Ahoy
<shevy>
Die
<shevy>
I mean
<shevy>
Hi
aryaching_ has joined #ruby
<roolo>
shevy: User roolo like this :)
Spami has joined #ruby
Kricir has quit [Ping timeout: 240 seconds]
vlad_sta_ has joined #ruby
JaTochNietDan has quit [Quit: Right.]
carraroj has joined #ruby
shaunbaker has quit []
aryaching has quit [Ping timeout: 260 seconds]
<seekwill>
So I'm testing this out, but I'm not sure how to evaluate the "first" one to be the hash key
razibog has joined #ruby
<centrx>
row.first
whowantstolivef3 has quit [Remote host closed the connection]
whowantstolivef3 has joined #ruby
SCommette has joined #ruby
<seekwill>
ah! It would be a string comparison, right?
mhenrixon has joined #ruby
mhenrixon has quit [Remote host closed the connection]
framling has quit [Ping timeout: 245 seconds]
predator117 has joined #ruby
xlogic has quit [Remote host closed the connection]
wallerdev has joined #ruby
xlogic has joined #ruby
kewubenduben has quit [Ping timeout: 240 seconds]
vlad_starkov has quit [Ping timeout: 272 seconds]
<seekwill>
I think that worked! Thanks
xlogic has left #ruby [#ruby]
e^0 has joined #ruby
whowantstolivef3 has quit [Remote host closed the connection]
Neomex has joined #ruby
pu22l3r_ has joined #ruby
whowantstolivef3 has joined #ruby
razibog has quit [Ping timeout: 240 seconds]
Neomex has quit [Client Quit]
randomnick_ has joined #ruby
SCommette has quit [Quit: SCommette]
predator117 has quit [Ping timeout: 272 seconds]
predator117 has joined #ruby
rootshift has quit [Quit: My MacBook has decided to go to sleep. Zzzz..]
shedd has joined #ruby
<seekwill>
Ok, that didn't work actually. So my table "duplicates" the date field, so I'll have multiple Jan 25 and Jan 26. By making that the hash key, I was hoping to get rows for each date as an array
razibog has joined #ruby
kraljev5 has joined #ruby
<pontiki>
seekwill: helps if you show us code :)
<kraljev5>
How to match whole string with regex?
<kraljev5>
the regex is user supplied
<kraljev5>
is #to_s, preped \A, append \z, then cast back
<MrZYX>
lxsameer: not serve any request == conn refused, 404, 500, ... ?
kraljev5 has joined #ruby
NemesisD has joined #ruby
gasbakid_ has joined #ruby
phansch has joined #ruby
pu22l3r_ has quit [Remote host closed the connection]
<centrx>
Quack quack
xcv has joined #ruby
<kraljev5>
Spooner: I was thinking something along the line of this:
<kraljev5>
"dasdasd".match regex, whole: true
<seekwill>
pontiki: Oh, that's how you use .group_by! hah. I thought if I did that =, it would overwrite the existing contents
<seekwill>
centrx: :)
<pontiki>
seekwill: you mean at line 20 in my example?
<seekwill>
Yes
<pontiki>
line 9 of the paste
bradhe has joined #ruby
gasbakid_ has quit [Client Quit]
<pontiki>
.group_by is returning a new object, not replacing the existing
<pontiki>
you could replace it
<seekwill>
I thought that what the = would do... but maybe that's a PHPism...?
<MrZYX>
= changes the reference a variable points to, not the object it currently holds. iirc that's not different in php
Emmanuel_Chanel has joined #ruby
iamdoo2 has joined #ruby
<Spooner>
Kraljev5: r.match(s).groups[0] == s would do it I guess?
<kraljev5>
this is a fine idea, thanks
sassamo has quit [Remote host closed the connection]
<Hanmac>
what about that? "dasdasd".match /\A#{regex}\Z/
<Hanmac>
@ kraljev5 & Spooner
sassamo has joined #ruby
aniM has quit [Ping timeout: 240 seconds]
bradhe has quit [Ping timeout: 272 seconds]
<kraljev5>
yes, but that is slow, if you account for the compilation time
<kraljev5>
and Spooner
<kraljev5>
instead of string matching, I could just check begin and end positon of a match
yarou has joined #ruby
<Spooner>
I really doubt the difference is meaningful.
<kraljev5>
this way, I don't need to binary compare the two
<havenwood>
oh nanoseconds
<Spooner>
But I think Hanmac's is better code.
<kraljev5>
nanoseconds + loops :)
<Hanmac>
"compilation time" ? i think you are speaking the wrong language
<seekwill>
pontiki: centrx: [I think] That works! Thank you so much!
<havenwood>
premature optimization is silly
<kraljev5>
the regex is compiled, no?
shedd has joined #ruby
iamdoo2 has quit [Ping timeout: 272 seconds]
sassamo_ has joined #ruby
<kraljev5>
By that I mean class instatiation takes a lot of time
<kraljev5>
compared to an actual match
<centrx>
kraljev5, It is extremely fast. Not sure what you are doing but if "user input" is involved, probably nothing to worry about it. Write the clearest maintainable code
mary5030 has quit [Remote host closed the connection]
sassamo has quit [Read error: No route to host]
roolo has quit [Quit: Leaving...]
<Spooner>
Yeah but that doesn't mean it takes a meaningful amount of time (and may be faster than the string compare anyway).
<kraljev5>
cantrix, that is the point I agree with
<havenwood>
kraljev5: stop thinking about how fast things are until them being slow is noticeable or a problem
<DouweM>
havenwood: +1
<Spooner>
+10
sparrovv has quit [Remote host closed the connection]
<shevy>
kraljev5 regexes are slower. use include? if you can
<shevy>
Hanmac ruby-gnome is going on my nerves, when is rwx ready?
<Hanmac>
depends ... it would go faster if i had more developers ... but i dont think some one else would understand my code ;P
CYMOC has joined #ruby
<shevy>
hehe
<apeiros>
Mattx: then just use apache?
<apeiros>
I don't see why that'd matter, though
<shevy>
\o/
Megtastique has joined #ruby
<Mattx>
hmn, I didn't know it's possible but I suppose there's a module for that
Czupa` has quit [Remote host closed the connection]
mojjojo has quit [Quit: mojjojo]
DouweM has joined #ruby
ndrei has quit [Ping timeout: 272 seconds]
Virtualize has quit []
kenneth has quit [Quit: kenneth]
leoxagy12 has quit [Ping timeout: 252 seconds]
havenwood has joined #ruby
DaniG2k has quit [Ping timeout: 260 seconds]
mojjojo has joined #ruby
<apeiros>
Mattx: it's called "passenger", or "phusion passenger"
senayar has joined #ruby
<apeiros>
I still don't see how it matters that you start a webserver for each project
<Mattx>
oh, in fact I have it installed. to run rails web apps
SiliconG has quit [Ping timeout: 240 seconds]
mojjojo has quit [Client Quit]
nairys has joined #ruby
mojjojo has joined #ruby
Cache_Money has joined #ruby
shedd has quit [Ping timeout: 272 seconds]
<shevy>
apeiros just won't see it anyway!
<shevy>
Mattx what's wrong with ruby .cgi :)
Cache_Money has quit [Client Quit]
zeade has joined #ruby
nairys has quit []
senayar has quit [Ping timeout: 252 seconds]
Megtastique has quit []
daxroc has joined #ruby
daxroc1 has joined #ruby
Shidash has joined #ruby
<MrZYX>
shevy: what's making cgi better than rack?
<shevy>
MrZYX I dont need .ru files
<MrZYX>
with rack I don't need .cgi files
<MrZYX>
next?
<apeiros>
shevy: but you restart your whole application on every request.
<shevy>
MrZYX I dont have to install an addon
sammyrihawi has joined #ruby
<apeiros>
shevy: also, rack doesn't need a .ru file
lkba has quit [Ping timeout: 272 seconds]
<apeiros>
that's just one way to start a rack based app
<shevy>
apeiros how can you start something rack based without a .ru file?
daxroc has quit [Ping timeout: 252 seconds]
<MrZYX>
you probably already have it installed, since it's used by so many things by now. So it comes down to a require. I don't to require cgi with rack. next?
<apeiros>
shevy: uh, like, start a server another way?
<apeiros>
I don't start apache via .ru files
<shevy>
apeiros I have apache running
sammyrihawi has left #ruby [#ruby]
nairys has joined #ruby
<Xeago>
thin . starts a server..?
<Xeago>
same invocation works for puma
<Xeago>
and similarly also for unicorn
kenneth has joined #ruby
<shevy>
MrZYX you use rackup?
<MrZYX>
sometimes
<shevy>
MrZYX how do you use rack without rackup?
<MrZYX>
puma, unicorn, webrick. depends on the environment and the app
iamdoo2 has joined #ruby
<MrZYX>
simple sinatra apps you can even boot with ruby app.rb
deens has quit []
whowantstolivef2 has quit [Remote host closed the connection]
whowantstolivef2 has joined #ruby
axl_ has joined #ruby
DaniG2k has joined #ruby
_whitelogger has joined #ruby
<MrZYX>
I'd have to teach him how it "just works"
leoxagy12 has joined #ruby
<Morrolan>
When was the last time you messed with php.ini for a basic app?
zz_anildigital is now known as anildigital
<Morrolan>
The .ini shipped by the distro's package manager usually works out of the box.
<apeiros>
Morrolan: well, same question for .ru. you can create a "standard one" for that too…
Brolen has quit [Remote host closed the connection]
Alina-malina has quit [Read error: Connection reset by peer]
prc has left #ruby [#ruby]
anildigital is now known as zz_anildigital
* havenwood
sprinkles red dirt around doors and windows to keep out PHP haints.
mojjojo has joined #ruby
ktun has quit [Ping timeout: 272 seconds]
aniM has joined #ruby
mary5030 has quit [Remote host closed the connection]
mojjojo has quit [Client Quit]
bradhe has joined #ruby
nairys has quit [Remote host closed the connection]
Brolen has joined #ruby
nairys has joined #ruby
mary5030 has joined #ruby
angusigu1ss has quit [Ping timeout: 265 seconds]
vlad_starkov has joined #ruby
visof has quit [Quit: Reconnecting]
visof has joined #ruby
visof has joined #ruby
visof has quit [Changing host]
bradhe has quit [Ping timeout: 252 seconds]
kizzx2 has joined #ruby
kizzx2 has quit [Max SendQ exceeded]
Mon_Ouie has joined #ruby
Mon_Ouie has joined #ruby
Mon_Ouie has quit [Changing host]
sparrovv has joined #ruby
kizzx2 has joined #ruby
Alina-malina has joined #ruby
Tig has joined #ruby
vlad_starkov has quit [Read error: Connection reset by peer]
shredding has joined #ruby
mojjojo has joined #ruby
end_guy has quit [Remote host closed the connection]
daxroc1 has quit [Quit: Leaving.]
ghanima has joined #ruby
timonv has joined #ruby
end_guy has joined #ruby
brennanMKE has joined #ruby
Czupa has joined #ruby
sparrovv has quit [Remote host closed the connection]
Mon_Ouie has quit [Ping timeout: 252 seconds]
framling has joined #ruby
netQT has joined #ruby
lkba has joined #ruby
guest12345 has joined #ruby
carraroj has quit [Quit: Konversation terminated!]
Hanmac1 has joined #ruby
Guest85020 has quit [Ping timeout: 252 seconds]
meatherly has quit [Remote host closed the connection]
<guest12345>
why is this room always so quiet with almost 150 ppl here
kewubenduben has joined #ruby
mary5030 has quit [Remote host closed the connection]
<centrx>
guest12345, We are busy coding
meatherly has joined #ruby
<centrx>
guest12345, Also, it is more active on the weekdays
predator117 has quit [Ping timeout: 260 seconds]
shedd has joined #ruby
<MrZYX>
hmm, 150.. my client counts a few more...
Hanmac has quit [Ping timeout: 252 seconds]
<guest12345>
i was rounding lol idk where to find the count
<centrx>
Yes, there are actually 892
<centrx>
890 of them are surely busy coding
yshahin has quit [Quit: Connection closed for inactivity]
aspires has joined #ruby
<MrZYX>
(because at least two being bots)
daxroc has joined #ruby
meatherly has quit [Ping timeout: 252 seconds]
shedd has quit [Ping timeout: 252 seconds]
idiocrash has joined #ruby
ohwhoa has quit [Quit: woah!]
lkba has quit [Ping timeout: 264 seconds]
<shevy>
guest12345 xchat shows the amount of people in a channel in the top right corner, 890 right now but some here are bots. I guess they are quiet because they are BUSY writing ruby code all the time non-stop
lkba has joined #ruby
alexherbo2 has quit [Quit: WeeChat 0.4.2]
predator117 has joined #ruby
mojjojo has quit [Quit: mojjojo]
ndrei has joined #ruby
<havenwood>
shevy: any luck getting to 2.0?
raar has joined #ruby
daxroc has quit [Ping timeout: 265 seconds]
<shevy>
havenwood nope, gem does not want to work :(
sassamo_ has quit [Remote host closed the connection]
Jetchisel has joined #ruby
sassamo has joined #ruby
kenneth has joined #ruby
ctp has quit [Quit: Leaving...]
ndrei has joined #ruby
alexherbo2 has joined #ruby
dangerousdave has quit [Quit: My Mac Pro has gone to sleep. ZZZzzz…]
Asher has quit [Read error: Connection reset by peer]
burlyscudd has joined #ruby
timonv has quit [Remote host closed the connection]
SiliconG has joined #ruby
daxroc has quit [Quit: Leaving.]
ckinni has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
mlpinit has joined #ruby
roolo has joined #ruby
senayar has joined #ruby
mlpinit has quit [Client Quit]
vim_shim_ has quit [Quit: Leaving.]
rmroulette has quit [Quit: leaving]
brain_shim has quit [Remote host closed the connection]
SiliconG has quit [Ping timeout: 252 seconds]
daxroc has joined #ruby
<baggypants>
Does anyone know how to convert a page parsed via Mechanize into objects?
<baggypants>
I would like to have each part of the DOM in its own object
iamdoo2 has joined #ruby
|PiP| has joined #ruby
<Hanmac1>
baggypants: do you want nokogiri ?
<baggypants>
hrm...i'm using mechanize i thought it uses nokogiri under the hood
<baggypants>
Basically I'd like to take the HTML string...and each "td" will have an obj...each "p" will have an obj
<|PiP|>
is there a method on a Hash that converts all string keys to symbol keys, and vice-versa?
netQT has quit [Remote host closed the connection]
<havenwood>
|PiP|: No. A Hash#map_key was proposed but hasn't been adopted.
nikkos has joined #ruby
ohwhoa has quit [Quit: woah!]
alexherbo2 has quit [Quit: WeeChat 0.4.3-dev]
<baggypants>
i guess there is no equivalent of BeautifulSoup from python
octoberry has joined #ruby
ohwhoa has joined #ruby
<|PiP|>
How does Rails do it on the params hash that is available in controllers?
<apeiros>
baggypants: I think mechanize already does that
<|PiP|>
i can reference params['key'] and params[:key] and it's the same attribute
<baggypants>
hrmm ok i'll look thru the docs
burlyscudd has quit [Quit: Leaving.]
<apeiros>
baggypants: I'm pretty sure you can access a page's elements like that (since it does in fact use nokogiri under the hood - which provides that functionality)
DaniG2k has quit [Ping timeout: 265 seconds]
<apeiros>
|PiP|: it's a method
<baggypants>
thanks will try
iamdoo2 has quit [Ping timeout: 245 seconds]
<baggypants>
right.got it...its page.parser
<baggypants>
parser method from Nokogiri
cong has joined #ruby
ktun_ has quit [Remote host closed the connection]
kenneth has quit [Read error: Connection reset by peer]
bradhe has joined #ruby
ktun has joined #ruby
popl has joined #ruby
popl has joined #ruby
<|PiP|>
apeiros: what do you mean a method? the params hash has all the keys
<|PiP|>
as strings and as symbols
predator117 has joined #ruby
mojjojo has joined #ruby
cjsarette has quit [Ping timeout: 252 seconds]
sparrovv has joined #ruby
<apeiros>
|PiP|: when you do `params[:foo]` in your controller, you call a method named `params` which returns a hash.
<snkcld>
is it possible with tail --lines+100 to also bring in the first line?
<snkcld>
prolly not the right channel, but just a small tangent
Astralum has quit [Ping timeout: 252 seconds]
dwaite has joined #ruby
<RubyPanther>
snkcld: if you can repeat the command twice you just grab from both ends
w1xz has quit [Quit: .. lightyears a head but just a message away ..]
bradhe has joined #ruby
leoxagy12 has quit [Ping timeout: 252 seconds]
iamdoo2 has joined #ruby
leoxagy12 has joined #ruby
<MrZYX>
echo "$(head -n1 file)\n$(tail -n+100 file)" | ruby parser.rb but that might explode if your file is too big
<MrZYX>
(since it can't stream anymore)
afhammad has quit []
<dwaite>
I have a method that I can see one of the parameters being a binary string, a hex-encoded string, or one of two objects. I'm wondering if I should force them to give me a specific kind of object, or if I should be doing that sort of conversion as part of my interface
<dwaite>
if I do that conversion I'd like to split it out to a method, but don't really know what the convention would be for where it lives or what it is named
<snkcld>
yea, my file is huge lol
<snkcld>
529871 lines >_<
mojjojo has quit [Quit: mojjojo]
cjsarette has quit [Ping timeout: 245 seconds]
sethen has quit [Read error: Connection reset by peer]
<|PiP|>
anyone know of a Regex library for Ruby?
shedd has joined #ruby
<MrZYX>
I don't remember whether ARGF continues from stdin if all files in ARGV are read, but you could try head -n1 csv > csv_header; tail ... | ruby parser.rb csv_header
<snkcld>
maybe awk can help
<|PiP|>
Not doing regex, but a library of commonly used Regex's
yfeldblum has quit [Read error: Connection reset by peer]
iamdoo2 has quit [Ping timeout: 240 seconds]
drumusician has quit [Ping timeout: 252 seconds]
<RubyPanther>
dwaite: You should use duck-type checking on the objects to see if they #respond_to? the interface you need, and if not, then try to feed it as a string to Float() or Integer() which can do various transformations including hex, etc
<MrZYX>
dwaite: if it's a complex conversion IMO have your main interface and convenience methods for the lib users that do the conversion and call your main entry point with the nice format you can work with
<RubyPanther>
|PiP|: regexes for those types of things are all either broken, wrong, or inefficient. You have to pick your poisons so you can't usually one-stop-shop
mojjojo has joined #ruby
MindfulMonk has quit [Read error: Operation timed out]
Solnse has quit [Ping timeout: 252 seconds]
DaniG2k has quit [Ping timeout: 260 seconds]
<RubyPanther>
consider emails, for example... a regex matching the RFC (incompletely!) is like, a whole page of text
<RubyPanther>
Phone numbers isn't any better
<snkcld>
fwiw awk '(NR < 2 || NR > 187466) ' did the trick
shedd has quit [Ping timeout: 245 seconds]
<dwaite>
RubyPanther, MrZYX: the other issue is that the two objects I'm using are part of OpenSSL, where duck typing doesn't really work :-)
<RubyPanther>
dwaite: I'm not convinced
<dwaite>
MrZYX: so if I understand you, you think I should have a public class that takes everything which wraps a private class which takes types (duck or other) that it knows how to deal with?
mojjojo has quit [Client Quit]
aryaching_ has quit [Ping timeout: 265 seconds]
centrx has quit [Quit: Leaving]
<MrZYX>
I think that one method should only accept one type of input and don't try to magically guess what the user throws at it when the user in most cases already knows that
Asher has quit [Ping timeout: 264 seconds]
spider-mario has quit [Remote host closed the connection]
<MrZYX>
make separate methods for each type of input, convert or whatever, and send it to a common entry point in a common format, whatever that is
klaut has quit [Remote host closed the connection]
ephemerian has quit [Quit: Leaving.]
kiri has quit [Ping timeout: 252 seconds]
<dwaite>
if I have (for this example) a string to elliptic curve point conversion method, I don't really want to put it on the elliptic curve, or string, so I have these weird convert_* helper methods to do it within my classes
<dwaite>
hmm
ctp has joined #ruby
daxroc has joined #ruby
Asher has joined #ruby
<RubyPanther>
It is not at all normal to truly have objects that are different types but have exactly the same interface, and also to have to handle them in different ways
kiri has joined #ruby
SiliconG has joined #ruby
vlad_starkov has joined #ruby
Neomex has joined #ruby
Neomex has quit [Client Quit]
NemesisD has quit [Ping timeout: 272 seconds]
DaniG2k has joined #ruby
<dwaite>
in this case I have the problem as well that two different types of input are both in string (binary and hex-encoded)
mikepack has joined #ruby
<dwaite>
there are methods that would let me differentiate an elliptic curve from a EC point for instance, but they aren't actually methods I'm using.
yfeldblum has joined #ruby
vlad_starkov has quit [Read error: Operation timed out]
[krisbulman] is now known as krisbulman
tjsousa has joined #ruby
<RubyPanther>
dwaite: It doesn't matter if they are the methods you are using, it only matters that they identify that the interface you want exists on that object
Al__ has joined #ruby
Mon_Ouie has joined #ruby
Mon_Ouie has joined #ruby
Mon_Ouie has quit [Changing host]
<RubyPanther>
dwaite: as far as strings go, Ruby can do the conversion if they're formatted right
<xybre>
So I'm reading from a file, and everyhting looks okay, but sorting by year ends up with the wrong order, and then I discovered this: https://gist.github.com/acook/8640574
brunops has quit [Ping timeout: 252 seconds]
alexherbo21 has joined #ruby
alex88 has joined #ruby
Xeago has quit [Remote host closed the connection]
<Hanmac>
pabloh: see the difference and then wonder why one shows them and the other does not
<xybre>
Hanmac: UTF-8
Al__ has quit [Read error: Connection reset by peer]
<xybre>
I got ridd of us using a regex to pull out just the data I want (the years) which it was pretty confounding.
simoz15 has quit [Ping timeout: 252 seconds]
<pabloh>
Hanmac, what i whant is given an arbitrary method from the class, see the instrucction bytecode that the method execute when running on the Rbx VM
clamstar has quit [Quit: Computer has gone to sleep.]
Hanmac1 has joined #ruby
Notte has quit [Remote host closed the connection]
<bnagy>
it's a bit fiddly though, I just poked around in irb
w4pm has joined #ruby
<bnagy>
basically you can get a CompiledCode object by some_meth.executable - then play with that
<pabloh>
bnagy, thanks, I will take a look
leoxagy123 has quit [Ping timeout: 272 seconds]
bradhe has joined #ruby
<f4a244c>
suppose server A needs to send server B a message. Both have previously shared a secret key successfully. I need a way for server A to send a signature as a url encoded post (think multiple values per form) such that verify(sign(params, PRIVATE), PRIVATE) would be true - anybody know of something already built to do this or a standard way I should be approaching this?
<bnagy>
I can't see any obvious way to get the mnemonics though
<pabloh>
bnagy, I found it
<pabloh>
is just "puts compiled_code.decode"
relix has joined #ruby
<f4a244c>
I'm about to have a custom marshal/unmarshal that uses an ordered hash and removes the signature field prior to signing
<bnagy>
yar, gonna need to just find the numbers from somewhere
<bnagy>
eg the bluetooth headers
tjsousa has quit [Read error: Connection reset by peer]
krisbulman is now known as [krisbulman]
<gr33n7007h>
bnagy, will hcidump do that?
tjsousa has joined #ruby
<f4a244c>
bnagy: so aside from the algorithm used for the signature itself, I'm curious for the idiomatic or accepted way of getting the message contents vs the signature and message contents together from the url encoded post: https://gist.github.com/anonymous/8640947
<bnagy>
the should just be defined
tjsousa has quit [Read error: Connection reset by peer]
kirun has quit [Quit: Client exiting]
<bnagy>
f4a244c: I don't know ( or care, tbh ) about url stuff
tjsousa has joined #ruby
<bnagy>
I'm just suggesting nacl as a way to sign stuff that has few footguns
Neomex has joined #ruby
<f4a244c>
lol, k
<f4a244c>
of course, huge fan
<ghanima>
is there a away to append key,value to a hash
tjsousa has quit [Read error: Connection reset by peer]
tjsousa has joined #ruby
<bnagy>
f4a244c: I mean.. unless I misunderstand, don't people usually just use json for this kind of thing?
axl_ has quit [Quit: axl_]
<bnagy>
ghanima: hsh[k]=v
jtdowney has joined #ruby
<bnagy>
Hash is ordered now, although I still hate relying on that
<gr33n7007h>
it should be under PF_BLUETOOTH but obsolete, why I ask
ctp has quit [Quit: Leaving...]
coca_rails has quit [Remote host closed the connection]
relix has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<f4a244c>
for this specifically I'm just creating a system that lets me build a standardized token and URL that sends the information along for a password reset so I don't have to store the key locally (it gets included in the email). - it's actually not a ruby project, so there's no devise for what I'm building it in, so I'm having fun with pieces I wouldn't usually implement
vlad_starkov has joined #ruby
angusigu1ss has joined #ruby
[krisbulman] is now known as krisbulman
ukd1 has joined #ruby
<f4a244c>
it would allow me to create a token that expires, and contains a message (or maybe other data), send it in a URL within an email, and allow the recipient to use the token as though it's valid. I just don't want to encode all the data in JSON or a binary format and include it in the token, since that gives me urls that are terribly long with no contextual data... I'd like to just include the contextual data as a GET parameter and sign all the
<f4a244c>
parameters instead of encoding them all
tjsousa has quit [Read error: Connection reset by peer]
<bnagy>
if you have shared secret keys, SecretBox is already authenticated, you don't need to sign stuff
<bnagy>
but anyway, passwird reset tokens are hard.
tjsousa has quit [Client Quit]
mojjojo has joined #ruby
<bnagy>
good luck.
gmci has joined #ruby
freerobby has joined #ruby
<f4a244c>
in this case the key would be shared only between the server's sign method and verify method - the contents of the message would be exchanged with a third party that doesn't have any need to actually sign them themselves... haha, thanks bnagy
<f4a244c>
s/sign them themselves/verify them themselves/
vlad_starkov has quit [Read error: Connection reset by peer]
AlSquirrel has quit [Quit: This computer has gone to sleep]
sparrovv has joined #ruby
dwaite has quit [Quit: Lost terminal]
* gr33n7007h
is really upset :(
relix has quit [Client Quit]
mojjojo has quit [Client Quit]
angusigu1ss has quit [Ping timeout: 272 seconds]
MrZYX is now known as MrZYX|off
workmad3 has joined #ruby
<gr33n7007h>
Well I can't believe ruby hasn't any implementations for raw sockets emulating bluetooth over rfcomm
Hanmac1 has quit [Ping timeout: 272 seconds]
speakingcode has joined #ruby
phutchins has joined #ruby
<bnagy>
what's to implement?
<bnagy>
the python code you had just opens a socket
<gr33n7007h>
bnagy, How would I go about doing that in ruby then?
<bnagy>
Socket.new blah, blah, blah
<gr33n7007h>
bnagy, what protocol to use?
<bnagy>
whatever the magic numbers are for bluetooth?
araujo has joined #ruby
araujo has quit [Changing host]
araujo has joined #ruby
<bnagy>
like socket.AF_BLUETOOTH will just be some integer
araujo has quit [Remote host closed the connection]
<gr33n7007h>
I don't know where to find them have, I know what your saying i'm a little stuck
Disgrntld has quit [Quit: Page closed]
_mtr has joined #ruby
<bnagy>
google? write a one line python script that outputs them?
_mtr has quit [Max SendQ exceeded]
<bnagy>
grep for them in the headers?
_mtr has joined #ruby
_mtr has quit [Max SendQ exceeded]
<gr33n7007h>
bnagy, Have you an example please of how to do that?
mtr__ has joined #ruby
mtr__ has quit [Remote host closed the connection]