pu22l3r has quit [Remote host closed the connection]
<banister>
benzrf there's only some monads i could implement with the fiber approach to do notation, like Maybe and State
<banister>
things like List i couldn;t do
<benzrf>
shift within a reset block captures the remainder of the reset as a callable and passes it to the block given
pu22l3r has joined #ruby
<banister>
what langauge are you talking about here?
<banister>
cos it's not ruby :)
<benzrf>
the result of the reset block is the result of the first shift's block
<benzrf>
it's ruby :-O
osvico has quit [Read error: Connection reset by peer]
<benzrf>
w/ the rb_delimcc gem
* combusean
rewrites deploy.rb
pigzzcanfly has joined #ruby
davedev2_ has quit [Ping timeout: 252 seconds]
<banister>
benzrf well you have to refer to methods that are in core/stdlib or i dont know what you're tlaking about, you can't just mentoin a random API from a 3rd party gem and expect me to know what u're on about
<benzrf>
kk
b00stfr3ak has quit [Read error: Connection reset by peer]
<benzrf>
delimited continuations w/ reset & shift are well-established outside of ruby tho
<benzrf>
banister: ok basically
davedev24 has joined #ruby
jackyalcine has joined #ruby
<benzrf>
reset method takes a block
<benzrf>
the code in the block is run
tacos1de has quit [Remote host closed the connection]
predator217 has quit [Ping timeout: 246 seconds]
osvico has joined #ruby
<benzrf>
if a call to 'shift' is encountered, the remainder of the reset block is passed as a callable to that shift's block
tacos1de has joined #ruby
jorts has quit [Ping timeout: 240 seconds]
<benzrf>
then that shift's block's result is the result of the reset
justinmcp has joined #ruby
<benzrf>
if you call the arg to the shift, the value you give it will be the result of shift when continued
<benzrf>
brb
robbyoconnor has quit [Remote host closed the connection]
<benzrf>
basically u say 'foo = amb [1, 2, 3]', foo is now 1, then you can call 'amb_fail' at any point and itll reset to the last amb and try again wth the next value
newUser1234 has joined #ruby
<benzrf>
well just amb
<benzrf>
not amb_fail
<benzrf>
anyway it is simple to implement these with delimited continuations
arubin has joined #ruby
cj3kim_ has quit [Remote host closed the connection]
<benzrf>
amb with args is just a shift, then the shift successively tries calling its passed callback with each arg to amb
<benzrf>
then amb without args is some kind of failure, like throwing an exc
robbyoconnor has quit [Ping timeout: 252 seconds]
x77686d has quit [Quit: x77686d]
jasonwebster has quit [Quit: Computer has gone to sleep.]
necrotic_ has joined #ruby
necrotic_ has quit [Remote host closed the connection]
lukec has quit [Quit: lukec]
r0bby has quit [Remote host closed the connection]
<benzrf>
banister: amb is basically the list monad if the idea were to get 1 result and you signal failure to move to the next value
tkuchiki has quit [Remote host closed the connection]
<banister>
cool
r0bby has joined #ruby
<benzrf>
incidentally list monad is even more trivial with delimcc
rylev_ has quit [Remote host closed the connection]
<benzrf>
def draw_from(l); shift {|cont| l.map &cont}; end
ukd1 has quit [Read error: Connection reset by peer]
coderhs has joined #ruby
emaxi has joined #ruby
kobain has joined #ruby
ukd1 has joined #ruby
maletor has quit [Quit: Computer has gone to sleep.]
<benzrf>
[10] pry(main)> reset do
<benzrf>
[10] pry(main)* x = draw_from [1, 2, 3]
<benzrf>
[10] pry(main)* y = draw_from [4, 5, 6]
<benzrf>
[10] pry(main)* end
<benzrf>
[10] pry(main)* x + y
<benzrf>
=> [[5, 6, 7], [6, 7, 8], [7, 8, 9]]
lolmaus has quit [Ping timeout: 255 seconds]
<benzrf>
oh wait thats not quite the same
newUser1_ has joined #ruby
<benzrf>
def draw_from(l); shift {|cont| l.map(&cont).flatten(1)}; end
newUser1234 has quit [Read error: No route to host]
r0bby_ has joined #ruby
b00stfr3ak has quit [Quit: leaving]
<benzrf>
[6] pry(main)> reset do
<benzrf>
[6] pry(main)* x = draw_from [1, 2, 3]
<benzrf>
[6] pry(main)* end
<benzrf>
[6] pry(main)* y = draw_from [4, 5, 6]
<benzrf>
[6] pry(main)* [x + y]
r0bby has quit [Ping timeout: 246 seconds]
<benzrf>
=> [5, 6, 7, 6, 7, 8, 7, 8, 9]
<benzrf>
:-)
fabrice31 has joined #ruby
testcore has quit [Ping timeout: 265 seconds]
blackmesa has quit [Ping timeout: 265 seconds]
blackavr has joined #ruby
oo_ has joined #ruby
SCommette has joined #ruby
binaryhat has joined #ruby
GodPuppet has joined #ruby
fgo has joined #ruby
<banister>
benzrf really cool
fabrice31 has quit [Ping timeout: 255 seconds]
linojon has quit [Quit: linojon]
<benzrf>
delimcc allows for almost any kind of control flow structure to be built
Kricir has quit [Remote host closed the connection]
<benzrf>
pity its so poor in RubyPanther
<benzrf>
*ruby
dstynchu_ has quit []
samuel02 has joined #ruby
<benzrf>
the Cont monad in haskell is basically where bind is apply
<benzrf>
ish
<RubyPanther>
my flow control is very regular
<shevy>
benzrf hahaha
linojon has joined #ruby
<Nilium>
Yes, but especially poor when inside RubyPanther for some reason
<shevy>
it is poor in RubyPanther
oo_ has quit [Remote host closed the connection]
<Nilium>
Flow control might be regular but then it's taco night and suddenly all that goes out the window. Literally and figuratively.
SilkFox has joined #ruby
<shevy>
ewww
<Nilium>
At least it's not in the sink (looking at you, shevy).
r0bby_ has quit [Remote host closed the connection]
emaxi has quit [Remote host closed the connection]
<RubyPanther>
no, if it is taco night that means my wife is cooking, and she's a chef so it is all perfect
emaxi has joined #ruby
speakingcode has quit [Read error: Operation timed out]
<RubyPanther>
tuesday was fish tacos, O M G
<RubyPanther>
tomorrow is whale watching, so BBQ fish on the beach
subbyyy_ has quit [Read error: Operation timed out]
Martxel_ has joined #ruby
x1337807x has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
samuel02 has quit [Ping timeout: 252 seconds]
Martxel_ has quit [Read error: Connection reset by peer]
<horrorvacui>
Jealous of RubyPanther, a wife thats a chef and beach access common what a lucky bastard
dorei has quit []
supermarin___ has quit [Quit: Computer has gone to sleep.]
<RubyPanther>
The beach is 65 miles away, but it is whale migration season and she wants to see the whales
bean has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
emaxi has quit [Ping timeout: 246 seconds]
Martxel has quit [Ping timeout: 240 seconds]
<RubyPanther>
she's from central Thailand, she's never seen a whale
supermarin___ has joined #ruby
<horrorvacui>
The beach is 282 miles from my house.
oo_ has joined #ruby
<RubyPanther>
That would make a day trip very tiring
Martxel has joined #ruby
Hobogrammer has quit [Ping timeout: 252 seconds]
sputnik13 has quit [Quit: My Mac Mini has gone to sleep. ZZZzzz…]
<horrorvacui>
Yeah it would take at least 4 hours there so 8 hours round trip.
eka has quit [Quit: My computer has gone to sleep. ZZZzzz…]
supermarin____ has joined #ruby
<shevy>
what kind of beach are you talking about
<wallerdev>
they dont have whales in thailand?
CyborgCygnus has joined #ruby
<shevy>
wallerdev I think they eat them on sight
RowdyChildren is now known as RowdyChild|Away
<RubyPanther>
they definitely don't have whales in central Thailand
<wallerdev>
lol
<wallerdev>
no seaworld?
<RubyPanther>
freshwater shrimp, sure
supermarin____ has quit [Client Quit]
supermarin____ has joined #ruby
supermarin___ has quit [Ping timeout: 255 seconds]
supermarin____ has quit [Read error: Connection reset by peer]
sambao21 has quit [Quit: Computer has gone to sleep.]
taf2 has joined #ruby
<RubyPanther>
No, to be that you'd have to give it whitespace and take the care to make the whitespace pasteable into the REPL. That was the true hidden masterwork in the code generator for perl.rb
CyborgCygnus has quit [Remote host closed the connection]
mary5030 has joined #ruby
<RubyPanther>
without the subtle details of craftmanship it is just a chunk of frighteningly awful code
pigzzcanfly has quit [Remote host closed the connection]
<RubyPanther>
I try to make sure that is true of all my code
<benzrf>
is there a way to do video concatenation from ruby
<benzrf>
with the output to an IO object
danfo has joined #ruby
Kricir has joined #ruby
sambao21 has joined #ruby
<wallerdev>
i would use ffmpeg
<postmodern>
there's a rather stupid question, is there a library that handles decompressing arbitrary archives? like if i give it a .tbz2 it knows to `tar xjf ... ...`?
danfo has quit [Client Quit]
<xiella>
Um, what is the difference between #ruby and #ruby-lang?
<wallerdev>
lol
afex has quit [Ping timeout: 240 seconds]
<wallerdev>
#ruby-lang used to be bigger than #ruby
<wallerdev>
but everyone typed /j #ruby and eventually #ruby became the main channel
<xiella>
Ahh
<wallerdev>
no real difference between the channels despite what some people say
<xiella>
Heh, okay
amclain has joined #ruby
reset has quit [Quit: Leaving...]
<wallerdev>
it's the ruby way, more than one way to do things
havenwood has quit [Remote host closed the connection]
skinkitten has joined #ruby
<centrx>
xiella, #ruby is usually more active than #ruby-lang
razrunelord has quit []
<xiella>
haha. I'm a recent convert from php so still trying to find my bearings
<xiella>
yes, i was just noticing :)
<RubyPanther>
benzrf: it seems to return a different number on different platforms. Other than that it is meaningless.
MatthewsFace has joined #ruby
<centrx>
xiella, #ruby-lang has a few Ruby experts who never join #ruby, and it also has IRC/tech newbies who get through the referral on the Ruby website
<RubyPanther>
When I wrote it I was mostly focused on syntax, rather than semantic value
SilkFox has quit [Read error: Connection reset by peer]
<centrx>
xiella, Ruby will be much more happiness-inducing than PHP
tjr9898 has quit [Read error: Connection reset by peer]
Hanmac1 has joined #ruby
<xiella>
centrx: :D
<wallerdev>
havent they fixed php by now
<wallerdev>
cant be that bad still
<benzrf>
wahahahaha
<centrx>
They never change any old broken things. They just keep adding more on top of it
<benzrf>
>php
<benzrf>
>not that bad
<benzrf>
>ever
<centrx>
So it has an object model now, but the type system is still broken, and it's not like you can escape using such basic functionality
Melpaws has joined #ruby
wackonline has joined #ruby
tjr9898 has joined #ruby
<xiella>
It is much better than it was, probably. But still essentially still a
<xiella>
ad hoc-y*
<RubyPanther>
probably, but the only people we could get to check were questionable, so we may never know
<wallerdev>
seems like still a decent choice for like small websites on shared hosts
brucelee has joined #ruby
scarolan_ has quit [Remote host closed the connection]
<RubyPanther>
same as with the unicorns, I found lots of people that believe in them, but they were all dressed for the SCA
<wallerdev>
very easy to get setup with compared to ruby on rails or something
<xiella>
wallerdev: agreed!
Hanmac has quit [Ping timeout: 240 seconds]
<centrx>
Ruby on Rails set up is pretty quick
newUser1_ has quit [Remote host closed the connection]
<benzrf>
no
<benzrf>
never
<benzrf>
never
<benzrf>
php
<xiella>
i have still not installed a ruby stack, mind you
<benzrf>
php is likemike
<benzrf>
*like
<xiella>
lol
<benzrf>
murder or something
<RubyPanther>
yeah, if you want something with the same amount of work required, but everybody promises it is super-easy, then for a small website somebody will feel more comfortable... even if it is harder!
<benzrf>
in that it is utterly repugnant
snuffeluffegus has joined #ruby
<popl>
benzrf: Every time you use enter to punctuate your sentences it makes me want to punctuate something.
<popl>
:P
brunops has joined #ruby
<RubyPanther>
I agree that PHP is utterly repugnant, but sometimes murder is justified
<benzrf>
hehehe
binaryhat has quit [Quit: Leaving]
<popl>
Why is PHP repugnant?
<benzrf>
for the same reason windows is repugnant, but multiplied by a few
<xiella>
5+" years old" - is probably one reason
<wallerdev>
php setup on a shared host is literally typing a line of code and dragging it to your server in php lol
<popl>
benzrf: What reason is that?
<wallerdev>
cant get any easier than that
<wallerdev>
ftp
<Quadlex>
xiella: Ruby is 20 years old
maximski has joined #ruby
<RubyPanther>
I did a bugfix in PHP, I don't remember what made it awful, I just remember it tasted really bad
<RubyPanther>
Anything supported on a shared host requires pasting one line of code, or else it is a poorly setup host. Shared hosting, however, is BELOW ENTRY LEVEL
<centrx>
PHP was a collection of hacks for building web pages, does not have a good language design.
<wallerdev>
have you guys seen facebook's new tool that lets you add static typing to php
<wallerdev>
pretty neat
newUser1234 has joined #ruby
brunops has quit [Changing host]
brunops has joined #ruby
<RubyPanther>
this is not 1999 when hosting was expensive and shared hosting was used for small sites. "shared hosting" in this age of cheap VPS, that is as silly for even a small site as geocities was in the 90s. It is usable for a "personal home page" though
tacos1de has quit [Remote host closed the connection]
<RubyPanther>
PHP can't have good design, because the whole premise of the language is that programmers are idiots, and non-programmers can design better languages than programmers, because they're not all hung up on technical details
<benzrf>
oh wait left out a cd foo
<wallerdev>
or drag and drop an html file to your ftp site
SidWu has joined #ruby
SidWu has quit [Max SendQ exceeded]
<benzrf>
ftp is an evil power
sailias has joined #ruby
<benzrf>
scp preferred thx
<RubyPanther>
assuming the webserver is already configured (the same assumption you make for PHP) you can simply MPUT your rails directory to the ftp site and *POW* your rails site is live
<xiella>
Quadlex: yeah? Anyway ihni how old php is. Makes sense that it was meant to solve assorted specific web problems rather than designed somewhere.
<RubyPanther>
it was designed somewhere, it was designed by a guy who needed websites but hated programming
<RubyPanther>
^ real history
<xiella>
ah really
dik_dak has quit [Quit: Leaving]
wchun has joined #ruby
<benzrf>
the fact that he hated programmign really shows
<RubyPanther>
so if you also hate programming and think that the reason programming sucks is because the programmers are idiot nerds, you might find PHP to make a lot of sense
<xiella>
:p
<benzrf>
:-)
<centrx>
"I'm not a real programmer. I throw together things until it works then I move on. The real programmers will say "Yeah it works but you're leaking memory everywhere. Perhaps we should fix that." I’ll just restart Apache every 10 requests." - Creator of PHP
<xiella>
you're right that doesn't sound like a real programmer at all
<benzrf>
php 'makes sense' in the sense that most of its behavior seems reasonable in a vacuum
<xiella>
lol
<benzrf>
when you throw it all together, it's a horrible fucking mess
<xiella>
it's also the lowest common denominator
<benzrf>
it's like building a house with no blueprints and all of your supplies are rotten and full of holes and misshapen
newUser1234 has quit [Remote host closed the connection]
<benzrf>
its a mess and it's not even a fun mess the way ruby is
<xiella>
i think it works for the least it has to achieve
<benzrf>
even then no
<benzrf>
use erb or something
<xiella>
otherwise people wouldn't accept the results
larsam has quit [Ping timeout: 255 seconds]
<centrx>
PHP was all there was except Perl and C until about 2005
<benzrf>
fucking hell
<centrx>
*for web
<RubyPanther>
The reason PHP is widespread is that is traditionally embedded in HTML and had support in apache in an age without safe, trusted VPS's, and it had limited language features that were focused purely on the web, so non-programmers who needed to make simple web sites were choosing between PHP, Perl, and proprietary languages that required purchasing expensive IDEs
<benzrf>
i mean even perl is better than php
sailias has quit [Quit: Leaving.]
<xiella>
but it is not very enjoyable to code
<popl>
Perl is fun to write.
<RubyPanther>
Perl is really exceptionally complicated
<popl>
You must not be doing it right.
<popl>
RubyPanther: It can be.
<benzrf>
perl is pretty badhatter
<benzrf>
*bad
<benzrf>
but its bad with a design plan
<xiella>
and i would much rather learn to be polyglot anyway
<popl>
Perl is probably my favorite language.
<RubyPanther>
the language IS complicated.
<benzrf>
php is what you get when somebody looks at perl and tries to improve on it without understanding it at all
sputnik13 has quit [Quit: My Mac Mini has gone to sleep. ZZZzzz…]
<RubyPanther>
Just because you can use a complicated tool in a simple way doesn't take the complicated nature out of the tool
<benzrf>
and then later looks at c++ and says 'I CAN DO THAT'
<RubyPanther>
Perl is designed to be expressive, as a natural language. It is as complicated as a human language. But still as precise as any programming language.
toastynerd has joined #ruby
<benzrf>
debatably so..
<popl>
Do you guys know anything about Perl? :P
<RubyPanther>
That is not any debate that Perl hackers have, they already know that stuff.
<benzrf>
ruby tho
<RubyPanther>
I did mostly Perl for 8 years before switching to Ruby
<popl>
Go team Ruby! :P
<wallerdev>
perl is kinda dead for new development
<benzrf>
ruby is what you get when somebody looks at perl and tries to improve on it while understanding it pretty well
<benzrf>
and then looks at smalltalk and says 'I CAN DO THAT'
<popl>
RubyPanther: So you know Perl has a pretty rich OO system.
emaxi_ has quit [Remote host closed the connection]
frem has quit [Quit: Connection closed for inactivity]
<benzrf>
ah
<popl>
then there's something like Moo and Mouse if you don't want the heaviness of Moose.
<RubyPanther>
popl: It was 1998 or 1999, and Larry Wall was giving a radio interview, and they asked about OO, and he pointed out Perl OO is so awful because it isn't even bolted on, it is "bolted through," and if you want to do everything using OOP then Ruby is a better language than Perl. He then launched into a defense of procedural programming.
<popl>
That was 1999.
<popl>
This is 2014. :P
<RubyPanther>
And I totally agree with everything Larry Wall says about programming. The difference is that I _do_ want to do everything using OOP.
<benzrf>
fp tho
<RubyPanther>
yes, and nothing in that evaluation has changed!
<benzrf>
oop is a well-made hammer, not a golden one
<RubyPanther>
Perl OO is about the same, Ruby's OO is exactly the same
<popl>
Perl OO is about the same as it was in 1999?
havenwood has joined #ruby
Nukepuppy has quit [Ping timeout: 240 seconds]
<RubyPanther>
Sure, sure, if you don't want to use OO for everything, you shouldn't want to use Ruby for everything, Ruby is only best with the OO hammer
GodPuppet has quit [Remote host closed the connection]
michaeldeol has joined #ruby
<RubyPanther>
Hint: We'd been waiting years for Perl 6 in 1999, it was already a bit of a joke how long we'd been using Perl 5 ;)
<popl>
Perl6 is not Perl
<benzrf>
it's better with the FP hammer than most other OO langs though
<popl>
Perl6 is an entirely different language.
Kricir has quit [Remote host closed the connection]
michaeldeol has quit [Client Quit]
<RubyPanther>
Right, Perl 5 was the Larry's rewrite of Perl. Perl 6 was the community's rewrite. And the community chose Larry's over their own.
<popl>
No
<popl>
Not exactly. :P
* centrx
yearns for the day he can program Perl 6 on top of GNU Hurd while playing Duke Nuk'em Forever
<RubyPanther>
I'm literally quoting mainstream Perl dogma from when I was a Perl hacker.
Spami has quit [Quit: This computer has gone to sleep]
combusean has joined #ruby
RowdyChild|Away is now known as RowdyChildren
skulker has joined #ruby
<benzrf>
centrx: >AAA games
kitak_ has quit [Read error: Connection reset by peer]
<combusean>
centrx, do you have a BS in CS?
<combusean>
erm, benzrf
r0bby_ has joined #ruby
<RubyPanther>
"Perl 5 was my rewrite of Perl. I want Perl 6 to be the community's rewrite of Perl and of the community." -- Saint Wall
kitak has joined #ruby
<benzrf>
centrx: i refuse to play anything that has bought advertisements in anything beyond websites
<centrx>
I have a BS in CS, but it is not a degree
Quadlex has left #ruby [#ruby]
<combusean>
o.O
afex has joined #ruby
<combusean>
how is it not?
<benzrf>
combusean: i've graduated middle school
<benzrf>
=p
<centrx>
It's B.S.
<combusean>
ahh
<RubyPanther>
"The Perl 6 design process is about keeping what works in Perl 5, fixing what doesn't, and adding what's missing. That means there will be a few fundamental changes to the language, a large number of extensions to existing features, and a handful of completely new ideas. These modifications, enhancements, and innovations will work together to make the future Perl even more insanely great -- without, we hope, making it even more great
<RubyPanther>
ly insane." -- Damian Conway, 2003
<popl>
RubyPanther: I just meant that Larry's got influence in the design of Perl6. He's a regular on both the mailing list and in the IRC channel.
<RubyPanther>
The idea that Perl 6 is a "different language" is revisionist history to explain away that it was a total failure in its mission to be an update to Perl 5
<combusean>
i never got a BS in CS and i'm not doing to well on whiteboard interviews talking to java graduates that expect all sorts of stupid shit like sorting algos and binary trees that you never see in the ruby/rails world
setient has quit [Read error: Operation timed out]
<popl>
I disagree, RubyPanther.
sambao21 has quit [Quit: Computer has gone to sleep.]
sdouglas_ has joined #ruby
<RubyPanther>
Of course he does, how many times did they ask him to fix it?
r0bby_ is now known as robbyoconnor
sdouglas has quit [Ping timeout: 246 seconds]
<wallerdev>
combusean: are you in SF area?
<combusean>
yeah wallerdev
blackavr has quit [Quit: blackavr]
<benzrf>
combusean: excuse me
<benzrf>
combusean: algos and data structures are good to know
<benzrf>
>:o
<RubyPanther>
popl: I was there, and I even remember where to find the quotes and pasted them ;)
<centrx>
combusean, It's an artificial way to interview, but sometimes it has to be done. It's pretty straightforward to learn the basic data structures and search/sort algorithms
<benzrf>
youre being entirely too pragmatic for my taste
<benzrf>
>:(
<wallerdev>
yeah you should know algos and data structures and when to use them
Shidash has quit [Ping timeout: 255 seconds]
<popl>
RubyPanther: I meant I disagree about the interpretation of that quote from Conway.
<wallerdev>
maybe not implement one, but know enough to know why one would be a good choice over another
<combusean>
i can usually handle binary trees but this other time I was supposed to find the most common ancestor of a given set and I just couldn't grok it.
setient has joined #ruby
<RubyPanther>
popl: The quote proves that Perl 6 was not trying to be a new language, it was literally trying to just be an update to Perl 5
<RubyPanther>
as in, people stopped working on updating Perl 5 for a couple years to throw the effort behind Perl 6
brunops has quit [Quit: leaving]
<RubyPanther>
There was a huge amount of hair-pulling and related gestures before Perl 5 started getting attention again
<centrx>
Why is Perl 6 taking so long? It sounds like it is being done by committee?
<wallerdev>
its dead
fsdldl has joined #ruby
<wallerdev>
too complicated
<RubyPanther>
I drank the punch too, I really through Perl 6 was gonna be the awesomest thing ever and all that. Except the code that Conway on those guys were showing... it wasn't looking any clearer... and then the bookstore had an English book on Ruby, so I was outta there
<RubyPanther>
thought
baroquebobcat has joined #ruby
sdouglas_ has quit [Remote host closed the connection]
sdouglas has joined #ruby
bandu has joined #ruby
bandu is now known as Guest81288
northfurr has joined #ruby
northfurr has joined #ruby
rm_ has quit [Disconnected by services]
<RubyPanther>
Ruby explicitly rejects the idea that ideological orthogonality is good. That alone reduces code complexity by an order of magnitude.
<RubyPanther>
In Ruby circles it is obvious that orthogonal things should be different. In Perl they're expected to be the same, just in different contexts.
benzrf is now known as benzrf|offline
<popl>
Which things?
<RubyPanther>
You can build unlimited complexity; unlimited cleverness
<RubyPanther>
Everything, it is central to the whole list/scalar dichotomy
<wallerdev>
combusean: if you're interested in a JS position in SF let me know
viscera has left #ruby [#ruby]
<RubyPanther>
Everything orthogonal is expected to be able to move in the orthogonal direction, to be plugged in that way
<RubyPanther>
In Ruby if you try to argue that that _should_ be the case, you will likely get called names. And in Perl if you argue against it, they'll point out that ideological orthogonality is "expert-friendly." That is a vary common term in Perl.
<RubyPanther>
"expert-friendly" is a backhanded insult in Ruby.
<RubyPanther>
In Perl it is a face-value compliment.
kukyakya has joined #ruby
kukyakya has quit [Remote host closed the connection]
hamakn has quit [Remote host closed the connection]
Lewix has quit [Remote host closed the connection]
<combusean>
[operator voice] One moment, please ..
<combusean>
*hold music*
<hailwood>
lol
<benzrf>
i use irrsi
axisys is now known as info
<combusean>
oh jebus, you have opsworks
<benzrf>
*irssi
<explorer13>
Hi, I want to run a ruby script which requires gem installation of rainbow and english package. I have installed them and then when i want to run the script i m still getting error can't convery nil into String<TypeError>
<combusean>
hailwood, your problem isn't berkshelf
<combusean>
it's that a gem isn't compiling
habanany has joined #ruby
CaptainJet has joined #ruby
<hailwood>
combusean: any idea what line is telling me the gem that's failing?
<hailwood>
Ah, 738 by the looks
habanany has quit [Max SendQ exceeded]
<combusean>
727, technically
werdnativ has quit [Ping timeout: 255 seconds]
<hailwood>
So.. how do I work out why that isn't compiling when it's an automated process before I have any control? heh
<combusean>
729 to be more specific
luriv has joined #ruby
Lewix has joined #ruby
<combusean>
you're using an alpha version of the gem
<combusean>
i dunno anything about that gem
<hailwood>
Neither do I... that's opsworks doing that automatically... hmm
supermarin has quit [Quit: Computer has gone to sleep.]
<combusean>
is that gem declared in your gemfile?
<combusean>
grep for it in Gemfile.lock
supermarin has joined #ruby
sdouglas has quit [Remote host closed the connection]
sdouglas has joined #ruby
brucelee has joined #ruby
<combusean>
oh wait
<combusean>
that looks like a dependency of net-ssh
<combusean>
which you need.
<combusean>
for cap deployments, if that's what they use
info is now known as axisys
<combusean>
no, i could be wrong about the net-ssh, it looks like that configured
Hobogrammer has quit [Ping timeout: 255 seconds]
gerep has quit [Quit: Connection closed for inactivity]
Hobogrammer has joined #ruby
supermarin has quit [Ping timeout: 255 seconds]
AtomicJesus has joined #ruby
sdouglas has quit [Ping timeout: 265 seconds]
skulker has quit [Remote host closed the connection]
mrmargolis has quit [Remote host closed the connection]
<centrx>
AtomicJesus, Use my_array.dup to duplicate the array
jackyalcine is now known as jacky
JBreit has left #ruby [#ruby]
<centrx>
AtomicJesus, Otherwise, test = my_array is just assigning the same array to another variable name
alvaro_o has quit [Quit: Ex-Chat]
<centrx>
AtomicJesus, Yes, it is like a pointer
<AtomicJesus>
ok... thanks
<AtomicJesus>
I'm new to ruby if you couldn't guess
<centrx>
Welcome to Ruby!
<combusean>
yes, welcome! :)
<toastynerd>
Ruby is amazing, welcome!
<popl>
(don't talk about Perl)
<centrx>
Ruby is a magical land with unicorns, and rainbows, and other gems.
<combusean>
i learn by teaching and am happy to help out when i can
<AtomicJesus>
oh my
binaryhat has joined #ruby
skulker has quit [Ping timeout: 240 seconds]
<AtomicJesus>
thanks!
* combusean
kicks the custom deployer
<combusean>
time for more beer.
djbender has joined #ruby
Dysruption has quit [Ping timeout: 246 seconds]
Melpaws has joined #ruby
samuel02 has joined #ruby
<centrx>
AtomicJesus, You know how to get a crowd started!
<benzrf>
AtomicJesus: in most languages besides C, = acts like pointer assgn
<benzrf>
AtomicJesus: to be a little more precise, all vars act as pointers and . acts as -<
<benzrf>
* ->
Dysruption has joined #ruby
ftj has joined #ruby
<AtomicJesus>
good to know, I was banging my head against the wall for a second
<benzrf>
:)
Dysruption has quit [Client Quit]
<benzrf>
AtomicJesus: variable semantics work that way in ruby, python, java
<benzrf>
many others i am sure
<benzrf>
AtomicJesus: are you only versed in C?
<AtomicJesus>
Yes I come from a C background so I have a lot to get used to
<benzrf>
o boy
<benzrf>
for one
<benzrf>
*everything* is gonna be different
<combusean>
LOL
<benzrf>
ruby is at a much much higher level of abstraction
<benzrf>
i wouldnt even say ruby is to c as c is to assembly
marcdel has joined #ruby
<centrx>
s/higher/awesomer
<benzrf>
because many of the concepts carry over
<benzrf>
i.e. memory addressing
<benzrf>
ruby is entirely sealed off, in terms of abstraction
<benzrf>
*from c stuff
<AtomicJesus>
I like how you can basically figure out what method you need by basically guessing, I could have just guessed that last one
<ftj>
hey there — looking to do some data analysis on a csv I generated (~4 million records). any way for me to use an ActiveRecord-like interface to fiddle with them? I'd love to just say Record.where(:id => null).count or something like that.
<benzrf>
you do /not/ think about memory allocation or manipulation, for one
<AtomicJesus>
I came in asking how to duplicate lol
samuel02 has quit [Ping timeout: 255 seconds]
tectonic has joined #ruby
toastynerd has quit [Remote host closed the connection]
brucelee has quit [Ping timeout: 252 seconds]
<benzrf>
also, you cannot get a reference to a var
braincra- has quit [Quit: bye bye]
<benzrf>
if you want to update a var in place, your only option is to pass an object wrapped around it that can be mutated
<benzrf>
i.e.
<benzrf>
v = [val]
<benzrf>
func(v)
<centrx>
ftj, Load it into a database (SQLite is very lightweight and simple set up)
<benzrf>
result = v.first
<benzrf>
but that is poor practice anyway
Megtastique has quit []
<benzrf>
in ruby you do not get results by passing in things to put them in
snath has joined #ruby
<zorak>
hi, im doing a book of ruby and i get this
<zorak>
The construct_candidate method also uses the chr method, because extracting a single
<zorak>
character out of a String gives you that character’s ASCII value.
tjr9898 has quit [Remote host closed the connection]
<popl>
I don't understand the thinking anyways (you're not the first person to suggest it) -- it's not like I'll automatically get offered a job if I attend. :)
Dysruption has joined #ruby
tjr9898 has joined #ruby
<combusean>
no, i feel you
<combusean>
ruby is one of those languages where people don't hire everywhere for it
fabioboris has left #ruby [#ruby]
<combusean>
i left phoenix to get away from php
<combusean>
and do ruby again
<benzrf>
anyway god nite
<centrx>
Phoenix is dominated by PHP?
* benzrf
yawns
<combusean>
yes
* popl
throws a peanut into benzrf's open maw
<combusean>
there's a lot of windows and java
* benzrf
logs off
sdouglas has quit [Remote host closed the connection]
<combusean>
that i don't know
<combusean>
bye benzrf! :D
blackavr has quit [Quit: blackavr]
<combusean>
but lots of php
<popl>
The languages I know best are probably C++, Java, Perl, and starting to get better with Ruby.
<combusean>
and shops that don't use source control
<popl>
I did PHP for work for almost a year once.
<arubin>
Source control is a passing fad.
<combusean>
hahahaha
<popl>
your mother is a passing fad
<popl>
:O
<combusean>
it's basically 2006 in phoenix, at least it was in 2012 when I left
<combusean>
as far as ruby and rails and web development
djbender has quit [Read error: Connection reset by peer]
<centrx>
How fast is time moving there do you think
<combusean>
slow
<centrx>
Are they up to 2007 yet
<combusean>
you know what rules out there?
<combusean>
drupal
<combusean>
state gov and asu are all about it
<Dysruption>
can’t find any jobs in ruby without rails :P
<popl>
devops? :P
<Dysruption>
ha
<combusean>
you can't find jobs in san francisco with just ruby and rails
<combusean>
backend programmers by themselves are $0.10/dozen
<popl>
You think so?
francisfish has joined #ruby
<Dysruption>
i code java all day while dreaming of ruby
<combusean>
i've been unemployed 3 times in the last 20 months being here
<popl>
I try to be comfortable with writing anywhere on the stack.
<Dysruption>
should move to boston :)
nateberkopec has quit [Quit: Leaving...]
<combusean>
moved here unemployed, didn't work hard enough at my first job/bad culture fit, got hired again at a company that got aquired and got laid off, now i have a good contract with a mobile security startup. :)
<Dysruption>
nice
<combusean>
thanks Dysruption but my home is here now. :)
<combusean>
i've been to boston and wasn't a big fan anyways =P
<popl>
combusean: same, found a job at the world's largest retailer, been stuck looking for a new job since. :P
<Dysruption>
:o
<combusean>
oh shit
<combusean>
how are your CS fundamentals?
jorts has joined #ruby
<popl>
I went to uni but had to leave California before I could finish my degree.
<popl>
I was only about 7 classes away from doing that.
<Dysruption>
can you finish online?
<popl>
I don't think so.
niftylettuce_ has joined #ruby
<combusean>
where in california?
<combusean>
that's where I live now.
<combusean>
sf
<popl>
I was waiting the year until I'm considered a resident here (for tuition purposes) then was going to apply to the local CC to do the math I need.
diegoviola has joined #ruby
<popl>
combusean: Pomona.
<combusean>
ahh
<combusean>
wait 7 classes from a degree?
<combusean>
in CS?
pu22l3r_ has joined #ruby
<popl>
some of the classes weren't CS classes.
<popl>
linear algebra, stats, physics
francisfish has quit [Ping timeout: 255 seconds]
yfeldblum has joined #ruby
fbernier has joined #ruby
jason_ has quit [Remote host closed the connection]
<Dysruption>
sounds like classes you can take at a CC and transfer back over
<popl>
I'd already taken the core stuff (and some elective CS and math stuff).
<popl>
That was my tentative plan, Dysruption.
jason_ has joined #ruby
<popl>
I got to take a number theory elective. That was pretty sick.
<combusean>
popl, could you apply a maze sort algorithm on a whiteboard in ruby to solve an array of a maze sized x by y containing either 0 or 1: 0 is a free space and movable and 1 is a wall?
hailwood has left #ruby [#ruby]
<combusean>
that's the toughest CS question i've gotten interviewing up here.
<Dysruption>
hm
<combusean>
common ancestor of two random nodes in a binary tree was second toughest
axisys has quit [Remote host closed the connection]
pu22l3r has quit [Ping timeout: 255 seconds]
<popl>
maze sort? you mean maze solving?
<combusean>
yeah
<popl>
probably not in ruby, no
<combusean>
i've gotten that question on a whiteboard
<popl>
how'd you do?
havenwood has quit [Remote host closed the connection]
RowdyChildren is now known as RowdyChild|Away
organmeat has joined #ruby
<combusean>
didn't finish it, but they were somehow interested in a second interview
<combusean>
that's with absolutely no experience whatsoever to that sort of thing
habanany has joined #ruby
aspires has quit []
<combusean>
perhaps I did well on other skills like sociability, etc. who knows
habanany has quit [Max SendQ exceeded]
<combusean>
the binary tree one which I almost got i didn't get the job
<combusean>
despite doing well everywhere else
axisys has joined #ruby
explorer13 has quit [Quit: Leaving]
aspires has joined #ruby
axisys has quit [Changing host]
axisys has joined #ruby
jason_ has quit [Ping timeout: 246 seconds]
<combusean>
but if you stick around long enough you'll find a loose interview and get in and if you work your fucking ass off and deliver you'll stay onboard
<Dysruption>
combusean: what do you do? rails?
<combusean>
right now in infrastructure/devops
<Dysruption>
nice. infrastructure here
<combusean>
going to be in rails again when I finish this blasted custom deployer
<ftj>
I'm doing some data analysis on a CSV file (~4 million rows), and I'm using the supermodel gem to avoid having to put the whole thing into a database, and I'd like to have a way of just loading it into memory when I load my little script and then irb-ing around with the data. is that possible?
<ftj>
can I put something in my script that'll launch an irb prompt once the data is loaded into memory that'll allow me to do stuff like Record.where(:foo => bar).count
<ftj>
or should I just put everything in a sqlite db and use activemodel for real?
jorts has quit [Quit: jorts]
<Dysruption>
i don’t know too much about it but it sounds like pry might help you
havenwood has joined #ruby
<combusean>
yeah
<combusean>
insert a binding.pry somewhere in the execution
<combusean>
gem install 'jazz_hands' will give you a very nice suite of debugging and console interactivity.
LiquidInsect has quit [Quit: leaving]
rahult has joined #ruby
<combusean>
that comes with pry and the pry-debugger.
momomomomo has joined #ruby
hoelzro has joined #ruby
<combusean>
you have to require 'pry' in your code after you've installed the gem
AtomicJesus has quit [Remote host closed the connection]
LiquidInsect has joined #ruby
<Dysruption>
why is Module’s eigenclass’s eigenclass Class?
<centrx>
Deep questions
<Dysruption>
i’m braving the depths
<Dysruption>
and curious
voglster has joined #ruby
brucelee has joined #ruby
jibi has quit [Read error: Operation timed out]
<Dysruption>
i’ve found some class diagrams and explanations of eigenclasses / singletons and I understand them but I can’t seem to find any reasoning explanations
brucelee has quit [Client Quit]
voglster has quit [Quit: leaving]
blackavr has joined #ruby
Martxel has quit [Quit: Leaving]
lxsameer has joined #ruby
funktor has joined #ruby
<Dysruption>
plus every chart i see is outdated, 1.8
jorts has joined #ruby
jorts has quit [Client Quit]
Martxel has joined #ruby
rahult has quit [Quit: Back to the world of zombies]
Bumptious has joined #ruby
<zorak>
how can i resolve this error?
<zorak>
Exception `LoadError' at /usr/lib/ruby/1.9.1/rubygems.rb:1264 - cannot load such file -- rubygems/defaults/operating_system
<zorak>
already install rubygems
prdx has joined #ruby
<combusean>
what command are you running to get that error?
<combusean>
zorak
<zorak>
ruby -w --debug demo_els_parser.rb
<zorak>
Exception `LoadError' at /usr/lib/ruby/1.9.1/rubygems.rb:1264 - cannot load such file -- rubygems/defaults/operating_system
<zorak>
Exception `LoadError' at /usr/lib/ruby/1.9.1/rubygems.rb:1273 - cannot load such file -- rubygems/defaults/ruby
<zorak>
Exception `NoMethodError' at /home/zorak/Documentos/Ruby/Ejemplos_libros/els_parser.rb:50 - undefined method `file' for #<String:0x83cbefc>
spinx has joined #ruby
<zorak>
/home/zorak/Documentos/Ruby/Ejemplos_libros/els_parser.rb:50:in `reset_params': undefined method `file' for #<String:0x83cbefc> (NoMethodError)
<zorak>
from /home/zorak/Documentos/Ruby/Ejemplos_libros/els_parser.rb:45:in `initialize'
<zorak>
from demo_els_parser.rb:6:in `new'
<zorak>
from demo_els_parser.rb:6:in `<main>'
<zorak>
there's a lot of errors, but i want resolve the first, first
browndawg has quit [Ping timeout: 240 seconds]
<combusean>
um
jibi has joined #ruby
Deele has joined #ruby
habanany has joined #ruby
<combusean>
look at line 50 of els_parser.rb, you're running file on a String class
mostlybadfly has quit [Quit: Connection closed for inactivity]
<combusean>
without seeing the code you probably have to open it or something, i dunno
<zorak>
The initialize method also calls the reset_params method, defined right
<zorak>
below initialize, which simply sets the instance variable @search_params to
<zorak>
the search_params argument passed into initialize, falling back to the
<zorak>
index of @contents if the :end_pt value would otherwise be nil. This gives
<zorak>
DEFAULT_SEARCH_PARAMS . It also sets the :end_pt value to fall back to the last
<zorak>
ELS_Parser a handy shortcut: leaving out the :end_pt automatically means
maletor has joined #ruby
<zorak>
Search to the end of @contents.
<zorak>
but dont say anything about the .file
<combusean>
resque question, if resque is properly working, there should be active resque processes, right?
<combusean>
when executing ps
robustus has quit [Ping timeout: 252 seconds]
<zorak>
eh? dont understand
<combusean>
i was asking the channel zorak
Melpaws has quit [Ping timeout: 240 seconds]
<zorak>
ok, thanks
<combusean>
zorak, the problem in your code is that on line 50 of elb_parser you're calling this file method on a string. file isn't a method on strings
kitak has quit [Ping timeout: 260 seconds]
fabrice31 has joined #ruby
Melpaws has joined #ruby
<zorak>
ohhhhhhhh
<zorak>
is size
<zorak>
no file
nateberkopec has quit [Ping timeout: 240 seconds]
<combusean>
:)
* centrx
feels like zorak is going through some kind of epiphany or digestion problem
<combusean>
bugs can hamper new users
<combusean>
especially when they compile
x1337807x has joined #ruby
<combusean>
erm
robustus has joined #ruby
<combusean>
pass parse errors
<zorak>
im doing this book "in the hard way"
CpuID2 has joined #ruby
<combusean>
zorak, did you see what was going on in the output of your original gist?
oo_ has quit [Remote host closed the connection]
<combusean>
you came in asking about the operating system stuff, but that was probably just debugging output
<RubyPanther>
zorak: what OS are you on?
<combusean>
you shouldn't typically have to run ruby with debug flags
<zorak>
i dont understand your question (sorry, english is not my first language)
<zorak>
the books instrutions specify the --debug flag
tectonic has quit []
CpuID has quit [Ping timeout: 252 seconds]
<combusean>
i think it's throwing you off, not sure
<combusean>
in that first gist that you pasted right
<RubyPanther>
oh, I get it, the --debug is making it show exceptions that were actually rescued, that explains the cannot load such file -- rubygems/defaults/operating_system
jaygen has joined #ruby
fabrice31 has quit [Ping timeout: 252 seconds]
<zorak>
whats a "gist"?
<RubyPanther>
makes me glad I don't debug :)
s_e has joined #ruby
<combusean>
sorry zorak i thought you were using github, not pastebin
<combusean>
when you pasted the output of ruby that first time, the problem wasn't in the first line, the real problem was down along the way
diegoviola has quit [Remote host closed the connection]
<combusean>
<zorak> Exception `NoMethodError' at /home/zorak/Documentos/Ruby/Ejemplos_libros/els_parser.rb:50 - undefined method `file' for #<String:0x83cbefc>
<combusean>
* spinx (~spinx@dsl-hkibrasgw3-58c0f8-161.dhcp.inet.fi) has joined #ruby
<combusean>
<zorak> /home/zorak/Documentos/Ruby/Ejemplos_libros/els_parser.rb:50:in `reset_params': undefined method `file' for #<String:0x83cbefc> (NoMethodError)
<combusean>
these were the real lines
circuit has quit [Quit: leaving]
<combusean>
when you see file name:number, that tells you the line number of the file that is causing problems. have to fix those first.
<zorak>
yes, than you :)
<combusean>
no problem
ktosiek has joined #ruby
<zorak>
now im having this one
<zorak>
/home/zorak/Documentos/Ruby/Ejemplos_libros/els_parser.rb:50:in `size': wrong number of arguments(1 for 0) (ArgumentError)
<zorak>
in the same f****line
<zorak>
dah, solved :P
<combusean>
it's .size - 1, not .size(foo - 1)
kennym has quit [Quit: Leaving.]
<combusean>
or whatever
<zorak>
and now i have like 7 errors
<zorak>
Exception `NoMethodError' at /home/zorak/Documentos/Ruby/Ejemplos_libros/els_parser.rb:69 - undefined method `coerce' for nil:NilClass
<zorak>
Exception `ArgumentError' at /home/zorak/Documentos/Ruby/Ejemplos_libros/els_parser.rb:69 - comparison of Fixnum with nil failed
<zorak>
/home/zorak/Documentos/Ruby/Ejemplos_libros/els_parser.rb:69:in `>': comparison of Fixnum with nil failed (ArgumentError)
<zorak>
from /home/zorak/Documentos/Ruby/Ejemplos_libros/els_parser.rb:69:in `upto'
<zorak>
from /home/zorak/Documentos/Ruby/Ejemplos_libros/els_parser.rb:69:in `block in search'
<zorak>
from /home/zorak/Documentos/Ruby/Ejemplos_libros/els_parser.rb:68:in `upto'
<zorak>
from /home/zorak/Documentos/Ruby/Ejemplos_libros/els_parser.rb:68:in `search'
<zorak>
from demo_els_parser.rb:7:in `<main>'
<zorak>
idk where this get this 'coerce' method i dont see anything like that in the code
andy__ has joined #ruby
Dysruption has quit [Quit: Dysruption]
diegoviola has joined #ruby
supermarin has joined #ruby
postmodern has quit [Quit: Leaving]
lukec has quit [Quit: lukec]
binw has quit [Read error: Connection reset by peer]
maletor has quit [Quit: Computer has gone to sleep.]
armyriad has joined #ruby
<combusean>
it's not on like 69 zorak?
<zorak>
but line 69 is this
<zorak>
@search_params[:min_skip].upto(@search_params[:max_sip]) do |skip|
funktor has quit [Remote host closed the connection]
thrillagorilla has quit []
james_d_h has joined #ruby
<zorak>
missing k sin max_skip
funktor has joined #ruby
fgo_ has joined #ruby
binw has joined #ruby
fgo has quit [Ping timeout: 240 seconds]
andy__ has quit [Remote host closed the connection]
Es0teric has quit [Quit: Computer has gone to sleep.]
eynj has joined #ruby
funktor has quit [Ping timeout: 246 seconds]
mary5030 has quit [Remote host closed the connection]
mary5030 has joined #ruby
arubin has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
Solnse has quit [Quit: Leaving.]
mois3x has quit [Quit: mois3x]
CpuID2 has quit [Quit: Leaving]
oo_ has joined #ruby
phansch has joined #ruby
mary5030 has quit [Ping timeout: 252 seconds]
larsam has joined #ruby
echevemaster has quit [Ping timeout: 246 seconds]
mary5030 has joined #ruby
toastynerd has quit [Remote host closed the connection]
jameswlane has joined #ruby
poguez_ has joined #ruby
aagdbl has joined #ruby
x77686d has joined #ruby
jameswlane has quit [Client Quit]
oo_ has quit [Ping timeout: 255 seconds]
mercwithamouth has quit [Ping timeout: 255 seconds]
<combusean>
zorak, that error suggests that the value in upto is invalid or somewhere like that
<combusean>
if it's nil, it can't be converted into a fixnum in the range
mary5030 has quit [Remote host closed the connection]
streetp has joined #ruby
papercode has quit [Ping timeout: 255 seconds]
mary5030 has joined #ruby
Adran has quit [Quit: Este é o fim.]
benzrf has quit [Ping timeout: 255 seconds]
benzrf|offline has joined #ruby
benzrf|offline is now known as benzrf
bean has joined #ruby
Martxel has quit [Ping timeout: 255 seconds]
michaeldeol has joined #ruby
sensen has quit [Ping timeout: 240 seconds]
<zorak>
how pry works? its like an enhanced irb??
rococo has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
richardjortega has joined #ruby
mary5030 has quit [Ping timeout: 255 seconds]
JohnBat26 has joined #ruby
Adran has joined #ruby
JohnBat26 has quit [Client Quit]
JohnBat26 has joined #ruby
JohnBat26 has quit [Client Quit]
JohnBat26 has joined #ruby
nateberkopec has joined #ruby
funburn has quit [Quit: funburn]
<zorak>
ehhh!! thanks friends!! thar code finally run without problems :D
Azure has quit [Remote host closed the connection]
chris_thomson has quit [Quit: Zzz...]
JasmeetQA has joined #ruby
Azure has joined #ruby
mercwithamouth has joined #ruby
nomadic has quit [Remote host closed the connection]
nateberkopec has quit [Ping timeout: 240 seconds]
chipotle has joined #ruby
chipotle has quit [Max SendQ exceeded]
chipotle has joined #ruby
fgo_ has quit [Remote host closed the connection]
richardjortega has left #ruby [#ruby]
nomadic has joined #ruby
ghr has joined #ruby
yfeldblum has quit [Remote host closed the connection]
dukz has joined #ruby
Celm has quit [Remote host closed the connection]
Hobogrammer has quit [Read error: Connection reset by peer]
yfeldblum has joined #ruby
Hobogrammer has joined #ruby
Jon30 has quit [Ping timeout: 255 seconds]
Morkel has joined #ruby
aspires has quit []
ghr has quit [Ping timeout: 255 seconds]
GreatSUN has joined #ruby
<GreatSUN>
Hi all
tcstar has quit [Quit: Leaving]
sdouglas has joined #ruby
aspires has joined #ruby
pu22l3r has joined #ruby
Cache_Money has joined #ruby
<GreatSUN>
I suddenly have problems with my SSLServer/SSLSocket connections... (Might be new gem version working different possibly [might also be that I am dumb])
<GreatSUN>
on server side I get error: SSL_accept returned=1 errno=0 state=SSLv2/v3 read client hello A: http request
wackonline has quit [Ping timeout: 245 seconds]
pontiki` has joined #ruby
<GreatSUN>
when catching this error and trying to connect with the client, it errors with: SSL_connect returned=1 errno=0 state=SSLv3 read server session ticket A: tlsv1 alert unknown ca
<GreatSUN>
streetp: I am not interested in "gratis show"
arubin has joined #ruby
<GreatSUN>
could you stop querying?
<GreatSUN>
I don't think advertising is allowed (in here)
mercwithamouth has quit [Ping timeout: 255 seconds]
davedev24 has quit []
<havenwood>
GreatSUN: if it was a PM /ignore or report to freenode
mercwithamouth has joined #ruby
pontiki has quit [Ping timeout: 255 seconds]
oo_ has joined #ruby
<GreatSUN>
havenwood: ahhh someone is alive :D
davidcelis has quit [Quit: K-Lined.]
erichmenge has quit [Quit: Arrivederci!]
erichmenge has joined #ruby
davidcelis has joined #ruby
armyriad has quit [Quit: Leaving]
pu22l3r has quit [Ping timeout: 255 seconds]
mary5030 has joined #ruby
CaptainJet has quit [Read error: Connection reset by peer]
pigzzcanfly has quit [Remote host closed the connection]
cj3kim_ has joined #ruby
Lewix has quit [Remote host closed the connection]
<havenwood>
GreatSUN: so your server isn't able to read its ca certificate? is it there? does the user have permissions?
phansch has quit [Quit: WeeChat 0.4.2]
CaptainJet has joined #ruby
Melpaws has quit [Ping timeout: 252 seconds]
<GreatSUN>
havenwood: just recognized that it is not setup when starting... wondering why it has been working before
<GreatSUN>
(re)adding it now
browndawg has quit [Ping timeout: 240 seconds]
fgo has joined #ruby
aspires has quit []
sputnik13 has joined #ruby
francisfish has joined #ruby
Melpaws has joined #ruby
pigzzcanfly has joined #ruby
mr_snowf1ake has quit [Quit: Leaving]
jgrevich_ has joined #ruby
cj3kim_ has quit [Read error: Connection reset by peer]
cj3kim__ has joined #ruby
papercode has joined #ruby
francisfish has quit [Ping timeout: 240 seconds]
carif has joined #ruby
zrl has quit [Read error: Connection reset by peer]
octarine has quit [Read error: Connection reset by peer]
tagrudev has joined #ruby
<centrx>
The witching hour approaches
devyn has quit [Remote host closed the connection]
mordof has quit [Quit: WeeChat 0.4.3]
end_guy has quit [Remote host closed the connection]
zrl has joined #ruby
mary5030 has quit [Remote host closed the connection]
octarine has joined #ruby
mary5030 has joined #ruby
nateberkopec has joined #ruby
tonni has quit [Remote host closed the connection]
yacks has quit [Read error: Operation timed out]
yacks has joined #ruby
meatherly has quit [Remote host closed the connection]
funburn has joined #ruby
dukz has quit [Remote host closed the connection]
bluOxigen has joined #ruby
armyriad has joined #ruby
funburn has quit [Client Quit]
end_guy has joined #ruby
SCommette has quit [Quit: SCommette]
Avahey_ has quit [Quit: Connection closed for inactivity]
krz has joined #ruby
streetp has quit [K-Lined]
devyn has joined #ruby
mary5030 has quit [Ping timeout: 255 seconds]
nateberkopec has quit [Ping timeout: 240 seconds]
andy__ has joined #ruby
monika_ has joined #ruby
Hobogrammer has quit [Quit: WeeChat 0.4.3]
Hobogrammer has joined #ruby
matcouto has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
fgo has quit [Remote host closed the connection]
Eiam has quit [Ping timeout: 260 seconds]
<GreatSUN>
havenwood: I finally found the problem...
<GreatSUN>
havenwood: somehow SSLServer doesn't want to run on port 8080 anymore
kitak has quit [Read error: Connection reset by peer]
kitak has joined #ruby
x1337807x has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
monika_ has quit [Quit: Leaving]
<diegoviola>
i have this path: "/home/fromthe/fromthepage/current/public/images/working/1/img_3566.jpg", i would like to write a regex that will give me only "images/working/1/img_3566.jpg" and remove the rest
<diegoviola>
but i don't know where to start
<diegoviola>
any ideas please?
Zwicker has quit [Read error: Connection reset by peer]
pontiki` has quit [Read error: Connection reset by peer]
andy__ has quit [Ping timeout: 255 seconds]
<centrx>
diegoviola, Depending on how variable the path naming system is, you could use string substitution to ""
bean has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<diegoviola>
ty
<j416>
diegoviola: wild guess: you are converting a path to an image on disk to something you'll be using in an url?
tonni has joined #ruby
<diegoviola>
yeah something like that
<j416>
if I were you I'd rather have that in config
<j416>
what if the path doesn't even contain /images/, it may be filtered away in the webserver
* j416
shrugs
halik has joined #ruby
<diegoviola>
right
<diegoviola>
thanks
nfk has joined #ruby
matcouto has joined #ruby
armyriad has quit [Ping timeout: 240 seconds]
<halik>
Hello guys. Question regarding dalli (memcache). Since dalli doesn't support regex to match keys, how do you guys usually expire this kinds of keys at a same time "article_1_comments_page_1", "article_1_comments_page_2"?
pontiki` has left #ruby ["ERC Version 5.3 (IRC client for Emacs)"]
armyriad has joined #ruby
AntelopeSalad has joined #ruby
AntelopeSalad_ has quit [Ping timeout: 255 seconds]
nateberkopec has quit [Ping timeout: 240 seconds]
flowerhack has joined #ruby
MatthewsFace has quit [Quit: This computer has gone to sleep]
crystal77 has quit [Quit: Computer has gone to sleep.]
sdouglas has quit [Remote host closed the connection]
skinkitten has quit [Remote host closed the connection]
carif has quit [Quit: Ex-Chat]
apeiros has quit [Ping timeout: 246 seconds]
IceDragon has quit [Quit: Space~~~]
<halik>
@j416: What do you mean by adding a counter to the keys to autoexpire?
amclain has quit [Quit: Leaving]
mary5030 has quit [Remote host closed the connection]
<j416>
halik: article_1_comments_page_1_1
<j416>
halik: article_1_comments_page_1_2
<j416>
halik: article_1_comments_page_1_3
<halik>
@j416: What I do right now is do an expire_fragment("article_1_comments") but when I added pagination for the comments it retained page 1 always. Hehe.
rococo has joined #ruby
<j416>
if you keep a reference to whichever is the latest, you don't have to manually expire the others, they'll just die
mary5030 has joined #ruby
werdnativ has joined #ruby
<halik>
Aah. But then I'd have to keep track of that last digit?
<j416>
not much different from expiring explicitly, but a little bit faster
dawkirst_ has quit [Quit: Leaving]
Slarv2 has joined #ruby
dawkirst has quit [Remote host closed the connection]
<j416>
although not necessarily faster since you'd have to look up that number before retreiving from the cache, so
pu22l3r has quit [Ping timeout: 240 seconds]
<j416>
tomato tomato
postmodern has joined #ruby
popl has quit [Ping timeout: 246 seconds]
Xeago has joined #ruby
dalzony1 has joined #ruby
dalzony1 has left #ruby [#ruby]
sputnik13 has quit [Quit: My Mac Mini has gone to sleep. ZZZzzz…]
<halik>
@j416: Is there a way to loop on the keys?
<j416>
(because either you'd need to do a potentially slow key lookup (can't store the keys in memcached), or you'd have to store them statically some place but that doesn't guarantee that they are updated (well, the key lookup could be wrong too so))
sdwrage has quit [Quit: This computer has gone to sleep]
<Terminus->
errr... `ls -l /usr/bin/ruby2.0`
supermarin has joined #ruby
<hailwood>
That ones not a symlink
<Terminus->
aha. also, i misread the paste. thought i saw /usr/local/. >_<
<Terminus->
anyway, ruby20-devel should be available somewhere...
kraljev6 has joined #ruby
sepp2k has joined #ruby
kaliya has joined #ruby
jack_rabbit has joined #ruby
deadlock has joined #ruby
<hailwood>
Does the pnnn of ruby20-devel need to match the pnnn of ruby --version?
advorak has quit [Quit: Ex-Chat]
<Terminus->
hailwood: probably not but i'd prefer having the same. it's in amazon's repo?
supermarin has quit [Ping timeout: 240 seconds]
_5kg has quit [Ping timeout: 255 seconds]
elaptics`away is now known as elaptics
LiohAu has joined #ruby
<hailwood>
Nope, but I can find an rpm online (although I'm only hoping it will work since it's distribution is opensuse but they are both rpm based..)
aagdbl has quit [Quit: This computer has gone to sleep]
<hailwood>
Wonder if I should just uninstall ruby then reinstall from source?
robde has joined #ruby
blackmes1 has joined #ruby
michael_lee has joined #ruby
michael_lee has quit [Max SendQ exceeded]
blackmesa has quit [Ping timeout: 240 seconds]
zoraj has joined #ruby
poguez_ has quit [Quit: Connection closed for inactivity]
<Terminus->
hailwood: well, reinstalling from source does mean you control where the header files are located. have you tried looking for ruby.h first? maybe it's already there? i have mine in /usr/include/ruby-1.9.1/ruby.h
canton7-mac has joined #ruby
<hailwood>
Well there is /usr/lib64/ruby/1.8/x86_64-linux/ruby.h, but that's ruby 1.8..
matcouto has quit [Read error: Connection reset by peer]
shashank_rs has joined #ruby
flowerhack has quit [Quit: Connection closed for inactivity]
blackmes1 has quit [Ping timeout: 246 seconds]
<Terminus->
hailwood: yeah... you want the 2.0 version. asking amazon is an option as well.
<hailwood>
Haha, yeah but the minumum $100 support contract is not my cup of tea ;)
pigzzcanfly has quit [Remote host closed the connection]
evenix has quit [Remote host closed the connection]
dapz has joined #ruby
evenix has joined #ruby
ephemerian has joined #ruby
tjr9898_ has quit [Remote host closed the connection]
<Terminus->
hailwood: kinda seems to be a big oversight for amazon to not provide the header files though.
evenix_ has joined #ruby
<hailwood>
Yeah it really does
evenix has quit [Read error: Connection reset by peer]
funktor has joined #ruby
nighter_ is now known as nighter
pyon has joined #ruby
Caius has quit [Quit: ""]
narcan has quit [Quit: -[AppDelegate installMalware]: unrecognized selector sent to instance 0x156109c0]
einarj has joined #ruby
Caius has joined #ruby
rylev has joined #ruby
arturaz has joined #ruby
funktor has quit [Ping timeout: 252 seconds]
<shevy>
omg
<shevy>
where did havenwood go
<Terminus->
rvm can't make gemsets when using system ruby. =(
<coapsy>
Think it is, I’ll give you feedback after try this :D thanks
<Hyeon>
Your welcome :)
ahawkins has joined #ruby
francisfish has quit [Remote host closed the connection]
bubbajones has joined #ruby
atno has joined #ruby
<olivier_bK>
shevy, it's okai i found the solution of my problem
jxf has quit [Ping timeout: 240 seconds]
pu22l3r has joined #ruby
<coapsy>
Hey Hyeon, I’ve managed to call callback, but now I’m stuck with other thing
banister_ has joined #ruby
banister has quit [Read error: Connection reset by peer]
rylev has quit [Ping timeout: 264 seconds]
<coapsy>
parameter to that callback must be provided only in .call()?
lkba has quit [*.net *.split]
jpinnix____ has quit [*.net *.split]
Royalb15_1 has quit [*.net *.split]
mengu has quit [*.net *.split]
habanany has quit [*.net *.split]
michael_mbp has quit [*.net *.split]
sk87 has quit [*.net *.split]
fella5s has quit [*.net *.split]
digifiv5e_ has quit [*.net *.split]
Blue_Ice has quit [*.net *.split]
bpgoldsb has quit [*.net *.split]
Guest1313 has quit [*.net *.split]
rdark has quit [*.net *.split]
Elfix has quit [*.net *.split]
Tarential has quit [*.net *.split]
error404 has quit [*.net *.split]
brunto has quit [*.net *.split]
iaj has quit [*.net *.split]
TheNumb has quit [*.net *.split]
lolmaus has quit [*.net *.split]
fabrice31 has quit [*.net *.split]
bambuka has quit [*.net *.split]
msch has quit [*.net *.split]
zz_nopc0de has quit [*.net *.split]
machete has quit [*.net *.split]
gizmore has quit [*.net *.split]
wmoxam has quit [*.net *.split]
Liru has quit [*.net *.split]
moshee has quit [*.net *.split]
Asher has quit [*.net *.split]
devyn has quit [*.net *.split]
ccooke has quit [*.net *.split]
schmidt has quit [*.net *.split]
ozzloy has quit [*.net *.split]
samuel02 has quit [*.net *.split]
pavelz has quit [*.net *.split]
PaulePanter has quit [*.net *.split]
obs has quit [*.net *.split]
Xiti has quit [*.net *.split]
germanstudent has quit [*.net *.split]
Authenticator has quit [*.net *.split]
olivier_bK has quit [*.net *.split]
Afal has quit [*.net *.split]
nfk has quit [*.net *.split]
felixjet has quit [*.net *.split]
hamakn has quit [*.net *.split]
tkuchiki has quit [*.net *.split]
lxsameer has quit [*.net *.split]
RowdyChild|Away has quit [*.net *.split]
mahlon has quit [*.net *.split]
dideler|work has quit [*.net *.split]
arietis has quit [*.net *.split]
Voodoofish430 has quit [*.net *.split]
eythorium has quit [*.net *.split]
gtech has quit [*.net *.split]
elaptics has quit [*.net *.split]
cephalostrum has quit [*.net *.split]
Waheedi has quit [*.net *.split]
v0n has quit [*.net *.split]
zorak has quit [*.net *.split]
tvw has quit [*.net *.split]
matchaw has quit [*.net *.split]
TheMoonMaster has quit [*.net *.split]
parus has quit [*.net *.split]
Heskie has quit [*.net *.split]
shashank_rs has quit [*.net *.split]
dapz has quit [*.net *.split]
arount has quit [*.net *.split]
mikecmpbll has quit [*.net *.split]
Kneferilis has quit [*.net *.split]
twiceaday has quit [*.net *.split]
qba73 has quit [*.net *.split]
oo_ has quit [*.net *.split]
Tuxified has quit [*.net *.split]
noop has quit [*.net *.split]
binw has quit [*.net *.split]
spinx has quit [*.net *.split]
prdx has quit [*.net *.split]
hakunin has quit [*.net *.split]
freerobby has quit [*.net *.split]
badhatter has quit [*.net *.split]
phreax has quit [*.net *.split]
aspiers has quit [*.net *.split]
paul__k has quit [*.net *.split]
redondos has quit [*.net *.split]
jph98 has quit [*.net *.split]
helpa has quit [*.net *.split]
n88 has quit [*.net *.split]
Maitiu has quit [*.net *.split]
lsmola_ has quit [*.net *.split]
eavgerinos has quit [*.net *.split]
Krypt has quit [*.net *.split]
jenskarlsen has quit [*.net *.split]
jle` has quit [*.net *.split]
Guest41888 has quit [*.net *.split]
PaulePanter has joined #ruby
n88 has joined #ruby
wmoxam_ has joined #ruby
Afal has joined #ruby
machete has joined #ruby
error404 has joined #ruby
iaj has joined #ruby
Kryptonical has joined #ruby
pavelz has joined #ruby
eythorium has joined #ruby
arount has joined #ruby
prdx has joined #ruby
Elfix has joined #ruby
twiceaday has joined #ruby
parus has joined #ruby
rdark has joined #ruby
devyn has joined #ruby
eavgerinos has joined #ruby
nopc0def has joined #ruby
lolmaus has joined #ruby
Tarential has joined #ruby
schmidt has joined #ruby
dideler|work has joined #ruby
germanstudent has joined #ruby
felixjet has joined #ruby
freerobby has joined #ruby
ozzloy has joined #ruby
Liru has joined #ruby
obs has joined #ruby
TheNumb_ has joined #ruby
Guest1313 has joined #ruby
helpa has joined #ruby
ozzloy has quit [Changing host]
ozzloy has joined #ruby
fella5s has joined #ruby
<Hyeon>
umm
elaptics has joined #ruby
Blue_Ice has joined #ruby
Authenticator has joined #ruby
spinx has joined #ruby
Maitiu has joined #ruby
Blue_Ice has quit [Changing host]
bpgoldsb has joined #ruby
Blue_Ice has joined #ruby
gizmore has joined #ruby
Xiti has joined #ruby
sk87 has joined #ruby
tvw has joined #ruby
fabrice31 has joined #ruby
tkuchiki has joined #ruby
oo_ has joined #ruby
badhatter has joined #ruby
badhatter has joined #ruby
matchaw has joined #ruby
noop has joined #ruby
gtech has joined #ruby
Royalb15_1 has joined #ruby
redondos has joined #ruby
nfk has joined #ruby
helpa has quit [Write error: Broken pipe]
moshee has joined #ruby
cephalostrum has joined #ruby
moshee has quit [Changing host]
moshee has joined #ruby
mikecmpbll has joined #ruby
arount is now known as Guest18435
hamakn has joined #ruby
habanany has joined #ruby
jpinnix____ has joined #ruby
qba73 has joined #ruby
phreax has joined #ruby
jle` has joined #ruby
arietis has joined #ruby
spinx has quit [Max SendQ exceeded]
hakunin has joined #ruby
RowdyChild|Away has joined #ruby
Voodoofish430 has joined #ruby
jenskarlsen has joined #ruby
lsmola has joined #ruby
digifiv5e has joined #ruby
samuel02 has joined #ruby
jph98 has joined #ruby
v0n has joined #ruby
helpa has joined #ruby
Martxel has joined #ruby
Tuxified has joined #ruby
zorak has joined #ruby
bambuka has joined #ruby
Asher has joined #ruby
aspiers has joined #ruby
ArchBeOS has joined #ruby
olivier_bK has joined #ruby
binw has joined #ruby
ccooke has joined #ruby
brunto_ has joined #ruby
digifiv5e is now known as Guest99355
mengu has joined #ruby
mengu has joined #ruby
Waheedi has joined #ruby
paul_k has joined #ruby
noop has quit [Changing host]
noop has joined #ruby
spinx has joined #ruby
shashank_rs has joined #ruby
mahlon has joined #ruby
michael_mbp has joined #ruby
jpinnix____ has quit [Changing host]
jpinnix____ has joined #ruby
lsmola has quit [Changing host]
lsmola has joined #ruby
ArchBeOS is now known as Guest54290
<Hyeon>
coapsy: hold on
Guest1313 has left #ruby [#ruby]
roolo has quit [Quit: Leaving...]
omegahm has joined #ruby
Heskie has joined #ruby
Norrin has joined #ruby
pu22l3r has quit [Ping timeout: 255 seconds]
TheMoonMaster has joined #ruby
bubbajones has quit [Ping timeout: 265 seconds]
johnhamelink has joined #ruby
eyckelboom has quit [Quit: bye!]
madhatter has quit [Read error: Network is unreachable]
relix has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
madhatter has joined #ruby
rm_ has joined #ruby
tcurdt has quit [Quit: bye bye]
pigzzcanfly has joined #ruby
danshultz has quit [Remote host closed the connection]
hooper has joined #ruby
francisfish has joined #ruby
danshultz has joined #ruby
fannye has joined #ruby
mehlah has quit [Quit: Leaving...]
nvrch has quit [Quit: nvrch]
rylev has joined #ruby
rylev has quit [Remote host closed the connection]
rylev has joined #ruby
<Hyeon>
coapsy: It seems so
rm_ has quit [Ping timeout: 265 seconds]
pigzzcanfly has quit [Ping timeout: 255 seconds]
<shevy>
hmm guys
<shevy>
what situations exist where I can not write anywhere to with ruby to a local filesystem?
yacks has quit [Quit: Leaving]
<shevy>
so far I have come up with read-only filesystems
yacks has joined #ruby
<shevy>
under such a situation, I could not store anything to a file i.e. a yaml file
hooper has quit [Ping timeout: 265 seconds]
danshultz has quit [Ping timeout: 264 seconds]
coapsy has quit [Quit: coapsy]
<workmad3>
shevy: it might be a writable file-system, but the user that's running the ruby process has no write access
<Hyeon>
Does the ruby process have write access to your filesystem?
<workmad3>
shevy: which would be similar to a read-only filesystem to the ruby process
<banister_>
workmad3 sup
<shevy>
Hyeon normally yes
<workmad3>
banister_: howdy
<Hyeon>
hmm
bubbajones has joined #ruby
hostess_ is now known as hostess
<shevy>
workmad3 that would be covered by file permissions?
<workmad3>
shevy: I'd guess so :)
Martxel has quit [Ping timeout: 255 seconds]
sensen has quit [Quit: leaving]
armyriad has quit [Read error: Connection reset by peer]
funburn has joined #ruby
lxsameer has joined #ruby
armyriad has joined #ruby
krzkrz has quit [Quit: WeeChat 0.4.3]
roolo has joined #ruby
skaflem has joined #ruby
skulker has joined #ruby
mjs2600 has joined #ruby
nateberkopec has joined #ruby
Martxel has joined #ruby
skulker_ has joined #ruby
evenix has joined #ruby
pigzzcanfly has joined #ruby
darmou_ has joined #ruby
mehlah has joined #ruby
skulker has quit [Ping timeout: 240 seconds]
V__ has joined #ruby
St_Marx has quit [Read error: Connection reset by peer]
nateberkopec has quit [Ping timeout: 240 seconds]
jxf has joined #ruby
rylev has quit [Remote host closed the connection]
hirad has joined #ruby
freeBlue has joined #ruby
rylev has joined #ruby
rococo has joined #ruby
evenix has quit [Ping timeout: 255 seconds]
dyoko has joined #ruby
bubbajones has quit [Ping timeout: 240 seconds]
narcan has joined #ruby
supermarin has joined #ruby
diegoviola has quit [Quit: WeeChat 0.4.3]
rylev has quit [Ping timeout: 255 seconds]
sqwirl has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
supermarin has quit [Ping timeout: 240 seconds]
bubbajones has joined #ruby
freeBlue has left #ruby [#ruby]
maximski has joined #ruby
dyoko has quit [Ping timeout: 264 seconds]
dyoko has joined #ruby
Guedes has joined #ruby
Guedes has joined #ruby
coapsy has joined #ruby
shashank_rs has quit [Ping timeout: 252 seconds]
Speed has joined #ruby
rylev has joined #ruby
rylev has quit [Remote host closed the connection]
rylev has joined #ruby
yfeldblum has joined #ruby
claymore has joined #ruby
bubbajones has quit [Ping timeout: 265 seconds]
arietis has quit [Quit: Computer has gone to sleep.]
bubbajones has joined #ruby
michael_lee has quit [Read error: Connection reset by peer]
sski has joined #ruby
Guedes has left #ruby ["Saindo"]
Kneferilis has joined #ruby
arturaz has quit [Remote host closed the connection]
yfeldblum has quit [Ping timeout: 252 seconds]
lolmaus has quit [Read error: Connection reset by peer]
arturaz has joined #ruby
shashank_rs has joined #ruby
rdark has quit [Ping timeout: 265 seconds]
bigkevmcd has quit [Quit: Ex-Chat]
rm_ has joined #ruby
lolmaus has joined #ruby
bigkevmcd has joined #ruby
rdark has joined #ruby
eka has joined #ruby
nvrch has joined #ruby
jefflyne has quit [Ping timeout: 252 seconds]
sk87 has quit [Quit: My Mac Mini has gone to sleep. ZZZzzz…]
aag1091 has joined #ruby
<aag1091>
yo :-
jefflyne has joined #ruby
narcan has quit [Quit: -[AppDelegate installMalware]: unrecognized selector sent to instance 0x156109c0]
narcan has joined #ruby
rococo has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
itman has joined #ruby
mjs2600 has quit [Remote host closed the connection]
<itman>
hi guys
<Hyeon>
hi
<lxsameer>
hi
<itman>
How does anyone know the configuration of the liferay 6.1?
sski has quit []
blackmes1 has joined #ruby
<itman>
with ruby 2.0
<shevy>
I got a rocket in my pocket
oo_ has quit [Ping timeout: 264 seconds]
sski has joined #ruby
oo_ has joined #ruby
taf2 has joined #ruby
yacks has quit [Ping timeout: 255 seconds]
<Tuxified>
when I enter #ruby, I get greeted by chanserv who is pointing to some ruby sites, but also to modruby.net which (seems like) has nothing to do with ruby.. :S
michael_lee has joined #ruby
pu22l3r has joined #ruby
<itman>
anyone can help me connect ruby with liferay?
simono has joined #ruby
Megtastique has joined #ruby
Speed has quit [Ping timeout: 255 seconds]
<Hyeon>
lol
aagdbl has joined #ruby
bluehavana_ has quit []
DaniG2k has joined #ruby
cuppscakes has joined #ruby
_aeris_ has joined #ruby
bluehavana_ has joined #ruby
RoryHughes has joined #ruby
greenarrow has quit [Quit: 500]
bluehavana_ is now known as bluehavana
lupine has joined #ruby
Mars` has joined #ruby
jaxxstorm has joined #ruby
UForgotten has quit [Read error: Operation timed out]
taf2 has quit [Quit: taf2]
UForgotten has joined #ruby
dblessing has joined #ruby
rtlong has joined #ruby
pu22l3r has quit [Ping timeout: 255 seconds]
zoraj has joined #ruby
<shevy>
itman I dont even know what is liferay
aagdbl has quit [Quit: Leaving]
hooper has joined #ruby
aagdbl has joined #ruby
jaygen has joined #ruby
hamakn has quit [Remote host closed the connection]
jmeeuwen has quit [Quit: Disconnecting from stoned server.]
canton7-mac has quit [Read error: Connection reset by peer]
canton7-mac has joined #ruby
jmeeuwen has joined #ruby
coderhs has joined #ruby
<roolo>
mikecmpbll: Hmm, interesting
<shevy>
dorei yeah I think you are right
terrellt_ has joined #ruby
nifty__ has quit [Ping timeout: 252 seconds]
pipework has quit [Ping timeout: 252 seconds]
bjeanes has quit [Ping timeout: 252 seconds]
frode15243 has quit [Ping timeout: 252 seconds]
mroth has quit [Ping timeout: 252 seconds]
bal has quit [Ping timeout: 252 seconds]
DarkFoxDK has quit [Ping timeout: 252 seconds]
ConstantineXVI has quit [Ping timeout: 252 seconds]
aetaric has quit [Ping timeout: 252 seconds]
joelteon has quit [Ping timeout: 252 seconds]
mjmac has quit [Ping timeout: 252 seconds]
coapsy has left #ruby [#ruby]
tkuchiki has quit [Ping timeout: 264 seconds]
<mikecmpbll>
dorei: what would you expect that to be a range of?
sailias1 has joined #ruby
sailias has quit [Quit: Leaving.]
rdark has joined #ruby
rickenharp__ has quit [Read error: Connection reset by peer]
cmaxw_____ has quit [Read error: Connection reset by peer]
cbetta has quit [Read error: Connection reset by peer]
charles81 has quit [Read error: Connection reset by peer]
jeffreybaird has quit [Read error: Connection reset by peer]
mmochan_ has quit [Read error: Connection reset by peer]
fayimora_ has quit [Read error: Connection reset by peer]
dioms has quit [Read error: Connection reset by peer]
andrewstewart has quit [Read error: Connection reset by peer]
zrl has quit [Read error: Connection reset by peer]
antonishen has quit [Read error: Connection reset by peer]
kapowaz has quit [Read error: Network is unreachable]
jaxxstorm has quit [Ping timeout: 252 seconds]
Mars` has quit [Ping timeout: 252 seconds]
drjblouse__ has quit [Ping timeout: 252 seconds]
johnhamelink has quit [Ping timeout: 252 seconds]
maZtah has quit [Ping timeout: 252 seconds]
LBRapid has quit [Ping timeout: 252 seconds]
ryanuber has quit [Ping timeout: 252 seconds]
seich- has quit [Ping timeout: 252 seconds]
dmarr has quit [Ping timeout: 252 seconds]
artgoeshere has quit [Ping timeout: 252 seconds]
lfox has quit [Ping timeout: 252 seconds]
BackEndCoder has quit [Ping timeout: 252 seconds]
RohanRNS has quit [Write error: Connection reset by peer]
octarine has quit [Read error: Connection reset by peer]
michaelchum has quit [Read error: Connection reset by peer]
mrgoodcat has quit [Read error: Connection reset by peer]
supershabam has quit [Read error: Connection reset by peer]
vcoinminer__ has quit [Read error: Connection reset by peer]
davorb has quit [Read error: Connection reset by peer]
cmaxw_____ has joined #ruby
zenojis has quit [Quit: No Ping reply in 180 seconds.]
Su7 has quit [Remote host closed the connection]
phoo1234567 has joined #ruby
cbetta has joined #ruby
rickenharp__ has joined #ruby
bjeanes has joined #ruby
RoryHughes has quit [Ping timeout: 252 seconds]
epochwolf has quit [Ping timeout: 252 seconds]
charles81 has joined #ruby
terrellt has quit [Ping timeout: 252 seconds]
mmochan_ has joined #ruby
frode15243 has joined #ruby
<shevy>
hmm I used to do T = true
andrewstewart has joined #ruby
fayimora_ has joined #ruby
dioms has joined #ruby
rtlong has quit [Ping timeout: 252 seconds]
zz_jrhorn424 has quit [Ping timeout: 252 seconds]
mroth has joined #ruby
Paradox has quit [Ping timeout: 252 seconds]
csq has quit [Ping timeout: 252 seconds]
kapowaz has joined #ruby
mrgoodcat has joined #ruby
maZtah has joined #ruby
zrl has joined #ruby
pipework has joined #ruby
antonishen has joined #ruby
Su7 has joined #ruby
<roolo>
mikecmpbll: I am asking because NameError: uninitialized constant Jeweler::Git
drjblouse__ has joined #ruby
seemant has quit [Ping timeout: 252 seconds]
SegFaultAX has quit [Ping timeout: 252 seconds]
jeffreybaird has joined #ruby
octarine has joined #ruby
vcoinminer__ has joined #ruby
Heskie has quit []
Dwarf has quit [Read error: Connection reset by peer]
Affix has quit [Ping timeout: 252 seconds]
FaresKAlaboud has quit [Ping timeout: 252 seconds]
lupine has quit [Ping timeout: 252 seconds]
nari has quit [Ping timeout: 252 seconds]
JaTochNietDan has quit [Ping timeout: 252 seconds]
m4rcu5 has quit [Ping timeout: 252 seconds]
rurban_ has quit [Ping timeout: 252 seconds]
RohanRNS has joined #ruby
supershabam has joined #ruby
michaelchum has joined #ruby
francisfish has quit [Remote host closed the connection]
cuppscakes has quit [Ping timeout: 252 seconds]
_aeris_ has quit [Ping timeout: 252 seconds]
omegahm has quit [Ping timeout: 252 seconds]
Tritania has quit [Ping timeout: 252 seconds]
awkisopen has quit [Ping timeout: 252 seconds]
Nightmare has quit [Ping timeout: 252 seconds]
postmodern has quit [Ping timeout: 252 seconds]
alexherbo2 has quit [Ping timeout: 252 seconds]
shadoi has quit [Ping timeout: 252 seconds]
vjt has quit [Ping timeout: 252 seconds]
Guest99355 has quit [Changing host]
Guest99355 has joined #ruby
nifty__ has joined #ruby
Guest99355 is now known as guyz
kenichi has quit [Ping timeout: 252 seconds]
Guest80381 has quit [Ping timeout: 252 seconds]
zenojis has joined #ruby
Heskie has joined #ruby
davorb has joined #ruby
vjt has joined #ruby
Biohazard has quit [Ping timeout: 252 seconds]
sk87 has joined #ruby
Royalb15_1 has quit [Read error: Connection reset by peer]
bal has joined #ruby
yfeldblum has joined #ruby
cuppscakes has joined #ruby
nari has joined #ruby
Tritania has joined #ruby
_aeris_ has joined #ruby
rylev has quit [Remote host closed the connection]
lupine has joined #ruby
Dwarf has joined #ruby
RowdyChild|Away is now known as RowdyChildren
kenichi has joined #ruby
Nightmare has joined #ruby
jaxxstorm has joined #ruby
FaresKAlaboud has joined #ruby
awkisopen has joined #ruby
kukyakya has joined #ruby
JaTochNietDan has joined #ruby
alexherbo2 has joined #ruby
Affix has joined #ruby
Guest11227 has joined #ruby
rurban_ has joined #ruby
postmodern has joined #ruby
Biohazard has joined #ruby
RoryHughes has joined #ruby
mjmac has joined #ruby
SegFaultAX has joined #ruby
zz_jrhorn424 has joined #ruby
LBRapid has joined #ruby
Paradox has joined #ruby
lfox has joined #ruby
DarkFoxDK has joined #ruby
csq has joined #ruby
seich- has joined #ruby
Mars` has joined #ruby
ryanuber has joined #ruby
epochwolf has joined #ruby
rtlong has joined #ruby
seemant has joined #ruby
artgoeshere has joined #ruby
aetaric has joined #ruby
joelteon has joined #ruby
ConstantineXVI has joined #ruby
BackEndCoder has joined #ruby
fayimora_ is now known as fayimora
francisfish has joined #ruby
mark_locklear has joined #ruby
dmarr has joined #ruby
nateberkopec has joined #ruby
rylev has joined #ruby
hashdoge_ has joined #ruby
yfeldblum has quit [Ping timeout: 246 seconds]
kukyakya has quit [Remote host closed the connection]
hashdoge_ has left #ruby ["Leaving"]
Royalb15 has joined #ruby
jlast has joined #ruby
pigzzcanfly has joined #ruby
osvico has quit [Read error: Connection reset by peer]
tjr9898 has joined #ruby
<_lazarevsky>
fellows
<_lazarevsky>
i got another question
osvico has joined #ruby
<_lazarevsky>
is there a way to say something like
<_lazarevsky>
if the [:user_feedback] field for any of the records in this array has a length less than n, [:user_feedback] = [] without having to iterate over the array?
<_lazarevsky>
in this hash*
<_lazarevsky>
iterate over the hash*
sailias1 has quit [Ping timeout: 246 seconds]
<apeiros>
no
<_lazarevsky>
fair enough
<_lazarevsky>
moving from C#/Java/C to Ruby I find it very zen
<_lazarevsky>
:D
<canton7>
you can do it without #each, though
<_lazarevsky>
there are a lot of cool built in features
<_lazarevsky>
which I really dig
<_lazarevsky>
i keep discovering new things every single day :)
<_lazarevsky>
canton7: how can I do that?
oo__ has joined #ruby
<canton7>
ah, misread the question
<benzrf>
_lazarevsky: probably
benzrf is now known as benzrf|offline
tjr9898 has quit [Ping timeout: 240 seconds]
<canton7>
tbh this sort of thing should be very familiar from C# :P
linojon has joined #ruby
koalallama has quit [Quit: leaving]
aef has joined #ruby
rvraghav93 has joined #ruby
dyoko has quit [Quit: Leaving.]
brtdv has joined #ruby
ktun has joined #ruby
poikon has quit [Remote host closed the connection]
oo_ has quit [Ping timeout: 264 seconds]
benzrf|offline is now known as benzrf
RowdyChildren is now known as RowdyChild|Away
<_lazarevsky>
canton7: yea.. in C# i would've written a lambda which does just that
shaunbaker has joined #ruby
ziyadb_ has quit [Quit: Connection closed for inactivity]
<_lazarevsky>
im not trying to improve the complexity but improve the code aesthetically
mjs2600 has joined #ruby
<shevy>
by adding more code
benzrf is now known as benzrf|offline
shaunbaker has quit [Remote host closed the connection]
jespada has joined #ruby
oo__ has quit [Remote host closed the connection]
<apeiros>
_lazarevsky: there may be more aesthetically pleasing ways to do what you want than how you do it now. but all will in one way or another iterate the hash.
oo_ has joined #ruby
<apeiros>
since there's simply no way to check and set N values without looking at those N values - which is iterating
zarul has quit [Remote host closed the connection]
bean has joined #ruby
nari has quit [Ping timeout: 252 seconds]
zarul has joined #ruby
maximski has quit [Ping timeout: 264 seconds]
Geniack has quit [Ping timeout: 264 seconds]
pu22l3r has joined #ruby
Geniack has joined #ruby
benzrf|offline has quit [Ping timeout: 252 seconds]
narcan has quit [Quit: -[AppDelegate installMalware]: unrecognized selector sent to instance 0x156109c0]
zarul has quit [Remote host closed the connection]
msch has quit [Quit: Coyote finally caught me]
maximski has joined #ruby
zarul has joined #ruby
sski has quit [Remote host closed the connection]
benzrf|offline has joined #ruby
benzrf|offline is now known as benzrf
hirad has quit [Quit: hirad]
dyoko has joined #ruby
sski has joined #ruby
workmad3 is now known as wm3|lunch
sozorogami has joined #ruby
sputnik13 has quit [Quit: My Mac Mini has gone to sleep. ZZZzzz…]
Rubeh has quit [Ping timeout: 240 seconds]
<quazi>
ruby sounds like booby
Rubeh has joined #ruby
pu22l3r has quit [Ping timeout: 240 seconds]
sski has quit [Ping timeout: 255 seconds]
Todiann has joined #ruby
sambao21 has joined #ruby
davedev24 has joined #ruby
jrhe has quit [Quit: Connection closed for inactivity]
jackneill has joined #ruby
jackneill has quit [Changing host]
jackneill has joined #ruby
bean has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<benzrf>
helo
<benzrf>
quazi: your machurity impreses me
mrjensen has quit [Remote host closed the connection]
Tachoh_ is now known as Tachoh
<quazi>
god i cbf to make a software i wanna make
mrjensen has joined #ruby
simono has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
shashank_rs has joined #ruby
dr_bob has joined #ruby
<shevy>
lol
<shevy>
quazi do you want to use a language called C
<shevy>
I would have thought c to be part of the alphabet
<shevy>
quazi do you want to use a language called java
<shevy>
around here that sounds like coffee
<shevy>
quazi do you want to use a language called lisp
<shevy>
around here that sounds like an incompetent speaker
<shevy>
wait I have an idea quazi
<shevy>
deer
<shevy>
dog
<shevy>
cat
<shevy>
python
<shevy>
yay! let's name a language after an animal!
<benzrf>
smh
dik_dak has joined #ruby
Megtastique has quit []
s2013 has joined #ruby
<Tachoh>
it's named after monty python :|
_tpavel has joined #ruby
<Tachoh>
._____________.
mrjensen has quit [Ping timeout: 240 seconds]
poikon has joined #ruby
bambuka has quit [Quit: Saliendo]
paulfm has joined #ruby
johnhamelink has joined #ruby
shadoi has joined #ruby
rylev has quit [Remote host closed the connection]
benzrf is now known as benzrf|offline
thomasxie has quit [Read error: Connection reset by peer]
maximski has quit [Ping timeout: 240 seconds]
maximski has joined #ruby
_justin has quit [Quit: _justin]
armyriad has quit [Ping timeout: 240 seconds]
quazi has quit [Remote host closed the connection]
mrjensen has joined #ruby
armyriad has joined #ruby
james_d_h has joined #ruby
benzrf|offline has quit [Ping timeout: 265 seconds]
darmou_ has quit [Ping timeout: 265 seconds]
benzrf|offline has joined #ruby
psyko666 has quit [Quit: Leaving]
benzrf|offline is now known as benzrf
maximski has quit [Ping timeout: 246 seconds]
codabrink has joined #ruby
djbender has quit [Quit: djbender]
rylev has joined #ruby
tjr9898 has joined #ruby
Shidash has quit [Quit: Leaving.]
lxsameer has quit [Quit: Leaving]
darmou has joined #ruby
s2013 has quit [Remote host closed the connection]
<benzrf>
shevy: not everything in ruby uses blocks. but they are often handy
<benzrf>
similarly in haskell most things do not use monads
<benzrf>
but they are sometimes handy
<benzrf>
and they are given particular emphasis because they are a good way of modelling imperative programs in a purely functional manner
<benzrf>
so all I/O is done with monads
<benzrf>
rather, just 1 monad
<benzrf>
the IO monad
<certainty>
the I/O monad is a hairy beast though.
<benzrf>
yeah :I
<benzrf>
under the covers it is just a StateT right?
<benzrf>
or just state
joonty has quit [Ping timeout: 264 seconds]
maximski has quit [Ping timeout: 246 seconds]
finges has quit [Quit: WeeChat 0.4.1]
<certainty>
I don't recall but it's part of the confusion that monads are associated mostly with IO in haskell
<certainty>
at least for people that are new to haskell
<benzrf>
:|
finges has joined #ruby
<benzrf>
they are just a useful abstraction for pipelines where each step has some kind of contribution to the overall shape of the pipeline o.o
<certainty>
introducing with Maybe or the List monad is easier
<benzrf>
introducing with /functors/ is easier
Bumptious has joined #ruby
Jason has joined #ruby
karmatr0n has joined #ruby
Jason is now known as Guest68431
<certainty>
or fmap and join ... also making clear that monads are different, while they share the same basic structure. Most people i meet think that there is only one monad somehow
browndawg has quit [Quit: Leaving.]
djbender has quit [Ping timeout: 246 seconds]
<benzrf>
yeah
<benzrf>
i really liked 'you couldve invented monads'
<benzrf>
it really put me on the road to monadic enlightenment
<certainty>
there is also an introduction to monads in ruby
JohnBat26 has joined #ruby
<certainty>
ok gtg
<benzrf>
meh
<benzrf>
monads are not so useful in ruby
goganchic has joined #ruby
endash_ has joined #ruby
endash_ has quit [Remote host closed the connection]
sethen has quit [Quit: Leaving...]
endash_ has joined #ruby
djbender has joined #ruby
Guest18435 has left #ruby [#ruby]
tkuchiki has joined #ruby
sambao21 has quit [Quit: Computer has gone to sleep.]
RowdyChild|Away is now known as RowdyChildren
SCommette has quit [Quit: SCommette]
St_Marx has joined #ruby
<shevy>
all IO in haskell uses monads?
mrjensen has quit [Remote host closed the connection]
hiall has quit [Ping timeout: 255 seconds]
<benzrf>
shevy: IO monad is the only way to do I/O
<benzrf>
shevy: all haskell functions are pure
<benzrf>
except for unsafePerformIO which is implementation-local iirc
sambao21 has joined #ruby
hiall has joined #ruby
momomomomo has joined #ruby
jandritsch has joined #ruby
Melpaws has quit [Quit: Leaving.]
freerobby has quit [Quit: Leaving.]
<benzrf>
shevy: a function in haskell must return the same result given the same arguments, and calling a function must not have any effects that not calling a function doesnt have
Melpaws has joined #ruby
<benzrf>
so no returning from stdin & no printing or modifying globals
<benzrf>
as a matter of fact haskell has no mutation at all
funktor has joined #ruby
<benzrf>
funktor: how about 'monrad'
<benzrf>
no thats awful
<shevy>
sounds like prison coding
crystal77 has joined #ruby
<apeiros>
benzrf: "function in haskell must return the same result given the same arguments" - rand?
<funktor>
benzrf: lol better luck on the next one
<shevy>
hehehe
<benzrf>
apeiros: haskell does not have a regular rand function
<benzrf>
it has one that operates in the IO monad
<shevy>
so the IO monad works randomly
<benzrf>
and it has one that takes a pseudorandom generator state, and returns the next num & a new state
<apeiros>
also: gets?
<benzrf>
i.e.
<benzrf>
apeiros: only within the io monad
<benzrf>
getLine does not return a line, it returns an 'action' that would result in a line if run
<benzrf>
haskell gives you no way to run it
<benzrf>
what you do is string together actions to get one big action
<apeiros>
sounds like funny egg-dancing
<benzrf>
then whatever action is returned from the function `main` will be run
<benzrf>
so for example
darmou has quit [Quit: darmou]
mrjensen has joined #ruby
psyko666 has joined #ruby
CorySimmons has joined #ruby
<benzrf>
main = putStr "What is your name?" >> getLine >>= \name -> putStrLn "Hello " ++ name ++ "!"
<benzrf>
or with syntactic sugar:
<benzrf>
main = do
paulfm has quit []
<benzrf>
putStr "What is your name? "
<benzrf>
name <- getLine
<benzrf>
putStrLn "Hello " ++ name ++ "!"
nari has joined #ruby
<benzrf>
the former and the latter are 100% semantically identical
<benzrf>
do-notation is just sugar for >> and >>= with lambda
<benzrf>
>> and >>= are the sequence and bind operators for monadic values
<apeiros>
so basically the IO monad treats user input as a function argument?
Melpaws has quit [Ping timeout: 246 seconds]
<benzrf>
not exact;y
<benzrf>
*exactly
therm has left #ruby [#ruby]
<benzrf>
monads are an abstraction for things where you want to pipeline functions whose output also contains an extra element to add to the overall structure of the pipeline
<benzrf>
in a sense
<benzrf>
among other things
<benzrf>
as such they are great for modelling effects
Bofu2U has joined #ruby
Bofu2U has quit [Excess Flood]
<benzrf>
if you have a bunch of functions that take strings and return some kind of structure around a string
wm3|lunch is now known as workmad3
crystal77 has quit [Quit: Computer has gone to sleep.]
<benzrf>
monads are an abstraction for sequencing em based on the kind of structure
<shevy>
hehe
<shevy>
certainty we are back to monads again
<benzrf>
so for example
bean has joined #ruby
<benzrf>
the Maybe monad
<benzrf>
a Maybe value is either Just <value> or Nothing
<benzrf>
i.e. a nullable value
pu22l3r has joined #ruby
<benzrf>
if you have a bunch of functions that take an 'a' and return a Maybe 'b'
Bofu2U has joined #ruby
<benzrf>
you can sequence em with >>=
<benzrf>
because >>= is defined for Myabe
<benzrf>
*maybe
supermarin has joined #ruby
Speed has joined #ruby
Guest68431 has quit [Remote host closed the connection]
<benzrf>
>>= takes a monadic value (aka a 'structure around a regular one' or 'a computation resulting in a regular one')
<benzrf>
and a function taking a regular value which gives a monadic one
zchrykng-work has joined #ruby
<benzrf>
then it applies the latter to the 'result' or 'contents' of the former, and joins the extra structure from the result with the extra structure of the original
jprovazn_ has quit [Ping timeout: 265 seconds]
<benzrf>
this is all kinda metaphorical because in practice it may not work exactly like that
Aquilo has quit [Ping timeout: 252 seconds]
<benzrf>
it may not even actually apply the function when you call >>=
<benzrf>
but this is all p perfect for IO
<benzrf>
if I have a monadic value 'getLine'
<benzrf>
which is a 'computation resulting in a string'
<benzrf>
and a function from a string to an IO
<benzrf>
such as:
<benzrf>
sayName name = putStrLn "hello " ++ name ++ "!"
<benzrf>
then i can do 'getLine >>= sayName'
<benzrf>
and it will merge the function into the getLine 'computation' along with the action of printing the result
<benzrf>
apeiros: basically you build a value representing an effectful program, then you return that value from main
francisfish has joined #ruby
supermarin has joined #ruby
<benzrf>
since haskell is pure, main will always return the same value since it takes no args
<benzrf>
in fact in haskell the distinction between a 0-arg function and a variable is pretty meaningless
nbouscal has joined #ruby
cl4ptr4p0 has joined #ruby
cl4ptr4p0 has quit [Client Quit]
<benzrf>
the key point here is that only the value returned from main will be run
<benzrf>
you cant invoke an io action in any way besides returning it from __main__
<benzrf>
*main
<benzrf>
well, there /is/ unsafePerformIO
<benzrf>
but using that is kinda like
<benzrf>
uh
<benzrf>
i cant think of anything as sacreligious actually
<benzrf>
maybe relying on UD in C
afreidah1 has joined #ruby
ndrei has joined #ruby
<benzrf>
*UB
CorySimmons has quit [Quit: Zzz...]
jobewan has joined #ruby
atno has quit [Quit: Leaving]
Macaveli has quit [Ping timeout: 252 seconds]
nisstyre has quit [Quit: bai]
roolo has quit [Quit: Leaving...]
pigzzcanfly has joined #ruby
fabrice31 has quit [Remote host closed the connection]
fabrice31 has joined #ruby
pu22l3r_ has joined #ruby
yfeldblum has joined #ruby
Hobogrammer has quit [Ping timeout: 246 seconds]
dyoko has quit [Quit: Leaving.]
browndawg has joined #ruby
\marrub is now known as \marbu
joonty_ is now known as joonty
\marbu is now known as \arrbum
sambao21 has quit [Quit: Computer has gone to sleep.]
pigzzcanfly has quit [Ping timeout: 246 seconds]
pu22l3r has quit [Ping timeout: 246 seconds]
tobago has quit [Remote host closed the connection]
freerobby has joined #ruby
luckyruby has quit [Quit: Leaving...]
freerobby1 has joined #ruby
arubincloud has joined #ruby
yfeldblum has quit [Ping timeout: 252 seconds]
freerobby has quit [Read error: Connection reset by peer]
benzrf is now known as benzrf|offline
mikepack has quit [Remote host closed the connection]
CorySimmons has joined #ruby
_lazarevsky has quit [Ping timeout: 240 seconds]
poikon has quit [Remote host closed the connection]
shadoi has quit [Ping timeout: 265 seconds]
agjacome has joined #ruby
sdouglas has joined #ruby
shadoi has joined #ruby
paulfm has joined #ruby
moritzs has joined #ruby
mengu has quit [Remote host closed the connection]
GodPuppet has joined #ruby
paulfm has quit [Client Quit]
oo_ has quit [Remote host closed the connection]
ffranz has joined #ruby
mengu has joined #ruby
mengu has quit [Remote host closed the connection]
havenwood has joined #ruby
dr_bob has left #ruby [#ruby]
aagdbl has quit [Quit: Connection closed for inactivity]
paulfm has joined #ruby
tagrudev has quit [Remote host closed the connection]
momomomomo has quit [Quit: momomomomo]
dyoko has joined #ruby
mantas322 has joined #ruby
<mantas322>
Hi guys
francisfish has quit [Remote host closed the connection]
zoraj has quit [Remote host closed the connection]
<moritzs>
hi
derek_c has joined #ruby
<mantas322>
quack question, I have a string I would like to remove html from
<tobiasvl>
remove all html?
<tobiasvl>
parse it?
<mantas322>
parsing from a csv file im tryign to do something like this row[0].RemoveHTMLJustUsetext()
<tobiasvl>
what do you want to achieve, mantas322
mrmargolis has quit []
Heskie has joined #ruby
<mantas322>
either remove all html, or just parse the text
mrmargolis has joined #ruby
<havenwood>
mantas322: so... your string is valid html and you want to parse it and get text from the <body>?
Angelous is now known as Angelous-
<mantas322>
no its just a <a> tag surrounding whats in that cell
<havenwood>
mantas322: have you ever used Nokogiri?
<mantas322>
no.
<mantas322>
actually this isnt really important, since im going to be copy and pasting the output anywho
karmatr0n has quit [Remote host closed the connection]
<mantas322>
thats for your interest anyways guys.
nomenkun has quit [Remote host closed the connection]
ckinni has joined #ruby
<mantas322>
im using ruby to just do some data manicure
<mantas322>
thanks*
nomenkun has joined #ruby
<tobiasvl>
mantas322: next time, tell us what you want to retrieve from the string ;) if you want to remove <a hre="foo" bar>, retrieve text, and remove </a>, that's not too hard
CreativeEmbassy has joined #ruby
<tobiasvl>
but "remove html" and "just use text" isn't a good description of your problem
simono has joined #ruby
hooper has quit [Ping timeout: 265 seconds]
ctp has joined #ruby
roolo has joined #ruby
FxK has joined #ruby
<mantas322>
sorry, I'll be more descriptive next time
<mantas322>
sometimes I use various freendoe channels to, kinda think outloud sometimes.
<apeiros>
Nokogiri.HTML(html).text # gives a crude rendition of the text in html
<mantas322>
:/ its morning and I havent had enough coffee ;)
nomenkun_ has joined #ruby
treehug88 has joined #ruby
charlies_ is now known as charliesome
nomenkun has quit [Read error: Connection reset by peer]
<havenwood>
mantas322: i have that same thing happen every morning. hehe
supermarin has quit [Quit: Computer has gone to sleep.]
<apeiros>
mantas322: ^
evenix has joined #ruby
andikr has quit [Remote host closed the connection]
eregon has quit [*.net *.split]
okdas has quit [*.net *.split]
thelamest has quit [*.net *.split]
alex88 has quit [*.net *.split]
rezzack has quit [*.net *.split]
Koshian has quit [*.net *.split]
Hyeon has quit [*.net *.split]
justinmcp has quit [*.net *.split]
luvs2spooge has quit [*.net *.split]
jrdnull has quit [*.net *.split]
jsaak has quit [*.net *.split]
AntelopeSalad has quit [*.net *.split]
cba has quit [*.net *.split]
LetErikTry has quit [*.net *.split]
timonv has quit [*.net *.split]
jtz has quit [*.net *.split]
zxq9 has quit [*.net *.split]
nilsove has quit [*.net *.split]
reijoslav has quit [*.net *.split]
zastern has quit [*.net *.split]
samuelkadolph has quit [*.net *.split]
rmill has quit [*.net *.split]
wykydtron has quit [*.net *.split]
Veejay has quit [*.net *.split]
billiam_ has quit [*.net *.split]
matti has quit [*.net *.split]
LiohAu has quit [*.net *.split]
Xuerian has quit [*.net *.split]
mr_red has quit [*.net *.split]
jgrevich has quit [*.net *.split]
adam12 has quit [*.net *.split]
lessless has quit [*.net *.split]
graft has quit [*.net *.split]
jericon has quit [*.net *.split]
hackeron has quit [*.net *.split]
the_mentat has quit [*.net *.split]
kies has quit [*.net *.split]
aep_ has quit [*.net *.split]
OZzl has quit [*.net *.split]
Tachoh has quit [*.net *.split]
mnms_ has quit [*.net *.split]
gregf has quit [*.net *.split]
Dreamer3 has quit [*.net *.split]
brandon has quit [*.net *.split]
b1nd has quit [*.net *.split]
gogiel has quit [*.net *.split]
maxmanders has quit [*.net *.split]
kloeri has quit [*.net *.split]
machuga has quit [*.net *.split]
cgj has quit [*.net *.split]
AlSquire has quit [*.net *.split]
heftig has quit [*.net *.split]
andrewlio has quit [*.net *.split]
chrisseaton has quit [*.net *.split]
Morkel has quit [*.net *.split]
jibi has quit [*.net *.split]
joast has quit [*.net *.split]
lazyguru has quit [*.net *.split]
go|dfish has quit [*.net *.split]
edwardly has quit [*.net *.split]
cHarNe2_ has quit [*.net *.split]
Muz_ has quit [*.net *.split]
sawtooth_ has quit [*.net *.split]
inverses2uarelaw has quit [*.net *.split]
nwkr has quit [*.net *.split]
naw has quit [*.net *.split]
azkah has quit [*.net *.split]
ixti has quit [*.net *.split]
arnis has quit [*.net *.split]
AndyWojo has quit [*.net *.split]
anshin has quit [*.net *.split]
RaptorJesus has quit [*.net *.split]
Jelco has quit [*.net *.split]
jaimef has quit [*.net *.split]
ihme-TTilus has quit [*.net *.split]
m_3 has quit [*.net *.split]
weeb1e_ has quit [*.net *.split]
ezrios has quit [*.net *.split]
rotor has quit [*.net *.split]
elektronaut has quit [*.net *.split]
petems has quit [*.net *.split]
blackjid has quit [*.net *.split]
SJr has quit [*.net *.split]
ptierno has quit [*.net *.split]
Anarch has quit [*.net *.split]
cout has quit [*.net *.split]
jhass|off has quit [*.net *.split]
peckerman has quit [*.net *.split]
mpajor_op5 has quit [*.net *.split]
snickers has quit [*.net *.split]
JoeJulian has quit [*.net *.split]
faulkner has quit [*.net *.split]
dhruvasagar has quit [*.net *.split]
wang has quit [*.net *.split]
csfrancis has quit [*.net *.split]
Jamo has quit [*.net *.split]
psmolen has quit [*.net *.split]
destructure has quit [*.net *.split]
Sp4rKy has quit [*.net *.split]
Jamo has joined #ruby
robde has left #ruby ["Bye."]
Nowaker has joined #ruby
jsaak has joined #ruby
Tachoh has joined #ruby
Koshian has joined #ruby
AntelopeSalad has joined #ruby
anshin has joined #ruby
jhass|off has joined #ruby
naw has joined #ruby
RaptorJesus has joined #ruby
timonv has joined #ruby
azkah has joined #ruby
cHarNe2 has joined #ruby
AndyWojo has joined #ruby
Anarch has joined #ruby
Sp4rKy has joined #ruby
reijoslav has joined #ruby
dhruvasagar has joined #ruby
kies has joined #ruby
zastern has joined #ruby
kies has quit [Changing host]
kies has joined #ruby
samuelkadolph has joined #ruby
elektronaut has joined #ruby
aep has joined #ruby
Martxel has quit [Quit: Leaving]
helpa has quit [Remote host closed the connection]
jhass|off is now known as jhass
heftig has joined #ruby
wykydtron has joined #ruby
kloeri has joined #ruby
matti has joined #ruby
lessless has joined #ruby
billiam_ has joined #ruby
JoeJulian has joined #ruby
nilsove has joined #ruby
Martxel has joined #ruby
LetErikTry has joined #ruby
maxmanders has joined #ruby
weeb1e has joined #ruby
thelamest has joined #ruby
zxq9 has joined #ruby
shashank_rs has quit [Ping timeout: 264 seconds]
edwardly has joined #ruby
jgrevich has joined #ruby
helpa has joined #ruby
helpa has quit [Remote host closed the connection]
<havenwood>
mantas322: then there's always Rails... :O
<havenwood>
mantas322: require 'action_view'; include ActionView::Helpers::SanitizeHelper; strip_tags("g'morning") #=> "g'morning"
adam- has joined #ruby
Jelco has joined #ruby
Jelco has quit [Changing host]
Jelco has joined #ruby
adam- is now known as adam12
rmill has joined #ruby
anarang has quit [Quit: Leaving]
peckerman has joined #ruby
<havenwood>
mantas322: (i'm not recommending that ^ particularly, just noting it exists >.>)
helpa has joined #ruby
snath has quit [Ping timeout: 240 seconds]
Hyeon has joined #ruby
aag1091 has quit [Ping timeout: 264 seconds]
psmolen has joined #ruby
rezzack has joined #ruby
rezzack has quit [Changing host]
rezzack has joined #ruby
<havenwood>
err, terribad example i gave, i need coffee
<mantas322>
havenwood, im not a fan of rails
<mantas322>
no offense
OZzl has joined #ruby
cout has joined #ruby
eregon has joined #ruby
rotor has joined #ruby
blackjid has joined #ruby
<havenwood>
i meant: strip_tags "<a>g'morning</a>" but whatev :)
the_mentat has joined #ruby
Kneferilis has quit [Ping timeout: 240 seconds]
andrewlio has joined #ruby
b1nd has joined #ruby
mrjensen has quit [Remote host closed the connection]
cba has joined #ruby
jrdnull has joined #ruby
SJr has joined #ruby
mr_red has joined #ruby
go|dfish has joined #ruby
justinmcp has joined #ruby
faulkner has joined #ruby
Dreamer3 has joined #ruby
lazyguru has joined #ruby
jorts has joined #ruby
machuga has joined #ruby
mpajor_op5 has joined #ruby
ezrios has joined #ruby
graft has joined #ruby
gogiel has joined #ruby
m_3 has joined #ruby
cgj has joined #ruby
brandon has joined #ruby
hackeron has joined #ruby
Celm has joined #ruby
einarj has quit [Remote host closed the connection]
csfrancis has joined #ruby
CorySimmons has quit [Quit: Zzz...]
ixti has joined #ruby
marr has joined #ruby
robbyoconnor has quit [Quit: Konversation terminated!]
Muz has joined #ruby
ptierno has joined #ruby
gregf has joined #ruby
lukec has quit [Quit: lukec]
<apeiros>
netsplit… well, maybe it wasn't seen… I'll repeat
<apeiros>
mantas322, havenwood: Nokogiri.HTML(html).text # gives a crude rendition of the text in html
funktor has quit [Remote host closed the connection]
maletor has joined #ruby
baroquebobcat has joined #ruby
<ji0n>
Anyone ever used ruby motion?
spinx has quit [Ping timeout: 240 seconds]
yfeldblum has joined #ruby
rippa has joined #ruby
<dorei>
i'm looking for an oneliner that would transform [100, 150, 220] into [50, 70, 0] ie substract the next value from the current one, so far i've come up with (a[1..-1] << a.last).zip(a).map{|x| x.reduce(&:-)} , any ideas?
DrShoggoth has joined #ruby
funktor has joined #ruby
Xeroxyde has joined #ruby
<arubincloud>
0 - 220 = 0?
<benzrf>
wow thats awfully ugly
jibi has joined #ruby
joast has joined #ruby
apeiros has quit [Remote host closed the connection]
<arubincloud>
Or I guess nil - 220.
<benzrf>
isnt there some kind of enum method for overlapping chunks
<browndawg>
Writing a rake task that recursively locates all .haml files and compiles them to html in the project. What's a better way than os.execute("find ...")
<browndawg>
?
weaksauce has joined #ruby
joast has quit [Ping timeout: 240 seconds]
<cjbottaro>
olivier_bK: But everything seems to be regarding servers listening over ssl, not clients making connections over ssl. Are outbound SSL connections vulnerable (I guess, via man in the middle attacks or some such)?
<browndawg>
I have half a mind to just write a Makefile
zigomir has joined #ruby
aagdbl has joined #ruby
ckinni has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
dagobah has quit [Quit: Leaving...]
decoponio has joined #ruby
nisstyre has quit [Read error: Connection reset by peer]
nisstyre has joined #ruby
benzrf is now known as benzrf|offline
_justin has joined #ruby
cl4ptr4p0 has quit [Quit: [BX] bb bbba bbbba bbbitchx bitchx!!!]
<canton7>
browndawg, Dir['**/*.haml'] ?
jlast has joined #ruby
<browndawg>
canton7: how many levels deep is this going to go?
<canton7>
that's infinitely recursive
<browndawg>
canton7: thanks
<olivier_bK>
cjbottaro, it's not a vulnerability from man in the middle but in read overrun
<canton7>
typically you'd write a 'file' rule which describes how to turn .html into .html, then write a task with all of those html files as dependecies
VTLob has joined #ruby
terrellt_ has joined #ruby
kyle__ has joined #ruby
jxf has quit [Ping timeout: 250 seconds]
terrellt has quit [Ping timeout: 252 seconds]
RowdyChildren is now known as RowdyChild|Away
peret has joined #ruby
<kyle__>
When you've got a unioned regex, with named groups (?'george'), is there a way to get rx.match(sometext) to math ALL of the regexes in the union, instead of stopping at the first one?
oz has quit [Quit: EOF]
<browndawg>
canton7: Yeah, what I'm tyring to avoid is 'sh' within that file rule.
<browndawg>
canton7: But I guses this is good enoguh
crystal77 has joined #ruby
lkba has joined #ruby
<cjbottaro>
olivier_bK: Yes, but why would someone I'm voluntarily connecting to attack me, unless it's not who I think it is.
moritzs has quit [Remote host closed the connection]
<kyle__>
cjbottaro: Never underestimate the dangers a bored teenager.
lukec has joined #ruby
aspires has quit []
hostess has joined #ruby
moritzs has joined #ruby
<cjbottaro>
kyle__: Why would I be connecting a bored teenager's server? Or more specifically, why would a bored teenager be running the IT department of a company?
Geniack has quit [Remote host closed the connection]
<browndawg>
canton7: Reading
Geniack has joined #ruby
cj3kim has quit [Remote host closed the connection]
<canton7>
of course, s/c/haml, s/o/html, and you're not generating a final 'hello' file, just a list of html files
<cjbottaro>
To be clear, I'm not talking about upgrading my servers that are LISTENING for SSL connections, I've already done that. I'm now wondering if I need to upgrade Ruby which makes OUTGOING connections over SSL. These outgoing SSL connections are going to servers I (obviously) trust. It seems heartbleed can only affect my outgoing connections if these trusted servers have been compromised and a malicious party is posing as them.
brtdv has quit []
<kyle__>
cjbottaro: You never know. I've worked at small colo facilities where the oldest manager was 28, and the median age was 19.
oz has joined #ruby
<kyle__>
cjbottaro: My understanding of the bug is that outbound connections shouldn't be vulnerable. They don't expose heartbeat as far as I know.
MatthewsFace has quit [Quit: This computer has gone to sleep]
<apeiros>
olivier_bK: what does "send data in hash" mean?
derek_c has joined #ruby
moritzs has joined #ruby
<kyle__>
humm.
momomomomo has joined #ruby
moritzschaefer has joined #ruby
sk87 has joined #ruby
<olivier_bK>
apeiros, i get a string like that update_endDate 2013-06-23
benzrf has quit [Quit: bye]
<olivier_bK>
and i need to put it in hash
<apeiros>
hash[key] = value
MatthewsFace has joined #ruby
IceDragon has joined #ruby
jxf has joined #ruby
pigzzcanfly has quit [Ping timeout: 246 seconds]
verto has quit [Quit: see you later xD]
ce_afk is now known as cescalante
<kyle__>
apeiros: This way returns an array of matchdata objects. What I'm trying to do is return one matchdata object with named groups.
<apeiros>
kyle__: um, yes? this allows you to do that
shashank_rs has joined #ruby
afreidah1 has quit [Ping timeout: 255 seconds]
<apeiros>
.match returns a MatchData object too
<apeiros>
so anything you can do with .match, you can do with .match_all
toastynerd has joined #ruby
funktor has quit [Remote host closed the connection]
<kyle__>
apeiros: but that's string.match, not regexp.match... I though?
<toretore>
kyle__: show some code. it explains better than you ever could
anonymuse has joined #ruby
<apeiros>
kyle__: String#match and Regexp#match do *exactly* the same thing
jgrevich_ has joined #ruby
<LiquidInsect>
~/win 2
moted has joined #ruby
<apeiros>
they just juxtapose receiver and object
<LiquidInsect>
:|
shredding has quit [Quit: shredding]
jamto11 has joined #ruby
kaliya has quit [Quit: Lost terminal]
benzrf|offline has joined #ruby
<kyle__>
apeiros: Humm
benzrf|offline is now known as benzrf
<jamto11>
is there a good ruby method for changing an array of one hash to just that hash (like to unarray something, but not raise an error if called on nil)
<kyle__>
apeiros: I guess I'm not stating what I'm trying to do clearly.
markisonfire has joined #ruby
<apeiros>
kyle__: indeed. which is why -> toretore: kyle__: show some code. it explains better than you ever could
<kyle__>
I have a a number of small regexes with named groups. I union them, I try and get the named gorup.
<kyle__>
I'm scraping data from a mountain of malformed html.
<apeiros>
kyle__: and you want the last 3 lines to be for all matches instead of just the first?
spacemud has quit [Read error: Operation timed out]
joast has joined #ruby
jgrevich_ has quit [Quit: jgrevich_]
<kyle__>
apeiros: Yes. Except this is just the first 7 regexes in the union. There will be closer to 50, which is why I was hoping to just get one matchdata object.
<apeiros>
replace rx.match(File.read("coursedata.html")) with File.read("coursedata.html").match_all(rx)
<apeiros>
and you get an array of MatchData objects, each of which has :name and :college
<apeiros>
e.g.: File.read("coursedata.html").match_all(rx).each do |data| puts data[:name], data[:college] end
sdwrage has quit [Quit: This computer has gone to sleep]
james_d_h has quit [Quit: Lost terminal]
<kyle__>
apeiros: That gives me an array of matchdata objects, and each of them only has one of them in it. I think. From looking at it on irb.
nvrch has quit [Quit: nvrch]
<apeiros>
which seems to me to be exactly what you want…
poikon has quit [Remote host closed the connection]
dtcrshr has joined #ruby
<Trynemjoel>
Anyone familiar with getting libyaml up to date? I can't seem to get it updated past 0.1.5. Using RVM on OSX 10.9
f0ster` has joined #ruby
yfeldblum has quit [Ping timeout: 240 seconds]
paulfm has quit []
Waheedi has quit [Quit: Waheedi]
<apeiros>
kyle__: *one* machdata object makes no sense
<kyle__>
apeiros: Why wouldn't it make any sense?
<apeiros>
if you want *one*, then *which one*?
maletor has joined #ruby
solidus-river has left #ruby [#ruby]
<kyle__>
apeiros: A union of them, essentially.
<toretore>
one MD is *one* match
<apeiros>
kyle__: you're not making much sense
<toretore>
you have to match several times to get all of them
<apeiros>
what should a unionized matchdata be?
<apeiros>
make an example
RowdyChildren is now known as RowdyChild|Away
<kyle__>
apeiros: toretore: if you make a regex with two named groups (?'one') (?'two'), both of those show up in a single matchdata object.
maximski_ has joined #ruby
<benzrf>
leshiggy
<benzrf>
diggy
<benzrf>
doo
maximski has quit [Ping timeout: 255 seconds]
maximski_ has quit [Max SendQ exceeded]
ghr has joined #ruby
<toretore>
kyle__: but only if they are both part of the pattern overall
phutchin1 has quit [Ping timeout: 240 seconds]
<benzrf>
>tfw piece of shit sitting next to me leans over and vomits on my kbd
spider-mario has joined #ruby
<crome>
isnt the point of Array and Integer and similar methods is they reliably return something of the given type?
<apeiros>
kyle__: that's obviously not reflecting your question
<toretore>
/first: (?'one'[^ ]+)|last: (?'two'[^$]+)/.match("first: George last: Jettson")
<apeiros>
because otherwise you'd just use .match and be happy
<toretore>
^ that's what you're doing with union
mgorbach has joined #ruby
phutchins has joined #ruby
RealMarc is now known as Marc
aspires has quit []
Marc is now known as Guest67777
<kyle__>
apeiros: That's the example of two named groups in a single regex. I was asking if there was a way to return one matchdata object from a union of rxes where it went through all of them.
<apeiros>
no
<toretore>
kyle__: it is not
<kyle__>
If the answer is no, that's fine, but it was obviously reflecting my question.
zigomir has joined #ruby
<apeiros>
not really
rylev has quit [Remote host closed the connection]
<toretore>
what you want is match_all or scan, as apeiros said
razrunelord has joined #ruby
x77686d has joined #ruby
<apeiros>
if you want all the matches in a single object (an array is a single object, so technically that's already the case) - then postprocess the matches
<havenwood>
kyle__: it's easier for humans to understand complex data than complex logic. example input and expected output really makes it easier for us.
ikaros has joined #ruby
ghr has quit [Ping timeout: 250 seconds]
<toretore>
also, human not explain well
derek_c has joined #ruby
Macaveli has quit [Ping timeout: 252 seconds]
<toretore>
computar better
dukz has joined #ruby
<havenwood>
"Rule of Representation"
mikecmpbll has quit [Ping timeout: 255 seconds]
tvw has joined #ruby
aspires has joined #ruby
jlast has quit [Remote host closed the connection]
geggam has quit [Ping timeout: 240 seconds]
lukec has quit [Quit: lukec]
canton7-mac has quit [Quit: Leaving]
lagweezle has joined #ruby
spider-mario has quit [Remote host closed the connection]
jlast has joined #ruby
davy_ has joined #ruby
armyriad has quit [Ping timeout: 240 seconds]
werdnativ has joined #ruby
keeguon has quit [Quit: keeguon]
spider-mario has joined #ruby
blackavr has quit [Quit: blackavr]
jameswlane has joined #ruby
<BradPitt_>
when i do arr[-1], is ruby still reading the entire list of elems in the array and getting the last one? Or is it smart enough to directly access the last memory location of the array?
<BradPitt_>
I fear its the former but wanted clarification
<shevy>
benzrf you seem to like learning new stuff in regards to programming
<apeiros>
the latter
<shevy>
benzrf I am an absolute minimalist
<apeiros>
BradPitt_: that's the point of arrays - positional access is O(1)
BradPitt_ is now known as BraddPitt
sambao21 has quit [Quit: Computer has gone to sleep.]
nfk has quit [Quit: yawn]
yfeldblum has joined #ruby
yfeldblum has quit [Remote host closed the connection]
cescalante is now known as ce_afk
<BraddPitt>
I see
jxf has joined #ruby
<BraddPitt>
so under the hood C is doing something like *(arrp 8*index)
<BraddPitt>
or w/e, i don't really know C
<BraddPitt>
basically is direct access to that memory cell
bilbo_swaggins has quit [Quit: Leaving]
yfeldblum has joined #ruby
hooper has joined #ruby
moritzschaefer has quit [Ping timeout: 240 seconds]
aspires has quit []
michaeldeol has joined #ruby
<apeiros>
if it's sane it won't have to 8* it.
moritzs has quit [Ping timeout: 246 seconds]
sambao21 has joined #ruby
sozorogami has left #ruby [#ruby]
<apeiros>
BraddPitt: also if you know C - the source is there. just read it
<BraddPitt>
I don't ( ≖‿≖)
<BraddPitt>
well sort of
rm-rf-etc has joined #ruby
<BraddPitt>
lets see
davy_ has quit [Ping timeout: 250 seconds]
edoneerf has quit [Quit: Page closed]
Hanmac1 has joined #ruby
mrjensen has quit [Remote host closed the connection]
<mantas322>
brad pitt! are you goign to make any more movies?
<BraddPitt>
it's not all too helpful for the webdev stack, but it is a very important language to learn
cocotton has quit [Remote host closed the connection]
IceDragon has quit [Ping timeout: 240 seconds]
kenichi has joined #ruby
IceDragon has joined #ruby
r_rios has joined #ruby
<Hanmac>
BraddPitt: i leared to write an http server in C ;P
lukec has joined #ruby
sdelmore has joined #ruby
geggam has joined #ruby
yfeldblum has quit [Ping timeout: 250 seconds]
relix has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
francisfish has quit [Remote host closed the connection]
<sdelmore>
I'm not sure if this is the place for a design rather than technical question but….I have a project that takes readings from sensors. The readings are nearly integers, but not quite, they can be from 1-500, plus low or high. I could model low and high as -1, -2 or something like that but I was wondering if anyone can recommend a good pattern or example for this case.
aspires has joined #ruby
<sdelmore>
Even though it can be represented as integers, I am feeling like I should have a way to represent this data to make it obvious it is a reading, and follows reading rules/limits, not just arbitrary ints.
<certainty>
benzrf: haha, you tricked eval.in several times with your rutheless use of haskell's bind function in #ruby
<benzrf>
>tfw
cocotton has joined #ruby
karmatr0n has quit [Ping timeout: 246 seconds]
<apeiros>
sdelmore: low/high is an entirely different value from 1-500? i.e., it's not a value comparable with those 500 values?
wallerdev has joined #ruby
Hobogrammer has joined #ruby
sdouglas has quit [Remote host closed the connection]
<sdelmore>
Hmm…..They would certainly sort with them, at the high and low end. But they convey less specific information. If I had a HI value I know it really is higher than 500, but due to sensor accuracy limitations I don't know how much higher.
<apeiros>
sdelmore: so high > 500 and low < 1?
subbyyy_ has joined #ruby
<sdelmore>
Yes. And 600 should not be allowed, or should be converted to HI.
<apeiros>
with floats, I'd use Float::INFINITY and -Float::INFINITY
<apeiros>
but with integers…
_justin has joined #ruby
crystal77 has quit [Quit: Computer has gone to sleep.]
binaryhat has joined #ruby
sputnik13 has joined #ruby
<wallerdev>
to_f
<wallerdev>
lol
pigzzcanfly has joined #ruby
<sdelmore>
Interesting. These values actually can be something like 150.6, I just hadn't decided yet whether to model those as floats, or use ints and add a few decimal places under the covers. Never heard of Float::Infinity and -Float::Infinity but it sounds like a good representation of the data.
<apeiros>
not sure… I'd probably ponder 0 and 5001
<apeiros>
*501
rylev has joined #ruby
<apeiros>
ok, that's new information. in that case - infinity
Spami has joined #ruby
UserNameInvalid has joined #ruby
michaeldeol has joined #ruby
jameswlane has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<certainty>
so low or high is actually some form of delta?
<certainty>
or epsilon
<apeiros>
sounds more like "out of sensor range"
francisfish has joined #ruby
<apeiros>
and it can just say whether it's above or below sensor range
<sdelmore>
apeiros: exactly right, out of sensor range.
havenwood has quit [Remote host closed the connection]
<chrisseaton>
sdelmore: or use objects, have a class for ValidValue, with a field for the value, and have a class for HighValue and a class for LowValue
<chrisseaton>
sdelmore: you're trying to shoehorn multiple classes of data into a single type - use object orientation
rylev_ has joined #ruby
FxK has quit [Quit: (I was using Polaris SE) Version: 4.2. Webpage: http://polarisse.tripod.com/. Wasted: 2 Hours 27 Minutes and 49 Seconds Online.]
<sdelmore>
I am trying to visualize how I would do that. It seems like a reasonable representation.
havenwood has joined #ruby
pigzzcanfly has quit [Ping timeout: 240 seconds]
cocotton_ has joined #ruby
nomenkun_ has quit [Remote host closed the connection]
rylev has quit [Ping timeout: 246 seconds]
<sdelmore>
Can you think of any example code I might take a look at that does something like that? It seems like in that case all of my sets of values would contain multiple classes, but I guess in Ruby that wouldn't be a hassle to deal with.
roolo has quit [Quit: Leaving...]
nomenkun has joined #ruby
fabrice31 has joined #ruby
Eiam has joined #ruby
moritzs has joined #ruby
Megtasti_ has joined #ruby
WanderingGlitch has quit [Changing host]
WanderingGlitch has joined #ruby
browndawg has left #ruby [#ruby]
djbender has quit [Quit: djbender]
supermarin has quit [Quit: Computer has gone to sleep.]
poikon has quit []
kate_r has joined #ruby
karmatr0n has joined #ruby
mark_locklear has quit [Ping timeout: 240 seconds]
djbender has joined #ruby
rylev_ has quit [Ping timeout: 250 seconds]
cocotton has quit [Ping timeout: 240 seconds]
Megtastique has quit [Ping timeout: 240 seconds]
Hanmac1 has joined #ruby
mikecmpbll has joined #ruby
mordocai has joined #ruby
testcore has joined #ruby
mehlah has quit [Quit: Leaving...]
greenarrow has quit [Quit: 500]
hooper has quit [Ping timeout: 240 seconds]
Hanmac has quit [Ping timeout: 240 seconds]
nomenkun has quit [Ping timeout: 240 seconds]
fabrice31 has quit [Ping timeout: 240 seconds]
<benzrf>
shevy: why havent you accepted haskell into your life yet
<mordocai>
benzrf: Just joined channel, but you sound like a Jehovah witness :P
<apeiros>
benzrf: don't you know? shevy despises everything new
<benzrf>
or maybe useful abstractions with no simple intuitive mapping without using them a bit
<benzrf>
>implying category theory is newer than ruby
<certainty>
that's actually again a nice thing about haskell, since you can only pattern match against constructors it gives you a nice way to represent different variations of your types. wrt the low, high, sensor range thing
<sdelmore>
Playing with it now, didn't realize the sorting would work across classes like that.
Deele has joined #ruby
michaeldeol has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<chrisseaton>
sdelmore: if you want to sort, just add the <=> operator on each class
verto has joined #ruby
<sdelmore>
Ahhh…but isn't that just sorting inside a class? Would I need another class to sort between them?
jerius has joined #ruby
<certainty>
just many of those
<sdelmore>
Oh, wait…I get it.
rdark has quit [Quit: leaving]
<shevy>
benzrf I need my time investment to provide me with specific advantages
<sdelmore>
Sort for LowValue would always return -1, HighValue 1, and ValidValue something in between right?
<chrisseaton>
sdelmore: for valid value you can compare the actual value
binaryhat has quit [Quit: Leaving]
<apeiros>
ValidValue -1, 0 or 1
<apeiros>
depending on the value of other
jerius_ has joined #ruby
dukz has quit [Remote host closed the connection]
<chrisseaton>
sdelmore: you don't need to turn them into integers - you never need -1 or 1, just implement a custom comparison (<=>) operator on those classes
<sdelmore>
Would this be a common technique in the Ruby community? I'm new here, love the readability of the language, just trying to make sure I write readable code. If feels like points on a line to me, and surprises me that the end points on the line would be different classes than the intermediate points.
michaeldeol has joined #ruby
dukz has joined #ruby
<shevy>
I can't read your code so you are safe
<sdelmore>
But then again making measureable points different classes from immeasureable points makes sense.
<chrisseaton>
sdelmore: you can go for the simpler approach of using -1 and +1, but you might find later on that you wish you had the explicit typing for high and low values
<chrisseaton>
sdelmore: you may forget about high and low, and end up writing a routine that thinks they're normal values
aaronmcada has joined #ruby
aaronmcada has quit [Client Quit]
<sdelmore>
I'll play around with those approaches. Thanks for the input.
Guest11227 is now known as coyo
drager has quit [Changing host]
drager has joined #ruby
coyo has quit [Changing host]
coyo has joined #ruby
afreidah1 has quit [Ping timeout: 246 seconds]
jgoss has quit [Quit: Leaving]
jerius has quit [Ping timeout: 245 seconds]
r_rios has quit [Remote host closed the connection]
enebo has quit [Quit: enebo]
jameswlane has joined #ruby
aagdbl0 has joined #ruby
<certainty>
data SensorValue = Low | Value Float | High deriving (Show,Eq,Ord)
<certainty>
hmm late to the party
Codered999 has joined #ruby
* certainty
&
<Codered999>
Hey I was wondering if someone could lend me a hand with rubygems
aaronmcadam has quit [Ping timeout: 264 seconds]
dukz has quit [Ping timeout: 240 seconds]
r_rios has joined #ruby
djbender has quit [Quit: djbender]
kukyakya has quit [Remote host closed the connection]
djbender has joined #ruby
_justin has joined #ruby
benzrf is now known as benzrf|offline
rakm has joined #ruby
<sdelmore>
Certainty: How do I interpret the line of code you posted? Does it read as "data SensorValue = Low OR Value Float OR High deriving(show, eq, ord)?
kirun has joined #ruby
<sdelmore>
I don't really understand the deriving portion.
mr_red has joined #ruby
andy__ has quit [Remote host closed the connection]
brtdv has quit []
benzrf|offline is now known as benzrf
<chrisseaton>
sdelmore: | is sum, not disjunction (so it means and, not or), and deriving just means make this methods automatically (a bit like attr_reader)
danijoo_ has quit [Quit: Leaving...]
andy__ has joined #ruby
<chrisseaton>
sdelmore: but confusingly, or is probably the best way to think about it
danijoo has joined #ruby
<certainty>
sdelmore: sorry, ignore that. It's haskell. I didn't mean to cause confusion
<sdelmore>
Oh geez, that explains why I was completely lost on the syntax.
<certainty>
:)
<benzrf>
sdelmore: well, sum types seem like an or to people not versed in the math
Codered999 has left #ruby ["Once you know what it is you want to be true, instinct is a very useful device for enabling you to know that it is"]
fannye has quit [Remote host closed the connection]
<bilbo_swaggins>
to be honest
<bilbo_swaggins>
I changed my root password
<bilbo_swaggins>
then forgot it
<bilbo_swaggins>
don't do that high
<bilbo_swaggins>
I'm gonna install manjaro
megaputer has joined #ruby
<benzrf>
kek
<benzrf>
just boot from a livecd & u can reset it in like 2 seconds
<benzrf>
lol chmod lol
<bilbo_swaggins>
chroot?
<benzrf>
*chroot
<benzrf>
u should have sudo anyway
<benzrf>
just sudo passwd
<bilbo_swaggins>
I also changed my user password
<bilbo_swaggins>
to the same password
<bilbo_swaggins>
that much is sure
<benzrf>
bwahaha
<benzrf>
chroot and change that too
<benzrf>
o3o
<bilbo_swaggins>
I specifcally codified it to memory
<bilbo_swaggins>
but I codified it incorrectly
afex has joined #ruby
<shevy>
bilbo_swaggins payment for the good programmers here is quite high compared to many other jobs (save for some jobs in the economy, like bankster or manager or controller with a couple years experience under their belt)
Kricir has quit [Remote host closed the connection]
agent_white has joined #ruby
* certainty
giggles
<certainty>
like a girl
<agent_white>
Good afternoon
<certainty>
moin
<crome>
shevy: I think its pretty much the case in most of europe
badhatter has joined #ruby
badhatter has joined #ruby
badhatter has quit [Changing host]
<bilbo_swaggins>
but do you spend much time upset with your job?
<bilbo_swaggins>
or with computers?
jerius_ has quit []
funktor has joined #ruby
<certainty>
yeah
<certainty>
with computers
<bilbo_swaggins>
I want to learn to love them again
<certainty>
i hate this industry
<bilbo_swaggins>
I hate "IT" people
<shevy>
hehe
<certainty>
that's why i love shevy. He's a biologist
<bilbo_swaggins>
the most incompetent people I work with are "Intelligent Analytical Systems Administrative Data Technician IV"
<shevy>
I know that I hate computers myself
momomomomo has quit [Quit: momomomomo]
<shevy>
but there is little way without them
davidz_ has joined #ruby
ascarter has joined #ruby
<certainty>
back to the caves
<bilbo_swaggins>
I like computer science
<bilbo_swaggins>
I even like using computers for certain things
reset has joined #ruby
<agent_white>
I do computer stuff sometimes
<certainty>
like watching pr0n
<bilbo_swaggins>
but there's a black-hearted demon within each of them
<shevy>
I like only the creative part of programming and improving stuff
<bilbo_swaggins>
yes
<certainty>
call_with_cthulhu
<bilbo_swaggins>
lol
<bilbo_swaggins>
shevy what do you work on?
<shevy>
bilbo_swaggins :(
<bilbo_swaggins>
do people email you with support requests, but put screenshots in a word document instead of telling you the problem?
<shevy>
I have to learn R for a new job with a lot of boring statistical and analysis crap
<bilbo_swaggins>
stats really should be interesting
<shevy>
thankfully no
<shevy>
I hate getting email
luriv has joined #ruby
<wallerdev>
R looks super interesting
<wallerdev>
looks good for code golfing
<certainty>
shevy: i bet. It's full of this utf8 thing :)
<shevy>
certainty luckily no
stryek has quit [Quit: Leaving]
<certainty>
no?
<shevy>
certainty yep!
<certainty>
strange world
kreisys has joined #ruby
carraroj has quit [Quit: Konversation terminated!]
<bilbo_swaggins>
hello world
UserNameInvalid has joined #ruby
<shevy>
wallerdev there are some cool graphics to be done
<crome>
shevy: well, its colourful and it ha shapes
<crome>
has
<shevy>
perhaps I can convince them "hey, screw R, I will use ruby"
Macaveli has joined #ruby
<certainty>
you need only the graphs?
<wallerdev>
use the right tool for the job :p
blandflakes has joined #ruby
ce_afk is now known as cescalante
voglster has joined #ruby
gfunc has joined #ruby
spicerack has joined #ruby
Macaveli has quit [Remote host closed the connection]
kreisys_ has quit [Ping timeout: 240 seconds]
<certainty>
shevy: also it's a great opportunity. You can dress like a pirate now. Whenever someone asks you what you're doin you can just turn around and say. "I program! Rrrrrrrrrrrr"
danshultz has joined #ruby
CaptainJet has joined #ruby
<certainty>
damn i need to program R
rh1n0 has quit [Read error: Connection reset by peer]
yfeldblum has quit [Remote host closed the connection]
<wallerdev>
…
<davidz_>
What do you think Chuck Norris will do when the universe ends? Create another one?
funktor has quit [Ping timeout: 246 seconds]
awc737 has joined #ruby
<certainty>
davidz_: the universe doesn't end unless chick norris has given it permission
maximski has quit []
<awc737>
Hi, I can't tell by this read me if I need to install Ruby before omnibus?
danshultz has quit [Read error: Connection reset by peer]
<voglster>
so i have been learning lots about tdd/bdd cucumber rspec etc... i have an idea for an app that I would like to write features and eventually specs for but I seem to have a mental block of how to go from my idea to features.. anyone have any suggestions on books/ blogs/ whatever to help me get a nice process together?
zigomir has quit [Ping timeout: 240 seconds]
lolmaus has joined #ruby
<certainty>
awc737: i don't know, but i think you will notice quite quickly.
danshult_ has quit [Remote host closed the connection]
ktosiek has joined #ruby
heftig has joined #ruby
<bilbo_swaggins>
friends dont let friends use cucumber
<certainty>
+1
danshultz has joined #ruby
ylluminate has quit [Ping timeout: 240 seconds]
<voglster>
bilbo_swaggins, why? :-)
danshultz has quit [Remote host closed the connection]
<bilbo_swaggins>
unit testing makes sense
danshultz has joined #ruby
<bilbo_swaggins>
cucumber, I'm not so sure
p8952 has quit [Ping timeout: 265 seconds]
p8952_ has joined #ruby
sigurding has quit [Quit: sigurding]
<bilbo_swaggins>
but try it out and see for yourself
agarie has joined #ruby
<certainty>
integration level testing, what cucumber is mostly used for, makes sense as well. The entire let's write executable specs in english is just not that good
<awc737>
k thanks
p8952_ has quit [Client Quit]
jlebrech has quit [Quit: Konversation terminated!]
p8952 has joined #ruby
megaputer has left #ruby [#ruby]
<voglster>
bilbo_swaggins, im trying to bridge the gap between idea and implementation and it feels like cuke its meant just for that
<certainty>
it didn't work for cobol when non developers were to program and it doesn't work well now when business people are to write tests
<dorei>
can someone help me understand the following?
yfeldblum has quit [Remote host closed the connection]
<toretore>
what you want is varB = calc(...)
<toretore>
and to return the result in calc
<toretore>
er
<toretore>
ok, i see what you're doing now
yfeldblum has joined #ruby
<toretore>
you can't do that
<toretore>
integers are immutable
<crome>
he wants to assign B in the method
<crome>
yeah
mrmist has joined #ruby
<toretore>
`b += a` will return a thirf object, it will not change a nor b
ixti has joined #ruby
<toretore>
third
sqwirl has joined #ruby
toastynerd has quit [Remote host closed the connection]
mrmist is now known as mist
<livcd>
ok so how do i do that ? :X
mantas322 has left #ruby [#ruby]
<toretore>
explain why first
vpretzel has quit [Ping timeout: 252 seconds]
Bumptious has quit [Ping timeout: 264 seconds]
combusean has quit [Ping timeout: 240 seconds]
<livcd>
i want to set the value of A somewhere else and according to that value to increase the varB
Hamburglr has joined #ruby
<toretore>
why?
jokke1 has quit [Quit: WeeChat 0.4.3]
Xeago has joined #ruby
flori has joined #ruby
<livcd>
uhm why not
nbouscal has quit [Quit: Computer has commenced electric sheep tracking protocol.]
afex has quit [Ping timeout: 240 seconds]
Kricir has joined #ruby
georgerogers42 has joined #ruby
michael_lee has quit [Quit: Ex-Chat]
rvraghav93 has joined #ruby
mark_locklear has quit [Ping timeout: 246 seconds]
zorak has quit [Remote host closed the connection]
Kricir_ has joined #ruby
mark_locklear has joined #ruby
decoponio has quit [Quit: Leaving...]
mostlybadfly has quit [Quit: Connection closed for inactivity]
Es0teric has quit [Quit: Computer has gone to sleep.]
claymore has quit [Ping timeout: 265 seconds]
Kricir has quit [Ping timeout: 240 seconds]
combusean has joined #ruby
<livcd>
toretore: can you help ?
claymore has joined #ruby
zorak has joined #ruby
georgerogers42 has quit [Quit: ChatZilla 0.9.90.1 [SeaMonkey 2.25/20140324174034]]
<certainty>
livcd: you asked why not. Because it makes your programs hard to reason about. Acting at a distance like this calls for trouble
GodPuppet has quit [Write error: Broken pipe]
wallerdev has quit [Quit: wallerdev]
nbouscal has joined #ruby
ce_afk is now known as cescalante
awc737 has quit [Quit: awc737]
<shevy>
livcd use @ivars instead and call the setter from the method that sets one var
aspires has quit []
rippa has quit [Quit: {#`%${%&`+'${`%&NO CARRIER]
mshadle has joined #ruby
paulfm has quit []
awc737 has joined #ruby
<mshadle>
quick question - in a Gemfile, if i have ruby "2.1" should that be 2.1 only, or 2.1 "and newer" ? i get an error saying "Your Ruby version is 2.1.1, but your Gemfile specified 2.1"
rm_ has quit [Remote host closed the connection]
funktor has joined #ruby
toastynerd has joined #ruby
rm_ has joined #ruby
agarie has quit [Remote host closed the connection]
<apeiros>
I'd expect it to mean 2.1 precisely
<toretore>
livcd: if you want my help you have to be more forthcoming than that
rm__ has joined #ruby
<apeiros>
if you want "and newer", I'd expect ">= 2.1"
sambao21 has joined #ruby
maximski has joined #ruby
RaptorJesus has quit [Ping timeout: 240 seconds]
maximski has quit [Max SendQ exceeded]
<prdx>
How can I compress a string with ruby?
michaeldeol has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
skaflem has quit [Quit: Leaving]
<toretore>
compress can mean many things
<mshadle>
yeah then i get "Your Ruby version is 2.1.1, but your Gemfile specified >= 2.1"
<prdx>
Is there like a gem for such stuffs? I mean like gzip
chrisseaton has joined #ruby
<toretore>
expln btr
<prdx>
or similar.
<toretore>
yes, there is gzip
maximski has joined #ruby
<prdx>
cool.
jackneill has quit [Remote host closed the connection]
<livcd>
toretore: well uhm i just wanted to know how to do it
<livcd>
that's it
nanashiRei has quit [Quit: It really works!]
<mshadle>
i can't find examples of specifying the ruby version like a gem version. i tried wildcards, > < symbols, etc.
<SJr>
Unless you don't mean an environment variable.
<certainty>
SJr: i didn't mean an environment variable :)
<certainty>
$SAFE is a ruby global
<SJr>
ah I wouldn't know where to look :(
<certainty>
that is used to control "security"-related behavior of ruby
keeguon has joined #ruby
vpretzel has joined #ruby
davy_ has quit [Ping timeout: 240 seconds]
<davidz_>
OpenSSL gonna get as much love as Java
<SJr>
It doesn't seem to be in my ~/.rvm/rubies/ruby-1.9.3-p0/config file either
sdouglas has joined #ruby
<certainty>
SJr: you could grep the code you're trying to run
thumpba_ has quit [Remote host closed the connection]
Megtasti_ has quit []
<SJr>
You mean show you?
Hobogrammer has joined #ruby
<certainty>
SJr: nope, use grep(1) to search for $SAFE
<davidz_>
grep is a verb now
<SJr>
I did that in that file
<davidz_>
well it has been for a long time
<SJr>
and it isn't there
<certainty>
SJr: ok let's step back. What is the code you're trying to run that gives you that error?
elaptics`away is now known as elaptics
eka has quit [Quit: My computer has gone to sleep. ZZZzzz…]
lmickh has joined #ruby
djbender has joined #ruby
ixti has quit [Ping timeout: 245 seconds]
<SJr>
It's code that runs another program (this is a scientific application). It only has this problem when I'm running via a cluster, if I run the script locally there is no problem. The code essentially just does in = ARGV[0] require File.exapend_path("#{in}/file.rb") and I get the error there.
SHyx0rmZ has joined #ruby
poguez_ has quit [Quit: Connection closed for inactivity]
<SJr>
This only seems to be a problem when I schedule the jobs to run on the cluster, locally I cannot reproduce it.
pigzzcanfly has joined #ruby
toddabrahm has joined #ruby
awc737 has quit [Quit: awc737]
CreativeEmbassy has joined #ruby
<certainty>
SJr: how are programs run on your cluster? Using a standard ruby or some kind of wrapper?
davorb has quit [Quit: Connection closed for inactivity]
<workmad3>
SJr: I'm guessing by the use of expand_path that the in file argument is a relative file path?
<SJr>
Via a shell script.
<SJr>
Yeah most likely
larissa has quit [Quit: Leaving]
<workmad3>
SJr: have you compared the value of PWD between running on the cluster and running locally?
<SJr>
Could I put something in this config file to turn this off.
MatthewsFace has quit [Quit: This computer has gone to sleep]
<SJr>
The cwd should be the same
<workmad3>
oh wait, sorry wrong issue...
RaptorJesus has joined #ruby
<workmad3>
ignore me :)
livcd has quit [Quit: leaving]
gfunc has quit [Remote host closed the connection]
Kricir has quit [Ping timeout: 240 seconds]
Xeago has quit [Remote host closed the connection]
<SJr>
So I have zero need for this safety checking
<SJr>
how can I turn it off.
mjs2600 has joined #ruby
<certainty>
SJr: the thing is that it isn't turned on usually. The program has to turn it on
noop has quit [Ping timeout: 240 seconds]
funktor_ has quit [Remote host closed the connection]
larsam has joined #ruby
funktor has joined #ruby
<apeiros>
certainty: or via env
<workmad3>
SJr: is $RUBY_OPTS set on the cluster
<workmad3>
?
<apeiros>
at least I think there was a way to set it via env
<certainty>
or via -T
<workmad3>
apeiros: -T, so by extension via $RUBY_OPTS :)
<SJr>
workmad3, doesn't seem to be an environment variable no
<certainty>
apeiros: didn't know that was possible.
<certainty>
SJr: what's the shebang line of the file that invokes the "runner" script?
<certainty>
yeah or RUBY_OPTS
Xeago has joined #ruby
funktor_ has joined #ruby
Megtastique has joined #ruby
funktor has quit [Read error: Connection reset by peer]
<SJr>
Not sure
enebo has joined #ruby
RowdyChild|Away is now known as RowdyChildren
<certainty>
SJr: the first line of the file that does the require File.expand_path("#{in}/file.rb")
habanany has quit [Ping timeout: 264 seconds]
<SJr>
oh there isn't one
<SJr>
it's invoked via ruby
<certainty>
ruby filename?
funktor_ has quit [Remote host closed the connection]
<certainty>
smt_generic_solver_wrapper.rb is the file that does the require?
<SJr>
yeah
<certainty>
and what is ruby?
<SJr>
it's a specific ruby 1.9.3 that I beuilt some time ago
<certainty>
may seem like a stupid question but you would be surprised
michaeldeol has joined #ruby
<certainty>
ok well then it probably is RUBY_OPT then as workmad3 suggested
earth has joined #ruby
<SJr>
Sorry I'm not a ruby dev, is there an equivilant of phpinfo() that just outputs everything of concern
mengu has joined #ruby
<SJr>
I could then just diff that.
aspires has joined #ruby
<certainty>
nah, that's not needed. I just wanted to know that the executable that happens to be found when you run the command ruby without a full path is indeed a ruby interpreter and not something else
<certainty>
SJr: could you check if the RUBY_OPT environment variable is set?
<SJr>
Yeah I did, it isn't set as far I can tell.
maletor has quit [Quit: Computer has gone to sleep.]
toastynerd has joined #ruby
carraroj has quit [Quit: Konversation terminated!]
jorts_ has joined #ruby
<certainty>
SJr: what's the difference between running it local and in the cluster?
alex88 has quit [Quit: Leaving...]
cescalante is now known as ce_afk
nisstyre has joined #ruby
<SJr>
A bunch of stuff that should not make any difference. The scheduler torque will dispatch it and execute it.
<SJr>
The admins do weird things occasionally.
saarinen has quit [Quit: saarinen]
jorts has quit [Ping timeout: 246 seconds]
jorts_ is now known as jorts
maletor has joined #ruby
<certainty>
hmm, i'm out of ideas then
<SJr>
Hmmmm maybe this isn't a taint error at all.
<SJr>
that was just someone elses suggestion
ndrei has quit [Ping timeout: 240 seconds]
<certainty>
the type of the exception indicates this as well
_justin has quit [Quit: _justin]
<certainty>
well you could try to pastet he whole file and the exact error message using the paste service of your choice. Maybe that helps
<SJr>
How do I read the configuration settings in ruby?
Solnse has joined #ruby
ndrei has joined #ruby
<certainty>
what do you mean by configuration settings?
<SJr>
like how do I verify that SAFE is not zero at runtime
optiz0r has quit [Remote host closed the connection]
optiz0r has joined #ruby
<shevy>
if $SAFE > 0 ?
<certainty>
you can just run a program that prints the value of $SAFE to standard out
bean has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<certainty>
puts "SAFE is: #{$SAFE}"
<SJr>
So a string this would work right STDERR.puts "SAFE #{SAFE}"
<SJr>
okay
rezzack has joined #ruby
<shevy>
he hates $
<certainty>
i'm pretty sure it's >= 2 though
<shevy>
they get chopped away in the transmission
spider-mario has quit [Read error: Connection reset by peer]
<SJr>
Interesting SAFE is indeed 1
<certainty>
yeah ok make sense as well
<certainty>
it doesn't allow you to load files from a path represented by a tainted string
<SJr>
so which ruby config file will it read from?
_justin has joined #ruby
Es0teric has joined #ruby
s2013_ has joined #ruby
flori has quit [Ping timeout: 250 seconds]
spicerack has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<certainty>
normally this should be fairly obvious. It can be either set via the -T command-line switch which is either passed directly or indirectly via RUBY_OPT. If it's not that then it can be set only from within the loaded file(s)
<certainty>
did I forget something?
Tuxified has joined #ruby
ndrei has quit [Ping timeout: 246 seconds]
Guest70378 has joined #ruby
<Guest70378>
warning
<Guest70378>
you may be watched
<Guest70378>
do usa&israel use the internet(facebook,youtube,twitter, chat rooms ..ect)to collect informations,can we call that spying??
<Guest70378>
do they record&analyse everything we do on the internet,,can they harm you using these informations??
<Guest70378>
they ask for ur name,age,gender,occupation,location&sometimes political point of veiw?!?!
<Guest70378>
تحذير قد تكون مراقب
<Guest70378>
هل تستخدم امريكا و اسرائيل الانترنت بمواقعه (فيس بوك,يوتيوب,تويتر,غرف الشات....الخ) للتجسس؟
<Guest70378>
warning you may be watched
<Guest70378>
do usa&israel use the internet(facebook,youtube,twitter, chat rooms ..ect)to collect informations,can we call that spying??
<Guest70378>
they ask for ur name,age,gender,occupation,location&sometimes political point of veiw?!?!
<Guest70378>
do they record&analyse everything we do on the internet,,can they harm you using these informations??
<Guest70378>
تحذير قد تكون مراقب
Guest70378 has quit [Excess Flood]
bean has quit [Client Quit]
blandflakes has quit [Quit: Page closed]
hooper has joined #ruby
Guest70378 has joined #ruby
Guest70378 was kicked from #ruby by apeiros [Guest70378]
<Solnse>
$SAFE is a thread local variable, not a global variable.
<dorei>
okie
<dorei>
may i ask something silly?
<apeiros>
no
<dorei>
:(
papercode has quit [Quit: WeeChat 0.4.4-dev]
<apeiros>
you're going to ask anyway, aren't you? :-p
rakm has quit [Quit: Connection closed for inactivity]
kirun has quit [Quit: Client exiting]
s2013_ has quit [Ping timeout: 246 seconds]
<SJr>
This is literally the file that his having the problem, line 38 is where it tanks: http://pastie.org/9004558
<dorei>
when someone is working as a ruby dev, how many lines of code is one supposed to be writing per day?
bean has joined #ruby
<SJr>
Yeah I saw that Solnse
ndrei has joined #ruby
saarinen has joined #ruby
thrillagorilla has joined #ruby
Hanmac1 has joined #ruby
Xeago has quit [Remote host closed the connection]
papercode has joined #ruby
<Solnse>
so how is it 'tanking' ?
einarj has joined #ruby
<sdelmore>
In Ruby I am used to calling new for constructors, then just realized that sometimes I don't have to. For example Integer(5) instead of Integer.new(5). Why does that work? Is there some sort of default method that can be used as a constructor?
CreativeEmbassy has quit [Read error: Connection reset by peer]
<Solnse>
dorei: sometimes I eliminate more code than I write. you can't value a dev in lines of code written.
<dorei>
sdelmore: i guess there'a class method named () on Integer
<apeiros>
dorei: I'm most happy on the days where I netto deleted lines
Hanmac has quit [Ping timeout: 240 seconds]
<apeiros>
written lines per day is an utterly useless measure. sorry.
hooper has quit [Ping timeout: 250 seconds]
<apeiros>
dorei, sdelmore: Integer(5) is Kernel#Integer() method
<dorei>
i just want an estimate of what bosses / project managers expect
<apeiros>
dorei, sdelmore: i.e., just like you can call puts("foo") (which is Kernel#puts), you can call Integer("foo") (which is Kernel#Integer)
<Solnse>
they expect you to be not a dumbass
<apeiros>
dorei: they expect you to finish your job. less lines is better.
<apeiros>
dorei: as blaise pascal put it: "I'd have written a shorter letter, if only I'd had more time."
<Solnse>
SJr: sorry, I don't know.
<dorei>
I work as a freelance dev and i'm capable of overestimating time needed and convincing my customer about it so that I can be as lazy as i want :)
<sdelmore>
Ahh….so I can't easily extend that line of work. Was just curious why I couldn't do something like MyRestrictedValue(5) instead of calling .new.
<Solnse>
good luck with that
<apeiros>
sdelmore: classes are open, so yes, you can do that
<certainty>
classes are open already? damn I'm late again
<apeiros>
sdelmore: that module_function part is somewhat important. makes you break less foreign code.
<sdelmore>
Feels dirty though since I see very few others do that. Awesome to see how it works though.
keeguon has quit [Quit: keeguon]
sqwirl has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
nisstyre has quit [Quit: bai]
<Solnse>
metaprogramming?
niftylettuce_ has quit [Quit: Connection closed for inactivity]
cpruitt has quit [Quit: cpruitt]
rylev has joined #ruby
<sdelmore>
Nah, was just trying to make a nice way to access a class for a limited range of values, 100-500, plus low and hi. Based on a tip I got here today I represented LOW and HI with Float::Infinity and -Float::Infinity but realized when people want to create them that is not a nice way to get a new one....
<sdelmore>
So I added RestrictedValue.LO and RestrictedValue.HI to get the low and high values. Was just considering alternative methods.
cpruitt has joined #ruby
ce_afk is now known as cescalante
<workmad3>
sdelmore: dorei had it wrong btw... there isn't a method called () on Integer... there's a method called Integer on Kernel
postmodern has joined #ruby
<workmad3>
sdelmore: that performs integer conversions
<apeiros>
I mean that's globbing all files from pwd
<apeiros>
seems not nice…
ktun has quit [Client Quit]
<apeiros>
yepp, that's it
<certainty>
there's your sleep 61/2
ktun has joined #ruby
<workmad3>
certainty: 61.fdiv(2) ftw!
combusean has quit [Ping timeout: 250 seconds]
<certainty>
that will bring me into the land of IEEE
<certainty>
i try to avoid it. Team Integer, baby
centrx has joined #ruby
<bilbo_swaggins>
countable infinities 4 LYF
<apeiros>
`cd ~; mkdir tmppry; cd tmppry; pry` # -> and pry starts up in 1s
<certainty>
Float::NAN / 0
<apeiros>
so indeed certainty, bye byebug
aaronmcadam has quit [Quit: Leaving...]
combusean has joined #ruby
ktun has quit [Client Quit]
<certainty>
waves good bye
<workmad3>
bilbo_swaggins: thinking about it, I think IEEE floats are a countable infinity ;)
<apeiros>
lets see whether 2.7.0 is better than 2.6.0 in that regard…
mengu has quit [Remote host closed the connection]
<bilbo_swaggins>
god damn it you're right
<bilbo_swaggins>
by golly I reckon
mr_snowf1ake has joined #ruby
relix has joined #ruby
obscured has quit [Quit: leaving]
<apeiros>
that glob got fixed in byebug 2.7 as it seems
Seldan has joined #ruby
<certainty>
apeiros: does it use that list to check if a file is in it? Strange approach then
bilbo_swaggins has quit [Remote host closed the connection]
<apeiros>
certainty: it excludes its own files
<apeiros>
it just did it utterly wrong in 2.6
<certainty>
indeed
<apeiros>
should also introduce the author to Set
davy_ has joined #ruby
mark_locklear has quit [Ping timeout: 240 seconds]
funktor has joined #ruby
soulcake has quit [Read error: Connection reset by peer]
aaronmcadam has joined #ruby
soulcake has joined #ruby
chrisseaton has quit [Remote host closed the connection]
werdnativ has quit [Quit: werdnativ]
fabrice31 has joined #ruby
jxf has quit [Ping timeout: 240 seconds]
professor_soap has joined #ruby
davy_ has quit [Ping timeout: 246 seconds]
phansch has quit [Quit: WeeChat 0.4.2]
rezzack has quit [Quit: Leaving.]
<SJr>
Hmmmm okay I'm back with some subtle differences
awc737 has joined #ruby
chrisseaton has joined #ruby
<SJr>
If I launch an interactive job on the cluster (get a shell), if that shell is /bin/sh then ruby -T0 ... still has a safe level of 1
selite has joined #ruby
<professor_soap>
Hey, anyone seen any "heartbleed script" in ruby? I just wanna understand the attack possibility from a code perspective is that makes sense.
p8952 has quit [Ping timeout: 246 seconds]
<selite>
Can we like determine the exact URL of the page by the parameters?
rezzack has joined #ruby
mark_locklear has joined #ruby
<selite>
I'm a little bit confused by the action and controllers.
shashank_rs has quit [Read error: Connection reset by peer]
<havenwood>
package manager update took care of it for me since ruby-install isn't affected ;)
fijimunkii has quit [Client Quit]
sdouglas has joined #ruby
<havenwood>
ruby-build users update your vulnerable ruby-build if you haven't already!
<workmad3>
havenwood: I needed to bounce nginx
sailias has joined #ruby
<workmad3>
havenwood: after updating
<havenwood>
workmad3: ah yeah, ditto
<havenwood>
workmad3: good point
ndrei has joined #ruby
dyreshark has joined #ruby
organmeat has joined #ruby
arubincloud has quit [Excess Flood]
<workmad3>
havenwood: I haven't worried about my rubies overly much, as I don't have anything from them on an open port
arubincloud has joined #ruby
Guest28248 has quit [Remote host closed the connection]
cj3kim has quit [Remote host closed the connection]
jason___ has joined #ruby
<certainty>
c'mon! they already have your keys :)
<certainty>
or at least they have access to the one key you trust
<workmad3>
certainty: don't think so... all the system openssl stuff on my mac is openssl 0.9.8 ;)
paulfm has quit []
<workmad3>
certainty: so my SSH cert should be safe from that at least
<certainty>
workmad3: yeah, but that doesn't help if the damn CA gives away the credentials because they must
jhass is now known as jhass|off
sdouglas has quit [Ping timeout: 240 seconds]
funburn has joined #ruby
<workmad3>
certainty: no... that's the job of my elliptic curve diffie-helmann key exchange algorithm, right? :P
alexju has quit [Remote host closed the connection]
<chrisseaton>
What does it mean when a block takes parameters |a, | - what does the trailing comma mean? (difficult to search for this)
rainmanjam has joined #ruby
agarie has joined #ruby
sambao21 has quit [Quit: Computer has gone to sleep.]
mrjensen has quit [Remote host closed the connection]
momomomomo has joined #ruby
jorts has quit [Ping timeout: 250 seconds]
<workmad3>
certainty: although I am slightly concerned about that as if I try to change the curve in use then I break a lot of browsers, so I could be using an NSA-compromised curve :(
mrjensen has joined #ruby
jason___ has quit [Ping timeout: 240 seconds]
olivier_bK has quit [Ping timeout: 246 seconds]
sdouglas has joined #ruby
<certainty>
we no that vendors were "forced" to promote unsafe curves
cj3kim has quit [Remote host closed the connection]
<centrx>
That is how it used to be, before Ruby
<BlakeRG>
think this works.... :correct_answer => (1 if row[num] == row[7])
<centrx>
yes
<BlakeRG>
can't stick an else in there too?
<centrx>
BlakeRG, Use the ternary operator
<centrx>
BlakeRG, That makes more sense in this usage anyway
cj3kim has joined #ruby
<centrx>
BlakeRG, row[num] == row[7] ? 1 : 0
<BlakeRG>
k
<BlakeRG>
:P
<centrx>
if ? then : else
Es0teric has joined #ruby
linojon has quit [Quit: linojon]
<BlakeRG>
awesome
<BlakeRG>
thanks centrx
<BlakeRG>
ruby so is handy :)
linojon has joined #ruby
relix has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
RyanV has joined #ruby
iliketurtles has joined #ruby
sambao21 has quit [Quit: Computer has gone to sleep.]
Avahey_ has joined #ruby
meatherly has quit [Remote host closed the connection]
garndt has quit [Quit: Connection closed for inactivity]
meatherly has joined #ruby
kloeri has quit [Quit: leaving]
<crome>
I dont see the tests in that PR :(
kloeri has joined #ruby
mr_snowf1ake has quit [Ping timeout: 250 seconds]
sambao21 has joined #ruby
funktor has joined #ruby
schmidt has quit [Quit: WeeChat 0.4.2]
bklane has joined #ruby
freerobby1 has quit [Ping timeout: 240 seconds]
chrisseaton has quit []
cj3kim has quit [Remote host closed the connection]
chris_thomson has joined #ruby
meatherly has quit [Ping timeout: 246 seconds]
maximski has joined #ruby
Kelet has joined #ruby
jobewan has quit [Ping timeout: 255 seconds]
<Kelet>
Hi, does anyone know where there are precompiled binaries for Ruby 2.1.1 for Windows?
ckinni has joined #ruby
badhatter has quit [Quit: Leaving]
jrhorn424 is now known as zz_jrhorn424
freerobby1 has joined #ruby
pskosinski has quit [Quit: Til rivido Idisti!]
klaut has quit [Remote host closed the connection]
<crome>
last time I checked I couldnt find any
<Kelet>
Darn, that's a shame. Seems like someone on the internet would've compiled it and packaged it for the rest of the internet users on Windows by now.
<Kelet>
Ah well.
afex has joined #ruby
maximski has quit [Ping timeout: 240 seconds]
<wallerdev>
i dont think anyone on windows actually uses ruby
andy__ has joined #ruby
bean has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
zorak has quit [Read error: Connection reset by peer]
mary5030 has quit [Remote host closed the connection]
mary5030 has joined #ruby
germanstudent has joined #ruby
habanany has joined #ruby
spicerack has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<Kelet>
I don't think there's anything wrong with Ruby on windows at all really.
x1337807x has joined #ruby
Vovko has joined #ruby
<Kelet>
The ecosystem here seems so far ingrained into web-based development which has a few gems that don't easily work on Windows because you have to install a devkit
Vovko has quit [Remote host closed the connection]
gregf has quit [Quit: WeeChat 0.4.3]
<Kelet>
I don't know of any actual outstanding issues with *Ruby* and Windows, but maybe I'm missing something
joonty_ has quit [Ping timeout: 246 seconds]
taf2 has quit [Quit: taf2]
claymore has quit [Quit: Leaving]
kreisys has joined #ruby
mary5030 has quit [Ping timeout: 240 seconds]
sailias has quit [Ping timeout: 250 seconds]
karmatr0n has quit [Remote host closed the connection]
sski has joined #ruby
charliesome has joined #ruby
tjr9898 has quit [Remote host closed the connection]
ItSANgo has joined #ruby
maletor has quit [Quit: Computer has gone to sleep.]
jameswlane has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
narcan has joined #ruby
Kelet has left #ruby [#ruby]
DrShoggoth has quit [Quit: Leaving]
dtcrshr has quit [Quit: Saindo]
kate_r has quit [Quit: My Mac Pro has gone to sleep. ZZZzzz…]
poguez_ has joined #ruby
Celm has quit [Remote host closed the connection]
mary5030 has joined #ruby
enebo has quit [Ping timeout: 240 seconds]
randomnick_ has quit [Quit: Leaving]
r_rios has joined #ruby
freerobby1 has quit [Quit: Leaving.]
hooper has joined #ruby
bufferloss has joined #ruby
gregf has joined #ruby
funktor has quit []
rudisimo has quit []
jlast has quit [Remote host closed the connection]
chrisseaton has joined #ruby
nateberkopec has joined #ruby
cz20xx has joined #ruby
dapz has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
Celm has joined #ruby
<voglster>
im looking for a bored english speaking autodidact to pair with... i have some side projects as ideas... or open source projects... or anything else... anyone have suggestions on where to find pair programming partners?
yubrew_ has joined #ruby
lrocksmashtime has joined #ruby
lrocksmashtime has left #ruby ["Leaving"]
<voglster>
looking to practice tdd/bdd... tmux/vim... ruby and rails...
<davidz_>
thats a good idea for a website
<davidz_>
eharmony but for programmerse
<voglster>
true.. wanna make it with me :-)
simon-away has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<davidz_>
I'm taken brother :P
keeguon has quit [Quit: keeguon]
<voglster>
oh well worth a shot hehe
* davidz_
hugs his 1:1 poster of hatsune miku
<davidz_>
jk
yubrew has quit [Ping timeout: 255 seconds]
phutchins has quit [Ping timeout: 240 seconds]
alexju has quit [Remote host closed the connection]
<voglster>
hmmm you think rharmony domain is taken?
aspires has quit []
cj3kim has joined #ruby
aspires has joined #ruby
deric_skibotn has joined #ruby
havenwood has joined #ruby
fella5s has quit [Ping timeout: 265 seconds]
<hooper>
voglster: do you have any project ideas?
fabrice31 has joined #ruby
olivier_bK has quit [Ping timeout: 246 seconds]
maletor has joined #ruby
dr0ff has joined #ruby
Stalkr_ has joined #ruby
SCommette has quit [Quit: SCommette]
<Stalkr_>
What's the correct way to assert_equal two hash objects?
chris_thomson has quit [Quit: Zzz...]
vasilakisFiL has joined #ruby
<vasilakisFiL>
hi.. I have this tiny code here http://pastie.org/9005179 but it hangs... can anyone help me ?
nisstyre has quit [Quit: WeeChat 0.4.3]
fabrice31 has quit [Ping timeout: 240 seconds]
<vasilakisFiL>
even if I remove this line ( and uncomment the rest) it hangs on the first that uses the gsub
chris_thomson has joined #ruby
aspires has quit []
charliesome has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
workmad3 has joined #ruby
mercwithamouth has joined #ruby
s2013_ has quit [Quit: Leaving]
fella5s has joined #ruby
aspires has joined #ruby
davy_ has joined #ruby
<combusean>
anyone know datamapper in here really well?
VTLob has quit [Quit: VTLob]
pu22l3r has joined #ruby
SCommette has joined #ruby
sdwrage has quit [Quit: This computer has gone to sleep]
<centrx>
Datamapper is old
SCommette has quit [Client Quit]
tchebb has quit [Ping timeout: 255 seconds]
jxf has quit [Ping timeout: 240 seconds]
<voglster>
hooper, yes.. but may take some text to explain... can i pm you?
<voglster>
hmmm #pairwithme on twitter looks promising for finding pairing partners too
<postmodern>
combusean, i do
yfeldblum has quit [Ping timeout: 240 seconds]
<combusean>
postmodern, would you have any idea why datamapper insists on connecting to eth0 and can't even display a refusal message properly despite my giving it a connection string?
davy_ has quit [Ping timeout: 240 seconds]
unknown007 has joined #ruby
mary5030 has quit [Remote host closed the connection]
mary5030 has joined #ruby
Shidash has quit [Ping timeout: 240 seconds]
tchebb has joined #ruby
narcan has quit [Quit: -[AppDelegate installMalware]: unrecognized selector sent to instance 0x156109c0]
kiki_lamb has quit [Quit: leaving]
michaeldeol has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
sdwrage has joined #ruby
kiki_lamb has joined #ruby
alyi has joined #ruby
zachallett has joined #ruby
zorak has joined #ruby
<bufferloss>
do I need to install the regular SDL before I can use rubysdl ?
george2 has quit [Ping timeout: 255 seconds]
mary5030 has quit [Ping timeout: 250 seconds]
yfeldblum has joined #ruby
Bumptious has quit [Remote host closed the connection]
Bumptious has joined #ruby
matcouto has joined #ruby
Dysruption has joined #ruby
aspires_ has joined #ruby
aspires has quit [Read error: Connection reset by peer]
<centrx>
bufferloss, probably
<centrx>
bufferloss, plus the dev/header files probably too
<bufferloss>
yeah, finding docs on exactly what is needed is proving to be difficult
andy__ has quit [Remote host closed the connection]
<bufferloss>
I’d rather use ruby for this project, but python seems like it has better/native integration with SDL than ruby does at the moment
ikaros has quit [Quit: Ex-Chat]
<centrx>
There should be some hints when you install the rubysdl gem
<bufferloss>
trying to teach noobs and they’re getting confused because of the python “indent as syntax” thing
<bufferloss>
centrx: unfortunately not a whole lot of hints
andy__ has joined #ruby
<bufferloss>
it failed and listed the CLI flags and that was it
<centrx>
Post a gist of complete error message
<centrx>
/backtrace
michaeldeol has joined #ruby
tjr9898 has joined #ruby
cover has quit [Remote host closed the connection]
fbernier has quit [Read error: Connection reset by peer]
<kenichi>
that's a test client. i've got ruby workers that make https requests to potentially malicious servers... since this apparently goes both ways
mjuszczak has quit [Remote host closed the connection]
Nukepuppy has quit [Ping timeout: 250 seconds]
<davidz_>
hm
<davidz_>
kenichi if you don't manage the requests you make, you're just gonna have to trust em in the end anyway dont you?
habanany has quit [Quit: Leaving.]
sdouglas has quit [Remote host closed the connection]
<kenichi>
davidz_: true dat
mercwithamouth has quit [Ping timeout: 240 seconds]
<kenichi>
Nowaker: i'm reparsing your words and do you mean create a OpenSSL::SSL::SSLServer and then use a heartbleed test client against it?
davy has joined #ruby
Kricir has joined #ruby
frem has quit [Quit: Connection closed for inactivity]
meatherly has joined #ruby
jeregrine has quit [Quit: Connection closed for inactivity]
toastynerd has quit [Remote host closed the connection]
mdpatrick_ has quit [Remote host closed the connection]
defunct_process has quit [Read error: Connection reset by peer]
werdnativ has quit [Ping timeout: 240 seconds]
andrewlio has quit [Quit: Leaving.]
danijoo has quit [Remote host closed the connection]
enebo has joined #ruby
yfeldblum has quit [Remote host closed the connection]
davy has quit [Ping timeout: 250 seconds]
yfeldblum has joined #ruby
awc737 has quit [Quit: awc737]
tcstar has quit [Ping timeout: 240 seconds]
x1337807x has joined #ruby
saarinen has joined #ruby
<Nowaker>
kenichi: i am not familiar with openssl in ruby but you just want to start an ssl server from ruby and test it against the client
cj3kim has quit [Read error: Connection reset by peer]
<kenichi>
Nowaker: yeah, thanks, i think that's a good test
x1337807x has quit [Client Quit]
cj3kim has joined #ruby
jason_ has joined #ruby
lkba has joined #ruby
ocke has joined #ruby
<ocke>
Hey ppl
momomomomo has quit [Quit: momomomomo]
tcstar has joined #ruby
predator217 has joined #ruby
aspires_ has quit []
<ocke>
How come some_function('arg1', 'arg2', arg3:'value) worked on 1 ruby install, but my other installcomplains, and wants to see some_function('arg1', 'arg2', :arg3=>'value') ?
momomomomo has joined #ruby
cj3kim has quit [Remote host closed the connection]