<mwlang>
better to go to a bootcamp if that’s your only goal. Otherwise, you’re likely wasting a lotta $$.
Kricir has quit [Remote host closed the connection]
moeabdol has quit [Ping timeout: 264 seconds]
<GaryOak_>
That's true, the only jobs I see around are for Front-end devs
iamvery has quit [Client Quit]
<mwlang>
Are you in the hunt?
<GaryOak_>
Not really, always looking
Bira has quit [Ping timeout: 244 seconds]
<mwlang>
GaryOak_: https://toprubyjobs.com/ lists a lot of Ruby jobs that are everything from full-stack, to mobile, to back-end development.
millerti has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
jackjackdripper has quit [Quit: Leaving.]
pietr0 has quit [Ping timeout: 246 seconds]
ismaelga has joined #ruby
Zekka has joined #ruby
CloCkWeRX has quit [Quit: Leaving.]
Sawbones_ has quit [Remote host closed the connection]
scripore has joined #ruby
robustus has quit [Ping timeout: 255 seconds]
<GaryOak_>
cool thanks
ismael has joined #ruby
ismael is now known as Guest78
Kricir has joined #ruby
<GaryOak_>
I really would love a remote job, but I feel like companies have higher expectations
ismaelga has quit [Read error: Connection reset by peer]
DEA7TH has quit [Ping timeout: 246 seconds]
<GaryOak_>
Which I'm probably not qualified for :P
robustus|Off has joined #ruby
robustus|Off is now known as robustus
quimrstorres has quit [Remote host closed the connection]
<mwlang>
GaryOak_: put yourself on odesk.com, then. :-)
<GaryOak_>
Is the Return on that site worth the time?
sevenseacat has joined #ruby
<mwlang>
GaryOak_: If you need to build qualifications, yes.
<GaryOak_>
hmmm ok
<mwlang>
you gotta start somewhere.
n008f4g_ has quit [Ping timeout: 256 seconds]
baweaver has quit [Remote host closed the connection]
CloCkWeRX has joined #ruby
<mwlang>
guru.com is another you can hunt for one-off jobs, but it’s definitely easy to get under-bid there.
<GaryOak_>
Yeah I have a CS degree already, I just live in a technology pit of a city
<mwlang>
GaryOak_: where?
<GaryOak_>
Spokane, WA
nfk has quit [Quit: yawn]
ismaelga has joined #ruby
<mwlang>
hah…I thought you were going to say Cleveland, OH.
<GaryOak_>
Is that where you are from?
<mwlang>
Nope. Atlanta/Athens, GA
<GaryOak_>
Ahh
<mwlang>
Now in San Diego, CA as of Feb
<GaryOak_>
That's cool, I've tried starting a Ruby group here, but everyone is just doing Rails development
vdamewood has joined #ruby
<GaryOak_>
and there's only like 5 Ruby devs in the city
workmad3 has joined #ruby
<mwlang>
Start a polyglot dev group. Play one language off the other each month.
MatthewsFace[SEA has joined #ruby
<GaryOak_>
Yeah, I should go to some of the other dev groups in town
Guest39059 has quit [Ping timeout: 240 seconds]
rbennacer has joined #ruby
Guest78 has quit [Ping timeout: 246 seconds]
Akagi201_ has quit [Remote host closed the connection]
GaryOak_ has quit [Remote host closed the connection]
Zekka has quit [Ping timeout: 265 seconds]
jack_rabbit_ has quit [Ping timeout: 272 seconds]
<mwlang>
Athens only had about 5 or 6 Ruby developers…and about the same Python, PHP, Perl, and others…made up for a group of about 30 altogether.
jenrzzz_ has quit [Ping timeout: 245 seconds]
Mohan__ has quit [Ping timeout: 240 seconds]
Guest76750 has quit [Quit: This computer has gone to sleep]
mitchellhenke has quit [Quit: Computer has gone to sleep.]
Mohan has joined #ruby
workmad3 has quit [Ping timeout: 240 seconds]
poguez_ has quit [Quit: Connection closed for inactivity]
Mohan is now known as Guest56741
rbennacer has quit [Ping timeout: 244 seconds]
Pisuke has quit [Read error: Connection reset by peer]
baweaver has joined #ruby
Pisuke has joined #ruby
dorei has quit []
Channel6 has quit [Quit: Leaving]
ozialien has joined #ruby
bebijlya has quit [Quit: kthxbai]
nobitanobi has joined #ruby
Igorshp has quit [Remote host closed the connection]
bebijlya has joined #ruby
Igorshp has joined #ruby
juanpablo___ has quit [Quit: (null)]
juanpablo___ has joined #ruby
Matachines has joined #ruby
<ght>
Is the syntax for requiring a specific gem version in a ruby script the same as a rails Gemfile?
kblake has quit [Remote host closed the connection]
<ght>
I've researched this and it's not clear, it seems that a ruby script requires a gem 'nameofgem', '=version' syntax, followed by the require, though that may be depreciated synta.
<ght>
syntax*
<mwlang>
So I’m experimenting with graphviz, ruby-prof and generating call trees visually. One problem I have is that as I trace through the tree, otherwise sane branching on some of the methods point back to an #each method call, bringing several unrelated call chains together — and from that one #each node, 50+ out-nodes are branched.
<havenwood>
ght: The Gemfile is just Ruby. In just Ruby you can do like: gem 'minitest', '~> 5'
mjuszczak has quit []
<mwlang>
Makes it look like the #each iterator is the bottleneck when it’s really just the stuff within the each loops that’s really the interesting part.
juanpablo____ has joined #ruby
juanpablo___ has quit [Read error: Connection reset by peer]
Altonymous has quit [Quit: Altonymous]
<mwlang>
any idea how to break apart the #each calls so the call tree flows more like it should (like perhaps just ignore #each)?
Igorshp has quit [Ping timeout: 264 seconds]
ahmetkapikiran has quit [Quit: ahmetkapikiran]
zz_Outlastsheep has joined #ruby
<mwlang>
nevermind, just discovered #eliminate_methods! as in: result.eliminate_methods!([/Integer#times/])
rodfersou has quit [Read error: Connection reset by peer]
RegulationD has quit [Remote host closed the connection]
RegulationD has joined #ruby
juanpablo____ has quit [Ping timeout: 240 seconds]
kblake has joined #ruby
Igorshp has joined #ruby
cryptarium_ has quit [Ping timeout: 265 seconds]
cryptarium has joined #ruby
iotouch has joined #ruby
Zekka has joined #ruby
lfox has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
doodlehaus has quit [Remote host closed the connection]
Igorshp has quit [Remote host closed the connection]
Guest56741 has quit [Ping timeout: 240 seconds]
baweaver has quit [Remote host closed the connection]
asmodlol has quit [Ping timeout: 245 seconds]
zzing has quit [Ping timeout: 246 seconds]
RegulationD has quit [Read error: Connection reset by peer]
Bira has joined #ruby
Mohan__ has joined #ruby
jeramy_s has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<quazimod1>
is ruby ever getting docstrings?
RegulationD has joined #ruby
<quazimod1>
has there been much thought regards tothis
yaw has joined #ruby
<sevenseacat>
docstrings?
asmodlol has joined #ruby
oo_ has joined #ruby
<bricker>
sevenseacat: strings that are parsed as documentation
moretti has joined #ruby
cryptarium has quit [Quit: Leaving]
chipotle has quit [Read error: Connection reset by peer]
chinmay_dd has joined #ruby
bricker has quit [Quit: leaving]
asmodlol has quit [Ping timeout: 250 seconds]
asmodlol has joined #ruby
kblake has quit [Remote host closed the connection]
Cust0sL1men has quit [Ping timeout: 256 seconds]
Thrillberg has joined #ruby
chimche has quit [Quit: Leaving.]
<Papierkorb>
quazimod1: What's wrong with having those in comments?
<Thrillberg>
hi everyone
unreal_ has joined #ruby
TheHodge has quit [Quit: Connection closed for inactivity]
mary5030 has joined #ruby
unreal has quit [Ping timeout: 265 seconds]
charliesome has joined #ruby
apurcell has quit [Quit: Be back later ...]
<havenwood>
Thrillberg: hi
charliesome has quit [Client Quit]
michaeldeol has quit [Ping timeout: 264 seconds]
<Thrillberg>
I'm very new to ruby and i've got a question regarding the gmaps4rails gem. It's not displaying the map on my show page and I think it's a problem with my @hash variable. Can anyone help me?
slyv has joined #ruby
bruno- has joined #ruby
zenguy_pc has quit [Ping timeout: 264 seconds]
Guest1421 has joined #ruby
doodlehaus has joined #ruby
doodlehaus has quit [Remote host closed the connection]
byprdct has joined #ruby
cryptarium has joined #ruby
jenrzzz has joined #ruby
charliesome has joined #ruby
lidenskap has quit [Remote host closed the connection]
bruno- has quit [Ping timeout: 256 seconds]
zzing has joined #ruby
Thrillberg has quit [Quit: Thrillberg]
moretti has quit [Quit: Leaving...]
Thrillberg has joined #ruby
duderonomy has quit [Ping timeout: 276 seconds]
<havenwood>
Thrillberg: Usually #RubyOnRails is the place for Rails questions. But I don't know in your case. Show us a gist of the code?
<al2o3-cr>
yes, change the variables just an example
<havenwood>
j75: in, out, error, wait_thread
<j75>
thanks!
<j75>
this is the ticket!
narcan has joined #ruby
sevenseacat has quit [Remote host closed the connection]
sevenseacat has joined #ruby
Igorshp has joined #ruby
<j75>
popen3 seems to automatically supress the output this is very nice thanks again!
turtil has quit [Ping timeout: 244 seconds]
umby24 is now known as umby24|offline
Guest76750 has joined #ruby
<baweaver>
new hobby: corrupting Java devs at $WORK into using Scala.
_blizzy_ has joined #ruby
d0lph1n98 has joined #ruby
DerisiveLogic has quit [Remote host closed the connection]
DerisiveLogic has joined #ruby
Hijiri has quit [Quit: WeeChat 1.0.1]
pwnz0r has joined #ruby
d0lph1n98 has quit [Client Quit]
jerematic has joined #ruby
Kricir has quit [Remote host closed the connection]
swgillespie has joined #ruby
badlands has joined #ruby
braincra- has joined #ruby
crowell has quit [Remote host closed the connection]
Hirzu has joined #ruby
crowell has joined #ruby
<agent_white>
Evenin'
Igorshp has quit [Ping timeout: 245 seconds]
<j75>
evening
_blizzy_ has quit [Ping timeout: 272 seconds]
sampo has joined #ruby
<badlands>
I'm creating a command line tool, which gets installed as a rubygem and runs through an executable. How should I distribute it so that it can write it's own log files once installed? Is there a common pattern for this?
RegulationD has quit [Read error: Connection reset by peer]
<sampo>
I'm writing my first ruby program...how to do I create a 2d object array? This is what I have...
jerematic has quit [Ping timeout: 264 seconds]
<sampo>
foundation = Array.new(4, Array.new(1) { card.new(index,0) }
<sampo>
card is the class of the objects
RegulationD has joined #ruby
braincrash has quit [Ping timeout: 272 seconds]
<j75>
badlands: maybe check out Logger from the standard ruby library
crowell has quit [Remote host closed the connection]
gsd has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<al2o3-cr>
baweaver: 1 in a deck of cards ;p
<sampo>
well I'm not even trying to do that, I'm trying to establish the foundation piles first where the 'finished' stacks will go
<badlands>
thanks j75, I'm using logger, the problem is, each person's installation of the gem will have it's own log files, which means I don't add the log folder to the repositiory. But when logger tries to write to the log, the log folder doesn't exist
<baweaver>
and if you're really breaking out C extensions a lot you should probably just drop to a lower level language.
<choke>
sevenseacat i should install textual on my mac ( though i rarely use the mac )... wish xchat on linux highlighted
Hirzu has quit [Ping timeout: 256 seconds]
<baweaver>
Limechat here.
<sampo>
C is a nightmare when the scope gets big though
<al2o3-cr>
choke use weechat-curses man
<sevenseacat>
i really, really like textual. its not perfect, but its the best irc client ive ever used.
<baweaver>
That's when you drop down to Scala or Elixir
<havenn>
LimeChat here as well. But I keep hearing good things about Textual so..
<sevenseacat>
arr whats with the elixir love this week
<baweaver>
avoid xchat.com by the way, the chat is actually at xchat.org....
<baweaver>
that was fun explaining to IT
krz has joined #ruby
<baweaver>
sevenseacat: Not a fan?
<sevenseacat>
i havent tried it, but it makes me want to try it
IrishGringo has quit [Ping timeout: 256 seconds]
diegoviola has quit [Ping timeout: 256 seconds]
<baweaver>
(for of those not keen on it) Elixir is based on Erlang, which was used by Erickson to run their mobile phone network for zero downtime and massive concurrency
Hirzu has joined #ruby
diegoviola has joined #ruby
<baweaver>
Hot swap code in production type of magic
<sevenseacat>
yeah i know it uses the erlang vm, but thats about all i know lol
<baweaver>
Wasn't sure, thought I'd mention a bit for those not aware at all.
<baweaver>
BEAM ftw
<baweaver>
Erlang is actually older than Java
<baweaver>
heh
<sevenseacat>
huh, ive only heard of it the last few years
<baweaver>
Erlang is older
<baweaver>
Elixir is fairly new from Jose Valim
<baweaver>
and isn't really even a new language as much as a macro layer on top of erlang
workmad3 has joined #ruby
<al2o3-cr>
what is the oldest programming language lisp?
<baweaver>
Whatsapp, Facebook chat, and Chef core run Erlang
<baweaver>
There were some before it
<baweaver>
binary though you can hardly call it a language.
<sevenseacat>
assembler, i presume.
<choke>
erlang was what 1986-ish where-as the java project was initiated in 1991?
<al2o3-cr>
ah ok :)
<baweaver>
yeah
krz has quit [Ping timeout: 264 seconds]
<baweaver>
Lisp was 1950s late
Sawbones_ has joined #ruby
<al2o3-cr>
1950s!
<baweaver>
Assembly and Autocode were the first at 51 and 52
<baweaver>
LISP was 1958
<al2o3-cr>
wow!
<baweaver>
along with ALGOL, which you'd probably recognize more as the parent of C
<baweaver>
It's older than even RPG and COBOL
* baweaver
knows both, and hates both....
<al2o3-cr>
was B before ALGOL?
ramfjord has joined #ruby
<baweaver>
1970 or so, no
<baweaver>
69, close.
<al2o3-cr>
oki doki
hanmac1 has joined #ruby
<baweaver>
Think of Algol as A
<choke>
how about Plankalkül? The only language known to man to be created 60 years before it was first used lol
DeBot has quit [Read error: Connection reset by peer]
<al2o3-cr>
baweaver: yeah makes sense
diegoviola has quit [Ping timeout: 240 seconds]
<baweaver>
The two master parents are Algol and Lisp, everything else in general falls somewhere under them
<baweaver>
or very very close.
<baweaver>
of course you have your off branches like Prolog and friends which are entirely different paradigms altogether.
workmad3 has quit [Ping timeout: 272 seconds]
<baweaver>
Heck, Erlang is older than Perl even
<flughafen>
morgen! sevenseacat certainty shevy
<sevenseacat>
howdy
<flughafen>
ay cap'n!
<baweaver>
oh hey, names I know.
<sampo>
we had to write a cobol program that sent SQL requests to a DB2 database...the whole thing was so clunky and stupid
<choke>
erlang is just slighly older than perl ( less than a year )
<flughafen>
how are you sevenseacat
mengu has joined #ruby
mengu has joined #ruby
<baweaver>
choke: still older ;)
<baweaver>
Though a bit of AWKward timing on it
* baweaver
can't help himself sometimes
<sevenseacat>
flughafen: not bad, trucking along
<flughafen>
sevenseacat: you at work?
<sevenseacat>
aye
ascarter has joined #ruby
<baweaver>
Ah, it is work hours out that way. Almost 11 PM here.
<sevenseacat>
yep, 1.48PM here
jakolehm has joined #ruby
<choke>
that is is, it's older... i'd like to see project origin dates on both of them... release dates can be one thing -- whats the origin of the project itself
<baweaver>
Wikipedia tends to be pretty good about it
<flughafen>
i just got to work not too long ago
<baweaver>
Erlang: The first version was developed by Joe Armstrong, Robert Virding and Mike Williams in 1986.[8] It was originally a proprietary language within Ericsson, but was released as open source in 1998.
yosafbridge has quit [Ping timeout: 256 seconds]
<flughafen>
erlang? ericsson lang?
icebourg has quit []
Hirzu has quit [Ping timeout: 264 seconds]
<shevy>
hmm
<choke>
erlang is actually in reference to the danish mathematician Agner Krarup Erlang
<flughafen>
choke: that's cool!
G has joined #ruby
<baweaver>
Both actually
<flughafen>
my nick is after sir duke supersmarty fughafen
Hirzu has joined #ruby
<flughafen>
flughafen*
<penzur>
sup guys?
<baweaver>
baweaver -> b.a. weaver -> Brandon A Weaver
ascarter has quit [Client Quit]
<flughafen>
flughafen -> airport
<sevenseacat>
sevenseacat -> meow
<flughafen>
but you guys can call me mr port
<choke>
baweaver, i'd still rather work in erlang than java... 70 years later and it still reads well ( for the most part )
<baweaver>
choke: I quit my last job from having to use Java for Hadoop
goggy has quit [Ping timeout: 272 seconds]
<baweaver>
If any of you ever think that's a fun career path, make sure they're using Scala or Clojure or you'll want to jump out a window
<choke>
Only reason to learn java at all anymore is if you're building an app for android... anything else, there's always a better option ( enter ruby? )
* sevenseacat
sticks to rails
shock_one has joined #ruby
<flughafen>
baweaver: i have to work with java too. but mosty i work with python and ruby
<baweaver>
JRuby, Scala, Clojure, Frege
mengu__ has joined #ruby
<baweaver>
All compile to JVM
jenrzzz has joined #ruby
<baweaver>
meaning you can do Android in any of them just as well.
<baweaver>
Scala has a lot of tooling to it already for that purpose.
iotouch has joined #ruby
<baweaver>
On a day to day, I use any of: Ruby, Scala, Javascript, Bash, Python, Clojure
ascarter has joined #ruby
Sawbones_ has quit [Remote host closed the connection]
pwnz0r has quit [Remote host closed the connection]
<shevy>
baweaver you are a beaver, not a brandon weaver
<choke>
On any given day in the past I have used: PHP, PHP, and PHP ( JavaScript is for my front end slave )... i'm transitioning into more of a ruby world currently ( attempting to build an api for a mobile app we're doing at work )
ohaibbq has joined #ruby
<shevy>
choke YES
lechuk has joined #ruby
<baweaver>
I'd joked once on changing to using Scotty and Haskell for our APIs, or Phoenix and Elixir.
<baweaver>
Speaking of which, speed wise and websocket wise, Phoenix kills
<choke>
Don't get me started on websockets... tried getting faye websockets working for our api and it failed in a horrible fire...
<choke>
got it working in a web interface, but couldn't connect via swift or obj c so i nixed the real-time aspect for initial launch
<havenn>
choke: What are you thinking to use for APIs?
<baweaver>
SailsJS is a nifty node solution to that issue.
<baweaver>
Depending on how you connect, it can give you an autogen socket
<baweaver>
choke: I gave up on getting Ruby to play nice with sockets
<choke>
the API that it's using now is a custom framework written in PHP, on top of PHP, written in shitty PHP, utilizing shitty PHP and a mongo backend... Now i'm running rails for this new version of the api, still with a mongo backend ( mongoid ) with a little redis mixed in for good measure.... and devise for authentication, and modified slightly for token authentication
<baweaver>
Switched to using a NodeJS system for it and just ferrying stuff on Redis for a SubPub system
pwnz0r has quit [Ping timeout: 256 seconds]
ponga has quit [Remote host closed the connection]
<choke>
Yeah we may end up doing our sockets in node as well -- seems like the easy thing to do -- 'cause websockets in node are simple
Hirzu has quit [Ping timeout: 256 seconds]
<baweaver>
Depending on whether or not you want to try Elixir, Phoenix does a good job of it as well
<choke>
I'll look into them for sure
edwinvdgraaf has joined #ruby
<baweaver>
Loopback is good for cranking out a fast API
shock_one has quit [Remote host closed the connection]
diego1 is now known as diegoviola
edwinvdgraaf has quit [Read error: No route to host]
<baweaver>
One of the nifty things (and horrifying to some degree) about $WORK is that there's no language lockdown if you can justify it
fedexo has quit [Ping timeout: 265 seconds]
<baweaver>
I'm avoiding Google for the sole reason that they insist on Java, which is to me tantamount to supreme masochism.
<choke>
haven't ever heard of roda actually... though the api itself is nearly "complete" for what we need at the moment...
<havenn>
choke: It's lovely.
<choke>
just happy to get rid of the horrible php version....
j75 has quit [Ping timeout: 264 seconds]
Hijiri has joined #ruby
<baweaver>
That, and you can't walk 5 feet around here without hearing about the new hot thing
ping-pong has quit [Ping timeout: 244 seconds]
<baweaver>
...or getting a job offer at a coffee shop
<baweaver>
that happens a lot
<shevy>
how to turn "../../lib/libreadline.so.6" into absolute path?
emilkarl has joined #ruby
<shevy>
I got it via File.readlink()
<havenn>
shevy: absolute_path
gazay has quit [Read error: Connection reset by peer]
<shevy>
ah yes thanks
lessless has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<choke>
i get job offers all the time at the coffee shop... don't know when they'll get the hint that i'm not interested in serving coffee :(
<baweaver>
Heh
gazay has joined #ruby
<baweaver>
Come to the Bay Area some time
yosafbridge has joined #ruby
<baweaver>
SoMA is insane for that type of thing
<choke>
Sometime I want too -- I'm down in San Diego atm
<baweaver>
Depends on what you want to do
<baweaver>
I know enough people around if you have the skills to match.
<choke>
Ultimately, i'll quit my job and form a development house again ( had one a few years ago, then I sold it )
<baweaver>
$WORK == Sony for me right now.
<baweaver>
and I know they tend to hire a ton of people around here.
<choke>
yeah... Best 'places' i refused to work ( i turned down their offers ) were Walt Disney and TMZ -- but that's because I didn't want to move to L.A
<baweaver>
Disney sounded like a nightmare when I talked to them
jack_rabbit_ has joined #ruby
<baweaver>
Then again I have an extreme anti-java bias, so that might have an effect.
yfeldblum has quit [Ping timeout: 265 seconds]
Hirzu has quit [Ping timeout: 256 seconds]
<baweaver>
Apple uses Ruby
<baweaver>
shame, I signed my offer right before they got back to me.
<choke>
Sony vs Apple -- i'd rather work at sony ( but like java, i actually can't stand apple or their products )
<baweaver>
It's a good shop
<baweaver>
and I've made a game of poaching Java devs to Scala with a high success rate here.
charliesome has quit [Quit: zzz]
<baweaver>
My manager is ex-apple and was all types of turned off by them
<baweaver>
ironic that I'm on the PS4 DevOps team and I don't even play games.
<choke>
haha nice... I need to get into Scala a little bit -- maybe after a few years of being intimate with Ruby i'll do more languages... ( I've known basics of ruby for years -- but only started getting into it again for the last month )
Akagi201 has quit []
diegoviola has quit [Quit: WeeChat 1.1.1]
<baweaver>
If you know Ruby Enumerable and got through the basics of Learn You a Haskell you'll be fine
Mon_Ouie has quit [Ping timeout: 272 seconds]
thatslifeson has joined #ruby
jack_rabbit_ has quit [Ping timeout: 265 seconds]
<choke>
I know a little about the ruby enum... i'd still consider myself pre-entry level when it comes to ruby though
<choke>
or, as an employer ( lead dev ), if I were to apply for a job at my company right now -- I wouldn't hire myself as a ruby dev
<baweaver>
Higher order functions like map, reduce (foldL), and select are the big ones.
ping-pong has joined #ruby
thatslifeson has quit [Read error: Connection reset by peer]
thatslif_ has joined #ruby
<baweaver>
Interviews are both fun and sobering at the same time
<baweaver>
especially when you get one that can't FizzBuzz
<baweaver>
*giving interviews
edwinvdgraaf has joined #ruby
charliesome has joined #ruby
eshy has quit [Remote host closed the connection]
<choke>
I have had decent success with developers without the need for fizzbuzz...
<baweaver>
I only use it if I have doubts
Joufflu has quit [Read error: Connection reset by peer]
<baweaver>
or it's an intern
<choke>
my technique? if the name sounds foreign, usually of russian origin, i look at them closer ( i dont know why, but I seem to find more qualified candidates who are russian than anything else )
tectonic has joined #ruby
musty has joined #ruby
mengu has joined #ruby
mengu has joined #ruby
<choke>
Yeah, my job currently before I got hired -- an entry level guy actually beat me out for it initially
<ruboto>
al2o3-cr # => [1, 2, "Fizz", 4, "Buzz", "Fizz", 7, 8, "Fizz", "Buzz", 11, "Fizz", 13, 14, "FizzBuzz", 16, 17, "Fiz ...check link for more (https://eval.in/329450)
Guest56726 has joined #ruby
<choke>
got called in a week later, and i turned that entry level guy into a mid level with the quickness
<sevenseacat>
al2o3-cr: smartass :P
sohrab has quit [Quit: leaving]
rkazak has quit [Quit: Sleep.....ing....]
<al2o3-cr>
lol ;p
<choke>
yes, but can you do it in fortran?
<al2o3-cr>
pass
<choke>
.net then?
havenwood has joined #ruby
nemish_ has joined #ruby
<baweaver>
I once switched my C# assignments in College with F#
<choke>
lol
ismaelga has joined #ruby
<baweaver>
because fun, and my professor had a time of it
SOLDIERz has joined #ruby
mengu__ has quit [Ping timeout: 245 seconds]
pokui has joined #ruby
<choke>
haha
<choke>
sounds like all my math professors in college ( I suck at math )... only way I could understand it is to break down the problems into code...
bluOxigen has quit [Ping timeout: 250 seconds]
pokui has quit [Client Quit]
<choke>
so, I wrote all my homework in code... had to teach the professors how to read it so they could grade it
<choke>
and on that note: ITT Tech is crazy expensive, don't go there...
mostlybadfly has quit [Quit: Connection closed for inactivity]
go|dfish has quit [Ping timeout: 255 seconds]
nemish__ has quit [Ping timeout: 245 seconds]
postmodern has quit [Quit: Leaving]
mwlang has quit [Ping timeout: 245 seconds]
pokui has joined #ruby
al2o3-cr|bot has joined #ruby
ismaelga has quit [Ping timeout: 272 seconds]
<al2o3-cr>
lua>> for i=1,100 do; if i%3==0 and i%5==0 then;print("fizzbuzz"); elseif i%3==0 then; print("fizz");elseif i%5==0 then;print("buzz");else print(i);end;end
<al2o3-cr|bot>
1
<al2o3-cr|bot>
2
<al2o3-cr|bot>
fizz
<al2o3-cr|bot>
buzz
<al2o3-cr|bot>
4
<al2o3-cr|bot>
fizz
<al2o3-cr|bot>
7
ponga has joined #ruby
ozzloy has quit [Ping timeout: 245 seconds]
mengu has quit []
<choke>
lol, you're having too much fun with the fizzbuzz
bebijlya has quit [Ping timeout: 276 seconds]
<al2o3-cr>
i know lol
bebijlya has joined #ruby
eshy has joined #ruby
ponga has quit [Read error: Connection reset by peer]
ponga has joined #ruby
ponga has quit [Read error: No route to host]
<al2o3-cr>
pl>> for $i (1..100) { $s = ""; if (($i % 3) == 0) {$s=$s."Fizz";}; if (($i % 5) == 0) {$s=$s."Buzz";}if (length($s) == 0){$s=$s."$i";}print "$s\n";}
<al2o3-cr|bot>
1
<al2o3-cr|bot>
2
<al2o3-cr|bot>
Fizz
<al2o3-cr|bot>
4
<al2o3-cr|bot>
Buzz
<al2o3-cr|bot>
Fizz
<al2o3-cr|bot>
7
havenn has quit []
edwinvdgraaf has quit [Remote host closed the connection]
ponga has joined #ruby
<choke>
but since we're in ruby: 1.upto(100) do |i| out = nil out = out.to_s + 'Fizz' if i % 3 == 0 out = out.to_s + 'Buzz' if i % 5 == 0 puts out || i end
stoffus has joined #ruby
<al2o3-cr>
rb>> 1.upto(100) do |i| out = nil out = out.to_s + 'Fizz' if i % 3 == 0 out = out.to_s + 'Buzz' if i % 5== 0 puts out || i end
<baweaver>
flughafen: You've just given me my new favorite example of why I don't like Java
stoffus has quit [Quit: Lost terminal]
<baweaver>
that stuff is terrifyingly common
ponga has quit [Read error: No route to host]
<choke>
i've seen worse examples in my lifetime
<baweaver>
I have too, but still a good example of how ridiculous it can be
ponga has joined #ruby
<baweaver>
when under 100 characters of code works just fine
psy_ has quit [Ping timeout: 256 seconds]
colorados has joined #ruby
ponga has quit [Read error: Connection reset by peer]
panga has joined #ruby
krz has joined #ruby
rbennacer has quit [Ping timeout: 244 seconds]
<choke>
i'll agree with that
shock_one has joined #ruby
arup_r has quit [Remote host closed the connection]
ponga has joined #ruby
panga has quit [Read error: No route to host]
gizmore has joined #ruby
swgillespie has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
gizmore has quit [Changing host]
gizmore has joined #ruby
<flughafen>
dont' get me started!
<choke>
and, because this fizzbuzz session just wouldn't be complete without it... here we go in lisp:
<choke>
(defun fizzbuzz (n)(when ( n 0) (fizzbuzz (- n 1)) (format t "~a~%" (if (= (mod n 3) 0) (if (= (mod n 5) 0) "FizzBuzz" "Fizz")(if (= (mod n 5) 0) "Buzz" n)))))
jph98 has joined #ruby
Igorshp has joined #ruby
ponga has quit [Read error: No route to host]
ta has quit [Remote host closed the connection]
kith has quit [Read error: Connection timed out]
shock_one has quit [Remote host closed the connection]
ponga has joined #ruby
ta has joined #ruby
<choke>
I think with that we've covered all the languages that matter ( note that none of us posted php code )
arup_r has joined #ruby
kith has joined #ruby
<flughafen>
here is it manually: 1: 2: 3: Buzz 4: 5: Fizz 6: Buzz.... i can go on. But I don't want to make it seem like I'm showing off how smart I am.
<sevenseacat>
i sense a new website like 99bottlesofbeer.net
<pontiki>
colorados: i can't parse this: "< colorados> u a sranie schoolboys"
<wasamasa>
^
ponga has quit [Read error: No route to host]
ponga has joined #ruby
<colorados>
sraniy = beginners from belarusian
charliesome has quit [Quit: zzz]
ponga has quit [Read error: Connection reset by peer]
ponga has joined #ruby
platzhirsch has joined #ruby
<wasamasa>
english only please
<adaedra>
oui
<pontiki>
non!
<certainty>
ja
<adaedra>
Vielleicht
<toertore>
hånstaura
<colorados>
wasamasa, ok ipedik
* wasamasa
rolls eyes
ponga has quit [Read error: No route to host]
<certainty>
xD
<certainty>
ruby only please
<pontiki>
you insult my gravitas
ponga has joined #ruby
<adaedra>
toertore: Vad?
ponga has quit [Read error: No route to host]
dorei has joined #ruby
ponga has joined #ruby
<colorados>
we a russians and we are very clear
<colorados>
and cute
<pontiki>
no, your vodka is clear. you are as unclear as a wall with no windows.
<adaedra>
Дa
ponga has quit [Read error: No route to host]
<colorados>
in near future we develop new ptoton computer
ponga has joined #ruby
* workmad3
is turning on his troll detector
<adaedra>
took you time
<pontiki>
don't workmad3 -- it'll overload
iotouch has quit [Ping timeout: 250 seconds]
timonv1 has joined #ruby
<workmad3>
AAAAAAAAHHH!!!!
<sevenseacat>
lol
<workmad3>
so... much... troll!!!
moeabdol has joined #ruby
<certainty>
xD
<pontiki>
quick! reverse the polarity!!
* workmad3
breaths
<adaedra>
polarity.reverse
ponga has quit [Read error: Connection reset by peer]
panga has joined #ruby
yeticry has quit [Ping timeout: 276 seconds]
<adaedra>
panga: fix your connection
<colorados>
haha, u a so funny , sranie pediki
iotouch has joined #ruby
charliesome has joined #ruby
SOLDIERz has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
panga has quit [Read error: Connection reset by peer]
ponga has joined #ruby
yeticry has joined #ruby
<colorados>
u should learn and investigate crystal instead flooding here
iteratorP has quit [Remote host closed the connection]
<pontiki>
you should stop telling people what they should do
<colorados>
i give good tips
<adaedra>
just the tip.
<pontiki>
i give 20%
aegle has quit [Quit: Leaving]
fabrice31 has quit [Remote host closed the connection]
panga has joined #ruby
ponga has quit [Read error: Connection reset by peer]
<wasamasa>
I give 0%
<pontiki>
cheap
yaw has joined #ruby
<colorados>
we will cooperate with china and will create cool things
yaw has quit [Max SendQ exceeded]
panga has quit [Read error: No route to host]
yaw has joined #ruby
ponga has joined #ruby
yaw has quit [Max SendQ exceeded]
<pontiki>
and the band played on
yaw has joined #ruby
yaw has quit [Max SendQ exceeded]
yaw has joined #ruby
kyrylo_ has joined #ruby
yaw has quit [Max SendQ exceeded]
yeticry has quit [Ping timeout: 256 seconds]
yaw has joined #ruby
yeticry has joined #ruby
kyrylo has quit [Ping timeout: 255 seconds]
leafybasil has quit []
hs366 has joined #ruby
sameerynho has quit [Ping timeout: 272 seconds]
fella5s has joined #ruby
gkra has quit [Ping timeout: 250 seconds]
<colorados>
eu union should be divorced from each other
<colorados>
after that you become stronger
gkra has joined #ruby
<agent_white>
colorados: Are you in my state?
* dorei
votes colorados for president
Tomasso has joined #ruby
<colorados>
what state?
<agent_white>
Colorado
<colorados>
nop
<agent_white>
We didn't give you that name. Give it back.
<colorados>
colorados = new generation of rusian grren people
<agent_white>
And you can't come to my birthday.
ndrei has quit [Ping timeout: 255 seconds]
oo_ has quit [Remote host closed the connection]
<agent_white>
Coloradoans = new generation of people who smoke the gren
<agent_white>
green*
<pontiki>
can i come your birthday?
edwinvdgraaf has quit [Remote host closed the connection]
<agent_white>
pontiki: You are on the VIP list. :D
<pontiki>
come to your birthday*
<pontiki>
lol
<pontiki>
that would be kinda fun
sameerynho has joined #ruby
<Tomasso>
I have the following code !!((str.size>=12) and (str.size < 14) and (str.match /[a-z]{1,}/) and (str.match /\d{1,}/)) --> How do I turn this into a regex ? I don't find the way using lookarounds
<pontiki>
tour the country going to #rubyist's birthdays
<agent_white>
!!!
<Tomasso>
agent_white: !! forces the expression to either return true or false
<agent_white>
I got dibs on late February in Colorado.
yeticry has quit [Ping timeout: 245 seconds]
<pontiki>
Tomasso: while i'm sure you could turn that into a single regexp, i think what you've got is actually more understandable
<agent_white>
Tomasso: I thought you were a bot. !!! forces the expression to contain excitement.
tvw has quit []
<colorados>
green russians colorados
fabrice31 has joined #ruby
<adaedra>
I thought russians were red
yeticry has joined #ruby
<Tomasso>
yeah, but my issue is that i need to convert to regex since it should be pased as parameter to my other method
<colorados>
we a red when we end sex
rbennacer has joined #ruby
<colorados>
(
doodlehaus has joined #ruby
<colorados>
now we a green
<agent_white>
colorados: No, now you're trying too hard.
<adaedra>
Tomasso: You just want to check that it has at least one letter and one number and be between 12 or 13 chars long ?
Rickmasta has joined #ruby
<Tomasso>
adaedra: yes, sample strings could be 22e80f14c730c e0cf0e818e638 , and the following 0000000000000 matches when it shouldnt , so needs to be from 12 to 13 chars in length and contain letters and numbers ]
Affix has quit [Excess Flood]
bartj3 has quit [Ping timeout: 272 seconds]
Affix has joined #ruby
<adaedra>
not sure it could be regexized easily
Affix is now known as Guest64256
railsFor_ has joined #ruby
<pontiki>
Tomasso: have you considered making it a proc ?
rbennacer has quit [Ping timeout: 272 seconds]
<Tomasso>
if i used the ruby code version, i would need to search for that pattern in a huge text.. separate all into words and run the Proc in each of them
railsForDaiz has quit [Ping timeout: 265 seconds]
bartj3 has joined #ruby
al2o3-cr has joined #ruby
Zai00 has quit [Quit: Zai00]
Peetooshock has joined #ruby
Peetooshock has quit [Changing host]
Peetooshock has joined #ruby
<Tomasso>
pontiki: yes , i think i will need to do that scan full text for those strings.. or should be nice if something like gsub support receiving a boolean Proc and replace the match by something else, such as <b>string</b>
narcan has joined #ruby
<adaedra>
you can try to match on /[a-z0-9]{13,14}/ and check on these matches to reduce
senayar has quit [Remote host closed the connection]
ponga has joined #ruby
jenrzzz has joined #ruby
ponga has quit [Read error: No route to host]
jottr has joined #ruby
<Tomasso>
apeiros: hey that seems to work very good (?=.*\d)(?=.*[a-z]).{12,13} # you put the dot before {12,13} because positive lookbefores do not represent characters
ponga has joined #ruby
<Tomasso>
thats great
<Tomasso>
Thanks xD
NinjaOps has joined #ruby
ponga has quit [Read error: Connection reset by peer]
<apeiros>
it works by having /\A.{12,13}\z/ test the length. and (?=.*\d) tests for presence of a digit, and (?=.*[a-z]) tests for presence of [a-z]
panga has joined #ruby
atom3_ has quit [Ping timeout: 276 seconds]
sevenseacat has quit [Quit: Me dun like you no more.]
panga has quit [Read error: Connection reset by peer]
vtunka has joined #ruby
jenrzzz has quit [Ping timeout: 240 seconds]
martinbmadsen has quit [Ping timeout: 272 seconds]
ponga has joined #ruby
juanpablo____ has joined #ruby
arup_r has quit [Ping timeout: 255 seconds]
iotouch has quit [Quit: This computer has gone to sleep]
ponga has quit [Read error: No route to host]
ponga has joined #ruby
arup_r has joined #ruby
ndrei has joined #ruby
ponga has quit [Read error: No route to host]
lessless has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
Rickmasta has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
ponga has joined #ruby
duncannz has quit [Ping timeout: 256 seconds]
banister has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
arup_r_ has joined #ruby
juanpablo____ has quit [Ping timeout: 246 seconds]
ponga has quit [Read error: No route to host]
ponga has joined #ruby
moeabdol has joined #ruby
ponga has quit [Read error: Connection reset by peer]
serrador has left #ruby [#ruby]
ponga has joined #ruby
lidenskap has joined #ruby
arup_r has quit [Ping timeout: 272 seconds]
banister has joined #ruby
ponga has quit [Read error: No route to host]
iotouch has joined #ruby
chthon has quit [Remote host closed the connection]
ponga has joined #ruby
Hirzu_ has joined #ruby
ponga has quit [Read error: No route to host]
ponga has joined #ruby
SOLDIERz has joined #ruby
Papierkorb_ has joined #ruby
ponga has quit [Read error: Connection reset by peer]
lidenskap has quit [Ping timeout: 264 seconds]
Hirzu has quit [Ping timeout: 264 seconds]
ponga has joined #ruby
roolo has joined #ruby
ponga has quit [Read error: No route to host]
arup_r_ has quit [Read error: Connection reset by peer]
ponga has joined #ruby
sgambino has quit [Ping timeout: 246 seconds]
ponga has quit [Read error: No route to host]
lolmaus has joined #ruby
ponga has joined #ruby
quimrstorres has quit [Remote host closed the connection]
ponga has quit [Read error: Connection reset by peer]
ponga has joined #ruby
_ixti_ has joined #ruby
emilkarl has joined #ruby
sigurding has joined #ruby
Hounddog has quit [Ping timeout: 246 seconds]
ponga has quit [Read error: No route to host]
ponga has joined #ruby
ponga has quit [Read error: Connection reset by peer]
panga has joined #ruby
panga has quit [Read error: Connection reset by peer]
ponga has joined #ruby
yh has quit [Ping timeout: 256 seconds]
kyrylo_ is now known as kyrylo
ponga has quit [Read error: Connection reset by peer]
panga has joined #ruby
greenbagels has quit [Quit: Leaving]
gazay has quit [Quit: gazay]
ArchRogem has joined #ruby
panga has quit [Read error: No route to host]
Zai00 has joined #ruby
atom3 has joined #ruby
yh has joined #ruby
ponga has joined #ruby
Mon_Ouie has joined #ruby
ponga has quit [Read error: No route to host]
panga has joined #ruby
wolflee_________ has quit [Remote host closed the connection]
AlphaAtom has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
wolflee_________ has joined #ruby
millerti has joined #ruby
marens has joined #ruby
panga has quit [Read error: No route to host]
ponga has joined #ruby
ponga has quit [Read error: No route to host]
ponga has joined #ruby
Akagi201 has quit [Read error: Connection reset by peer]
ponga has quit [Read error: No route to host]
ponga has joined #ruby
krz has quit [Ping timeout: 272 seconds]
scripore has quit [Quit: This computer has gone to sleep]
ponga has quit [Read error: No route to host]
qwertme has joined #ruby
ponga has joined #ruby
vire has quit [Remote host closed the connection]
railsFor_ has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
al2o3-cr has quit [Quit: WeeChat 1.1.1]
ponga has quit [Read error: No route to host]
Akagi201 has joined #ruby
ponga has joined #ruby
ponga has quit [Read error: No route to host]
ponga has joined #ruby
ponga has quit [Read error: Connection reset by peer]
panga has joined #ruby
panga has quit [Read error: No route to host]
sdothum has joined #ruby
ponga has joined #ruby
ponga has quit [Read error: No route to host]
fella5s has quit [Read error: Connection reset by peer]
jerematic has joined #ruby
ponga has joined #ruby
jottr has quit [Ping timeout: 250 seconds]
ponga has quit [Read error: No route to host]
ponga has joined #ruby
al2o3-cr has joined #ruby
segfalt has joined #ruby
ponga has quit [Read error: Connection reset by peer]
ponga has joined #ruby
jerematic has quit [Ping timeout: 240 seconds]
jottr has joined #ruby
Leef_ has quit [Ping timeout: 252 seconds]
ponga has quit [Read error: No route to host]
hmnhf_ has joined #ruby
ponga has joined #ruby
hmnhf_ has quit [Client Quit]
jerius has joined #ruby
ponga has quit [Read error: No route to host]
ponga has joined #ruby
ponga has quit [Read error: Connection reset by peer]
panga has joined #ruby
lxsameer_ has joined #ruby
panga has quit [Read error: No route to host]
bruno- has joined #ruby
bruno- is now known as Guest68446
vtunka has quit [Quit: Leaving]
doodlehaus has quit [Remote host closed the connection]
sameerynho has quit [Ping timeout: 264 seconds]
quimrstorres has joined #ruby
mengu has joined #ruby
livathinos has joined #ruby
Shidash has quit [Remote host closed the connection]
kp666 has quit [Remote host closed the connection]
<shevy>
waaaa
<shevy>
you killed ponga!
qwertme has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<flughafen>
you bastard!
<adaedra>
clam down
Hounddog has joined #ruby
DynamicMetaFlow has quit [Remote host closed the connection]
Guest14902 has quit [Ping timeout: 255 seconds]
ntln has quit [Ping timeout: 265 seconds]
fella5s has joined #ruby
Leef_ has joined #ruby
Hounddog has quit [Ping timeout: 264 seconds]
Hounddog has joined #ruby
Mohan has joined #ruby
senayar has joined #ruby
Mohan is now known as Guest83595
_blizzy_ has quit [Ping timeout: 265 seconds]
jimms has joined #ruby
gazay has joined #ruby
ldnunes has joined #ruby
joonty has quit [Quit: joonty]
sevenseacat has joined #ruby
chinmay_dd has joined #ruby
chimche has joined #ruby
doodlehaus has joined #ruby
cryptarium has quit [Ping timeout: 264 seconds]
cryptarium has joined #ruby
<shevy>
>> module Foo; end; Foo.include?
<ruboto>
shevy # => wrong number of arguments (0 for 1) (ArgumentError) ...check link for more (https://eval.in/330286)
<shevy>
damn
<shevy>
there is a class method called include?
doodlehaus has quit [Remote host closed the connection]
<bmurt>
anyone able to recommend a gem for parsing log files, particularly Asterisk, or just in general
<bmurt>
i could grep the shit out of the log, but wasnt sure if there was a better solution
paulcsmith has quit [Quit: Be back later ...]
yh has joined #ruby
kaspernj has quit [Ping timeout: 256 seconds]
jottr has joined #ruby
mtakkman has quit [Ping timeout: 244 seconds]
jordanm has quit [Ping timeout: 265 seconds]
quimrstorres has joined #ruby
werelivinginthef has joined #ruby
jordanm has joined #ruby
<wasamasa>
using binary logs
jottr has quit [Ping timeout: 272 seconds]
<wasamasa>
these come with dedicated utilities for working on them
Channel6 has joined #ruby
havenwood has joined #ruby
enebo has joined #ruby
ta has quit [Remote host closed the connection]
scripore has quit [Quit: This computer has gone to sleep]
scripore has joined #ruby
nettoweb has joined #ruby
kaspernj has joined #ruby
robbyoconnor has quit [Ping timeout: 240 seconds]
iotouch has quit [Quit: 离开]
crazydiamond has quit [Ping timeout: 252 seconds]
bigmac has joined #ruby
scripore has quit [Quit: This computer has gone to sleep]
Zamerick_ has quit [Ping timeout: 272 seconds]
pwattste has joined #ruby
rbennacer has joined #ruby
insidious has joined #ruby
juanpablo____ has joined #ruby
scripore has joined #ruby
delianides has joined #ruby
ismaelga has quit [Remote host closed the connection]
arup_r has joined #ruby
ismaelga has joined #ruby
moeabdol has joined #ruby
mrmargolis has joined #ruby
paulcsmith has joined #ruby
xxneolithicxx has quit [Ping timeout: 255 seconds]
ismaelga has quit [Remote host closed the connection]
yaw has quit [Ping timeout: 250 seconds]
duggiefresh has joined #ruby
casadei_ has joined #ruby
juanpablo____ has quit [Ping timeout: 265 seconds]
rbennacer has quit [Ping timeout: 272 seconds]
senayar has quit [Remote host closed the connection]
workmad3 has joined #ruby
jordanm has quit [Ping timeout: 276 seconds]
tonyhb has quit [Quit: peace]
mengu has quit [Remote host closed the connection]
Channel6 has quit [Quit: Leaving]
iasoon has joined #ruby
rbennacer has joined #ruby
Soda has joined #ruby
pwattste has quit [Remote host closed the connection]
tonyhb has joined #ruby
SOLDIERz has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
jordanm has joined #ruby
jenrzzz has joined #ruby
SouL_|_ has joined #ruby
Shidash has joined #ruby
Cust0sL1men has quit [Quit: Leaving]
jenrzzz has quit [Ping timeout: 245 seconds]
emilkarl has quit [Quit: emilkarl]
senayar has joined #ruby
rdar has joined #ruby
arup_r has quit [Ping timeout: 265 seconds]
surs has quit [Quit: WeeChat 0.3.7]
SOLDIERz has joined #ruby
surs has joined #ruby
<dorei>
bmurt: maybe lgostash could be useful
<dorei>
logstash even
astrobunny has joined #ruby
Akagi201 has joined #ruby
surs has quit [Changing host]
surs has joined #ruby
fabrice31 has quit [Remote host closed the connection]
fabrice31 has joined #ruby
Guest1421 has joined #ruby
AlphaAtom has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
RegulationD has joined #ruby
quimrstorres has quit [Remote host closed the connection]
quazimodo has quit [Ping timeout: 256 seconds]
juanpablo____ has joined #ruby
scripore has quit [Quit: This computer has gone to sleep]
scripore has joined #ruby
yh has quit [Ping timeout: 256 seconds]
emilkarl has joined #ruby
antgel has quit [Ping timeout: 264 seconds]
EagleDelta has joined #ruby
astrobunny has quit [Remote host closed the connection]
nemesit|znc has joined #ruby
antgel has joined #ruby
AlphaAtom has joined #ruby
SOLDIERz has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
AlphaAtom has quit [Max SendQ exceeded]
sepp2k has joined #ruby
Kricir has joined #ruby
lxsameer_ has quit [Quit: Leaving]
nateberkopec has joined #ruby
Rickmasta has joined #ruby
n008f4g_ has quit [Ping timeout: 256 seconds]
mary5030 has joined #ruby
dfinninger has joined #ruby
quimrstorres has joined #ruby
mary5030 has quit [Remote host closed the connection]
qwertme has joined #ruby
mary5030 has joined #ruby
shellfu_afk has joined #ruby
quimrstorres has quit [Read error: Connection reset by peer]
AlphaAtom has joined #ruby
quimrstorres has joined #ruby
shellfu_afk is now known as shellfu
gambl0re has joined #ruby
Mia has joined #ruby
Mia has joined #ruby
dfinninger has quit [Remote host closed the connection]
Axy has quit [Ping timeout: 256 seconds]
agent_white has quit [Read error: Connection reset by peer]
mitchellhenke has joined #ruby
Mia has quit [Read error: Connection reset by peer]
jobewan has joined #ruby
agent_white has joined #ruby
ekaleido has joined #ruby
jottr has joined #ruby
arcanez has left #ruby [#ruby]
lavros has joined #ruby
agent_white has quit [Read error: Connection reset by peer]
agent_white has joined #ruby
agent_white has quit [Read error: Connection reset by peer]
thatslifeson has joined #ruby
agent_white has joined #ruby
<shevy>
flughafen lol
jottr has quit [Ping timeout: 256 seconds]
mjuszczak has quit []
astrobunny has joined #ruby
emilkarl has quit [Quit: emilkarl]
eichenwald has joined #ruby
axl_ has joined #ruby
Dopagod has joined #ruby
agent_white has quit [Read error: Connection reset by peer]
agent_white has joined #ruby
agent_white has quit [Read error: Connection reset by peer]
Dopagod has quit [Client Quit]
RegulationD has quit []
Soda has quit [Remote host closed the connection]
agent_white has joined #ruby
rdar has quit [Ping timeout: 264 seconds]
RegulationD has joined #ruby
CloCkWeRX has joined #ruby
Dopagod has joined #ruby
AlphaAtom has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
ismaelga has joined #ruby
agent_white has quit [Read error: Connection reset by peer]
justAnon has joined #ruby
agent_white has joined #ruby
agarie has joined #ruby
justAnon has quit [Remote host closed the connection]
platzhirsch has left #ruby [#ruby]
MatthewsFace[SEA has joined #ruby
Cust0sL1men has joined #ruby
sevenseacat has quit [Quit: Me dun like you no more.]
ChoiKyuSang has quit [Quit: AdiIRC is updating to v1.9.7 Beta Build (2015/05/06)32 Bit]
narcan has quit [Quit: -[AppDelegate installMalware]: unrecognized selector sent to instance 0x156109c0]
yh has joined #ruby
quimrstorres has quit [Remote host closed the connection]
lessless has quit [Ping timeout: 272 seconds]
hanmac1 has quit [Quit: Leaving.]
ChoiKyuSang has joined #ruby
agent_white has quit [Read error: Connection reset by peer]
mdw has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
AlphaAtom has joined #ruby
agent_white has joined #ruby
agent_white has quit [Read error: Connection reset by peer]
tjohnson has joined #ruby
AlphaAtom has quit [Max SendQ exceeded]
agent_white has joined #ruby
agent_white has quit [Read error: Connection reset by peer]
scripore has quit [Quit: This computer has gone to sleep]
agent_white has joined #ruby
MatthewsFace[SEA has quit [Remote host closed the connection]
scripore has joined #ruby
agent_white has quit [Read error: Connection reset by peer]
agent_white has joined #ruby
agent_white has quit [Read error: Connection reset by peer]
AlphaAtom has joined #ruby
quimrstorres has joined #ruby
agent_white has joined #ruby
woodruffw has quit [Quit: And then he took off.]
quazimod1 has joined #ruby
quimrstorres has quit [Remote host closed the connection]
yh has quit [Ping timeout: 256 seconds]
quimrstorres has joined #ruby
riotjone_ has quit [Remote host closed the connection]
agent_white has quit [Read error: Connection reset by peer]
agent_white has joined #ruby
agent_white has quit [Read error: Connection reset by peer]
agent_white has joined #ruby
speakingcode has quit [Ping timeout: 255 seconds]
agent_white has quit [Read error: Connection reset by peer]
agent_white has joined #ruby
robbyoconnor has joined #ruby
ndrei has joined #ruby
snath has quit [Ping timeout: 265 seconds]
segfalt has joined #ruby
vtunka has quit [Quit: Leaving]
agent_white has quit [Read error: Connection reset by peer]
tkuchiki has quit [Remote host closed the connection]
agent_white has joined #ruby
tkuchiki has joined #ruby
agent_white has quit [Read error: Connection reset by peer]
agent_white has joined #ruby
tkuchiki has quit [Remote host closed the connection]
_blizzy_ has joined #ruby
<dudedudeman>
can any one recommend resources on setting up VIM for ruby?
Hirzu has quit [Read error: Connection reset by peer]
keltim has joined #ruby
<adaedra>
what do you mean, setting it up
thatslifeson has quit [Remote host closed the connection]
<adaedra>
vim has built-in support for ruby
<keltim>
I am forced to use ruby 1.8 for something, I'm trying to find out what version of gem is ok to use with it, can I use the latest? (not a dev, a sysadmin)
<adaedra>
depends on the gem
agent_white has quit [Read error: Connection reset by peer]
<pontiki>
you shouldn't use any editor but the one i like!!
<adaedra>
have you looked in your package manager if it has what you want? Some distributions have gems installable like that, which are guaranteed to be compatible in your case, keltim
agent_white has joined #ruby
kraljev11 has joined #ruby
<keltim>
right now it is at 1.4.2. There are a lot of gems involved. Is it ok to stick with that? I am thinking there may be security issues
<shevy>
keltim do you mean "rubygems" version?
_blizzy_ has quit [Ping timeout: 265 seconds]
<keltim>
shevy, yes, excuse me
<adaedra>
keltim: it's gem-by-gem then
kaspernj has quit [Remote host closed the connection]
<adaedra>
ah, rubygems
<shevy>
in most cases, the rubygems team tries to remain compatible
umgrosscol has joined #ruby
<shevy>
problem is that the different ruby versions use different syntax :\
b4tm4n has joined #ruby
<b4tm4n>
i'm gettting an error in my sidekiq log "undefined method `channel'". I think this may be related to using a systemd script to start sidekiq and not starting from the right location. Am I on the right track?
speakingcode has joined #ruby
<dudedudeman>
ah, sorry. I should clarify. I know VIM has built in support for ruby, but I guess i'm looking for some things that could help stream line it a little bit, and have some solid syntax highlighting for ruby
<pontiki>
is anyone still trying to remain compatible with 1.8, though?
<shevy>
but I think you could make an upgrade, check if things work out, and if not downgrade again. I am not sure how this is done precisely, the guys on #rubygems should know though. drbrain is one of the 4 original creators of rubygems there
<dudedudeman>
currently, i'm just staring at black and white text and i hate it
<adaedra>
wut
<adaedra>
:syntax on
<adaedra>
^ dudedudeman
<keltim>
pontiki, it's an orphaned application
<pontiki>
keltim: so is ruby 1.8
<keltim>
yet it still has to run while someone decides what to do with it (one of those)
AlphaAtom has quit [Remote host closed the connection]
<dudedudeman>
adaedra: this is great, thank you
browncow has joined #ruby
<keltim>
adaedra, why gem by gem? how does one determine that?
agent_white has quit [Read error: Connection reset by peer]
<dudedudeman>
i have my old vimrc from when i was diving in to python... but i want to streamline it a bit
<browncow>
join #sabremetrics
agent_white has joined #ruby
<adaedra>
dudedudeman: personally, I like vim-endwise. Also, if you want it, syntastic makes automatic syntax error reporting in vim
<keltim>
individual gems have a dependency on the rubygems version? that sounds insane to me ...
<dudedudeman>
i understood some of those words...
<adaedra>
no
najmi has joined #ruby
<adaedra>
dudedudeman: those are vim plugins, look them up in Google
<adaedra>
:)
<dudedudeman>
:P i'm already on my way
<adaedra>
keltim: I mean, security updates, 1.8 maintenance, etc., are gem-by-gem. Each developper decides what he does
yh has joined #ruby
<dudedudeman>
Thanks for those. It's just nice to know what ruby dudes are using for VIM
Rickmasta has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<dudedudeman>
i've done some youtubing and there's some great videos, but some of them aren't very well done and are hard to follow along with
<adaedra>
And, but not ruby-related, vim-airline is great
chipotle has quit [Quit: cheerio]
The_Phoenix has joined #ruby
The_Phoenix has quit [Max SendQ exceeded]
agent_white has quit [Read error: Connection reset by peer]
suppp has joined #ruby
<suppp>
hi guys, does anybody here use capistrano with 2 different ssh keys, one for sshing to the server, and one for git ? or does anyone know where I could find a clear api docs for ssh_options ?
agent_white has joined #ruby
<keltim>
adaedra, oh I knew that
The_Phoenix has joined #ruby
<keltim>
adaedra, but is it ok to use latest rubygems with 1.8? I don't see any restriction noted anywhere ...
The_Phoenix has quit [Max SendQ exceeded]
<adaedra>
Never tried
rocknrollmarc has joined #ruby
<adaedra>
I would have used the one provided by your system
<adaedra>
But I don't know if security fixes are backported
robbyoconnor has quit [Read error: Connection reset by peer]
yh has quit [Ping timeout: 256 seconds]
banister has joined #ruby
banister has quit [Max SendQ exceeded]
The_Phoenix has joined #ruby
banister has joined #ruby
The_Phoenix has quit [Max SendQ exceeded]
fabrice31 has quit [Remote host closed the connection]
Xiti` has quit [Quit: Xiti`]
The_Phoenix has joined #ruby
Xiti has joined #ruby
rippa has joined #ruby
v0n has joined #ruby
agent_white has quit [Read error: Connection reset by peer]
The_Phoenix has quit [Max SendQ exceeded]
agent_white has joined #ruby
rhllor has joined #ruby
The_Phoenix has joined #ruby
roolo has quit [Read error: Connection reset by peer]
Sawbones_ has joined #ruby
roolo has joined #ruby
gagrio_ has quit [Ping timeout: 264 seconds]
Pumukel has quit [Ping timeout: 265 seconds]
momomomomo has joined #ruby
scripore has quit [Quit: This computer has gone to sleep]
lidenskap has joined #ruby
maletor has joined #ruby
dfinninger has joined #ruby
Zen-Zen has joined #ruby
agent_white has quit [Read error: Connection reset by peer]
Xiti has quit [Read error: Connection reset by peer]
Xiti has joined #ruby
thatslifeson has joined #ruby
kraljev11 has quit [Ping timeout: 256 seconds]
lidenskap has quit [Ping timeout: 246 seconds]
snath has joined #ruby
scripore has joined #ruby
neonalpine has joined #ruby
that1guy has joined #ruby
Sawbones_ has quit [Remote host closed the connection]
<shevy>
keltim the dependency on a rubygem version is optional; some gems have, some gems don't. normally, the dependency is on a specific ruby version itself
jottr has joined #ruby
<shevy>
I really think there is a safe way to test an upgrade, then downgrade alone though. Others must have been in a similar situation before. Ask drbrain on #rubygems if there is someone who knows it, it'll be him
<shevy>
or, you could perhaps make a "cp -rv" from all the old ruby stuff
msgodf has quit [Remote host closed the connection]
uri_ has joined #ruby
<pontiki>
you can't go directly to that url, you have to follow from the path in the application to it
gluten_hell_ has quit [Ping timeout: 245 seconds]
livathinos has quit []
jottr has quit [Ping timeout: 246 seconds]
yh has joined #ruby
Hirzu has joined #ruby
hmsimha has joined #ruby
astrobunny has quit [Remote host closed the connection]
laurentide__ has quit [Quit: Leaving]
jimms has joined #ruby
<atmosx>
Hello, I want to make a service that indexes a shitty Java application and produces a PDF. I'm thinking of rails (although I'm flirting with the idea of a sinatra single-page app) + sidekiq + nokogiri. Any other ideas?
rdar has joined #ruby
<pontiki>
gambl0re: i've never used railsforzombies, so i don't know what to expect. but i'd expect more than what's happening there
kblake has joined #ruby
fella5s has quit [Ping timeout: 256 seconds]
Hirzu_ has joined #ruby
banister has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
scripore has quit [Quit: This computer has gone to sleep]
sinkensabe has quit [Remote host closed the connection]
speakingcode has quit [Ping timeout: 276 seconds]
Hirzu has quit [Ping timeout: 246 seconds]
<dudedudeman>
gambl0re: definitely hit up the #rubyonrails channel for more help with that
haxrbyte has joined #ruby
robertodecurnex has joined #ruby
gsd has joined #ruby
gsd has quit [Max SendQ exceeded]
<gambl0re>
seems like you guys cant even load the page....i can load the page but when i type my answer it doesnt seem to register.
scripore has joined #ruby
haxrbyte_ has quit [Remote host closed the connection]
scripore has quit [Client Quit]
<gambl0re>
doesnt matter..
senayar has quit []
<gambl0re>
dudeman, i forgot to ask you. when did you first start the odinproject.
gsd has joined #ruby
mtakkman has joined #ruby
geekbri has joined #ruby
antgel has quit [Ping timeout: 272 seconds]
antgel has joined #ruby
unreal_ is now known as unreal
pwattste has joined #ruby
thatslifeson has quit [Remote host closed the connection]
snockerton has joined #ruby
msgodf has joined #ruby
pdoherty has joined #ruby
<shevy>
atmosx sounds painful!
Akagi201 has quit [Remote host closed the connection]
<shevy>
either way ;-)
Porfa has joined #ruby
<Porfa>
ehye
hmsimha has quit [Ping timeout: 256 seconds]
Rollabunna has quit [Read error: Connection reset by peer]
<Porfa>
i seem to be failing at some really simple thing
<atmosx>
shevy: the nokogiri part is painful, scrapping is painful :-)
<Porfa>
and i need the masters expertise
<shevy>
gambl0re it's not just a dudeman... it is the dudedudeman, a double dude. a dudette
Xiti is now known as Pixi
Pixi is now known as Pixi`
Pixi` is now known as Xiti
<shevy>
it's like the father of all Lebowskis
Tomasso has quit [Quit: Page closed]
<pontiki>
a dude for all seasons
speakingcode has joined #ruby
<havenwood>
atmosx: Roda! ;)
<atmosx>
havenwood: was ist das
<atmosx>
?
Cust0sL1men has quit [Quit: Leaving]
ahmetkapikiran has joined #ruby
<shevy>
Roda? that's the thing that the capoeira dudes do
<havenwood>
atmosx: It's like a Sinatra but instead of Regexping routes it does a routing tree. It's also really good about not polluting the environment and has a fantastic plugin system.
mrmargolis has quit [Remote host closed the connection]
AlphaAtom has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<Porfa>
shevy: if i run each line of my script on rib, (except the insert to dabase) every line outputs what's expected to be outputted
failshell has joined #ruby
<Porfa>
when i do "dat_forretas= Nokogiri::HTML(open(url_forretas))" and press enter, irb outputs the elements and all the nokogiri stuff. so it can't be nil
<shevy>
Porfa I recommend to put this into a .rb file
<shevy>
irb can be strange sometimes
mrmargol_ has joined #ruby
<shevy>
ok good
<shevy>
then you know that this line is ok
<shevy>
so it must happen elsewhere
<shevy>
put it into a .rb file, you get the line number there
<shevy>
where the error happens
GaryOak_ has joined #ruby
<Porfa>
ok
<shevy>
you can use begin/rescue to rescue errors by the way
slash_nick has joined #ruby
<shevy>
For example:
DeBot has quit [Ping timeout: 272 seconds]
robbyoconnor has joined #ruby
<shevy>
begin; code_here; rescue NoMethodError; end
<shevy>
that way you can rescue those errors. But the error must happen somewhere else, you must make one wrong assumption in your current code. You have to find that part, and change that line
<shevy>
your portuguese variable names confuse me ;-)
<mwlang>
I’m trying to use ruby-prof to narrow down reporting of where my app’s spending the bulk of it’s time.
thatslifeson has quit [Remote host closed the connection]
Rollabunna has joined #ruby
<mwlang>
at first, I started/stopped the reporting at the main entry point of the app…then as I drilled down I discovered where 85% of my time’s spent and I tried moving the start/stop from the main entry point to the method in the library that’s consuming the 85% of processing time. Using RubyProf.resume rescue RubyProf.start …. RubyProf.pause within that method.
Macaveli has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<shevy>
Porfa ok that is better now
<shevy>
sql_forretas.rb:26:in `block in <main>': undefined method `[]' for nil:NilClass (NoMethodError)
<mwlang>
But oddly, the profiler is still capturing pretty much all of the app and not just what’s happening within that method and it’s sub-routine calls.
<shevy>
^^^ that means that you do not have a ['href'] element there
<shevy>
my suggestion is: break that line, into two lines
<shevy>
ensure that the part before the [] works
<shevy>
remember, you can use: p object to get more information, or: pp object (if you do require 'pp' at the top of the file)
<shevy>
so you could do:
<shevy>
pp dat_forretas
<Porfa>
shevy: thank you so much
<shevy>
id_ext = dat_forretas.at_css('.deal a') <--- I think the error must be there
apurcell has joined #ruby
<shevy>
and then, lateron, when you find out where the error is
nobitanobi has joined #ruby
<pontiki>
porfa, i think also the problem maybe that you're looking for a .deal class within a set of elements that already have a .deal class
<adaedra>
?pry prasselpikachu
<ruboto>
prasselpikachu, Pry, the better IRB. Includes easy object inspection via `ls`, `history`, docs view with `?`, source view with `$` and syntax highlighting, among other features (see `help` for more). It can also be used for easy debugging by putting ’binding.pry’ directy in your source code. Visit https://pryrepl.org/ or get it now with gem install pry pry-doc
<ruboto>
Porfa, Pry, the better IRB. Includes easy object inspection via `ls`, `history`, docs view with `?`, source view with `$` and syntax highlighting, among other features (see `help` for more). It can also be used for easy debugging by putting ’binding.pry’ directy in your source code. Visit https://pryrepl.org/ or get it now with gem install pry pry-doc
<shevy>
that bot is spammy as hell
<havenwood>
?spam shevy
<ruboto>
shevy, I don't know anything about spam
<shevy>
lol
<adaedra>
no, you're spammy.
<shevy>
?I like chicken havenwood
<ruboto>
like, I don't know anything about I
<shevy>
HAHAHA
<shevy>
hanmac, there is a new bot for you to break
p8952 has joined #ruby
<shevy>
?I adaedra chicken havenwood
<ruboto>
adaedra, I don't know anything about I
<havenwood>
shevy: Don't initiate the bot's self defense sequence.
<adaedra>
apeiros, there is a shevy for you to kick
<shevy>
lol
<shevy>
oh... the bot disregards the rest of the sentence :(
thatslifeson has joined #ruby
Soda has joined #ruby
<shevy>
if we add in more bots, we could watch their spam warfare
<adaedra>
or we could stay with the status quo which is right
<shevy>
?havenwood adaedra
<ruboto>
adaedra, I don't know anything about havenwood
<shevy>
haha
<shevy>
ok I stop
<adaedra>
/ignore shevy
<shevy>
noooo :(
mistermocha has joined #ruby
Cust0sL1men has joined #ruby
Igorshp has quit [Remote host closed the connection]
<shevy>
gambl0re for me, when I started with ruby, rails did not exist
Igorshp has joined #ruby
<shevy>
so I never had to ask myself whether I would have to learn rails first
<gambl0re>
read the entire section..
pwattste has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<gambl0re>
you will read something interesting..
<shevy>
nope
<shevy>
"But people on the ruby/rails channel were very impatient and rude."
<shevy>
there is not even such a channel
<shevy>
there are two separate ones: #rubyonrails and #ruby
mistermocha has quit [Ping timeout: 246 seconds]
<adaedra>
and impatient!?
<shevy>
here are 968; I am sure that there are less on #rubyonrails. And many who are there, are not here, and vice versa.
<shevy>
The communities thus are not the same. They are partially overlapping at best.
mtakkman has joined #ruby
<havenwood>
shevy: Where are the missing 32 people?
<shevy>
wat!
<havenwood>
To break 1,000.
<shevy>
648 there
<shevy>
ah you mean here
<shevy>
dunno
<shevy>
python has...
<shevy>
1820
<shevy>
:\
<shevy>
damn it
<adaedra>
gambl0re: funny thing. I started learning Rails with a book I found, but was talking about rails 1.2, when rails was in version 2, so learning was not really easy :)
RegulationD has quit [Remote host closed the connection]
<havenwood>
Half of them think it is a snake fan club though.
rbennacer has quit [Remote host closed the connection]
scripore has joined #ruby
<mwlang>
I call B.S. on “IRC is only usefull when you face some really obscur bug.” :-o
<adaedra>
+1
<eam>
maybe a week or two ago I was chatting in here about in-memory dbs and how sqlite was super slow
<shevy>
sqlite is damn slow for large datasets!
<eam>
found out sqlite 3.6 didn't support the mmap pragma, upgrading to 3.8 brought a 400% performance improvement
<havenwood>
eam: nice
<agarie>
eam: wow
<agarie>
that's really nice to know
failshell has quit [Remote host closed the connection]
baweaver has joined #ruby
rbennacer has joined #ruby
failshell has joined #ruby
joonty has quit [Quit: joonty]
dvxam has joined #ruby
michaeldeol has joined #ruby
<dvxam>
Hi everyone
<havenwood>
dvxam: hi
<dvxam>
I'm having a weird issue. I have a rack app, which was running on previously on thin. I've switch to use puma, and now i'm facing a loooot of timeout.
ahmetkapikiran has joined #ruby
lidenskap has joined #ruby
<dvxam>
Actually, those timeout are not raised by my app by heroku which raise H12 and H13 error.
bricker has joined #ruby
<dvxam>
I can't get to understand why : anything seems to work well, but after a little time, puma seems to not hadle it
einarj has quit [Remote host closed the connection]
<eam>
the most pure and non smelly language is brainfuck
<mwlang>
just code with purpose. There’s nothing to be gained by guaranteeing nil is returned. If you know nil is always returned, you’re not going to conditionally branch to do something. If you don’t know and think it might change in the future, wiring it up with nil forced as a return anyway and coding a conditional in the caller leads to next dev wondering why and that’s definitely a code smell or at least a YAGNI scenario.
mikecmpbll has quit [Ping timeout: 255 seconds]
drocsid has quit [Ping timeout: 252 seconds]
Spami has quit [Quit: This computer has gone to sleep]
<toertore>
there is clarity to be gained
suppp has quit [Ping timeout: 246 seconds]
shazaum has joined #ruby
shazaum has quit [Changing host]
jottr has joined #ruby
yh has quit [Ping timeout: 240 seconds]
shadoi has joined #ruby
edwinvdgraaf has joined #ruby
cphrmky has joined #ruby
mjuszczak has quit []
ghr has quit [Ping timeout: 250 seconds]
keltim has left #ruby ["Leaving"]
granthatcher has quit []
Eiam_ is now known as Eiam
serivich has quit [Ping timeout: 272 seconds]
Hounddog has quit [Remote host closed the connection]
ndrei has quit [Ping timeout: 256 seconds]
ascarter has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
ndrei has joined #ruby
mistermo_ has quit [Read error: Connection reset by peer]
Mon_Ouie has joined #ruby
mistermocha has joined #ruby
Jackneill has joined #ruby
sinkensabe has quit [Remote host closed the connection]
Spami has joined #ruby
Sawbones_ has joined #ruby
SouL_|_ has quit [Ping timeout: 252 seconds]
mikecmpbll has joined #ruby
shadoi has quit [Quit: Leaving.]
<Eiam>
hmm. Any recommended gems for Cassandra? Looks like Sequel doesn't do it, but Cequel does =0 unfortunate name there
AlphaAtom has joined #ruby
lkba has quit [Ping timeout: 240 seconds]
AlphaAtom has quit [Max SendQ exceeded]
that1guy has quit [Quit: This computer has gone to sleep]
sinkensabe has joined #ruby
robbyoconnor has quit [Ping timeout: 265 seconds]
nobitanobi has joined #ruby
someguy has joined #ruby
qwertme has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
tus has joined #ruby
poguez_ has joined #ruby
c0m0 has quit [Ping timeout: 256 seconds]
Matthews_ has quit [Ping timeout: 256 seconds]
AlphaAtom has joined #ruby
sinkensabe has quit [Ping timeout: 264 seconds]
sohrab has joined #ruby
ta has joined #ruby
MatthewsFace[SEA has joined #ruby
bootstrappm has joined #ruby
Zai00 has quit [Quit: Zai00]
chinmay_dd has quit [Ping timeout: 240 seconds]
DeBot has joined #ruby
woodruffw has joined #ruby
p8952 has joined #ruby
woodruffw has quit [Remote host closed the connection]
gsd has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
shadoi has joined #ruby
someguy has quit [Quit: This computer has gone to sleep]
thiagovsk has joined #ruby
jakolehm has joined #ruby
Sawbones_ has quit [Remote host closed the connection]
baweaver has quit [Remote host closed the connection]
terlar has quit [Ping timeout: 245 seconds]
scripore has quit [Quit: This computer has gone to sleep]
jakolehm_ has joined #ruby
nobitanobi has quit [Remote host closed the connection]
MatthewsFace[SEA has quit [Ping timeout: 256 seconds]
scripore has joined #ruby
MatthewsFace[SEA has joined #ruby
diegoviola has joined #ruby
diegoviola has quit [Changing host]
diegoviola has joined #ruby
RegulationD has joined #ruby
gazay has quit [Quit: gazay]
jakolehm has quit [Ping timeout: 265 seconds]
baweaver has joined #ruby
djellemah has quit [Ping timeout: 272 seconds]
konsolebox has quit [Remote host closed the connection]
baweaver has quit [Remote host closed the connection]
baweaver has joined #ruby
mistermocha has quit [Read error: Connection reset by peer]
towski_ has joined #ruby
DeBot has quit [Ping timeout: 272 seconds]
jakolehm_ has quit [Remote host closed the connection]
mistermocha has joined #ruby
jhass has quit [Quit: Bye]
edwinvdgraaf has quit [Remote host closed the connection]
crazydiamond has joined #ruby
djellemah has joined #ruby
Lloyd is now known as lloyd
alex88 has quit []
Guest1421 has quit [Ping timeout: 264 seconds]
stef204 has joined #ruby
nobitanobi has joined #ruby
jhass has joined #ruby
yqt has joined #ruby
<pontiki>
afaik, cequel is the one to use
<pontiki>
we started calling it "cheek-well"
<bricker>
yuck
yh has joined #ruby
<bricker>
When gem names get too cute
<bricker>
See: Cocaine
<bricker>
"Haha get it? Because LINES!!!"
<bricker>
"Like LINES of cocaine!! Haha!!!"
<pontiki>
i never even made that connection before
jakolehm has joined #ruby
<bricker>
Yeah because it's dumb
<pontiki>
Cequel implements CQL, tho, so it makes as much sense as Sequel does
<bricker>
Some 15 year old intern at Thoughtbot probably came up with that name
freerobby has quit [Read error: Connection reset by peer]
freerobby has joined #ruby
michaeldeol has quit [Ping timeout: 252 seconds]
segfalt has joined #ruby
Soda has quit [Remote host closed the connection]
ghr has quit [Ping timeout: 240 seconds]
ascarter has joined #ruby
ariedler has joined #ruby
Igorshp has quit [Remote host closed the connection]
ramfjord has quit [Ping timeout: 256 seconds]
nettoweb has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<ariedler>
not sure if bug or not. URI! ... u = URI.parse("http://www.foo.com/test"); u.host = nil; u.to_s (expect "http://test", got "http:/test")
ponga has quit [Quit: Leaving...]
The_Phoenix has quit [Read error: Connection reset by peer]
insidious has quit [Ping timeout: 256 seconds]
gsd has joined #ruby
michael_mbp has quit [Excess Flood]
gusrub has joined #ruby
nettoweb has joined #ruby
<ariedler>
thoughts?
quimrstorres has quit [Remote host closed the connection]
Zamerick has joined #ruby
<bricker>
ariedler: I don't think you could consider it a bug. You're purposefully generating an invalid URI, so results are going to be unexpected of course
<ariedler>
yeah... using it for applinks... which makes things a ... little ugly.
nettoweb has quit [Max SendQ exceeded]
<bricker>
ariedler: You want to generate a URI with a path but no host?
yh has joined #ruby
<ariedler>
stupid applinks not using standards...
thatslifeson has quit [Remote host closed the connection]
nettoweb has joined #ruby
<bricker>
ariedler: you actually want your end result to be "http://test"?
TheHodge has quit [Quit: Connection closed for inactivity]
joelataylor has joined #ruby
Hijiri has joined #ruby
yfeldblum has joined #ruby
<mwlang>
with ruby-prof is there a way I can generate new sections for who’s calling Array#each? This section in my report is basically becoming a dumping grounds with a ton of stuff funnelling into this section.
<mwlang>
which is making it harder to figure out who’s truly the culprit.
moretti has quit [Remote host closed the connection]
thatslifeson has joined #ruby
<mwlang>
Ah, nevermind, I’ll just stick to the non-graphical HTML reports…having just found a good write up on how to read ‘em on S/O, these actually may be easier to follow.
graydot has joined #ruby
michaeldeol has joined #ruby
thatslifeson has quit [Read error: Connection reset by peer]
graydot has quit [Client Quit]
thatslifeson has joined #ruby
hexus0 has joined #ruby
yfeldblum has quit [Read error: Connection reset by peer]
<shevy>
bugs bugs bugs
yfeldblum has joined #ruby
<arup_r>
shevy: bugs to my code?
<eam>
bunny
<shevy>
arup_r in general
<shevy>
everywhere
<hexus0>
I have a chef role that runs fine on one VM running ruby v1.9.3p448 but is failing on another vm running v1.9.3p551, is there anything else I should consider besides the ruby versions?
<hexus0>
the error is "invalid multibyte character"
robertodecurnex has quit [Remote host closed the connection]
<hexus0>
chef versions are the same btw
cmckee has quit [Quit: cmckee]
OtterCoder has joined #ruby
OtterCoder has quit [Client Quit]
jhass has quit [Quit: Bye]
msgodf has quit [Remote host closed the connection]
JoshGlzBrk has joined #ruby
<xxneolithicxx>
sounds like a character encoding issue possibly
<hexus0>
the thing is, the same thing works fine on one VM but not on another
<hexus0>
same exact role/files/etc
<treehug88>
are the VMs in different locales?
<hexus0>
nope
ndrei has joined #ruby
<xxneolithicxx>
is the data you are working with coming from an external source? the input data to the recipes
<treehug88>
I'd try to figure out the string that it's complaining about. EMOREDATANEEDED :)
SouL_|_ has joined #ruby
<xxneolithicxx>
^ dump the inspect of it somewhere and figure out where the encoding issue is
<hexus0>
yea I'll check that out, what I may do just to easily rule out ruby versions is use RVM to install the same version of ruby/chef as the other VM
<hexus0>
and run it
that1guy has joined #ruby
moretti has joined #ruby
browncow has quit [Quit: leaving]
<xxneolithicxx>
there was a change in how ruby did encoding but i forget between which versions
jhass has joined #ruby
MatthewsFace[SEA has quit [Remote host closed the connection]
ramfjord has joined #ruby
that1guy has quit [Client Quit]
robbyoconnor has joined #ruby
Dopagod has quit [Ping timeout: 264 seconds]
davedev24_ has quit [Ping timeout: 272 seconds]
that1guy has joined #ruby
pontiki has quit [Ping timeout: 240 seconds]
ascarter has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
Rickmasta has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
jenrzzz has quit [Ping timeout: 272 seconds]
tomaw has quit [*.net *.split]
jhass has quit [*.net *.split]
arup_r has quit [*.net *.split]
shadoi has quit [*.net *.split]
AlphaAtom has quit [*.net *.split]
mikecmpbll has quit [*.net *.split]
b4tm4n has quit [*.net *.split]
nfk has quit [*.net *.split]
lsmola has quit [*.net *.split]
jefus has quit [*.net *.split]
nux443 has quit [*.net *.split]
Raverix has quit [*.net *.split]
WildBamboo-Josh has quit [*.net *.split]
rikai has quit [*.net *.split]
riceandbeans has quit [*.net *.split]
scottstamp has quit [*.net *.split]
polyrob has quit [*.net *.split]
SuperTaz has quit [*.net *.split]
tenseiten has quit [*.net *.split]
Kharma has quit [*.net *.split]
mrsolow has quit [*.net *.split]
gmas has quit [*.net *.split]
marcellu1 has quit [*.net *.split]
drizz has quit [*.net *.split]
fivetwentysix has quit [*.net *.split]
bennyklo1z has quit [*.net *.split]
scottymeuk has quit [*.net *.split]
parus has quit [*.net *.split]
oddmunds has quit [*.net *.split]
QKO has quit [*.net *.split]
Kovensky has quit [*.net *.split]
scruple has quit [*.net *.split]
_5moufl has quit [*.net *.split]
matu has quit [*.net *.split]
Morrolan has quit [*.net *.split]
cgrieger^away has quit [*.net *.split]
nickjj has quit [*.net *.split]
roger_rabbit has quit [*.net *.split]
SouL_|_ has quit [*.net *.split]
thatslifeson has quit [*.net *.split]
Guest1421 has quit [*.net *.split]
kirun has quit [*.net *.split]
allcentury has quit [*.net *.split]
nobitanobi has quit [*.net *.split]
roolo has quit [*.net *.split]
Xiti has quit [*.net *.split]
delianides has quit [*.net *.split]
dblessing has quit [*.net *.split]
ngr has quit [*.net *.split]
skinny_much has quit [*.net *.split]
go|dfish has quit [*.net *.split]
Apocalypse has quit [*.net *.split]
Zekka has quit [*.net *.split]
phutchins1 has quit [*.net *.split]
Lucky__ has quit [*.net *.split]
ProteusX has quit [*.net *.split]
Luyt_ has quit [*.net *.split]
mistergibson has quit [*.net *.split]
noname has quit [*.net *.split]
rvchangue has quit [*.net *.split]
jerryberry_ has quit [*.net *.split]
pygospa has quit [*.net *.split]
ByronJohnson has quit [*.net *.split]
jonathanwallace has quit [*.net *.split]
tskogber1 has quit [*.net *.split]
z3uS has quit [*.net *.split]
tchebb has quit [*.net *.split]
Skelz0r has quit [*.net *.split]
Nirgali42 has quit [*.net *.split]
stonecolddevin has quit [*.net *.split]
maloik has quit [*.net *.split]
yosafbridge has quit [*.net *.split]
ag4ve_ has quit [*.net *.split]
aewffwea has quit [*.net *.split]
psyprus has quit [*.net *.split]
irk has quit [*.net *.split]
barkerd427 has quit [*.net *.split]
eshy has quit [*.net *.split]
cibs has quit [*.net *.split]
jimms has quit [Remote host closed the connection]
Xiti has joined #ruby
MatthewsFace[SEA has quit [Read error: Connection reset by peer]
yosafbridge has joined #ruby
jackjackdripper has quit [Quit: Leaving.]
MatthewsFace[SEA has joined #ruby
SouL_|_ has joined #ruby
thatslifeson has joined #ruby
Guest1421 has joined #ruby
kirun has joined #ruby
allcentury has joined #ruby
roolo has joined #ruby
nobitanobi has joined #ruby
dblessing has joined #ruby
ngr has joined #ruby
skinny_much has joined #ruby
go|dfish has joined #ruby
eshy has joined #ruby
Apocalypse has joined #ruby
Zekka has joined #ruby
phutchins1 has joined #ruby
Lucky__ has joined #ruby
ag4ve_ has joined #ruby
ProteusX has joined #ruby
aewffwea has joined #ruby
psyprus has joined #ruby
cibs has joined #ruby
Luyt_ has joined #ruby
irk has joined #ruby
mistergibson has joined #ruby
noname has joined #ruby
rvchangue has joined #ruby
jerryberry_ has joined #ruby
maloik has joined #ruby
stonecolddevin has joined #ruby
Nirgali42 has joined #ruby
Skelz0r has joined #ruby
tchebb has joined #ruby
z3uS has joined #ruby
tskogber1 has joined #ruby
jonathanwallace has joined #ruby
ByronJohnson has joined #ruby
pygospa has joined #ruby
tomaw has joined #ruby
barkerd427 has joined #ruby
psyprus has quit [Max SendQ exceeded]
ag4ve_ has quit [Max SendQ exceeded]
arup_r has joined #ruby
jhass has joined #ruby
shadoi has joined #ruby
jefus has joined #ruby
mikecmpbll has joined #ruby
b4tm4n has joined #ruby
lsmola has joined #ruby
Raverix has joined #ruby
nfk has joined #ruby
WildBamboo-Josh has joined #ruby
riceandbeans has joined #ruby
AlphaAtom has joined #ruby
nux443 has joined #ruby
cgrieger has joined #ruby
rikai has joined #ruby
scottstamp has joined #ruby
SuperTaz has joined #ruby
polyrob has joined #ruby
tenseiten has joined #ruby
Kharma has joined #ruby
mrsolow has joined #ruby
marcellu1 has joined #ruby
gmas has joined #ruby
drizz has joined #ruby
fivetwentysix has joined #ruby
bennyklo1z has joined #ruby
scottymeuk has joined #ruby
parus has joined #ruby
oddmunds has joined #ruby
QKO has joined #ruby
Kovensky has joined #ruby
scruple has joined #ruby
_5moufl has joined #ruby
matu has joined #ruby
Morrolan has joined #ruby
nickjj has joined #ruby
roger_rabbit has joined #ruby
psyprus has joined #ruby
ag4ve_ has joined #ruby
robbyoconnor has quit [Ping timeout: 256 seconds]
AlphaAtom has quit [Max SendQ exceeded]
hexus0 has quit [Remote host closed the connection]
AlphaAtom has joined #ruby
AlphaAtom has quit [Max SendQ exceeded]
jenrzzz has joined #ruby
robbyoconnor has joined #ruby
<xxneolithicxx>
if you are talking about the boolean in the second link it does return something, it will return true/false from result of update_redis so that determines whether or not the second call to the custom hook happens or not
gigetoo has quit [Ping timeout: 272 seconds]
<xxneolithicxx>
in ruby, the last thing computed in the function is returned
Mon_Ouie has quit [Ping timeout: 264 seconds]
AlphaAtom has joined #ruby
<xxneolithicxx>
even if there is no explicit return
DynamicMetaFlow has joined #ruby
AlphaAtom has quit [Max SendQ exceeded]
jackjackdripper has joined #ruby
seitensei has joined #ruby
colli5ion has quit []
<xxneolithicxx>
so as a debug i would change /dev/null for stderr/stdout to a file under /tmp/ and review whats actually coming out if theres errors
AlphaAtom has joined #ruby
alexherbo2 has joined #ruby
AlphaAtom has quit [Max SendQ exceeded]
<BlaDe^>
xxneolithicxx: ah!
tenseiten has quit [Ping timeout: 256 seconds]
gigetoo has joined #ruby
AlphaAtom has joined #ruby
<BlaDe^>
xxneolithicxx: i wonder why they would pipe that to /dev/null :x
eichenwald has quit [Quit: Leaving]
nettoweb has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<xxneolithicxx>
because they dont care about the output and only the return code if its consistent
AlphaAtom has quit [Max SendQ exceeded]
joelataylor has quit [Quit: Be back later ...]
AlphaAtom has joined #ruby
mikeric has joined #ruby
joelataylor has joined #ruby
AlphaAtom has quit [Max SendQ exceeded]
moeabdol1 has joined #ruby
thatslifeson has quit [Remote host closed the connection]
AlphaAtom has joined #ruby
moeabdol has quit [Ping timeout: 276 seconds]
jimms has joined #ruby
AlphaAtom has quit [Max SendQ exceeded]
AlphaAtom has joined #ruby
mrmargol_ has quit [Remote host closed the connection]
drocsid has quit [Remote host closed the connection]
ismaelga has quit [Remote host closed the connection]
woodruffw has joined #ruby
ismaelga has joined #ruby
pwattste has joined #ruby
joelataylor has quit [Ping timeout: 250 seconds]
MasterPiece has quit [Quit: Leaving]
ismaelga has quit [Remote host closed the connection]
geekbri has joined #ruby
MatthewsFace[SEA has quit [Remote host closed the connection]
tomaw has quit [Ping timeout: 600 seconds]
DerisiveLogic has joined #ruby
sepp2k has quit [Quit: Leaving.]
Guest26139 has quit [Ping timeout: 240 seconds]
NinjaOps has quit [Quit: Konversation terminated!]
<eam>
there's only one file pointer, it's shared between reading and writing
<arup_r>
so how to fix it ?
sohrab has quit [Ping timeout: 264 seconds]
<eam>
depends, what behavior do you want?
<arup_r>
I want inplace file modification...
Jackneill has quit [Client Quit]
<eam>
well, you have that
<mwlang>
for performance improvements, if before processing time was 78.97 seconds and after optimization was 45.99 seconds, how much was performanced improved? 78.97 / 45.99 => 1.72 (is that 72% improved?) whereas 45.99 / 78.97 => 0.58 (is that 42% improved?) Yeah, it’s a math/interpretation question more-so than ruby….
RegulationD has joined #ruby
<arup_r>
eam: I am trying to do it since last 1 hour or so.. not getting the expected output
rodfersou has joined #ruby
mikeric has quit []
frem has joined #ruby
JoshGlzBrk has quit [Client Quit]
<eam>
mwlang: depends on your phrasing, you could say execution time is reduced by 58%
huddy has quit [Quit: Connection closed for inactivity]
<eam>
because 78.97 * 0.58 => 45
jph98 has joined #ruby
<eam>
or sorry, reduced by 42%
<mwlang>
eam: so that means that if I know the real thing in production takes ~6 hours I can multiply 6 hrs by 0.58 and say approximate time will likely be about 3.5 hours?
<eam>
assuming the performance ratios hold, sure
Guest1421 has quit [Ping timeout: 240 seconds]
mikeric has joined #ruby
delianid_ has quit [Remote host closed the connection]
Hijiri has quit [Quit: WeeChat 1.0.1]
<arup_r>
any idea how to proceed ?
<eam>
arup_r: you'll have to describe what exactly you're doing and seeing for me to help
<mwlang>
eam…just to be clear…overall times reduced by roughly 42%, but actual approximate estimates for next runs, I multiple past run times by 58%?
<eam>
arup_r: in general, if you're doing anything complicated you'll need to avoid all the non-sys family of io functions
mikeric has quit [Read error: Connection reset by peer]
delianides has joined #ruby
<mwlang>
eam: I’m just basically not sure what the best way of phrasing an improvement is.
<eam>
mwlang: sure, 42 + 58 = 100, so you can * 0.58 to find how much time is left (and * 0.42 is how much time you optimized away)
<adaedra>
you can also try to remove the file given in the trace
nux443 has quit [Quit: leaving]
<gambl0re>
the tutorial that im doing doesnt say anything about installing byebug
<adaedra>
it's a dependency
dfinninger has joined #ruby
<adaedra>
it was dowloaded by bundle install, but apparently, something went wrong during the download
jenrzzz has joined #ruby
<gambl0re>
Error installing byebug:
<gambl0re>
invalid gem: package is corrupt, exception while verifying: undefined method `size' for nil:NilClass (NoMethodError) in /home/ricky/.rvm/gems/ruby-2.2.2/cache/byebug-4.0.5.gem
arup_r has quit [Quit: ChatZilla 0.9.91.1 [Firefox 37.0.1/2015040300]]
<shevy>
this reminds me why I don't use rvm nor bundler
<gambl0re>
thats why i never use linux...
<shevy>
linux is fine
<shevy>
just don't use crappy software
<gambl0re>
installing something simple can be a pain..
<shevy>
yes because the distributions are total idiots
<gambl0re>
use windows..
<shevy>
because windows is better how exactly?
anskeit has quit [Quit: Page closed]
segfalt has quit [Quit: segfalt]
<eam>
shevy: well for example there's no packaging system to cause trouble
<shevy>
appdirs
jenrzzz has quit [Ping timeout: 256 seconds]
<eam>
this is why I don't use an operating system at all
<eam>
no features, no problems
lidenskap has joined #ruby
emptyflask has joined #ruby
<shevy>
gambl0re I compile from the sources, through ruby scripts. "ecompile ruby.yml" would compile the latest ruby in my case, into prefix /usr in this example. "appconf ruby.yml" would install in an appdir approach; the main thing I have to change for this to work is an URL, which is pointing to the latest such as ftp://ftp.ruby-lang.org/pub/ruby/2.2/ruby-2.2.2.tar.xz
<mwlang>
how hard is it to control thread counts in Ruby? For example, if I want to turn a currently single-threaded process into a multi-threaded one, can I keep the thread count down to say, 10 threads and wait for one to finish before firing off the next?
greenbagels has joined #ruby
<mwlang>
basically, I’m correlating threads to database connections…so I don’t want more than, say 10 threads concurrently at once.
<GaryOak_>
so basically a thread pool
<mwlang>
GaryOak_: yup.
workmad3 has joined #ruby
<GaryOak_>
mwlang: what ruby gem are you using for db access?
<mwlang>
GaryOak_: hmmm…maybe I just set up 10 DB connections and then launch my threads willy-nilly and let Sequel’s thread pool govern?
<GaryOak_>
yeah that's what I'm thinking
<infinitone>
Sup
edwinvdgraaf has joined #ruby
<mwlang>
GaryOak_: might as well try the simple approach first….I’ve got plenty of specs backing the processes, so it should surface any real problems.
<GaryOak_>
yeah
last_staff has quit [Read error: Connection reset by peer]
babykosh has joined #ruby
slash_nick has joined #ruby
Rickmasta has joined #ruby
<mwlang>
well, that didn’t take long… #<Sequel::PoolTimeout: Sequel::PoolTimeout>
<GaryOak_>
hahaha
<mwlang>
and it looks like that got caught by: Sequel::SerializationFailure: TinyTds::Error: Transaction (Process ID 55) was deadlocked on lock resources with another process and has been chosen as the deadlock victim. Rerun the transaction.
<mwlang>
back to the drawing board…
dfinninger has quit [Remote host closed the connection]
<GaryOak_>
were you handing out connections through ThreadedConnectionPool.available_connections?
DynamicMetaFlow has quit [Remote host closed the connection]
MasterPiece has joined #ruby
Galm has quit [Read error: Connection reset by peer]
chriscarpenter12 has quit []
<mwlang>
GaryOak_: ThreadedConnectionPool is the default, so I’m guessing “yes”
dfinninger has joined #ruby
JDiPierro has quit [Remote host closed the connection]
bmurt has quit []
sohrab has joined #ruby
gluten_hell_ has quit [Quit: Computer has gone to sleep.]
turtil has joined #ruby
Ellis has joined #ruby
baweaver has quit [Read error: Connection reset by peer]
<Ellis>
i can’t seem to understand business logic. can someone explain it to me?
baweaver has joined #ruby
infinitone has quit []
infinitone has joined #ruby
<gambl0re>
problem fixed...
<shevy>
\o/
<shevy>
I had faith in you
jordanm has quit [Quit: Konversation terminated!]
x1337807x has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<mwlang>
GaryOak_: confirmed I’m already using threaded connection pool. I’m digging into how Sequel does it’s own hold and syncronizing to control access to the connections.
jordanm has joined #ruby
<mwlang>
I hope I don’t have to get into mutexes and the likes. :-o
shazaum has quit [Quit: Leaving]
MasterPiece has quit [Quit: Leaving]
yqt has quit [Ping timeout: 240 seconds]
sankaber has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
sinkensabe has quit [Remote host closed the connection]
naftilos76 has quit [Remote host closed the connection]
<apeiros>
if you want ABCDEFabcdef, you need [A-Fa-f] or [A-F] with //i flag
<apeiros>
mwlang: "the docs"?
<al2o3-cr>
the latter seems better?
ismaelga has joined #ruby
<mwlang>
apeiros: if there’s an existing thread pool, I don’t know about it. I’m trying to keep my thread count to same number of database connections I have.
<al2o3-cr>
apeiros: one more question
<mwlang>
apeiros: I’m using the Sequel gem, which does provide threaded connection pool…but when my thread count exceeds the number of connection of that pool, I get deadlocked
<mwlang>
so, the fix is to have my own thread pool to match max size of the connection pool provided by sequel.
<al2o3-cr>
"thisIsCamelCase".split /(?=[A-Z])/ # can you explain this please apeiros?
_havenn has joined #ruby
agarie has quit []
<apeiros>
mwlang: though I'm reasonably certain that jeremy evans would document how to deal with having more threads than connections in a pool…
<apeiros>
al2o3-cr: with what part specifically do you have troubles?
edwinvdgraaf has quit [Remote host closed the connection]
robbyoconnor has quit [Ping timeout: 265 seconds]
<al2o3-cr>
apeiros: ?=
edwinvdgraaf has joined #ruby
<apeiros>
al2o3-cr: ok, (?= … ) is called a look-ahead
<al2o3-cr>
ok
<apeiros>
it must match, but it won't consume the matched data
<mwlang>
apeiros: My initial tests are using the sequel threaded connection exactly as he designed them to be used. It’s actually the database that’s not playing nice.
<mwlang>
apeiros: oh! Let me turn off the big “transaction do” block I have around the main processing…it’s gotta be deadlocking because one thread attempts to use a connection that another thread started the transaction block on.
<apeiros>
mwlang: did you ask in #sequel?
slash_nick has quit [Ping timeout: 276 seconds]
havenwood has quit [Ping timeout: 244 seconds]
but3k4 has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<al2o3-cr>
apeiros: is that why the capitals are still there?
<mwlang>
apeiros: not yet. It’s not a sequel problem, yet.
<mwlang>
hmmm…at the end of the program, how do I ensure all threads finish? I tried this: Thread.list.reject{|r| r = Thread.current}.each {|thr| thr.join }
<shevy>
== Changes since the 2.2.0 release
<mwlang>
but wasn’t sure that’s the right way.
<shevy>
"Array#select!, Array#keep_if, Array#reject!, and Array#delete_if no longer changes the receiver array instantly every time the block is called."
maletor has quit [Quit: Computer has gone to sleep.]
<rdark>
..and would be prepared to give a statement on whether padding the first block of data, in combination with a random IV, which is then stripped after decryption (without access to the IV) is a stronger or weaker than a static IV?
mary5030_ has quit [Remote host closed the connection]
that1guy has joined #ruby
<apeiros>
rdark: maybe there's a dedicated crypto channel here? or openssl?
ascarter_ has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
freerobby has joined #ruby
<lotyrin>
rdark: static IV? like, reuse of the IV for multiple streams?
<rdark>
openssl is dead :)
<rdark>
yeah - just a static string
<rdark>
(the channel that is)
<lotyrin>
IV is a nonce, should always be different, sent along with cryptotext (usually as the first block) and used on decrypt side
davedev2_ has joined #ruby
<rdark>
lotyrin: yep, in an ideal world it should be - this is just for encryption/decryption of some files
babykosh_ has joined #ruby
davedev24_ has quit [Ping timeout: 265 seconds]
<lotyrin>
rdark: why are you assembling crypto primitives yourself, does e.g. GPG not cover your use case?
cjim_ has quit [Quit: (null)]
nobitanobi has quit [Remote host closed the connection]
babykosh has quit [Ping timeout: 264 seconds]
greenbagels has quit [Read error: Connection reset by peer]
<rdark>
lotyrin: I'm not :) just using standard OpenSSL bindings for simple symmetric-key crypto
DerisiveLogic has joined #ruby
babykosh has joined #ruby
<rdark>
avoided GPG (I know it can do symmetric) for this as I want minimum amount of dependencies as it needs to be cross-platform (windows yuck)
crazydiamond has quit [Read error: Connection reset by peer]
<lotyrin>
rdark: if you're setting up an IV, and picking your block cipher mode etc, you are making decisions about how to assembling those primitives yourself, and almost certainly not in a way that is safe
_blizzy_ has joined #ruby
a346 has quit [Read error: Connection reset by peer]
edwinvdgraaf has quit [Remote host closed the connection]
<rdark>
_havenn: thanks, that's pretty similar to what I'm using, with the exception of doing HMAC
m8 has quit [Quit: Sto andando via]
edwinvdgraaf has joined #ruby
mengu__ has quit [Remote host closed the connection]
x1337807x has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
`backtick` is now known as maoi
Pupeno_ has joined #ruby
_havenn is now known as havenwood
platzhirsch has joined #ruby
devyn has quit [Ping timeout: 250 seconds]
devyn has joined #ruby
Drakevr has quit [Ping timeout: 250 seconds]
Pupeno has quit [Read error: Connection reset by peer]
tessi_zz has quit [Ping timeout: 256 seconds]
tessi_zz has joined #ruby
epochwolf has quit [Excess Flood]
yfeldblu_ has joined #ruby
epochwolf has joined #ruby
epochwolf has joined #ruby
spider-mario has quit [Read error: Connection reset by peer]
Drakevr has joined #ruby
yfeldblum has quit [Ping timeout: 256 seconds]
swgillespie has joined #ruby
scripore has quit [Quit: This computer has gone to sleep]
spider-mario has joined #ruby
pontiki has joined #ruby
malcolmva has quit [Ping timeout: 252 seconds]
lidenskap has quit [Remote host closed the connection]
zzing has joined #ruby
djbkd has joined #ruby
lotyrin has left #ruby [#ruby]
gluten_hell_ has joined #ruby
lotyrin has joined #ruby
davedev24_ has joined #ruby
davedev2_ has quit [Read error: Connection reset by peer]
<lotyrin>
What would be the best way to share test code between gems, say I have a gem A and a gem B which extends A, and which has a great deal of utility in reusing spec helpers defined in A (but which are unavailable to it)
pontiki has quit [Ping timeout: 264 seconds]
<lotyrin>
I can't employ the hacky-workaround of asking for the path to gem A and then requiring spec paths relative to there, because A has done the correct thing and does not have its test code laying around in a released copy
gluten_hell_ has quit [Ping timeout: 240 seconds]
SouL_|_ has quit [Ping timeout: 240 seconds]
swgillespie has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<apeiros>
why wouldn't you include the test code in the gem?
Sawbones_ has joined #ruby
<apeiros>
not in the lib dir of course
DEA7TH has quit [Ping timeout: 272 seconds]
lidenskap has joined #ruby
<apeiros>
but have the tests otherwise available doesn't seem to be a bad idea… in some languages it's even common to run tests after the installation and automatically report results, so testbase is wide.
DEA7TH_ has joined #ruby
Sawbones_ has quit [Client Quit]
gigetoo has quit [Ping timeout: 255 seconds]
diegoviola has quit [Remote host closed the connection]
railsForDaiz has joined #ruby
but3k4 has joined #ruby
that1guy has quit [Ping timeout: 255 seconds]
<lotyrin>
Not exactly sure on that, but it seems like a common pattern to exclude tests/coverage output/etc etc
<mwlang>
regarding threads and ruby…is there any point to having more threads than cpu cores to handle them? On a 4 core machine, I’m already pegging one core to 100% in single threaded mode. I would guess that starting 4 threads would peg the 4 cores at 100% and 5th+ thread may actually start to be detrimental.
gigetoo has joined #ruby
edwinvdgraaf has quit [Remote host closed the connection]
malcolmva has joined #ruby
casadei_ has quit [Remote host closed the connection]
scripore has joined #ruby
TheNet has joined #ruby
ascarter_ has joined #ruby
<aewffwea>
mwlang: it depends on whether your threads become blocked or not, and the patterns
<al2o3-cr>
apeiros: regarding (?:\h\h:) this means match this but don't keep the capture right?
<lotyrin>
mwlang: I'd need some more specifics, are these threads in a batch process, or are they handling concurrent net connections, are they entirely CPU-bound or do they ever wait (e.g. for I/O)
diegoaguilar has quit [Ping timeout: 272 seconds]
<mwlang>
lotyrin: They are processing data, inserting and updating against a DBMS.
but3k4 has quit [Ping timeout: 244 seconds]
ndrei has quit [Ping timeout: 240 seconds]
Ellis has quit [Quit: Ellis]
Peetooshock has quit [Remote host closed the connection]
Ellis has joined #ruby
casadei_ has joined #ruby
Ellis has quit [Client Quit]
<al2o3-cr>
man, regex is like a mini langauge by itself ;p
<lotyrin>
Depending on if they're waiting on the DBMS, and if they're waiting for the same resource in the DBMS or not, then you might see higher throughput with > CPU threads number of threads. I'd experiment
<aewffwea>
al2o3-cr: yes
Narzew has quit [Remote host closed the connection]
<mwlang>
I’m running stress tests on 4 threads vs 8 and 12 just to see if there’s any real difference…there’s a noticible difference from 1 to 2 then to 3…haven’t tried 4 then 5, etc. yet.
<aewffwea>
al2o3-cr: regexp are really easy, assuming you have the proper training
TheNet has quit [Client Quit]
moretti has quit [Quit: Leaving...]
<aewffwea>
mwlang: is your ruby using OS threads?
jph98 has joined #ruby
that1guy has joined #ruby
<al2o3-cr>
aewffwea: ok thanks :)
neonalpine has quit []
<mwlang>
aewffwea: I’m actually not sure…its Ruby 2.2 on mac right now…will be Ruby 2.2 on Linux
scripore has quit [Client Quit]
<mwlang>
I know the whole threading game changed from 1.8.6 to 1.9 and on to 2.x, but this is my first time playing with threads in Ruby for a production deployment since the 1.8 days.
scripore has joined #ruby
scripore has quit [Client Quit]
MatthewsFace[SEA has quit [Remote host closed the connection]
railsForDaiz has quit [Ping timeout: 250 seconds]
alvaro_o has joined #ruby
kirun has quit [Quit: Client exiting]
CloCkWeRX has quit [Quit: Leaving.]
<mwlang>
heh…12 threads deliver in 41 seconds each while 4 threads deliver in 31 seconds each.
<gambl0re>
under the section "setting up the router" he says to delete everything except the first line.
<gambl0re>
the only thing is, my first line is different then his.
qwertme has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<gambl0re>
mine shows Rails.application.routes.draw do instead of his Blogger::Application.routes.draw do
scripore has joined #ruby
bootstrappm has quit [Remote host closed the connection]
RegulationD has quit [Remote host closed the connection]
pontiki has joined #ruby
paulcsmith has quit [Quit: Be back later ...]
bootstrappm has joined #ruby
RegulationD has joined #ruby
iasoon has quit [Ping timeout: 246 seconds]
casadei_ has quit [Remote host closed the connection]
railsForDaiz has quit [Ping timeout: 272 seconds]
JoshGlzBrk has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<apeiros>
!kick gambl0re when you cross-post, at least tell so in every channel where you cross post.
gambl0re was kicked from #ruby by ruboto [when you cross-post, at least tell so in every channel where you cross post.]
Pupeno_ has quit [Quit: Leaving...]
scripore has quit [Client Quit]
DerisiveLogic has quit [Ping timeout: 245 seconds]
gigetoo has joined #ruby
<pontiki>
hello again
<apeiros>
o/ pontiki
gambl0re has joined #ruby
scripore has joined #ruby
Ellis has joined #ruby
RegulationD has quit [Ping timeout: 276 seconds]
blaines has joined #ruby
wallerdev has joined #ruby
scripore has quit [Client Quit]
scripore has joined #ruby
dfinninger has quit [Remote host closed the connection]
emptyflask has quit [Remote host closed the connection]
dvlwrk has joined #ruby
snath has quit [Ping timeout: 250 seconds]
luksaur has quit [Read error: Connection timed out]
ariedler has quit []
DerisiveLogic has joined #ruby
DerisiveLogic has quit [Remote host closed the connection]
DerisiveLogic has joined #ruby
gregf has quit [Quit: WeeChat 1.1.1]
luksaur has joined #ruby
[narcan] has joined #ruby
scripore has quit [Client Quit]
scripore has joined #ruby
maletor has joined #ruby
gregf has joined #ruby
DeBot has joined #ruby
paulcsmith has joined #ruby
roolo has quit [Remote host closed the connection]
mary5030 has joined #ruby
scripore has quit [Client Quit]
ismaelga has quit [Remote host closed the connection]
thatslifeson has quit [Remote host closed the connection]
wallerdev has quit [Ping timeout: 240 seconds]
wallerdev_ has joined #ruby
ndrei has joined #ruby
icebourg has quit []
jottr has quit [Ping timeout: 272 seconds]
snath has joined #ruby
jgrevich has joined #ruby
mary5030 has quit [Ping timeout: 256 seconds]
<mwlang>
I am working on a small XML parsing tutorial. Does anyone know of some reasonably interesting public domain data sources in XML format. Albums, Artists, Songs, for example. State, County, Cities, etc.
scripore has joined #ruby
iasoon has joined #ruby
poguez_ has quit [Quit: Connection closed for inactivity]
DeBot has quit [Ping timeout: 276 seconds]
<rdark>
mwlang: archive.org should have some interesting datasets available
gambl0re has quit [Ping timeout: 264 seconds]
<rdark>
aws hosts some as well, but afaiaa they're all going to be csv or json
<havenwood>
mwlang: wolfram alpha api
<havenwood>
mwlang: does require a free key
scripore has quit [Client Quit]
spider-mario has quit [Read error: Connection reset by peer]
<mwlang>
havenwood: as long as barrier to entry is easy for whoever wants to do the tutorial