<shevy>
though the order may be important... e. g. pango bindings before gtk bindings, just the same as if you were to compile either from source
Rx_o______ has quit [Read error: Connection reset by peer]
<solo_>
anyone use AWS to stand up ruby+sinatra webservices? Was using heroku, but just found out their ruby build doesn't link with the correct OpenSSL version I need :/
Rx_o______ has joined #ruby
<GluonQuark>
hmm...you install package by package
HS__ has quit [Remote host closed the connection]
Rx_o______ has quit [Read error: Connection reset by peer]
magic has joined #ruby
Rx_o______ has joined #ruby
magic is now known as Guest25353
<shevy>
yeah
Rx_o______ has quit [Read error: Connection reset by peer]
<shevy>
but via scripts
<shevy>
I compile from source because I can not trust distributions
Rx_o______ has joined #ruby
Guest25353 is now known as magic
mocfive has quit [Remote host closed the connection]
magic has quit [Changing host]
magic has joined #ruby
Rx_o______ has quit [Read error: Connection reset by peer]
<GluonQuark>
shevy, how did you manage your OS lib then? Last time I did compile from source and make install screw up my ubuntu
Rx_o______ has joined #ruby
mocfive has joined #ruby
<GluonQuark>
that was few years ago btw
<shevy>
yeah
<shevy>
ubuntu stinks so that is no surprise
<sevenseacat>
:(
* sevenseacat
likes ubuntu
TorpedoSkyline has joined #ruby
justinmburrous has quit [Remote host closed the connection]
<shevy>
GluonQuark I use the source; for instance, if I do "ry gtkplus" (sorry for the "plus", I should also enable "ry gtk+" but for now I use this) it will compile the latest gtk3 from source
Rx_o______ has quit [Read error: Connection reset by peer]
<shevy>
GluonQuark 95% of the OS libs will work just fine without any modification
justinmburrous has joined #ruby
Rx_o______ has joined #ruby
solo_ has quit [Quit: Leaving...]
radic has joined #ruby
<shevy>
ok ruby-gnome works now
<GluonQuark>
shevy I mean It is replacing some of the ubuntu gtk lib...which I'm pretty much trying to stay out of the way
<shevy>
let me make a screenshot of a radio button widget (in a minute or two)
<shevy>
yeah sure
Rx_o______ has quit [Read error: Connection reset by peer]
<shevy>
so you have to remain in the way how ubuntu works
<shevy>
that means installing their packages through apt
Rx_o______ has joined #ruby
oo_ has quit [Remote host closed the connection]
justinmburrous has quit [Read error: No route to host]
justinmburrous has joined #ruby
aspires has joined #ruby
<GluonQuark>
shevy your desktop is not ubuntu?
oo_ has joined #ruby
oo_ has quit [Remote host closed the connection]
oo_ has joined #ruby
mocfive has quit [Ping timeout: 260 seconds]
mikepack has quit [Remote host closed the connection]
maestrojed has joined #ruby
radic_ has quit [Ping timeout: 244 seconds]
Rx_o______ has quit [Read error: Connection reset by peer]
Rx_o______ has joined #ruby
<shevy>
GluonQuark, ok so this is how it looks - don't mind that it looks ugly, I use fluxbox and have not setup anything in ruby-gnome/gnome right now http://i.imgur.com/a3zXyX1.png
<shevy>
you even get included the warning message below ;)
aspires has quit [Client Quit]
Rx_o______ has quit [Read error: Connection reset by peer]
<shevy>
nah, I can't stand ubuntu. unity is unusably to me
<shevy>
I work with the terminal non-stop, kde terminal usually with lots of tabs
<hakunin>
i'm making a small cli app, it needs piped data, and an argument. The thing I'm trying to do is if there is no argument, it should block asking for input. So first I parse ARGV to see if anything was passed, and clear it out. Second I call ARGF.readlines to read piped data. Third I call $stdin.gets if ARGV didn't have what was needed, but $stdin.gets does nothing…
aspires has joined #ruby
<hakunin>
i'm using it wrong, but not sure how
<shevy>
sevenseacat yeah I saw it with my coworker, he is super fast with unity
<shevy>
GluonQuark you have to ask Phrogz he is using ruby-qt/qtruby
awc737 has joined #ruby
krisquigley has quit [Remote host closed the connection]
cndiv has joined #ruby
<Mia>
someone sent me a nice resource for ruby beginners before
<benzrf>
glouns arent Quarks
<Mia>
it looks like I forgot to save the link
maestrojed has quit [Quit: Computer has gone to sleep.]
<shevy>
Mia chris pine? or something else
shiver has quit [Quit: WeeChat 1.0]
krisquigley has joined #ruby
<Mia>
shevy, no no, not that
<shevy>
ah ok
aspires has quit [Client Quit]
<Mia>
like a git link
<shevy>
huh no
<GluonQuark>
benzrf it isn't...
<GluonQuark>
:D
Fire-Dragon-DoL has quit [Quit: Leaving.]
<Mia>
with sort of like... a readme?
<shevy>
you mean my code
<shevy>
?
<Mia>
Ah no,
<Mia>
not today
<shevy>
a git link with a readme?
<Mia>
I mean someone sent that 2 days ago
<shevy>
ok, I don't have that long a backlog sorry
<Mia>
And there was this readme file (or something along the lines) with the hyperlinks and descriptions
badhatter has joined #ruby
badhatter has joined #ruby
<sevenseacat>
bookmarking is your friend
<Mia>
sevenseacat, indeed
c107 has joined #ruby
<Mia>
Well what would you recommend after finishing up pine.fm stuff
ItSANgo has quit [Quit: Leaving...]
<Mia>
codecademy is done already
<Mia>
this is, too, close to the end
fgo has quit [Remote host closed the connection]
iliketurtles has joined #ruby
iliketurtles has quit [Remote host closed the connection]
SilkFox_ has quit [Ping timeout: 250 seconds]
aspires has joined #ruby
<sevenseacat>
the end?
<sevenseacat>
Mia: after you've done some learning, then its time to start building something
nanoyak has quit [Read error: Connection reset by peer]
MaciejCzyzewski has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<sevenseacat>
and do more learning while you do that
<Mia>
I mean pine.fm chapters area also pretty much done as well
<Mia>
sevenseacat, yes but I don't feel capable, still
nanoyak has joined #ruby
<Mia>
I mean everything's so simple
<sevenseacat>
and you won't, until you get some actual experience under your belt
<Mia>
if people build stuff with this I wonder how :D
<sevenseacat>
experience figuring stuff out and tinkering and researching how to do things
<sevenseacat>
rather than just following a guide
krisquigley has quit [Ping timeout: 260 seconds]
<Mia>
right
<sevenseacat>
i mean everything is relatively easy when you're following a step by step guide designed to be easy
tjr9898 has quit [Remote host closed the connection]
MaciejCzyzewski has joined #ruby
<Mia>
You know, for instance, my first target is to create a twitter bot
<Mia>
I mean I can open up sublime and save/run stuff
<Mia>
but that's all
aspires has quit [Client Quit]
<Mia>
no visuals, nothing
<Mia>
where is the connection between this, and the front end
mikepack has joined #ruby
<sevenseacat>
what front end?
<Mia>
web, app, any kind
<sevenseacat>
are you building a cli app, or a web app, or a gui app....
<sevenseacat>
theyre all totally different frontends
<Mia>
Well my initial idea isto create a web app
<sevenseacat>
then you want a web framework
<Mia>
without a particular front end actually
<sevenseacat>
like sinatra, or rails
<Mia>
I want the bot to reply to tweets that's all -
<Mia>
btw - is sinatra still actively being developed
<sevenseacat>
yes
<Mia>
I've seen tutorials from 4 years ago (or such) and the website was identical
<profelm>
I was just googling around and was wondering if ActiveRecord was the way to go, havenwood .
Sgeo has joined #ruby
<Mia>
ahoy havenwood
lemur has joined #ruby
<havenwood>
hi
<Mia>
What's up
kenneth has joined #ruby
gilest has joined #ruby
<havenwood>
i'm hungry
krz has joined #ruby
* Mia
offers chocolate
jackjackdrpr has quit [Ping timeout: 245 seconds]
kireevco has joined #ruby
enodata has quit [Quit: quit]
<hakunin>
Mia: if you know how to write programs that send ruby strings to your terminal (puts to stdout), then a web app is a ruby program that outputs strings to a special thing called socket (instead of stdout), and those strings have html code
JBreit has left #ruby ["Leaving"]
melik has quit [Quit: Computer has gone to sleep.]
<Mia>
hakunin, oh that's all?
jehosogo has joined #ruby
<hakunin>
Mia: between these basics there are thick layers of abstractions to remove most legwork
<Mia>
Where can I learn more about the basics of all that, hakunin
<Mia>
I mean, even "getting a server" part,
TorpedoSkyline has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<Mia>
I'm a 100% designer; not familiar with any of this in depth
<hakunin>
Mia: it's a difficult question cause there are many angles to appraoch it
<Mia>
Well first of all, should I get a vps for ruby
<Mia>
I was considering digitalocean for that
MaciejCzyzewski has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<Mia>
if it's not essential for the first steps, I can skip as well
<hakunin>
Mia: yeah it's totally fine, $5/mo, but that means you just need to install ruby there and set it up. with heroku you get a lot of magic, but this way you won't understand what's going on
<Mia>
hm I see
<hakunin>
Mia: but you can easily run web apps on your computer until you're ready to deploy
<hakunin>
Mia: no need to buy anything
larsam has quit [Read error: Connection reset by peer]
<Mia>
what about connecting to them
<hakunin>
only you will be able to access them
<hakunin>
using url like localhost:3000
<Mia>
For instance, as I mentioned earlier, two of my initial aims are creating bots (a twitter bot and an irc bot)
<Mia>
can I run them / test them without deploying
<hakunin>
i would recommend starting with serving hello world and seeing it in your browser
<hakunin>
but there are no speed limits on learning :)
benzrf is now known as benzrf|offline
benzrf|offline is now known as benzrf
b00stfr3ak has joined #ruby
<GluonQuark>
Mia, if you want some basic rails stuff, I can sent you some ebooks
<GluonQuark>
ruby too
<hakunin>
you can probably have twitter bot running from your computer but they might need some api key domain verification (not familiar) and you'd them have to host somehwere
koderok has joined #ruby
ItSANgo has joined #ruby
<Mia>
GluonQuark, I don't know if I want to go for RoR yet
<Mia>
I want to try a few things without any web interface at all
<Mia>
I mean, RoR is purely for website kinds, right?
<hakunin>
Mia: ror is for anything
<hakunin>
web-related
<hakunin>
apis, websites, webapps
kireevco has quit [Quit: Leaving.]
<Mia>
Hm
<Mia>
what about sinatra?
<Mia>
it seems simpler, do they serve a similar purpose?
<hakunin>
same
<Nilium>
Stay away from Rails.
<sevenseacat>
nothing wrong with rails :(
<Nilium>
Rails is the blight.
<Mia>
Nilium, O.o
<Nilium>
It is the thing wrong with Ruby.
<sevenseacat>
well.... some stuff wrong, but its still an awesome framework
* sevenseacat
has been working with Rails for years
<Nilium>
The rails community is a bunch of people who can't think correctly.
MaciejCzyzewski has joined #ruby
<sevenseacat>
oy
<GluonQuark>
sinatra works too for web
kenneth has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
braincra- has quit [Quit: bye bye]
<Mia>
Ok I will tell you what I want, you tell me what I need to learn. --- I want to create a dice roller twitter bot that will respond to @mentiones like @dice_roller_bot d20 as @username you rolled 19!
<Mia>
and save them up with dates and usernames so that I can have a history as well
mattmcclure has quit [Quit: Connection closed for inactivity]
kil0byte has quit [Remote host closed the connection]
<Mia>
I mean, this is not a functional project, I want to learn some "things" related to socialapps
<hakunin>
please don't pay attention to generalizations like "stay away from rails", it's far too early to have that conversation, and it's a lot more nuanced than that
<Mia>
and that idea was the one I came up with
oo_ has quit [Remote host closed the connection]
kenneth has joined #ruby
ghr has joined #ruby
aleatorik has joined #ruby
b00stfr3ak has quit [Ping timeout: 272 seconds]
<Mia>
hakunin, I was told to stay away from ruby too :)
Rx_o has joined #ruby
<hakunin>
:)
<Mia>
That's okay I want to learn the basics and once I gt going I will ty as much as possible to have a less biased pov
aleatorik is now known as wolves_cs
northfurr has quit [Quit: northfurr]
<Mia>
started learning python too, just to understand all the flame going on
MaciejCzyzewski has quit [Ping timeout: 246 seconds]
<Mia>
So yeah - any basic suggestions for my "My First Twitter Dice Roller" project :) ?
<hakunin>
so there's the twitter gem, you can write a simple ruby script that would interact with twitter using that gem
<sevenseacat>
so... reading from a sybase database in a ruby app running on ubuntu
<Mia>
sybase? is there any reason for that
oo_ has joined #ruby
braincrash has joined #ruby
<sevenseacat>
the legacy database is in sybase, so yes
<Mia>
is it the best option?
<Mia>
or is it just easier to play with?
<GluonQuark>
why sybase?
<sevenseacat>
no, hence im trying to read the data out from it to put it in a better option
niklasb has joined #ruby
<GluonQuark>
roll the dice over twitter?
<GluonQuark>
sounds interesting
<Mia>
GluonQuark, it's done many times, I want to test myself
lukevinc has quit [Quit: ChatZilla 0.9.90.1 [Firefox 24.8.0/20000101000000]]
<hakunin>
that means it won't run at your maximum cpu speed, just every 5 seconds
<Mia>
like, I'm just thinking, this just checks every 5 secodns as far as I can understand with my humble knowledge of 2 days --- what if I want to run it via push
echooo has joined #ruby
<hakunin>
Mia: maybe the gem has that capability
wjimenez5271 has quit [Remote host closed the connection]
msmith_ has quit [Remote host closed the connection]
kyb3r_ has joined #ruby
jcdesimp has quit [Remote host closed the connection]
SilkFox_ has quit [Ping timeout: 272 seconds]
maestrojed has joined #ruby
thomasxie has joined #ruby
mikepack has quit [Remote host closed the connection]
Scotteh has joined #ruby
Channel6 has quit [Quit: Leaving]
rubyonrailed has joined #ruby
x1337807x has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
thomasxie has quit [Ping timeout: 260 seconds]
w09x_ has joined #ruby
w09x_ has quit [Client Quit]
rubyonrailed has quit [Ping timeout: 272 seconds]
w09x has quit [Ping timeout: 246 seconds]
justinmburrous has joined #ruby
bluOxigen has joined #ruby
<Mia>
hm I can't get the tweet gem work
kireevco has quit [Quit: Leaving.]
thagomizer has quit [Quit: Leaving.]
c107 has quit [Remote host closed the connection]
gvenkat_ has joined #ruby
b00stfr3ak has joined #ruby
<Hanmac>
Mia can you finially say what is your problem and what error/exception you get? and make a pastie/gist of your code so we could find what you might do wrong
<pontiki>
hmm, that backhaul from oz is slow tonite?
<hakunin>
Nilium: objc is more performant than swift?
Wolland_ has joined #ruby
<hakunin>
sevenseacat: oh nice, i read that
ghr has quit [Ping timeout: 272 seconds]
<Nilium>
hakunin: By virtue of being a superset of C and allowing you to do evil things in C (or C++/Obj-C++), yes, without question.
<Mia>
Hm I see
Wolland has quit [Ping timeout: 245 seconds]
<Mia>
I'm checking the post
<Nilium>
Swift has the potential to be at least as performant as C, but it's early days.
<sevenseacat>
was written by one of the guys here. pretty smart dood.
<pontiki>
excellent quote: Swift looked like Ruby and C# had a beautiful strongly-typed baby
<Nilium>
s/C#/Scala/
SilkFox_ has quit [Ping timeout: 244 seconds]
<hakunin>
Nilium: i just thought that swift is low level enough, and perhaps objc only wins on some hacky micro-optimizations that you could deem insignificant
<Nilium>
Fixed that for you. Heathen.
<Nilium>
Swift isn't really very low-level.
<pontiki>
actually, i thought swift rather high-lvel
<Nilium>
Can't really get low level without explicit memory management, control over alignment and such, etc.
krisquigley has quit [Ping timeout: 272 seconds]
<hakunin>
i mean, the mapping of swift to ios
<hakunin>
is direct enough :)
rpag has joined #ruby
IteratorP has quit [Quit: Leaving...]
<Nilium>
I'm not even sure what guarantees you can make about sequential array access in Swift depending on object type (i.e., struct vs. class) and when you can expect a cache miss
kuanyui has joined #ruby
goodenough has quit [Ping timeout: 246 seconds]
sinkensabe has joined #ruby
bal has joined #ruby
<Nilium>
And I figure if you want an easy performance boost, writing code to avoid cache misses is the easiest thing to start with.
AlexRussia has joined #ruby
lewix has quit [Remote host closed the connection]
GriffinHeart has joined #ruby
<Nilium>
The second easiest one is to stop writing code that operates on one thing at a time, since that's just stupid no matter how you look at it, but everyone does it because it's easy to think about.
charliesome has joined #ruby
<hakunin>
map reduce all the things
<Nilium>
Map and reduce are actually exactly the sort of thing I just said was stupid
<hakunin>
depends
<Nilium>
Map and reduce are one block invocation per element, whereas I'm talking about one block invocation for all elements
<Nilium>
The reason I say that is because you never want just one.
<Nilium>
Just _one_ invocation is the exceptional case. You usually want to do the same thing a lot of times, and yet you're wasting all these cycles on block invocation
gilest has quit [Remote host closed the connection]
jcdesimp has quit [Remote host closed the connection]
<pontiki>
like potato chips
<Nilium>
The reason we do it that way is because it's easy to reason about, but it's not fast
<hakunin>
i kind of lost you, how do you traverse anything
paradisaeidae has joined #ruby
<Nilium>
Well, not fastest
anaeem1 has joined #ruby
<Nilium>
My point is that you have more looping constructs than .each and .map and so on.
<hakunin>
they're highly contextual
<Nilium>
As taboo as it is in Ruby, you can get some good use out of a while loop over .each
<Hanmac>
Nilium: with #lazy you might optimize the code a bit too
<Nilium>
Depends on whether that's going to eliminate the cost of repeatedly invoking a block
rubyonrailed has joined #ruby
sigurding has joined #ruby
<Nilium>
Probably won't.
<hakunin>
lazy is easy, i'm curious about this cleverness Nilium is referring to, sounds fascinating
<Nilium>
It's less cleverness and more just the usual awareness that calling a function has a penalty
kwd has joined #ruby
<shevy>
hmm
<pontiki>
are you saying while is different because it doesn't have to traverse each element of the collection?
heftig has joined #ruby
<shevy>
how do you pass a block given to one method, to another method from inside that method?
<Nilium>
I'm saying while is different because you're not creating a block and calling it each iteration.
<hakunin>
shevy: def foo(&block); bar(&block) end
rpag has quit [Ping timeout: 246 seconds]
<shevy>
hmmmmm
<shevy>
that syntax always trips me up
jgrevich has joined #ruby
<shevy>
I mean, I am so used to blocks {} and then call yield
<pontiki>
each and map don't create blocks
<shevy>
and suddenly I have to use two &
<pontiki>
they create enumerators
<Nilium>
foo.each { |...| } ← This basically creates an object that allows you to invoke the block, passes it to .each, and .each calls it per-element
<Nilium>
.each isn't creating the block, you are.
<Nilium>
.each is just invoking it.
<Nilium>
The point is that invoking it is not free.
<pontiki>
and while () { } is not invoking a block?
<Hanmac>
Nilium: a block itself is not an object per-se ... if you use yield it does not create an Proc object
<Nilium>
while cond ; end does not invoke a block.
<Nilium>
Hanmac: That's not really the point.
<hakunin>
shevy: in arg you use & to convert block into a proc and stuff it into a varaible, it's a syntatic thing, then in method invocation you need a way to make that variable act like a block of that method, so you use & to tell ruby to treat is as a block
crazydiamond has joined #ruby
<shevy>
by the way that works very well, thanks hakunin
<Nilium>
Creating a block isn't the part that I'm talking about. It's block invocation, like I keep saying.
rubyonrailed has quit [Ping timeout: 244 seconds]
<pontiki>
yeah, that's the expensive part of looping
<hakunin>
Nilium: interesting, so this has to do with ruby internals
<hakunin>
Nilium: the overhead of invoking blocks
<Nilium>
Ruby internals, but it also applies to almost all programming languages
<Nilium>
i.e., you write a function to process one element and while iterating you pass one element at a time to a function
<Nilium>
It's easy to think about that way, but it's writing code for the exceptional case: you're not dealing with one thing, you're dealing with many things, write code for that.
gilest has joined #ruby
<Nilium>
Granted, that's harder to do in practice and chances are that's not what you need to be optimizing most things for
justinmburrous has quit [Remote host closed the connection]
<hakunin>
Nilium: could you give any simple example where code is augmented this way besides using while as opimization?
KLVTZ has joined #ruby
justinmburrous has joined #ruby
<Nilium>
Not in Ruby I couldn't.
jelera has quit [Ping timeout: 246 seconds]
yfeldblu_ has quit [Remote host closed the connection]
Deejay has joined #ruby
<hakunin>
Nilium: cause it bothers me that i can't seem to grasp the concept
AlexRussia has quit []
Deejay is now known as Guest54236
fgo has joined #ruby
zeroNones has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
justinmburrous has quit [Ping timeout: 246 seconds]
lewix has joined #ruby
aganov has joined #ruby
<hakunin>
Nilium: the only stuff that pops into my head is using matrix transformations via GPU doing math operations on multiple numbers at once
<Nilium>
That would actually be a good example.
<Nilium>
Anyway, need to go brush teeth and head off to sleep because otherwise I'm going to be more angry than usual about going to work and writing code in PHP.
<Nilium>
Because PHP.
<Nilium>
Oh god why PHP.
<sevenseacat>
lol
<Nilium>
I must've been a terrible person in a past life.
<sevenseacat>
wanna swap? you can have this spree/wordpress mashup app
cs0sf has joined #ruby
<hakunin>
we get to pick nowadays. change jobs.
<cs0sf>
hello people,
<sevenseacat>
so easy to say
<hakunin>
sevenseacat: speaking from experience (no pun)
tylersmith has quit [Remote host closed the connection]
<sevenseacat>
'just put yourself and your family in financial peril'
<sevenseacat>
hakunin: guessing you live in a part of the world where that is easy to do
gvenkat_ has quit [Quit: Leaving]
<cs0sf>
can i ask something'
<Nilium>
This is my first developer job, so I'll just trust it gets better than PHP
starkhalo has quit [Ping timeout: 244 seconds]
gilest has quit [Remote host closed the connection]
<sevenseacat>
Nilium: really? i would have pegged you for much more experienced
<hakunin>
sevenseacat: not trying to trivialize it, but know some people are unreasonably reluctant. pushed a few people i know around me to do this and they ended up happy
<Nilium>
I have a lot of experience coding for myself and over the years, but little professional experience.
<hakunin>
and i'd recommend to focus on remote
mikeg has joined #ruby
fabrice31 has joined #ruby
<hakunin>
but it's all a matter of taste
<Nilium>
Github doesn't mean much to a lot of HR peoples either, apparently.
coderhs has quit [Ping timeout: 240 seconds]
<sevenseacat>
i'd have to focus on remote if i wanted another ruby job
Synthbread has joined #ruby
jgrevich has quit [Quit: jgrevich]
thebigman has joined #ruby
tylersmith has quit [Ping timeout: 272 seconds]
SilkFox_ has joined #ruby
spicerack has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
zeroNones has joined #ruby
zeroNones has quit [Client Quit]
<Nilium>
My job title is technically junior iOS developer, but I keep pointing out that I haven't touched Obj-C since I started working
<Nilium>
Well, haven't touched it for work.
havenwood has quit [Remote host closed the connection]
<Nilium>
I've been doing personal stuff, but I keep that under wraps because my NDA is all-consuming.
<arup_r>
Need one help suppose I did.. doc = Nokogiri::HTML(open("http://www.threescompany.com/")) Now I get the Nokogiri::HTML::Document object... From the document object can I get the actual **uri** back ?
<arup_r>
Is there any utility method in Nokogiri API? I am not finding it ..
agent_white has quit [Read error: Connection reset by peer]
klaut has joined #ruby
<sevenseacat>
Mia: your line is interpreted as if(object.is_a?(Twitter::Tweet) && !object.text.include?)"RT "
<shevy>
Mia you only have to remember that && has not the same precedence as "and"
KLVTZ has quit [Quit: Lost terminal]
<Mia>
hm
* Hanmac
is reminded at Mindy from Animaniacs ... like "you need to use ()" - "Why?" - "because otherwise it does not work" - "Why?"
<sevenseacat>
which kinda isnt what you want
<Mia>
so instead of useng && or ||, should I directly type and or ?
<sevenseacat>
no - always use && and ||
<Mia>
isn't it the same thing
oo_ has quit [Remote host closed the connection]
<sevenseacat>
no
<Mia>
O.o
<sevenseacat>
different levels of precendence
<sevenseacat>
&& is much stronger than `and`
mozzarella has joined #ruby
* Mia
googles precendence
<sevenseacat>
i also cant spell the word 'precedence'
krisquig_ has joined #ruby
<Hanmac>
because it did fall in the coding pot while it was made ... now && is stronger than and
<sevenseacat>
`importance` might also work - ever do BODMAS with maths at school? :)
<Mia>
oh
relix has joined #ruby
<Mia>
like * and + difference
<sevenseacat>
multiplication has higher precedence than addition, for example
echooo has quit [Ping timeout: 244 seconds]
<Mia>
order
<sevenseacat>
exactly
<Mia>
okay
<shevy>
Mia see, after you wrote a few thousands line of code in ruby
<Mia>
:)
<shevy>
you no longer have to ask whether you will use && or and
wallerdev has quit [Quit: wallerdev]
<shevy>
because you will simply look at your code and intuitively know which way is right and which way is wrong
<sevenseacat>
i think rubocop will flag `and` as an offense
<Mia>
also when I'm creating the object, it's created like this:
<Mia>
client = Twitter::Streaming::Client.new
nonmadde_ has joined #ruby
thejamespinto has quit [Remote host closed the connection]
<shevy>
rubocop flags itself as offense
mijicd has joined #ruby
<Mia>
I've finished the codecademy simple tutorial but didn't see anything like that
sigurding has joined #ruby
jack_rabbit has joined #ruby
echooo has joined #ruby
<Mia>
what the hell is going on there between::those::things
<shevy>
that is just nesting
<sevenseacat>
like what? its just an assignment
<shevy>
you can use a million ::
<sevenseacat>
:: is namespacing
<shevy>
take sevenseacat care
<shevy>
erm
<shevy>
*here
dx7 has joined #ruby
<shevy>
with namespacing it would be:
qba73 has joined #ruby
<shevy>
Seven::Sea::Cat
<sevenseacat>
module Seven; module Sea; class Cat; end; end; end
<shevy>
yeah
<shevy>
just like your Twitter thing Mia
charliesome has joined #ruby
<Mia>
so why not dots but :
<Mia>
oh, method.
<sevenseacat>
theyve put everything into a Twitter namespace in case you're using something else that defines a Streaming class - that would be massive conflicts
<Mia>
ok I see
oo_ has joined #ruby
<Mia>
ok. I got my bot running.
<Mia>
:)
carraroj has joined #ruby
ctp has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
krisquig_ has quit [Ping timeout: 260 seconds]
Hobogrammer has quit [Ping timeout: 245 seconds]
<sevenseacat>
awesome
<Mia>
it's jsut streaming right now, but still a step
nonmadden has quit [Ping timeout: 260 seconds]
mozzarella has quit [Ping timeout: 245 seconds]
thejamespinto has joined #ruby
dx7 has quit [Ping timeout: 258 seconds]
ggherdov___ has quit [Changing host]
ggherdov___ has joined #ruby
ggherdov___ has quit [Changing host]
ggherdov___ has joined #ruby
sk87 has joined #ruby
mozzarella has joined #ruby
ggherdov___ is now known as ggherdov
emrox has joined #ruby
tvw has joined #ruby
carraroj has quit [Read error: Connection reset by peer]
carraroj has joined #ruby
charliesome has quit [Quit: zzz]
carraroj has quit [Changing host]
carraroj has joined #ruby
cerberblue has quit [Ping timeout: 264 seconds]
sigurding has quit [Read error: No route to host]
alem0lars has joined #ruby
thomasxie has left #ruby [#ruby]
willgo has quit [Remote host closed the connection]
SilkFox_ has joined #ruby
nonmadde_ has quit [Quit: Leaving...]
nonmadden has joined #ruby
threesixes has joined #ruby
bigkevmcd has joined #ruby
jack_rabbit has quit [Ping timeout: 244 seconds]
lewix has quit [Remote host closed the connection]
carraroj has quit [Ping timeout: 240 seconds]
sigurding has joined #ruby
elshaka has quit [Quit: Saliendo]
GriffinHeart has joined #ruby
garbanotas has joined #ruby
gilest has joined #ruby
SilkFox_ has quit [Ping timeout: 272 seconds]
alex88 has joined #ruby
enali has joined #ruby
zorak8 has quit [Ping timeout: 245 seconds]
goshdarnyou has quit [Quit: Connection closed for inactivity]
LiohAu_ has joined #ruby
abdulsattar has joined #ruby
MasterPiece is now known as Qarekhani
paradisaeidae has quit [Quit: ChatZilla 0.9.90.1 [Firefox 33.0/20140923222114]]
Qarekhani is now known as MasterPiece
thomasxie has joined #ruby
rubyonrailed has joined #ruby
foooobear has quit [Ping timeout: 245 seconds]
ndrei has joined #ruby
jonmorehouse has joined #ruby
Takle has joined #ruby
krisquigley has quit [Remote host closed the connection]
AFKGeek has joined #ruby
lsmola has joined #ruby
ht__th has joined #ruby
ta has joined #ruby
elaptics`away is now known as elaptics
kaspertidemann has joined #ruby
thomasxie has quit [Read error: Connection reset by peer]
Takle has quit [Ping timeout: 246 seconds]
thomasxie has joined #ruby
coderhs has joined #ruby
oo_ has quit [Remote host closed the connection]
Wolland has joined #ruby
roolo has joined #ruby
Wolland_ has quit [Ping timeout: 260 seconds]
yfeldblum has joined #ruby
enali has quit [Remote host closed the connection]
j_mcnally has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
shredding has joined #ruby
mikeg has quit [Read error: Connection reset by peer]
alem0lars has quit [Quit: AFK..]
sigurding has quit [Quit: sigurding]
echooo has quit [Ping timeout: 272 seconds]
ghr has joined #ruby
oo_ has joined #ruby
oo_ has quit [Remote host closed the connection]
oo_ has joined #ruby
echooo has joined #ruby
MasterPiece is now known as Qarekhani
hiyosi has joined #ruby
Qarekhani is now known as MasterPiece
rdark has joined #ruby
jontmorehouse has joined #ruby
justinmburrous has joined #ruby
echooo1 has joined #ruby
alem0lars has joined #ruby
jonmorehouse has quit [Ping timeout: 260 seconds]
echooo has quit [Ping timeout: 250 seconds]
mrfoto has joined #ruby
hiyosi has quit [Ping timeout: 260 seconds]
seitensei has quit [Ping timeout: 250 seconds]
justinmburrous has quit [Ping timeout: 244 seconds]
Wolland has quit [Remote host closed the connection]
ndrei has quit [Disconnected by services]
mrfoto has quit [Client Quit]
<Mia>
Question
mrfoto has joined #ruby
ndrei has joined #ruby
Igneous has quit [Ping timeout: 246 seconds]
<Mia>
the documentation says Chatterbot comes with a script named chatterbot-register which will handle two tasks -- it will authorize your bot with Twitter and it will generate a skeleton script, which you use to implement your actual bot." - how can Irun this thing?
<jlebrech>
pontiki: yeah i mean __END__ and the DATA variable :)
<pontiki>
right, i have no idea what that's actually called. Embedded data maybe?
fgo has quit [Remote host closed the connection]
jontmorehouse has quit [Ping timeout: 260 seconds]
rdark has quit [Ping timeout: 245 seconds]
<Mia>
Anyone around?
Advocation has quit [Quit: Advocation]
<Mia>
I need a little help with a gem
<pontiki>
ya
rdark has joined #ruby
<arup_r>
I have an array --- [1, 2, 's', nil, '', 'd'] I want to use #grep to filter the array with `nil` and empty string.. But not able to make correct Regex... Any help please ?
banister has joined #ruby
<Mia>
I've found "chatterbot" gem that works like a wrapper over twitter gem
<canton7>
why are you using grep? grep uses regex. regex is for searching strings
sk87 has quit [Quit: My Mac Mini has gone to sleep. ZZZzzz…]
<Mia>
(this is a general question btw) - how does it work?
<wasamasa>
that's the so-called DSLs in ruby
<wasamasa>
Mia: well, you don't really want to know
<Mia>
Oh, that's a special thing?
<wasamasa>
Mia: might cause you to feel sick
<Mia>
O_O
<Mia>
why
* Mia
is curious
<wasamasa>
because it's pretty horribly done, that's why
<Mia>
oh, you mean particularly in this example?
<wasamasa>
and works well enough if it's done in one domain without much interoperation
<wasamasa>
no, generally
<Mia>
or ruby in general?
<Mia>
hm
emocakes has quit []
<wasamasa>
I come from a language where this kind of stuff is done in a better manner :P
<Mia>
whats that?
<wasamasa>
hence my reaction once I found out how the rubyists do it
GriffinHeart has quit [Remote host closed the connection]
fgo has joined #ruby
<wasamasa>
elisp, the language ruby's creator stole a bunch of things from
<Mia>
Hm
hiyosi has quit [Ping timeout: 272 seconds]
<Mia>
I never heard it
Takle has quit [Remote host closed the connection]
<wasamasa>
it's what emacs is mostly written in
<Mia>
I see
<Mia>
well I've finished 2 tutorials to learn the basics
justinmburrous has quit [Ping timeout: 240 seconds]
<wasamasa>
despite it being a rather peculiar lisp dialect, it has pretty much everything to be used for serious tasks
<Mia>
nothing is close to what I see here, I'm struggling with code for the last few hours non stop, trying to understand how people do things
fella5s has joined #ruby
KC9YDN has joined #ruby
einarj has quit [Read error: No route to host]
ta has joined #ruby
oo_ has joined #ruby
roolo has quit [Remote host closed the connection]
roolo has joined #ruby
elstif has joined #ruby
lolmaus has joined #ruby
Advocation has quit [Quit: Advocation]
oo_ has quit [Remote host closed the connection]
roolo has quit [Ping timeout: 245 seconds]
gaussblurinc1 has joined #ruby
SilkFox_ has joined #ruby
GluonQuark has joined #ruby
emrox has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
larsam has joined #ruby
cherwin has quit [Read error: Connection reset by peer]
Veidit_ has quit [Read error: Connection reset by peer]
Veidit has joined #ruby
ndrei has quit [Ping timeout: 246 seconds]
root3d has joined #ruby
bigkevmcd_ is now known as bigkevmcd
ndrei has joined #ruby
emrox has joined #ruby
havenwood has joined #ruby
SilkFox_ has quit [Ping timeout: 245 seconds]
thomasxie has quit [Quit: Leaving.]
<kuanyui>
I'm tring to use getch() in Curses to detect key press, but getch() would suspend all the other action(e.g. A loop + sleep). How to detect key press event and avoid the whole program suspended for reading input?
aspiers has quit [Ping timeout: 272 seconds]
Ridley5 has joined #ruby
Hanmac has quit [Quit: Leaving.]
Hanmac has joined #ruby
Advocation has joined #ruby
mofai_ has joined #ruby
sinkensabe has joined #ruby
einarj has joined #ruby
yacks has quit [Ping timeout: 250 seconds]
GriffinHeart has joined #ruby
oo_ has joined #ruby
stylus has quit [Ping timeout: 260 seconds]
yacks has joined #ruby
jottr has joined #ruby
kuanyui has quit [Quit: Leaving.]
aspiers has joined #ruby
havenwood has quit [Ping timeout: 264 seconds]
kuanyui has joined #ruby
GriffinHeart has quit [Ping timeout: 246 seconds]
andrewlio1 has joined #ruby
andrewlio has quit [Ping timeout: 258 seconds]
thejamespinto has quit [Read error: Connection reset by peer]
thejamespinto has joined #ruby
stylus has joined #ruby
cherwin has joined #ruby
phutchin1 has joined #ruby
elstif has quit [Quit: Leaving.]
mofai_ has quit [Quit: Leaving...]
fabrice31 has joined #ruby
elstif has joined #ruby
<krz>
whats the best way to check if an array contains all 0?
<workmad3>
krz: as long as it's only numbers, you can do 'ary.all?(&:zero?)'
<krz>
sum?
<krz>
i could sum it too
<workmad3>
krz: otherwise, you could do 'ary.all?{|i| i == 0}'
<krz>
ok cool i like that
<osse>
[-1, 0, 1] ?
iamdoo2 has joined #ruby
dblessing has joined #ruby
dblessing has quit [Client Quit]
tokik has quit [Ping timeout: 258 seconds]
jottr_ has joined #ruby
robustus is now known as robustus|Off
cherwin has quit [Read error: Connection reset by peer]
alem0lars has joined #ruby
elstif has quit [Client Quit]
Takle has joined #ruby
dx7 has joined #ruby
MCDev has quit [Ping timeout: 250 seconds]
jottr has quit [Ping timeout: 272 seconds]
<Hanmac>
workmad3: ary.all?(&:zero?)
<workmad3>
Hanmac: that was my first suggestion :P
<workmad3>
Hanmac: I suggested the other in case the array lacked homogenous types ;)
<workmad3>
Hanmac: i.e. if the array may contain an element without a zero? method ;)
<Hanmac>
damiit for some resion i didnt see that message ... (hm maybe it need a little sleep after eating)
Koshian has quit [Quit: Tiarra 0.1+svn-39209: SIGTERM received; exit]
agent_white has quit [Read error: Connection reset by peer]
<workmad3>
heh
agent_white has joined #ruby
<workmad3>
all this talk of food has made me hungry
skammer3 has quit [Ping timeout: 260 seconds]
chthon has quit [Ping timeout: 244 seconds]
alem0lars has quit [Quit: alem0lars]
dx7 has quit [Ping timeout: 245 seconds]
Morkel has quit [Ping timeout: 260 seconds]
<Hanmac>
hihi watch an episode of AdventureTime with the CandyKingdom and the BreakfastPrincess ;P i mean she is litterally made of waffles, eggs and bacon *g
bjornar has quit [Ping timeout: 258 seconds]
Takle has quit [Remote host closed the connection]
SilkFox_ has joined #ruby
Aaaal has joined #ruby
nonmadden has quit [Remote host closed the connection]
arya_ has joined #ruby
hiyosi has joined #ruby
GriffinHeart has joined #ruby
fgo has quit [Remote host closed the connection]
<kuanyui>
kuanyui: Curses.timeout=0
charliesome has joined #ruby
Takle has joined #ruby
<wasamasa>
omnomnom
skammer3 has joined #ruby
justinmburrous has joined #ruby
nrsk has joined #ruby
apeiros has joined #ruby
nonmadden has joined #ruby
ciampix has quit [Quit: Ex-Chat]
nonmadden has quit [Remote host closed the connection]
justinmburrous has quit [Read error: Connection reset by peer]
ciampix has quit [Read error: Connection reset by peer]
justinmburrous has quit [Ping timeout: 272 seconds]
Insanity_ has joined #ruby
Insanity_ has quit [Client Quit]
MCDev has joined #ruby
Insanity133 has joined #ruby
bjornar has quit [Excess Flood]
heliosaurus has joined #ruby
bjornar has joined #ruby
jottr_ has quit [Ping timeout: 272 seconds]
buub has joined #ruby
mupkoo has joined #ruby
<heliosaurus>
Hello guys, quick question. I have two versions of a plugin installed, how can I specify which one to use?
<heliosaurus>
It is not my system, and I believe it uses neither rvm nor rbenv (is this even possible?). I just know for a fact that three are multiple versions of the plugin installed through 'gem list'
kaspertidemann has joined #ruby
apeiros has joined #ruby
vinleod has joined #ruby
decoponio has joined #ruby
roolo has joined #ruby
tkuchiki has quit [Remote host closed the connection]
root3d has quit [Quit: Leaving]
abdulsattar has joined #ruby
<Hanmac>
heliosaurus: use gem "name", "version" before require
szarubin has joined #ruby
jottr_ has joined #ruby
iamdoo2_ has joined #ruby
zarubin has joined #ruby
<heliosaurus>
hello Hanmac. I am not requiring anything. I am just running the knife-ec2 plugin :/
zarubin has left #ruby [#ruby]
ldnunes has joined #ruby
zarubin has joined #ruby
<Hanmac>
hm i dont know how it works for such pluigin ...
<heliosaurus>
i just run "knife ec2 server create" and it automatically selects the latest installed version I believe, but I want to specify another version to use
Takle has quit []
bayed has joined #ruby
iamdoo2 has quit [Ping timeout: 240 seconds]
Takle has joined #ruby
last_staff has joined #ruby
f0ster has quit [Read error: Connection reset by peer]
garethrees has joined #ruby
benzrf is now known as benzrf|offline
Xiti` has joined #ruby
jimmyhoughjr has quit [Read error: Connection reset by peer]
voodoofish1 has quit [Read error: Connection reset by peer]
robbyoconnor has quit [Excess Flood]
robbyoconnor has joined #ruby
fgo has joined #ruby
aclearman037 has joined #ruby
voodoofish has joined #ruby
Xiti has quit [Ping timeout: 245 seconds]
doubleemms has quit [Ping timeout: 260 seconds]
TorpedoSkyline has joined #ruby
szarubin has quit [Quit: Leaving]
szarubin has joined #ruby
ghr has quit [Ping timeout: 272 seconds]
Alina-malina has quit [Ping timeout: 272 seconds]
Alina-malina has joined #ruby
Hyknua has quit [Ping timeout: 244 seconds]
Alina-malina has quit [Changing host]
Alina-malina has joined #ruby
northfurr has quit [Quit: northfurr]
workmad3 has quit [Ping timeout: 245 seconds]
havenwood has joined #ruby
voodoofish has quit [Read error: Connection reset by peer]
nhhagen has joined #ruby
TorpedoSkyline has quit [Client Quit]
voodoofish has joined #ruby
ctp has joined #ruby
aleatorik has joined #ruby
banister has joined #ruby
Hyknua has joined #ruby
aleatorik has quit [Client Quit]
tvw has quit [Ping timeout: 240 seconds]
willgo has joined #ruby
SilkFox_ has joined #ruby
tvw has joined #ruby
<mostlybadfly>
Good morning amigos
<Mia>
Ahoy
havenwood has quit [Ping timeout: 264 seconds]
sk87 has quit [Quit: My Mac Mini has gone to sleep. ZZZzzz…]
mtlatif__ has quit [Quit: Connection closed for inactivity]
MasterPiece has quit [Quit: Leaving]
Beoran__ has quit [Ping timeout: 245 seconds]
mofai has quit [Read error: Connection reset by peer]
AlexRussia has joined #ruby
mofai has joined #ruby
goodenough has joined #ruby
hplc has quit [Quit: Lämnar]
lxsameer has quit [Ping timeout: 272 seconds]
mikecmpbll has joined #ruby
arya_ has quit []
SilkFox_ has quit [Ping timeout: 244 seconds]
MasterPiece has joined #ruby
charliesome has quit [Quit: zzz]
cherwin has joined #ruby
SilkFox_ has joined #ruby
lxsameer has joined #ruby
<Hanmac>
heliosaurus: hm i think that might not be easy possible without rvm and/or gemset
adac has joined #ruby
WillAmes has quit [Remote host closed the connection]
<adac>
For some reasons my ruby app does not install gems that are marked as "add_development_dependency" in a gem that I install on my ruby app. Any ideas what might be wrong?
<canton7>
the last bullet point is the relevant one
nathankleyn has joined #ruby
Jackneill has joined #ruby
amvadder has joined #ruby
amvadder has left #ruby [#ruby]
<canton7>
i.e. "find a suitable interface and bind to it". the interface it binds to is reachable through localhost/127.0.0.1
robustus is now known as robustus|Off
chthon has joined #ruby
jerius has quit []
bluOxigen has quit [Ping timeout: 245 seconds]
bluOxigen has joined #ruby
ctp has joined #ruby
ciampix has joined #ruby
jusmyth1 has joined #ruby
livingstn has joined #ruby
Koshian has joined #ruby
MasterPiece has quit [Ping timeout: 258 seconds]
gaussblurinc1 has joined #ruby
SilkFox_ has joined #ruby
<shevy>
huh Mia is fast
<shevy>
already at sinatra now
<shevy>
then rails
<shevy>
:D
Takle has quit [Remote host closed the connection]
<rpag>
then...
<shevy>
then the first roidrage
<shevy>
"rails is a ghetto" or "rails is shrinking my penis"
<rpag>
haha
Takle has joined #ruby
<Mia>
shevy, it's fun :)
<Mia>
I've already made my twitter stream thing
<Mia>
trying to conenct it to a website
spastorino has joined #ruby
relix has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<shevy>
that is so weird
<shevy>
to even write code that uses twitter
<shevy>
I don't think I have ever done that myself
nathankleyn has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<shevy>
but let's see that you are putting things where they belong to
<shevy>
do you use modules yet?
havenwood has joined #ruby
<shevy>
I usually start projects by defining a bunch of constants
<shevy>
into a module of that project main namespace, usually I will call it: module Constants
<Mia>
I'm just using the Twitter library
kuanyui has joined #ruby
<Mia>
I mean.. "gem"
<Mia>
feeding stuff in it and gettin funny outputs
<Mia>
that's all
<Mia>
I also did some maths stuff such as fibonacci and golden ratio just because it's fun
<Mia>
it's just printing values, that's all
gccostabr has joined #ruby
workmad3 has joined #ruby
SilkFox_ has quit [Ping timeout: 245 seconds]
<shevy>
hmm ok
<shevy>
so you have not yet given your project a name
jimmyy has joined #ruby
<Mia>
not yet no
<shevy>
that is usually the hardest part
<Mia>
:) agreed
<rpag>
sometimes picking a name is the hardest part -_-
<Mia>
well for experimental projects I find it easy to name
<shevy>
if you ever find other gems with silly names, you'll know that the author failed at naming his project in a sensible manner
<shevy>
yes
<shevy>
that is how silly names are made Mia
<Mia>
Right now I would prefer to call it "glitch" because I don't kno what the hell is going on
<shevy>
you are thinking like 50% of the other authors now
<Mia>
I like silly names :)
<shevy>
:(
<shevy>
I always try to find names that are related to the task at hand
<shevy>
project: cut_audio, with the main class being called CutAudio, and it ... cuts audio
<Mia>
I like names that are good for branding
arup_r has joined #ruby
<Mia>
if I made it I would possibly name it waveknife
<Mia>
or something along the lines
rkalfane has joined #ruby
AtumT has joined #ruby
cocotton has joined #ruby
havenwood has quit [Ping timeout: 264 seconds]
cocotton has quit [Remote host closed the connection]
relix has joined #ruby
Takle has quit [Remote host closed the connection]
last_staff has quit [Quit: run!!...]
<shevy>
know what would be cool?
Tomme has joined #ruby
<shevy>
ruby with optional static typing
<Mia>
shevy, what do you mean
<pontiki>
that would be ruby 3
<pontiki>
at least, that's one of the things Matz is proposing
<shevy>
Mia well right now I have to do checks on my own
<wasamasa>
pontiki: I wonder whether he stole that from guido
<shevy>
like, some variables are strings, arrays, hashes, but a few others can only be a boolean value
<wasamasa>
pontiki: who all of a sudden called it a cool feature to have
<shevy>
everyone can become wiser :)
<shevy>
pontiki really?
krz has joined #ruby
<Mia>
hmm
bigkevmcd_ has joined #ruby
<Mia>
what do you think about nodejs btw
<shevy>
it is javascript
<Mia>
I agree the blah factor about it
<Mia>
but as a framework, what do you think
<shevy>
we do not have much choice in the browser
<workmad3>
who doesn't love tasty webscale nodings?
bigkevmcd has quit [Disconnected by services]
bigkevmcd_ is now known as bigkevmcd
<shevy>
I can not think of it as a framework or not because I don't have any real choice. I have to use javascript if I wish to handle other people's user experience when they browse the www and visit a page
yfeldblum has quit [Remote host closed the connection]
Takle has joined #ruby
<canton7>
ruby copying php? no way!
<workmad3>
shevy: nodejs is nothing to do with the browser
<shevy>
it's like eating cod liver
<rpag>
shevy, have you seen opal?
<shevy>
why does nodejs have a js part
<shevy>
rpag I think so; I did not really understand what to do with it though
<workmad3>
shevy: because it's a framework around running js outside of the browser
<shevy>
ack
<shevy>
so that is like releasing godzilla
<shevy>
the beast is out of the cage
<shevy>
it will SPREAD TO ALL OF US
cocotton has joined #ruby
<shevy>
gozilla - mozilla hmmm :)
cocotton has quit [Remote host closed the connection]
<rpag>
shevy, you can use it to write a ruby-like language in the browser, it compiles to JS
<shevy>
I'm gonna troll #firefox ...
jeremy04 has joined #ruby
cocotton has joined #ruby
<shevy>
rpag yeah well
<shevy>
it sounds cool
<cs0sf>
shevy ..yeah
<shevy>
but I still did not really understand it ...
<rpag>
alright
<shevy>
it sounds too good to be true too
<workmad3>
shevy: lots of things have started treating JS as a portable asm :)
<shevy>
oh man
<workmad3>
shevy: so lots of projects have popped up that will trans-compile one language into JS to run it on a JS platform (such as the browser or on nodejs)
<Mia>
:)
<Mia>
:)
coderdad has joined #ruby
<Mia>
Hmm there is a problem with my messages
<Hanmac>
workmad3: my current project is to write haxe code that gets "compiled" into js code and then be put into a browser app ;P
relix has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<Mia>
Hanmac, lol
nathankleyn has joined #ruby
<workmad3>
Hanmac: why did you quote 'compiled'?
<workmad3>
Hanmac: it is a compilation step :P
<workmad3>
Hanmac: unless you're gonna write a haxe VM or interpreter in JS ;)
anaeem1 has quit [Remote host closed the connection]
<Hanmac>
no ... that would be just creepy ...
<workmad3>
shevy: hell, emscripten has existed for quite a while now, which can cross-compile LLVM bytecode into JS ;)
cs0sf has quit [Ping timeout: 260 seconds]
mwlang has joined #ruby
mdunbavan1985_ has joined #ruby
jerius has joined #ruby
GriffinHeart has joined #ruby
<mdunbavan1985_>
can anyone help with an issue I am having with adding images to a gallery that is attached to a book?
<mdunbavan1985_>
Basically I can add images to the gallery but when I try and add images to the gallery via being published on the book form it will not add the images to the assigned book
ctp has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
bluOxigen has quit [Ping timeout: 246 seconds]
<Mia>
Hm here is a question: I tried to create a counter within the "/hi" page of sinatra
<Mia>
but since it's a neverending loop, the page never loads
<Mia>
What's the optimal workaround for those things?
relix has joined #ruby
hiyosi has joined #ruby
<Mia>
I know that I'll also have a similar issue whyn streamig tweets as well since the stream never ends but I also need to display a page
relix has quit [Client Quit]
northfurr has quit [Quit: northfurr]
<shevy>
workmad3 seems as if everyone is using LLVM nowadays
danguita has quit [Ping timeout: 264 seconds]
<shevy>
Mia you are not thinking in the ruby way yet
bluOxigen has joined #ruby
<shevy>
def '/hi'
<shevy>
@counter += 1
<workmad3>
Mia: you need to render a HTML page that then either opens a persistent connection to the server (such as a websocket) or polls the server at frequent intervals
<shevy>
and return a string that includes the counter
mdunbavan1985_ has quit [Quit: Page closed]
GriffinHeart has quit [Ping timeout: 240 seconds]
<workmad3>
Mia: i.e. you need to think in terms of request-response cycles... the browser makes a request, you need to respond with the data at that time
<shevy>
she could also store the counter in a file!
<workmad3>
Mia: and then another request needs to be made in order to update the data
<Mia>
Hm, is that possible via sinatra?
<workmad3>
(in the browser)
cpruitt has joined #ruby
ctp has joined #ruby
<workmad3>
Mia: sinatra only cares about the server endpoints... what runs in the browser is HTML and javascript ;)
<Mia>
shit welcome to the rabbit hole
danguita has joined #ruby
* Mia
notes to self
mengu has quit [Remote host closed the connection]
justinmburrous has joined #ruby
entrenador has joined #ruby
entrenador has quit [Client Quit]
mosez_ is now known as mosez
entrenador has joined #ruby
hiyosi has quit [Ping timeout: 260 seconds]
tjr9898 has joined #ruby
entrenador has left #ruby [#ruby]
xxneolithicxx has joined #ruby
<xxneolithicxx>
hi all, anyone have any experience with using Jruby? Im considering switching my multithreaded ruby app over to Jruby to get real threading as im not getting the full cpu utilization that I need but I have a few questions.
<Hanmac>
xxneolithicxx: there is a #jruby channel too which might be more helpful
<xxneolithicxx>
k
justinmburrous has quit [Ping timeout: 250 seconds]
dx7 has joined #ruby
SilkFox_ has joined #ruby
cocotton has quit [Remote host closed the connection]
ursooperduper has joined #ruby
cleopatra has joined #ruby
sailias has joined #ruby
wald0 has quit [Quit: Lost terminal]
shredding has quit [Quit: shredding]
postmodern has quit [Quit: Leaving]
<Hanmac>
shevy the new Iphone has a Futurama edition ... now with a "bender" chassis ;P
Channel6 has joined #ruby
<shevy>
omg
willgo has quit [Remote host closed the connection]
oleo has joined #ruby
cocotton has joined #ruby
cocotton has quit [Remote host closed the connection]
benzrf|offline is now known as benzrf
Jackneill has quit [Ping timeout: 250 seconds]
cocotton has joined #ruby
hellangel7 has joined #ruby
<apeiros>
Hanmac: adaptive casing
Jackneill has joined #ruby
yfeldblum has joined #ruby
_maes_ has joined #ruby
cherwin has quit [Ping timeout: 260 seconds]
karupa is now known as zz_karupa
jusmyth1 has quit [Quit: Leaving.]
SilkFox_ has quit [Ping timeout: 272 seconds]
snath has quit [Ping timeout: 258 seconds]
yfeldblu_ has joined #ruby
mengu has joined #ruby
mengu has joined #ruby
cherwin has joined #ruby
cherwin has quit [Max SendQ exceeded]
cherwin has joined #ruby
mark_locklear has joined #ruby
zarubin has joined #ruby
yfeldblum has quit [Ping timeout: 240 seconds]
Raboo has quit [Ping timeout: 246 seconds]
paulfm has quit []
garethrees has quit [Ping timeout: 272 seconds]
Raboo has joined #ruby
yfeldblu_ has quit [Ping timeout: 245 seconds]
arup_r has quit [Remote host closed the connection]
Veidit has quit [Read error: Connection reset by peer]
antlong has joined #ruby
cocotton has quit [Remote host closed the connection]
clauswitt has joined #ruby
qmfnp has joined #ruby
shredding has joined #ruby
obscured has joined #ruby
anarang has quit [Quit: Leaving]
slester has joined #ruby
Takle has quit [Remote host closed the connection]
thejamespinto has quit [Ping timeout: 240 seconds]
paulfm has joined #ruby
Takle has joined #ruby
cleopatra has quit [Ping timeout: 246 seconds]
Takle has quit [Remote host closed the connection]
lw has joined #ruby
thejamespinto has joined #ruby
ciampix has quit [Quit: Ex-Chat]
ciampix has joined #ruby
GeorgesLeYeti has joined #ruby
<GeorgesLeYeti>
Hi
Veidit has joined #ruby
hiyosi has joined #ruby
ciampix has quit [Client Quit]
<GeorgesLeYeti>
I have a stupid question. I just wanna write a file in ruby so I make: File.open("#{Rails.root}/backups/3/#{Time.now.strftime("%d_%m_%y-%H_%M_%S")}.txt", "w") { |f| f.write('Hello!') }
gerep has joined #ruby
<GeorgesLeYeti>
But it returns Errno::ENOENT: No such file or directory @ rb_sysopen
<shevy>
god is that awful
<shevy>
can't you please break that shit up
<apeiros>
GeorgesLeYeti: means the directory does not exist
<robert_>
is it possible to use is_a? / instance_of? on an exception?
zB0hs has joined #ruby
ciampix has quit [Client Quit]
qba73 has joined #ruby
<shevy>
I guess so
<shevy>
it is available on every object
ciampix has joined #ruby
<robert_>
and hai shevy :D
<shevy>
ah you are that robert
<shevy>
I thought you are a random robert
gerep has quit [Ping timeout: 260 seconds]
ciampix has quit [Read error: Connection reset by peer]
AFKGeek has joined #ruby
<shevy>
rescue Exception => error; p error.is_a? BigError
<robert_>
undefined method `ia_a?' for #<NoMethodError:0x00000802749140>
Kricir has joined #ruby
lw has joined #ruby
<tobiasvl>
robert_: ia_a?
<robert_>
er
<shevy>
lol
gerep__ has joined #ruby
<shevy>
don't randomly beat the keyboard man
<shevy>
let's go back to the basics - how to type stuff :)
<apeiros>
robert_: yes, is_a? is available on exceptions.
<apeiros>
robert_: but better use proper rescue statement
<robert_>
apeiros: I would, if I wasn't poping it off of a Thread::Queue. :p
cleopatra has joined #ruby
<robert_>
pop'ing **
mskaesz has joined #ruby
<apeiros>
popping?
mkaesz has quit [Read error: No route to host]
arcsky has joined #ruby
gerep_ has quit [Ping timeout: 245 seconds]
mengu has quit [Remote host closed the connection]
Advocation has quit [Quit: Advocation]
reisl has joined #ruby
<robert_>
apeiros: yeah; bit of a long story- but I'm writing a threaded event logger. You have threads that write to private buffers. Exceptions are returned via either your private result queues or the generic channel queue.
clauswitt has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<shevy>
Make sure that `gem install pg -v '0.17.1'` succeeds before bundling.
<shevy>
you failed to install the postgresql gem
<shevy>
version 0.17.1
<shevy>
if you are on linux then this probably was because it failed to compile the native extensions
<shevy>
which 80% of the time may be because of a lack of the respective .h file
<shevy>
*files
benzrf|offline is now known as benzrf
mynameisbrian has quit [Quit: Leaving]
<apeiros>
arcsky: I'm not sure why you think that answers the question *why* you use sudo
boombadaroomba has joined #ruby
<apeiros>
arcsky: anyway, did you read what it prints and actually do "Make sure that `gem install pg -v '0.17.1'` succeeds before bundling." as it says?
gerep_ has joined #ruby
skolman has joined #ruby
mary5030 has joined #ruby
emocakes has quit []
ephemerian has quit [Quit: Leaving.]
danguita has left #ruby ["WeeChat 0.4.2"]
Ridley5 is now known as zzz_Ridley
skammer3 has quit [Ping timeout: 272 seconds]
skammer3 has joined #ruby
jobewan has joined #ruby
buub has quit [Read error: Connection reset by peer]
SilkFox_ has joined #ruby
buub has joined #ruby
boombadaroomba has quit [Ping timeout: 272 seconds]
Sharker has quit [Remote host closed the connection]
<xxneolithicxx>
re camping: as cool as it might be if that actually works, id be paranoid as shit using something like that I cant read to validate because of its purposely obfuscated code.
treehug88 has joined #ruby
Sharker_ has joined #ruby
stunder has joined #ruby
klmlfl has joined #ruby
bthesorceror has joined #ruby
banister has quit [Ping timeout: 260 seconds]
kaspertidemann has quit []
nathankleyn has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
fijimunkii has joined #ruby
Hightower660 has joined #ruby
nathankleyn has joined #ruby
gerep_ has joined #ruby
railis has joined #ruby
tkuchiki has quit [Remote host closed the connection]
xxneolithicxx has quit [Quit: Leaving.]
Hightower661 has quit [Ping timeout: 272 seconds]
bal has quit [Quit: bal]
zeroNones has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
Hightower666 has quit [Ping timeout: 246 seconds]
mpistone has joined #ruby
Hightower666 has joined #ruby
gerep__ has quit [Ping timeout: 245 seconds]
fgo has joined #ruby
thagomizer has joined #ruby
justinmburrous has joined #ruby
wpp has joined #ruby
ursooperduper has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
Aaaal has joined #ruby
lw has quit [Quit: s]
Takle has quit [Read error: No route to host]
SilkFox_ has joined #ruby
zeroNones has joined #ruby
kireevco has quit [Read error: Connection reset by peer]
fgo has quit [Ping timeout: 258 seconds]
abdulsattar has quit [Ping timeout: 272 seconds]
carraroj has quit [Ping timeout: 260 seconds]
subopt has left #ruby [#ruby]
HelperW has quit [Quit: Computer has gone to sleep.]
HelperW has joined #ruby
kireevco has joined #ruby
freerobby has joined #ruby
TieSoul has left #ruby [#ruby]
danijoo_ has quit [Read error: Connection reset by peer]
danijoo has joined #ruby
HelperW has quit [Ping timeout: 258 seconds]
hiall has joined #ruby
phutchins has quit [Ping timeout: 245 seconds]
hellangel7 has quit [Remote host closed the connection]
heliosaurus has quit [Remote host closed the connection]
fabrice31 has quit [Remote host closed the connection]
SilkFox_ has quit [Ping timeout: 245 seconds]
shakoep has quit [Ping timeout: 260 seconds]
snath has joined #ruby
douglasssssss has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
sinkensabe has quit [Remote host closed the connection]
slyslick has joined #ruby
hellangel7 has joined #ruby
jthomp has joined #ruby
banister has joined #ruby
ghostmoth has joined #ruby
MrBoolean has joined #ruby
Frogging101-chan has joined #ruby
nhhagen_ has joined #ruby
lxsameer has quit [Quit: Leaving]
<Frogging101-chan>
Why did rubygems install gem executables in /usr/local/bin with 750 permissions? Non-root can't execute them. I could easily change it but it seems like something went wrong if this happened.
_maes_ has quit [Ping timeout: 250 seconds]
hellangel7 has quit [Max SendQ exceeded]
Avahey has joined #ruby
einarj has quit [Remote host closed the connection]
yfeldblum has joined #ruby
hellangel7 has joined #ruby
<mozzarella>
did you install them as root?
<Frogging101-chan>
mozzarella: Yes. You're supposed to I thought
<mozzarella>
Frogging101-chan: no
nhhagen has quit [Ping timeout: 260 seconds]
<Frogging101-chan>
k
<mozzarella>
quite the opposite actually
nhhagen_ has quit [Ping timeout: 245 seconds]
<Frogging101-chan>
So, how do I remedy this and re-install as non-root?
fsapo has quit [Remote host closed the connection]
wpp has quit [Quit: ZZZzzz…]
fgo has joined #ruby
ddv has quit [Quit: *poof*]
ctp has joined #ruby
ctp has quit [Client Quit]
Takle has joined #ruby
banister_ has joined #ruby
banister_ has quit [Max SendQ exceeded]
Takle has quit [Remote host closed the connection]
qba73 has quit []
apeiros has quit [Read error: Connection reset by peer]
banister has quit [Read error: Connection reset by peer]
mkaesz has quit [Quit: Leaving...]
tylersmith has joined #ruby
skammer3 has quit [Ping timeout: 272 seconds]
Takle has joined #ruby
enyo_ has quit [Quit: leaving]
fgo has quit [Ping timeout: 272 seconds]
<pagios>
how can i implement server side to broadcast a signal to all the clients saying this button changed state?
jonr22 has quit [Ping timeout: 246 seconds]
<pagios>
they are javascript clients
Tomme has quit [Ping timeout: 260 seconds]
<pagios>
i need to develop a server side (preferably using sinatra)
Hightower660 has quit [Quit: On the other hand, you have different fingers.]
<gizmore>
pagios: how about websockets?
<fennec>
two basic approaches. (1) polling -- easy, straightforward, ugly, resource intensive, high latency (2) keeping a connection open and then sending something over it once the state changes (websockets)
<fennec>
don't know about websockets in sinatra
<pagios>
i need to send the updates over all sockets
<fennec>
depending on how easy it is to run both on your infrastructure (don't want to duplicate session setup, I assume)
awestroke has joined #ruby
gaussblurinc1 has quit [Quit: Leaving.]
treehug88 has quit [Ping timeout: 246 seconds]
cs0sf has joined #ruby
<workmad3>
pagios: I used it for a prototype back in its v0.50 days... did a prototype in a few weeks that would probably have taken months in sinatra or rails
<dfedde>
pagios: if you just want to use pure sinatra take a look at this tutorial
<workmad3>
pagios: because there's another thing you still need to take care of - making your pages react correctly to the events
<pagios>
there is a listener
sinkensabe has joined #ruby
wallerdev has joined #ruby
<fennec>
just using websockets is easy enough. coordinating an event broadcast across multiple connections being handled in multiple processes, that's a little harder. :P
<workmad3>
pagios: if you were going to consider meteor, I'd suggest going whole-hog with it though
mleone has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
sinkensabe has quit [Remote host closed the connection]
<workmad3>
fennec: and then doing that so that you don't bombard all connections with every bit of information is harder still... and then doing that with user authentication is harder yet again ;)
lkba has joined #ruby
Wolland has joined #ruby
<workmad3>
meteor is essentially all of that on top of plain websockets
mleone has joined #ruby
hamakn has quit [Remote host closed the connection]
hellangel7 has quit [Max SendQ exceeded]
GriffinHeart has joined #ruby
<pagios>
well i was using xmltrequest from javascript into sinatra, but i suffered lot of race condition and deadlocks
<pagios>
pull mechanism
cndiv has joined #ruby
<workmad3>
pagios: the other question is, how many clients are you anticipating needing to handle at once?
mikepack has joined #ruby
obscured has quit [Quit: leaving]
banister has joined #ruby
benzrf is now known as benzrf|offline
<pagios>
work_op: 5
<pagios>
workmad3:
Wolland has quit [Ping timeout: 260 seconds]
<workmad3>
pagios: ah right... so you could potentially get away with just polling for new state every few seconds, or creating a websocket in the ruby process for each client
cocotton has joined #ruby
mityaz has quit [Quit: Leaving]
<pagios>
or creating a websocket in the ruby process for each client <-- how is that done
GriffinHeart has quit [Ping timeout: 260 seconds]
<workmad3>
pagios: through googling around and figuring it out :P
cherwin has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<banister>
workmad3 sup workie
<workmad3>
banister: howdy
<workmad3>
pagios: i.e. I know roughly what I'd start considering, but that's beyond the scope of free community QA and into me doing your job for you for free
<workmad3>
(at least, it's beyond the scope for me)
<banister>
workmad3 wassup
cndiv has quit [Ping timeout: 258 seconds]
<workmad3>
waaaaaaaaassssssssup
* workmad3
reverts to the '90s
<pagios>
no worries i will figure it out
ghostmoth has joined #ruby
<workmad3>
pagios: as another brick in the wall, you'll also need to figure out on the server how to get the received event from one browser and pass it out to each of the websockets
<workmad3>
pagios: you'll likely want to consider some kind of message queue for that, I suspect
<workmad3>
preferably one that supports a fanout exchange (giving you lots of google-bait here ;) )
sanguisdex has joined #ruby
treehug88 has joined #ruby
troyready has joined #ruby
carraroj has joined #ruby
carraroj has quit [Changing host]
carraroj has joined #ruby
cocotton has quit [Ping timeout: 272 seconds]
SilkFox_ has quit [Ping timeout: 272 seconds]
<sanguisdex>
is rbenv vs RVM a holy war issue in the ruby community, or do some environments work better for one or the other (more specifically CentOS 6.5)
sargas has quit [Quit: Leaving]
moritzs has quit [Ping timeout: 260 seconds]
Tricon has joined #ruby
<Hanmac>
sanguisdex: depends, if you need gemsets then rvm is better, but without its not so a big problem ... for myself i prefer self compiled ruby if possible
kobain has quit [Read error: Connection timed out]
thagomizer has quit [Quit: Leaving.]
kobain has joined #ruby
thagomizer has joined #ruby
koderok has joined #ruby
abdulsattar has joined #ruby
moritzs has joined #ruby
rkalfane has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
koderok has quit [Client Quit]
kobain has quit [Max SendQ exceeded]
kobain has joined #ruby
<eam>
neither for production
apeiros has joined #ruby
choke has joined #ruby
thejamespinto has quit [Read error: Connection reset by peer]
kobain has quit [Max SendQ exceeded]
SCHAAP137 has joined #ruby
bluehavana has quit [Quit: Connection closed for inactivity]
j_mcnally has joined #ruby
aleatorik has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
adac has quit [Ping timeout: 272 seconds]
thejamespinto has joined #ruby
sedai has joined #ruby
Kricir has quit [Remote host closed the connection]
<sanguisdex>
eam should I just compile for production? yum's packages were buggy
Kricir has joined #ruby
joonty has quit [Quit: Leaving]
<eam>
that's what I do
<eam>
rhel 6.5's system ruby should be fine, but it's old (1.8.7)
<eam>
EPEL gems aren't any good though, if you're trying to use those
f0ster_ has joined #ruby
<Hanmac>
centOS software from the last centuries ;P
<eam>
centos is what you run if you want solid hardware support
Kricir has quit [Ping timeout: 246 seconds]
<ctrlrsf>
sanguisdex: for your own apps, I'd use rvm or rbenv and not the system ruby
<eam>
I think a lot of folks who don't venture outside the safety of a higher level language don't understand why systems need to have stable and longer-term lifecycles
<ctrlrsf>
sanguisdex: and depends how much you love compiling your own ruby, but that'll get old really fast.
nettoweb has joined #ruby
nettoweb has quit [Max SendQ exceeded]
<pagios>
Hanmac: i am using sinatra, and different clients with javascript connecting to it. i would liketo implement a broadcast signaling system where a client can send a message to sinatra , sinatra analyses the message and sends a broadcast message to all the clients, what is the best way to do it
nettoweb has joined #ruby
yfeldblum has joined #ruby
chthon has quit [Ping timeout: 272 seconds]
<Hanmac>
dont know never used sinatra before but you can try to ask at #sinatra
banister has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
Kricir has joined #ruby
HelperW has joined #ruby
cndiv has joined #ruby
cherwin has joined #ruby
cherwin has quit [Max SendQ exceeded]
sk87 has quit [Quit: My Mac Mini has gone to sleep. ZZZzzz…]
<sanguisdex>
ctrlrsf: since this is a box for staging mostly PHP made sites and ruby is just being used for server management tools I think I will compile. because I enjoy compiling every now and then. it would be great if ruby had anb offical yum and deb repo like ngins and MySQL have done
awc737 has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
yfeldblum has quit [Ping timeout: 260 seconds]
jthomp has quit [Ping timeout: 272 seconds]
sedai has quit [Quit: sedai]
HelperW has quit [Ping timeout: 245 seconds]
tvw has quit []
AlexRussia has quit [Remote host closed the connection]
jthomp has joined #ruby
AlexRussia has joined #ruby
Darryl has quit [Quit: Connection closed for inactivity]
cocotton has joined #ruby
cocotton has quit [Remote host closed the connection]
cocotton has joined #ruby
bayed has quit [Quit: Connection closed for inactivity]
paulfm has quit []
linojon has quit [Ping timeout: 240 seconds]
linojon has joined #ruby
krisquigley has quit [Remote host closed the connection]
roolo has quit [Remote host closed the connection]
gerep__ has joined #ruby
iliketurtles has joined #ruby
krisquigley has joined #ruby
GeorgesLeYeti has quit [Quit: Quitte]
andikr has quit [Remote host closed the connection]
ghr has quit [Ping timeout: 272 seconds]
jthomp has quit [Ping timeout: 245 seconds]
iliketurtles has quit [Client Quit]
mleone has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
HelperW has joined #ruby
crazydiamond has quit [Ping timeout: 240 seconds]
bricker`work has joined #ruby
fgo has joined #ruby
gerep_ has quit [Ping timeout: 244 seconds]
ctp has joined #ruby
szarubin has quit [Remote host closed the connection]
zarubin has quit [Read error: Connection reset by peer]
gerep_ has joined #ruby
jthomp has joined #ruby
alex88 has quit [Quit: Leaving...]
krisquigley has quit [Ping timeout: 245 seconds]
SilkFox_ has joined #ruby
linojon_ has joined #ruby
flughafen_ has joined #ruby
linojon has quit [Ping timeout: 245 seconds]
linojon_ is now known as linojon
maestrojed has joined #ruby
cherwin has quit [Ping timeout: 246 seconds]
stunder has quit [Quit: Screw you guys I'm going home]
aspires has quit []
phutchin1 is now known as phutchins
gerep__ has quit [Ping timeout: 272 seconds]
fgo has quit [Ping timeout: 272 seconds]
cherwin has joined #ruby
carraroj has quit [Ping timeout: 272 seconds]
mikecmpbll has quit [Ping timeout: 245 seconds]
shredding has quit [Quit: shredding]
gsd has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
WormDrink has quit [Ping timeout: 260 seconds]
luckyruby has joined #ruby
wallerdev has quit [Quit: wallerdev]
spider-mario has joined #ruby
IceDragon has quit [Ping timeout: 244 seconds]
gsd has joined #ruby
SilkFox_ has quit [Ping timeout: 260 seconds]
Ashe`` has joined #ruby
abdulsattar has quit [Ping timeout: 272 seconds]
<Ashe``>
hello, I was doing something completely unrelated to ruby and stumbled upon ruby_atomic.h, it seems for gcc the fetch_and_add/sub intrinsics are used while on win32 InterlockedIncrement/Decrement is used, except the win32 functions (those 2 anyway) are add/sub_and_fetch instead of fetch_and_add/sub
mark_locklear has quit [Ping timeout: 272 seconds]
<Ashe``>
thought maybe you'd want to get it fixed (if it matters)
stunder has joined #ruby
justinmburrous has joined #ruby
boombadaroomba has joined #ruby
<Ashe``>
(lines 8/9, 29/30 and 47/48)
emrox_ has joined #ruby
<miah>
Ashe``: filing a bug report would be helpful
freerobby has quit [Read error: Connection reset by peer]
zeroNones has joined #ruby
zeroNones has quit [Max SendQ exceeded]
ar has joined #ruby
zeroNones has joined #ruby
mikecmpbll has quit [Quit: i've nodded off.]
treehug88 has quit [Ping timeout: 244 seconds]
ghr has joined #ruby
workmad3 has quit [Ping timeout: 260 seconds]
centrx has joined #ruby
yfeldblum has joined #ruby
j_mcnally has quit [Remote host closed the connection]
awc737 has joined #ruby
nanoyak has joined #ruby
treehug8_ has quit [Ping timeout: 245 seconds]
<jhass>
pagios: what's your app built with?
<ar>
hi. is there a way to tap into assignment operations on arrays? i would like to have some piece of code executed whenever "A[n] = something" happens. i tried overloading the [] operator, and checking for size, but that doesn't give me anything useful
chrisja has joined #ruby
aspires has quit []
larissa has quit [Quit: Leaving]
<jhass>
ar: you would overwrite #[]= but I'd suggest doing a wrapper around the array or at least a subclass
SilkFox_ has joined #ruby
HelperW has quit [Quit: Computer has gone to sleep.]
ghr has quit [Ping timeout: 244 seconds]
aspires has joined #ruby
iamcyberbird has quit [Ping timeout: 272 seconds]
<sanguisdex>
so I have just installed bundler and when I run bundle install it can't find itself tips for debuffing?
starless has joined #ruby
<sanguisdex>
debugging!
HelperW has joined #ruby
<pagios>
what is rackup exactly? i didnt understand it
Takle has joined #ruby
klaut has quit [Remote host closed the connection]
treehug88 has joined #ruby
<jhass>
pagios: just a small wrapper that runs webrick or thin by default, I don't remember
melik has joined #ruby
<ar>
jhass: thanks
<jhass>
sanguisdex: what's the error you get?
yfeldblum has quit [Ping timeout: 272 seconds]
mleone has joined #ruby
Wolland has joined #ruby
hiall has quit [Ping timeout: 272 seconds]
flughafen_ has quit [Ping timeout: 260 seconds]
jerius has quit []
<sanguisdex>
jhass: bundle install
<sanguisdex>
/usr/local/lib/ruby/2.1.0/rubygems/dependency.rb:298:in `to_specs': Could not find 'bundler' (>= 0) among 8 total gem(s) (Gem::LoadError)
<sanguisdex>
from /usr/local/lib/ruby/2.1.0/rubygems/dependency.rb:309:in `to_spec'
<sanguisdex>
from /usr/bin/bundle:18:in `<main>'
<sanguisdex>
from /usr/local/lib/ruby/2.1.0/rubygems/core_ext/kernel_gem.rb:53:in `gem'
<jhass>
sanguisdex: did you update ruby after installing bundler? try just installing it again: sudo gem install bundler
mikecmpbll has joined #ruby
<jhass>
I see you have a ruby install in /usr/local, make sure which gem points to it
tectonic has joined #ruby
<sanguisdex>
jhass: it's a long story I yesterday I tried installing ruby via rvm, got issues, removed it, I just compile ruby from source and installled bundler
MuffinPimp has joined #ruby
foooobear_ has joined #ruby
gerep_ has joined #ruby
<pagios>
webrick or thin is a webserver jhass ?
HelperW has quit [Ping timeout: 272 seconds]
<jhass>
pagios: kinda, we call them application server
foooobear has quit [Ping timeout: 245 seconds]
<jhass>
they serve your application over http
enali has joined #ruby
adac has joined #ruby
<pagios>
can it handle like lot of connections?
<pagios>
liek apache and such
<jhass>
that depends on the application server
enali1 has joined #ruby
<jhass>
the usual setup if you have to scale big is to have an apache, nginx or similar in front of a bunch of application servers
wjimenez5271 has joined #ruby
<sanguisdex>
jhass: I really would like to besure I have removed all of RVM's files but I can't figure that one out. I think there may be conflicting issues
coderdad has quit []
jbueza has joined #ruby
<pagios>
jhass: i am trying to install faye: http://faye.jcoglan.com/ruby.html it includes at the top page a rackup file and at the end of the page another rackup file, what is the difference?
<jhass>
pagios: there's also passenger which is a ruby application server that can run as a module inside apache and nginx
<jhass>
sanguisdex: so what's the output of gem env now?
flughafen_ has joined #ruby
zeroNones has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<apeiros>
arup_r: or maybe tell me where in "string bla bla" a \b would match
lw has joined #ruby
fgo has quit [Read error: No route to host]
axl_ has quit [Ping timeout: 258 seconds]
<arup_r>
No.. I am talking only to match which are "string"... not those strings where "string" is a substring..
paulfm has joined #ruby
fgo has joined #ruby
mastr_bennett[x] has joined #ruby
Tricon has quit [Quit: Leaving...]
<centrx>
arup_r, /^string$/, but no need to use regex in that case
<apeiros>
arup_r: yes, which is why \b will not work.
<apeiros>
centrx: wrong anchors
<apeiros>
arup_r: and you can figure out your question of "why not \b" by answering my question
djbkd has quit [Remote host closed the connection]
djbkd has joined #ruby
chrishough has joined #ruby
<shosti>
arup_r: you can just do something like my_array.grep('string') for literal string compare
djbkd has quit [Remote host closed the connection]
NivenHuH_ has joined #ruby
NivenHuH_ is now known as NivenHuH
spyderman4g63 has quit [Remote host closed the connection]
<apeiros>
or array.include?('string') or array.count('string') (since I see little value in a result array consisting of the same string over and over :-) )
anaeem1_ has quit [Remote host closed the connection]
otherj has joined #ruby
spyderman4g63 has joined #ruby
fgo has quit [Ping timeout: 272 seconds]
<apeiros>
arup_r: so are you still trying to answer or did I misinterpret and you don't intend to learn/understand regex?
benzrf|offline is now known as benzrf
djbkd has joined #ruby
tomgavin has quit [Quit: ircII EPIC5-1.1.2 -- Are we there yet?]
osse has left #ruby ["WeeChat 1.1-dev"]
cleopatra has joined #ruby
lw has quit [Read error: Connection reset by peer]
lw has joined #ruby
sinkensabe has joined #ruby
spyderman4g63 has quit [Ping timeout: 258 seconds]
luckyruby has quit [Quit: Leaving...]
spyderman4g63 has joined #ruby
iliketurtles has quit [Quit: zzzzz…..]
crazydiamond has quit [Read error: Connection reset by peer]
kaspergrubbe has quit [Remote host closed the connection]
tomgavin has joined #ruby
lw has quit [Client Quit]
Kricir has joined #ruby
b00stfr3ak has quit [Ping timeout: 272 seconds]
SilkFox_ has joined #ruby
mocfive has joined #ruby
rezzack has joined #ruby
anaeem1 has joined #ruby
axl_ has joined #ruby
* apeiros
wants a bot which warns from time wasters
benzrf is now known as benzrf|offline
maniacal_ has joined #ruby
fabrice31 has joined #ruby
Tomme has quit [Ping timeout: 272 seconds]
kaspertidemann has joined #ruby
pfg has joined #ruby
Kricir has quit [Remote host closed the connection]
noop has quit [Ping timeout: 272 seconds]
Kricir has joined #ruby
omosoj has quit [Quit: leaving]
skolman has quit [Remote host closed the connection]
mikeg has quit [Ping timeout: 272 seconds]
noop has joined #ruby
skolman_ has joined #ruby
pushpak has joined #ruby
axl_ has quit [Ping timeout: 260 seconds]
skolman_ has quit [Remote host closed the connection]
zzz_Ridley is now known as Ridley5
skolman has joined #ruby
kyb3r_ has quit [Read error: Connection reset by peer]
cocotton has joined #ruby
fabrice31 has quit [Ping timeout: 246 seconds]
skolman has quit [Remote host closed the connection]
skolman_ has joined #ruby
Kricir has quit [Ping timeout: 244 seconds]
starless has quit [Ping timeout: 245 seconds]
ckrailo has joined #ruby
thumpba_ has quit [Remote host closed the connection]
endash has joined #ruby
x1337807x has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
thumpba has joined #ruby
jelera has quit [Remote host closed the connection]
yfeldblum has joined #ruby
HelperW has joined #ruby
BadQuanta has quit [Ping timeout: 272 seconds]
cocotton has quit [Ping timeout: 245 seconds]
codeFiend has joined #ruby
codeurge has joined #ruby
maniacal_ has quit [Remote host closed the connection]
anaeem1 has quit [Remote host closed the connection]
AlexRussia has quit [Remote host closed the connection]
skolman_ has quit [Remote host closed the connection]
cndiv has joined #ruby
BadQuanta has joined #ruby
skolman_ has joined #ruby
robustus|Off has quit [Ping timeout: 250 seconds]
AlexRussia has joined #ruby
iliketurtles has joined #ruby
danijoo has quit [Read error: Connection reset by peer]
SilkFox_ has quit [Ping timeout: 246 seconds]
thejamespinto has quit [Read error: Connection reset by peer]
nonmadden has quit [Remote host closed the connection]
danijoo has joined #ruby
yfeldblum has quit [Ping timeout: 258 seconds]
thejamespinto has joined #ruby
mastr_bennett[x] has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
gregf has quit [Quit: WeeChat 1.0]
rpag has quit [Ping timeout: 260 seconds]
pusewicz has joined #ruby
robustus has joined #ruby
RegulationD has joined #ruby
otherj has quit []
GriffinHeart has joined #ruby
anaeem1_ has joined #ruby
krisquigley has quit [Remote host closed the connection]
ursooperduper has joined #ruby
agjacome has joined #ruby
GriffinHeart has quit [Remote host closed the connection]
treehug8_ has joined #ruby
kirun has joined #ruby
djbkd has quit [Remote host closed the connection]
benzrf|offline is now known as benzrf
GriffinHeart has joined #ruby
treehug88 has quit [Ping timeout: 258 seconds]
neoxquick has joined #ruby
dadadath has joined #ruby
`Dath has quit [Ping timeout: 258 seconds]
<PragCypher>
has there been an integration with rake test and syntastic for vim?
vinleod has quit [Quit: Computer has gone to sleep.]
alvaro_o has joined #ruby
mikeg has joined #ruby
havenwood has joined #ruby
djbkd has joined #ruby
fun has quit [Ping timeout: 246 seconds]
ghr has quit [Ping timeout: 272 seconds]
spicerack has joined #ruby
tomgavin has quit [Quit: ircII EPIC5-1.1.2 -- Are we there yet?]
kerin has joined #ruby
skammer3 has joined #ruby
alem0lars has joined #ruby
RegulationD has quit [Quit: RegulationD]
kaspergrubbe has joined #ruby
RegulationD has joined #ruby
gerep__ has joined #ruby
rpag has joined #ruby
benzrf is now known as benzrf|offline
<kerin>
I'm trying to grok some contractor code we just got to review... this test appears very strange:
<kerin>
return if some_var >2 && !has_planner || nil
<sanguisdex>
how can I figure out what files are being refered to to when my gem path is built
<kerin>
am i right that "|| nil" is completely irrelevant to the logic flow?
rippa has quit [Quit: {#`%${%&`+'${`%&NO CARRIER]
aspires has quit []
spider-mario has quit [Ping timeout: 246 seconds]
krisquigley has joined #ruby
cleopatra has quit [Ping timeout: 245 seconds]
gerep_ has quit [Ping timeout: 258 seconds]
<apeiros>
kerin: I think you're correct. that ` || nil` seems superfluous
spider-mario has joined #ruby
<kerin>
apeiros, thank you. it's wigging me out because they added it in a recent push and it's, uh
mikepack has quit [Remote host closed the connection]
<kerin>
it makes me worry that they don't understand what they did either :p
gerep_ has joined #ruby
cleopatra has joined #ruby
<apeiros>
IME with contractors - not out of question at all that they have no clue.
Hightower666 has quit [Ping timeout: 260 seconds]
Frogging101-chan has left #ruby ["I'm up, over, and gone."]
<kerin>
yeah.
Hobogrammer has quit [Quit: WeeChat 0.4.3]
mikepack has joined #ruby
<apeiros>
or "they" -> "one of their employees"
justinmburrous has joined #ruby
gerep__ has quit [Ping timeout: 245 seconds]
BadQuanta1 has joined #ruby
krisquig_ has joined #ruby
workmad3 has joined #ruby
<kerin>
i'm not ultra impressed with these guys anyway. they bid on a project to add a related app for an existing schema and decided to do it in rails, which isn't real happy with schemas other than... rails.
IceDragon has quit [Ping timeout: 258 seconds]
BadQuanta has quit [Ping timeout: 260 seconds]
IceDragon has joined #ruby
Tomme has joined #ruby
sigurding has quit [Quit: sigurding]
<fennec>
kerin - my condolences
Wolland_ has joined #ruby
<kerin>
so random superstitious nonsense like "if foo || nil" is unfortunately not unexpected
<kerin>
thanks fennec
mikeg has quit [Remote host closed the connection]
boombadaroomba has quit [Remote host closed the connection]
tesaf has joined #ruby
nfk has quit [Remote host closed the connection]
hiyosi has quit [Ping timeout: 272 seconds]
fgo has joined #ruby
wallerdev has quit [Quit: wallerdev]
justinmburrous has quit [Ping timeout: 246 seconds]
cleopatra has quit [Read error: Connection reset by peer]
bricker`work has quit [Ping timeout: 260 seconds]
nfk has joined #ruby
algoqaeda has joined #ruby
Wolland has quit [Ping timeout: 246 seconds]
<apeiros>
kerin: AR with schemas outside its domain can be a bitch indeed. writable views can help a lot, though.
<apeiros>
or even just views if you don't need write access.
<apeiros>
(DB views, just to be clear)
bMalum__ has joined #ruby
<kerin>
(got it)
<apeiros>
s/can be a bitch/can be annoying/
<kerin>
i think that's a little beyond these guys. pretty much an "if we can find a gem to do it, we can make your app do it!" shop
<apeiros>
amazing how much sexist vocab sneaks in
<kerin>
i've built some fun apps in ruby + sinatra but I'm not a specialist
<havenwood>
kerin: Sequel gem for the win!
gerep__ has joined #ruby
<fennec>
if you are going to do rails with an extant schema
<fennec>
i've had some success with datamapper
<fennec>
of course, this may not help you with your cheap contractors
tjbiddle has joined #ruby
<havenwood>
fennec: I like the idea of ROM. I think I'd use it if it materializes. :)
<rpag>
the emergence of ROM kinda killed datamapper
djbkd has quit [Remote host closed the connection]
* fennec
hasn't been following it in the past few weeks
aspires has joined #ruby
<skift>
hello. i am trying to run the rhc command, and I got this error message. it was working before. but its been a few weeks to a month since i have used it. http://hastebin.com/efoquxamuy.bash im not totally familiar with ruby/rbenv. i have looked up some fixes, and one is to install openssl in brew, but i already do. then i cant get rbenv to install properly
<kerin>
so when these guys, who supposedly ARE Ruby specialists, do stuff that looks irrational, i have to be really careful that I'm not in the wrong before bringing it up
<rpag>
and ROM doesnt seem to be taking off
fgo has quit [Ping timeout: 272 seconds]
<skift>
i was hoping someone could possibly point me in the right direction.
benzrf|offline is now known as benzrf
<skift>
the rhc command is being used with openshift.
SilkFox_ has joined #ruby
boombadaroomba has joined #ruby
shosti has quit [Ping timeout: 272 seconds]
Hobogrammer has joined #ruby
adac has joined #ruby
gerep_ has quit [Ping timeout: 244 seconds]
stunder has joined #ruby
<fennec>
skift - it sounds like your ruby version and your openssl version don't seem to be happy with each other, or with system libraries. you could try to understand and fix it, you could try to select (and optionally install) a new ruby version and/or gemset with your extant rvm / rbenv command.
shock_one has joined #ruby
algoqaeda has quit [Ping timeout: 245 seconds]
shock_one has quit [Client Quit]
chipotle has joined #ruby
tuelz has joined #ruby
shock_one has joined #ruby
<skift>
ok. i dont think i need anything specific. so the latest stable is fine.
Jackneill_ has quit [Remote host closed the connection]
algoqaeda has joined #ruby
<skift>
i am on a mac. so is installing it with homebrew recommended?
<fennec>
it's possible you can fix that with a simple 'rvm use' of already-extant gemsets
buub has quit [Read error: Connection reset by peer]
<fennec>
if you've already got rvm, that is
<fennec>
as for the rest, I dunno, will let other guys opine instead
<skift>
rvm command not found. so no
chipotle has quit [Read error: Connection reset by peer]
<rpag>
i think if you go with ruby-install it will handle building against openssl for you, havenwood would know for certain
emmesswhy has joined #ruby
chipotle has joined #ruby
ciampix has joined #ruby
<tuelz>
I'm trying to do some Net::SFTP stuff in a script and the script always stops after the connection closes. Shouldn't the script continue execution?
<fennec>
tuelz- uhhhhh is it throwing exceptions? is the exit status nonzero?
<fennec>
</generic debug principles only>
shock_one has quit [Ping timeout: 244 seconds]
<tuelz>
fennec: the error just tells me it's disconnecting, I'll keep digging though maybe I overlooked something, been passing the error to dev/null a while
spyderman4g63 has quit [Ping timeout: 245 seconds]
<havenwood>
arcsky: a single `=` is assingment unless `==` twoquals or `===` threequals comparison
anaeem1_ has quit [Remote host closed the connection]
<havenwood>
arcsky: ronin > metasploit
MaciejCzyzewski has joined #ruby
<havenwood>
arcsky: looks like you're trying to run `msfconsole` in the context of your bundle, but it isn't in your bundle
larissa_ has joined #ruby
endash has joined #ruby
cocotton has joined #ruby
<havenwood>
arcsky: since you're not prefixing the command with `bundle exec` it seems you may have `rubygems-bundler` or something else installed that is detecting the Gemfile and prefixing it for you?
<arcsky>
what is bundle and gem
larissa_ is now known as larissa
krisquig_ has quit [Remote host closed the connection]
xylorast has quit [Quit: Lost terminal]
aspires has quit []
krisquig_ has joined #ruby
<havenwood>
arcsky: RubyGems ships with Ruby and includes the `gem` binary. Gems are Ruby packages. They can be libraries with or without executables.
larissa has left #ruby [#ruby]
Sawbones has joined #ruby
<havenwood>
arcsky: One such gem is called Bundler.
<havenwood>
arcsky: Check if `rubygems-bundler` is installed?: gem list rubygems-bundler
larissa has quit [Client Quit]
cocotton has quit [Ping timeout: 258 seconds]
larissa has joined #ruby
endash has quit [Quit: endash]
<havenwood>
arcsky: So the way the Bundler team would like you to use bundler is to only be in the context of the bundle when you manually prefix `bundle exec`. For various reasons, folk want automagical prefixing when a Gemfile is available, hence tools like rubygems-bundler.
<arcsky>
*** LOCAL GEMS ***
<havenwood>
arcsky: So you don't have it.
Avahey has quit [Quit: Connection closed for inactivity]
threesixes has quit [Quit: SATAN!!!!!!!!]
<havenwood>
arcsky: Try the same command from a directory without a Gemfile.
<havenwood>
arcsky: the original cmd, i mean, not gem list
<havenwood>
arcsky: So nevermind me. Looks like metasploit instructions assume you're using RVM so you *do* have rubygems-bundler, hence them omitting the presumed automagical `bundle exec`.
hobodave has joined #ruby
ciampix has quit [Ping timeout: 246 seconds]
<havenwood>
arcsky: bundle exec msfconsole
Wolland has joined #ruby
jerius has quit [Client Quit]
bMalum_ has joined #ruby
luckyruby has joined #ruby
Wolland__ has joined #ruby
spider-mario has quit [Remote host closed the connection]
russt has joined #ruby
MaciejCzyzewski has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
ghostmoth has joined #ruby
silkfox has quit [Ping timeout: 240 seconds]
ghr has joined #ruby
Wolland_ has quit [Ping timeout: 240 seconds]
thejamespinto has quit [Read error: Connection reset by peer]
IcyDragon has joined #ruby
thejamespinto has joined #ruby
IceDragon has quit [Ping timeout: 272 seconds]
<havenwood>
seems they haven't managed to cut their framework into a gem >.>
Wolland has quit [Ping timeout: 272 seconds]
<havenwood>
a gemspec that doesn't build, great :P
ht__th has quit [Remote host closed the connection]
<havenwood>
arcsky: you mean, "metasploit..."
<havenwood>
arcsky: back
<arcsky>
havenwood: wb
Wolland__ has quit [Ping timeout: 240 seconds]
jack_rabbit has joined #ruby
<arcsky>
havenwood: i had issu with other stuff aswell
tessi_zz is now known as tessi
<arcsky>
which running ruby
eat_multi has joined #ruby
kate_r has joined #ruby
<arcsky>
Snorby / Banyard2
<havenwood>
arcsky: RubyGems can't find metasploit-framework gem because they haven't published it to RubyGems. You can' install the local copy because the user you're running the command with doesn't have permissions to access the .gem file.
<havenwood>
arcsky: what user are you? what user owns that file? what are its permissions? sudo?
larissa is now known as Guest98585
MaciejCzyzewski has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
kaspergrubbe has quit [Remote host closed the connection]
<arcsky>
-rwxr-xr-x
<havenwood>
what is your ip address, username and password?
<havenwood>
j/k
<arcsky>
hehe
shredding has joined #ruby
noop has quit [Ping timeout: 246 seconds]
<havenwood>
arcsky: if you really want to pen test or craft exploit packages, first pick a lang and learn it well enough to complete at least a couple sets of matasano crypto challenges: http://cryptopals.com/
<apeiros>
127.0.0.1 / god / god
fabrice31 has joined #ruby
<apeiros>
obv
kaspergrubbe has joined #ruby
<shevy>
hey
<shevy>
that username was already picked!
svoop has joined #ruby
hmsimha has joined #ruby
kaspergrubbe has quit [Remote host closed the connection]
rkalfane has joined #ruby
sinkensabe has quit [Remote host closed the connection]
<apeiros>
havenwood: that link explains a couple of recent questions
<kerin>
how does the ||= assignment operator work?
<centrx>
it is not much work because it is ruby fast
<eam>
it's not really that hard
jerius has quit []
Mirubiri has joined #ruby
Mirubiri has quit [Max SendQ exceeded]
<epitron>
eam: you think mdbm would be good for indexing files?
<epitron>
i've never implemented substring search in a key-value store before
<shevy>
even linus only managed to make a kernel (and git)
aspires has joined #ruby
ptrrr has quit [Quit: ptrrr]
<eam>
epitron: probably not?
Mirubiri has joined #ruby
Mirubiri has quit [Max SendQ exceeded]
<epitron>
needs more b-trees?
larissa has quit [Client Quit]
<epitron>
elasticsearch is a big hog
aspires has quit [Client Quit]
<epitron>
i tried using it, and i don't like it
aspires has joined #ruby
SilkFox_ has quit [Ping timeout: 260 seconds]
<eam>
just use mysql
<epitron>
i want it to be standalone
<epitron>
just a little ruby script you run that keeps your indexes up to date
mattmcclure has joined #ruby
Mirubiri has joined #ruby
<epitron>
...or to search them
<centrx>
Postgresql > MariaDB > MySQL
larissa has joined #ruby
<eam>
centrx: nah (and you forgot percona)
<maestrojed>
I know this channel is not #vagrant but vagrant is written in ruby and I hope you can help unstuck me. In my vagrantfile I have some variables I need to pass to my provisioning shell script. The vagrant command config.vm.provision has a parameter "args" just for this. However the variables won't pass through. It seems I can pass a string through but not a variable. Suggestions?
<centrx>
Postgresql has even shown up the lousy NoSQL DBs
justinmburrous has joined #ruby
<centrx>
s/lousy/silly
<eam>
here's the thing, an rdbms in for-realsies production is a replicated datastore first and foremost and a fancy SQL query engine second
<eam>
and until super recently the operational story for pg was absurd (even though for academic use it was vastly better)
<centrx>
yeah I hear MySQL is better for replication
<centrx>
but it is so buggy generally
<eam>
no doubt, I hate it as a rdbms
<shevy>
a mysql user!!!
<centrx>
Add in some PHP and you'll be all set
dziga has joined #ruby
<eam>
shevy: percona
<epitron>
hate is a strong word
mikecmpbll has joined #ruby
<shevy>
love is a better word
<eam>
epitron: used in anger
<epitron>
needs to be stronger
Timmee has joined #ruby
<epitron>
lul jk
<shevy>
I love php
Ankhers has quit [Ping timeout: 264 seconds]
<benzrf>
one should never use php in anger
<shevy>
true
<epitron>
or in seriousnes
<epitron>
or as a joke
kirun has quit [Quit: Client exiting]
<shevy>
does this come down to "one should never use php"
<epitron>
well, it's good for sabotaging a project
Advocation has joined #ruby
lampd1 has quit []
<centrx>
You should use PHP if you travel back in time to before the year 2005
fgo has joined #ruby
fun has joined #ruby
<maestrojed>
how would I return the value of a variable in ruby. Something like php's print_r($var,TRUE)
<fun>
hey folks
<fun>
can I develop and test on same box?
<epitron>
maestrojed: p
<fun>
is it adviceable?
<centrx>
maestrojed, you mean print, p, or puts ?
<epitron>
i prefer pp myself
<centrx>
fun, yes you can
emocakes has quit []
<maestrojed>
centrx well I don't want to echo or print out the value. i want to return it "inline" to use in my script. I am struggling for the correct terminology.
<fun>
cool
<maestrojed>
centrx I will look up those functions
TorpedoSkyline has joined #ruby
<centrx>
fun, though eventually you would want to scale up to having a staging/testing machine depending on the project
<epitron>
fun: you should test on as many boxes as possible tho :)
<epitron>
mostly on the box it'll be running on
silkfox has quit [Ping timeout: 246 seconds]
<fun>
:)
<fun>
ty ty
justinmburrous has quit [Ping timeout: 240 seconds]
skolman_ has quit [Remote host closed the connection]
aspires has quit []
benzrf is now known as benzrf|offline
tvw has quit [Ping timeout: 245 seconds]
skolman_ has joined #ruby
nhhagen has quit []
nhhagen has joined #ruby
spyderma_ has quit []
beef-wellington has quit [Ping timeout: 258 seconds]
silkfox has joined #ruby
patrick99e99 has quit [Quit: Lost terminal]
tvw has joined #ruby
iliketurtles has quit [Quit: zzzzz…..]
aspires has joined #ruby
ciampix has quit [Ping timeout: 240 seconds]
northfurr has joined #ruby
tvw has quit [Client Quit]
spicerack has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
tvw has joined #ruby
iliketurtles has joined #ruby
skolman_ has quit [Ping timeout: 272 seconds]
MaciejCzyzewski has joined #ruby
nhhagen has quit [Client Quit]
patrick99e99 has joined #ruby
nhhagen has joined #ruby
jheg has quit [Quit: jheg]
silkfox has quit [Ping timeout: 260 seconds]
havenwood has quit [Remote host closed the connection]
davispuh has quit [Ping timeout: 245 seconds]
havenwood has joined #ruby
havenwood has quit [Remote host closed the connection]
Mirubiri has quit []
<Mia>
ok, now I definitely need help
slyslick has joined #ruby
<Mia>
I need some guidance on how to run multiple apps on a single vps
andrewlio1 has quit [Quit: Leaving.]
spyderman4g63 has joined #ruby
<Phrogz>
apps == web apps?
* Phrogz
is only just paying attention, and may have missed important back story.
<Mia>
Phrogz, yes
<Mia>
well I'm new to ruby, just testing stuff actually
<Mia>
I'm asking to know the logic
shock_one has quit [Read error: No route to host]
aspires has quit []
<Phrogz>
Mia: You need a web server like Apache or Nginx to run a "reverse proxy". This single web server takes requests for one pattern (e.g. a sub-domain) and maps them to a specific port.
shock_one has joined #ruby
tskogberg has joined #ruby
<Mia>
Do I need to set it up manually
<Mia>
or does digitalocean come wit a pre-set server
<Phrogz>
Mia: I do not know digitalocean. Normally I'd say, "Yes, you have to do some work to make a custom setup work as you wish", but in these days of super meta magic servers it may be that they have a GUI that does it all for you.
aspires has joined #ruby
<Mia>
Phrogz, I see
<Mia>
right now this looks overcomplicated
<Phrogz>
Mia: Do you have a domain name that's working right now? If so, we can see if it's running a web server, and probably which one it is.
<Mia>
I have a domain that's hosted on hostgator
<Phrogz>
Mia: It is complicated, though thankfully it's something that you mostly only need to get running once, and then copy the pattern when it's time for more apps.
<Mia>
it's a wordpress so nothing new
BeryIdle has joined #ruby
<Mia>
I will get a domain, too, for ruby experiments
<Phrogz>
There's two guides from your host of choice.
kaspergrubbe has quit [Remote host closed the connection]
<Mia>
well which one should I pick? is there a main difference
<BeryIdle>
Does anyone happen to know what algorithm Devise/Warden use to digest the authentication_token & store it in redis? (Specifically on the gitlab project, but I'd imagine it's the same on most projects?)
<BeryIdle>
it looks like bcrypt, but bcrypt says it's an invalid hash
<Phrogz>
Mia: Google for Apache vs. Nginx, I'm sure there are a LOT of opinions. I happen to use Nginx. :)
<Phrogz>
baweaver: I think that it needs much, much more details and examples for the casual reader who doesn't know WTF those are, or how you envision them being used.
Aaaal has quit [Quit: Aaaal]
<baweaver>
I question how many casual readers would be on the tracker.
<baweaver>
but more detail is always a good thing on such requests.
aspires has quit [Client Quit]
entrenador has joined #ruby
* Phrogz
goes to read the hacks
mikepack has quit [Ping timeout: 246 seconds]
entrenador has quit [Client Quit]
cherwin has joined #ruby
entrenador has joined #ruby
<Bish>
hey guys.. i am having a problem with socksify, im using it to tunnel a connection through servers
cherwin has quit [Max SendQ exceeded]
shock_one has quit [Quit: Computer has gone to sleep.]
aspires has joined #ruby
ghr has quit [Ping timeout: 260 seconds]
cherwin has joined #ruby
<Bish>
im only using the http capabilities of it, but it seems that it overwrites the TCPSocket class, which results in my database also connecting to the other servers database :D
<Bish>
how i can prevent that?
cherwin has quit [Max SendQ exceeded]
mary5030_ has joined #ruby
mastr_bennett[x] has joined #ruby
benzrf|offline is now known as benzrf
cherwin has joined #ruby
cherwin has quit [Max SendQ exceeded]
jcdesimp has quit [Remote host closed the connection]
mary5030 has quit [Read error: Connection reset by peer]
Sawbones has quit []
<Phrogz>
baweaver: So, foo | bar | jim instead of jim( bar( foo ) )?
iceden has joined #ruby
<baweaver>
essentially
skammer4 has joined #ruby
larissa has quit [Ping timeout: 245 seconds]
kaspertidemann has quit []
lukevinc has quit [Quit: ChatZilla 0.9.90.1 [Firefox 24.8.0/20000101000000]]
<Phrogz>
TIMTOWTDI, but I'm in favor.
narcan has joined #ruby
<baweaver>
*googles*
shredding has quit [Quit: shredding]
<baweaver>
Ah. Yeah, we're a bit more on Perl's side than Pythons
<baweaver>
List comprehensions would be nice as well come to think of it.
skammer3 has quit [Ping timeout: 245 seconds]
<baweaver>
one major thing at a time though I suppose. I know someone hacked it together once.
<eval-in_>
epitron => private method `chained' called for "omg":String (NoMethodError) ... (https://eval.in/200458)
<epitron>
interesting
mary5030_ has quit [Remote host closed the connection]
<Phrogz>
Sorry about the acronym; wasn't intending to ivnoke Perl directly, just the sometimes negative connotation that "when you have more than one way to accomplish the same goal, you add weight to the implementation of the runtime and the mental model for the scripter"
xcv has quit [Ping timeout: 260 seconds]
algoqaeda has quit [Ping timeout: 260 seconds]
<Phrogz>
But, despite that, I do like to think functionally and bottom-up, which is what this lets you do nicely.
monsieurp has quit [Read error: Connection reset by peer]
<Phrogz>
(In case you didn't know how the method in main was ending up as a private method of String.)
<BeryIdle>
So - anyone happen to know where I can find that one magical line of code that salts/hashes authentication tokens into redis? (gitlab->devise->warden)
BadQuanta has quit [Ping timeout: 272 seconds]
skolman_ has joined #ruby
<epitron>
gem intsall salted_devious_warden
fabrice31 has joined #ruby
justinmburrous has joined #ruby
<epitron>
acts_as_salty_devious_warden
<BeryIdle>
it does seem devious
<BeryIdle>
I've spent hours pouring over the code for those gems trying to find it. It feels like magic at this point. :(
freerobby1 has quit [Quit: Leaving.]
xcv has joined #ruby
fgo has joined #ruby
baweaver has quit [Remote host closed the connection]
<epitron>
it's probably easier to write your own authentication token code
mocfive has quit [Remote host closed the connection]
jontmorehouse has quit [Ping timeout: 272 seconds]
ged__ is now known as ged
mocfive has joined #ruby
MaciejCzyzewski has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
butblack has joined #ruby
justinmburrous has quit [Ping timeout: 245 seconds]
codeFiend has quit [Quit: codeFiend]
fabrice31 has quit [Ping timeout: 246 seconds]
larissa has joined #ruby
jimmyy has quit [Ping timeout: 246 seconds]
mocfive has quit [Read error: Connection reset by peer]
mocfive has joined #ruby
codeFiend has joined #ruby
JeffBonds has joined #ruby
MCDev has joined #ruby
fgo has quit [Ping timeout: 272 seconds]
<Bish>
can someone tell me how to prevent socksify from redirecting ALL connections? i only want a http socks proxy :(
centrx has quit [Quit: The plan is programmed into every one of my one thousand robots]
<Bish>
i only require socksify/http but that invokes require socksify, which overrides TCPSocket, which results in that behaviour
parduse has quit [Read error: Connection reset by peer]
michaeldeol has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
ndrei has quit [Ping timeout: 244 seconds]
tjr9898 has quit [Remote host closed the connection]
parduse has joined #ruby
treehug8_ has quit []
mikepack has joined #ruby
mastr_bennett[x] has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
kate_r has quit [Quit: My MacBook Air has gone to sleep. ZZZzzz…]
Hobogrammer has joined #ruby
Avahey has joined #ruby
wald0 has joined #ruby
russt has quit [Quit: russt]
mikepack has quit [Ping timeout: 258 seconds]
nhhagen has joined #ruby
slyslick has quit [Ping timeout: 245 seconds]
willgo has joined #ruby
kristofferR has joined #ruby
icebourg has quit []
jontmorehouse has joined #ruby
jhass is now known as jhass|off
kristoff_ has quit [Ping timeout: 258 seconds]
weirdpercent has joined #ruby
weirdpercent has left #ruby [#ruby]
manzo has joined #ruby
nhhagen has quit [Ping timeout: 245 seconds]
duncannz has joined #ruby
<fun>
hi folks I installed ruby
<fun>
and it worked but now for some reason it wont respond to gem
<fun>
or ruby -v
chipotle has joined #ruby
<fun>
shell messed up?
krisquigley has joined #ruby
emmesswhy has joined #ruby
Inv1s1ble has joined #ruby
SilkFox_ has joined #ruby
shinobi_one has joined #ruby
<Inv1s1ble>
so I'm having trouble with the following
<Inv1s1ble>
on line 27 it says it can't find opts if I use ./script_name -h
<maletor>
h/o. it looks like from heroku's server it doesn't work
mikecmpbll has quit [Quit: i've nodded off.]
<maletor>
but locally it does
dangerousdave has quit [Ping timeout: 244 seconds]
DrForr has joined #ruby
<maletor>
it works on my production bare metal too
<Inv1s1ble>
maletor, they might be running some kind of bot ban thingy and someone else might have made a lot of requests from the heroku subnet your app is in
<maletor>
why would that yield an SSL error?
<maletor>
isn't that a cipher error?
bthesorceror has quit [Quit: bthesorceror]
MCDev has quit [Ping timeout: 250 seconds]
russt has joined #ruby
ephemerian has quit [Quit: Leaving.]
benzrf|offline is now known as benzrf
<Inv1s1ble>
maletor, if they have some load balancer blocking you, it might not even get to the SSL handshake; just closing the connection
jonmorehouse has joined #ruby
cherwin has joined #ruby
jcdesimp has joined #ruby
cherwin has quit [Max SendQ exceeded]
ghr has joined #ruby
jontmorehouse has quit [Ping timeout: 260 seconds]
cherwin has joined #ruby
cherwin has quit [Max SendQ exceeded]
BadQuanta has joined #ruby
russt has quit [Ping timeout: 245 seconds]
Kricir has joined #ruby
lmickh has quit [Remote host closed the connection]
Phrogz has quit [Quit: Goodnight]
shock_one has joined #ruby
rubyonrailed has quit [Remote host closed the connection]
ghr has quit [Ping timeout: 272 seconds]
freerobby has quit [Quit: Leaving.]
cherwin has joined #ruby
preyalone has joined #ruby
ffranz has quit [Quit: Leaving]
shosti has quit [Ping timeout: 246 seconds]
endash has quit [Quit: endash]
<fun>
fixed
fun has left #ruby [#ruby]
shock_one has quit [Ping timeout: 246 seconds]
moritzs has joined #ruby
sevvie has joined #ruby
rubyonrailed has joined #ruby
TorpedoSkyline has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
Wolland has joined #ruby
duncannz has joined #ruby
phutchins has quit [Ping timeout: 260 seconds]
mikepack has joined #ruby
fgo has joined #ruby
thejamespinto has quit [Read error: Connection reset by peer]
SDr has joined #ruby
thejamespinto has joined #ruby
klaut has quit [Remote host closed the connection]
<SDr>
any ideas how I might restore openssl to this gem?
jonmorehouse has joined #ruby
thomasxie has joined #ruby
spicerack has joined #ruby
Mia has quit [Read error: Connection reset by peer]
fgo has quit [Read error: No route to host]
Mia has joined #ruby
sbar_ has joined #ruby
fgo has joined #ruby
xcyclist__ has joined #ruby
gsd has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
xcyclist has joined #ruby
Kricir has quit [Remote host closed the connection]
gsd has joined #ruby
DrCode has quit [Ping timeout: 264 seconds]
Asher2 has joined #ruby
<xcyclist>
I am in the jruby jail, and am having a hard time referencing a class in a tree branch 4 nodes away. Anyone have any starting suggestions?
marr has quit [Ping timeout: 246 seconds]
n_blownapart has joined #ruby
Asher has quit [Ping timeout: 245 seconds]
<xcyclist>
My collaborator is not providing methods to break the project down, so I'm trying to put together something in minitest, and I cannot refer to the class name in question.