<Devanon>
I have a dictionary file with 3 million strings of random letters. Given a string, my program should output all the anagrams contained in the dictionary. Actually I am processing the dictionary file and storing everything in a hash (written to a JSON file on program close to avoid processing it every time).
freerobby has quit [Quit: Leaving.]
<Devanon>
Instead of parsing the JSON file into the hash I was thinking to use SQLite. Any other idea?
combusean has quit [Ping timeout: 265 seconds]
<AntelopeSalad>
sqlite wouldn't be a bad idea for this use case
freerobby has joined #ruby
rm__ has quit [Remote host closed the connection]
rm__ has joined #ruby
danshultz has quit [Ping timeout: 245 seconds]
<Devanon>
I will try it
robbyoconnor has joined #ruby
djbkd has joined #ruby
aantix has quit [Quit: aantix]
x1337807x has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
rm__ has quit [Ping timeout: 245 seconds]
poikon_ has quit []
djbkd has quit [Client Quit]
supermarin has joined #ruby
nateberkopec has joined #ruby
ascarter has quit [Ping timeout: 276 seconds]
MatthewsFace has joined #ruby
eyeamaye has joined #ruby
tjr9898 has joined #ruby
<eyeamaye>
anybody know why this is failing on line 3? *
<centrx>
How are you getting three variables from that
<eyeamaye>
InfraRuby, that doesn't work
<centrx>
ah it's not Array#partition
<eyeamaye>
can't convert Symbol to String (Symbol#to_str gives NilClass) (TypeError)
<samg_>
I have a class that includes Enumerable. I noticed that I can't splat instances of that type to destructure them. Instead I need to explicitly call .to_a on it first. Doesn't it seem like splat should work on any enumerable?
ephemerian has quit [Remote host closed the connection]
nari has quit [Ping timeout: 258 seconds]
kitak has quit [Remote host closed the connection]
kitak has joined #ruby
<eyeamaye>
i'd prefer to split into an array
<eyeamaye>
but
<InfraRuby>
eyeamaye: what doesn't work? pastie?
<centrx>
eyeamaye, That is something messed up with your m variable then
<eyeamaye>
when i try and do that, i get error 2 for 1
<InfraRuby>
line 7?
<InfraRuby>
remove to .to_sym
cj3kim has quit [Remote host closed the connection]
<InfraRuby>
the*
MatthewsFace has quit [Ping timeout: 245 seconds]
<samg_>
I wonder how rails makes it possible to splat ActiveRecord::Relation objects.
<shevy>
eyeamaye oh no, 5% may be useful and legitimate reason
<shevy>
for instance, I use it in my (super incomplete) ruby mud to simulate LPC behaviour of objects
<shevy>
features just come at a price
Nukepuppy has quit [Ping timeout: 258 seconds]
<shevy>
many years ago I was delegating non existing methods to other classes
<shevy>
at the third delegation, I no longer understood what was going on when I tried to fix a bug a year later in that project
<ponga>
altho I really the arts of ruby, I told my friend to try out JS for his first time in life learning programming
<shevy>
ack
<shevy>
why did you not tell him to php
<shevy>
or not just to simply die ponga
<ponga>
why lol i think JS is simple enough and yet holds essence
<shevy>
the core of ruby is very simple
redondos has quit [Excess Flood]
crzrcn has joined #ruby
<ponga>
i know but it doesn't for-loop and etc
Oog has quit []
redondos has joined #ruby
<shevy>
ruby has the for loop
<ponga>
the style is very different
r_rios has quit [Quit: No Ping reply in 180 seconds.]
<ponga>
I think JS was good recommendation
<shevy>
of course
<shevy>
you recommended it
<shevy>
it must be good
<shevy>
:-)
rm__ has quit [Ping timeout: 250 seconds]
<shevy>
you would not recommend a bad language would you ;)
danshultz has quit [Ping timeout: 252 seconds]
crucify_me has joined #ruby
<ponga>
I was scared of what he'd say after learnt basic ruby then looked at source codes of JAVA, C++, etc
<ponga>
he might scream and never gets out of his room
robbyoconnor has quit [Excess Flood]
r_rios has joined #ruby
wald0 has joined #ruby
<shevy>
well
robbyoconnor has joined #ruby
<shevy>
java and C++ look semi similar in style
fgo has joined #ruby
<shevy>
int main() {
<shevy>
return 42;
<shevy>
}
danshultz has joined #ruby
<shevy>
then you have some extra verbosity like perhaps public or private
<shevy>
sometimes perhaps <bla> templates
dima_ has quit [Remote host closed the connection]
<Hytosys>
final absolute holy shit public static void main() { ... }
<ponga>
I think learning ruby for the first time in programming is too good, perhaps
<shevy>
hehe
<crucify_me>
hi when I was using amend-line in pry to correct a typo, I somehow got bumped out of the prog. How do you rerun code in pry without retyping the whole prog?
<InfraRuby>
Hytosys: don't need final there
<ponga>
puts "hello world" and then you see this public void static main(String[] args) { balh blah
<Hytosys>
I know ;)
deens has quit [Remote host closed the connection]
<shevy>
yes, extra verbosity
sputnik13 has quit [Quit: My Mac Mini has gone to sleep. ZZZzzz…]
<Hytosys>
the verbosity has its own charm, much like objective-c
<shevy>
I think it is a language that aims to satisfy the parser much more than the human eye
dima_ has joined #ruby
crzrcn has quit [Client Quit]
<Hytosys>
yeah
<ponga>
from exprience i had when i learn JS, i think it was simple enough yet held that C-style of looks
<ponga>
its why i recommended it to my friend
samg_ has quit [Quit: leaving]
<shevy>
but your friend would not know C-style
<Devanon>
crucify_me: I am not sure about your question, but... hist --replay init_line..end_line?
<ponga>
well if he gets familiar with C style i thought he could handle many things after then
<InfraRuby>
Hytosys: oh, and absolute holy shit is invalid
<shevy>
now you primed him for his future java career, he will love that style ;-)
<crucify_me>
oh all in one command Devanon ? thanks
<Hytosys>
InfraRuby: yeah it's been a few years...
deens has joined #ruby
<Devanon>
crucify_me: :)
jamto11 has joined #ruby
<ponga>
my first language was java yet i much prefer ruby
<ponga>
'tis so pretty language
danijoo has quit [Read error: Connection reset by peer]
<ponga>
well him learning JS is almost a hobby too!
<shevy>
eyeamaye when I find such code I happily eliminate it, then I must try to identify the person in reallife
<ponga>
wth
nateberkopec has quit [Quit: Leaving...]
<ponga>
eyeamaye, i'm a noob but i could say that code looks a bit.. um
<ponga>
i dunno
crzrcn has joined #ruby
dapz has joined #ruby
<Hytosys>
does anyone know why protected/private in ruby are so different than say, java and c++?
<ponga>
because it is different?..
<shevy>
Hytosys ruby is always very dynamic
Devanon has quit [Quit: WeeChat 0.4.3]
<shevy>
Hytosys for private and protected to work as-is in java, ruby would have to lose a lot of its flexibility
<ponga>
good work shevy! i should give you a cookie
<eyeamaye>
ponga, what's wrong with the code?
<Hytosys>
I just find it interesting that `private` methods are accessible in subclasses whereas in java/c++ that would be `protected`
<crucify_me>
anyone know what to do when pry crashes ad nauseum?
<shevy>
Hytosys for instance, .class_eval, the other evals, method_missing, .send and so forth
<ponga>
eyeamaye, never mind im a noob , i just thought it looked messy
<Hytosys>
hmm, can you elaborate a bit shevy? I'm familiar with those methods
<shevy>
crucify_me sure! go back to simplicty. irb ;-)
x77686d has quit [Quit: x77686d]
<eyeamaye>
ponga, lol i wasn't being serious. it's parody code. shevy told me not to use def missing_method
<eyeamaye>
so i didn't use def missing_method
<shevy>
Hytosys well we can redefine every method in ruby at runtime
<Hytosys>
right
SCommette has quit [Quit: SCommette]
<ponga>
ok lol
<eyeamaye>
i used self.class.send(:define_method, :method_missing)
nari has joined #ruby
narcan has joined #ruby
<shevy>
so I should be able to really change any @ivars you try to protect away from me by redefining what you give me
<unholycrab>
any idea how i can put a command like `diff <(foo) <(bar)` into ruby? it says "sytax error near unexpected token `('"
<Hytosys>
right, makes sense..
<crucify_me>
really shevy you don't like pry? I' m trying to learn ruby using pry. I read to install rubinius and play with it in pry as a good way to learn ruby.
<eyeamaye>
has anybody experimented with different ways of invoking missing_method?
<shevy>
unholycrab what is the string version of that command?
<unholycrab>
i tried escaping the < and ( characters with a \, but i gto the same result
<Hytosys>
thanks shevy
<shevy>
crucify_me I have no problem with pry, I just don't use it
<unholycrab>
shevy: the string version?
<shevy>
unholycrab yeah, for instace: "ls --help" <--
<shevy>
*instance
<unholycrab>
oh its two mongoexport commands
<eyeamaye>
because apparently missing_method is triggered whenever an object receives a message it doesn't know what to do
<shevy>
ok unholycrab but there must be a string version you give to your shell that works
<unholycrab>
and if i copy the exact command it gives in the error output to the terminal, it will work
<unholycrab>
yes
<shevy>
so when that command works, the same command will work in ruby, via ``
<Riking>
How do I iterate an Enumerable with special behavior for the first and last?
<shevy>
unholycrab let me try a simple command via < redirect
dik_dak has quit [Quit: Leaving]
senayar_ has joined #ruby
<unholycrab>
diff <(mongoexport --host X.compute.amazonaws.com --db X --collection system.indexes --csv --fields ns,key | sed -e 's/X/db/' | sort) <(mongoexport --host X.amazonaws.com --db X --collection system.indexes --csv --fields ns,key | sed -e 's/X/db/' | sort)
<unholycrab>
something like that
<shevy>
unholycrab, this here works, so at least > redirectos work system "echo yo > hi"
<shevy>
I assume < means to read in from a file?
x1337807x has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
maletor has quit [Quit: Computer has gone to sleep.]
x77686d has joined #ruby
senayar_ has quit [Remote host closed the connection]
<shevy>
the author of that is here btw Mon_Ouie
<shevy>
ponga no joke
<ponga>
ok
<crucify_me>
thanks shevy something odd happened. I installed rubinius and all my pry related gems disappeared. then I uninstalled rubinius and they returned to the list. weird.
mansi has joined #ruby
<shevy>
hehe
weaksauce has quit [Ping timeout: 276 seconds]
ghr has quit [Ping timeout: 240 seconds]
JBreit has left #ruby ["Leaving"]
samuel02 has quit [Ping timeout: 252 seconds]
<crucify_me>
is it valid to try to learn ruby by looking at rubinius methods in pry?
afreidah2 has quit [Ping timeout: 246 seconds]
r_rios has quit [Ping timeout: 240 seconds]
<shevy>
sounds as if you want to have everything at the same time :-)
<shevy>
now only add rails on top of that stack and you are ready to go!
amclain has joined #ruby
Hytosys has quit [Read error: Connection reset by peer]
Hytosys has joined #ruby
rook2pawn has quit [Remote host closed the connection]
baroquebobcat has quit [Ping timeout: 276 seconds]
sailias has quit [Ping timeout: 252 seconds]
<eyeamaye>
shevy, how can i break these lines out of the send method? and use ruby's standard syntax http://pastie.org/9083564#5-6
ponga has quit [Ping timeout: 265 seconds]
<eyeamaye>
or is it not possible with what im doing
<shevy>
ewwww
nateberkopec has joined #ruby
<shevy>
the problem is not only do you attempt to outsmart yourself by combining send and method_missing and define_method all at the same time
<shevy>
you also do it in ways that makes it hard to understand what is going on
<shevy>
for instance:
<shevy>
self.class.send(('hi_' + v[1]).to_sym)
<shevy>
if I ask you for the name of the method
<shevy>
and display it to the user
<shevy>
what is the name?
diegoviola has joined #ruby
<eyeamaye>
hi_*
Hanmac1 has joined #ruby
<shevy>
that is not a valid name
<eyeamaye>
because it's only valid when there is input
<shevy>
sure but it has a valid name then
<shevy>
and I wanted to know that valid name
<shevy>
you even use ('hi_' + v[1]).to_sym twice
<eyeamaye>
ah good point
<shevy>
I don't like this style of coding
<shevy>
it does not follow the simplest possible way
Lewix has joined #ruby
osvico has quit [Ping timeout: 258 seconds]
benzrf|offline is now known as benzrf
<shevy>
it is code that does not intent to stay simple
osvico has joined #ruby
jamto11 has quit [Remote host closed the connection]
Hanmac has quit [Ping timeout: 265 seconds]
weaksauce has joined #ruby
pu22l3r has quit [Remote host closed the connection]
<Hytosys>
shevy I agree, but how would you address this specific issue? would you just shove ('hi_' + v[1]).to_sym into a variable or make it a method?
<eyeamaye>
shevy, i'm just playing with concepts
s_e has quit [Ping timeout: 250 seconds]
afex has quit [Ping timeout: 240 seconds]
<eyeamaye>
i think i can break it apart myself now
bricker`LA has quit [Ping timeout: 245 seconds]
<shevy>
Hytosys yes, variable
handlename has joined #ruby
<Hytosys>
missing_methods always grow to be too many lines in length for me :(
<Hytosys>
I find it hard to prevent
s_e has joined #ruby
crystal77 has quit [Quit: Computer has gone to sleep.]
<shevy>
eyeamaye btw are you sure you want .capitalize! method?
<agent_white>
So... take this VERY lightly... but in that way that you don'
<Hytosys>
oh ok ok
cashnguns has quit [Remote host closed the connection]
<agent_white>
don't describe the problem, but what you want out of it... is Haskell like PHP?
<agent_white>
In that sense?*
<benzrf>
>don't describe the problem, but what you want out of it...
<benzrf>
yes
<benzrf>
but how is that like php?
<Hytosys>
lmao
<Hytosys>
sounds like the terse opposite of PHP to me
<eyeamaye>
wait so.
<agent_white>
PHP you ask what data sets you want back, not how to retreive them... the way-of-retreival is built in.
<benzrf>
ummmm
<benzrf>
>_>
<eyeamaye>
what's the point of a purely functional language if you can write purely functional code in other languages that are faster?
JoeGaudet has quit [Quit: Computer has gone to sleep.]
<benzrf>
i suppose so TheMoonMaster
thomasxie has joined #ruby
<benzrf>
*thyen
<agent_white>
"Take this LIGHTLY"
<benzrf>
eyeamaye: because the language can then do MAGIC~
fgo has joined #ruby
<agent_white>
benzrf: I've never touched Haskell. I was told to, but I don't feel my young-developer mind should wander that way quite yet.
<benzrf>
eyeamaye: for example safe pervasive lazy eval
<benzrf>
agent_white: dude im 17 im sure u can handle it
danshultz has quit [Remote host closed the connection]
<Hytosys>
agent_white: what did you mean by way-of-retrieval is built in?
jcromartie has joined #ruby
<wallerdev>
erlang has an optimized reverse function
<eyeamaye>
lol
<agent_white>
benzrf: Pfft, it's not AGE (I'm 23) ;) It's just that I need to really be like "dayum I know OOP like I POOP." before going to functional shit.
<benzrf>
kk
jason_ has joined #ruby
danshultz has joined #ruby
<wallerdev>
im old as well agent_white :(
<eyeamaye>
wallerdev, care to elaborate?
<eyeamaye>
because that sent made absolutely no sense to me
<eyeamaye>
"optimized reverse functions1!!1"
<wallerdev>
eyeamaye: in erlang you get the results backwards because of the functional nature of things, so it has a very optimized reverse function
afex has joined #ruby
cj3kim_ has quit [Ping timeout: 245 seconds]
<agent_white>
Hytosys: As in, you say "SELECT X WHERE X > Y"... and you get data. Not "while x < TABLE.length... DO STUFF."
<Hytosys>
I think you meant SQL not PHP :)
<agent_white>
SQL!
<agent_white>
Hytosys: Wins!
<eyeamaye>
do u give it the output and it returns the params?
<Hytosys>
in that case you're right
vlad_starkov has quit [Ping timeout: 258 seconds]
<wallerdev>
not too important, just thought id throw that fact out there since i thought it was interesting and ill never be able to really use that knowledge in a relevant way
mattmcclure has quit [Quit: Connection closed for inactivity]
lmickh has joined #ruby
<agent_white>
Hytosys: Wierd. Well Haskell sounds cool but my brain needs to be less mushy to really grasp it.
goganchic has quit [Quit: Computer has gone to sleep.]
m104 has joined #ruby
deens has quit [Remote host closed the connection]
<InfraRuby>
Le_Ruby_Newbie: you need to downcase *every* time
<benzrf>
Le_Ruby_Newbie: gl m8
<InfraRuby>
read and write
<benzrf>
hashes are hash tables
<benzrf>
keys are hashed
deens has joined #ruby
<Riking>
How do I loop over an Enumerable with special behavior for the last element?
<benzrf>
Riking: loop over all but the last, then do the last separately
<benzrf>
maybe
goganchic has joined #ruby
<InfraRuby>
Le_Ruby_Newbie: you could wrap each string in an object with hash and eql? methods
<Riking>
maybe I should make an each_with_firstlast method
freerobby has quit [Ping timeout: 258 seconds]
sdouglas has quit [Ping timeout: 258 seconds]
<Riking>
so do |item, is_first, is_last|
<benzrf>
Riking: n-no
<Riking>
ok
<benzrf>
i feel like maybe ive seen a gem for this kind of thing?
<benzrf>
i remember writing a hacky prototype of more controllable/queryable looping
gancl has joined #ruby
<Le_Ruby_Newbie>
Ok, I'm already downcasing key names as I save them, but in case there were already saved keys which are not downcased, would there be a simple way of performing a case insensitive search?
meatherly has quit [Read error: Connection reset by peer]
<benzrf>
why not just do it the latter way period
m104 has quit [Quit: bye]
<Riking>
oops
meatherly has joined #ruby
twiceaday has quit [Ping timeout: 245 seconds]
agjacome has quit [Quit: leaving]
mansi has quit [Ping timeout: 250 seconds]
<benzrf>
lol
<Riking>
aaand nope
<Riking>
it ends up as
gancl has quit [Ping timeout: 265 seconds]
<Riking>
everything and then a comma
<benzrf>
commas?
mengu has joined #ruby
mengu has quit [Changing host]
mengu has joined #ruby
lw has quit [Quit: s]
<benzrf>
ur structurin it wrong m8
<benzrf>
pass the comma as an arg to join
meatherly has quit [Remote host closed the connection]
<benzrf>
wait, does erb even work that way?
Celm has quit [Ping timeout: 258 seconds]
<Riking>
I wasn't sure
<Riking>
Actually, I'm pretty sure it doesn't
<Riking>
also I don't need to htmlsafe the comma anyways
<benzrf>
w/e i need to sleep
<benzrf>
otherwise my brain becomes poo
bluOxigen has joined #ruby
<Riking>
I successfully have it... with no commas... I think I'm rubbing against a detail of how ERB works
njection has quit []
Melpaws has joined #ruby
<Riking>
lul i'm an idiot
iamjarvo has quit [Ping timeout: 250 seconds]
samuel02 has joined #ruby
<benzrf>
ur just now realizing this?
<Riking>
don't need to style each author differently, just put the <i> around them all
<benzrf>
sorry
<benzrf>
u may want an ol bt
<benzrf>
w
<benzrf>
anyway bye
JoeGaudet has joined #ruby
<benzrf>
Nightmare:
<benzrf>
* night
<benzrf>
gluh
mengu has quit [Ping timeout: 250 seconds]
bricker`LA has joined #ruby
benzrf is now known as benzrf|offline
mr_red has quit [Ping timeout: 252 seconds]
Le_Ruby_Newbie has quit []
pu22l3r has joined #ruby
njection has joined #ruby
samuel02 has quit [Ping timeout: 240 seconds]
Solnse has quit [Quit: Leaving.]
<agent_white>
So I can't do regex for shit. What is the expression to capture all text between the delims "/" and "..." ?
tectonic has joined #ruby
<Riking>
try this: /\/\w+\.\.\./
<Riking>
\w+ is just word characters
<Riking>
change it to .*? if you need that to cross whitespace
<Riking>
(begin regex, literal slash, one or more word characters, literal ., literal ., literal ., end regex)
mr_snowf1ake has quit [Quit: Leaving]
freerobby has joined #ruby
Doppp has joined #ruby
mostlybadfly has quit [Quit: Connection closed for inactivity]
<agent_white>
Riking: Hmmm no luck there. The string is "Reading symbols from /usr/lib/liblzma.so.5...(no debugging symbols found)"... I'm just trying to snag that path name.
jlast has quit [Remote host closed the connection]
x1337807x has joined #ruby
<Riking>
oh
yacks has joined #ruby
<Riking>
try this: /(\/[\/a-zA-Z0-9 ]+)\.\.\./
<Riking>
take the first capture
freerobby has quit [Ping timeout: 245 seconds]
crzrcn has joined #ruby
Slavox is now known as Slavox|AFK
pu22l3r has quit [Remote host closed the connection]
Petit_Dejeuner has joined #ruby
SonicX has joined #ruby
<agent_white>
Riking: Nada :/
sdouglas has joined #ruby
<agent_white>
Riking: But I'm throwing regex at pry, so it's a good learning exercise :P
mr_red has joined #ruby
tvw has joined #ruby
flingbob has joined #ruby
flingbob has quit [Client Quit]
Faris has joined #ruby
<Riking>
lol
codabrink has joined #ruby
Mon_Ouie has quit [Ping timeout: 258 seconds]
<Cope>
agent_white: what's an example? you mean /...hello.../ should return hello?
ehc has quit [Quit: ehc]
Spami__ has joined #ruby
<agent_white>
Cope: "Reading symbols from /usr/lib/cmus/op/oss.so...(no debugging symbols found)" should return "/usr/lib/cmus/op/oss.so"
<rkr090>
agent_white: \/(.*)\.\.\.
vlad_starkov has joined #ruby
<rkr090>
between //
shashank_rs has joined #ruby
Slavox|AFK is now known as Slavox
<agent_white>
rkr090: Hmmm, that got it to "/usr/lib/cmus/op/oss.so...(no debugging symbols found)..."
<agent_white>
rkr090: I changed yours to \/(.*)\.\.\.\W
<rkr090>
i get "usr/lib/cmus/op/oss.so"
<agent_white>
rkr090: And got it down to "/usr/lib/cmus/op/oss.so...("
<agent_white>
Wait really?
<Cope>
agent_white: \/(?:\w+\/)+\w+\.\w+
yfeldblum has joined #ruby
<agent_white>
Cope: That did the trick! :D
aantix has joined #ruby
yfeldblum has quit [Remote host closed the connection]
vlad_starkov has quit [Ping timeout: 245 seconds]
<agent_white>
Cope: Thank you!
<agent_white>
Riking/rkr090: Thank you both for the help as well :)
yfeldblum has joined #ruby
Petit_Dejeuner has left #ruby ["Leaving"]
<Cope>
of course wrap the whole lot in () if you want it as a capture group
funktor has quit [Remote host closed the connection]
<Radar>
unholycrab: I don't understand why you're using Shellwords.escape in this context.
<xibalba>
i can use that instead as hosts: and fles
northfurr has quit [Quit: northfurr]
bluOxigen has joined #ruby
<Radar>
unholycrab: I'm going to bet that this isn't reproducing the problem you're seeing becuase you're still trying to dumb down the code too much.
funktor has joined #ruby
<xibalba>
what gem is this? i tried gem install yaml
<unholycrab>
Radar: can you ive me a hint? it sounds like you understand the problem
<Radar>
xibalba: It's built into Ruby.
<xibalba>
ah
<unholycrab>
it is reproducing the problem, in that im still seeing the problem
<Radar>
unholycrab: Whatever hint you're picking up on is false. I honestly have no idea what it is you're trying to do because your code is not reproducing the problem.
<Radar>
unholycrab: Removing the Shellwords.escape makes the code work fine.
<Radar>
!next
<helpa>
Next question, please!
sigurding has joined #ruby
<xibalba>
thanks radar, super helpful. gonna check out yaml more. i was trying a custom format (total ruby newb) and was utilizing something similar in pattern.
havenwood has quit [Remote host closed the connection]
<unholycrab>
okay. i see that its working, but i don't understand why
baweaver has quit [Ping timeout: 265 seconds]
<Radar>
unholycrab: Because the command doesn't need escaping
<Radar>
the escaping is multilating
lxsameer has joined #ruby
lxsameer has quit [Changing host]
lxsameer has joined #ruby
<zorak>
whats "super" do?
<zorak>
i have this code
<zorak>
class BullDog < Dog
<zorak>
def bark
<zorak>
end
<zorak>
end
<zorak>
super + ", GROWL"
<Radar>
zorak: !gist
<helpa>
zorak: http://gist.github.com - Put your codes online with pretty syntax highlighting and the ability to embed it into other pages.
<Radar>
zorak: Please do not post code in the channel.
<zorak>
ok
<Radar>
zorak: It calls back to Dog's bark method.
funktor has quit [Ping timeout: 240 seconds]
phansch has joined #ruby
<zorak>
I thin is call back the bark method for his parent
<Radar>
zorak: Yes.
<zorak>
but im not sure and cant fin info in the ruby page
vlad_starkov has joined #ruby
ciwolsey has quit [Ping timeout: 258 seconds]
<Radar>
whgat
budrose has joined #ruby
bluOxigen has quit [Read error: Connection reset by peer]
<unholycrab>
Radar: but my first example, puts `/bin/bash -c '/bin/ls foo'`
<unholycrab>
doesn't work
<unholycrab>
and its not escaped
<Radar>
unholycrab: !e
<helpa>
unholycrab: You have not provided enough information to debug your problem. Please provide this information: https://gist.github.com/radar/5384431
<Radar>
unholycrab: "doesn't work" isn't helpful.
<zorak>
i was trying to find it in ruby-doc
<zorak>
whats "Foo" means?
<zorak>
i see it in a lot of example codes of ruby
<Radar>
zorak: Again, second result on google for "foo"
<Radar>
unholycrab: did you read the error message?
<Radar>
unholycrab: ls: foo: No such file or directory
jlast has joined #ruby
<Radar>
unholycrab: so clearly foo does not exist as a file or directory where you're running that code.
<unholycrab>
derp. that makes sense
<Radar>
Soooooooo
terrellt has joined #ruby
<Radar>
Now is the point where you usually show us a small reproducible example of the code that is broken, we point out what's wrong, and you become happy
<xibalba>
tuff
<Radar>
xibalba: /ignore tuff
<xibalba>
tuff is spamming
<xibalba>
ok
elshaka has quit [Ping timeout: 245 seconds]
mehlah has joined #ruby
graft has quit [Ping timeout: 252 seconds]
apeiros has quit [Remote host closed the connection]
heftig has quit [Quit: Quitting]
apeiros has joined #ruby
<shevy>
Radar is the ultimate newbie trainer
kerin has joined #ruby
<shevy>
no matter how many silly questions they toss on him, he remains like a rock against the stormy weather
<Radar>
Because I remember I was a newbie once too
tungd has quit [Quit: leaving]
jlast has quit [Ping timeout: 276 seconds]
terrellt has quit [Ping timeout: 258 seconds]
agent_white has quit [Read error: Connection reset by peer]
snuffeluffegus has quit [Quit: Leaving]
tagrudev has joined #ruby
Slavox is now known as Slavox|AFK
thoraxe has joined #ruby
<xibalba>
i haven't programmed in 10 years
emaxi has joined #ruby
aspires has quit []
<kerin>
So I'm getting a "incompatible character encodings: UTF-8 and ASCII-8BIT" error when I try to cram a certain database string into my ERB template... ALL the stuff in my DB should be utf-8, and printing the strings says they're UTF-8. I've also tried encoding and force-encoding them, which hasn't helped. And just now I determined that the problem string contains a soft hyphen/U+00AD/­
apeiros has quit [Ping timeout: 265 seconds]
<kerin>
Curious how to encode that so that it doesn't make ERB cry.
<xibalba>
wow working with this YAML loader is significantly easier
FxK has quit [Quit: (I was using Polaris SE) Version: 4.2. Webpage: http://polarisse.tripod.com/. Wasted: 3 Hours 20 Minutes and 47 Seconds Online.]
agent_white has joined #ruby
<kerin>
Oh I see. (maybe.) ERB is trying to output ASCII and that's the only character in my database that doesn't convert.
klaut has joined #ruby
jeregrine has quit [Quit: Connection closed for inactivity]
Macaveli has joined #ruby
mengu has quit [Remote host closed the connection]
emaxi has quit [Ping timeout: 245 seconds]
bluOxigen has quit [Ping timeout: 250 seconds]
<Radar>
kerin: <% encoding: utf-8 %> at the top of the template doesn't stop it?
ndrei has joined #ruby
<kerin>
Radar: afraid not
<Radar>
Hm
ylluminate has quit [Ping timeout: 276 seconds]
freerobby has joined #ruby
<kerin>
stranger still, I tried copying the bad content to a different page on a whim
<kerin>
and it, uh, displays fine there
<Radar>
heh
Slavox|AFK is now known as Slavox
<Radar>
I have no idea what could cause that.
<kerin>
same.
bambuka has joined #ruby
davedev24 has quit [Remote host closed the connection]
<xibalba>
now i jsut have to check out how to handle the multiple files
<xibalba>
ah shoot i cropped the -system section
<Radar>
xibalba: It looks like you're trying to rebuild Ansible
<xibalba>
never heard of it.
dima_ has quit [Remote host closed the connection]
<xibalba>
though my idea came from using rancid at work for our cisco routers/switches
kevinykc_ has quit [Read error: Connection reset by peer]
vlad_starkov has quit [Remote host closed the connection]
<omosoj>
is it me or is ruby-doc.org not easy to read and navigate?
kevinykchan has joined #ruby
Gabri has joined #ruby
anarang has joined #ruby
<xibalba>
im just practicing. starting to learn ruby
leslie1 has quit [Read error: Connection reset by peer]
<Radar>
omosoj: Not just you.
<Radar>
xibalba: I would highly recommend using Ansible.
leslie1 has joined #ruby
<Radar>
xibalba: It's very easy to learn.
freerobby has quit [Ping timeout: 250 seconds]
ghr has joined #ruby
<Radar>
Although it's written in Python don't let that scare you off.
<xibalba>
yeah i use to do alot of php dev about 10 years ago
ws2k33 has joined #ruby
bal has joined #ruby
Gabri has quit [Client Quit]
Gabri has joined #ruby
dawkirst has quit [Remote host closed the connection]
<kerin>
Radar, to my excitement this issue seems to specifically be occurring when I also have a different long-format hyphen anywhere in the page data.
<kerin>
Which applies to this specific dataset but not the test set.
<Radar>
kerin: right
<omosoj>
Radar, is there a better site?
<Radar>
omosoj: Not that I am aware of.
havenwood has joined #ruby
<omosoj>
Should I just poke around irb or pry to get a deeper sense?
leslie2 has joined #ruby
ghr has quit [Ping timeout: 265 seconds]
leslie1 has quit [Ping timeout: 276 seconds]
<Radar>
omosoj: what are you looking for in particular?
eynj has quit [Read error: Connection reset by peer]
havenn has joined #ruby
<omosoj>
I want to see all the methods that are available.
mengu has joined #ruby
mengu has quit [Changing host]
mengu has joined #ruby
oo_ has quit [Remote host closed the connection]
<Radar>
omosoj: For what object?
oo_ has joined #ruby
<Radar>
omosoj: and to what end?
<omosoj>
Prime. I'm doing Project Euler questions and there are a few involving prime numbers. I want to know what tools are available to solve the problems.
havenwood has quit [Ping timeout: 240 seconds]
mansi has joined #ruby
AlexRussia has quit [Ping timeout: 245 seconds]
Gabri has quit []
Celm has joined #ruby
TllT has quit [Quit: Lost terminal]
Gabri has joined #ruby
havenn has quit [Remote host closed the connection]
narcan has quit [Quit: -[AppDelegate installMalware]: unrecognized selector sent to instance 0x156109c0]
<InfraRuby>
omosoj: don't just copy/paste
Gabri has quit []
<InfraRuby>
learn how it works
<xibalba>
goodnight folks
<xibalba>
ill be back
<InfraRuby>
xibalba: uh oh
jack_rabbit_ has joined #ruby
Gabri has joined #ruby
vlad_starkov has quit [Remote host closed the connection]
vlad_starkov has joined #ruby
jack_rabbit has quit [Ping timeout: 250 seconds]
vlad_starkov has quit [Read error: Connection reset by peer]
karupanerura is now known as karupa
vlad_starkov has joined #ruby
octarine has quit [Excess Flood]
Ancient has joined #ruby
octarine has joined #ruby
flowerpot_ has joined #ruby
vlad_starkov has quit [Ping timeout: 245 seconds]
flowerpot_ has left #ruby [#ruby]
dagobah has joined #ruby
havenwood has quit [Remote host closed the connection]
Spami__ has quit [Quit: This computer has gone to sleep]
SCommette has quit [Quit: SCommette]
Al__ has quit [Quit: Al__]
grzywacz has joined #ruby
Shidash has quit [Ping timeout: 265 seconds]
havenwood has joined #ruby
Martxel has joined #ruby
rvraghav93 has joined #ruby
emaxi has joined #ruby
andy__ has joined #ruby
oo_ has quit [Remote host closed the connection]
jprovazn has joined #ruby
aganov has joined #ruby
claymore has joined #ruby
emaxi has quit [Ping timeout: 276 seconds]
andy__ has quit [Ping timeout: 250 seconds]
Gabri has quit [Remote host closed the connection]
nomenkun has joined #ruby
nomenkun_ has joined #ruby
Gabri has joined #ruby
rakm has joined #ruby
ponga has joined #ruby
ponga has quit [Changing host]
ponga has joined #ruby
mweshi has quit [Quit: mweshi]
nomenkun has quit [Ping timeout: 245 seconds]
shashank_rs has joined #ruby
sdouglas has quit [Remote host closed the connection]
freerobby has joined #ruby
SonicX has quit [Remote host closed the connection]
oo_ has joined #ruby
XenoWolf has quit [Ping timeout: 264 seconds]
zigomir has joined #ruby
madb055 has quit [Ping timeout: 245 seconds]
omosoj has quit [Quit: Leaving]
havenwood has quit [Remote host closed the connection]
Melpaws has quit [Ping timeout: 240 seconds]
noop has joined #ruby
freerobby has quit [Ping timeout: 276 seconds]
LetErikTry has quit [Quit: sleep]
fabrice31 has joined #ruby
dinosaurs has quit [K-Lined]
Martxel has quit [Ping timeout: 276 seconds]
apeiros has joined #ruby
dinosaurs has joined #ruby
dinosaurs has quit [K-Lined]
crzrcn has quit [Quit: Leaving.]
ddv has quit [Changing host]
ddv has joined #ruby
dawkirst has quit [Remote host closed the connection]
mansi has joined #ruby
tectonic has quit []
Xeago has joined #ruby
vpereira_ is now known as vpereira
ponga has quit [Ping timeout: 250 seconds]
Celm has joined #ruby
mansi has quit [Ping timeout: 252 seconds]
tjr9898 has joined #ruby
ponga has joined #ruby
ponga has quit [Changing host]
ponga has joined #ruby
Celm has quit [Ping timeout: 258 seconds]
darkaer has joined #ruby
jamto11 has joined #ruby
dawkirst has joined #ruby
iamjarvo has joined #ruby
samuel02 has joined #ruby
funburn has quit [Quit: funburn]
Hytosys has left #ruby [#ruby]
Hytosys has joined #ruby
helpD has joined #ruby
jamto11 has quit [Ping timeout: 252 seconds]
agent_white has quit [Quit: goodnight]
alex88 has joined #ruby
Geniack_ has quit [Ping timeout: 258 seconds]
relix has joined #ruby
iamjarvo has quit [Ping timeout: 245 seconds]
Geniack has joined #ruby
sk87 has joined #ruby
samuel02 has quit [Ping timeout: 250 seconds]
afreidah3 has quit [Ping timeout: 240 seconds]
Xeago has quit [Remote host closed the connection]
helpD has quit [Ping timeout: 265 seconds]
timonv has joined #ruby
wethu has quit [Ping timeout: 240 seconds]
banister has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
kevinykchan has quit [Quit: Computer has gone to sleep.]
havenwood has joined #ruby
samuel02 has joined #ruby
kevinykchan has joined #ruby
shashank_rs has quit [Ping timeout: 265 seconds]
dawkirst has quit [Remote host closed the connection]
Gabri has quit []
kung has joined #ruby
banister has joined #ruby
senayar has joined #ruby
weems has quit [Read error: Connection reset by peer]
weems has joined #ruby
weems has quit [Changing host]
weems has joined #ruby
omosoj has joined #ruby
yacks has quit [Ping timeout: 245 seconds]
ahawkins has joined #ruby
fabrice31 has quit [Remote host closed the connection]
<omosoj>
In irb if I type Numeric.methods an array is printed with 99 methods. Are those methods either defined within the class array or inherited from superclasses?
emaxi has joined #ruby
crzrcn has joined #ruby
<InfraRuby>
omosoj: ye
<InfraRuby>
yes*
mengu has quit [Remote host closed the connection]
dawkirst has joined #ruby
<omosoj>
Cool, thanks
emaxi has quit [Ping timeout: 252 seconds]
<InfraRuby>
omosoj: btw, those are class methods
<InfraRuby>
maybe you want Numeric.instance_methods
ephemerian has joined #ruby
crzrcn has quit [Ping timeout: 252 seconds]
<ponga>
what was the $ dollar sign in ruby!?
<Mon_Ouie>
Global variables
<InfraRuby>
ponga: depends what follows the $
Xeago has joined #ruby
<InfraRuby>
some $ variables are local
<ponga>
it was global thanks thank
<omosoj>
InfraRuby, k. so instance methods are called on objects, class methods only on classes?
qba73 has joined #ruby
<InfraRuby>
omosoj: yes
<InfraRuby>
(a class is also an instance of Class)
<omosoj>
I feel like I'm doing something wrong: Object.methods, Numeric.methods, and Numeric.instance_methods all return 99
<InfraRuby>
omosoj: yes, those are methods you can call on those classes
<InfraRuby>
ahh.. but not the Numeric.instance_methods
St_Marx has quit [Quit: Ex-Chat]
<InfraRuby>
those are methods you can call on numeric instances
<Mon_Ouie>
Object/Numeric have the same methods because they have no class methods and they're both instances of the Class class
m0s^away is now known as m0s
<InfraRuby>
here Numeric.instance_methods has 102 elements
St_Marx has joined #ruby
<InfraRuby>
but if that's similar or equal to the number in Numeric.methods that's just a coincidence
<InfraRuby>
they're very different
flagg0204 has quit [Ping timeout: 240 seconds]
mupkoo has joined #ruby
<Mon_Ouie>
InfraRuby: How did you test that? Try ruby -e 'p Numeric.methods.size' so that no external library can be loaded
<InfraRuby>
Mon_Ouie: Numeric.methods.size == 99 but Numeric.instance_methods.size == 102
<Mon_Ouie>
omosoj: Also try instance_methods(false)/methods(false) to hide inherited methods
<ponga>
( ゚д゚)?! <- my face when looked at $#{@blance}
moritzs has joined #ruby
<ponga>
$ and # and @ all in all!?
<InfraRuby>
ponga: the dollar is just a dollar
<InfraRuby>
#{...} is interpolated
<ponga>
ah
<omosoj>
Hm..
<ponga>
ahh yeah
<ponga>
InfraRuby: you are right.. lol
<ponga>
to print something like $500
kevinykchan has quit [Quit: Computer has gone to sleep.]
<omosoj>
Is there a way to look at the code of Object and Numeric et al?
<ponga>
hey guys i got this weird spanish private msg with a link from guy named tuff, something about webcam
<ponga>
is it spam
<Mon_Ouie>
It's written in C in YARV so not really
dinoex has joined #ruby
<dinoex>
hi
nvrch has joined #ruby
olivier_bK has joined #ruby
<dinoex>
undefined method `synchronize' for #<Mutex:0x0000080137c248> (NoMethodError)
<dinoex>
anyone has seen this before? require 'thread' is present
<Mon_Ouie>
The only weird thing with it is that it's missing one letter
kerin has quit [Ping timeout: 250 seconds]
kenndel has joined #ruby
kenndel has quit [Read error: Connection reset by peer]
freerobby has joined #ruby
ahawkins has quit [Ping timeout: 240 seconds]
kenndel has joined #ruby
freerobby1 has joined #ruby
freerobby has quit [Read error: Connection reset by peer]
mikecmpbll has joined #ruby
ghr has joined #ruby
heftig has joined #ruby
xkx has joined #ruby
xkx has quit [Client Quit]
timonv has quit [Remote host closed the connection]
freerobby1 has quit [Ping timeout: 265 seconds]
yacks has joined #ruby
Al__ has joined #ruby
andikr has joined #ruby
senayar has quit [Remote host closed the connection]
klaut has quit [Remote host closed the connection]
senayar has joined #ruby
Xeago_ has joined #ruby
jackneill has joined #ruby
jackneill has quit [Changing host]
jackneill has joined #ruby
cover has joined #ruby
poikon has joined #ruby
kinginky has quit [Ping timeout: 240 seconds]
Xeago_ has quit [Remote host closed the connection]
kinginky has joined #ruby
mengu has joined #ruby
mengu has quit [Changing host]
mengu has joined #ruby
Geniack has quit [Ping timeout: 250 seconds]
samuel02 has quit [Read error: Connection reset by peer]
Melpaws has joined #ruby
ikaros has joined #ruby
ahawkins_ has quit [Ping timeout: 245 seconds]
Xeago has quit [Ping timeout: 245 seconds]
pen has quit [Ping timeout: 265 seconds]
<ponga>
I typed in 'gem install rails' into terminal and nothing shows up, does it usually take long time
akonny has joined #ruby
m0s is now known as m0s^away
<DouweM>
it can take a long time, sure, but if you've been waiting for an hour I'd try again
<DouweM>
so it depends on your "long time"
<ponga>
ah ok i only waited like 3mins
mansi has joined #ruby
<ponga>
ruby is consuming my CPU as shown in Activity monitor, i will wait
afreidah3 has joined #ruby
shashank_rs has joined #ruby
_justin has quit [Quit: _justin]
<ponga>
damn it!
<ponga>
ERROR: While executing gem ... (Gem::FilePermissionError)
<ponga>
You don't have write permissions for the /Library/Ruby/Gems/2.0.0 directory.
<ponga>
it didn't even request me to type in password
einarj has joined #ruby
mansi has quit [Ping timeout: 245 seconds]
samuel02 has joined #ruby
afreidah3 has quit [Ping timeout: 246 seconds]
nari has quit [Ping timeout: 245 seconds]
<DouweM>
why would it, it's not just gonna sudo
Xeago has joined #ruby
poikon has quit [Remote host closed the connection]
akonny has quit [Ping timeout: 250 seconds]
<ponga>
DouweM it keeps saying that how can i solve this issue :(
_justin has joined #ruby
tijmencc has joined #ruby
nfk has joined #ruby
Advocation has joined #ruby
MacTrash has joined #ruby
<MacTrash>
puts Date.strptime("06/12/14 22.00", '%m/%d/%y %H.%M').strftime("%Y-%m-%d %H:%M") this is displaying 2014-06-12 00:00, is there something stupid I'm overlooking?
samuel02 has quit [Read error: Connection reset by peer]
<MacTrash>
By the way, tuff is a pm link spamming bot (got a pm just now)
poikon has joined #ruby
<dinoex>
+1, he spammed me too
<DouweM>
MacTrash: you're using Date, which doesn't save time. Use DateTime :)
olalonde has joined #ruby
thomasxie has left #ruby [#ruby]
<MacTrash>
Doh thanks (coming from Java where there is no distinction)
<olalonde>
anyone knows why I might be getting "Retrying source fetch due to error (2/3): Bundler::HTTPError Could not fetch specs from http://rubygems.org/"
<DouweM>
dinoex: because you're looking for `<%= "ruby here" %>`
Geniack has joined #ruby
<DouweM>
dinoex: erb keeps track of a buffer, you're just printing to stdout
<DouweM>
dinoex: use <%= %> to append to the buffer
<dinoex>
is't <%= for expressions?
akonny has joined #ruby
<DouweM>
dinoex: yeah it is. where do you want your "ruby here" to end up?
<dinoex>
in the middle
<DouweM>
"ruby here" is an expression, so ditch the print and use <%=
<dinoex>
lots of code uses puts/print
m0s^away is now known as m0s
<dinoex>
how do i fit that in order?
<DouweM>
they write to stdout, which is something completely different from appending to the erb buffer
<DreamingRainne>
http://pastie.org/9084449 Is my mutex/CV logic (lines 19-38) okay in this? (I had done this before, using a SizedQueue from the library, but trying my hand at doing it "myself" here.)
LiohAu has joined #ruby
mengu has quit [Remote host closed the connection]
freerobby has joined #ruby
zarul has quit [Read error: Connection reset by peer]
browndawg has joined #ruby
browndawg has quit [Max SendQ exceeded]
zarul has joined #ruby
zarul has quit [Changing host]
zarul has joined #ruby
sigurding has joined #ruby
crzrcn has joined #ruby
browndawg has joined #ruby
robbyoconnor has quit [Excess Flood]
Al__ has quit [Read error: Connection reset by peer]
Al___ has joined #ruby
rvraghav93_ has joined #ruby
freerobby has quit [Ping timeout: 245 seconds]
robbyoconnor has joined #ruby
rvraghav93 has quit [Ping timeout: 252 seconds]
nbezzala has quit [Remote host closed the connection]
anarang_ has joined #ruby
crzrcn has quit [Ping timeout: 252 seconds]
anarang has quit [Ping timeout: 252 seconds]
Advocation has quit [Quit: Advocation]
Advocation has joined #ruby
Fractional has joined #ruby
ponga has joined #ruby
ponga has quit [Changing host]
ponga has joined #ruby
Advocation has quit [Client Quit]
<Fractional>
I need some help by someone, I am having a class variable issue. If you can help me, please send me a PM. Would appreciate it!
chrisseaton has joined #ruby
<ddv>
Fractional: just ask the question here
<DreamingRainne>
Fractional: You're more likely to get help if you present the problem here.
<DreamingRainne>
Rather than demanding someone commit sight unseen to trying to help you.
fella6s has joined #ruby
<ddv>
Fractional is just embarrassed by his programming mistakes
Faris has quit [Ping timeout: 252 seconds]
<Fractional>
ddv: More or less, but give me a moment and I will present the problem.
<ddv>
:)
<DreamingRainne>
You should see some of the mistakes I've made before, and continue to. Hehe. That's part of programming.
* crome
sends a Product Manager to Fractional
emaxi has joined #ruby
samuel02 has quit [Read error: Connection reset by peer]
<Fractional>
DreamingRainee: I am still not really used to all the cool things you can do with Ruby so the code might be a little bit, yeah :P
samuel02_ has joined #ruby
<Fractional>
Crome: You better not do that! ^^
<DreamingRainne>
Fractional: No worries. We can probably help out.
ahawkins has joined #ruby
* DreamingRainne
hasn't done much with class variables (@@, right?), though.
<crome>
they are rarely the solution, even if it looks like they are, imo
mansi has joined #ruby
<DreamingRainne>
Yeah, they're like one step removed from $these.
<Fractional>
Error message: main.rb:53:in 'rectangle?: undefined method '/' for nil:NilClass <NoMethodError> called from play.rb:69:in 'block in update'
<DreamingRainne>
You haven't coded Ruby till you've gotten an "undefined method `derp' for nil:NilClass" a few zillion times. <looks>
emaxi has quit [Ping timeout: 250 seconds]
<Fractional>
The thing is, I am pretty sure, that I should not have gotten a nil:NilClass error this game. I think it is a problem with dividing on player.height, but the player.height is set in the initialization of the player.
<Fractional>
this time*
<DreamingRainne>
It thinks HEIGHT is nil, but not WIDTH, but they're defined right next to each other. Hmm...
<crome>
Fractional: first of all, Collision shouldnt really be a module
<Fractional>
crome: What should it be? :P Anything that can help me is nice :)
nvrch has joined #ruby
mansi has quit [Ping timeout: 265 seconds]
<DreamingRainne>
Oh, wait, I was looking at line 53 in the first file, not of main.rb. (Didn't realize there'd be multiple files in that page.)
browndawg has left #ruby [#ruby]
<Fractional>
Haha, I found the error.
<Fractional>
Just.. wow..
vc7 has quit [Quit: vc7]
Celm has quit [Ping timeout: 258 seconds]
<Fractional>
I have looked at line 9 so many times, and overlooked the problem so many times.. the solution was so simple, yet I was stuck on this for two hours.
jamto11 has joined #ruby
decoponio has joined #ruby
<Fractional>
I only assign @width a value, not @height. That is why, god.. emberassing moment :P
<DreamingRainne>
Ah, line 9 in Player.rb? "@width, @height = 32" when that probably should be "@width = @height = 32" (assign to both, rather than assign only to one).
Hytosys has quit [Quit: Hytosys]
<DreamingRainne>
Yeah, a lot of problems come down to silly mistakes like that.
<Fractional>
Yeah, thanks for the help! :)
<Fractional>
Crome: How should I do the collision if it should not be a module?
yfeldblum has joined #ruby
goganchic has quit [Quit: Computer has gone to sleep.]
yfeldblum has quit [Read error: Connection reset by peer]
<crome>
what I was getting at is that you dont really make use of its module nature but then its really a minor detail
<crome>
at this point
<DreamingRainne>
Maybe as an instance method on the object class? Like: "object1.hit? object2" rather than "Collision.rectangle?(object1,object2)" and let each type figure out what its collision primitives are.
havenwood has quit [Remote host closed the connection]
yfeldblum has joined #ruby
<Fractional>
So, should I make a module with the hit? function that is then included in the classes?
canton7-mac has joined #ruby
jamto11 has quit [Ping timeout: 252 seconds]
helpD has joined #ruby
<DreamingRainne>
Perhaps. Possibly even RectangularCollision, CircularCollision etc that does hit? in its own way. (Although you wind up with n² different algorithms for n approaches...)
dawkirst has quit [Remote host closed the connection]
<DreamingRainne>
Or n-multichoose-2 more exactly. I think.
ahawkins_ has joined #ruby
dapz has joined #ruby
gbt has joined #ruby
yfeldblum has quit [Ping timeout: 252 seconds]
<DreamingRainne>
If it's all rectangular, then yeah, you could just have "module CollisionDetection; def hit?( that )" and then "include CollisionDetection" in the object base class(es).
<Fractional>
DreamingRainee: Thank you very much! I appreciate all the feedback I can get! :)
helpD has quit [Ping timeout: 240 seconds]
ahawkins has quit [Ping timeout: 240 seconds]
* DreamingRainne
wrote a vaguely similar sort of thing recently, which turned out to be easier to do by having "x.hit? y" followed with "def collision?(that); self.hit?(that) and that.hit?(self); end" (in other words, a one-sided method, then a reciprocal one for the final answer.
<DreamingRainne>
Simplified some of the logic.
sensen has joined #ruby
jcims is now known as cran
HashNuke has quit [Quit: Connection closed for inactivity]
samuel02_ has quit []
blackmesa has joined #ruby
<DreamingRainne>
(Well, "okay_with?" and "compatible_with?" rather than "hit?" and "collided_with?", but broadly the same principle.)
<apeiros>
crash_and_burns?
<Fractional>
DreamingRainne: Do you include a module outside or within the class defintion?
dawkirst has joined #ruby
St_Marx has quit [Ping timeout: 272 seconds]
<DreamingRainne>
Oh. I didn't do that as a module at all, but just as methods directly on one class that had no child classes, in my case.
sensen has quit [Client Quit]
ahawkins_ has quit [Quit: leaving]
ahawkins has joined #ruby
<DreamingRainne>
In your case (a 2D game of some kind?), if there's a hierarchy of classes that can be subject to collisions (player, item, enemy, weapon shot, etc), I might do something like put "hit?" as a method on the base class, which might call out to some other information-providing method that child classes could override if needed.
RaptorJesus has quit [Remote host closed the connection]
RaptorJesus has joined #ruby
<DreamingRainne>
Like, an object that changes size might report its width/height as instance variables (@these), or with a "size" method that returns [width,height], or something. Most might simply use the default provided in the base.
vky has quit [Ping timeout: 240 seconds]
<Fractional>
Dreamingainne: Sadly I have no hierarchy of classes. I know, it is something I will use on my next project. I am just curious, should I 'declare' the rectangularcollision module in main.rb and include it with 'include RectangularCollision'?
alessandro1997 has joined #ruby
ada2358_ has quit [Ping timeout: 252 seconds]
Xeago has quit [Remote host closed the connection]
codenapper has quit [Ping timeout: 265 seconds]
ironsand has joined #ruby
<DreamingRainne>
For now, you might just put the collision-detection code in a "hit?" method in the Player class (in Player.rb), since it strikes me as more the concern of the Player object than of the overall game state.
<DreamingRainne>
Or, the collision-detection code should be alongside whatever code is concerned with the location of each object in the game space. If that's the responsibility of the objects themselves, then put it as a method on those objects; if there's a separate "where's everything at?" class or something, have it as a method there. And so on.
kinginky_ has quit [Quit: Leaving]
redondos has quit [Ping timeout: 252 seconds]
kinginky has quit [Remote host closed the connection]
<DreamingRainne>
(Like, if Player is concerned with health, attributes etc, while there's a separate "GameSpace" class that keeps track of where each object is within the level, then put it in GameSpace.)
vky has joined #ruby
<ddv>
I would write an entity system
* DreamingRainne
is speaking generally.
karupa is now known as zz_karupa
redondos has joined #ruby
<DreamingRainne>
Looking at your code, you have x/y/angle on Player itself, so, I'd put the collision detection on Player. Whatever's responsible for where things are (for when collisions *could* happen), should also be what's responsible for figuring out when collisions *do* happen.
cran has quit [Quit: leaving]
ada2358 has joined #ruby
workmad3 has joined #ruby
tvw has joined #ruby
<DreamingRainne>
So, no "Collision" module at all; I would take the code currently in Collision.rectangle? and make it an instance method of Player.
<DreamingRainne>
That's the approach I'd take, anyway.
rakm has quit [Quit: Connection closed for inactivity]
* DreamingRainne
isn't a spatial game programmer, but does play one on IRC when the topic arises! So, be sure to "include GrainOfSalt".
<mosez>
damn... how can i get the result of a block into a variable?
<Fractional>
DreamingRainne: Haha, roger that! :D
morenoh153 has quit [Ping timeout: 258 seconds]
<DreamingRainne>
mosez: "yield" returns the last value that occured in the block, if that's what you mean. result = yield(derp)
robbyoconnor has quit [Excess Flood]
helpD has joined #ruby
terrellt has joined #ruby
robbyoconnor has joined #ruby
<mosez>
dreamingrainne: thx... forgot about simply yield instead of things like block.call -.-
skaflem has joined #ruby
phansch has joined #ruby
<DreamingRainne>
Hehe. block.call should return it too, in the same way.
RaptorJesus_ has joined #ruby
anaeem___ has joined #ruby
lolmaus has joined #ruby
emaxi has joined #ruby
terrellt has quit [Ping timeout: 276 seconds]
RaptorJesus has quit [Ping timeout: 245 seconds]
flagg0204 has joined #ruby
anaeem1 has quit [Ping timeout: 276 seconds]
havenwood has joined #ruby
dEPy has joined #ruby
narcan has joined #ruby
<lolmaus>
There's a Ruby gem Middleman that allows creating projects with it. Every Middleman project has a config.rb file that contains configuration using some Middleman global methods. I would like to split config.rb into multiple files. But when i do `require ./foo.rb` from the config.rb, Middleman's public methods aren't available inside foo.rb. Why?
arietis has quit [Quit: Computer has gone to sleep.]
mehlah has joined #ruby
alessandro1997 has quit [Quit: Sto andando via]
freerobby has joined #ruby
andrewlio has joined #ruby
<DreamingRainne>
lolmaus: It's still being successfully "require"d? Maybe you need to recreate any relevant scope for each of the other files? (Like, if they're method definitions, re-open the modules/classes in each file.)
<lolmaus>
DreamingRainne: yes, it's required. It throws a "no such method" error. The config.rb file does not open any modules/classes, it just does `set :foo, 'bar'` right away.
RaptorJesus_ has quit [Remote host closed the connection]
mupkoo has joined #ruby
RaptorJesus_ has joined #ruby
crzrcn has joined #ruby
oo_ has quit [Remote host closed the connection]
roolo has quit [Quit: Leaving...]
crzrcn1 has joined #ruby
freerobby has quit [Ping timeout: 265 seconds]
txdv has quit [Ping timeout: 240 seconds]
funburn has joined #ruby
funburn has quit [Client Quit]
Speed has joined #ruby
<DreamingRainne>
My next guess is, if config.rb require()s anything (other than its new siblings), are they require()d in each of the siblings too?
davedev24 has joined #ruby
arietis has joined #ruby
crzrcn has quit [Ping timeout: 265 seconds]
crzrcn1 has quit [Ping timeout: 245 seconds]
havenwood has quit [Ping timeout: 252 seconds]
roolo has joined #ruby
St_Marx has joined #ruby
<workmad3>
lolmaus: middleman doesn't do a simple 'require' for config.rb... by the looks of what 'self' is during the run, it loads the file in as a string and then instance_evals that string on the Middleman::Application object
<workmad3>
lolmaus: any requires you then do will then not have the right context
oo_ has joined #ruby
shashank_rs has quit [Ping timeout: 265 seconds]
<lolmaus>
workmad3: oh wow.
ndrei has quit [Ping timeout: 258 seconds]
<workmad3>
lolmaus: you can see something odd is going on by doing 'puts self' in your config.rb
<workmad3>
lolmaus: it then spits out Middleman::Application ;)
ndrei has joined #ruby
fabrice31 has quit [Remote host closed the connection]
mengu has joined #ruby
mengu has quit [Changing host]
mengu has joined #ruby
mansi has joined #ruby
afreidah3 has joined #ruby
shashank_rs has joined #ruby
fgo has quit [Remote host closed the connection]
sputnik13 has quit [Quit: My Mac Mini has gone to sleep. ZZZzzz…]
oo_ has quit [Remote host closed the connection]
freggles has joined #ruby
oo_ has joined #ruby
weems has quit [Quit: Leaving]
iaj has quit [Ping timeout: 264 seconds]
mansi has quit [Ping timeout: 258 seconds]
Faris has joined #ruby
aagdbl1 has joined #ruby
aagdbl has quit [Disconnected by services]
aagdbl1 has quit [Client Quit]
dEPy_ has joined #ruby
afreidah3 has quit [Ping timeout: 252 seconds]
dEPy has quit [Ping timeout: 240 seconds]
weems has joined #ruby
weems has quit [Changing host]
weems has joined #ruby
mupkoo has quit [Remote host closed the connection]
robustus has quit [Ping timeout: 264 seconds]
mostlybadfly has joined #ruby
Xeago has joined #ruby
robustus has joined #ruby
Mon_Ouie has quit [Ping timeout: 245 seconds]
mercwithamouth has joined #ruby
helpD has quit [Remote host closed the connection]
shashank_rs has quit [Ping timeout: 265 seconds]
lyanchih has quit [Ping timeout: 258 seconds]
helpD has joined #ruby
fabrice31 has joined #ruby
Cooler_ has quit [Remote host closed the connection]
<timgauthier>
but i've actually thought about what i'm designing in my head, i think i'd rather have it go to the url and grab the title of that page
anarang has joined #ruby
<timgauthier>
because i'm too lazy to do it myself.
darkaer has quit [Ping timeout: 258 seconds]
darkaer_ is now known as darkaer
<timgauthier>
the original idea was the split the url up, and then make the domain shaded out a bit then the link. but really thats an ugly way to present a link to something
<timgauthier>
i've figured out what imma do, thanks for being a sounding board! (but do i understand split correctly?)
<ddv>
timgauthier: why don't you just start a ruby console and try
oo_ has quit [Remote host closed the connection]
<timgauthier>
is that rib ?
<timgauthier>
irb* ?
<timgauthier>
how would i load up a url into something to try applying split too it? :S
<timgauthier>
ohhhhh i figured it out. so exciting!
blackmesa has quit [Quit: WeeChat 0.4.3]
<timgauthier>
thanks
terrellt has joined #ruby
alexju has quit [Remote host closed the connection]
oo_ has joined #ruby
darkaer has quit [Ping timeout: 258 seconds]
reisei has joined #ruby
pskosinski has joined #ruby
<reisei>
hi, all! how can I send mail from ruby-script without authentication as I send mail from linux console?
terrellt has quit [Ping timeout: 276 seconds]
bthesorceror has joined #ruby
phoo1234567 has joined #ruby
Faris has joined #ruby
Iniesta8 has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
justinxreese has quit [Ping timeout: 246 seconds]
dapz has joined #ruby
matcouto has joined #ruby
popl has quit [Ping timeout: 250 seconds]
freerobby has joined #ruby
bthesorceror has quit [Remote host closed the connection]
ylluminate has joined #ruby
nateberkopec has joined #ruby
atno__ has joined #ruby
banister has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
atno__ has quit [Remote host closed the connection]
atno__ has joined #ruby
tkuchiki_ has joined #ruby
atno has quit [Ping timeout: 240 seconds]
Deejay_ has joined #ruby
moritzs has quit [Ping timeout: 258 seconds]
AxonetBE has joined #ruby
freerobby has quit [Ping timeout: 240 seconds]
<AxonetBE>
If I have a method def method(a = true, b = false, c = true); end
<AxonetBE>
and I want to call it with only parameter c, how can I do this?
oo_ has quit [Remote host closed the connection]
bthesorc_ has joined #ruby
<DefV>
use Ruby 2.0 and do def method(a: true, b: false, c: true)
oo_ has joined #ruby
babatz has joined #ruby
crzrcn has joined #ruby
bthesorc_ has quit [Remote host closed the connection]
havenwood has joined #ruby
tkuchiki has quit [Ping timeout: 265 seconds]
<crome>
AxonetBE: if your method has too many optional parameters (the exact number is up to debate, I try not to have more than 1) then chances are its too complex
atno__ has quit [Client Quit]
<timgauthier>
how do i turn "2014-04-16 11:04 UTC":String" into something that I can .strftime('%b %e %Y') ?
atno has joined #ruby
tkuchiki_ has quit [Ping timeout: 258 seconds]
Xeago_ has quit [Remote host closed the connection]
<Rhainur>
gistfile1 (calling builder :unknown within the get) works but the 2nd version doesn't
yfeldblum has joined #ruby
<DreamingRainne>
Ah, the block at 21 is running at the top-level and thus is probably getting "builder" as a top-level variable, which won't be visible within methods.
<DreamingRainne>
As a quick and dirty workaround, try: "$builder = builder" outside the class, then refer to "$builder" within it. Just to see whether that works.
<Rhainur>
can I pass it in?
dumdedum has quit [Ping timeout: 276 seconds]
<DreamingRainne>
Or do that, if you want.
mehlah has quit [Quit: Leaving...]
mark_locklear has joined #ruby
<DreamingRainne>
Or, hmm. It's being passed arguments like a function, though, not like a variable.
Deejay_ has quit [Quit: Computer has gone to sleep.]
Iniesta8 has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<Rhainur>
that's the problem :(
fgo has joined #ruby
<vpereira>
Rhainur: hi, like you have a template unknown.builder
<Rhainur>
yes I do
<Rhainur>
fyi, when I do the builder :unknown outside the class, it works fine
<vpereira>
hm path?
<Rhainur>
views/unknown.builder
yfeldblum has quit [Ping timeout: 265 seconds]
vpretzel has joined #ruby
benzrf|offline is now known as benzrf
<vpereira>
yup, but this class that you paste it.. can it find it?
vpretzel is now known as vpretzel|1280
<vpereira>
is it running together with sinatra or is ist a PORO?
<DreamingRainne>
If it's callable in the top-level context, it should (technically) be a Kernel method and thus callable everywhere (everything would inherit it). If I understand correctly.
<wiscas>
does phusion passenger support ruby only or does it need to be ruby on rails ?
wiscas has left #ruby ["Leaving"]
wiscas has joined #ruby
<DefV>
Passenger supports rack
iamjarvo has quit [Ping timeout: 276 seconds]
<DefV>
so as long as your ruby app does rack, you can use passenger
afreidah3 has quit [Ping timeout: 245 seconds]
BalkM has joined #ruby
wm3|lunch is now known as workmad3
<streetlight>
vpereira is there an easy way to get a version from yum?
PragCypher has quit [Remote host closed the connection]
_bart has joined #ruby
vlad_starkov has quit [Ping timeout: 265 seconds]
paulfm has joined #ruby
<wiscas>
humm i'm not sure on something DefV, and sorry for the newbie question, but wouldnt that mean that i'd have to make it compatible with ruby on rails?
<Hanmac1>
shevy iphone user would say, "there is a app for that" ... we can say "there is a binding for that" ;P
<timgauthier>
any of you middleman users on?
helpD has joined #ruby
<timgauthier>
how do you use an instance variable :|
<timgauthier>
as in, i want to print it in an erg, would i just <%= @instance %> ?
<shevy>
timgauthier just like you use local variables
<timgauthier>
ok
<shevy>
god
<shevy>
erb
charlies_ has joined #ruby
reisei has quit [Quit: leaving]
<shevy>
timgauthier, the @ivar resides inside of your class
poikon_ has joined #ruby
<shevy>
class Foo; def initialize; @tim = 'this is tim here'; end; end
SonicX has joined #ruby
<timgauthier>
my brain just clicked what the heck this instruction was saying.. man how the heck does someone use a different template engine in this middleman, literally EVERYTHING is build for .erb...
creativeembassy has joined #ruby
<timgauthier>
where does a normal lowercase variable reside?
momomomomo has joined #ruby
<shevy>
usually inside of a method
terrellt has joined #ruby
<timgauthier>
okay, now translate that to PHP speak so i can understand it :P
charliesome has quit [Ping timeout: 240 seconds]
<timgauthier>
*hehehe*
bthesorceror has joined #ruby
dawkirst_ has quit [Remote host closed the connection]
jprovazn has joined #ruby
<shevy>
a method is def bla
<shevy>
you asked where a normal lowercase variable reside
ponga has joined #ruby
ponga has quit [Changing host]
ponga has joined #ruby
<shevy>
and that's like a no question? because you can uhm... define a normal lowercase variable everywhere?
poikon has quit [Ping timeout: 250 seconds]
<shevy>
def foo
<shevy>
x = 'hi tim'
<shevy>
end
<workmad3>
timgauthier: a normal lowercased variable is a local variable, it only exists in the local scope it gets defined in
sambao21 has joined #ruby
ponga has quit [Client Quit]
<timgauthier>
sorry shevy, i meant like if i define a lowercase variable what is the scope,
<workmad3>
timgauthier: local
<timgauthier>
I realize that base PHP doesn't really have classes so a @variable doesn't have a real analog
jds has quit [Quit: Connection closed for inactivity]
<timgauthier>
thanks workmad3
andikr has quit [Remote host closed the connection]
<timgauthier>
and to call a local variable from outside a method you call the method and receive the output but you can't grab a specific variable?
lmickh has joined #ruby
jeregrine has joined #ruby
terrellt has quit [Ping timeout: 258 seconds]
<workmad3>
timgauthier: yeah, can't access a local var from outside the scope it's created in
dapz has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<timgauthier>
mhmm, ok yup you've said words I actually understand :D thanks
ellbot has joined #ruby
ktun_ has quit [Read error: Connection reset by peer]
timonv has quit [Remote host closed the connection]
ktun has quit [Read error: Connection reset by peer]
Port3M5[Work] has quit [Read error: Connection reset by peer]
Macaveli has quit [Ping timeout: 252 seconds]
ehc has joined #ruby
beaky has joined #ruby
<Schmidt>
Has anyone worked with WebVTT files? I need to parse and split .vtt files by timestamps. Most gems I've found does not seem to support that...
<shevy>
it's the erb disease, error messages no longer make sense
timonv has joined #ruby
sdouglas has joined #ruby
matcouto has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<timgauthier>
yeah... lol
jlast has joined #ruby
dawkirst has joined #ruby
ktun has joined #ruby
evenix_ has joined #ruby
evenix has joined #ruby
<benzrf>
shevy: wenk wenk
momomomomo has quit [Quit: momomomomo]
<timgauthier>
benzrf you guys are right, erb is ugly
<shevy>
benzrf it's written "wank" man
<mikecmpbll>
stop wenking.
<timgauthier>
but I don't understand the logic of haml yet
<mikecmpbll>
i like erb. fuck haml.
kevind has joined #ruby
<timgauthier>
mikecmpbll :P
<shevy>
lol
<benzrf>
mikecmpbll: wrong
<timgauthier>
I like {{
<mikecmpbll>
no u
<timgauthier>
DOCH
<benzrf>
timgauthier: just read the docs
<ddd>
s/OC/OUC/
<shevy>
timgauthier if you combine erb with haml you got only two things
<benzrf>
haml is a simpler more elegant solution [trufax]
akonny has joined #ruby
<timgauthier>
elegant isn't what i'd call it
<mikecmpbll>
that's also an opinion masquerading as a fact.
<ddd>
show me the trufax
<workmad3>
haml sucks for content
<DouweM>
erb makes me feel dirty
fgo has quit [Remote host closed the connection]
<shevy>
lol
<workmad3>
but it's ok for templates
<timgauthier>
Fight Fight Fight!
<benzrf>
yea
<shevy>
those are some epic responses here
oo_ has quit [Remote host closed the connection]
<timgauthier>
lol shevy
<timgauthier>
guess what shevy, I AM NOT REDOING ALL MY ERB INTO HAML
<workmad3>
erb is also ok for templates
<shevy>
haha
<timgauthier>
so either you do it all, or i leave it
gbt has joined #ruby
krz has joined #ruby
chad___ has joined #ruby
<workmad3>
both haml and erb are ugly if you've got too much happening in the template though :)
<timgauthier>
i do lots of logic "if this exists" but only because I don't want to render a <div> that isn't being used.
<timgauthier>
which to me, is why you'd use a template
Melpaws1 has quit [Quit: Leaving.]
crzrcn has joined #ruby
rm_ has joined #ruby
treehug88 has joined #ruby
danijoo has quit [Quit: Leaving...]
<shevy>
man
<shevy>
wouldn't you wish you could have if/else checks in html
<Hanmac1>
shevy: centos would say "man - command not found"
Hanmac1 is now known as Hanmac
<workmad3>
shevy: not particularly
<workmad3>
shevy: I've seen XSLT
<mikecmpbll>
lolwat
<timgauthier>
yes shevy i wish i could
maroloccio has quit [Ping timeout: 240 seconds]
<timgauthier>
but they'd be just as ugly
<workmad3>
timgauthier: uglier
<chad___>
quite a bit uglier
<timgauthier>
really your finally HTML should not have logic in it
Morkel has quit [Ping timeout: 258 seconds]
senayar has joined #ruby
ellbot has quit [Remote host closed the connection]
Morkel_ has joined #ruby
iamjarvo has joined #ruby
<timgauthier>
so a template engine should do that
beaky has left #ruby [#ruby]
ellbot has joined #ruby
<workmad3>
timgauthier: ideally, your template shouldn't have logic in it either... at most, it should have very simple logic
<timgauthier>
liquid is actually quite nice, but .erb is amazing because you have all of the ruby available, you can do things that are insanely powerful, like reference models and controllers, but you output a true HTML
ktun_ has joined #ruby
<mikecmpbll>
i like to put my M, V and C into the V
<timgauthier>
workmad3 yeah, I agree, more then "out put this string this way" or "do this here unless that isn' t a set variable"
<mikecmpbll>
keeps it simple, yo.
crzrcn has quit [Ping timeout: 250 seconds]
baweaver has joined #ruby
<timgauthier>
but if its more complicated then a single if statement to output a truthy or nil then a controller does it better
ndrei_ has quit [Ping timeout: 252 seconds]
<timgauthier>
or if you do it more then once
davispuh has joined #ruby
endash_ has joined #ruby
<timgauthier>
but then you can end up having html in your controller which i think is worse, so then you have a controller, a partial and a template
evenix has quit [Remote host closed the connection]
evenix_ has quit [Remote host closed the connection]
<timgauthier>
talk about atomizing your design!
<workmad3>
timgauthier: no, in that situation you're better off with a proper view layer that sits behind the template
<timgauthier>
i'm sad sad, i don't know how to add a switch to the middleman article command :|
<timgauthier>
wait...
<timgauthier>
i thought the view layer WAS the template?
<workmad3>
timgauthier: in a lot of MVC frameworks, they're collapsed together for simplicity
lw has joined #ruby
<timgauthier>
ah
vlad_starkov has joined #ruby
<mikecmpbll>
or rather, they're not yet divided
<timgauthier>
so you'd have a .ruby for the view, then a template layer
vlad_sta_ has joined #ruby
ktun__ has joined #ruby
ktun has quit [Ping timeout: 240 seconds]
<timgauthier>
then do you create two templates that differ only by if a variable appears or not or do you still do that in your template ?
ellbot has quit [Ping timeout: 245 seconds]
ellbot has joined #ruby
<workmad3>
timgauthier: nah, I'd have a template that always output the result of a view method
maroloccio has joined #ruby
ktun_ has quit [Ping timeout: 252 seconds]
<workmad3>
timgauthier: and that view method would either return or not return the content based on that variable
Squarepy has quit [Quit: Leaving]
freerobby has joined #ruby
<timgauthier>
so if you have a page where you may or may not have tags.. then you have a template that includes tags and a template that does not? even though the templates are otherwise identical?
<workmad3>
timgauthier: see above
<timgauthier>
yeah i'm trying to understand above
<workmad3>
timgauthier: the template would always have '<%= render_tags %>'
Iniesta8 has joined #ruby
<timgauthier>
ok
Iniesta8 has quit [Max SendQ exceeded]
ellbot has quit [Remote host closed the connection]
Iniesta8 has joined #ruby
<timgauthier>
so now what if <%= render tags %> is inside a div called <div class="tags"> but you want that to collapse and not be there if there are zero tags?
sambao21 has quit [Quit: Computer has gone to sleep.]
Iniesta8 has quit [Max SendQ exceeded]
ellbot has joined #ruby
<workmad3>
timgauthier: why would that call be inside the div?
<mikecmpbll>
heh
<workmad3>
timgauthier: that call would add the div
<timgauthier>
because you don't want to put the div with the styling into the view
<workmad3>
timgauthier: the template is saying 'tags go here man'
Iniesta8 has joined #ruby
<workmad3>
timgauthier: why wouldn't I? :)
ktun has joined #ruby
Iniesta8 has quit [Max SendQ exceeded]
<timgauthier>
yeah, i've worked with templates that where built like that, and they are unessesarily awkward. I firmly believe that you should never have html that appears from nowhere
<mikecmpbll>
what
vlad_starkov has quit [Ping timeout: 240 seconds]
<timgauthier>
the html should all be put in once place so that it is manageable to change
<mikecmpbll>
have you ever rendered a partial?
<timgauthier>
yes
<mikecmpbll>
so what's that
Iniesta8 has joined #ruby
Iniesta8 has quit [Max SendQ exceeded]
lxsameer has quit [Quit: Leaving]
<timgauthier>
the html partials are in the same place as the rest of the html though, not segregated from them in some ruby file
luriv has joined #ruby
Iniesta8 has joined #ruby
<timgauthier>
are you saying that render tags is calling a partial that contains the html to draw that div?
Iniesta8 has quit [Max SendQ exceeded]
<workmad3>
timgauthier: it can do
helpD has quit [Remote host closed the connection]
jrhe has joined #ruby
<timgauthier>
i'm okay with that, as long as it is commented into the template saying what partial is pulling the html
<workmad3>
timgauthier: there's lots of ways to skin this cat
Iniesta8 has joined #ruby
vpretzel|1280 is now known as vpretzel
ktun__ has quit [Ping timeout: 276 seconds]
Iniesta8 has quit [Max SendQ exceeded]
<timgauthier>
yeah thats what people say... but really I think there isn't.
<timgauthier>
Ever work with Php Formbuilder?
<workmad3>
timgauthier: sometimes I'd generate the HTML directly in the view, with the template just being a very simple thing saying what order stuff gets put into
<mikecmpbll>
lol
flagg0204 has quit [Ping timeout: 240 seconds]
<timgauthier>
Try to edit the output of the form, oh you want to change how it builds a form to update it from 1999 to html5 standerd forms? great now you get to go rewrite PHP!
Iniesta8 has joined #ruby
vpretzel is now known as vpretzel|941
Iniesta8 has quit [Max SendQ exceeded]
jkamenik has joined #ruby
<timgauthier>
workmad3 as a developer I understand why you would, but as a designer I have to say that it actually makes things more difficult
ellbot has quit [Ping timeout: 240 seconds]
Iniesta8 has joined #ruby
Iniesta8 has quit [Max SendQ exceeded]
benzrf is now known as benzrf|offline
tkuchiki has quit [Remote host closed the connection]
afreidah3 has joined #ruby
<workmad3>
timgauthier: if I was working with a designer, I wouldn't do that approach
<timgauthier>
its much harder to design. If i can write out a full static html page with all of the content in it and then design and built all of it out, then remove the content and plug in ruby/php/javascript/node/batman then its a much more flexible and agnostic process
danijoo has joined #ruby
joshualivesay has joined #ruby
<timgauthier>
thanks then workmad3 :)
Veidit has quit [Remote host closed the connection]
<timgauthier>
see, and i'm really a designer pretending to be a developer here, so I always build the basic logic out in the front.
<workmad3>
timgauthier: and you say that's a much more flexible approach... but when you 'plug in' the language, you frequently end up with an atrocious unmaintainable mess :)
Spami__ has joined #ruby
<timgauthier>
what do you mean?
<timgauthier>
if I put a logic block into my html and then change from PHP to erb or from liquid to erb then I just change the language of those logic blocks. I don't have to change the html at all, or even move it
ktun has quit [Read error: Connection reset by peer]
<workmad3>
timgauthier: I mean that you end up with a single, huge template that's filled with crufty condition rendering, loops going over badly named variables and all sorts of other mess that makes it really difficult to see what the hell is going on
<timgauthier>
but if that html is in a ruby file controller then I have to make sure I move it to the new language
<timgauthier>
ah
sdouglas has quit [Remote host closed the connection]
rvraghav93_ has quit [Read error: Connection reset by peer]
Rhainur has quit [Quit: Leaving]
ktun has joined #ruby
zz_jrhorn424 is now known as jrhorn424
<workmad3>
timgauthier: I've seen the extremes of that approach too ;)
<timgauthier>
yes it can, but I also divide my templates and such up quite a bit
Kricir has quit [Remote host closed the connection]
<workmad3>
timgauthier: I think the worst I saw was a fucking 3000 line XSLT file that couldn't even be indented properly because it broke stuff
<timgauthier>
haha wow
lw has quit [Quit: s]
jrhorn424 is now known as zz_jrhorn424
<timgauthier>
yeah, no every view has a different template, at least
<workmad3>
timgauthier: this was for 1 view
<DouweM>
that's on a whole other level, bordering on impressive workmad3
<timgauthier>
anything that is in more then one place goes into a partial
rayners has joined #ruby
<timgauthier>
anything that repeats gets turned into a partial
<mikecmpbll>
hey, i was under the influence when i wrote that xslt
<timgauthier>
if its a different state, then if at all possible, different template
<workmad3>
mikecmpbll: you've worked on dspace? :D
tagrudev has quit [Remote host closed the connection]
<mikecmpbll>
oh yeah, thems were the days
sdouglas has joined #ruby
<mikecmpbll>
no, no i haven't.
Iniesta8 has joined #ruby
paulfm has quit []
Iniesta8 has quit [Max SendQ exceeded]
garndt has joined #ruby
flagg0204 has joined #ruby
yfeldblum has joined #ruby
Iniesta8 has joined #ruby
Iniesta8 has quit [Max SendQ exceeded]
<timgauthier>
what do you call the thing that runs when i do $ bundle exec middleman article
<shevy>
madness
Iniesta8 has joined #ruby
<timgauthier>
I know it outputs a markdown file based on a template in a folder and adds the date etc
andrewlio has quit [Remote host closed the connection]
<timgauthier>
but what is "article" ? and how can i change it, modify it, or create a new variation?
<Hanmac>
shevy: this is not madness this! is! bundler!! ;DP
<shevy>
wouldn't you like to know!
<shevy>
timgauthier, Hanmac is THE bundler expert
<shevy>
ask him bundler related questions
joshualivesay has left #ruby [#ruby]
<timgauthier>
i don't need to know shevy, honestly its me being a lazy sod and not wanting to have to add layout: linked_list to some of my blog articles when i create them
<timgauthier>
not that i will likely create very many.
<timgauthier>
hanmac can i use bundler to install a local version of bundler that is different, then have that automatically create a specific gem and scaffold a full website for me?!
mengu has quit [Remote host closed the connection]
LadyRainicorn has joined #ruby
<workmad3>
but I think they fixed the indentation problem since I last had to touch it :)
<Hanmac>
timgauthier: shevy lied to you, i never used bundler :/
alem0lars has joined #ruby
Iniesta8 has quit [Client Quit]
<timgauthier>
hahaha :P
nouitfvf has joined #ruby
<workmad3>
timgauthier: that also answers the question of what it would look like if you had <if> tags in HTML...
<timgauthier>
yea
<timgauthier>
thats .xsl
<timgauthier>
we all agree that that was a mistake
<shevy>
wesnoth game does not agree with you!
crystal77 has joined #ruby
<timgauthier>
html is for content markup, css is for style and layout
<timgauthier>
but shevy, what if you realize you need to add something too it?
dinosaurs is now known as randytravis
<shevy>
add where to?
terrellt has joined #ruby
<workmad3>
shevy: so the number '1234' is four-thousand, three hundred and twenty one?
<timgauthier>
you can't prepend an entry on a form by hand!
<timgauthier>
workmad3 in arabit it is
<timgauthier>
:D
paulfm has joined #ruby
<shevy>
workmad3 we write from left to right
<timgauthier>
arabic* lol
<timgauthier>
yes shevy
<shevy>
workmad3 so we count dd.mm.yyyy as well
<workmad3>
shevy: as I asked... give me the date ordering algorithm for that pls ;)
<timgauthier>
so we write year month day hour minute second millisecond nanosecond timezone
<timgauthier>
you stop when you have enough detail
<shevy>
dd.mm.yyyy
alem0lars has quit [Quit: Going AFK...]
<workmad3>
shevy: I have d1.m1.yyy1 and d2.m2.yyy2... how do I compare them and put them in order?
dawkirst has quit [Remote host closed the connection]
Martxel has joined #ruby
<shevy>
workmad3 you sort it properly
treehug8_ has joined #ruby
<workmad3>
shevy: yeah... I'm asking you for the simple, uncomplicated algorithm for that ;)
<shevy>
workmad3 use a method
<timgauthier>
you sort it by split(".") then you reverse it, then you make it a date object
<timgauthier>
and then you can use normal ruby!
aniM has joined #ruby
<shevy>
why would you have to reverse it if it would be the default?
<timgauthier>
because it isn't
<timgauthier>
its wrong
<workmad3>
shevy: because YYYYMMDDD is automatically ordered
<shevy>
it's not the default, that is what is wrong
treehug88 has quit [Ping timeout: 250 seconds]
<workmad3>
shevy: while DDMMYYYY isn't
<timgauthier>
i mean at least he's not being completely convoluted and asking for MMDDYYYY
<shevy>
workmad3 now in your example you used ., where did these go!
bluOxigen has joined #ruby
<workmad3>
shevy: gsub them out ;)
snath has quit [Ping timeout: 245 seconds]
<workmad3>
shevy: you'd need to do that no matter what
<timgauthier>
in the filesystem 1folder goes before 2folder automatically
lmickh has joined #ruby
<workmad3>
shevy: also, YYYY/MM/DD and YYYY.MM.DD are also automatically lexically ordered
<shevy>
I really fail to see the unsolvable mystery in it :(
<timgauthier>
so YYYY/MM/DD works way easier for file naming conventions too
lw has joined #ruby
<shevy>
I don't see any of that
<workmad3>
shevy: while DD.MM.YYYY isn't lexically or numerically ordered without jumping through hoops to compare each part separately
mcrmfc has joined #ruby
<timgauthier>
but seriously people who want their legal documents filled out MM DD YY are ridiculous :|
<shevy>
workmad3 do you really write "signed on 2014-04-16" in the UK?
<atmosx>
timgauthier: hey I'm European, I like to read my date as I'm used to.
simplyaubs has joined #ruby
<timgauthier>
DD MM YY isn't european
<timgauthier>
DD MM YY is american
treehug88 has joined #ruby
<atmosx>
timgauthier: nope.
<workmad3>
shevy: I wish we did :(
<shevy>
now something isn't consistent here
<timgauthier>
YYYY MM DD is correct, DD MM YYYY i can accept
dawkirst has joined #ruby
AxonetBE has quit [Quit: AxonetBE]
<timgauthier>
but MM DD YY or MM DD YYYY are unacceptable
<atmosx>
Ah sure
<timgauthier>
I mean MM DD YYYY is slightly better because you at least know what year it is
<atmosx>
month-day-year? never saw that
dima_ has joined #ruby
<atmosx>
timgauthier: of course.
<timgauthier>
month day year is standard in america and some parts of canada
lkba has joined #ruby
joast has quit [Quit: Leaving.]
<shevy>
ack
<timgauthier>
the federal standard in canada is DD MM YYYY for forms which annoys me but at least has them in a semi logical order
<shevy>
they start with the month first?
arietis has quit [Quit: Computer has gone to sleep.]
<timgauthier>
yes shevy
<shevy>
why do they always pick the stupidest solution
<oponder>
so you can sort by month nicely =D
<timgauthier>
and once you break away from YYYY MM DD and allowing people to write their dates willy nilly then it gets unacceptable
<shevy>
lol
<workmad3>
timgauthier: MM/DD/YYYY does have a sort-of logical reason behind it
<workmad3>
timgauthier: 'september the eleventh'
<timgauthier>
no september the 11th is because they do it wrong, it should be 11th of september
<shevy>
the eleventh of september?
crzrcn has joined #ruby
<timgauthier>
i was born the 23rd day of september year of our lord 1986. Simple
<shevy>
yes
<shevy>
dd.mm.yyy
<shevy>
+y
<workmad3>
timgauthier: but by your own rationale, that's the 'correct' way of saying it ;)
treehug8_ has quit [Ping timeout: 265 seconds]
<workmad3>
timgauthier: largest to smallest
<timgauthier>
sure, but when you add time it gets dumb
<shevy>
haha
<DouweM>
dd-mm-yyyy ftw
<timgauthier>
HH:MM:SS
<shevy>
MM:HH:SS would be worse
<timgauthier>
so then if i write it out in notation i write it out YYYY:MM:DD HH:MM:SS
x77686d has joined #ruby
Martxel has quit [Ping timeout: 265 seconds]
<timgauthier>
and I write it 100$
<shevy>
I have a question
<timgauthier>
because that makes sense too
<shevy>
when I start IRB, and put $VERBOSE
<timgauthier>
but goes against my logic.
roolo has quit [Quit: Leaving...]
<shevy>
hmm I get false
<timgauthier>
what happens when you quit IRB with verbose ?
<timgauthier>
don't you have to start IRB with a flag to get verbose?
<timgauthier>
irb --verbose
joast has joined #ruby
<atmosx>
is safe_yaml part of core?
dima_ has quit [Ping timeout: 265 seconds]
<timgauthier>
why does time.parse error when it has seconds, but time.now generates seconds?
<shevy>
I think I understand it finally
<shevy>
also I was setting $VERBOSITY and wondered why it did nothing :P
<timgauthier>
haha
<shevy>
the default is false, which they think is 1, and if you set $VERBOSE to nil it means "be silent"
rmorello is now known as rmorello|securit
jprovazn is now known as jprovazn_afk
joast has quit [Remote host closed the connection]
<shevy>
so I can do: $VERBOSE = nil; require 'stupid_library_that_has_a_million_warnings'; $VERBOSE = false
<shevy>
but having to set global variables really stinks
crzrcn has quit [Ping timeout: 240 seconds]
funktor has joined #ruby
jobewan has joined #ruby
dik_dak has joined #ruby
fabrice31 has quit [Remote host closed the connection]
joast has joined #ruby
<jamto11>
for ruby whats an elegant way to unArray am array with 1 string value inside of it. ex: ["select * from"]. I know about .join("") and [0] anything else?
<LadyRainicorn>
lol, there should be an AdviceAnimal about posting terminal screenshots.
<shevy>
if we could just set $VERBOSE and $DEBUG and also interpreter warnings
<pontiki>
more lube, randytravis ?
Celm has joined #ruby
roolo has joined #ruby
<timgauthier>
LadyRainicorn nice...
akonny has quit [Quit: akonny]
<timgauthier>
is there a way to print the terminal to a file?
MacTrash has quit [Quit: This computer has gone to sleep]
<shevy>
what does this even mean
aganov has quit [Quit: Leaving]
<shevy>
there are some ways to capture what is typed
<LadyRainicorn>
lol pontiki
<pontiki>
there is in OSX
<timgauthier>
like, take take the output of the terminal and save as a .txt file
<shevy>
timgauthier is an osx user
<timgauthier>
how so in pontiki ?
<timgauthier>
do share!
<pontiki>
i sometimes hit CMD-P instead of CTRL-P and get a print menu
<LadyRainicorn>
shevy: What does what mean?
<shevy>
LadyRainicorn to print the terminal to a file :)
<shevy>
screenshot!
<timgauthier>
yea but that saves a pdf
<pontiki>
what's your point?
<timgauthier>
i mean i'd like to output the terminal to .txt
<pontiki>
it's the bloody print menu
<shevy>
hehe
<pontiki>
you said "print the terminal"
<LadyRainicorn>
No, what are you referring to when you ask what 'this' meant.
<pontiki>
not "save the contents to a text file"
randytravis has quit [K-Lined]
<timgauthier>
i mean yeah i can copy but it would be cool to be able to flag a command and have the output of that commands terminal print to a file
<shevy>
LadyRainicorn it was meant in response to what timgauthier meant when he wrote <timgauthier> is there a way to print the terminal to a file?
<timgauthier>
well i meant print in the print_r kind of way
<pontiki>
my_command 2>&1 | tee my_command_output.txt
<LadyRainicorn>
Select and copy.
<shevy>
tea!
<LadyRainicorn>
copypasta
<LadyRainicorn>
copynoodles
<shevy>
aha
<shevy>
you like rainbow noodles
<LadyRainicorn>
imitationnoodles
<pontiki>
don't we all?
<shevy>
instanoodles
<timgauthier>
lady yeah but the pasta is sometimes hard to find the be inning between the various attempts and failures so if i could just run the command that fails
<timgauthier>
so tea!
sski has quit [Ping timeout: 258 seconds]
madb055 has quit [Quit: Konversation terminated!]
<pontiki>
or the really cool thing to do is start script in your shell, then you get everything logged to a file
fgo has joined #ruby
madb055 has joined #ruby
<LadyRainicorn>
ah ok
<pontiki>
it doesn't play so well with *curses programs though
<timgauthier>
is tea a thing?
<timgauthier>
or is it tee? and where does the output of a file exsist?
<pontiki>
are you asking about the tee(1) command?
meatherly has quit [Remote host closed the connection]
arubincloud has joined #ruby
sigurding has quit [Quit: sigurding]
<shevy>
happiness!
* LadyRainicorn
wants tea now.
<shevy>
was there a tee party?
ikaros has quit [Quit: Ex-Chat]
codabrink has joined #ruby
<timgauthier>
sweet!
<timgauthier>
tee is exactly what i want!
<timgauthier>
now when something is failing i can just run it with tee and have a file!
<timgauthier>
is man the manual ?
<olivier_bK>
i need to get only the param after the = but in my file i have a lot of params with = $config['uid'] = 'booster';
mg^away is now known as mg^
<olivier_bK>
for that i use this regex ((?=uid)(.*))
<olivier_bK>
but in rubular i get that uid'] = 'boosters';
<olivier_bK>
and i only want the params after =
paulfm has quit []
dima_ has joined #ruby
<shevy>
I am confused why you use two ()
fgo has quit [Ping timeout: 250 seconds]
<shevy>
I mean
<shevy>
two ((
ahawkins has quit [Quit: leaving]
<olivier_bK>
it's an error
alex88 has joined #ruby
<shevy>
you said it is a regex
ellbot has joined #ruby
<olivier_bK>
it's a regex yes
<LadyRainicorn>
He is using Lisp style regexps.
dawkirst has quit [Remote host closed the connection]
<LadyRainicorn>
Though he seems to have forgotten several parentheses.
<shevy>
>> "foo = uid yo".match(/(?=uid)(.*)/)[1]
<shevy>
where is the bot
_maes_ has joined #ruby
paulfm has joined #ruby
ghr has quit [Ping timeout: 250 seconds]
jameswlane has quit [Quit: Logging off]
<pontiki>
$config['uid'] = 'booster'; looks like perl
ellbot has quit [Remote host closed the connection]
<pontiki>
or php
niharvey is now known as niharvey|afk
ellbot has joined #ruby
snath has joined #ruby
frem_ has joined #ruby
hiall has joined #ruby
<shevy>
yeah
kaspergr_ has joined #ruby
<shevy>
pontiki he wants to convert a php array into yaml, through ruby
<pontiki>
why?
havenwood has quit [Remote host closed the connection]
<olivier_bK>
pontiki, +1
<olivier_bK>
it s php
<shevy>
olivier_bK, if the regex confuses you, why dont you just .split ?
benzrf|offline is now known as benzrf
<pontiki>
why not convert it to yaml from the language it's written in?
<shevy>
pontiki dunno why, I save myself headache by not asking ;-)
<olivier_bK>
shevy, may e
<pontiki>
or is this just an exercise?
<olivier_bK>
shevy, may be sorry
JBreit has joined #ruby
maroloccio has quit [Quit: WeeChat 0.4.3]
kerin has joined #ruby
ndrei has joined #ruby
<timgauthier>
i really should turn on sass-globbing :|
<olivier_bK>
i m almost i dont need uid i need all after =
kaspergrubbe has quit [Ping timeout: 252 seconds]
<timgauthier>
"WHY DEOSNT" THIS SASS FILE MAKE ANY CHANGES", oh yeah forgot to include it cause its new. derp
ce_afk is now known as cescalante
kaspergrubbe has joined #ruby
<benzrf>
wenk wenk
<benzrf>
jesus christ i cant stop doing that >.<
ellbot has quit [Ping timeout: 252 seconds]
<timgauthier>
haha
<timgauthier>
don't you get sore benzrf ?
<benzrf>
much funny
<benzrf>
wenk as in the noise penguins in adventure time make
<timgauthier>
heh heh
<benzrf>
sounds kinda like a duck
<timgauthier>
i really need to watch that at some point
<benzrf>
yes u do
<timgauthier>
I also need a larger monitor, seriously, a 13-inch display is awesome on the go, but I need a 27-inch iMac soon
kaspergr_ has quit [Ping timeout: 240 seconds]
JBreit has left #ruby [#ruby]
<sweeper>
man
<sweeper>
don't ever get suckered in by jruby
<DouweM>
timgauthier: man, I can't imagine doing any serious work on a 13" display
jxf has joined #ruby
<tobiasvl>
is there anything j* that's cool
<tobiasvl>
scala?
<timgauthier>
its small man.. its small, and now that i'm using my external keyboard and mouse, i need to lift this sucker up higher
<timgauthier>
brb, need stack of books
afreidah3 has quit [Ping timeout: 252 seconds]
<headius>
sweeper: suckered?
alem0lars has joined #ruby
<timgauthier>
ehh box from some solomons will do
<headius>
sweeper: did you have a problem running jruby?
<timgauthier>
show me on this doll where jruby touched you
<DouweM>
lol
tvw has quit []
<headius>
no doubt
lukec has joined #ruby
qmfnp has joined #ruby
paulfm has quit []
Fractional_ has quit [Read error: Connection reset by peer]
<DouweM>
headius: you've got an alert set up for mentions of JRuby? :)
Fractional_ has joined #ruby
<headius>
of course
<pontiki>
the 13" retina is actually workable for a bit, but not for long-haul coding sessions
maletor has joined #ruby
<DouweM>
pontiki: I find 15" barely doable, there's just too much switching between windows. I love tiling on a 27" display :)
pu22l3r has joined #ruby
shashank_rs has quit [Ping timeout: 240 seconds]
IceDragon has joined #ruby
goganchic has quit []
atmosx has quit [Quit: Lost in trance]
Tamal has joined #ruby
machete has quit [Ping timeout: 250 seconds]
<timgauthier>
i'd love a 15 retina and i'd scale down things sometimes, but i'd still need a 27 external
<timgauthier>
or even 2
<pontiki>
i still have to switch on the 27:
<pontiki>
"
paulfm has joined #ruby
<DouweM>
pontiki: sure, but a lot less than on 15"
<pontiki>
2 27's would be ideal
<timgauthier>
the amount of crap I tend to have open at once because i'm using it is rediculous
<pontiki>
oh sure
<DouweM>
yeah I'm gonna get a second 27" at some point
fgo has joined #ruby
<pontiki>
when i'm in 13" mode, i tend to use fullscreen mode and flip screens
<timgauthier>
I need to make some money, first up i buy a 27" display, then the new laptop, then the second display
<timgauthier>
of course pay for the wedding first :P
<pontiki>
or maybe a bank of 6, 2 rows of 3!!
<DouweM>
timgauthier: nice
<timgauthier>
haha yea
<DouweM>
pontiki: that would be the best :P
crazysim has quit [Excess Flood]
<DouweM>
timgauthier: when are you getting married?
zxq9 has quit [Remote host closed the connection]
<timgauthier>
August this year
crazysim has joined #ruby
<DouweM>
timgauthier: congrats
<pontiki>
nice
<LadyRainicorn>
wow such monitor
<timgauthier>
thanks
zxq9 has joined #ruby
<pontiki>
my advice: spend more on the honeymoon than the wedding
<timgauthier>
its a bunch of stress planning a wedding, and then we have 2 countries on top of that
<timgauthier>
well, we don't even have the money for the wedding. and so we're going to do the honeymoon next year :|
<DouweM>
hehe
<pontiki>
same advice :)
<timgauthier>
we get married in Canada then come back and get married again for the german family
yalue has quit [Ping timeout: 250 seconds]
<pontiki>
it's amazing how little of the wedding ceremony i remember
<LadyRainicorn>
Drunk?
<pontiki>
oh, two weddings
<pontiki>
no
<timgauthier>
yea i suspect that too, we're trying to be as cheap as possible
binaryhat has joined #ruby
Tamal has quit [Client Quit]
machete has joined #ruby
<pontiki>
actually, it was a dry reception, held in the church reception hall
<timgauthier>
we only have 5k€ for all of it
<tobiasvl>
hello fellow soon-to-be-wed
<DouweM>
pfft, two weddings must be exhausting
<DouweM>
planning them and attending them
benzrf is now known as benzrf|offline
hamakn has quit [Remote host closed the connection]
<pontiki>
but it was dizzying -- so many relatives, so many people i'd never met before
<pontiki>
neither of us even got to eat anything besides cake
<timgauthier>
the canadian one is a BBQ outside so that'll be fun :D
<pontiki>
awesome :)
<pontiki>
my sister and her wife have been married 5 times :)
<timgauthier>
still gotta figure out how to cook for 60 people but yeah
Lewix has joined #ruby
<DefV>
I'm getting married in Oktober, and I don't even want to think about the money that's going to that wedding :-|
<DouweM>
pontiki: haha nice
<timgauthier>
haha pontiki that sounds exhuasting
<pontiki>
delegate, my friend, delegate
<pontiki>
well, not all in the same year
<timgauthier>
well yeah, but i'm being told I can't ask anyone who was invited to cook, that isn't fair they want to come and have fun.
snath has quit [Remote host closed the connection]
<pontiki>
i keep telling them they have to come out here to minnesnowda now that they've made SSM legal
<pontiki>
make it 6 :)
<timgauthier>
my woman's been invited to too many weddings just so that she can work. so theres that
<DouweM>
catering for 60 people is gonna cost ya
fgo has quit [Ping timeout: 250 seconds]
havenwood has joined #ruby
<timgauthier>
we're going to have people bring their own salads and we'll provide some of the meat, or maybe we'll provide meat for the wedding party and drinks and they bring their own meat and salads
<timgauthier>
they all know that we're dirt poor so they can deal with it
<timgauthier>
:P
<DouweM>
:)
<pontiki>
what you'll probably *really* need are extra grills
canton7-mac has joined #ruby
canton7-mac has quit [Remote host closed the connection]
<pontiki>
or do a luao (sp?)
<timgauthier>
we're in a park with a big fire pit and then 3 bbq stands
codezomb has joined #ruby
<mg^>
When I got married, we went to Costco and spent about $200 on mini sandwiches and meat/cheese platters and did a picnic-style lunch on my parents' acreage. Worked out nice.
<timgauthier>
and we can bring more i believe
<DouweM>
pontiki: what's that?
<LadyRainicorn>
Don't people bring money to pay for the wedding?
<pontiki>
roast a whole pig in the ground, hawaiian style, DouweM
<timgauthier>
a luao is a hawaiian bbq
<timgauthier>
LadyRainicorn they do?
<DouweM>
ah, all right
arietis has joined #ruby
<mg^>
Not in American culture, they don't.
<pontiki>
it varies
<LadyRainicorn>
Huh.
<timgauthier>
yeah LadyRainicorn
snath has joined #ruby
<LadyRainicorn>
America is weird.
<pontiki>
traditional american weddings, the father of the bride pays for everything
<mg^>
I am sure where you are at is weird to us :)
benzrf|offline is now known as benzrf
<mg^>
yeah, that comes from the traditional dowry.
<pontiki>
America *is* weird
<timgauthier>
i don't know many people who've had that pontiki
<mg^>
We made sure to go easy on my in-laws.
MattStratton has joined #ruby
<pontiki>
neither do i, tim
<DouweM>
LadyRainicorn: where is that the norm?
<LadyRainicorn>
But doesn't it seem inefficient to have everyone bring their own salada rather than just contribute money?
<pontiki>
we got married in 83, no one else was going to pay for ours
Speed has joined #ruby
<timgauthier>
by fiancées parents are giving us 5000€ for the wedding, and my parents have zilch to give us so we hope to save up some money SOMEHOW before then to help pay
<mg^>
LadyRainicorn: there's a big difference in perception
<timgauthier>
LadyRainicorn naw because then we'd have to make salads for everyone too
<timgauthier>
and we are only in canada about a week before our wedding, and still have to figure out where to stay for that time.
<pontiki>
ah, well, the *other* great American tradition is the Potluck
<mg^>
timgauthier: my wedding cost just over $5000 total including my wife's dress. It can be done.
<timgauthier>
then the fiancee's parents are coming and we are all renting a house for a week, then we go for vacation!
<mg^>
that was 12 years ago, inflation hasn't been that bad since
bthesorceror has quit [Ping timeout: 250 seconds]
<timgauthier>
mg^ yeah, we got the dress for 400, and I hope to get rings for about 120 and a suit for 200
LadyRainicorn has quit [Read error: Connection reset by peer]
Iniesta8 has joined #ruby
Iniesta8 has quit [Max SendQ exceeded]
<timgauthier>
its the flight that concerns us
LadyRainicorn has joined #ruby
<pontiki>
photographers, florists, food, space, and such are the big ticket items
<timgauthier>
yeah
<pontiki>
that's just for *one* place
vadzimt has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<mg^>
We solved the photographer problem in a fun way
<timgauthier>
actually space isn't bad here in germany
<pontiki>
oh good
<pontiki>
the bbq in the park thing is great
<timgauthier>
and photographer, I have very good photographers as friends so I've got someone who offered to do it for free
mary5030_ has joined #ruby
<mg^>
We bought disposable 35MM cameras, like 20 of them
<mg^>
and handed them out to random guests
<mg^>
and encouraged people with good cameras to bring them out
<timgauthier>
and the park only cost 400 for the day (okay thats a lot, and its more then an old factory cost us in germany)
mary5030_ has quit [Remote host closed the connection]
<pontiki>
back in the day, i was asked to do photography for some friends' weddings
<DouweM>
timgauthier: didn't you just say you shouldn't let guests work at the wedding? :)
<pontiki>
i did that with the pile of disposable cameras as well
<mg^>
so we ended up with something like 1500 pictures, and a subset of them were very nice.
<pontiki>
it worked out great
<timgauthier>
mg^ thats awesome for the reception, but for the ceremony its a pain in the ass having everyone more paying attention to the cameras then the actual wedding ;)
afreidah3 has joined #ruby
<pontiki>
i did the composed wedding shots, which they still wanted
<timgauthier>
DouweM i don't care if guests work at the wedding :P the bride does, but when i invited the friend they asked if i had a photographer, and then offered to do it, so thats awesome
phinfonet has joined #ruby
<pontiki>
but holy crap, after like doing 5 friends' weddings, i was sick of it
<DouweM>
timgauthier: ah nice of them
<timgauthier>
pontiki yeah friends turn into monsters at weddings. so I don't do any work for friends weddings
<pontiki>
more their families, but yeah
<timgauthier>
and I never do film at weddings, video is hard enough, but weddings are rediculous
Hanmac1 has joined #ruby
momomomomo has joined #ruby
<pontiki>
aunt jane and cousin maude have a blood fued going on, so they can't be next to each other
mary5030 has quit [Ping timeout: 258 seconds]
<pontiki>
WHO THE HELL ARE AUNT JANE AND COUSIN MAUDE AND WHY ARE YOU MAKING THIS MY PROBLEM?
Dude007 has joined #ruby
havenwood has quit [Remote host closed the connection]
<pontiki>
very unprofessional of me
atno has quit [Remote host closed the connection]
Celm has joined #ruby
kreantos has joined #ruby
<timgauthier>
do you want me to burn down the wedding? this is how you get me to burn down the wedding
nomenkun_ has quit [Ping timeout: 245 seconds]
danman_ has joined #ruby
nomenkun has joined #ruby
<timgauthier>
We only invited one person who we didn't want to invite, my aunt who I don't interact with. Cause mom.
<timgauthier>
families, why can't we truncate them?
ndrei has quit [Ping timeout: 258 seconds]
Hanmac has quit [Ping timeout: 245 seconds]
<DefV>
hm, I just pay for my own wedding so I invite only people I want
dagobah has quit [Quit: Leaving...]
<pontiki>
DROP TABLE relatives;
mary5030 has joined #ruby
<timgauthier>
haha
<olivier_bK>
how with regex i can get all caracter after one params ?
MattStratton has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<timgauthier>
it was more of a my mother wouldn't come if i didn't invite her sister who she doesn't get along with anyhow
<timgauthier>
but the 59 other people are awesome so that'll be okay
<pontiki>
a wedding never belongs to the wedding couple
<DefV>
timgauthier: the words you were looking for were "Fine, don't come then"
<LadyRainicorn>
olivier_bK: ?
<timgauthier>
pontiki correct, the wedding is a party for the family
lethjakman has joined #ruby
<DouweM>
pontiki: as you said, spend more on the honeymoon than the wedding :)
<timgauthier>
DefV that was very tempting, we discussed it
<pontiki>
^
ndrei has joined #ruby
<timgauthier>
:D
<timgauthier>
olivier_bK, yeah i didn't understand the question either, what does the param look like?
<olivier_bK>
LadyRainicorn, i try t oget all caracter after this params ['uid'] = (the params can be change)
<timgauthier>
gist ?
<pontiki>
my younger daughter got married a couple years ago, and although everyone i know is fabulous, she said there were still contentious moments.
<timgauthier>
oh, this question too
<timgauthier>
agian*
aspires has joined #ruby
Lewix has quit [Remote host closed the connection]
andrewlio has joined #ruby
<DouweM>
olivier_bK: I am very disturbed by your trying to parse PHP code. I can't imagine any good reason why you'd want to do that
jameswlane has joined #ruby
<timgauthier>
nothing good can come from it DouweM
<timgauthier>
:P
momomomomo has quit [Quit: momomomomo]
<pontiki>
maybe it's an exercise in learning to parse things with regexps
<pontiki>
but i rather think their shaving yaks
<timgauthier>
yeah
<pontiki>
they're
ccham_ has joined #ruby
<pontiki>
blah
<olivier_bK>
DouweM, because i must to generate a csv from php file
sambao21 has quit [Quit: Computer has gone to sleep.]
<olivier_bK>
timgauthier, is difficult to explain
<timgauthier>
are you converting a project from PHP to ruby?
<DouweM>
yeah, a simple JSON dump would be best. Otherwise, LadyRainicorn's suggestion looks all right
<timgauthier>
or is the PHP going to continue running and therefore you will be parsing the PHP on a regular basis? is this a thing that watches the PHP constantly or a script that you run at intervals?
gbt has quit [Quit: Leaving...]
marcdel has joined #ruby
<mg^>
yeah I'd convert the data on the PHP end to a portable format (JSON, XML, whatever) and then import it with Ruby using the appropriate library/gem on each end.
Spami__ has quit [Quit: This computer has gone to sleep]
cantonic has quit [Read error: Connection reset by peer]
djbkd has joined #ruby
<shevy>
so much php here!
ndrei has quit [Ping timeout: 258 seconds]
cantonic has joined #ruby
<pontiki>
so much!
<pontiki>
php!
<timgauthier>
pip!?
marcdel has quit [Client Quit]
crzrcn has joined #ruby
fveillette has joined #ruby
<mg^>
Well, you have to get off PHP and onto Ruby somehow :)
<fveillette>
I have a weird issue... puts ::File.exist?("C:\\abcde\\abc\\abc.exe") return me false but C:\\abcde\\abc\\abc.exe exist on that location on my server...
<Veejay>
No, now you can get into Hack instead
kobain has quit [Ping timeout: 240 seconds]
tkuchiki has joined #ruby
luriv has quit [Read error: Connection timed out]
larissa has joined #ruby
toastynerd has joined #ruby
<Veejay>
It's Facebook and typed. It works with scales.
hamakn has joined #ruby
<pontiki>
fveillette: you can use forward slashes in ruby libraries on windows, might be a little easier?
pietr0 has joined #ruby
browndawg has quit [Quit: Leaving.]
<fveillette>
pontiki i tried with both / and \\ but same result
ndrei has joined #ruby
<Veejay>
fveillette: Look at the Pathname class
sambao21 has joined #ruby
<timgauthier>
single quotes?
lw has quit [Quit: s]
kobain has joined #ruby
<pontiki>
well, i would suggest you've got something else wrong there -- why do you have double backslashes in the actual windows path?
<Veejay>
Pathname#join especially
<Veejay>
And to_path
<pontiki>
paste up some actual code and proof that the file exists outside of ruby?
obs has quit [Quit: Konversation terminated!]
timonv has quit [Remote host closed the connection]
<pontiki>
i doubt switching to using Pathname will fix the underlying problem
<pontiki>
since it just uses the File stuff in that case
crzrcn has quit [Ping timeout: 252 seconds]
<fveillette>
i see the file in front of my eye so yes the file exist :D
<pontiki>
i don't
<pontiki>
i don't see your code in front of my eyes either
afreidah3 has quit [Ping timeout: 276 seconds]
<fveillette>
hehe
<timgauthier>
and its very hard to replicate the issue without more information
<fveillette>
it's in chef context but should not change the ruby logic
<fveillette>
let me do for you a gist :D
<pontiki>
thank you
bthesorceror has quit [Remote host closed the connection]
lw has joined #ruby
babatz has quit [Ping timeout: 240 seconds]
<timgauthier>
you'd be surprised what causes issues
<timgauthier>
especially on windoze
nomenkun has quit [Remote host closed the connection]
djbender has quit [Quit: djbender]
bthesorceror has joined #ruby
bthesorceror has quit [Read error: Connection reset by peer]
kevinykchan has quit [Quit: Computer has gone to sleep.]
bthesorceror has joined #ruby
erikruthven has joined #ruby
canton7-mac has quit [Remote host closed the connection]
<lagweezle>
The concept irritates me and seems lazy. (nearly?) every time I've encountered it's use, 'truthy' and 'falsey' are treated the same as true and false. We're using computers. Something is true, or it is false. Exceptions to that are 'undefined' and dealing with floating point numbers.
<DouweM>
pedanticism ftw
<LadyRainicorn>
Those are singleton classes.
alex88 has quit [Quit: Leaving...]
djbkd has quit [Ping timeout: 245 seconds]
<LadyRainicorn>
Hmm, an undefined that excepts if used as a conditional would be an interesting feature
yfeldblum has quit [Ping timeout: 276 seconds]
<mg^>
You forgot FILENOTFOUND :)
<shevy>
I can not bear this channel anymore without any beer
mikecmpbll has quit [Ping timeout: 245 seconds]
<workmad3>
lagweezle: the most common time I encounter 'truthy' and 'falsey' is when someone is essentially checking if they have something
sk87 has quit [Quit: My Mac Mini has gone to sleep. ZZZzzz…]
<LadyRainicorn>
I don't see the relation to truthiness.
michaeldeol has joined #ruby
pel_daniel has joined #ruby
<LadyRainicorn>
Floats are weird, but always truthy.
blackavr has joined #ruby
banister has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
Gabri has quit []
<mg^>
Though in logic hardware there often are three line states, but the third state is due to deactivation, not because of a third possible value for a boolean.
Gabri has joined #ruby
enricostn has joined #ruby
<LadyRainicorn>
(Actually floats aren't that bad; the issue is with using them to represent decimals )
phansch has quit [Quit: WeeChat 0.4.2]
Es0teric has joined #ruby
<lagweezle>
Aside from floats, or 'true if x is in a range of plus/minus y' I don't see the need for truthy/falsey.
lyanchih has quit [Ping timeout: 245 seconds]
<workmad3>
LadyRainicorn: the problem with floats is that people assume they form a consistent algebra :)
binaryhat has quit [Quit: Leaving]
<workmad3>
lagweezle: how about 'true if file Foobar is present in the Fizzbuzz directory'? :P
<mg^>
I once saw a neat visual showing what was representable in IEEE 754, wish I could find it again.
<workmad3>
lagweezle: as by your definition of truthy/falsey in relation to float precision, that would also be a 'truthy'
erikruthven has joined #ruby
cantonic has quit [Quit: cantonic]
kevinykchan has joined #ruby
<workmad3>
lagweezle: a.k.a. you just changed 'truthy' to 'any conditional' and then claimed there was no need for them other than float precision :P
banister has joined #ruby
<enricostn>
hi there, I have a function and I need to find the first element in an array that returns something from that function (not nil) and return that something
<workmad3>
lagweezle: and you equated that to a truthy value
<lagweezle>
workmad3: My wording was very poor.
<workmad3>
lagweezle: indeed ;)
kaspergrubbe has quit [Remote host closed the connection]
funktor has joined #ruby
timonv has joined #ruby
<workmad3>
lagweezle: but still... your reasoning for floats basically applies to *any* conditional statement
x77686d has quit [Quit: x77686d]
<agent_white>
So. I want to override Array to have next/previous methods. Good idea to open the class or just make a new, childclass?
* lagweezle
ponders and tries again.
<LadyRainicorn>
How would those work?
meatherly has joined #ruby
<havenwood>
agent_white: my first thought would be #to_enum
blackavr has quit [Quit: blackavr]
<workmad3>
lagweezle: not to mention that what you're talking about is float comparison... which would always come out as true or false, not truthy or falsey :)
<agent_white>
havenwood: I was thinking about that as well. But enum doesn't have a previous method.
<agent_white>
havenwood: Just make my own?
niharvey|afk is now known as niharvey
djbkd has joined #ruby
<LadyRainicorn>
Yes.
<lagweezle>
workmad3: Truthy and falsey, at least to me, imply fuzziness. Things are true, or false. Undefined breaks out of that in some cases. The mention of floats was that when using them for maths, they don't quite work the way many expect them to.
echevemaster has joined #ruby
pen has quit [Remote host closed the connection]
<agent_white>
LadyRainicorn/havenwood: Roger that! :)
astrofog has joined #ruby
rippa has joined #ruby
<workmad3>
lagweezle: that's a fair comment... 'truthy' meaning 'true enough' or 'accurate enough'
<lagweezle>
workmad3: I'm not saying that truthy/falsey should be used with floats, but more that floats may need to be treated differently, where "true" will often need a plus/minus range if doing normal math with them then checking to see if x == y.
<workmad3>
lagweezle: floats are hardly the only place that fuzziness makes sense though
fgo has quit [Ping timeout: 276 seconds]
iamjarvo has quit [Ping timeout: 245 seconds]
<lagweezle>
Aye.
funktor has quit [Ping timeout: 258 seconds]
<agent_white>
So. If anyone in the Colorado area is looking for an intern/coffee-bot. Let me know! :D
<lagweezle>
I'm just generally against the use of truthy/fals(e)y and think the adoption of the terms is bad.
<workmad3>
lagweezle: in reality, the use of 'truthy' is really just a way of saying 'I'm going to treat this arbitrary object as either true or false in a boolean expression'
<tobiasvl>
some of the problem is probably that in ruby, the boolean values are the same as the english words
<workmad3>
lagweezle: with objects that get treated as equivalent (not equal) to 'true' being 'truthy' etc.
<tobiasvl>
if we could say "is that value TRUE or true" then we wouldn't have to say "truthy" :P
akonny has joined #ruby
lkba has quit [Ping timeout: 250 seconds]
<tobiasvl>
"1 is true, but it's not Bool::TRUE" ;P
kreantos has quit [Quit: Page closed]
<workmad3>
tobiasvl: 1 is equivalent to true when used in boolean expressions
zigomir has quit [Remote host closed the connection]
<timgauthier>
tobiasvl if you don't like how ruby works... then don't use ruby! ?
<timgauthier>
the fact that it isn't so precise is why it is such a nice language for newbs like me!
<workmad3>
tobiasvl: as a slightly more formal way of stating that :)
sk87 has joined #ruby
<timgauthier>
and the truthy aspect of ruby is one of its defining characteristics
<shevy>
my sex appeal is truthy
<timgauthier>
shevy isn't sexxy
<shevy>
neither is php YET YOU USED IT!!!
<tobiasvl>
timgauthier: hey don't worry, I love ruby. just saying that the need for the words "truthy" and "falsey" arise from the fact that the boolean values are called "true" and "false" and we need to separate the two concepts somehow
<timgauthier>
naw
<timgauthier>
truthy is fun
<timgauthier>
like rubyrific!
<timgauthier>
it gets rid of that "PROGRAMMER" feel
<tobiasvl>
yeah, i think so, but lagweezle doesn't apparently
<agent_white>
Programmers, ewwwww!
<workmad3>
shevy: yeah... -Float::INFINITY is still truthy ;)
nvrch has quit [Quit: nvrch]
obscured has joined #ruby
jcs222 has joined #ruby
<lagweezle>
How about "does it evaluate as true?" instead?
<certainty>
Float::NAN
<timgauthier>
:P
<LadyRainicorn>
Pretty much everything works like that.
<LadyRainicorn>
Even assembly has truthiness.
<timgauthier>
what i like about truthy is that it states, its true, or its there
<workmad3>
lagweezle: that's what 'truthy' is ;)
<agent_white>
LadyRainicorn: Have you seen Rick & Morty? You may like it!
<timgauthier>
it's *
<tobiasvl>
LadyRainicorn: well, assembly ONLY has truthiness, not actual true/false values, doesn't it?
<workmad3>
lagweezle: although I'd prefer the phrasing 'evaluates as true in a boolean expression'
lethjakman has joined #ruby
<LadyRainicorn>
No, what is it?
rezzack has quit [Quit: Leaving.]
<LadyRainicorn>
Well there are boolean flags in x86.
<timgauthier>
i like truthy
emaxi has joined #ruby
<workmad3>
lagweezle: as the evaluate is specific to the that context :)
<slash_nick>
So why not just double bang all the things to determine truthiness?
<lagweezle>
workmad3: Given the lack of time saved, I don't see a point to having 'truthy' or 'falsey' exist. :/
<lagweezle>
slash_nick: hawt!
<agent_white>
LadyRainicorn: It's my second to Adventure Time at the moment. It's like Adventure Time 'cept universe-dimension tavels.
<agent_white>
s/travels
mark_locklear has quit [Ping timeout: 258 seconds]
<LadyRainicorn>
:o cool
<centrx>
All is truey except what is falsey
<slash_nick>
i'm down with an Object#truthy? Object#falsey?... i figure it'd just be sugar for !!obj
<workmad3>
lagweezle: because it's really fricking annoying saying "I'm going to treat this object Foobar as true within this boolean comparison" compared to "this object Foobar is truthy"
x77686d has joined #ruby
<tobiasvl>
lol
kidoz has joined #ruby
<workmad3>
lagweezle: that's kinda the point of introducing a term for it in the first place ;)
supermar_ has joined #ruby
<LadyRainicorn>
!! is actually not the arbiter of truthiness.
<LadyRainicorn>
Truthiness is inherent, whereas ! isn't.
ghr has joined #ruby
sambao21 has quit [Quit: Computer has gone to sleep.]
<LadyRainicorn>
I think workmad3 is mad.
* LadyRainicorn
passes the peace pipe.
vpretzel|lunch is now known as vprezel|941
banister has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
Lewix has joined #ruby
Gabri has quit []
marr has joined #ruby
<workmad3>
LadyRainicorn: yes I am :)
Gabri has joined #ruby
supermarin has quit [Ping timeout: 240 seconds]
kenneth has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<slash_nick>
truthiness is inherent... i wouldn't want people saying @obj is falsey but I need it to be truthy. still, a method for programmatically discovering an object's truthiness is necessary... !! is the best i've seen
supermar_ has quit [Remote host closed the connection]
bklane has joined #ruby
supermarin has joined #ruby
mark_locklear has joined #ruby
* lagweezle
twitches.
r_rios has joined #ruby
<workmad3>
slash_nick: you can override !
<LadyRainicorn>
But not truthiness.
<workmad3>
^^
ghr has quit [Ping timeout: 240 seconds]
<workmad3>
slash_nick: if you want a programmatic way, you're looking at something like 'def truthy(obj); obj ? true : false; end'
<LadyRainicorn>
(In Python you can. I really wish it were possible in Ruby too.)
LadyRainicorn has quit [Read error: Connection reset by peer]
<timgauthier>
why the heck is this css rule being over ridden, and what is overriding it?!
LadyRainicorn has joined #ruby
<slash_nick>
workmad3, LadyRainicorn: gotchas
bthesorceror has quit [Remote host closed the connection]
<workmad3>
slash_nick: and then just to make lagweezle twitch, you define the invese... 'def falsey(obj); obj ? false : true; end' and write 'obj = 'foo'; puts "I exist purely to annoy lagweezle" if falsey(obj) || truthy(obj)'
einarj has quit [Remote host closed the connection]
<timgauthier>
is this that wolf game?
<shevy>
dunno
<shevy>
but I suspect the programmers forgot to remove a test animation
apeiros has quit [Ping timeout: 250 seconds]
<timgauthier>
or the person replaced it
<shevy>
hahaha
<timgauthier>
because the character isn't responding either
Lewix has quit [Remote host closed the connection]
<shevy>
or perhaps it is a genius idea to make the game more hilarious :-)
RaptorJesus has quit [Ping timeout: 252 seconds]
<timgauthier>
awesome art style
<shevy>
well perhaps he was supposed to just lie down somewhere, aching in pain
<shevy>
instead he decides to do a floating pole dance dance
sambao21 has quit [Ping timeout: 250 seconds]
JoeGaudet has quit [Quit: Computer has gone to sleep.]
crystal77 has quit [Quit: Computer has gone to sleep.]
<timgauthier>
yeah
<timgauthier>
no i think he's supposed to be leaning on the desk
<timgauthier>
and then active listening animation is supposed to play
timonv has joined #ruby
havenwood has joined #ruby
dapz has joined #ruby
Sawbones has joined #ruby
supermarin has joined #ruby
fgo has joined #ruby
geopet has joined #ruby
<shevy>
lol
agent_white has quit [Quit: brb]
dapz has quit [Client Quit]
Al__ has quit [Quit: Al__]
dapz has joined #ruby
treehug88 has joined #ruby
danijoo has quit [Read error: Connection reset by peer]
danijoo has joined #ruby
<xybre>
Is there a Unicorn webserver specific channel?
bthesorceror has quit [Remote host closed the connection]
mjs2600 has joined #ruby
bthesorceror has joined #ruby
mjs2600 has quit [Remote host closed the connection]
atno has joined #ruby
dapz has quit [Client Quit]
<centrx>
xybre, Did you try #unicorn
<centrx>
So, hash[x][y] vs hash[[x,y]]
<timgauthier>
i'd be afraid to jointhat
<timgauthier>
probably full of weird bronies
rmorello is now known as rmorello|1136
fgo has quit [Ping timeout: 240 seconds]
<timgauthier>
imma go eat
<xybre>
#unicorn has 8 people in it according to channels stats, so I didn't bother.
<centrx>
Yeah they don't even have a topic
Iniesta8 has joined #ruby
Iniesta8 has quit [Max SendQ exceeded]
<LadyRainicorn>
Unicorns are fun!
sdouglas has quit [Remote host closed the connection]
agent_white has joined #ruby
crystal77 has joined #ruby
agent_white has quit [Client Quit]
agent_white has joined #ruby
<shevy>
hehe
dapz has joined #ruby
rezzack has joined #ruby
sambao21 has joined #ruby
benzrf|offline is now known as benzrf
bthesorceror has quit [Ping timeout: 265 seconds]
crystal77 has quit [Client Quit]
<benzrf>
timgauthier: why do u fear the pony
etqqkoiflwhb has joined #ruby
* LadyRainicorn
sings the ponicorn song.
mehlah has quit [Quit: Leaving...]
agent_white has quit [Read error: Connection reset by peer]
crystal77 has joined #ruby
dapz has quit [Client Quit]
andy___ has quit [Remote host closed the connection]
<benzrf>
my little pony, my little pony
erikruthven has joined #ruby
<benzrf>
aah-aah-aah-aaaaah....
Gabri has quit []
senayar_ has joined #ruby
agent_white has joined #ruby
<shevy>
omg
pskosinski has quit [Quit: Til rivido Idisti!]
<shevy>
benzrf was raised as a girl
<LadyRainicorn>
:o
bklane has quit [Quit: Leaving...]
r_rios has quit [Quit: No Ping reply in 180 seconds.]
* Hanmac
remembers a GravityFalls episode where GuncleStan Shows the Tourists a "Unicorn made out of corn!" ;P
mjs2600 has joined #ruby
x77686d has quit [Quit: x77686d]
x1337807x has joined #ruby
crystal77 has quit [Client Quit]
r_rios has joined #ruby
_justin has quit [Quit: _justin]
dapz has joined #ruby
WilfredTheGreat has joined #ruby
senayar has quit [Ping timeout: 265 seconds]
noop has joined #ruby
agent_white has quit [Ping timeout: 252 seconds]
jprovazn_afk is now known as jprovazn
MattStratton has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
agent_white has joined #ruby
phansch has joined #ruby
alekst has joined #ruby
sambao21 has quit [Quit: Computer has gone to sleep.]
<benzrf>
shevy: holy shit way to enforce the gender binaryhat
<benzrf>
*binary
benzrf is now known as benzrf|offline
kidoz has quit [Quit: Ухожу я от вас]
sambao21 has joined #ruby
cmarques has joined #ruby
sigurding has joined #ruby
<havenwood>
agent_white: any luck with the #pred situation, curious what you came up with if you've given it a stab?
roolo has joined #ruby
fuzzyhorns has quit [Quit: Leaving.]
vadzimt has joined #ruby
<agent_white>
havenwood: Ah not quite yet! Actually diving into it now, and trying to see if I really need it :P
lw has joined #ruby
hiall has quit [Ping timeout: 258 seconds]
pen has quit [Ping timeout: 252 seconds]
sepp2k has joined #ruby
Kricir has joined #ruby
<agent_white>
havenwood: I'm writing an IRC client in Ncurses, and was looking at it for scrolling since when I bump up/down the window, I need to add the next or previous line in the buffer.
vadzimt has quit [Client Quit]
simplyaubs has quit [Quit: simplyaubs]
<agent_white>
Not sure if turning the whole array to an enum each time is the most efficient?
<Hanmac>
Psy-Q are you shure its to new? maybe your readline is to old?
Eiam has quit [Quit: ╯°□°)╯︵ǝpouǝǝɹɟ]
<Psy-Q>
it's readline 6.3, debian stable still ships with 5.2
<Hanmac>
Psy-Q: try to run this "apt-get build-dep ruby2.0"
<Psy-Q>
and i've compiled 2.1.1 against readline 5.2 before, that seems to work
figgleberry has joined #ruby
<Psy-Q>
Hanmac: okay, will install those deps and make clean/make on a vanilla ruby
figgleberry has quit [Client Quit]
lmickh has quit [Quit: No Ping reply in 180 seconds.]
<Hanmac>
readline-6.3 should be supported from the changelog ... it could be that the headers are missing
Kricir has quit [Remote host closed the connection]
lmickh has joined #ruby
<Psy-Q>
i have libreadline-dev:amd64 installed, that should be the headers it needs, right?
figgleberry has joined #ruby
noober03 has joined #ruby
<Hanmac>
hm it should
<Psy-Q>
Hanmac: same error after installing those deps
cantonic has joined #ruby
cantonic has quit [Client Quit]
jprovazn has quit [Quit: Odcházím]
<Psy-Q>
this is with debian-unstable from today (upgraded 30 minutes ago). maybe it's a debian problem
<shevy>
debian is usually a problem
<AlexRussia>
shevy: shevy!
<noober03>
does anyone know how to add a route with dashes in the name?
<Psy-Q>
debian is fine :P but unstable means unstable sometimes
<shevy>
the fact that people have to uncripple their system by having to search for arbitrary names of packages is testimony to what is all wrong on debian
bthesorceror has joined #ruby
JoeGaudet has joined #ruby
<Psy-Q>
shevy: i know i'm not on a stable distribution, that's why it's called unstable
<Psy-Q>
none of these issues on wheezy
<Hanmac>
Psy-Q: hm maybe it was a fixed ruby problem? did you try ruby-trunk?
<shevy>
you don't even know the name of the package
afex has joined #ruby
<Psy-Q>
Hanmac: ah! will try
lmickh has quit [Remote host closed the connection]
<Psy-Q>
shevy: which package? libreadline-dev has the headers, it does use them properly, but something else is going wrong
cornfeedhobo has joined #ruby
<AlexRussia>
shevy: you should try #subtle :)
<shevy>
Psy-Q I would not know what package splitup they did, it was you who asked what was the right package :-)
<Psy-Q>
shevy: i just wanted to confirm :)
<Psy-Q>
it's usually headers in -dev, binaries in the main package
<Psy-Q>
but it seems the headers aren't the problem
andy__ has joined #ruby
pen has quit []
helpD has joined #ruby
GaryOak_ has joined #ruby
donnoc_ has joined #ruby
<shevy>
what is the new error
<cornfeedhobo>
hello, i am very new to ruby and am trying to solve small tasks to learn...
<shevy>
cornfeedhobo good!
cescalante is now known as ce_afk
<cornfeedhobo>
what would you guys suggest i use to round up to the nearest GB for a unit
apeiros has joined #ruby
<Senjai>
cornfeedhobo: Well seeing as though a unit could be anything
<Psy-Q>
trying nightly snapshot now
<cornfeedhobo>
i thought about converting to MB and dividing, but the logic there gets long for something that seems simple
<Senjai>
cornfeedhobo: Converting what to mb
<cornfeedhobo>
Senjai: sorry, for example, if i want to use 75% of installed RAM
<shevy>
cornfeedhobo other people should have solved that before you
bthesorceror has quit [Ping timeout: 276 seconds]
diegoviola has quit [Quit: WeeChat 0.4.3]
workmad3 has quit [Ping timeout: 250 seconds]
jds has joined #ruby
grzywacz has joined #ruby
<cornfeedhobo>
16GB gives a real world value of 15.55, which 75% of is 11.xxx GB
<cornfeedhobo>
it would seem rational to round up to the nearest whole value
lmickh has joined #ruby
wallerdev has joined #ruby
<cornfeedhobo>
lol. nvm
<Psy-Q>
yes, the problem is fixed in trunk, 2.2.0-rwhatever compiles fine
<tobiasvl>
stephenmac7: that's a good attitude, and yes, it's possible (but hacky and rarely necessary - if you have an instance it will have called initialize())
vprezel|941 has quit [Remote host closed the connection]
lw has joined #ruby
<shevy>
stephenmac7 yeah set it in initialize(), or call a method from initialize. I like to call a method called reset()
<tobiasvl>
stephenmac7: using an accessor isn't REALLY doing it outside of a method though
funktor has joined #ruby
<stephenmac7>
True.
vprezel|941 has joined #ruby
<tobiasvl>
stephenmac7: an accessor is just shorthand for def x=(value); @x = value; end
<tobiasvl>
so
<Hanmac>
shevy why not?
<Hanmac>
>> object = Object.new; object.singleton_class.instance_variable_set(:@a, 'dog'); p object.singleton_class.instance_variables
arietis has quit [Quit: Computer has gone to sleep.]
MattStratton has joined #ruby
alem0lars has quit [Quit: Going AFK...]
Fractional_ has quit [Read error: Connection reset by peer]
Fractional_ has joined #ruby
mansi has joined #ruby
funktor has quit [Read error: Connection reset by peer]
jxf has joined #ruby
funktor has joined #ruby
crzrcn has quit [Quit: Leaving.]
Xeago has joined #ruby
RowdyChildren is now known as RowdyChild|Away
<shevy>
we need more action
_maes_ has quit [Read error: Connection reset by peer]
Lewix has quit [Remote host closed the connection]
sigurding_ has joined #ruby
mjs2600 has quit [Remote host closed the connection]
pu22l3r_ has joined #ruby
jespada has quit [Quit: Leaving]
sigurding has quit [Ping timeout: 265 seconds]
sigurding_ is now known as sigurding
kpshek has quit []
alem0lars has joined #ruby
pu22l3r has quit [Ping timeout: 245 seconds]
andrewlio has quit [Quit: Leaving.]
Lewix has joined #ruby
simplyaubs has joined #ruby
rrios has quit [Ping timeout: 276 seconds]
Bumptious has joined #ruby
wallerdev has quit [Quit: wallerdev]
yubrew_ has joined #ruby
MattStratton has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
Macaveli has joined #ruby
x1337807x has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
Lewix has quit [Remote host closed the connection]
ws2k33 has quit []
SCommette has quit [Quit: SCommette]
figgleberry has quit []
<lagweezle>
I can complaign about truthy/falsey again...
mrgoodcat is now known as dyladan
zigomir has joined #ruby
yubrew has quit [Ping timeout: 245 seconds]
<shevy>
ok
<shevy>
lagweezle let it out man
<shevy>
don't let the anger add up
afreidah4 has joined #ruby
<lagweezle>
hehehe
Macaveli has quit [Client Quit]
x77686d has quit [Quit: x77686d]
fuzzyhorns has joined #ruby
afreidah3 has quit [Ping timeout: 276 seconds]
ellbot has quit [Remote host closed the connection]
skulker has quit []
funktor_ has joined #ruby
stosh has quit [Ping timeout: 265 seconds]
ellbot has joined #ruby
Eiam has quit [Quit: ╯°□°)╯︵ǝpouǝǝɹɟ]
funktor has quit [Read error: Connection reset by peer]
GaryOak_ has quit [Remote host closed the connection]
supermarin has quit [Remote host closed the connection]
anaeem1 has joined #ruby
gregf has quit [Quit: WeeChat 0.4.3]
<RubyPanther>
def truthy? ; true? or almost? and horseshoes? end
mengu has joined #ruby
mengu has joined #ruby
alem0lars has quit [Quit: alem0lars]
Sawbones has quit []
bluOxigen has quit [Ping timeout: 276 seconds]
ellbot has quit [Ping timeout: 252 seconds]
phinfonet has quit []
vlad_starkov has quit [Remote host closed the connection]
phinfonet has joined #ruby
robbyoconnor has joined #ruby
ndrei has quit [Ping timeout: 250 seconds]
crzrcn has joined #ruby
SCommette has joined #ruby
lw has joined #ruby
lw has quit [Max SendQ exceeded]
_maes_ has joined #ruby
donnoc has quit [Remote host closed the connection]
lw has joined #ruby
shashank_rs has joined #ruby
donnoc has joined #ruby
dawkirst has joined #ruby
mjs2600 has joined #ruby
noop has quit [Ping timeout: 252 seconds]
lw has quit [Client Quit]
aniM has quit [Remote host closed the connection]
bluehavana has joined #ruby
afex has quit [Ping timeout: 245 seconds]
etqqkoiflwhb has quit [Ping timeout: 240 seconds]
mark_locklear has quit [Ping timeout: 240 seconds]
madb055 has quit [Ping timeout: 265 seconds]
<sdelmore>
Anyone know the method I need to make to have my ruby classes awesome_printable? I just started using awesome print and love it, but my own classes I create don't have the nice formatting that built in objects have.
djbkd has quit [Remote host closed the connection]
<Hanmac>
hm seems that your classes are not "youthful" enough ;P
<crome>
only awesome classes can be awesome printed
etqqkoiflwhb has joined #ruby
davedev24 has quit [Read error: Connection reset by peer]
<sdelmore>
Still learning my way around ruby documentation. It is really nice when debugging to just do "ap my_object" and see a nicely formatted output but I haven't figured out how to make it work with my own objects.
jrhe has quit [Quit: Connection closed for inactivity]
davedev24 has joined #ruby
SHyx0rmZ has joined #ruby
sambao21 has joined #ruby
<Hanmac>
hm there might be some kind of trick behind ... maybe you need to have "object.awesome?" return true? </sarcasm>
bthesorceror has quit [Remote host closed the connection]
bthesorceror has joined #ruby
michaeldeol has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
bthesorceror has quit [Remote host closed the connection]
mehlah has joined #ruby
afex has joined #ruby
ndrei has joined #ruby
<sdelmore>
Are there other more popular pretty printers, or is this just not done much in ruby land?
fubelly has joined #ruby
<baweaver>
pry, show-doc Array#length
quitobro has joined #ruby
<baweaver>
pry is your friend
Azure has quit [Quit: My MBP went to sleep.]
<baweaver>
learn it, live it, love it.
mehlah has quit [Client Quit]
XenoWolf has joined #ruby
<jhass>
sdelmore: what do you get, what do you expect?
<shevy>
timgauthier tell me what you expect a ruby project capable of doing that wants to do multimedia related stuff
<shevy>
awesome print has this colour overflow
<timgauthier>
hmm
dawkirst has joined #ruby
<timgauthier>
whats the question?
<shevy>
I sticked to pretty print
<shevy>
timgauthier that was the question! it is purposely broad as a category
<timgauthier>
but i don't know what you are asking
vpretzel_ has joined #ruby
<shevy>
timgauthier k what do you expect from any ruby project that wants to deal with multimedia information?
<timgauthier>
ah
<shevy>
shoot out features
* shevy
waits...
<timgauthier>
what would the ruby thing do?
<shevy>
precisely, that's the question! hahaha :D
<shevy>
oh man...
<jhass>
sdelmore: that's just the AR special casing in awesome_print
<timgauthier>
you need EXIF data for anything images
Eiam has joined #ruby
<shevy>
ok
<timgauthier>
but like
<timgauthier>
you gotta work backwards
<sdelmore>
jhass: Yeah, I was hoping there was a hook to add my own special casing so I could make my classes pretty print.
<jhass>
sdelmore: since AR has an internal attributes hash and uses method_missing to delegate to that, it makes sense. It's not something you'd do in your POROs
<timgauthier>
what would the project is a web based tool for managing multimedia?
helpD_ has joined #ruby
<jhass>
sdelmore: well, just figure out what method it calls on the object
<sdelmore>
Exactly, been looking through that code for the past half an hour, don't quite get what it is doing.
rippa has quit [Quit: {#`%${%&`+'${`%&NO CARRIER]
vprezel|941 has quit [Ping timeout: 252 seconds]
fubelly has left #ruby ["Leaving..."]
<jhass>
where are you stuck?
<sdelmore>
Seems like it might be calling the ai method on a class, but I can't tell what it expects the output to be. Not having types is still hard for me.
<jhass>
well, it just puts the result, so a string or something that responds to #to_s properly
gsvolt_ has joined #ruby
gsvolt has quit [Ping timeout: 250 seconds]
<sdelmore>
Oh geez, I didn't realize that is all I needed to do.
oponder has quit []
omosoj has quit [Ping timeout: 240 seconds]
<Eiam>
if we moved our dev env to run via Nginx instead of via Padrino c /rails c, is there some way i can pass through a binding.pry to launch a debug console now?
<webgen>
just posting over here if there are anymore noobs, there is a course on edx.org starting 18th of april (2days). it is a berkley course and my hopes are high, register if u are interested!
<shevy>
timgauthier no real limitation really, it always starts from commandline first though, but then should not be limited, whether it is GUI or web-based
<webgen>
Engineering Software as a Service this is the name of the course, uses RoR
donnoc has joined #ruby
apeiros_ has joined #ruby
<timgauthier>
there needs to be limits ;)
cornfeedhobo has left #ruby ["when i leave, come together like butt cheeks"]
<timgauthier>
you got to start with a product idea before you make a product ;)
mehlah has joined #ruby
<sdelmore>
jhass, I just defined a to_s method on my object, returning "stuff goes here" for a simple test, but it doesn't output that. Can you tell how I identify what method I would need to define?
<timgauthier>
I have a thing I want to make, but i don't know how to make it yet. Its like github for recipes
<ricer>
gizmore: Ruby Exception: "undefined method `has_permission_in?' for #<Ricer::Plugin::Channel::Partu:0x00000004fe06d8>" in app/models/ricer/plugin/channel/partu.rb:16:in `part'.
<crome>
hahaha
<gizmore>
rails irc bot
<gizmore>
,perf
<ricer>
gizmore: Memory: 140 MB (140 MB max). DB: 2994 queries in 3690.721331132 (0.81 queries per second). Threads: 17 (29 max). PID: 21860. CPU usage: 0.60%
<gizmore>
,raw PART #ruby :gizmore is gay
ricer has left #ruby ["gizmore is gay"]
callenb has joined #ruby
klaut has joined #ruby
sambao21 has quit [Quit: Computer has gone to sleep.]
momomomomo has joined #ruby
hiall has joined #ruby
jprovazn has quit [Quit: Odcházím]
codebro has quit [Ping timeout: 258 seconds]
Celm has quit [Remote host closed the connection]
ghr has joined #ruby
<timgauthier>
so what are you building shevy
funktor_ has quit [Remote host closed the connection]
kyb3r_ has joined #ruby
wallerdev has quit [Quit: wallerdev]
sailias has quit [Read error: Connection reset by peer]
<agent_white>
Lawd I hate regex. Finding shit by splitting the string then throwing the array to a lambda seems so much easier.
<timgauthier>
hahaha
<timgauthier>
actually it does :O
erikruthven has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
sambao21 has joined #ruby
mansi has quit [Ping timeout: 240 seconds]
mansi has joined #ruby
ixti has joined #ruby
<shevy>
timgauthier well... I just decided that I will merge two projects of mine into a larger one
<timgauthier>
sweet, what are they?
<shevy>
'multimedia' and 'videotools'
<timgauthier>
what does multimedia do?
ghr has quit [Ping timeout: 245 seconds]
dyladan is now known as mrgoodcat
<shevy>
I'll also have to add a test suite from scratch :(
<shevy>
timgauthier initially it just wanted to be a wrapper over all sorts of conversions, from .flv to .avi and so forth and so on, trying to use "smart defaults" without me having to think about it on the commandline
agent_white has quit [Quit: be back in a bit]
tvw has quit []
<timgauthier>
ah neat
Avahey_ has quit [Quit: Connection closed for inactivity]
yalue has quit [Quit: Leaving]
anaeem1 has quit [Remote host closed the connection]
BizarreCake has quit [Ping timeout: 258 seconds]
skaflem has quit [Quit: Leaving]
Squarepy has quit [Quit: Leaving]
Celm has joined #ruby
bthesorceror has joined #ruby
fuzzyhorns has quit [Quit: Leaving.]
fuzzyhorns has joined #ruby
x1337807x has joined #ruby
senayar_ has quit [Remote host closed the connection]
<timgauthier>
its all fancy type and nice flowery language, then you get to the first sample thing under going incremental and its ugly
crzrcn has quit [Quit: Leaving.]
<shevy>
lol
<shevy>
dont worry
<shevy>
when they have added Makefiles it will all get better
<timgauthier>
when a language has a feature called uglify y'know
<timgauthier>
i'm not really sure WHAT they're showing, or even what a makefile is after reading that
<timgauthier>
i'm more interested in, how did they change the colour of those scrollbars
senayar has joined #ruby
crzrcn has joined #ruby
Krajsnick has joined #ruby
hackman127 has joined #ruby
gizmore has quit [Remote host closed the connection]
<shevy>
wat
<shevy>
hehehe
<shevy>
damn designers
<shevy>
they look for the colours and UI rather than the features first
theRoUS has quit [Ping timeout: 252 seconds]
Avahey_ has joined #ruby
paolooo has joined #ruby
sailias has joined #ruby
etqqkoiflwhb has quit [Quit: Computer has gone to sleep.]
theRoUS has joined #ruby
<bricker>
shevy: one of my designers couldn't handle that someone's name was too long to fit into his design
<shevy>
lol
fuzzyhorns has quit [Quit: Leaving.]
kyb3r_ has quit [Quit: Leaving]
kyb3r_ has joined #ruby
<shevy>
who was the guy here who played with method_missing lately?
<timgauthier>
not all designers do shevy
<shevy>
here is another cool snippet:
<shevy>
def method_missing(m)
<shevy>
DELEGATE_TO_CONFIG.include?(m.to_sym) ? config.send(m) : super
<shevy>
<timgauthier>
though I do look at colours and typography first, as i find they are a skeleton
<timgauthier>
but i always start with a page full of content, and a designer that doesn't want to deal with a users name being too long isn't a designer
<timgauthier>
designers are supposed to solve problems, yes it sucks that the field you created is limited in length and you may have to deal with content that is too long for it. One of the golden rules of design is that you need to throw out your favourite element, it usually is the shittiest and the thing holding the design back
northfurr has joined #ruby
luriv has quit [Ping timeout: 258 seconds]
hiall has quit [Quit: hiall]
omosoj has joined #ruby
gsvolt has joined #ruby
<hackman127>
I have a sinatra server process that is restarting itself on a regular basis without giving me any trace in the logs. Any idea how I can get some error output to try to debug?
<bricker>
hackman127: "restarting itself"?
AxonetBE has joined #ruby
havenwood has quit []
<bricker>
hackman127: Does Sinatra have a built-in process manager?
bradhe has joined #ruby
<bricker>
hackman127: what server are you actually using? Sinatra is a ruby framework, not a server
<timgauthier>
a tweet of mine from ages ago just got retweeted twice :(
<hackman127>
bricker, clients are complaining about getting kicked out of the app, so I put some log messages that will tell me when the process starts and they are showing up quite regularly.
<timgauthier>
and some weirdo spamming me on query
postmodern has joined #ruby
<bricker>
hackman127: well if you're using Passenger or another multi-threaded or multi-process server (which you should be in production), that is expected
<bricker>
hackman127: how are you running your Sinatra app?
mansi has quit [Remote host closed the connection]
<hackman127>
bricker, I'll have to look. Honestly, it's a legacy app that I haven't paid much attention to in longer than I'd care to admit. :-)
shashank_rs has quit [Ping timeout: 240 seconds]
jottr has joined #ruby
jottr is now known as elementz
codebro has joined #ruby
paolooo has quit [Ping timeout: 240 seconds]
emaxi has quit [Remote host closed the connection]
eyeamaye has joined #ruby
michaeldeol has joined #ruby
olivier_bK has joined #ruby
emaxi has joined #ruby
<hackman127>
bricker, yes, it is using passenger. It makes sense to see multiple startups if it's threading, just not sure about clients getting the boot while going about their business on the app.
morenoh153 has joined #ruby
timonv has quit [Remote host closed the connection]
<bricker>
hackman127: what do you mean getting kicked off? Like, they're logged out of their session?
madb055 has joined #ruby
ninegrid has quit [Ping timeout: 252 seconds]
arietis has joined #ruby
momomomomo has quit [Quit: momomomomo]
emaxi_ has joined #ruby
emaxi has quit [Read error: Connection reset by peer]
<hackman127>
bricker, exactly. They will be doing their work and next thing they know they are staring at the login screen like they have logged out. They are not hitting session timeouts, it's like the process has just restarted with empty sessions.
mansi has joined #ruby
theRoUS has quit [Ping timeout: 252 seconds]
ellbot has joined #ruby
ellbot has quit [Remote host closed the connection]
<bricker>
hackman127: where are the sessions being stored?
AxonetBE has quit [Quit: AxonetBE]
ndrei has quit [Ping timeout: 252 seconds]
theRoUS has joined #ruby
gregf has joined #ruby
treehug8_ has joined #ruby
popl has joined #ruby
popl has joined #ruby
qmfnp has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
MattStratton has joined #ruby
saarinen has joined #ruby
<hackman127>
bricker, not sure. Looking
zB0hs has joined #ruby
treehug88 has quit [Read error: Connection reset by peer]
jkamenik has quit [Quit: Leaving.]
momomomomo has joined #ruby
funktor has joined #ruby
Seaweed17 has quit [Quit: Leaving]
alexju has quit [Remote host closed the connection]
<timgauthier>
ohm time to go Skype the fiancée
GaryOak_ has joined #ruby
lkba has joined #ruby
obscured has quit [Quit: leaving]
qmfnp has joined #ruby
kirun has quit [Quit: Client exiting]
jackneill has quit [Remote host closed the connection]
fbernier has quit [Read error: Connection reset by peer]
arietis has quit [Quit: Computer has gone to sleep.]
pu22l3r_ has quit [Ping timeout: 265 seconds]
sigurding has quit [Quit: sigurding]
ndrei has joined #ruby
timonv has joined #ruby
erikruthven has joined #ruby
aspiers has quit [Ping timeout: 258 seconds]
wallerdev has joined #ruby
spacebug has quit [Ping timeout: 240 seconds]
grzywacz has quit [Ping timeout: 258 seconds]
saarinen has quit [Quit: saarinen]
andrewlio has joined #ruby
jxf has quit [Ping timeout: 252 seconds]
funktor has quit [Remote host closed the connection]
sdouglas has quit [Remote host closed the connection]
aspires has joined #ruby
funktor has joined #ruby
SHyx0rmZ has quit [Quit: ネウロイを負かさなきゃならないね]
alexju has joined #ruby
roland has joined #ruby
phansch has quit [Quit: WeeChat 0.4.2]
supermar_ has joined #ruby
Briareos1_ has joined #ruby
Briareos1 has quit [Ping timeout: 250 seconds]
sailias has quit [Quit: Leaving.]
fuzzyhorns has joined #ruby
<hackman127>
bricker, I think I may be getting a bit above my pay grade. I'm going to have to do more research. Thanks for the help.
elementz has quit [Ping timeout: 265 seconds]
paulfm has quit []
momomomomo has quit [Quit: momomomomo]
supermarin has quit [Ping timeout: 276 seconds]
pushpak has joined #ruby
momomomomo has joined #ruby
Dude007 has joined #ruby
Shidash has quit [Ping timeout: 265 seconds]
<olivier_bK>
hy
bthesorceror has quit [Remote host closed the connection]
treehug8_ has quit []
treehug88 has joined #ruby
bthesorceror has joined #ruby
<bricker>
hackman127: :)
r_rios has joined #ruby
sdouglas has joined #ruby
chipotle has quit [Quit: cya]
ziyadb_ has quit []
<olivier_bK>
i have a probleme that i cant resolved
ziyadb_ has joined #ruby
x1337807x has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
bradhe has quit [Remote host closed the connection]
<asdkfjk>
shevy: I don't understand much of that but, yeah will soon, thanks
<shevy>
I wouldn't be able to tell you what you want either
<shevy>
there are many thousand examples out there
<asdkfjk>
right
<olivier_bK>
asdkfjk, for example puppet
<zorak8>
github
<zorak8>
twitter ircc
<asdkfjk>
wow, github
blackmesa has quit [Ping timeout: 250 seconds]
rainmanjam has quit [Ping timeout: 276 seconds]
* DreamingRainne
uses Ruby a lot for various things, but never web development so far. You can do almost anything with it that you can do with any other language.
eyeamaye has quit [Quit: Leaving.]
SCommette has joined #ruby
bradhe has joined #ruby
aantix has quit [Quit: aantix]
Nukepuppy has joined #ruby
<DreamingRainne>
I've written IRC bots (from scratch!), relatively simple GUI programs of various types, and so on. Just off the top of my head. Local scripts to run.