valeriansaliou has quit [Ping timeout: 244 seconds]
linoespinoza has joined #ruby
linoespinoza has quit [Remote host closed the connection]
<ziyadb>
I'm also a genius.
<ziyadb>
(just fixed the thing that made me an idiot, heh).
adriancb has joined #ruby
Tranquility has quit [Quit: Connection closed for inactivity]
davedev2_ has quit [Ping timeout: 240 seconds]
towski_ has joined #ruby
RareBlackMagic has quit [Quit: Fell Asleep]
davedev24_ has joined #ruby
dkb20k has joined #ruby
adriancb has quit [Ping timeout: 244 seconds]
DonOtreply has quit [Quit: DonOtreply]
TheTopBloke has quit [Ping timeout: 244 seconds]
TheTopBloke has joined #ruby
narph has quit [Quit: Connection closed for inactivity]
Techguy305 has joined #ruby
dkb20k has quit [Ping timeout: 245 seconds]
diegoviola has quit [Remote host closed the connection]
sinkensabe has joined #ruby
pwnz0r has joined #ruby
Techguy305|3 has quit [Ping timeout: 256 seconds]
dfinninger has joined #ruby
dseitz has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
bronson has joined #ruby
banister has quit [Ping timeout: 245 seconds]
pwnz0r has quit [Remote host closed the connection]
Nameo0 has joined #ruby
lw has quit [Read error: Connection reset by peer]
lw_ has joined #ruby
Pupeno_ has quit [Quit: Leaving...]
DadoCe has joined #ruby
sinkensabe has quit [Ping timeout: 244 seconds]
bronson has quit [Ping timeout: 264 seconds]
sevvie has quit [Read error: Connection reset by peer]
veduardo has quit [Ping timeout: 244 seconds]
eka has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
Dolphi has quit [Ping timeout: 240 seconds]
Xspl0it has joined #ruby
sevvie has joined #ruby
kl has quit [Ping timeout: 255 seconds]
greenbagels_ has joined #ruby
mercwithamouth has joined #ruby
DonOtreply has joined #ruby
silkfox has joined #ruby
Xsploit has quit [Ping timeout: 245 seconds]
rbennacer has quit [Remote host closed the connection]
bronson has joined #ruby
robustus has quit [Ping timeout: 250 seconds]
Dolphi has joined #ruby
max96at is now known as max96at|off
greenbagels has quit [Ping timeout: 244 seconds]
robustus has joined #ruby
baltazore has joined #ruby
pengin has joined #ruby
bronson has quit [Ping timeout: 250 seconds]
Kilo`byte has joined #ruby
eka has joined #ruby
whomp has quit [Ping timeout: 245 seconds]
Techguy305|2 has joined #ruby
baltazore has quit [Ping timeout: 264 seconds]
alex88 has quit []
Techguy305 has quit [Ping timeout: 245 seconds]
hashpuppy has quit [Quit: Computer has gone to sleep.]
Guest65496 is now known as _chs_
adriancb has joined #ruby
ddd has joined #ruby
pengin has quit [Remote host closed the connection]
pengin has joined #ruby
silkfox has quit [Ping timeout: 244 seconds]
oo_ has joined #ruby
Cache_Money has joined #ruby
pengin has quit [Ping timeout: 265 seconds]
hashpuppy has joined #ruby
Shellbee has joined #ruby
hanjianwei has quit [Ping timeout: 244 seconds]
silkfox has joined #ruby
omosoj has joined #ruby
<majeure>
Yay you.
jack_rabbit has joined #ruby
iamninja has quit [Quit: ZZZzzz…]
<omosoj>
hey guys i'm working with a rails app now. forgot the password to log in and the db only has encrypted passwords. is there any way to get the password?
<omosoj>
i swear i have it right, just want to see what the db says
Flcn____ has joined #ruby
tokik has joined #ruby
Flcn____ has quit [Ping timeout: 244 seconds]
ohaibbq has quit [Read error: Connection reset by peer]
ohaibbq has joined #ruby
AndyBotwin has quit [Remote host closed the connection]
Shellbee has quit []
dblessing has joined #ruby
<Cat_1>
What db are you using?
<omosoj>
postgres
veduardo has joined #ruby
hashpuppy has quit [Quit: Computer has gone to sleep.]
<pontiki>
shevy: no worries so far with 2.2.0
timonv_ has joined #ruby
dkb20k has joined #ruby
dkb20k has quit [Read error: Connection reset by peer]
krz has joined #ruby
krz has quit [Client Quit]
dkb20k has joined #ruby
krz has joined #ruby
dblessing has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
slawrence00 has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
timonv_ has quit [Ping timeout: 240 seconds]
ta_ has joined #ruby
lw_ has quit [Quit: s]
hashpuppy has joined #ruby
hashpuppy has quit [Read error: Connection reset by peer]
hamakn has joined #ruby
dfinninger has quit [Remote host closed the connection]
sinkensabe has joined #ruby
Techguy305|2 has quit [Read error: Connection reset by peer]
Techguy305|2 has joined #ruby
apeiros_ has quit [Remote host closed the connection]
Dolphi has quit [Quit: Leaving]
apeiros_ has joined #ruby
kirun has quit [Quit: Client exiting]
ta_ has quit [Ping timeout: 244 seconds]
sinkensabe has quit [Ping timeout: 245 seconds]
riscky has quit [Quit: riscky]
omosoj has quit [Quit: Lost terminal]
rbennacer has joined #ruby
hgl has quit [Max SendQ exceeded]
hgl has joined #ruby
riscky has joined #ruby
metadave has joined #ruby
greenbagels_ has quit [Quit: Leaving]
greenbagels has joined #ruby
Crazy_Atheist has quit [Ping timeout: 240 seconds]
metadave has quit [Client Quit]
commmmodo has joined #ruby
whomp has joined #ruby
rbennacer has quit [Ping timeout: 265 seconds]
DonOtreply has quit [Quit: DonOtreply]
DonOtreply has joined #ruby
DonOtreply has quit [Client Quit]
Trep has quit [Read error: Connection reset by peer]
kapil__ has joined #ruby
whomp has quit [Ping timeout: 240 seconds]
Guest90 has joined #ruby
Techguy305|2 has quit [Read error: Connection reset by peer]
crazydiamond has quit [Ping timeout: 250 seconds]
Guest90 has quit [Client Quit]
Crazy_Atheist has joined #ruby
rbennacer has joined #ruby
ror15 has joined #ruby
kiyote23 has joined #ruby
<ror15>
hello
<ror15>
can anyone help with my code? I am learning
<ror15>
private def category_params perams.require(:catagory, :name, :thumburl) end end
<ror15>
its from the codecademy RoR class though i am stuck
jcdesimp has joined #ruby
valeriansaliou has joined #ruby
arescorpio has joined #ruby
<havenwood>
ror15: do you mean `params` instead of `perams`? the best place for rails questions is #rubyonrails.
SilentNuke has joined #ruby
eka has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<ror15>
thank you i couldn't connect to #rubyonrails and it has been many years since irc
<havenwood>
ror15: ah, yeah the rails channel does require irc nick registration. checkout the response instructions when you type: /msg NickServ help REGISTER
<shevy>
"Yields self to the block, and then returns self. The primary purpose of this method is to tap into a method chain, in order to perform operations on intermediate results within the chain."
eka_ has joined #ruby
<crack_user>
I know, but there is something similar that return the return of the block instead self?
rbennacer has quit [Remote host closed the connection]
<crack_user>
I know, I just wanted to know to avoid create variable to cases like this
metadave has quit [Client Quit]
<havenwood>
crack_user: i'd like having it, and i suspect the biggest obstacle to its addition in the language (like Object#tap was added in 1.9) is agreeing on what to name the method.
zorak8 has joined #ruby
<havenwood>
i doubt folk would agree on Object#let >.>
ta_ has quit [Ping timeout: 265 seconds]
<crack_user>
I think let is a good name
<havenwood>
crack_user: but as you can see it's entirely trivial to implement, so that's not a barrier :)
<crack_user>
it is used in many languages
hfp has quit [Ping timeout: 244 seconds]
<crack_user>
havenwood: indeed
hfp_work has quit [Ping timeout: 245 seconds]
tadasp has quit [Remote host closed the connection]
skj3gg has quit [Quit: ZZZzzz…]
hfp has joined #ruby
hfp_work has joined #ruby
fandi has joined #ruby
<havenwood>
guess i should done this though, block required: class Object; def let; yield self end end
sevvie has quit [Read error: Connection reset by peer]
mengu has joined #ruby
mengu has joined #ruby
<havenwood>
faster and shorter
Sid05 has joined #ruby
<havenwood>
and LocalJumpError without a block like tap
ehc has joined #ruby
whomp has joined #ruby
<crack_user>
yes,this implementation follow the same way .tap
mengu has quit [Ping timeout: 245 seconds]
Menorah has quit [Quit: This computer has gone to sleep]
emmesswhy has joined #ruby
sevvie has joined #ruby
<crack_user>
but the problem with name "let" is there are many libs that declare this method
sevvie has quit [Read error: Connection reset by peer]
<crack_user>
for instance rspec
<havenwood>
look'n at you, rspec
oo_ has quit [Remote host closed the connection]
whomp has quit [Ping timeout: 245 seconds]
kyb3r_ has quit [Read error: Connection reset by peer]
az7ar_away is now known as az7ar
oo_ has joined #ruby
oo_ has quit [Remote host closed the connection]
oo_ has joined #ruby
Spami has quit [Ping timeout: 240 seconds]
TripTastic has quit [Read error: Connection reset by peer]
iamjarvo has joined #ruby
duncannz has joined #ruby
skj3gg has joined #ruby
Spami has joined #ruby
sleepee has joined #ruby
silkfox has quit [Ping timeout: 250 seconds]
az7ar is now known as az7ar_away
dkb20k has quit [Ping timeout: 244 seconds]
<wkmanire>
Hello agai
<wkmanire>
n
function90 has quit [Max SendQ exceeded]
oo_ has quit [Remote host closed the connection]
radic has quit [Ping timeout: 245 seconds]
dkb20k has joined #ruby
function90 has joined #ruby
radic has joined #ruby
dkb20k has quit [Read error: Connection reset by peer]
oo_ has joined #ruby
timonv_ has joined #ruby
Flcn____ has joined #ruby
kyb3r_ has joined #ruby
<Cat_1>
hi
adriancb has quit [Remote host closed the connection]
dkb20k has joined #ruby
sevvie has joined #ruby
braincrash has quit [Quit: bye bye]
kiyote23 has joined #ruby
mrmargolis has joined #ruby
arescorpio has quit [Ping timeout: 264 seconds]
timonv_ has quit [Ping timeout: 264 seconds]
Flcn____ has quit [Ping timeout: 240 seconds]
Mongey_ has joined #ruby
skj3gg has quit [Quit: ZZZzzz…]
kiyote23 has quit [Ping timeout: 255 seconds]
braincrash has joined #ruby
tyfighter has joined #ruby
ajaiswal has joined #ruby
tyfighter has quit [Client Quit]
parduse has joined #ruby
SilentNuke has quit []
skj3gg has joined #ruby
DadoCe has quit [Remote host closed the connection]
tyfighter has joined #ruby
lw has joined #ruby
Crazy_Atheist has quit [Ping timeout: 245 seconds]
ARCADIVS has joined #ruby
tlarevo has quit [Ping timeout: 244 seconds]
uber_hul1 has joined #ruby
fenzil has joined #ruby
uber_hul1 has quit [Client Quit]
SparkMasterTape has joined #ruby
Sid05 has quit [Ping timeout: 265 seconds]
decoponyo has joined #ruby
giuseppesolinas has quit [Quit: This computer has gone to sleep]
dts|pokeball has joined #ruby
decoponio has quit [Ping timeout: 240 seconds]
Guest54897 has joined #ruby
sinkensabe has joined #ruby
sinkensabe has quit [Ping timeout: 256 seconds]
az7ar_away is now known as az7ar
jefus__ has joined #ruby
jefus_ has quit [Ping timeout: 240 seconds]
function90 has quit [Max SendQ exceeded]
commmmodo has quit [Quit: commmmodo]
dfinning_ has joined #ruby
function90 has joined #ruby
valeriansaliou has joined #ruby
osvico has quit [Ping timeout: 265 seconds]
oo_ has quit [Remote host closed the connection]
oo_ has joined #ruby
sleepee has quit [Ping timeout: 250 seconds]
ta_ has joined #ruby
whomp has joined #ruby
Techguy305 has quit [Read error: Connection reset by peer]
valeriansaliou has quit [Ping timeout: 256 seconds]
tyfighter has quit [Quit: tyfighter]
Guest54897 has quit [Ping timeout: 240 seconds]
zorak8 has quit [Ping timeout: 264 seconds]
silkfox has joined #ruby
whomp has quit [Ping timeout: 264 seconds]
whatasunnyday has joined #ruby
whomp has joined #ruby
Techguy305 has joined #ruby
lolmaus_ has quit [Ping timeout: 240 seconds]
Guest54897 has joined #ruby
silkfox has quit [Ping timeout: 265 seconds]
bronson has joined #ruby
moose has joined #ruby
Guest54897 is now known as Crazy_Atheist
devoldmx has quit []
amh345 has joined #ruby
lolmaus_ has joined #ruby
amh345 has left #ruby [#ruby]
bronson has quit [Ping timeout: 250 seconds]
<moose>
anyone around?
<wkmanire>
moose: I'm here. And I know nothing.
Flcn____ has joined #ruby
sevvie has quit [Read error: Connection reset by peer]
<Cat_1>
sssh
<Cat_1>
they're sleeping
commmmodo has joined #ruby
<moose>
well, you can't know *nothing*, I mean I'm sure you know some useful stuff! :)
mrmargolis has quit [Remote host closed the connection]
<wkmanire>
moose: Sure. I'm a programmer. I just decided to learn Ruby over the weekend. Today is my first day actually studying it.
havenwood has quit [Ping timeout: 250 seconds]
mrmargolis has joined #ruby
<wkmanire>
moose: But this ain't my first rodeo.
<pontiki>
not sleeping!! just resting my eyes!!
webguynow has joined #ruby
tyfighter has joined #ruby
sevvie has joined #ruby
Flcn____ has quit [Ping timeout: 240 seconds]
oo_ has quit [Remote host closed the connection]
mrmargolis has quit [Ping timeout: 256 seconds]
skj3gg has quit [Quit: ZZZzzz…]
<moose>
So I have a quick question regarding the rack interface. I'm running a production server which also runs a rack vm, and the method to communicate with the vm is through the localhost port. I'm running into issues when trying to contact the vm, is it safe to open the port on which the vm communicates? or is there a different method of communicating with the rack server?
<wkmanire>
moose: The localhost port?
Crazy_Atheist has quit [Ping timeout: 250 seconds]
<moose>
yeah, just a bit of background to make sense of it all. I start the server via the rackup command, the server communicates that it's listening at localhost:9292. On the development server I have no problem communicating. But on the production server I get STDERR errors
<moose>
also, communication occurs using curl, with a command followed by the destination, which is http://localhost:9292
skj3gg has joined #ruby
TheTopBloke has joined #ruby
<wkmanire>
STDERR is just a file handle. What are the actual error messages being printed to STDERR?
ddd has quit [Quit: leaving]
DadoCe has joined #ruby
ddd has joined #ruby
banister has joined #ruby
Spami has quit [Quit: This computer has gone to sleep]
<moose>
I'm getting a list of directories which are followed by quoted commands here's an example: /var/lib/gems/1.9.1/gems/rack-parser-0.6.0/lib/rack/parser.rb:39:in `_call'
<moose>
there are about 100 or so errors similar to that
<wkmanire>
Those are part of a stack trace
<wkmanire>
To make any sense of it I need the entire output.
vyorkin has joined #ruby
brlkid has quit [Quit: ô¿ô]
ta_ has quit [Ping timeout: 244 seconds]
oleo has quit [Quit: Verlassend]
<moose>
do you think it might have something to do with the fact that the code is running on a production server though? basically, I would think there are complications with sending data requests to a particular localhost port
DadoCe has quit [Ping timeout: 245 seconds]
<wkmanire>
moose: Trouble guessing is the least effective method for fixing problems.
<wkmanire>
Usually when a system works in development and does not work in production it is due to configuration or lack thereof.
Spami has joined #ruby
<moose>
true, but the thing is that I'm running the exact same code locally, and it fetches data without issue
<moose>
ok
<moose>
hmm
<wkmanire>
So you need to analyze the stack trace. It's going to tell you what function is failing and most likely why it is failing. You figure out where that function is and read the code to assess the issue
<moose>
ok, I'll try that out
function90 has quit [Max SendQ exceeded]
vyorkin has quit [Ping timeout: 255 seconds]
Crazy_Atheist has joined #ruby
function90 has joined #ruby
davedev2_ has joined #ruby
davedev24_ has quit [Ping timeout: 244 seconds]
sinkensabe has joined #ruby
sumark_ has quit [Remote host closed the connection]
Spami has quit [Quit: This computer has gone to sleep]
sumark has joined #ruby
dfinning_ has quit [Remote host closed the connection]
sinkensabe has quit [Ping timeout: 244 seconds]
Techguy305|2 has joined #ruby
Techguy305 has quit [Ping timeout: 244 seconds]
function90 has quit [Max SendQ exceeded]
xenomorph is now known as {xenomorph}
function90 has joined #ruby
kiyote23 has joined #ruby
Joufflu has joined #ruby
elaptics`away is now known as elaptics
function90 has quit [Max SendQ exceeded]
function90 has joined #ruby
Crazy_Atheist has quit [Ping timeout: 244 seconds]
{xenomorph} is now known as xenomorph
goganchic has joined #ruby
lkba_ has joined #ruby
Darryl__ has joined #ruby
iamninja has joined #ruby
moose has quit [Quit: irc2go]
last_staff has quit [Quit: last_staff]
MasterPiece has joined #ruby
Techguy305|2 has quit [Ping timeout: 245 seconds]
dhruvasagar has joined #ruby
dfinninger has joined #ruby
ajaiswal has quit [Read error: No route to host]
bitcycle has joined #ruby
ajaiswal has joined #ruby
lkba has quit [Ping timeout: 240 seconds]
oo_ has joined #ruby
<bitcycle>
Hey all. I'm getting some strange behavior when running ruby 2.2.0 from within RVM. I've installed nokogiri to my current gemset, and I _am_ using that gemset, but when I go to run this in-house app's unit tests it fails because it can't find nokogiri. Any suggestions how I should go about fixing this?
lemur has quit [Read error: Connection reset by peer]
timonv_ has joined #ruby
mengu has joined #ruby
mengu has quit [Changing host]
mengu has joined #ruby
Crazy_Atheist has joined #ruby
lemur has joined #ruby
tyfighter has quit [Quit: tyfighter]
<bitcycle>
nm, I figured it out. Its shelling out to a different ruby ... arg.
<bitcycle>
:)
dseitz has joined #ruby
silkfox has joined #ruby
MartynKeigher has quit [Read error: Connection reset by peer]
function90 has quit [Max SendQ exceeded]
timonv_ has quit [Ping timeout: 264 seconds]
mengu has quit [Ping timeout: 265 seconds]
lxsameer has joined #ruby
wolf4ood has quit [Quit: (null)]
anitchrist has joined #ruby
* anitchrist
puts on anti troll protection
TheTopBloke has quit [Read error: Connection reset by peer]
postmodern has quit [Quit: Leaving]
<anitchrist>
.reject isn't what I was looking for because the query I'm doing on the api with attr_accessor, prevents me from removing or adding anything to the database
ta_ has joined #ruby
sorpaas has joined #ruby
silkfox has quit [Ping timeout: 244 seconds]
kiyote23 has quit [Ping timeout: 245 seconds]
tus has quit []
function90 has joined #ruby
<anitchrist>
I just need to figure out a simple way on the "p inspect" to exclude certain values from showing... to me
ta_ has quit [Ping timeout: 250 seconds]
banjara has joined #ruby
whatasunnyday has quit [Quit: Leaving]
<shevy>
anitchrist can't you redefine #to_s anyway?
Flcn____ has joined #ruby
MasterPiece has quit [Quit: Leaving]
<shevy>
oh sorry
<shevy>
#inspect
<shevy>
>> class Foo; def inspect; 'teletubby';end;end; foo = Foo.new; p foo
<anitchrist>
I don't know the sales pitch, Im not much into the sales game
craigp has joined #ruby
<anitchrist>
it could be...
<anitchrist>
"pry... taste the rainbow"
apeiros_ has quit [Read error: Connection reset by peer]
fenzil has quit [Read error: Connection reset by peer]
<wkmanire>
He he he
<certainty>
wkmanire: for one you can easily start the pry repl from within your code. It also offers some niceties like documentation, exploring currently loaded code etc.
<wkmanire>
Nice
<certainty>
erm
<certainty>
easily be started
<wkmanire>
certainty: Sort of like dropping into an interactive debugger?
<certainty>
wkmanire: exactly like that
<anitchrist>
yup
<certainty>
it even has a plugin that allows to step like a debugger
<wkmanire>
rdb?
<certainty>
dunno what it's called
whomp has quit [Ping timeout: 264 seconds]
<anitchrist>
end
Cyberheb has joined #ruby
silkfox has joined #ruby
sigurding has joined #ruby
* anitchrist
pinches cyberheb and silkfoxes nipples
* anitchrist
slaps sigurding on the rump
Trep has joined #ruby
<anitchrist>
"good game"
* anitchrist
challenges Trep to ping pong
<shevy>
ok I see you have no code assignment left
lkba_ has quit [Read error: Connection reset by peer]
<shevy>
time for you to write your first gem anitchrist
<anitchrist>
haha
<anitchrist>
I am not that savy
MasterPiece has quit [Ping timeout: 240 seconds]
<anitchrist>
I only made it to chapter 3 and lesson 6 in codecademy
apeiros__ has quit [Remote host closed the connection]
<shevy>
k so you are an early quitter
lkba has joined #ruby
<anitchrist>
still going, but its not enlightening me
<shevy>
here is what you can do
<shevy>
start a gem
<shevy>
abandon it after 1 hour and call it finished
apeiros_ has joined #ruby
<anitchrist>
lol
ta_ has joined #ruby
<anitchrist>
nah I'm more of a late bloomer
<shevy>
I am doing that for many of my projects btw, so as to not lose motivation; it is much easier to continue writing code if I add only in small steps and little bits
lemur has quit [Remote host closed the connection]
silkfox has quit [Ping timeout: 240 seconds]
lemur has joined #ruby
<anitchrist>
I can empathize with that
slawrence00 has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
Joufflu has quit [Read error: Connection reset by peer]
last_staff has joined #ruby
teddyp1cker has joined #ruby
<anitchrist>
I have a bit of a script that works, but I'm really wanting to get to the part where I turn it into a fuctional app on the 4 mains systems (winblows, OS X, android, iOS)
<epitron>
crack_user: i got a solution for your "let" needs: "with"!
<certainty>
anitchrist: for your current problem think about how you can extract the functionality you need into methods that belong to your class
<Aeoxic>
certainty: In this instance, when a class inherits Plugin, it will be instantiated but its "initialize" method will not be called.
Flcn____ has quit [Ping timeout: 250 seconds]
baltazore has joined #ruby
hgl- has joined #ruby
blackmesa has joined #ruby
ehc has quit [Quit: Connection closed for inactivity]
_cb1 has joined #ruby
hgl- has quit [Max SendQ exceeded]
<certainty>
Aeoxic: ok i see your problem. I have no solution for this. I'd probably put that in Plugin#initialize and not in the .inherited
<Aeoxic>
certainty: Is Plugin#initialize called when a class inherits it?
hgl- has joined #ruby
sevvie has quit [Ping timeout: 250 seconds]
<certainty>
Aeoxic: no but when it is initialized
<Aeoxic>
I thought that was why we have the callback method.
<Aeoxic>
certainty: When the child is initialized?
<certainty>
yeah
<certainty>
well
<certainty>
if the child calls super
<Aeoxic>
It creates an instance of plugin?
<certainty>
which it should
<Aeoxic>
It doesn't.
<Aeoxic>
Oh, not explicitly.
<Aeoxic>
If it does behind the scenes, then yes.
<Aeoxic>
But I'm not calling super.
hgl has quit [Ping timeout: 264 seconds]
hgl- is now known as hgl
sevvie has joined #ruby
<certainty>
Aeoxic: hmm then i don't currently see a way. Isn't it strange though that you create the instance when you inherit? I mean this way the caller has no control over how to create an instance of the plugin
sorpaas has quit [Remote host closed the connection]
<certainty>
what about parameters?
<certainty>
or is that the your intend?
<Aeoxic>
certainty: Plugin itself is kind of, well
<Aeoxic>
it's just a holder class.
Techguy305 has quit [Ping timeout: 244 seconds]
<Aeoxic>
It's really just used to collect the plugins themselves into an array.
timonv_ has quit [Remote host closed the connection]
kamilc__ has joined #ruby
timonv_ has joined #ruby
_cb1 has quit [Read error: No route to host]
<certainty>
Aeoxic: i see. And just storing the class without creating an instance of it doesn't make sense in your case?
vyorkin has joined #ruby
<Aeoxic>
any child inheriting Plugin should be instantiated.
<Aeoxic>
Just for the sake of ease, really.
sandelius has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<anitchrist>
so it kinda starts on the bottom, it grabs a specified .json file with an if incase of error. then then it calls a .new, which I kind of understand... but not really
<certainty>
Aeoxic: yeah that works as ruby has "seen" the implementation of the plugins initialize methed at that point.
<Aeoxic>
yep
vyorkin has quit [Ping timeout: 245 seconds]
<Aeoxic>
yep
<anitchrist>
most of the other lines were already committed to memory so maybe .new is the end product of pushing "E6" into the vending machine
<Aeoxic>
sorry, mistype
bigkevmcd has joined #ruby
ta_ has quit [Ping timeout: 244 seconds]
ajaiswal has quit [Read error: No route to host]
<anitchrist>
class.new is like the snickers bar that drops down
livathinos has joined #ruby
ajaiswal has joined #ruby
dcarmich has joined #ruby
sandelius has joined #ruby
* anitchrist
eye lids start to sag
terlar has joined #ruby
jenrzzz has joined #ruby
tkuchiki has quit [Remote host closed the connection]
timonv_ has quit [Remote host closed the connection]
tvl has joined #ruby
tkuchiki has joined #ruby
sk87 has joined #ruby
<Aeoxic>
sorry, mistype
vinleod has joined #ruby
<Aeoxic>
wow, hexchat is really getting on my nerves today.
<Aeoxic>
Keeps stealing focus.
blackmesa has quit [Ping timeout: 250 seconds]
kl has joined #ruby
shredding has joined #ruby
Aeoxic has quit [Quit: Leaving]
<anitchrist>
I didn't know xchat wasn't free... >.<
jenrzzz has quit [Ping timeout: 240 seconds]
shredding has quit [Quit: shredding]
andikr has joined #ruby
tvl is now known as tobiasvl
jenrzzz has joined #ruby
WilfNetherton has joined #ruby
jcdesimp has quit [Quit: Leaving...]
sinkensabe has quit [Remote host closed the connection]
<anitchrist>
i'm crashing guys... er.... girls... peeps. shevy and certainty, thank you for the prodding
apeiros_ has joined #ruby
<anitchrist>
encouragement is relaxing
* anitchrist
ZzzzZZzzz
<anitchrist>
"catch ya on the flip side"
<certainty>
have fun
az7ar_away is now known as az7ar
<anitchrist>
I'll be back tomorrow probably :\
anitchrist has quit [Quit: Leaving]
krz has quit [Quit: WeeChat 1.0.1]
agjacome has joined #ruby
ponga has joined #ruby
ponga has joined #ruby
krz has joined #ruby
whomp has joined #ruby
sinkensabe has joined #ruby
intersect has joined #ruby
jenrzzz has joined #ruby
vdamewood has joined #ruby
arup_r has quit [Remote host closed the connection]
whomp has quit [Ping timeout: 244 seconds]
jack_rabbit has quit [Ping timeout: 255 seconds]
ta_ has quit [Ping timeout: 265 seconds]
Hobogrammer has quit [Ping timeout: 240 seconds]
silkfox has joined #ruby
recurrence has joined #ruby
<recurrence>
Can someone run this gist and check if it succeeds? It blows up for me and from searching on the web, people are blaiming a similar issue to specific ruby versions. I’m trying to isolate a version that works. https://gist.github.com/kenglishhi/1698473/download#
<recurrence>
so it may be that the gist simply is broken for some input
echooo2 has quit [Ping timeout: 264 seconds]
<certainty>
other type of error on jrbuy
Juanchito has joined #ruby
<certainty>
same for ruby-1.9.3-p429 and so on
charliesome has quit [Ping timeout: 244 seconds]
DadoCe has joined #ruby
<recurrence>
Thanks certainty. I’m going to go with a different implementation and see if it passes there. Definitely appears to be a problem with the gist from your tests.
CustosL1men has joined #ruby
echooo has quit [Client Quit]
echooo has joined #ruby
kl has quit [Ping timeout: 245 seconds]
Flcn____ has quit [Ping timeout: 256 seconds]
vyorkin has joined #ruby
ghr has joined #ruby
avril14th has joined #ruby
ta_ has quit [Ping timeout: 245 seconds]
LouisRoR has joined #ruby
fella7s has quit [Read error: Connection reset by peer]
baltazore has quit [Read error: Connection reset by peer]
baltazore has joined #ruby
hephaestus_rg has quit [Ping timeout: 244 seconds]
Macaveli has joined #ruby
blackmesa has joined #ruby
ta_ has quit [Ping timeout: 265 seconds]
AFKGeek has quit [Ping timeout: 244 seconds]
behrz has joined #ruby
Nameo0 has quit [Ping timeout: 264 seconds]
chthon has joined #ruby
nanoyak has quit [Quit: Computer has gone to sleep.]
gccostabr has joined #ruby
vieq has quit [Ping timeout: 255 seconds]
reinaldob has joined #ruby
Jackneill has joined #ruby
<avril14th>
yo
tkuchiki has quit [Ping timeout: 240 seconds]
greenbagels_ has quit [Read error: Connection reset by peer]
qulo has quit [Ping timeout: 244 seconds]
mengu has quit [Remote host closed the connection]
mengu has joined #ruby
mengu has quit [Changing host]
mengu has joined #ruby
AFKGeek has joined #ruby
Stalkr_ has joined #ruby
sevvie has quit [Read error: Connection reset by peer]
Stalkr_ has quit [Read error: Connection reset by peer]
Stalkr^ has joined #ruby
giuseppesolinas has joined #ruby
livathin_ has joined #ruby
lkba has joined #ruby
baltazore has quit [Remote host closed the connection]
baltazore has joined #ruby
vieq has joined #ruby
sinkensabe has joined #ruby
livathinos has quit [Ping timeout: 240 seconds]
livathin_ has quit [Remote host closed the connection]
mengu has quit [Ping timeout: 264 seconds]
sevvie has joined #ruby
RealMarc has joined #ruby
konsolebox has joined #ruby
sandelius has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
rodfersou has quit [Quit: leaving]
tkuchiki has joined #ruby
sandelius has joined #ruby
bweston92 has joined #ruby
qulo has joined #ruby
bronson has joined #ruby
goganchic has joined #ruby
Mon_Ouie has joined #ruby
mikecmpbll has joined #ruby
teddyp1c_ has joined #ruby
bronson has quit [Ping timeout: 245 seconds]
teddyp1cker has quit [Ping timeout: 256 seconds]
craigp has quit [Ping timeout: 265 seconds]
techsethi_ has joined #ruby
hgl has quit [Max SendQ exceeded]
<techsethi_>
Hi Experts, I am having a hard issue debugging this encoding problem. I have "utf-8" data in the table but the table/column is marked latin1. I don't have control to change the column type. I am trying to fetch the data but it is not being rendered as "utf-8"
kapil__ has quit [Quit: Connection closed for inactivity]
mengu has joined #ruby
techsethi_ has joined #ruby
MasterPiece has joined #ruby
silkfox has quit [Ping timeout: 244 seconds]
DadoCe has joined #ruby
az7ar_away is now known as az7ar
Timgauthier has joined #ruby
az7ar is now known as az7ar_away
jottr has quit [Ping timeout: 255 seconds]
krz has quit [Quit: WeeChat 1.0.1]
ta_ has joined #ruby
DadoCe has quit [Ping timeout: 244 seconds]
techsethi_ has quit [Ping timeout: 240 seconds]
Aeoxic has joined #ruby
<Aeoxic>
Back again, with another odd question: Is it possible to dynamically unload / reload a class in Ruby?
valeriansaliou has joined #ruby
<Aeoxic>
I can't find any concrete method on Google.
<Aeoxic>
I can't find any concrete method on Google.
<Aeoxic>
oop, sorry, hexchat is bad with focus
<Mon_Ouie>
You can't really unload a class in Ruby (you'd have to manually remove the constants and any reference to that class or its instances)
<Aeoxic>
So dynamically reloading part of an app isn't really possible?
ta_ has quit [Ping timeout: 265 seconds]
<Mon_Ouie>
You can reload one just by re-evaluating the code that defined it. You'd have to remove methods manually but you can add/redefine methods as you want.
<tobiasvl>
Aeoxic: what's your usecase?
krz has joined #ruby
<Aeoxic>
tobiasvl: naive plugin system
<Mon_Ouie>
(e.g. using eval or load)
troulouliou_dev has joined #ruby
sandelius has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<Aeoxic>
tobiasvl: Naive as in very simple. Just trying to be able to reload 'em.
tkuchiki_ has joined #ruby
<Aeoxic>
Possible in Python pretty easily, trying to replicate in Ruby.
<tobiasvl>
but reload what?
valeriansaliou has quit [Ping timeout: 245 seconds]
<tobiasvl>
a require?
<tobiasvl>
just a class?
<Aeoxic>
It's a class within a module in a file.
techsethi has joined #ruby
anarang has joined #ruby
fabrice31 has quit [Remote host closed the connection]
fabrice31 has joined #ruby
joonty has joined #ruby
<Aeoxic>
Apparently the "in a module" part causes "Object.send(:remove_const, @class_name)" to not work, as symbols cannot into anything with a colon.
<tobiasvl>
Aeoxic: "symbols cannot into anything with a colon"? the things that start with a colon are symbols
Inoperable has joined #ruby
<Aeoxic>
tobiasvl: Yes, but
<Aeoxic>
they cannot contain colons in their name.
tkuchiki_ has quit [Ping timeout: 245 seconds]
<Aeoxic>
So if you're defining the class by a string, and the class is within a module, it won't work.
<certainty>
Aeoxic: yeah you have to remove the constant from the surrounding "scope" so if thing is SomeModule::Thing you have to remove it from SomeModule. SomeModule.send(:remove_const) ...
<Mon_Ouie>
Why do you need to remove the existing class? Normally just reloading the existing code is fine
<Aeoxic>
Mon_Ouie: Reloading the existing code doesn't appear to work for me.
<Aeoxic>
The fn still performs the same as prior to reload.
<Mon_Ouie>
Well, why not?
<Aeoxic>
certainty: sec @ that
<tobiasvl>
Aeoxic: what certainty said is the solution (SomeModule.send(:remove_const)) but note that symbols can contain colons too: :"foo:bar
<eval-in__>
Mon_Ouie => wrong constant name foo:bar (NameError) ... (https://eval.in/239534)
<tobiasvl>
hmm
<Aeoxic>
certainty: Yeah it doesn't.
<Aeoxic>
I've loaded the app, tested, modified code, run reload, tested
<Aeoxic>
same outcome
terlar has joined #ruby
<Mon_Ouie>
How do you reload the code?
<Aeoxic>
Initially just brute-force.
<certainty>
Aeoxic: did you use require?
<Aeoxic>
Loop through all files in ./plugins/*.rb; load file
<Aeoxic>
certainty: no
<Aeoxic>
'load'
<Aeoxic>
i use require on the plugin handler which doesn't get unloaded
p0wn3d_mhs has quit [Remote host closed the connection]
<Aeoxic>
but it does drop its references to instantiated classes before it reloads the code
<certainty>
hmm i think we need some code
<Aeoxic>
ok
<Aeoxic>
one sec, let me uh
<Aeoxic>
idk how i'm gonna do this
p0wn3d_mhs has joined #ruby
<certainty>
try to find a minimal example that reproduces the problem
<Xnfu>
Put it on a gist
ta_ has joined #ruby
dawkirst has joined #ruby
<certainty>
Aeoxic: put in comments like "alter this line to that, then reload" or something
<Aeoxic>
oh
<Xnfu>
Also, :: is called a scope resolution operator
<Aeoxic>
this is
<Aeoxic>
part of a larger irc network daemon
livathinos has joined #ruby
<Aeoxic>
i'm pasting some code around to show you what the problem is but it's not going to be a walk in the park for you to reproduce the problem without my setup
<Aeoxic>
plugin manager drops plugin, but when it's reloaded it doesn't re-instantiate
<Aeoxic>
lmao
krz has joined #ruby
<Aeoxic>
also thanks zenspider
commmmodo has joined #ruby
<zenspider>
reinstantiating shouldn't be necessary if you don't drop the class first. Simply reopen it and redefine the methods as necessary.
krz has quit [Client Quit]
<zenspider>
that can leave junk behind, but so can leaving instances behind pointing to now-anonymous classes
sinkensabe has quit [Remote host closed the connection]
<zenspider>
that said, if this is just a plugin system, then reinstantiating should be fine as they shouldn't have much of any inward or outward references that need fixing
livathin_ has quit [Ping timeout: 265 seconds]
n3phos has joined #ruby
<Aeoxic>
I just kinda want the easiest way to do this,.
<Aeoxic>
Doesn't need to be 110% robust.
<Aeoxic>
I'm happy to handle edge cases.
nvbknh has joined #ruby
towski_ has joined #ruby
<zenspider>
then define a reset class method in the upper namespace that nukes all the plugin consts, reloads the files, and reinstantiates everything.
<zenspider>
if everything goes through there, it should be clean and easy
devoldmx has quit [Remote host closed the connection]
commmmodo has quit [Ping timeout: 244 seconds]
sk87 has joined #ruby
Aeoxic_ has joined #ruby
ernetas_ has joined #ruby
TheRinger_ has joined #ruby
dc__ has joined #ruby
nvbknh has quit [*.net *.split]
anarang has quit [*.net *.split]
Aeoxic has quit [*.net *.split]
mengu has quit [*.net *.split]
chthon has quit [*.net *.split]
Zai00 has quit [*.net *.split]
msgodf has quit [*.net *.split]
TheRinger has quit [*.net *.split]
pkrzywicki has quit [*.net *.split]
lxsameer has quit [*.net *.split]
Mia has quit [*.net *.split]
tagrudev has quit [*.net *.split]
bluOxigen has quit [*.net *.split]
dhruvasagar has quit [*.net *.split]
braincrash has quit [*.net *.split]
hamakn has quit [*.net *.split]
dc_ has quit [*.net *.split]
chipotle has quit [*.net *.split]
bashusr has quit [*.net *.split]
Luyt__ has quit [*.net *.split]
mmealling has quit [*.net *.split]
gregf has quit [*.net *.split]
retornam has quit [*.net *.split]
aef has quit [*.net *.split]
tchebb has quit [*.net *.split]
mbeasley has quit [*.net *.split]
ryotarai has quit [*.net *.split]
marens has quit [*.net *.split]
ukd1 has quit [*.net *.split]
clamstar has quit [*.net *.split]
Gate_ has quit [*.net *.split]
orionstein has quit [*.net *.split]
SirCmpwn has quit [*.net *.split]
bhaak has quit [*.net *.split]
chuck has quit [*.net *.split]
MuffinPimp has quit [*.net *.split]
bascht has quit [*.net *.split]
ernetas has quit [*.net *.split]
dhruvasagar_ has joined #ruby
Evan_ has quit [*.net *.split]
Axy has joined #ruby
Axy has joined #ruby
chuck has joined #ruby
chuck has quit [Changing host]
chuck has joined #ruby
pkrzywicki has joined #ruby
bhaak_ has joined #ruby
Luyt__ has joined #ruby
Gate has joined #ruby
Gate has joined #ruby
hamakn has joined #ruby
ukd1 has joined #ruby
anarang has joined #ruby
orionstein_ has joined #ruby
tagrudev has joined #ruby
lxsameer has joined #ruby
Xeago has joined #ruby
msgodf has joined #ruby
tvw has joined #ruby
chthon has joined #ruby
orionstein_ is now known as orionstein
marens has joined #ruby
bascht has joined #ruby
Zai00 has joined #ruby
mbeasley has joined #ruby
gregf has joined #ruby
Rylee has quit [Excess Flood]
AFKGeek has joined #ruby
aef has joined #ruby
mengu__ has joined #ruby
chipotle_ has joined #ruby
bluOxigen has joined #ruby
krz has joined #ruby
SirFunk has quit [Ping timeout: 250 seconds]
gf3 has quit [Ping timeout: 250 seconds]
timmow has quit [Ping timeout: 250 seconds]
bluOxigen has quit [Changing host]
bluOxigen has joined #ruby
towski_ has quit [Ping timeout: 264 seconds]
Rylee has joined #ruby
troulouliou_dev has quit [Quit: Leaving]
Xeago has quit [Remote host closed the connection]
SirFunk has joined #ruby
gf3 has joined #ruby
timmow has joined #ruby
krz is now known as Guest23603
mostlybadfly has joined #ruby
braincrash has joined #ruby
Guest23603 has quit [Client Quit]
ryotarai has joined #ruby
bashusr has joined #ruby
tchebb has joined #ruby
riscky has quit [Quit: riscky]
Evan_ has joined #ruby
SirCmpwn has joined #ruby
yasu___ is now known as yasu
n1lo has joined #ruby
ihlcqe has joined #ruby
ta_ has joined #ruby
baltazore has quit [Remote host closed the connection]
sevenseacat has joined #ruby
krzkrz has joined #ruby
retornam has joined #ruby
duncannz has quit [Read error: Connection reset by peer]
Takle has quit [Remote host closed the connection]
gfawcettpq has joined #ruby
krzkrz has quit [Client Quit]
<Aeoxic_>
zenspider certainty: So I've confirmed the class itself is unloaded, but when it comes to reloading it, it seems to be ignoring Class.new
livathinos has joined #ruby
krzkrz has joined #ruby
<aob_>
I want to make a big long array of string using %x[ stuff morethings etc ] -- but the list is big and i want to run it over multiple lines
<zenspider>
ALL of your @plugins should drop the '@' and use your accessor
<zenspider>
welp... running out of ideas... I'd put a 'p' statement on line 10 and 59 to make sure that your dir glob is actually reloading the files and the initialize is actually not running.
towski_ has joined #ruby
rodfersou has quit [Read error: Connection reset by peer]
<zenspider>
that dir glob is potentially dangerous because it is relative to where the program is run, not where the code is
<Aeoxic>
ಠ_ಠ
<Aeoxic>
will fix asap
<zenspider>
Dir.chdir File.dirname __FILE__ do ...reload... end
rodfersou has joined #ruby
<zenspider>
or just build the paths absolute
<Aeoxic>
Just using the accessor ends up with two Helios::Bot in the @plugins
whomp has quit [Ping timeout: 250 seconds]
<certainty>
__dir__ should work too, i think. But that's rather recent
zarubin has joined #ruby
banjara has quit [Ping timeout: 250 seconds]
livathin_ has joined #ruby
<zenspider>
ugh. they finally added that? :(
<certainty>
yeah
silkfox has joined #ruby
<zenspider>
I wish they added my suggestions __dir_dir__ __dir_dir_dir__ etc
<Aeoxic>
__________________________
<zenspider>
and __dur__
<Aeoxic>
__python__
<Aeoxic>
:(
Takle_ has quit [Remote host closed the connection]
towski_ has quit [Ping timeout: 255 seconds]
fantazo has joined #ruby
livathinos has quit [Ping timeout: 245 seconds]
<Xnfu>
__FUCK__
gfawcettpq has quit [Remote host closed the connection]
<zenspider>
hah. if only
<zenspider>
I've written that so many times in my ruby code
MasterPiece has quit [Quit: Leaving]
sigurding has joined #ruby
Spami has joined #ruby
shazaum has joined #ruby
gfawcettpq has joined #ruby
silkfox has quit [Ping timeout: 256 seconds]
<Xnfu>
lel
<Aeoxic>
zenspider: ... no p or anything anywhere in bot.rb works
aswen has quit [Ping timeout: 245 seconds]
<Aeoxic>
even on initial load
<Aeoxic>
it just... doesn't show
<Xnfu>
loop { fork { __FILE__ } }
<Xnfu>
<3
tlarevo has quit [Remote host closed the connection]
<Xeago_>
konsolebox: permutations are a defined derivative of a set
<konsolebox>
Xeago: After much searching I ended with two known algorithms that are used for generating possible permutations: http://en.wikipedia.org/wiki/Heap%27s_algorithm and en.wikipedia.org/wiki/Steinhaus–Johnson–Trotter_algorithm. The result you get from [1, 2, 3, 4].permutation seems different from those
<Xeago_>
what do you get from those?
<konsolebox>
Actually I find it that Array#permutation produces the reverse output of Hea's algorithm.
sambao21 has joined #ruby
bronson has quit [Ping timeout: 244 seconds]
larissa has joined #ruby
Xeago has quit [Ping timeout: 265 seconds]
iamjarvo has joined #ruby
kiyote23 has quit [Ping timeout: 255 seconds]
<konsolebox>
Xeago_: what do you mean?
allcentury has joined #ruby
<Xeago_>
there is set set called a permutation of a set
<Xeago_>
ie the permutation of [1] is [1]
<Xeago_>
whichever algorithm to use should arrive at the same result
<Xeago_>
so I'm not why you would want to know?
dblessing has joined #ruby
<Xeago_>
You should probably look at the source for it
<konsolebox>
Xeago_: The order would differ. I want to know what known algorithm it was made from.
Stalkr^ has joined #ruby
<Xeago_>
the order is irrelevant
kl__ has joined #ruby
<Xeago_>
permutations are a set
<Xeago_>
a set is unordered by definition
Stalkr_ has quit [Read error: Connection reset by peer]
it0a has joined #ruby
Logico has joined #ruby
Logico has left #ruby [#ruby]
lw has quit [Quit: s]
<Mon_Ouie>
And the documentation explicitly states that no guarantees are made regarding the order of the result, so you should not rely on it in your code (it may very well change between different versions of Ruby)
Crazy_Atheist has quit [Read error: Connection reset by peer]
<Xeago_>
It may very well be different on each invocation
<konsolebox>
Xeago_: I already saw the code. There's no algorithm name in it.
Zamyatin has joined #ruby
<Xeago_>
if you want to order the result, sort it explicitly according to some identity function
<konsolebox>
Mon_Ouie: Yes, but I like the order of the result you get from Array#permutation. I may actually implement my own function but I have to know first the standard algorithm's name.
t0rc has quit [Ping timeout: 264 seconds]
DonOtreply has quit [Quit: DonOtreply]
<Xeago_>
konsolebox: it might very well be the first link you said, where it is put on a stack and then returned
<konsolebox>
Permutation (class/library) actually produces the same output as Array#permutation.
<rocknrollmarc>
I know Senjai Im doing a padrino tutorial with the old should syntax normaly I use expect
bigmac has quit [Read error: Connection reset by peer]
bigmac has joined #ruby
<Senjai>
rocknrollmarc: Just use expect, they're interchangeable
<Senjai>
rocknrollmarc: should is REALLY bad, thats why its not being used
<rocknrollmarc>
ok
sevvie has joined #ruby
<rocknrollmarc>
ok why is that? at work most guys are still using shoulda although i dont
dawkirst has quit [Remote host closed the connection]
doodlehaus has joined #ruby
AFKGeek has quit [Quit: Fades into the shadows]
dawkirst has joined #ruby
jobewan has joined #ruby
<Senjai>
rocknrollmarc: rspec adds the should method to every object ever
<Senjai>
rocknrollmarc: thats why "sdfs".should works
<Senjai>
rocknrollmarc: What if you wanted to define a method called should in your class?
<Senjai>
Or any other method for that matter
<Senjai>
Adding a method to everything in the universe is a bad idea
asdasdadsasdda has joined #ruby
tesuji has quit [Ping timeout: 244 seconds]
<Senjai>
expect() wraps this so rspec doesnt have to modify core ruby classes
pu22l3r has joined #ruby
asdasdadsasdda has quit [Client Quit]
ta_ has quit [Ping timeout: 265 seconds]
Channel6 has joined #ruby
whomp has joined #ruby
<Senjai>
people use should still either because they're lazy, or they cannot upgrade rspec to a version that supports expect
<Senjai>
or cant
<rocknrollmarc>
aha ok thanks for that
<rocknrollmarc>
yes its a pitty for newbies as they get confused well I didnt because when I started ruby I started straight with expect
oleo has joined #ruby
<rocknrollmarc>
anyone tryed padrino here?
az7ar is now known as az7ar_away
<shevy>
the guys in #sinatra tried!
s00pcan_ has joined #ruby
Zamyatin has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
mary5030 has joined #ruby
athan has quit [Read error: Connection reset by peer]
whomp has quit [Ping timeout: 240 seconds]
josephndenton has joined #ruby
sambao21 has quit [Quit: Computer has gone to sleep.]
fandi has joined #ruby
Stalkr^ has quit [Quit: Leaving...]
SilkFox_ has joined #ruby
arup_r has joined #ruby
lmickh has joined #ruby
studiotate has joined #ruby
anarang has quit [Quit: Leaving]
phantomtiger has joined #ruby
banister has joined #ruby
banister has quit [Max SendQ exceeded]
tkuchiki has quit [Remote host closed the connection]
SilkFox_ has quit [Ping timeout: 245 seconds]
tkuchiki has joined #ruby
<rocknrollmarc>
LoL
phux has joined #ruby
Kricir has joined #ruby
<waxjar>
i dont get rspec. what's so much better about expect(some.code).to be_false, why not just plain old assert_equal some.code, false?
rbennacer has joined #ruby
rbennacer has quit [Remote host closed the connection]
<Xeago_>
I believe you can give expect a block and it will execute it
<Xeago_>
you can't give assert_equal a block
<Xeago_>
nonetheless I don't see the value of it :|
<shevy>
lol
Zamyatin has joined #ruby
<shevy>
did Xeago_ just explain to waxjar ... and then also support waxjar's position? :D
rbennacer has joined #ruby
craigp has quit [Ping timeout: 265 seconds]
enebo has joined #ruby
<shevy>
"You can pass a block - but it is totally useless."
skrite has quit [Remote host closed the connection]
<Xeago_>
purposedly english is easier than words following RPN
tkuchiki has quit [Ping timeout: 245 seconds]
phantomtiger has left #ruby [#ruby]
mengu__ has quit [Remote host closed the connection]
<phux>
I am executing a php script via backticks in a ruby script (watchr). The execution time is 9 secons via backticks execution. with plain php it takes ~ 2 seconds. Might starting the external cmd in a subshell be the problem? Is there a faster way to start an external bash command and catch its output?
whoisjake has joined #ruby
rbrs has joined #ruby
treehug88 has joined #ruby
az7ar_away is now known as az7ar
evanjs has quit [Remote host closed the connection]
Meeh has quit [Ping timeout: 245 seconds]
<kaspergrubbe>
phux: I think backticks use forking, which have some overhead, you might be able to use https://github.com/rtomayko/posix-spawn for faster results
snath has joined #ruby
<phux>
thanks for input, kaspergrubbe
mengu has joined #ruby
freerobby has joined #ruby
byprdct has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<xxneolithicxx>
hi all, when you monkey patch a class that inherits from another do you have to specify the inherited class in the monkey patch as well or is just the class name sufficient?
rocknrollmarc has joined #ruby
deric_skibotn has joined #ruby
whomp has quit [Ping timeout: 244 seconds]
jefus_ has joined #ruby
youssefchakker is now known as youssefchaker
<claw__>
solved my question Rouge::Lexers.constants
pengin has quit [Ping timeout: 264 seconds]
behrz has quit [Ping timeout: 264 seconds]
hrs has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
sevvie has quit [Read error: Connection reset by peer]
baroquebobcat has joined #ruby
jefus has quit [Ping timeout: 256 seconds]
t0rc has joined #ruby
poguez has joined #ruby
devoldmx has quit [Read error: Connection reset by peer]
Takle has quit [Remote host closed the connection]
anarang has joined #ruby
CustosL1men has quit [Ping timeout: 256 seconds]
shredding has quit [Read error: Connection reset by peer]
olivier_bK has quit [Ping timeout: 245 seconds]
shredding has joined #ruby
youssefchaker is now known as ychaker
doodlehaus has joined #ruby
phux has quit [Quit: leaving]
DadoCe has joined #ruby
<rsty1>
how to select fields in split() method? like i need 10,17,18,19 but can't split("/")[10,17,18,19] ?
anaeem1 has quit [Ping timeout: 265 seconds]
ctooley has joined #ruby
dcarmich has joined #ruby
snath has joined #ruby
<shevy>
xxneolithicxx you modify the class that you modify
<shevy>
xxneolithicxx the parent is unaffected by any modifications you to a child class
paulfm has quit [Quit: Goodbye]
<shevy>
*you do to
<elaptics>
rsty1: what are you trying to split exactly?
<GaryOak_>
rsty1: What output are you trying to get?
Takle has joined #ruby
mquin has quit [Read error: Connection reset by peer]
<ctooley>
I have a table named “item_group” where the primary key is “name” and a table name “item” with a column named “item_group_name”. I’m trying to make the association in the item.rb model so that item.item_group_name = item_group.name is explicit and not inferred.
<ctooley>
I’m trying to read through the ActiveRecord documentation on the association and it’s not terribly clear how to acheive most associations when you’re not in charge fo the schema.
sevvie has quit [Read error: Connection reset by peer]
DadoCe has quit [Ping timeout: 264 seconds]
mquin has joined #ruby
behrz has joined #ruby
pengin has joined #ruby
<rsty1>
whats the best way to do elaptics/GaryOak_?
rbrs has quit [Remote host closed the connection]
<rsty1>
with above output and desired array values
livingstn has joined #ruby
<GaryOak_>
"yourvalue".split("=/")[2].split("/") that's quick and dirty
jzinedine has joined #ruby
bweston92 has quit [Read error: Connection reset by peer]
<GaryOak_>
or you could use a regex
<GaryOak_>
and then get that part of the string, and split it
<GaryOak_>
or you could cut the end off the string and split that
tyfighter has joined #ruby
<rsty1>
kk, thanks. I am used to unix cut/awk
<rsty1>
:P
recurrence has joined #ruby
jzinedine has quit [Client Quit]
sevvie has joined #ruby
recurrence has quit [Client Quit]
jenrzzz has joined #ruby
Ankhers` is now known as Ankhers
Fire-Dragon-DoL has joined #ruby
Fire-Dragon-DoL has quit [Max SendQ exceeded]
devoldmx has joined #ruby
xxneolithicxx has left #ruby [#ruby]
Aswebb_ has quit [Remote host closed the connection]
Hijiri has quit [Ping timeout: 244 seconds]
cpt_yossarian has quit [Read error: Connection reset by peer]
geggam has quit [Remote host closed the connection]
apeiros_ has joined #ruby
geggam has joined #ruby
cpt_yossarian has joined #ruby
blackmesa has joined #ruby
sambao21 has quit [Quit: Computer has gone to sleep.]
Trep has joined #ruby
mattmcclure has joined #ruby
Macaveli has joined #ruby
arup_r has quit [Quit: Leaving.]
ihlcqe has quit [Read error: Connection reset by peer]
Aswebb_ has joined #ruby
SilkFox_ has joined #ruby
sambao21 has joined #ruby
mbeasley has quit [Read error: Connection reset by peer]
qulo has quit [Quit: Leaving]
sevvie has quit [Read error: Connection reset by peer]
mbeasley has joined #ruby
karmatr0n has joined #ruby
antgel has quit [Ping timeout: 265 seconds]
Flcn____ has joined #ruby
whomp has joined #ruby
ptrrr has joined #ruby
french has joined #ruby
msgodf has quit [Remote host closed the connection]
jeanlinux has joined #ruby
brb3 has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
timonv_ has quit [Remote host closed the connection]
shuber_ has quit [Remote host closed the connection]
<cjm_>
Hi Folks, I have a Ruby on Rails application configured to run on passenger under Apache. A request for http://<root>/ should invoke the application, but it does not. My experience with Ruby on or off Rails is not sufficient to understand how this dispatching is supposed to work, so I have no idea what the problem is. Can anybody advise me how to diagnose this? I suspect it is quite simple for someone with experience.
Takle has quit [Remote host closed the connection]
valeriansaliou has joined #ruby
larissa has quit [Ping timeout: 265 seconds]
sshao has joined #ruby
justicefries has joined #ruby
justicefries has quit [Max SendQ exceeded]
valeriansaliou has quit [Ping timeout: 265 seconds]
justicef- has joined #ruby
justicef- is now known as justicefries
lw has joined #ruby
shock_one has quit [Remote host closed the connection]
sinkensabe has joined #ruby
thumpba has joined #ruby
catphish has quit [Quit: Leaving]
bigmac has quit [Read error: Connection reset by peer]
kl__ has quit [Ping timeout: 245 seconds]
bigmac has joined #ruby
thisirs has joined #ruby
<GaryOak_>
cjm_: Do you have the server running? Also you can try over at #rubyonrails
<cjm_>
GaryOak_, Yes. Everything is working except the dispatch to Ruby on Rails... Try http://todo.tryx.org, and you will see a directory listing.
<cjm_>
GaryOak_, I asked here because I don't know if I have a Ruby question or a Rails question...
<GaryOak_>
It's probably a rails question if the whole application won't run
jimms has joined #ruby
andikr has quit [Remote host closed the connection]
pietr0 has joined #ruby
spyderman4g63 has quit [Ping timeout: 240 seconds]
Aswebb_ has quit [Remote host closed the connection]
Rarikon has quit [Read error: Connection reset by peer]
commmmodo has joined #ruby
Rarikon has joined #ruby
Photism_ has joined #ruby
Photism has quit [Read error: Connection reset by peer]
shuber_ has joined #ruby
athan has quit [Ping timeout: 265 seconds]
mois3x has joined #ruby
athan has joined #ruby
bennylope has joined #ruby
tlr has joined #ruby
<cjm_>
GaryOak_, Thanks... Even that little bit is helpful, when you have nearly zero experience.
fabrice31 has quit [Ping timeout: 240 seconds]
emmesswhy has joined #ruby
pusewicz has quit [Ping timeout: 272 seconds]
PhilK has quit [Ping timeout: 272 seconds]
Gnubie_ has quit [Remote host closed the connection]
Gnubie_ has joined #ruby
codefo has quit [Ping timeout: 244 seconds]
<GaryOak_>
cjm_: No problem, it's looks like your apache server is running, I don't know much about passenger though
Seich has quit [Ping timeout: 272 seconds]
pusewicz has joined #ruby
PhilK has joined #ruby
shuber_ has quit [Remote host closed the connection]
<GaryOak_>
so it could be a apache/passenger config issue, or a rails issue
tlr has quit [Client Quit]
ltd has quit [Ping timeout: 272 seconds]
Klumben has quit [Ping timeout: 272 seconds]
renderful has joined #ruby
<cjm_>
GaryOak_, What you know about passenger and what I know about passenger is equal to what you know about passenger. (-:
ltd has joined #ruby
roolo has quit [Remote host closed the connection]
<GaryOak_>
cjm_: haha well you'd better start reading some docs ;)
Seich has joined #ruby
shuber_ has joined #ruby
anaeem1_ has joined #ruby
ARCADIVS has quit [Quit: ARCADIVS]
anaeem1 has quit [Read error: Connection reset by peer]
<cjm_>
GaryOak_, Yeah, I really didn't want to have to debug this. I don't even know if it will do what I want, but I have already invested enough time, that I think I will have to *make* it do what I want...
rpag has joined #ruby
sargas has quit [Quit: This computer has gone to sleep]
elaptics is now known as elaptics`away
fryguy9 has quit [Read error: Connection reset by peer]
fryguy91 has joined #ruby
codefo has joined #ruby
<GaryOak_>
cjm_: well if you aren't constrained by apache, I'd suggest doing local testing just using the built-in rails server
SilkFox_ has joined #ruby
<cjm_>
GaryOak_, Yes. I even have instructions for that, and it is beginning to look very attractive. I want to run under apache for "production", but if it doesn't pass basic functionality tests, then I don't have a production application to run anyway.
<GaryOak_>
cjm_: that's the idea, if you know rails is running using the basic server, then you know it should work with something else
<GaryOak_>
dman777_alter: ok so that means bundle is using the right ruby version
ghr has quit [Ping timeout: 244 seconds]
anarang has joined #ruby
giuseppesolinas has joined #ruby
sevvie has joined #ruby
yfeldblum has joined #ruby
anarang has quit [Client Quit]
youssefchaker_ has joined #ruby
giuseppesolinas has quit [Client Quit]
youssefchaker_ is now known as youssefchaker
sevvie has quit [Read error: Connection reset by peer]
crack_user has quit [Quit: Leaving.]
parduse has quit []
Pupeno_ has joined #ruby
Macaveli has joined #ruby
GaryOak_ has quit [Ping timeout: 244 seconds]
sevvie has joined #ruby
Pupeno has quit [Ping timeout: 244 seconds]
giuseppesolinas has joined #ruby
giuseppesolinas has quit [Client Quit]
shazaum has quit [Quit: This computer has gone to sleep]
x1337807x has joined #ruby
bronson has quit [Remote host closed the connection]
ta_ has joined #ruby
lw has joined #ruby
sambao21 has quit [Quit: Computer has gone to sleep.]
exgf has joined #ruby
lw has quit [Read error: Connection reset by peer]
lw has joined #ruby
rodfersou has quit [Quit: leaving]
jenrzzz has quit [Ping timeout: 244 seconds]
Morkel has joined #ruby
sambao21 has joined #ruby
mjuszczak has quit [Read error: Connection reset by peer]
sambao21 has quit [Client Quit]
sevvie has quit [Ping timeout: 245 seconds]
shredding has joined #ruby
mjuszczak has joined #ruby
thoughnut has quit [Ping timeout: 264 seconds]
recurrence has quit [Quit: recurrence]
SilkFox_ has joined #ruby
<ght>
Quick question: I have a good-sized Ruby applicationb built out, but suddenly I need to have specific methods increment variable values and pass them back to the main app, without re-designing all my method return statements
<ght>
Any way to do this? I know constants are frowned upon
codefo has joined #ruby
Aeoxic has joined #ruby
kyb3r_ has joined #ruby
sargas has quit [Quit: This computer has gone to sleep]
nanoyak has quit [Quit: Computer has gone to sleep.]
sambao21 has joined #ruby
thoughnut has joined #ruby
bronson has joined #ruby
ta_ has quit [Ping timeout: 244 seconds]
shock_one has joined #ruby
SilkFox_ has quit [Ping timeout: 256 seconds]
sevvie has joined #ruby
wallerdev has quit [Quit: wallerdev]
spyderm__ has quit [Ping timeout: 264 seconds]
<shevy>
you can use constants just fine
veduardo_ is now known as veduardo
sudoman has joined #ruby
sudoman has left #ruby [#ruby]
<exgf>
depends rly. make the variables part of an object. pass that object in and modify its state
elaptics`away is now known as elaptics
patric100e99 has quit [Ping timeout: 244 seconds]
<exgf>
as a side effect
<Aeoxic>
Does `load` function more or less identically to `require` save for `require` checking that the code hasn't been loaded before?
reinaldob has quit [Remote host closed the connection]
veduardo has quit [Quit: WeeChat 0.4.2]
<Aeoxic>
I have an interesting issue where a file isn't being loaded using `load`, but it is if I use `require`.
reinaldob has joined #ruby
teddyp1cker has quit [Remote host closed the connection]
x1337807x has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
ta_ has joined #ruby
thegrid_ has joined #ruby
banjara has quit [Quit: Leaving.]
<thegrid_>
hello everyone, can anyone tell me the rails channel?
<Aeoxic>
Even with a blank .rb with nothing put `p '?'`
<Aeoxic>
I get nothing.
<Aeoxic>
Change `load` to `require` and it works.
<thegrid_>
actualy i have a ruby question: it says gem is not found certificate failure
<shevy>
it seems as i rb_require_safe() does a few additional checks, such as rb_set_safe_level_force(safe);
<ght>
Question: when I pass a string as a parameter to a method and make changes within the method, those changes are retained after the method ends and the main app resumes operation. However, this does not seem to be the case with integers.
<ght>
Is this a known thing?
<ght>
Integers passed as function parameters in ruby don't retain changes that take place in methods, but strings do? Why is that?
<shevy>
Aeoxic I use require about 99% of the time
lrocknrolmarc has joined #ruby
<Aeoxic>
shevy: I have to use `load` for the reloading facility.
mostlybadfly has quit [Quit: Connection closed for inactivity]
<Aeoxic>
Writing babby's first plugin system over here.
<thegrid_>
actualy i have a ruby question: it says gem is not found certificate failure
<ght>
Anyone?
exadeci has joined #ruby
<Aeoxic>
thegrid_: You behind a HTTP proxy?
<shevy>
ght Integers aren't real objects due to speed reasons
andrewcarter has joined #ruby
<thegrid_>
Aeoxic: im using a residential cable line
<ght>
shevy: would a dirty workaround be to convert it to string with .to_s, pass it, conver it back to integer with .to_i, make the changes, then convert it back to string with to_s before the method ends?
<shevy>
ght not sure what is dirty. what exactly do you need? I mean you can convert a string to an integer and back again
jerius has quit []
<ght>
I just need these integers to retain their value within the next 10 minutes, I don't have to time to redesign all my method return statements
pengin has quit [Ping timeout: 264 seconds]
<shevy>
huh
jerius has joined #ruby
<ght>
gonna try converting them to string before passing to method, then to integer within method, performing changes, then converting them back to string before the method ends
<ght>
unless there's some operation in ruby to tell integers to become "real" objects akin to strings
<shevy>
integer objects behave in ruby only the way they behave
codefo has quit [Ping timeout: 264 seconds]
<ght>
so there's no way to change that behavior, got it
<exgf>
lol
devoldmx_ has quit [Remote host closed the connection]
<ght>
Thank you for the assistance.
<shevy>
you would normally assign to an @instance_variable
<shevy>
and use query methods to return their state back to the outside world
<shevy>
if it is an important variable that is
_Andres has quit [Quit: My Mac Pro has gone to sleep. ZZZzzz…]
<ght>
Example of such?
renderful has joined #ruby
gfawcettpq has quit [Ping timeout: 240 seconds]
<shevy>
class Foo; def initialize; @bla = nil; end; def make_me_coffee; @bla = 'black carabino coffee'; return @bla; end; end
lrocknrolmarc has quit [Ping timeout: 244 seconds]
<shevy>
now you have two - a return variable, and storage in an @instance variable. on top of that you can add the reader method, like by using: attr_reader :bla
renderful has quit [Remote host closed the connection]
thumpba has quit [Remote host closed the connection]
thumpba has joined #ruby
codefo has joined #ruby
renderful has joined #ruby
<ght>
god damnit, this isn't working
CustosL1men has joined #ruby
CustosL1men has quit [Changing host]
CustosL1men has joined #ruby
<ght>
Yes I know, like I said, I don't have time to redesign all my return statements
<ght>
I need this done in like 5 minutes
<ght>
hrist.
<ght>
Christ*
wolf4ood has joined #ruby
<ght>
why in the fuck
dionysus69 has joined #ruby
<shevy>
k 5 minutes is over
klmlfl_ has quit [Remote host closed the connection]
tlarevo has joined #ruby
<exgf>
Time.now.is_a? MagicTime
Aeoxic has quit [Quit: Leaving]
tlarevo_ has quit [Ping timeout: 256 seconds]
thumpba has quit [Ping timeout: 244 seconds]
<Mon_Ouie>
Integers and strings behave in exactly the same way when you pass them to a method and make changes to them
<Mon_Ouie>
Or they did, back when it was possible to modify integers in some ways
<arrubin>
Modify integers?
<arrubin>
5.inc! ?
<Mon_Ouie>
No, but you used to be able to change their instance variables
pwnz0r has quit [Remote host closed the connection]
jimms has quit [Remote host closed the connection]
tubuliferous has joined #ruby
last_staff has quit [Read error: Connection reset by peer]
mjuszczak has joined #ruby
Jackneill has quit [Remote host closed the connection]
Zamyatin has joined #ruby
recurrence has joined #ruby
paulfm has joined #ruby
nanoyak has joined #ruby
Zamyatin has quit [Max SendQ exceeded]
<waxjar>
are there any serious problems with rexml (from the standard library)?
Zamyatin has joined #ruby
sambao21 has quit [Quit: Computer has gone to sleep.]
Musashi007 has quit [Quit: Musashi007]
tuelz has joined #ruby
<rpag>
there were a couple of DoS vulnerabilities related to rexml a while ago but they should be fixed if you're up to date
yfeldblu_ has joined #ruby
silkfox has quit [Quit: WeeChat 0.4.3]
freerobby has quit [Quit: Leaving.]
Zamyatin has quit [Client Quit]
renderfu_ has joined #ruby
yfeldblum has quit [Ping timeout: 265 seconds]
silkfox has joined #ruby
codefo has quit [Ping timeout: 245 seconds]
sevvie has joined #ruby
blackmesa has joined #ruby
renderful has quit [Ping timeout: 244 seconds]
meschi__ has joined #ruby
metadave has quit [Ping timeout: 255 seconds]
sevvie has quit [Read error: Connection reset by peer]
renderfu_ has quit [Read error: Connection reset by peer]
Pupeno has joined #ruby
renderful has joined #ruby
ghr has joined #ruby
cvtsx1 has quit [Quit: Leaving]
SilkFox_ has joined #ruby
shock_one has quit [Remote host closed the connection]
Zamyatin has joined #ruby
Pupeno_ has quit [Ping timeout: 265 seconds]
_djbkd has quit [Remote host closed the connection]
<zenspider>
waxjar: memory. it's horrible. use nokogiri
<zenspider>
also speed, but that's secondary
Zamyatin has quit [Max SendQ exceeded]
postmodern has joined #ruby
malcolmva has quit [Quit: Leaving]
malcolmva has joined #ruby
sambao21 has joined #ruby
Zamyatin has joined #ruby
<waxjar>
ah, i see. i just need to extract some titles from the <title> elements in HTML documents :/ i've been using nokogiri so far but it's annoying compiling, etc.
giuseppesolinas has joined #ruby
pengin has joined #ruby
ta_ has joined #ruby
SilkFox_ has quit [Ping timeout: 245 seconds]
ghr has quit [Ping timeout: 265 seconds]
<waxjar>
i'll see hot bad rexml is memory-wise and check out oga otherwise
tlarevo has joined #ruby
konsolebox has quit [Quit: Leaving]
blizzy has quit [Ping timeout: 255 seconds]
sambao21 has quit [Ping timeout: 250 seconds]
sevvie has joined #ruby
<zenspider>
waxjar: nokogiri compiling is annoying? it should be a total non-issue
ta_ has quit [Ping timeout: 265 seconds]
<zenspider>
literally: `gem install nokogiri` or `bundle`. nothing more
dc__ has quit [Remote host closed the connection]
DadoCe has joined #ruby
kl has joined #ruby
mjuszczak has quit []
<waxjar>
i run this app on a supercheap vps with only 128MB of memory, it just hangs when compiling nokogiri.
dman777_alter has quit [Quit: Lost terminal]
Junaos_ is now known as Junaos
valeriansaliou has joined #ruby
<waxjar>
also, this stuff: WARNING: Nokogiri was built against LibXML version 2.9.2, but has dynamically loaded 2.8.0
Junaos has quit [Changing host]
Junaos has joined #ruby
<zenspider>
waxjar: which means you're not installing it the way I said you should
lw has joined #ruby
<zenspider>
because nokogiri vendors its own libxml for exactly that reason
<zenspider>
if you're not using it, you told it not to
sinequanon has joined #ruby
sinequanon has quit [Client Quit]
bluOxigen has quit [Ping timeout: 240 seconds]
<waxjar>
i installed that one a few minutes ago, a regular gem install. it is an older version though (1.6.1)
sinkensabe has quit [Remote host closed the connection]
Rahul_Roy_ has quit [Quit: Connection closed for inactivity]
jimms has joined #ruby
DadoCe has quit [Ping timeout: 265 seconds]
Takle has quit [Remote host closed the connection]
<zenspider>
I don't think that's THAT old... need to look
wallerdev has joined #ruby
<zenspider>
oh wow. 2013-12-14
<zenspider>
much older than I thought
_djbkd has joined #ruby
valeriansaliou has quit [Ping timeout: 265 seconds]
ta_ has joined #ruby
Nogbit has joined #ruby
<zenspider>
well... 99% of the time, you make your own pain. if you want to run rexml on a machine with so little memory that you can't compile nokogiri... so be it.
nanoyak has quit [Remote host closed the connection]
Zamyatin has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
FelixF has joined #ruby
<waxjar>
i don't necessarily want to, just thought it might be easier :)
nanoyak has joined #ruby
alicanyilmaz has joined #ruby
<alicanyilmaz>
there is a website which uses https, It has login authendication, i can login it with http parameters like https://foo.com?id=foo&pass=fooo when logged in there is another url which contains the http which i want to get, i will use the http in a mobile app
codefo has joined #ruby
<alicanyilmaz>
how can i do it ?
cvtsx has joined #ruby
mois3x has quit [Quit: mois3x]
<jhass>
mechanize
ta_ has quit [Ping timeout: 250 seconds]
sambao21 has joined #ruby
<alicanyilmaz>
jhass: i need to do it in swift with httpclient
fabrice31 has joined #ruby
alicanyilmaz has quit [Quit: alicanyilmaz]
<jhass>
bye
sambao21 has quit [Client Quit]
Zamyatin has joined #ruby
nanoyak has quit [Remote host closed the connection]
commmmodo has joined #ruby
bradland has quit [Quit: bradland]
sevvie has quit [Read error: Connection reset by peer]
Macaveli has joined #ruby
blackmesa has quit [Quit: WeeChat 1.0.1]
elaptics is now known as elaptics`away
fabrice31 has quit [Ping timeout: 244 seconds]
nanoyak has joined #ruby
bronson has quit [Remote host closed the connection]
phutchins has quit [Ping timeout: 245 seconds]
giuseppesolinas has quit [Quit: This computer has gone to sleep]
St_Marx has quit [Remote host closed the connection]
Zamyatin has quit [Ping timeout: 265 seconds]
troulouliou_dev has joined #ruby
St_Marx has joined #ruby
VictorBjelkholm has quit [Quit: Leaving]
sevvie has joined #ruby
jollyirc has quit [Ping timeout: 255 seconds]
Macaveli has quit [Ping timeout: 265 seconds]
patrick99e99 has joined #ruby
fantazo has joined #ruby
sambao21 has joined #ruby
giuseppesolinas has joined #ruby
bronson has joined #ruby
icebourg has quit [Ping timeout: 244 seconds]
<zenspider>
jhass: hah!
sinkensabe has joined #ruby
giuseppesolinas has quit [Client Quit]
econerd4ever has quit [Remote host closed the connection]
shuber_ has joined #ruby
econerd4ever has joined #ruby
icebourg has joined #ruby
Zamyatin has joined #ruby
codefo has quit [Read error: Connection reset by peer]
freerobby has joined #ruby
econerd4ever has quit [Remote host closed the connection]
pengin has quit [Remote host closed the connection]
econerd4ever has joined #ruby
spyderman4g63 has joined #ruby
evanjs_ has quit [Remote host closed the connection]
sargas has quit [Quit: This computer has gone to sleep]
pengin has joined #ruby
evanjs has joined #ruby
Zamyatin has quit [Max SendQ exceeded]
Hijiri has quit [Ping timeout: 250 seconds]
Zamyatin has joined #ruby
FelixF has quit [Ping timeout: 246 seconds]
sargas has joined #ruby
jheg has quit [Quit: jheg]
chrishough has joined #ruby
Zamyatin has quit [Max SendQ exceeded]
Zamyatin has joined #ruby
shuber_ has quit [Remote host closed the connection]
ddd has quit [Ping timeout: 255 seconds]
Zamyatin has quit [Max SendQ exceeded]
pengin has quit [Ping timeout: 245 seconds]
yfeldblu_ has quit [Remote host closed the connection]
evanjs has quit [Ping timeout: 244 seconds]
Zamyatin has joined #ruby
towski_ has quit [Read error: Connection reset by peer]
josephndenton has quit [Ping timeout: 245 seconds]
towski_ has joined #ruby
phead has joined #ruby
phead has left #ruby [#ruby]
Pupeno_ has joined #ruby
Zamyatin has quit [Max SendQ exceeded]
paulfm has quit [Quit: Zzzzz...]
Zamyatin has joined #ruby
j2p2 has quit [Ping timeout: 245 seconds]
Pupeno has quit [Ping timeout: 245 seconds]
x1337807x has joined #ruby
aclearman037 has quit [Quit: I'm out!]
commmmodo has quit [Quit: commmmodo]
<ght>
Besides strings, is here any other variable type in Ruby that will retain a value if passed to and changed within a method?
<ght>
Without having to have the method return the variable itself?
commmmodo has joined #ruby
Takle has joined #ruby
charliesome has joined #ruby
<jhass>
mmh, that's not the right way to think about it
<ght>
What is the right way to think about it?
<jhass>
everything in ruby is an object
<jhass>
strings are too
<jhass>
arrays are, numbers are, everything
sinkensabe has quit [Remote host closed the connection]
<ght>
Then why can I pass trings to methods as parameters, and append data to them within the method, and those changes are kept after the method has finished execution?
<jhass>
variables are references to an object
chipotle_ has quit [Quit: cheerio]
sambao21 has quit [Quit: Computer has gone to sleep.]
<jhass>
you pass a reference to a String object
<mozzarella>
ght: it modifies the object itself, same for everything
<ght>
But if I do the same to an integer, those changes are not kept
whomp has quit [Ping timeout: 256 seconds]
jeanlinux has quit [Ping timeout: 255 seconds]
<jhass>
because Fixnums don't provide methods that change the object
<ght>
if I pass the integer as a parameter and make changes to it within the method, once control returns to the main app the integer reverts to its original value
shuber_ has joined #ruby
<ght>
whereas the string does not
Zamyatin has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<ght>
why is that?
<jhass>
and that's why we call them immutable in ruby
ta_ has joined #ruby
<jhass>
mainly because of performance
<mozzarella>
you can't mutate a number
<ght>
ok
thumpba has quit [Remote host closed the connection]
<mozzarella>
methods just return new objects
<jhass>
not necessarily new ones
decoponyo has quit [Read error: Connection reset by peer]
<ght>
I've even tried creating a string instead of an integer, passing it to the method, converting it to an integer with to_i, making changes, then converting it back with to_s and it still doesn't retain the value
roolo has joined #ruby
<jhass>
of course not
<jhass>
#to_i creates a new object
<jhass>
and so does #to_s
sinkensabe has joined #ruby
sankaber has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<jhass>
it's not the same obejct anymore
decoponio has joined #ruby
<ght>
I've also tried utilizing placeholders, like passing a string, assigining an integer the value of string.to_i, making the changes to that temp variable, then converting that temp variable to a string with to_s and assigning the original string parameter this value
<ght>
hmm, ok
Parker0 has joined #ruby
_djbkd has quit [Remote host closed the connection]
<jhass>
it's hard to give any kind of sane advice if you stay that vague for your usecase
<ght>
Then how come, if I pass a string, and perform no to_i cocnversion on it, just leave it as is, and simply assign it the value of another variable.to_s? And the string just still remains the same
<jhass>
but there's the concept of simple stuff like a Box class
<ght>
Anyway.
<ght>
I'll just rewrite my method returns
<jhass>
yeah, that sounds better
omosoj has quit [Ping timeout: 255 seconds]
tuelz has quit [Ping timeout: 245 seconds]
<jhass>
I couldn't follow you on the last one
Kricir has quit [Remote host closed the connection]
_djbkd has joined #ruby
<ght>
is it acceptable to return -1 ?
<ght>
for a method?
<ght>
I assume so
<jhass>
if you like C a lot
thumpba has joined #ruby
<jhass>
in ruby we generally return nil or a symbol for special values
renderful has quit [Remote host closed the connection]
<pontiki>
moreover, i very much dislike side-effect changes to object passed in
gkra has quit [Ping timeout: 272 seconds]
jottr has joined #ruby
shuber_ has quit []
Ankhers has quit [Ping timeout: 250 seconds]
gkra has joined #ruby
rbennacer has quit [Ping timeout: 245 seconds]
Zamyatin has quit [Client Quit]
livingstn has quit []
whomp has joined #ruby
SilkFox_ has quit [Ping timeout: 264 seconds]
thoughnut has quit [Quit: leaving]
spyderman4g63 has quit []
ta_ has joined #ruby
teddyp1cker has joined #ruby
Zamyatin has joined #ruby
xfz has quit [Ping timeout: 245 seconds]
klmlfl_ has joined #ruby
treehug88 has quit []
_djbkd has joined #ruby
<apeiros_>
+1 @pontiki
thumpba has quit [Remote host closed the connection]
<apeiros_>
mutating arguments is IMO generally bad style and should be avoided
<apeiros_>
(applies to ruby and OO languages which work similarly as ruby)
maletor has joined #ruby
DadoCe has joined #ruby
treehug88 has joined #ruby
<pontiki>
recently i forgot that that happens, and was modifying a hash of options, feeling secure that it wouldn't change outside, which of course, as soon as i saved the file my test failed
ta_ has quit [Ping timeout: 265 seconds]
<pontiki>
*bonk*
Zamyatin has quit [Client Quit]
teddyp1cker has quit [Ping timeout: 256 seconds]
keen__________23 has quit [Read error: Connection reset by peer]
<pontiki>
or, as it goes, "boot to the head"
klmlfl has quit [Ping timeout: 256 seconds]
zorak8 has joined #ruby
lw has quit [Quit: s]
Fusl has quit [Remote host closed the connection]
Aswebb_ has quit [Remote host closed the connection]
whomp has quit [Ping timeout: 264 seconds]
behrz has quit [Quit: Leaving]
keen__________23 has joined #ruby
DadoCe has quit [Ping timeout: 245 seconds]
Fusl has joined #ruby
valeriansaliou has quit [Ping timeout: 265 seconds]
pengin has joined #ruby
jasonmit has joined #ruby
freerobby has quit [Quit: Leaving.]
allcentury has quit [Ping timeout: 240 seconds]
tuelz has joined #ruby
_djbkd has quit [Remote host closed the connection]
whomp has joined #ruby
mengu has quit [Remote host closed the connection]
Zamyatin has joined #ruby
Zamyatin has quit [Remote host closed the connection]
mengu has joined #ruby
mengu has quit [Changing host]
mengu has joined #ruby
doodlehaus has quit [Remote host closed the connection]
ta_ has joined #ruby
shellfu is now known as shellfu_afk
x1337807x has quit [Ping timeout: 256 seconds]
x1337807x has joined #ruby
kamilc__ has quit [Ping timeout: 244 seconds]
_djbkd has joined #ruby
brb3 has quit [Quit: <.<]
ta_ has quit [Ping timeout: 244 seconds]
skj3gg has joined #ruby
mengu has quit [Ping timeout: 264 seconds]
silkfox has quit [Ping timeout: 245 seconds]
segfalt has joined #ruby
x1337807x has quit [Client Quit]
joonty has quit [Quit: Leaving]
Spami has joined #ruby
nanoyak has quit [Remote host closed the connection]
nanoyak has joined #ruby
n3phos has quit [Quit: ChatZilla 0.9.91.1 [Firefox 34.0/20141125180439]]
lemur has joined #ruby
duncan_ has joined #ruby
pengin has quit [Remote host closed the connection]
Parker0 has quit [Ping timeout: 244 seconds]
renderful has joined #ruby
pengin has joined #ruby
x77686d has joined #ruby
duncannz has quit [Ping timeout: 256 seconds]
jottr has quit [Ping timeout: 244 seconds]
mostlybadfly has joined #ruby
lemur has quit [Ping timeout: 265 seconds]
thegrid__ has joined #ruby
<thegrid__>
hello, can anyone tell me what a single "8
<thegrid__>
a single "*"
<thegrid__>
what the heck is it?
fryguy9 has quit [Quit: Leaving.]
Soda has quit [Remote host closed the connection]
<pontiki>
in what context?
bradland has joined #ruby
crueber has quit [Quit: Leaving.]
jack_rabbit has quit [Ping timeout: 250 seconds]
<godd2>
thegrid_ a single * can be a few different things. The most common is multiplication, but I doubt you'd ask about that
<apeiros_>
it's a character. better answer with better question ;-)
nanoyak has quit [Quit: Computer has gone to sleep.]
<godd2>
another is called "splat" which can exlode a list of things
treehug88 has quit []
<godd2>
for example, [*1..5] will turn into [1, 2, 3, 4, 5]