hemanth has quit [Quit: This computer has gone to sleep]
fredjean has joined #ruby
enebo has quit [Quit: enebo]
flashuni has joined #ruby
jonathanwallace has joined #ruby
Marsthemanwithth has quit [Ping timeout: 264 seconds]
tobyo1 has quit [Ping timeout: 246 seconds]
jonathanwallace has quit [Client Quit]
smathieu has joined #ruby
jonathanwallace has joined #ruby
obs has quit [Quit: Konversation terminated!]
thepumpkin has joined #ruby
banghous_ has joined #ruby
fredjean has quit [Client Quit]
banghouse has quit [Read error: Connection reset by peer]
thepumpk_ has quit [Ping timeout: 256 seconds]
banghous_ is now known as banghouse
npulse has joined #ruby
blackmesa has quit [Ping timeout: 240 seconds]
Anarch has quit [Ping timeout: 264 seconds]
ZOGM_ has joined #ruby
Vivekananda has joined #ruby
Spooner has quit [Remote host closed the connection]
ckrailo has quit [Quit: Computer has gone to sleep.]
charliesome has joined #ruby
ckrailo has joined #ruby
keen____ has quit [Ping timeout: 240 seconds]
ZOGM has quit [Ping timeout: 248 seconds]
hanmac1 has joined #ruby
thepumpk_ has joined #ruby
mary5030 has quit [Remote host closed the connection]
thepumpkin has quit [Ping timeout: 246 seconds]
Ripp__ has joined #ruby
gildo has joined #ruby
cj3kim has quit [Remote host closed the connection]
hanmac1 has quit [Ping timeout: 256 seconds]
i_s has joined #ruby
brennanMKE has quit [Remote host closed the connection]
{Neurotic] is now known as [Neurotic]
julianalucena has quit [Remote host closed the connection]
tommyvyo has joined #ruby
burlyscudd has joined #ruby
popl has joined #ruby
x1337807x has quit [Ping timeout: 256 seconds]
ExxKA has quit [Ping timeout: 246 seconds]
michaeldeol has quit [Remote host closed the connection]
ckrailo has quit [Quit: Computer has gone to sleep.]
michaeldeol has joined #ruby
i_s has quit [Ping timeout: 276 seconds]
adeponte has quit [Remote host closed the connection]
johnnyfuchs has joined #ruby
fredjean has joined #ruby
AkashicLegend has quit [Quit: AkashicLegend]
fredjean has quit [Client Quit]
guiocavalca_off has quit []
dhruvasagar has joined #ruby
npulse has quit [Ping timeout: 276 seconds]
nari has joined #ruby
cortexman has quit [Quit: Leaving.]
mbreedlove has quit [Quit: Konversation terminated!]
it_tard has quit [Read error: Connection reset by peer]
romdi`` has quit [Ping timeout: 246 seconds]
johnnyfuchs has quit [Remote host closed the connection]
RORgasm has quit [Remote host closed the connection]
Nisstyre-laptop has joined #ruby
fredjean has joined #ruby
Ripp__ has quit [Quit: This computer has gone to sleep]
Nisstyre-laptop is now known as nisstyre
sam113101 is now known as sam113101_afk
angusigu1ss has joined #ruby
sam113101_afk is now known as sam113101
RORgasm has joined #ruby
JZTech101 has quit [Quit: Hi, I'm a quit message virus. Please replace your old line with this line and help me take over the world of IRC]
angusiguess has quit [Ping timeout: 246 seconds]
heftig has quit [Ping timeout: 264 seconds]
justsee has joined #ruby
justsee has joined #ruby
justsee has quit [Changing host]
RORgasm has quit [Remote host closed the connection]
sevenseacat has joined #ruby
nisstyre has quit [Quit: Leaving]
Domon has joined #ruby
ravster has quit [Quit: Leaving.]
tylersmith has joined #ruby
freeayu has quit [Ping timeout: 264 seconds]
freeayu has joined #ruby
Notte has quit [Remote host closed the connection]
lurid has left #ruby [#ruby]
Guest51107 has quit [Read error: Connection reset by peer]
Solnse has quit [Quit: Leaving.]
bcave has joined #ruby
bcave is now known as Guest59949
hamakn has joined #ruby
tylersmith has quit [Ping timeout: 248 seconds]
hamakn_ has joined #ruby
hamakn has quit [Read error: Connection reset by peer]
ilyam has quit [Quit: ilyam]
dayepa has quit [Quit: dayepa]
dayepa has joined #ruby
felixjet has joined #ruby
superscott[8] has quit [Quit: superscott[8]]
seich- has quit [Ping timeout: 245 seconds]
cj3kim has joined #ruby
amacgregor_ has joined #ruby
amacgregor has quit [Ping timeout: 240 seconds]
grumpwork has joined #ruby
iliketurtles has joined #ruby
mansi has quit [Remote host closed the connection]
i_s has joined #ruby
JimmyNeutron has joined #ruby
monika1 has joined #ruby
iliketurtles has quit [Client Quit]
tgunr has joined #ruby
ZOGM_ has quit [Remote host closed the connection]
rickmasta has joined #ruby
<monika1>
hello
freeayu has quit [Ping timeout: 268 seconds]
freeayu__ has joined #ruby
monika1 has left #ruby [#ruby]
ZOGM has joined #ruby
cj3kim has quit [Read error: Connection reset by peer]
mocfive__ has quit [Remote host closed the connection]
SirFunk_ has quit [Ping timeout: 245 seconds]
Myconix has quit [Ping timeout: 245 seconds]
<Soopaman>
superscott[8]: heheh, k
<Soopaman>
for the life of me I can't get the nfc gem to build
<Soopaman>
I have to proper version of libnfc on my machine (osx mountain lion), but for whatever reason the ./configure won't find it
jonahR has joined #ruby
ilyam has joined #ruby
justsee has left #ruby [#ruby]
Marsthemanwithth has joined #ruby
SirFunk has joined #ruby
kofno has joined #ruby
nitish has joined #ruby
nitish has quit [Changing host]
nitish has joined #ruby
ZOGM_ has joined #ruby
smathieu has quit [Remote host closed the connection]
nfk has quit [Quit: yawn]
GeissT has joined #ruby
gks has joined #ruby
ZOGM has quit [Ping timeout: 245 seconds]
kaspergrubbe has joined #ruby
<gks>
Hey guys. I have a small app i'm writing that uses ERB to generate some html files, however, whenever I am running into a problem with it I'm not able to figure out how to obtain any error messages for why it failed. Does anyone have any sugestions for this?
Marsthemanwithth has quit [Ping timeout: 264 seconds]
i_s has quit [Remote host closed the connection]
radic_ has quit [Ping timeout: 246 seconds]
vikhyat has quit [Remote host closed the connection]
Domon has quit [Remote host closed the connection]
DanKnox_away is now known as DanKnox
DanKnox is now known as DanKnox_away
amacgregor has quit [Ping timeout: 240 seconds]
freeayu__ has quit [Ping timeout: 256 seconds]
wesside has joined #ruby
zomgbie has joined #ruby
d3 has joined #ruby
smathieu_ has joined #ruby
freeayu__ has joined #ruby
serp` has quit [Quit: serp`]
jarin has joined #ruby
lady_lancer has joined #ruby
smathieu_ has quit [Ping timeout: 248 seconds]
johnkary has quit [Quit: @johnkary]
jdguingao has quit [Quit: Leaving]
<lady_lancer>
Hi , has anyone used em-ftpd and em-ftpd-fsd before as gems
<lady_lancer>
I am trying to use them to set up ftp server
<lady_lancer>
but I am recieving an error
nayfun has joined #ruby
zomgbie has quit [Ping timeout: 246 seconds]
<lady_lancer>
>>>>>/home/user/.rvm/gems/ruby-1.9.3-p448/gems/eventmachine-1.0.3/lib/eventmachine.rb:526:in `start_tcp_server': no acceptor (port is in use or requires root privileges) (RuntimeError)
<lady_lancer>
shouldn't ftp servers use port 21...its showing no errors on port 3000
enebo has quit [Client Quit]
<bnagy>
port 21 is standard, yeah, but it's a priv port
<bnagy>
if you were definitely running it as root, then probably it's in use already
phracker has quit [Excess Flood]
cads has joined #ruby
<bnagy>
you could try netstat -l | grep ftp or something
darknyan has left #ruby ["Leaving"]
baroquebobcat has joined #ruby
<bnagy>
depending on os etc
<lady_lancer>
its linux
<bnagy>
that, then
<popl>
lady_lancer: what doest he documentation say?
aryatosh has joined #ruby
<zachrab_>
anyone contribute to rubygems?
<popl>
zachrab_: yes. somebody, somewhere.
cha1tanya has quit [Read error: Operation timed out]
ntus1017 has joined #ruby
<zachrab_>
i am attempting to contribute and was wondering if anyone had insight
mootpointer has quit [Quit: Computer has gone to sleep.]
<popl>
then ask that. :)
<popl>
say what you mean dude
cj3kim has quit [Read error: Connection reset by peer]
<lady_lancer>
it just says that I need to create a config file with an example given on the github page....https://github.com/yob/em-ftpd
PCChris has joined #ruby
<lady_lancer>
I am using the same example , just that I have to change the port to 3000 in the config file
cj3kim has joined #ruby
<bnagy>
if 3000 works and 21 doesn't, then either you didn't have the root privs you thought you had, or that port is in use
<bnagy>
which is pretty much what the original error told you
<popl>
it's not actively maintained? that's dubious.
<havenwood>
zachrab: Whatcha looking to do?
axeman- has joined #ruby
<lady_lancer>
I am using my administrator account for sure...I am not sure if the port 21 is being used...I have not many programs installed and I am not running any other servers too :S
<popl>
lady_lancer: do you know how to check if port 21 is in use?
<havenwood>
zachrab: Add a something you need, add a feature that's already statys-accepted, improve documentation?
<lady_lancer>
I am afraid No popl
timonv has joined #ruby
<popl>
lady_lancer: then why are you administering an ftp server?
Pandee has quit [Read error: Connection reset by peer]
<bnagy>
lady_lancer: administrator account is not usually the same as root
Pandee has joined #ruby
<bnagy>
lady_lancer: and I told you how to check, above - netstat -l | grep ftp - if it shows any listening ports then it's in use
<popl>
lady_lancer: is this on an internal network?
<popl>
lady_lancer: will it be facing the internet?
<lady_lancer>
bnagy: it doesn't show anything
<popl>
then you're probably not running it as root
<popl>
:)
<bnagy>
ok, then probably you just weren't actually running it as root
<lady_lancer>
hmmm...I am actually using a linux virtual machine
Al_ has joined #ruby
<lady_lancer>
new to linux
<bnagy>
try running sudo <whatever command you are presently trying>
nayfun has left #ruby [#ruby]
lutfidemirci has joined #ruby
<popl>
this sounds all kinds of secure
<bnagy>
inorite?
<lady_lancer>
popl: it says command not found
<popl>
lady_lancer: you need to learn how to use linux
<popl>
lady_lancer: there's no way around that
<bnagy>
bwahahah ok, you've got some RVM magic path screwup, which is 'normal'
<bnagy>
honestly, just run it on a high port, it will save all kinds of pain
lutfidemirci has quit [Remote host closed the connection]
<popl>
lady_lancer is using rvm too?
<lady_lancer>
yes I have rvm
<bnagy>
based on the error, yeah
<popl>
oh boy
<zachrab_>
havenwood: whats the best for real-time logging just puts statements?
<havenwood>
zachrab: Other than Issue tickets, #rubygems can be a good place to get feedback.
<popl>
lady_lancer: rvm is a complicated mess and tends to trip up newbies.
<havenwood>
zachrab: Real-time logging?
<lady_lancer>
hmmm...ok
<popl>
lady_lancer: you didn't answer any of my earlier questions.
<havenwood>
RVM does some neat stuff, but chruby is my cup of tea.
<bnagy>
rbenv 4 lyf yo
wsterling has quit [Remote host closed the connection]
<apeiros>
joshmyers: ah, you ask me specifically for help with your problem. sorry, to large. I'm at work.
hamed_r has joined #ruby
oktapodi_ has joined #ruby
<joshmyers>
ah
timonv has joined #ruby
<joshmyers>
ok
enhance_ has joined #ruby
<joshmyers>
thanks anyway :)
buzzybron1 has joined #ruby
phreax_ has joined #ruby
brisbin has joined #ruby
sirecote_ has joined #ruby
mosez_ has joined #ruby
Zelest_ has joined #ruby
k0rupted_ has joined #ruby
sami_ has joined #ruby
pontiki_ has joined #ruby
joschi_ has joined #ruby
renderful has joined #ruby
filipe__ has joined #ruby
kiri_ has joined #ruby
1JTAADTRY has quit [Ping timeout: 240 seconds]
dash_ has quit [Ping timeout: 240 seconds]
sirecote has quit [Ping timeout: 240 seconds]
sirecote_ is now known as sirecote
oktapodi has quit [Ping timeout: 240 seconds]
buzzybron has quit [Ping timeout: 240 seconds]
emptynine has quit [Ping timeout: 240 seconds]
TomRone has quit [Ping timeout: 240 seconds]
Jb_ has quit [Ping timeout: 240 seconds]
dobry-den has quit [Ping timeout: 240 seconds]
diegok has quit [Ping timeout: 240 seconds]
uxp has quit [Ping timeout: 240 seconds]
mosez has quit [Ping timeout: 240 seconds]
MarcWeber has quit [Ping timeout: 240 seconds]
joonty has quit [Ping timeout: 240 seconds]
brisbin_ has quit [Ping timeout: 240 seconds]
_maes_ has quit [Ping timeout: 240 seconds]
k0rupted has quit [Ping timeout: 240 seconds]
awarner_ has quit [Ping timeout: 240 seconds]
neektza1 has quit [Ping timeout: 240 seconds]
joshu_ has quit [Ping timeout: 240 seconds]
spacebug1 has quit [Ping timeout: 240 seconds]
norm has quit [Ping timeout: 240 seconds]
davidcelis has quit [Ping timeout: 240 seconds]
zz_michael_mbp has quit [Ping timeout: 240 seconds]
norm_ is now known as norm
tehlers has quit [Ping timeout: 240 seconds]
enhance has quit [Ping timeout: 240 seconds]
Shirakawasuna has quit [Ping timeout: 240 seconds]
RichardBaker has quit [Ping timeout: 240 seconds]
filipe_ has quit [Ping timeout: 240 seconds]
kiri has quit [Ping timeout: 240 seconds]
noop has quit [Ping timeout: 240 seconds]
Spaceghost|work has quit [Ping timeout: 240 seconds]
adkron has quit [Ping timeout: 240 seconds]
richiebkr is now known as RichardBaker
yfeldblum has quit [Ping timeout: 240 seconds]
echevemaster has quit [Ping timeout: 240 seconds]
pontiki has quit [Ping timeout: 240 seconds]
[Neurotic] has quit [Ping timeout: 240 seconds]
dormiens has quit [Ping timeout: 240 seconds]
jolleyjoe has quit [Ping timeout: 240 seconds]
shaman42_ has quit [Ping timeout: 240 seconds]
phreax has quit [Ping timeout: 240 seconds]
Zelest has quit [Ping timeout: 240 seconds]
patronus_ has quit [Ping timeout: 240 seconds]
sami has quit [Ping timeout: 240 seconds]
joschi has quit [Ping timeout: 240 seconds]
echevemaster_ has joined #ruby
TomRone has joined #ruby
TomRone has quit [Changing host]
TomRone has joined #ruby
diegok has joined #ruby
MarcWeber has joined #ruby
Shirakawasuna has joined #ruby
lutfidemirci has quit [Write error: Broken pipe]
shaman42 has joined #ruby
davidcelis has joined #ruby
neektza1 has joined #ruby
tehlers has joined #ruby
jolleyjoe has joined #ruby
noop has joined #ruby
joonty has joined #ruby
ntzrmtthihu777 has joined #ruby
zz_michael_mbp has joined #ruby
dobry-den has joined #ruby
yfeldblum has joined #ruby
zz_michael_mbp is now known as michael_mbp
<ntzrmtthihu777>
hello, anyone here use eclipse for jruby+java developement? Have a question of opinion; which would be the better eclipse plugin for that, Aptana Studio or Aptana RadRails?
dormiens has joined #ruby
emptynine has joined #ruby
Domon has joined #ruby
ghr has joined #ruby
uxp has joined #ruby
jmimi has quit [Ping timeout: 245 seconds]
Mon_Ouie has joined #ruby
CubicE has joined #ruby
mercwithamouth has joined #ruby
atyz has joined #ruby
smathieu has joined #ruby
tommyvyo has joined #ruby
Arya_ has quit [Ping timeout: 256 seconds]
atyz has quit [Ping timeout: 276 seconds]
jmimi has joined #ruby
rickmasta has quit [Quit: Leaving...]
lkba has quit [Ping timeout: 246 seconds]
smathieu has quit [Ping timeout: 276 seconds]
freeayu has joined #ruby
mklappstuhl has joined #ruby
diegoviola has joined #ruby
freeayu__ has quit [Ping timeout: 248 seconds]
AlSquire has joined #ruby
freeayu has quit [Read error: Connection reset by peer]
fixl has joined #ruby
anay has joined #ruby
freeayu has joined #ruby
krainboltgreene has joined #ruby
niceguyjames has quit [Quit: Computer has gone to sleep.]
mikecmpbll has joined #ruby
<Nilium>
Alright, stb_image bindings done.
Skaflem has joined #ruby
thepumpk_ has joined #ruby
maetthew has joined #ruby
atno__ is now known as atno
alem0lars has joined #ruby
pedda has joined #ruby
alem0lars has quit [Client Quit]
lutfidemirci has joined #ruby
tvw has joined #ruby
thepumpkin has quit [Ping timeout: 248 seconds]
gregorg has quit [Read error: Operation timed out]
popl has quit [Quit: We must make an idol of our fear, and call it God.]
gregorg has joined #ruby
gregorg has joined #ruby
gregorg has quit [Changing host]
tagrudev has quit [Remote host closed the connection]
atmosx has quit [Quit: And so the story goes…]
DonRichie has quit [Ping timeout: 276 seconds]
james_woods is now known as iBot_23
atmosx has joined #ruby
BizarreCake has joined #ruby
tkuchiki has quit [Remote host closed the connection]
sevenseacat has left #ruby [#ruby]
aaronmcadam has joined #ruby
trepidaciousMBR has joined #ruby
<jlebrech>
i have a pkcs12 file from google and i can extract the private key, how do I use that private key to make a https request? there's plenty of info on using pem files though
niklasb has joined #ruby
tkuchiki has joined #ruby
goodgame has left #ruby ["Quitte"]
TonyMergue has joined #ruby
niceguyjames has joined #ruby
goshakkk has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<atmosx>
Hello, what does scaffolding mean in the context of programming?
ephemerian has joined #ruby
obs has quit [Remote host closed the connection]
vikhyat has joined #ruby
\du has joined #ruby
<\du>
morning
ilyam has quit [Quit: ilyam]
<apeiros>
atmosx: it means that you have a script which generates code files for you
<apeiros>
e.g. in rails you can do `rails scaffold foo` and it'll generate the controllers, models and views for you
oktapodi_ has quit [Remote host closed the connection]
<atmosx>
apeiros: thanks
krainboltgreene has quit [Ping timeout: 246 seconds]
yourmysin has joined #ruby
mercwithamouth has quit [Ping timeout: 264 seconds]
* hanmac2
uses C-macros to generate code
<Nilium>
You sure like saying that..
Marsthemanwithth has joined #ruby
gyre007 has joined #ruby
tonini has quit [Remote host closed the connection]
forced_request has quit [Ping timeout: 268 seconds]
mneorr_ has joined #ruby
lutfidemirci has quit [Remote host closed the connection]
Anarch has quit [Ping timeout: 264 seconds]
mneorr has quit [Ping timeout: 264 seconds]
Marsthemanwithth has quit [Ping timeout: 264 seconds]
ntus1017 has quit [Remote host closed the connection]
nerdman has joined #ruby
vivek` has joined #ruby
zomgbie has joined #ruby
pwnfactory has joined #ruby
<Xeago>
jlebrech: my experience with pkcs12 is a mess
zomgbie has quit [Read error: Connection reset by peer]
Soopaman has quit [Quit: Leaving.]
<atmosx>
everyone says pkcs12 is a mess since I can remember myself bumping into it, just for configurations. Weird no one came up with a better solution, probably it's hard to understand/work with.
Guest20808 is now known as bcave
poikon has joined #ruby
vikhyat has quit [Remote host closed the connection]
yacks has joined #ruby
bluOxigen has joined #ruby
niceguyjames has quit [Quit: Computer has gone to sleep.]
Xeago has quit [Remote host closed the connection]
postmodern has quit [Quit: Leaving]
RORgasm has joined #ruby
vikhyat has joined #ruby
Lewix has quit []
buibex has quit [Ping timeout: 264 seconds]
nari has quit [Ping timeout: 245 seconds]
_br_ has joined #ruby
zmike123 has joined #ruby
buibex has joined #ruby
rdark has joined #ruby
<joonty>
charliesome: apeiros told me that you wrote the cinch bot for eval.in. Is the code publicly viewable?
deadalus has quit [Read error: Operation timed out]
<cool_>
how to hide transaction variables in return url using paypal
thepumpk_ has quit [Remote host closed the connection]
Myrth has joined #ruby
<ccooke>
cool_: you'll need to be a bit more specific, there. How are you contacting paypal, and how are these variables being revealed?
<ccooke>
(The most obvious answer is "Don't print them")
Mathieu has joined #ruby
huttan has joined #ruby
zomgbie has joined #ruby
krainboltgreene has quit [Ping timeout: 276 seconds]
<cool_>
transaction id is displaying in the return url(displayed at address bar),so i need to hide the transaction
nfk has joined #ruby
nfk has joined #ruby
nfk has quit [Changing host]
Myrth has quit [Ping timeout: 268 seconds]
guiocavalca_off has joined #ruby
[Neurotic] has joined #ruby
hamed_r has quit [Quit: Ex-Chat]
dhruvasagar has quit [Ping timeout: 264 seconds]
dhruvasagar has joined #ruby
ismlages has joined #ruby
Domon has quit [Remote host closed the connection]
seich- has quit [Ping timeout: 264 seconds]
ntus1017 has joined #ruby
amacgregor has joined #ruby
<hanmac2>
cool_ you didnt answer the question if you use rails or not
<cool_>
ccooke: i need to store the transaction id in my db for the further verfication
<ccooke>
cool_: and by return url, you mean the url that paypal uses to return the user to you
<ccooke>
?
<cool_>
yes
saintcajetan has quit [Read error: Connection reset by peer]
seich- has joined #ruby
deadalus has joined #ruby
Domon has joined #ruby
nari has joined #ruby
tkachevskiy has joined #ruby
krainboltgreene has joined #ruby
Arya_ has joined #ruby
dhruvasagar has quit [Ping timeout: 256 seconds]
bamdad has quit [Quit: bamdad]
guiocavalca_off has quit [Remote host closed the connection]
dhruvasagar has joined #ruby
guiocavalca_off has joined #ruby
tkachevskiy has left #ruby [#ruby]
zomgbie has quit [Read error: Connection reset by peer]
RonScagz has joined #ruby
guiocavalca_off has quit [Read error: Connection reset by peer]
guiocavalca_off has joined #ruby
<cool_>
ccooke: by using the transaction id i need to develop the logic,but the problem is when the user changes the transaction id he will get the benifits
<cool_>
ccooke :so i need to check weather it is coming from paypal
<ccooke>
so, what you're saying is:
<ccooke>
1) A user clicks something on the paypal site.
<ccooke>
2) This redirects the user to your site, with the transaction ID in the URL
Arya_ has quit []
PCChris has quit [Ping timeout: 245 seconds]
<ccooke>
Right?
<cool_>
ccooke: no,in my site return url
<ccooke>
and what does "return url" mean in this context?
Arya_ has joined #ruby
<ccooke>
return from what?
<ccooke>
Who generates the return url, what is it returning from, where does it return to?
<cool_>
ccooke: yes 2 one has done,but i need to hide transaction id in return url
himsin has joined #ruby
ramblex has joined #ruby
<ccooke>
cool_: ... I don't understand you at all.
<ccooke>
cool_: your previous comment is unparsable, sorry
Gooder` has quit [Remote host closed the connection]
ananthakumaran1 has quit [Read error: Connection timed out]
ananthakumaran has joined #ruby
shaunbaker has joined #ruby
<joonty>
SyntaxError: unexpected grammar
Domon has quit [Remote host closed the connection]
renderful has joined #ruby
Domon has joined #ruby
guiocavalca_off has quit [Read error: Connection reset by peer]
Domon has quit [Remote host closed the connection]
krainboltgreene has quit [Ping timeout: 256 seconds]
<cool_>
ccooke: after successfull payment user is returning into my website because i set AUTO RETURN is on in my merchant account with out clicking anything. but the return url is coming with trasactin id in address bar. {<input type="hidden" name="return" value="http://localhost:3000/payment/callback">}
dhruvasagar has quit [Remote host closed the connection]
dhruvasagar has joined #ruby
bamdad has joined #ruby
shaunbaker has quit [Ping timeout: 245 seconds]
hanmac2 has quit [Quit: Leaving.]
pygospa has quit [Ping timeout: 246 seconds]
<joonty>
cool_: I don't think people can do anything with the transaction ID anyway. They can just get it from their own order history
<joonty>
cool_: PayPal wouldn't expose data that could cause security problems
<ccooke>
indeed
Neomex has joined #ruby
<ccooke>
and you're fundamentally asking "How can I change the way Paypal defines their service". To which the answer is probably no, and certainly not related to Ruby ;-)
Neomex has quit [Client Quit]
<cool_>
joonty: can't we hide the transaction id anyway
pygospa has joined #ruby
<ccooke>
cool_: not from a user, no
<joonty>
cool_: you could redirect immediately if you like
<ccooke>
cool_: fundamentally, the transaction ID has to pass from Amazon to you. The only way it can do that is via the user's browser.
<joonty>
store the get parameter in the session then redirect to another url
<ccooke>
There are ways that the transaction ID could be less obvious - if you can get Paypal to do a POST
<ccooke>
(Why did I say Amazon? Oh yes, because I'm buying stuff in another window)
dhruvasagar has quit [Ping timeout: 268 seconds]
hanmac1 has joined #ruby
<joonty>
ccooke: hope it's something cool
dhruvasagar has joined #ruby
<ccooke>
joonty: Some kit for larping this weekend. So: It depends on your definition of cool :-)
* joonty
googles larping
<Maior>
ccooke: I thought I recognised that nick
diegoviola has joined #ruby
<joonty>
ccooke: ah gotcha
<ccooke>
Maior: *grin*
TonyMergue has quit [Ping timeout: 256 seconds]
Fuzai_ has quit [Ping timeout: 256 seconds]
<ccooke>
Maior: you may or you may not, but I don't recognise yours.
niceguyjames has joined #ruby
TonyMergue has joined #ruby
<buzzybron1>
ok this is a silly question, i have a class named Beta, creating a Charlie class in it's init, and er... problem is, i need some of my Beta variables in Charlie when i call Charlie's methods, do i dump the whole Beta object to charlie's methods?
niceguyjames has quit [Client Quit]
shaunbak_ has quit [Remote host closed the connection]
pwnfactory has quit [Quit: Leaving]
<ccooke>
buzzybron1: can you pastebin a minimal example?
<joonty>
buzzybron1: sounds tightly coupled. Could you pass the beta instance to the charlie instance?
<hanmac1>
buzzybron1 yes you can store the entire beta object into an charlie object, even if the charlie object is in the beta object … it does even works with marshaling
<cool_>
ccooke and joonty thanks both of you it is working...rockss
<ccooke>
cool_: glad to hear it
<joonty>
cool_: awesome
emergion has joined #ruby
realDAB has joined #ruby
LucidDreamZzZ has quit [Remote host closed the connection]
sth has joined #ruby
<ccooke>
buzzybron1: don't think of it as dumping the object, think of it as creating a reference to the object within the Charlie class
<sth>
Hey guys, I'm trying to build 1.8.7 on OS X 10.8, but I get a rb_gc segfault
<sth>
I'm compiling with gcc-4.2
zomgbie has joined #ruby
<hanmac1>
sth first your gcc is massive outdated, try to get an newer one, second ruby1.8.7 dies and will not get any support, use ruby2.0 or newer
zomgbie has quit [Client Quit]
<sth>
dropping 1.8.7 isn't an option and running with a non-llvm gcc on OS X was accepted
<halfie>
(v = *x;) <=== de-referencing x is not OK
guiocavalca_off has quit [Remote host closed the connection]
smathieu has joined #ruby
<hanmac1>
halfie: you get "VALUE" wrong … VALUE itself is an pointer type
vadviktor_ has joined #ruby
bhaak has joined #ruby
<halfie>
hanmac1, I see. I am getting "AddressSanitizer: stack-buffer-underflow on address 0x7fff78b6b8c0"
<halfie>
READ of size 8 at 0x7fff78b6b8c0 thread T0
<halfie>
and those addresses resolve to "v = *x;" line
rshetty has joined #ruby
Zelest_ is now known as Zelest
<hanmac1>
hm ok that should not happening … maybe you can make a bugticket on https://bugs.ruby-lang.org/ and post how you get the error
<halfie>
hanmac1, I am using Clang 's / GCC's address sanitizer feature which is a strict bound checking compilation feature.
<halfie>
not sure if this is an actual bug in ruby
krandi has joined #ruby
andikr has quit [Ping timeout: 248 seconds]
<hanmac1>
halfie: hm what is your GCC version? maybe you need newer ones?
<halfie>
hanmac1, I am running the latest, GCC 4.8.1 on Fedora 19.
shaunbaker has joined #ruby
smathieu has quit [Ping timeout: 276 seconds]
<hanmac1>
hm ok and ruby is also an newer (2.*) version? … you can still publish the result of the address sanitizer on the bug ticker, maybe there are other hidden bugs
<halfie>
hanmac1, I will try building the latest commit from git / hg repo
chase-work has joined #ruby
<hanmac1>
like i said, it might be still good if you post your results
<halfie>
will do.
tkuchiki has quit [Remote host closed the connection]
atno has quit [Ping timeout: 246 seconds]
shaunbaker has quit [Remote host closed the connection]
tkuchiki has joined #ruby
Arya_ has quit [Ping timeout: 248 seconds]
Arya_ has joined #ruby
ntus1017 has quit [Remote host closed the connection]
<apeiros>
brisbin: and this is not a conditional how?
<hanmac1>
hm no (2-3ı) is complex
<brisbin>
f [] = []; f (x:xs) = f x : f xs
anay has quit [Remote host closed the connection]
yano has joined #ruby
<brisbin>
apeiros: valid point i guess
<apeiros>
yay! I win! ;-)
<brisbin>
my only point was if is a smell
<brisbin>
pattern matching is better
<apeiros>
well, but pattern matching is just moving the conditional into something somebody wrote already
<apeiros>
i.e., that's what I tried to exemplify by "I use Array#include?, so I don't iterate over the array" - well sure, you don't, but you use something in its place which "does it for you"
thinkiny has quit [Quit: Leaving]
yfeldblum has quit [Read error: Connection reset by peer]
jerius has joined #ruby
<brisbin>
makes sense, but pattern matching is declarative while if is a branching of control flow
<hanmac1>
apeiros: "Ruby - where the code does it for you"
Dreamer3 has quit [Quit: Leaving...]
<brisbin>
so i think there's a value difference there
<apeiros>
but I think I understand what you mean. explicitly using an `if` yourself is a smell. the constructs which do decisions might be implemented in whatever way, i.e., that part is an implementation detail and not your code
trepidaciousMBR has quit [Ping timeout: 246 seconds]
yfeldblum has joined #ruby
guiocavalcanti has joined #ruby
yfeldblum has quit [Read error: Connection reset by peer]
gyre007 has joined #ruby
kjeldahl has joined #ruby
yfeldblum has joined #ruby
gyre007 has quit [Remote host closed the connection]
gyre007 has joined #ruby
<kjeldahl>
I'm struggling with a very slow proxy which make the automated download tasks that rake does time out. Anybody know of a simple way to tell rake to give download tasks a little more time to complete?
AkashicLegend has joined #ruby
<brisbin>
i didn't know rake had a timeout
<brisbin>
are you sure that's not net/http timing out?
yfeldblum has quit [Read error: Connection reset by peer]
rshetty has quit [Quit: Sleeping]
<kjeldahl>
That could be (I have no idea what rake is using internally). Any way to either set timeout options for that module, OR tell rake to use something else to download (curl, wget etc)?
yfeldblum has joined #ruby
smathieu has joined #ruby
xcv has quit [Remote host closed the connection]
<brisbin>
kjeldahl: first, use --trace to get the real error see if it's net/http
anay has joined #ruby
<brisbin>
if it is you can adjust the timeout on that (google knows how, i don't)
xcv has joined #ruby
<kjeldahl>
brisbin: Well, it posts a "Timeout:Error" in the console already, but sure, I'll give it a try.
<kjeldahl>
*Timeout::Error
<brisbin>
--trace should tell you who raised that, which is the thing you need to tell to back off
<kjeldahl>
Thanks, giving it a try now.
<kjeldahl>
Is URI.download some standard lib in Ruby?
thepumpkin has quit [Remote host closed the connection]
hemanth has quit [Read error: Connection reset by peer]
pranny1 has joined #ruby
anay has quit [Remote host closed the connection]
shaunbak_ has quit [Remote host closed the connection]
dash_ has joined #ruby
havenwood has joined #ruby
sambao21 has joined #ruby
ndrei has quit [Ping timeout: 246 seconds]
acrussell has joined #ruby
brbcoding has joined #ruby
cj3kim has quit [Ping timeout: 276 seconds]
mansi has joined #ruby
Pandee has quit [Ping timeout: 264 seconds]
pranny has quit [Ping timeout: 245 seconds]
failshell has joined #ruby
freerobby has quit [Quit: Leaving.]
johnnyfuchs has joined #ruby
buzzybron1 has left #ruby [#ruby]
gyre008 has quit [Remote host closed the connection]
freerobby has joined #ruby
gyre007 has joined #ruby
havenwood has quit [Ping timeout: 256 seconds]
elux has joined #ruby
sambao21 has quit [Client Quit]
sailias has joined #ruby
fernandoaleman has joined #ruby
thams has quit [Quit: thams]
v0n has joined #ruby
marcdel has joined #ruby
anonymuse has joined #ruby
hanmac1 has quit [Quit: Leaving.]
I99Mhz has quit [Quit: Saindo]
hanmac1 has joined #ruby
pskosinski has joined #ruby
DonRichie has joined #ruby
vikhyat has quit [Remote host closed the connection]
realDAB has joined #ruby
tomzx_mac has quit [Read error: Operation timed out]
smathieu has joined #ruby
jlast has joined #ruby
emergion has quit [Quit: Computer has gone to sleep.]
renderful has joined #ruby
cr3 has joined #ruby
thepumpkin has quit [Remote host closed the connection]
pranny1 has quit [Read error: Connection reset by peer]
thepumpkin has joined #ruby
<cr3>
hi folks, is there a way to exec multiple commands with net::ssh within the same session? for example, if I cd into a directory and then list, it should return the content of that directory
rodacato has joined #ruby
<cr3>
apeiros: ^^^ if you have a moment, I'd really like to follow up on yesterday and have a peak at your code that can run multiple commands with net::ssh.
andikr has quit [Remote host closed the connection]
hamakn has joined #ruby
smathieu has quit [Ping timeout: 276 seconds]
trepidaciousMBR has joined #ruby
bamdad has quit [Quit: bamdad]
vlad_starkov has joined #ruby
devoldmx3 has quit [Read error: Connection reset by peer]
renderful has quit [Ping timeout: 264 seconds]
jarin has quit [Ping timeout: 256 seconds]
devoldmx has joined #ruby
hamakn has quit [Remote host closed the connection]
DestinyAwaits has quit [Read error: Connection reset by peer]
Neomex has quit [Client Quit]
dgx has joined #ruby
geggam has joined #ruby
burlyscudd has joined #ruby
ssvo has joined #ruby
seich- has quit [Ping timeout: 264 seconds]
pydave6367 has joined #ruby
s00pcan has quit [Quit: Lost terminal]
devoldmx has quit [Read error: Connection reset by peer]
pydave6367 has left #ruby [#ruby]
deadalus has quit [Ping timeout: 240 seconds]
alup has quit [Quit: Leaving]
sailias1 has joined #ruby
<stairmast0r>
i don't quite get what a "rails app" is.
<stairmast0r>
Next, let’s create a new host config file at /etc/nginx/conf.d/my_app.conf for our rails app, paste following:
sailias has quit [Ping timeout: 240 seconds]
apeiros has quit [Remote host closed the connection]
<stairmast0r>
why would an nginx upstream server be "for a rails app"?
<stairmast0r>
wouldn't it just be your ruby server, eg. puma/passenger/thin ?
mklappstuhl has quit [Remote host closed the connection]
zomgbie has joined #ruby
wsterling has joined #ruby
anay has joined #ruby
<hanmac1>
stairmast0r: #rubyonrails
nitish has quit [Remote host closed the connection]
nari has quit [Ping timeout: 256 seconds]
DestinyAwaits has joined #ruby
alexwh has quit [Read error: Operation timed out]
alexwh has joined #ruby
phasma has quit [Quit: Connection closed for inactivity]
terrellt has quit [Ping timeout: 276 seconds]
DestinyAwaits has quit [Max SendQ exceeded]
DestinyAwaits has joined #ruby
guiocava_ has joined #ruby
<stairmast0r>
hanmac1: i don't want rails though, i want to use sinatra
<stairmast0r>
i also have no idea what i'm doing. ruby is completely new to me
bigoldrock has joined #ruby
npulse has quit [Quit: Lost terminal]
fernandoaleman has left #ruby [#ruby]
dgx has quit [Quit: Leaving]
saarinen has joined #ruby
<hanmac1>
i only wanted to point you out that you are asking rails questions in an non-rails channel … for sample the knowledge i have about rails is far less than zero
<TheBlackMan>
you don't need web server to use sinatra
airlok has quit [Remote host closed the connection]
guiocavalcanti has quit [Ping timeout: 264 seconds]
<stairmast0r>
TheBlackMan: i want to use sinatra on my website
<stairmast0r>
in place of a bunch of PHP crap
<Xeago>
stairmast0r: depending on the usecase it might still be smart to use an nginx upstream
Michael__ has quit [Remote host closed the connection]
<Xeago>
you can have it act as a loadbalancer between multiple sinatra apps running
<stairmast0r>
i am using an nginx upstream, but i don't know what the socket should be a socket to
<stairmast0r>
Xeago: what is an app?!
<stairmast0r>
i come from .html and .php
<Xeago>
let me first explain to you what an upstream is
airlok has joined #ruby
Michae___ has joined #ruby
<Xeago>
an upstream is a location where the nginx should get the response from
airlok has quit [Remote host closed the connection]
angusiguess has quit [Quit: leaving]
senayar has quit [Remote host closed the connection]
<Xeago>
e.g. user => web => your server => nginx => someotherstuffrubyhere
<stairmast0r>
Xeago: i know what an upstream is as well
deadalus has joined #ruby
<Xeago>
you can have multiple upstreams to allow multiple requests to be served
threesome has joined #ruby
<stairmast0r>
server unix:///var/run/______.pid
<Xeago>
an 'app' in what you are looking for in the word, is an http service
<mikecmpbll>
stairmast0r: a web app is just a website with dynamic content.
seich- has joined #ruby
<stairmast0r>
mikecmpbll: so i need to define an upstream for every single website?
cortexman has joined #ruby
QKO has quit [Read error: Operation timed out]
<mikecmpbll>
yes.
<Xeago>
stairmast0r: depends on how you want to host your rubies
<Xeago>
there is also passenger
devoldmx has joined #ruby
<mikecmpbll>
how many websites are you planning on having? :s
<stairmast0r>
passenger requires that i install apache
<stairmast0r>
mikecmpbll: more than one
<mikecmpbll>
well it's not really a problem is it.
<sam113101>
you can use nginx
<Xeago>
stairmast0r: passenger also works on nginx so I am told
<stairmast0r>
mikecmpbll: even if i have only one, it bothers me that it would be designed like this
<sam113101>
yes, I use it with nginx
<stairmast0r>
sam113101: i am using nginx
tylersmith has joined #ruby
<stairmast0r>
Xeago: it does work on nginx but it pulls apache as a dependency
<Xeago>
doubt it..
nomenkun has quit [Remote host closed the connection]
<sam113101>
how are you installing it?
<Xeago>
stairmast0r: you want to decouple your webserver from your application server
<mikecmpbll>
requests handled by nginx need to know where to go somehow.
<mikecmpbll>
...
<Xeago>
as they have different scaling requirements
polokov has joined #ruby
<Xeago>
and they can serve a subset of requests
<stairmast0r>
;call emerge -pvD passenger
RichardBaker has joined #ruby
<Xeago>
as in, static files
<polokov>
stairmast0r: These are the packages that would be merged, in order:, Calculating dependencies ... done!, [ebuild N ] virtual/ruby-ssl-1:ruby19 RUBY_TARGETS="(ruby19)" 0 kB, [ebuild N ] dev-ruby/rack-1.4.5:1.4 USE="-doc {-test}" RUBY_TARGETS="ruby19 -jruby (-ree18) -ruby18" 476 kB, [ebuild N ] dev-ruby/daemon_controller-1.1.1 USE="{-test}" RUBY_TARGETS="ruby19 (-ree18) -ruby18" 24 (4 more messages)
<Veejay>
Hello everyone, I am looking to achieve the following: only insert an object in an array of similar objects if the object doesn
<Veejay>
Sorry
<stairmast0r>
;part
polokov has left #ruby ["stairmast0r"]
hasrb has joined #ruby
Michae___ has quit [Remote host closed the connection]
tommyvyo has quit [Client Quit]
<Veejay>
Doesn't already exists in the array. With the following catch: The "already exists" in this case is the result of calling a method on the object and verifying that there is no object in the array that would return the same value for the same method
saintcajetan has joined #ruby
<mikecmpbll>
stairmast0r: i really don't get how you envisage it ought to be done
<Veejay>
i.e. widgets << widget unless widgets.map{|w| w.id.to_s }.include?(widget.id.to_s)
<Xeago>
Veejay: Array#any{|o| o.method}
<stairmast0r>
mikecmpbll: with PHP you don't need an "app" for every website
<mikecmpbll>
how do you do it in php?
<stairmast0r>
mikecmpbll: you have a single upstream for PHP-FPM and it executes all your PHP code
<Xeago>
he probably uses virtualhosts
<Veejay>
Xeago: That's nice, is there a way to have that combined with the include somehow?
<stairmast0r>
yes i do
Michae___ has joined #ruby
<Veejay>
I can make do though, just wondering
<Xeago>
Veejay: bit busy, didn't read your code
<Veejay>
Xeago: no worries
<Veejay>
Thanks
<mikecmpbll>
i'm not really a brain on networking stuff so i don't know the terms upstream etc but
sayan has joined #ruby
<Xeago>
but that gives a boolean whether any object in that array satisfies the condition you can specify
smathieu_ has quit [Ping timeout: 248 seconds]
Vivekananda has joined #ruby
mklappstuhl has joined #ruby
anildigital is now known as anildigital_away
<Xeago>
stairmast0r: but that doesn't give you multiple sites
<mikecmpbll>
i thought upstream stuff was for server clustering
AndChat| has joined #ruby
<havenwood>
humperdink!
<mikecmpbll>
website then.
<Xeago>
mikecmpbll: it is yes!
sayan has quit [Max SendQ exceeded]
<Xeago>
or a reverse proxy..
<mikecmpbll>
he has multiple servers?
S0da has quit [Remote host closed the connection]
<stairmast0r>
i have one server
<stairmast0r>
nginx
<stairmast0r>
with vhosts for a few domains
cj3kim has quit [Read error: Connection reset by peer]
<mikecmpbll>
that's exactly what you do in ruby
rshetty has joined #ruby
<stairmast0r>
i would like to stop using the abomination that is PHP and replace it with a decent langauge like ruby
<mikecmpbll>
they're not called vhosts in nginx
<stairmast0r>
but i would like to define a single upstream server in nginx that is "ruby".
sayan has joined #ruby
<stairmast0r>
i know
dhruvasagar has joined #ruby
<mikecmpbll>
they're called server blocks, vhosts is an apache thing
mahmoudimus has quit [Quit: Computer has gone to sleep.]
contradictioned has joined #ruby
<stairmast0r>
then i would like to include that upstream in all my "server blocks"
<mikecmpbll>
what do you mean by upstream server?
ewnd9 has joined #ruby
sr78ger has joined #ruby
zzz has joined #ruby
<stairmast0r>
mikecmpbll: in nginx
<stairmast0r>
mikecmpbll: "upstream nameHere { server unix:///var/run/socket.sock; }"
Banistergalaxy has quit [Ping timeout: 276 seconds]
<stairmast0r>
normally that would have been php-fpm.sock
<mikecmpbll>
what does that do? (bearing in mind this is #ruby not #nginx)
<stairmast0r>
and then i use that upstream in all my websites for php
<stairmast0r>
mikecmpbll: well you were correcting me on what an nginx vhost is called...
<mikecmpbll>
yes, doesn't mean i know everything
<stairmast0r>
mikecmpbll: you've also been telling me that i have to have a separate upstream for every "app"
<stairmast0r>
now you're saying you don't know what an upstream is
<mikecmpbll>
exactly.
<mikecmpbll>
chill out mister, only trying to help
<zzz>
Hi, i' ve a string ending with similar characters (e. g. 'string???'. How can i write a function which would simply delete these trailing characters? Since i' m not familiar with ruby at all, if You can give me some links, that' d be good as well.
<mikecmpbll>
you've had a confrontational attitude since you started asking the question
cha1tanya has quit [Read error: Connection reset by peer]
cha1tanya_ has joined #ruby
gildo has quit [Ping timeout: 245 seconds]
pranny has left #ruby [#ruby]
<stairmast0r>
i'm just a bit..flustered..or something
<mikecmpbll>
if you want help on using nginx with ruby apps, on one web server then I can help you
<mikecmpbll>
i've never used nginx upstream in my life and I run a web server running ~10 websites
<stairmast0r>
mikecmpbll: then how do you use ruby on them?
<stairmast0r>
proxy_pass?
<mikecmpbll>
let me gist my config
paolooo has joined #ruby
brunoro__ has joined #ruby
xjunior has quit [Read error: Connection reset by peer]
Tomasso has joined #ruby
<havenwood>
stairmast0r: serve each Ruby webapp on its own socket/port and yeah, proxy_pass to em
apeiros has joined #ruby
obs_ has quit [Quit: Konversation terminated!]
thams has joined #ruby
cha1tanya_ is now known as cha1tanya
<mikecmpbll>
meh, i won't gist it because it's got all my shit in, but for each new rails app i just add a new server block, the `root` directive points to my app's public/ directory
cha1tanya has quit [Changing host]
cha1tanya has joined #ruby
<mikecmpbll>
i use passenger.
<havenwood>
stairmast0r: Nginx just used as a reverse proxy. I use Unicorn.
<stairmast0r>
does ruby not work in the slightest bit like php-fpm?
sayan has quit [Read error: Connection reset by peer]
<mikecmpbll>
stairmast0r: from what you've explain of it, no.
vlad_starkov has joined #ruby
poga has joined #ruby
Solnse has joined #ruby
<Tomasso>
i declared an object @myobject = {} , then i did load 'myfile.rb' that has @myobject[:hello] = {:bla => "bye" } , I get method [] undefined for nil:NilClass .. is there some way to include the second definition using the first one? so i dont get the error?
<stairmast0r>
php-fpm == same proxy_pass for every server block, code inside a .php file wrapped in <?php ?> will be executed before displaying the page.
<stairmast0r>
that's it.
<stairmast0r>
no "apps"
timonv has quit [Remote host closed the connection]
<stairmast0r>
just a way to include server-side code in a normal html page
<havenwood>
stairmast0r: There are many ways to do it, but the common pattern is to use Rack. You pick a Rack framework like Rails or a Rack DSL like Sinatra. They have Rack as a dependency. Then a Rack web server, like Unicorn, Passenger, Puma, or Thin serves up that app on the socket or port of your choosing.
<havenwood>
stairmast0r: Nginx is simple a reverse proxy to the Ruby web server.
nitish has joined #ruby
<havenwood>
s/simple/simply
Notte has joined #ruby
burlyscudd has quit [Quit: Leaving.]
vlad_sta_ has joined #ruby
vlad_starkov has quit [Read error: Connection reset by peer]
ewnd9 has quit [Ping timeout: 264 seconds]
<stairmast0r>
oh god...
xcthulhu has quit [Quit: xcthulhu]
Senjai has joined #ruby
xjunior has joined #ruby
hogeo has quit [Remote host closed the connection]
contradictioned has quit [Ping timeout: 248 seconds]
xjunior has quit [Client Quit]
sr78ger has quit [Quit: Qui]
<havenwood>
stairmast0r: Have you tried out Sinatra? That might help give you a feel for what a Rack-based solution feels like.
<havenwood>
It is a minimalist DSL on top of Rack. You don't have to know about Rack or Rack web servers to use it.
saarinen has quit [Quit: saarinen]
smathieu has joined #ruby
kaspergrubbe has quit [Ping timeout: 245 seconds]
brunoro__ has quit [Ping timeout: 261 seconds]
sailias1 has quit [Ping timeout: 276 seconds]
sambao21 has quit [Quit: Computer has gone to sleep.]
ewnd9 has joined #ruby
<havenwood>
stairmast0r: So for the Sinatra homepage example, you'd just `proxy_pass http://localhost:4567`.
BlueShark has joined #ruby
<stairmast0r>
do i need puma for it?
<havenwood>
stairmast0r: If you don't explicitly select a web server, Sinatra tries to select the best option for you.
<havenwood>
stairmast0r: You don't need Puma. It is a nice option though.
tommyvyo has quit [Client Quit]
<stairmast0r>
havenwood: s/do i need/does sinatra take the place of
<stairmast0r>
so.. nginx -> puma -> sinatra?
<havenwood>
stairmast0r: yup
QKO has quit [Ping timeout: 264 seconds]
Senjai has quit [Ping timeout: 248 seconds]
<havenwood>
stairmast0r: nginx is *just* a reverse proxy, puma is serving up your Rack app, Sinatra is a DSL to make it nicer than writing a straight Rack app.
ndrei has joined #ruby
<stairmast0r>
..where does the html come in?
<havenwood>
stairmast0r: Sinatra has been widely copied by other languages (some nice names like Scalatra), but the basic idea is instead of arranging your app as files in directories you setup routes and views.
QKO has joined #ruby
<Eiam>
padrino
<stairmast0r>
oh dear
<havenwood>
stairmast0r: Take a look at Sinatra readme. It is a great way of doing things.
<zzz>
-quit
zzz has quit [Quit: [BX] Everybody was Kung Fu fighting!]
<havenwood>
zzz: waaaait
<Veejay>
Are each_pair and each twins?
<Veejay>
Or is there a subtlety I'm overseeing?
Al_ has quit [Quit: Al_]
<Eiam>
Veejay: looks the same to me..
<Eiam>
(when called on a hash)
eldariof has joined #ruby
<Veejay>
Same here, it looks like an alias
<Eiam>
Veejay: maybe some history, each_pair existed before each would auto expand to two parameters or what not
blaxter has quit [Quit: foo]
<Eiam>
(pure speculation )
<stairmast0r>
i'm tempted to go back to php
<Eiam>
don't.. lol
<Veejay>
PHP is at version 6, Ruby is only at version 2. I won't lie, it looks like it would offer more. Definitely tempting
<havenwood>
stairmast0r: Take half an hour to learn Sinatra. Try actually setting up a few GET request routes and corresponding views/ for them.
<stairmast0r>
or even Wt
<sam113101>
is sinatra always a good fit?
jonahR has joined #ruby
shaunbak_ has quit [Remote host closed the connection]
woolite64__ is now known as woolite64
airlok has quit [Remote host closed the connection]
<Eiam>
Veejay: lol
<Veejay>
Is "Is X always a good fit" a yes/no question to begin with? :)
<Eiam>
sam113101: I used to use Rails, I moved to sinatra
<Eiam>
then I moved "up" to Padrino
<Veejay>
Unless we're talking OJ's glove
<Eiam>
as I've better understood what sorts of things I want to do, I've changed my tools to better suite those goals.
<havenwood>
sam113101: If what you want is a static site, maybe look at Jekyll. A blog, maybe octopress. A small web app or api, sinatra. A more involved web app framework, padrino or rails.
LexieGrey has quit [Read error: Connection reset by peer]
juo100 has quit [Quit: juo100]
<Eiam>
Rails was too much for what I wanted, and wasn't exactly what I was really after. Sinatra was almost just right, but not quite enough
Catbuntu has joined #ruby
<Eiam>
I'm working with Padrino now and pretty happy so far
<havenwood>
sam113101: Something closer to the metal, scorched, or go all the way and straight rack.
rodacato has quit [Remote host closed the connection]
sailias has joined #ruby
denysonique has joined #ruby
<havenwood>
Eiam: Padrino with ActiveRecord, or what for ORM?
lewis_ has joined #ruby
lewis_ is now known as Lewix
Lewix has quit [Changing host]
Lewix has joined #ruby
pkrnj has joined #ruby
<denysonique>
Quickest way to parse a url, modify a param and return the url back?
mklappstuhl has quit [Remote host closed the connection]
jlast has quit [Remote host closed the connection]
ZOGM_ has quit [Remote host closed the connection]
ewnd9 has quit [Ping timeout: 240 seconds]
ntus1017 has quit [Remote host closed the connection]
ZOGM has joined #ruby
kaspergrubbe has joined #ruby
Astralum has quit [Ping timeout: 276 seconds]
allaire has quit [Quit: allaire]
brandon__ has joined #ruby
devoldmx has joined #ruby
thepumpkin has quit [Remote host closed the connection]
Arya_ has quit []
pranny has quit [Quit: Leaving.]
darkc0met has quit [Ping timeout: 248 seconds]
Marsthemanwithth has joined #ruby
joesavage has joined #ruby
burlyscudd has quit [Quit: Leaving.]
pkrnj has quit [Quit: Computer has gone to sleep.]
kaspergrubbe has quit [Ping timeout: 276 seconds]
<joesavage>
I'm running 'curl' in a Ruby script to grab a page then using Nokogiri::HTML to parse that page -- both as my local user and via a cron job, the curl grabs the page correctly, but under my cron job the Nokogiri::HTML magically changes the page into some totally different page -- anyone got any troubleshooting advice for me?
yshh has quit [Remote host closed the connection]
poikon has quit [Ping timeout: 246 seconds]
fernandoaleman has joined #ruby
<brisbin>
everything works when not run via cron?
deeepblue has quit [Read error: Connection reset by peer]
x1337807x has joined #ruby
fernandoaleman has left #ruby [#ruby]
deeepblue has joined #ruby
burlyscudd has joined #ruby
<joesavage>
Everything works perfectly when not run via cron, and the 'curl' gets the absolute correct data via cron, but the Nokogiri::HTML seems to change the page, it's really very strange
axeman- has joined #ruby
allaire has joined #ruby
<brisbin>
have your script dump output of `whoami` and `env` both in and out of cron. compare.
platzhirsch has joined #ruby
ilyam has joined #ruby
atmosx has quit [Quit: And so the story goes…]
saarinen has quit [Quit: saarinen]
burlyscudd has quit [Client Quit]
pkrnj has joined #ruby
Newbcake has joined #ruby
<joesavage>
Will try that in a sec -- I can re-create the issue by going in as my local user and then running "env -i /bin/bash --noprofile --norc", loading up my Ruby environment, and then running the script (it has the same problem as the cron job)
<brisbin>
LC_ALL may effect the behavior of nokogiri
Arya_ has joined #ruby
<joesavage>
Right
<brisbin>
try setting LC_ALL to en_GB.UTF-8 explicitly in the script then run it in cron
<graft>
okay, if i do case blah, how do i say 'when > 1000'?
zeropx has joined #ruby
<graft>
i can do 'when 1000...100000'
<graft>
but can i do a range to infinity?
<blitz>
and beyond
<brisbin>
i think FixNum has a MAX_INT constant or something, but i would just do case; x > 1000; end
<graft>
yeah but that so ugly
<graft>
i mean i might as well write if statements
<brisbin>
then maybe you can restructure your code to remove the case
<joesavage>
brisbin: I'm getting "bash: warning: setlocale: LC_ALL: cannot change locale (enGB.UTF-8): No such file or directory" -- I know this isn't a bash channel, but any idea?
cj3kim has joined #ruby
<graft>
dammit stack overflow is floundering
<zendeavor>
locale-gen
<brisbin>
ohai zendeavor
<zendeavor>
sup brisbin
sambao21 has joined #ruby
<zendeavor>
i'm new here, wut do
<brisbin>
it's pretty quiet, i just started idling here today
<zendeavor>
oh i've been here longer than that
<zendeavor>
#winning
ldnunes has quit [Ping timeout: 256 seconds]
PhatBaja has joined #ruby
<brisbin>
graft: end_GB.UTF-8
michaeldeol has quit [Remote host closed the connection]
<brisbin>
sorry, en_GB.UTF-8 ugh
<brisbin>
you missed the _
<zendeavor>
this is how i learned bash: /j #bash; /me wait();
<zendeavor>
now i'm trying it for ruby.
<brisbin>
run, i should hang out in #bash that'd be a funtime
<brisbin>
s/run/fun/
<zendeavor>
it's not a funtime
brunoro__ has quit [Ping timeout: 240 seconds]
<joesavage>
brisbin: I think the locale actually did it -- thanks!
<zendeavor>
brainmelting
Newbcake is now known as NealJ
<brisbin>
joesavage: cool, np
cortexman has joined #ruby
cj3kim has quit [Ping timeout: 264 seconds]
sambao21 has quit [Ping timeout: 264 seconds]
<zendeavor>
the only reason #bash is cool is because of us regulars but none of us really get along either
interactionjaxsn has quit [Remote host closed the connection]
kevinykc_ has quit [Quit: Computer has gone to sleep.]
interactionjaxsn has joined #ruby
elaptics is now known as elaptics`away
dclist has joined #ruby
swordsmanz is now known as swordsneedsleep
michaeldeol has joined #ruby
joesavage has quit [Quit: Page closed]
poga has joined #ruby
baordog has joined #ruby
cantonic has quit [Quit: cantonic]
darkc0met has joined #ruby
oktapodi has joined #ruby
Michae___ has joined #ruby
jprovazn has quit [Quit: Odcházím]
thetristan has joined #ruby
<havenwood>
#zsh or #bash, cagefight!
wsterling has quit [Read error: Connection reset by peer]
cha1tanya has quit [Quit: cha1tanya]
wsterling has joined #ruby
<zendeavor>
#zsh deserves the stupid questions it gets
<brisbin>
i've made the move to zsh for day to day but still script in bash
<zendeavor>
i was using zsh for a year or so
interactionjaxsn has quit [Ping timeout: 268 seconds]
oktapodi_ has quit [Ping timeout: 264 seconds]
<zendeavor>
i like it interactively
<zendeavor>
and i just imploded rvm
<zendeavor>
feels good man
sambao21 has joined #ruby
zomgbie has quit [Ping timeout: 268 seconds]
Ortuna has joined #ruby
Ortuna has quit [Client Quit]
Ortuna has joined #ruby
ffio has joined #ruby
realDAB has joined #ruby
<havenwood>
zendeavor: What will you use in its place?
acrussell has left #ruby [#ruby]
shadoi has joined #ruby
mansi has quit [Remote host closed the connection]
swordsneedsleep has quit [Ping timeout: 268 seconds]
v0n has quit [Read error: Operation timed out]
<zendeavor>
i'm gonna try out chruby and pals
<brisbin>
chruby is where it's at
<havenwood>
\o/
Arya_ has quit []
Arya_ has joined #ruby
interactionjaxsn has joined #ruby
<zendeavor>
brisbin: your post on it comes up as 4th result in my google
<brisbin>
wow, that's awesome
S0da has joined #ruby
alex__c2022 has quit [Quit: alex__c2022]
ldnunes has joined #ruby
<zendeavor>
it may have something to do with google+
babykosh has quit [Quit: babykosh]
<dclist>
What does rvm do when it installs?
<dclist>
What changes does it make?
<brisbin>
when it installs, not much
clov3r has joined #ruby
Astralum has joined #ruby
<zendeavor>
it does mash some stuff into your .bash_profile or .bashrc
<brisbin>
oh it writes that in automatically?
<zendeavor>
i'm pretty sure it did.
brennanMKE has quit [Remote host closed the connection]
thetristan has left #ruby [#ruby]
trepidaciousMBR has quit [Quit: trepidaciousMBR]
babykosh has joined #ruby
<zendeavor>
yup
<zendeavor>
it's in my .zprofile which i haven't touched in months
<havenwood>
dclist: RVM actually has a new chruby-integration mode where you use `mrvm` which only installs Rubies then defers to chruby: https://rvm.io/workflow/chruby
blackmesa has quit [Remote host closed the connection]
<havenwood>
With chruby i've compiled from source, used ruby-build and my new fav ruby-install, but yet to try mrvm.
gyre007 has quit [Ping timeout: 264 seconds]
asteve has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
ChristianS has quit [Excess Flood]
<zendeavor>
i prefer the little modular pieces of a whole workflow
anay has joined #ruby
<zendeavor>
chruby + ruby-install
<denysonique>
method = lambda { first.to_s }
<denysonique>
How can I execute lambda on some_hash?
<havenwood>
zendeavor: yup, agreed! :)
<denysonique>
I would like to send first.to_s to some_hash
<brisbin>
method.call(object)
ChristianS has joined #ruby
maxmanders has joined #ruby
<zendeavor>
you should probably pick a better name than 'method'
<brisbin>
but method should = lambda { |o| o.first.to_s }
<brisbin>
or ->(o) { o.first.to_s }
phasma has joined #ruby
<apeiros>
denysonique: instance_eval
tatsuya_o has joined #ruby
<denysonique>
zendeavor: that was just an example
S0da has quit [Ping timeout: 257 seconds]
airlok has joined #ruby
<zendeavor>
-> is my favourite because cryptic.
ffio has quit [Quit: WeeChat 0.4.1]
<zendeavor>
looks like haskell.
<brisbin>
it's trying so hard to be haskell and still gets it uglier
<zendeavor>
=\
<zendeavor>
brisbin: still use arch?
<brisbin>
always
<spider-mario>
zendeavor : perl6 has adopted that syntax as well
<denysonique>
I am porting my library from CoffeeScript, I used -> there to ;>
<spider-mario>
without the parenthesis, though
<denysonique>
too*
<zendeavor>
that's all well and good
<spider-mario>
and for uses a lambda
<spider-mario>
so the resulting syntax is:
<spider-mario>
for @list -> $x {...}
<zendeavor>
brisbin: i packaged up shellcheck in the aur, if you ever wanna run it over your shell scripts
<spider-mario>
(but there are other syntaxes for lambda)
baordog_ has joined #ruby
<zendeavor>
it's vidar holen's shell script static analysis tool, written in haskell with parsec3
<zendeavor>
is kinda awesome.
bricker`LA has joined #ruby
<zendeavor>
spider-mario: looks like perl to me. except all the context breaks my head
davedev24 has quit [Remote host closed the connection]
sepp2k has joined #ruby
Catbuntu has quit [Quit: Leaving]
workmad3 has joined #ruby
<zendeavor>
-> is already a thing in perl for object stuff
S0da has joined #ruby
<spider-mario>
not anymore
<spider-mario>
(I mean not in Perl6)
<zendeavor>
well i'm not up to speed on perl6
<havenwood>
`mrvm install maglev` is installing ruby-2.0.0-p247 >.>
<spider-mario>
perl6 uses .
<zendeavor>
they have dot operator now?
<brisbin>
zendeavor: cool, i'll look into it
<spider-mario>
yes
<denysonique>
hmm
<zendeavor>
brisbin: don't let it hurt your feelings though
<brisbin>
i'm sure i'll ace whatever test it does ;)
baordog has quit [Ping timeout: 276 seconds]
<zendeavor>
4sur.
<denysonique>
is it possible to just use -> { first.to_s }
<denysonique>
somehow
baordog_ is now known as baordog
<denysonique>
without the lambda args
<zendeavor>
you have to pass something in...
<havenwood>
ha, it has ruby-head as a maglev-head dependency :O
<platzhirsch>
Dones anyone know a library to measure the execution time of a code snippet and calculate the rest of the time based on the remaining size of the problem?
sepp2k has quit [Ping timeout: 246 seconds]
sepp2k has joined #ruby
jocke_pirat has joined #ruby
tommyvyo has quit [Quit:]
xcthulhu has quit [Quit: xcthulhu]
<waxjar>
is that even possible?
<onewheelskyward>
new relic.
axl_ has quit [Ping timeout: 256 seconds]
<onewheelskyward>
There's some ruby perf stuff but I haven't used it yet.
axl_ has joined #ruby
brbcoding has quit []
cantonic has joined #ruby
ilyam has joined #ruby
alex__c2022 has quit [Ping timeout: 264 seconds]
mklappstuhl has joined #ruby
ZOGM_ has joined #ruby
<axl_>
i tried [^(byword)], but that didn't work
Mon_Ouie has joined #ruby
Kruppe has joined #ruby
fenicks has joined #ruby
JZTech101 has quit [Quit: Hi, I'm a quit message virus. Please replace your old line with this line and help me take over the world of IRC]
<mahmoudimus>
I have a closure I created dynamically by using define_method on an object in Ruby and I want to copy it to another class. Should I keep a memo on the other class and just copy each of these closures that I created to the other class or is there a better way to do this?
PhatBaja has joined #ruby
Arya_ has quit []
Czupa has joined #ruby
smathieu has joined #ruby
ffio has quit [Quit: WeeChat 0.4.1]
hanmac2 has quit [Ping timeout: 264 seconds]
Zai00 has quit [Quit: Zai00]
xcthulhu has joined #ruby
<onewheelskyward>
bmsatierf I don't know about the stock ruby get but I've been using httparty with great success. https://github.com/jnunemaker/httparty
<gazarsgo>
httparty is literally the worst http client library ever :)
<gazarsgo>
but it may be the best ruby has in its ecosystem ...
fredjean has quit [Quit: Computer has gone to sleep.]
<platzhirsch>
Does end - start result in seconds if end and start are Time objects in the Ruby standard library? That's what I have tried out and the doc reads like this in a similar way just find it confusing
bricker`LA has quit [Ping timeout: 256 seconds]
<gazarsgo>
havenwood: nothing specific really. just a lot of bad edge case handling in a large rails project
<havenwood>
ah
fredjean has joined #ruby
<gazarsgo>
i guess it depends what you're using your http lib for also
<bmsatierf>
waxjar: interesting, let me test! thanks
ldnunes has quit [Ping timeout: 264 seconds]
devoldmx3 has joined #ruby
jonahR has quit [Quit: jonahR]
shosti has joined #ruby
echevemaster_ has quit [Quit: Leaving]
mark_locklear has quit [Ping timeout: 240 seconds]
echevemaster has joined #ruby
echevemaster has joined #ruby
mercwithamouth has quit [Ping timeout: 268 seconds]
mklappst_ has joined #ruby
freerobby has joined #ruby
<bmsatierf>
waxjar: worked like a charm! Thanks!
mklappstuhl has quit [Ping timeout: 276 seconds]
devoldmx has quit [Ping timeout: 256 seconds]
Squarepy has joined #ruby
ephemerian has joined #ruby
ldnunes has joined #ruby
brisbin has quit [Quit: leaving]
CXEMA has quit [Quit: WeeChat 0.4.1]
brisbin has joined #ruby
Arya_ has quit [Ping timeout: 276 seconds]
geekbri has quit [Remote host closed the connection]
amacgregor_ has quit [Ping timeout: 276 seconds]
Arya_ has joined #ruby
xcv_ has quit [Remote host closed the connection]
malkomalko has joined #ruby
xcv has joined #ruby
brisbin has quit [Quit: WeeChat 0.4.1]
brisbin has joined #ruby
bmsatierf has quit [Read error: Connection reset by peer]
timonv has quit [Remote host closed the connection]
platzhirsch has left #ruby [#ruby]
freerobby has quit [Quit: Leaving.]
cj3kim has joined #ruby
alex__c2022 has joined #ruby
mityaz has quit [Quit: See ya!]
xcthulhu has quit [Quit: xcthulhu]
soukihei has quit [Ping timeout: 256 seconds]
jonahR has joined #ruby
mercwithamouth has joined #ruby
brennanMKE has joined #ruby
hamakn has quit [Remote host closed the connection]
Zai00 has joined #ruby
byprdct has joined #ruby
byprdct has quit [Max SendQ exceeded]
byprdct has joined #ruby
greywolf` has joined #ruby
Davey has quit [Quit: Computer has gone to sleep.]
freerobby has joined #ruby
nathancahill has joined #ruby
<Eiam>
no complaints with httparty here
<Eiam>
but I don't use it for anything particularly complicated
greywolf` has quit [Read error: Connection reset by peer]
<Eiam>
fan of curb however, but I needed it for the kerberos bindings
AndChat| has quit [Ping timeout: 264 seconds]
teddyp1cker has quit [Remote host closed the connection]
rupee has joined #ruby
teddyp1cker has joined #ruby
kpshek has quit []
bamdad has joined #ruby
Banistergalaxy has joined #ruby
jgood has joined #ruby
p0wn3d has quit [Remote host closed the connection]
<jgood>
Hey all, i'm accessing the registry and want to pull the 64 bit programs, but all i can get are the 32 bit. Here is the descriptive part of my call: Win32::Registry::HKEY_LOCAL_MACHINE.open('Software\Microsoft\Windows\CurrentVersion\Uninstall')
<jgood>
Any ideas how i can get the 64 bit programs?
Banistergalaxy has quit [Ping timeout: 268 seconds]
asteve has joined #ruby
bamdad has quit [Client Quit]
sambao21 has quit [Quit: Computer has gone to sleep.]
Arya_ has quit [Ping timeout: 264 seconds]
breakingthings has quit [Quit: breakingthings]
ner0x has quit [Quit: Leaving]
havenwood has quit [Remote host closed the connection]
io_syl has joined #ruby
PhatBaja has quit [Quit: Leaving.]
PhatBaja has joined #ruby
vlad_starkov has joined #ruby
airlok has joined #ruby
Spami has quit [Quit: This computer has gone to sleep]
sambao21 has joined #ruby
devoldmx has joined #ruby
devoldmx3 has quit [Read error: Connection reset by peer]
freerobby has quit [Read error: Connection reset by peer]
pskosinski has joined #ruby
soukihei has joined #ruby
hanmac2 has joined #ruby
BlakeRG has quit [Ping timeout: 276 seconds]
vlad_starkov has quit [Ping timeout: 248 seconds]
freerobby has joined #ruby
interactionjaxsn has quit [Remote host closed the connection]
stairmast0r has quit [Ping timeout: 268 seconds]
twoism has quit [Remote host closed the connection]
sambao21 has quit [Client Quit]
Michae___ has quit [Remote host closed the connection]
Spami has joined #ruby
Spami has joined #ruby
Spami has quit [Changing host]
interactionjaxsn has joined #ruby
shosti has quit [Ping timeout: 268 seconds]
devoldmx has quit [Ping timeout: 240 seconds]
Guest93132 has quit [Changing host]
Guest93132 has joined #ruby
Zai00 has quit [Quit: Zai00]
RubNoob has joined #ruby
Guest93132 is now known as Catie
twoism has joined #ruby
sqd has quit [Quit: sqd]
hanmac2 has quit [Ping timeout: 264 seconds]
jalcine has quit [Excess Flood]
smathieu_ has joined #ruby
interactionjaxsn has quit [Ping timeout: 240 seconds]
kofno has quit [Remote host closed the connection]
bricker`1A has quit [Quit: leaving]
krawchyk has quit [Remote host closed the connection]
jonathanwallace has quit [Ping timeout: 246 seconds]
smathieu has quit [Ping timeout: 268 seconds]
xcthulhu has joined #ruby
sambao21 has joined #ruby
ldnunes has quit [Quit: Leaving]
devoldmx has joined #ruby
xcthulhu has quit [Client Quit]
xcthulhu has joined #ruby
spider-mario has quit [Remote host closed the connection]
nomenkun has quit [Remote host closed the connection]
atmosx has joined #ruby
aedorn has quit [Quit: Leaving]
wmoxam has quit [Ping timeout: 240 seconds]
thatRD has quit [Ping timeout: 256 seconds]
elux has quit [Quit: Bye!]
havenwood has joined #ruby
thatRD has joined #ruby
thatRD has quit [Client Quit]
grumpwork has quit [Remote host closed the connection]
deception has joined #ruby
kaspergrubbe has quit [Remote host closed the connection]
Czupa has quit [Remote host closed the connection]
i_s has quit [Remote host closed the connection]
Spooner has joined #ruby
kofno has joined #ruby
Al_ has joined #ruby
pskosinski has quit [Quit: Til rivido Idisti!]
seich- has joined #ruby
goshakkk has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
deception has quit [Client Quit]
kirun has quit [Quit: Client exiting]
Zeeraw has joined #ruby
i_s has joined #ruby
wsterling has quit [Remote host closed the connection]
S0da has quit [Read error: Connection reset by peer]
MrThePlague has quit [Remote host closed the connection]
asteve has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
ehc has joined #ruby
Al_ has quit [Read error: Connection reset by peer]
wsterling has joined #ruby
osvico has joined #ruby
Al_ has joined #ruby
gchristensen has joined #ruby
<gchristensen>
Hi, using unicorn + rack, is there a way to get the full URL? I'm seeing the URI be http://127.0.0.1:8080/foo in rackup, but /foo in unicorn. I'd like the behavior to be identical.
mercwithamouth has quit [Ping timeout: 264 seconds]
Banistergalaxy has joined #ruby
<onewheelskyward>
When you say 'in unicorn', what do you mean?
smathieu_ has quit [Remote host closed the connection]
smathieu has joined #ruby
butblack has joined #ruby
<onewheelskyward>
For instance, in my sinatra app when I call request.url, I get the fully qualified version.
<gchristensen>
onewheelskyward: aye, from within a rack middleware
butblack has left #ruby [#ruby]
<gchristensen>
I'm looking at ENV['REQUEST_URI']
sam113101 is now known as sam113101_afk
<onewheelskyward>
hmm.
atno has quit [Remote host closed the connection]
amacgregor has joined #ruby
sam113101_afk is now known as sam113101
terrellt has joined #ruby
fridim_ has joined #ruby
<gchristensen>
I could technically compose the full url off of HTTP_HOST, rack.url_scheme, and friends but I'd rather avoid that.
<atmosx>
unicorn is a rack middleware
kofno has quit [Remote host closed the connection]
<atmosx>
unicorn, thin, foreman, you name it
<gchristensen>
okay, that is fine, but it is altering the full URL, when I'd rather it not, or, I'd like an alternative way to get the complete URL.
apeiros has quit [Remote host closed the connection]
apeiros has joined #ruby
cmarques has quit [Ping timeout: 268 seconds]
mercwithamouth has joined #ruby
Kruppe has quit [Ping timeout: 256 seconds]
Nenor has quit [Quit: Nenor]
freerobby has quit [Quit: Leaving.]
jbpros has quit [Quit: jbpros]
huttan has quit [Ping timeout: 264 seconds]
ehc has joined #ruby
guiocavalcanti has quit [Remote host closed the connection]
guiocavalcanti has joined #ruby
superscott[8] has joined #ruby
<superscott[8]>
can i do a case statement and have 'when condition_1 && condition_2' ?
codingclouds has joined #ruby
Lewix has joined #ruby
mmitchell has quit [Ping timeout: 245 seconds]
cj3kim has quit [Remote host closed the connection]
zodiak has joined #ruby
Discordian93 has joined #ruby
S0da has joined #ruby
codingclouds has left #ruby [#ruby]
<Discordian93>
can someone give me a little help with regexps in ruby? I need to assign a string variable to itself but without punctuation, I know the regexp to use is /[a-z]/ but I can't figure out what to call on the variable to assign it to that
workmad3 has quit [Ping timeout: 268 seconds]
optimusprimem has quit [Ping timeout: 245 seconds]
codingclouds has joined #ruby
guiocavalcanti has quit [Ping timeout: 248 seconds]
hamakn has joined #ruby
<Spooner>
Discordian93, You probably want str.gsub! /[^a-z]/, ''
<Discordian93>
I don't think I have to check for numbers, but will do anyway
baordog has quit [Remote host closed the connection]
<popl>
Discordian93: Can you credit #ruby in your answer?
<popl>
I want a gold star.
<Lewix>
Discordian93: actually that it will look for alphanumeric characters and replace by " ". you want the opposite of that
vlad_starkov has joined #ruby
Xeago has quit [Remote host closed the connection]
<Discordian93>
not really, I can't really credit anyone, it's for the saas class and I'm actually allowed to ask for help on the internet as long as I don't share code
axl_ has quit [Quit: axl_]
<Discordian93>
(since the whole point of teh homework is to learn ruby and all that)
<popl>
You're not really learning though, are you? :)
<popl>
You're asking people for answers.
Astralum has quit [Ping timeout: 276 seconds]
soulcake has quit [Read error: Connection reset by peer]
<gazarsgo>
popl: i don't think you can "learn" that gsub is the name of the string replace function, personally
<popl>
Which SaaS class?
<Discordian93>
edx
<Discordian93>
mooc, not an actual college class
<popl>
gazarsgo: sure you can
<gazarsgo>
no you can't, it's trivia not learning
<popl>
the word mom is the name of the function that births you and feeds you when you are a baby. how do you learn that name?
<popl>
or is that trivia too? :)
pentameter has quit [Read error: Connection reset by peer]
<popl>
I think you're talking about learning by rote though, is that right?
vlad_starkov has quit [Ping timeout: 246 seconds]
hanmac2 has joined #ruby
kofno has joined #ruby
<gazarsgo>
i draw a distinction between memorization vs learning is all
<gazarsgo>
i guess it's mostly semantics
soulcake has joined #ruby
<popl>
so the answer to my question is yes then
<popl>
:)
<gazarsgo>
learning by rote is distinct from memorization
<gazarsgo>
to me that just means you don't know the why and how of something, just the action
<popl>
how so?
<popl>
how is that required for memorization then?
<gazarsgo>
like you can learn arithmetic by rote, and later understand the mathematics
<popl>
Would you say memorizing times tables is learning by rote?
tommyvyo has joined #ruby
Drakevr has quit [Ping timeout: 260 seconds]
<gazarsgo>
yep
atyz has quit [Quit: Leaving...]
<Lewix>
Discordian93: foobar.gsub ^[^a-z0-9]\z, " " is more like it.
michaeldeol has quit [Remote host closed the connection]
crazysim has joined #ruby
<Discordian93>
guys, you are blowing this out of proportion, i didn't know that gsub could get a regexp as an argument and I was confused about how to go about it, seriously let's not turn this into a debate about the nature of learning
<popl>
Discordian93: get over yourself. we just went on an interesting tangent.
<popl>
:)
<popl>
don't tell us what to talk about :P
Banistergalaxy has quit [Ping timeout: 268 seconds]
<Discordian93>
sure :P
hanmac2 has quit [Ping timeout: 256 seconds]
<Lewix>
I guess I didn't help
<popl>
nobody can help Discordian93 but Discordian93
<Discordian93>
damn you ruby guys ARE philosophical
jmimi has left #ruby [#ruby]
<popl>
fwiw
<popl>
Come back later when someone is talking about cocks or something.
enebo has quit [Quit: enebo]
sambao21 has quit [Quit: Computer has gone to sleep.]
<Discordian93>
haha
goleldar has quit [Read error: Operation timed out]
<Discordian93>
"the zen of cocks"?
S0da has quit [Remote host closed the connection]
v0n has quit [Ping timeout: 240 seconds]
<gazarsgo>
popl: jeeze, american heritage stedman's medical dictionary? c'mon
splittingred has quit [Quit: splittingred]
goleldar has joined #ruby
airlok has quit [Remote host closed the connection]
sambao21 has joined #ruby
sambao21 has quit [Client Quit]
kofno has quit [Ping timeout: 256 seconds]
<popl>
gazarsgo: I was going to scour the NIMH site but decided not to.
<gazarsgo>
is dictionary.reference.com even trying anymore
<popl>
What's wrong with Stedman's?
fuhgeddaboudit has quit [Ping timeout: 246 seconds]
optimusprimem has joined #ruby
devoldmx has quit [Ping timeout: 268 seconds]
kjeldahl has quit [Read error: Operation timed out]
gazarsgo has quit [Quit: gazarsgo]
RichardBaker has quit [Ping timeout: 240 seconds]
RichardBaker has joined #ruby
RichardBaker has quit [Client Quit]
Dekade has joined #ruby
S0da has joined #ruby
sambao21 has joined #ruby
burlyscudd has joined #ruby
rgreen has joined #ruby
_Andres has quit [Quit: My Mac Pro has gone to sleep. ZZZzzz…]
goleldar has quit [Ping timeout: 256 seconds]
jonathanwallace has joined #ruby
goleldar has joined #ruby
<Discordian93>
mmm, is there a way to open a file from an interperter to check and execute its fucntions from there like with idle in python, but for ruby?
larissa has joined #ruby
Lewix has quit [Remote host closed the connection]
nomenkun has joined #ruby
_maes_ has quit [Ping timeout: 246 seconds]
rhys has quit [Quit: Leaving]
tealmage has joined #ruby
S0da has quit [Remote host closed the connection]
tylersmith has quit [Remote host closed the connection]
xavier23 has joined #ruby
<xavier23>
WTF happened to rubydoc.info ??
storme_ has joined #ruby
codecop has quit [Remote host closed the connection]
Spooner has quit [Remote host closed the connection]
JZTech101 has joined #ruby
danbeck has quit [Quit: danbeck]
<louism2wash>
So if a class is defined inside a module, how do you access that class?
goleldar has quit [Ping timeout: 256 seconds]
n_blownapart has quit [Read error: Connection reset by peer]
n_blownapart has joined #ruby
dclist has quit [Read error: Operation timed out]
tealmage has joined #ruby
<Nilium>
louism2wash: Depends on where you are.
renderful has joined #ruby
lnormous has quit [Ping timeout: 256 seconds]
<Nilium>
Or rather where the access is from.
smathieu_ has joined #ruby
goleldar has joined #ruby
<louism2wash>
Nilium: agh, very true
<Nilium>
In general, ::TheModule::TheClass will always work.
<Nilium>
But you won't always need to type out all that.
smathieu has quit [Ping timeout: 268 seconds]
<Nilium>
Hm, been running this ruby script for a while and it looks like it sort of caps out on memory allocations at 86mb
BillCriswell has joined #ruby
<Nilium>
Hm, no, going up again. Wonder how long I should leave it running.
<Nilium>
Yeah, looks like it's just going ti sit in the 80-90mb range.
<ntzrmtthihu777>
anyone using Eclipse Kepler? It seems that RadRails is not available for it since indigo
threesome has quit [Read error: Operation timed out]
RubNoob has joined #ruby
<Nilium>
I should probably document that the axis used when creating a rotation matrix is not normalized..
<Lewix>
16:20 Nilium: But you won't always need to type out all that. what do you mean
periaortic50 has quit [Quit: periaortic50]
therod has joined #ruby
<Nilium>
Lewix: If something's, say Foo, is already in scope, you obviously don't need to type out ::Path::To::Foo.
Marsthemanwithth has quit [Read error: Connection reset by peer]
<Lewix>
Nilium: agreed
blenheim15 has joined #ruby
greenleaf108 has quit [Ping timeout: 264 seconds]
s00pcan has quit [Remote host closed the connection]
twoism has quit [Remote host closed the connection]
dagnachew has joined #ruby
<louism2wash>
Nilium: If a class is defined inside a module and another module is defined inside a module, are the class and module defined inside another module put in scope using '::'
Marsthemanwithth has joined #ruby
<Nilium>
I couldn't tell you anything without actual code.
<louism2wash>
so class SomeClass and module SomeModule are defined in module ParentModule
jasonsmr has joined #ruby
<louism2wash>
ParentModule::SomeClass
RichardBaker has joined #ruby
<Nilium>
Again, I'd recommend reading the question on SO I linked.
<Fire-Dragon-DoL>
Are there any way I can create a class variable (or something similar) which value is inherited by subclasses, but if changed, it doesn't change the super class value too?
twoism has joined #ruby
brennanMKE has quit [Remote host closed the connection]
jocke_pirat has left #ruby [#ruby]
saarinen has quit [Quit: saarinen]
<heftig>
Fire-Dragon-DoL: use constants
<Fire-Dragon-DoL>
I need to be able to edit those
<heftig>
>> class A; B=1; end; class A2 < A; end; class A3 < A; B=3; end; [A::B,A2::B,A3::B]