<bradland>
thor provides an interface for managing a system "cache" of thor tasks
<bradland>
so you can add/remove tasks through the thor CLI
_djbkd has joined #ruby
lkba has quit [Read error: Connection reset by peer]
iamjarvo has quit [Client Quit]
wallerdev has joined #ruby
Hijiri has joined #ruby
lkba has joined #ruby
<bradland>
the system-wide stuff goes under ~/.thor
<bradland>
moar dotfiles!
Sawbones has quit [Remote host closed the connection]
baweaver has quit [Remote host closed the connection]
<GaryOak_>
make a service called dot, that uses a dot file
<GaryOak_>
.dot
thumpba has quit [Ping timeout: 265 seconds]
gregf has joined #ruby
juanpablo__ has quit [Ping timeout: 256 seconds]
_maes_ has quit [Ping timeout: 256 seconds]
iliketurtles has quit [Quit: zzzzz…..]
<jhass>
I wish more stuff would follow freedesktop conventions
<jhass>
all nicely hidden in .config and .local
GaryOak_ has quit [Remote host closed the connection]
jerematic has joined #ruby
<bradland>
srsly, respect my homedir for crying out loud
psychopath_mind has joined #ruby
Musashi007 has joined #ruby
razrunelord has quit [Remote host closed the connection]
lioninawhat has joined #ruby
QualityAddict has joined #ruby
crdpink has joined #ruby
jerematic has quit [Ping timeout: 246 seconds]
li0ninawhat has joined #ruby
wldcordeiro has quit [Ping timeout: 256 seconds]
crdpink2 has quit [Ping timeout: 265 seconds]
kblake has quit [Remote host closed the connection]
dfinninger has quit [Remote host closed the connection]
narcan has joined #ruby
Zai00 has joined #ruby
jenrzzz has quit [Ping timeout: 245 seconds]
lioninawhat has quit [Ping timeout: 265 seconds]
iceden has joined #ruby
pontiki has joined #ruby
jenrzzz has joined #ruby
<pontiki>
hi o/
relix has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
mistermocha has quit [Read error: Connection reset by peer]
mistermocha has joined #ruby
dfinninger has joined #ruby
dstarh has joined #ruby
_djbkd has quit [Remote host closed the connection]
yourwebdevguy has quit [Quit: Leaving]
dstarh has quit [Client Quit]
_djbkd has joined #ruby
QualityAddict has quit [Ping timeout: 255 seconds]
sambao21 has quit [Quit: Computer has gone to sleep.]
giuseppesolinas has joined #ruby
mistermocha has quit [Ping timeout: 272 seconds]
QualityAddict has joined #ruby
Hobogrammer has joined #ruby
iliketurtles has joined #ruby
veduardo has joined #ruby
startupality has joined #ruby
oo_ has joined #ruby
davidhq has joined #ruby
godd2 has joined #ruby
VBlizzard has joined #ruby
luksaur has quit [Quit: Leaving]
Hobogrammer has quit [Read error: Connection reset by peer]
Renich has quit [Quit: leaving]
revoohc has joined #ruby
arrubin has joined #ruby
dseitz has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
_blizzy_ has quit [Ping timeout: 252 seconds]
harfangk has quit [Quit: This computer has gone to sleep]
iliketurtles has quit [Ping timeout: 244 seconds]
redk1nG has joined #ruby
<redk1nG>
any one up tonight?
<redk1nG>
quick question, let' say I have a string "DEPEND TCPIP NETCARD", and I only want to capture everything after DEPEND... what's a way to do that?
jenrzzz has quit [Ping timeout: 255 seconds]
Joufflu has joined #ruby
<jhass>
redk1nG: rubular.com
giuseppesolinas has quit [Quit: This computer has gone to sleep]
<jhass>
with a capture group (or a positive lookbehind)
<arup_r>
can you explain the regex ? I am not good at regex
jerematic has quit [Ping timeout: 240 seconds]
<mozzarella>
it selects the words AND the whitespace, then you calculate the length of the whole thing (including the whitespace), only then you remove the whitespace
jeromelanteri has quit [Ping timeout: 245 seconds]
iliketurtles has joined #ruby
<arup_r>
ahh! makes sense mozzarella:
<arup_r>
thanks
<mozzarella>
if you want the subtotal column, just use \s* instead of \s+
<mozzarella>
np
<arup_r>
mozzarella: I don't need I think.. But nothing wrong to see.. Would you show me ?
nahtnam has quit [Quit: Connection closed for inactivity]
<sevenseacat>
lol just killin' time on a friday afternoon
<flughafen>
oh yeah, it is friday
dmcnabb has joined #ruby
* flughafen
is hacking all weekend baby!
<hanmac1>
flughafen: why are not finish in berlin? ;P
<flughafen>
I dunno hanmac1 , why are not finish in berlin?
kalusn has joined #ruby
jeromelanteri has joined #ruby
<hanmac1>
the BER airport in berlin wants more money ... again
yfeldblu_ has joined #ruby
<shevy>
lol
<flughafen>
haha.
<certainty>
mo money mo mony
RegulationD has quit [Ping timeout: 264 seconds]
<shevy>
sevenseacat so kiwi vs. aussie is like canadian vs. US american?
<sevenseacat>
pretty much
hs366 has joined #ruby
jonr22 has joined #ruby
danjordan has joined #ruby
<flughafen>
there was a funny joke about it on the heute show(I think it was) where it was star trek, dubbed, and they said "we need to land, there is the berlin airport finished in 2014, 200 years ago" then they get closer and crash because the airport wasn't done
Synthbread has quit [Remote host closed the connection]
arup_r has quit [Remote host closed the connection]
varunwachaspati_ has quit [Ping timeout: 244 seconds]
juanpaucar has joined #ruby
dmcnabb has quit [Quit: Leaving.]
varunwachaspati_ has joined #ruby
DouweM has joined #ruby
_Andres has joined #ruby
arup_r has joined #ruby
mistermo_ has quit [Ping timeout: 255 seconds]
hmsimha has quit [Ping timeout: 252 seconds]
juanpaucar has quit [Ping timeout: 246 seconds]
harfangk has joined #ruby
hmsimha has joined #ruby
alex88 has joined #ruby
einarj has joined #ruby
a1fa has quit [Quit: Lost terminal]
DouweM has quit [Quit: Leaving...]
DavidDudson has quit [Quit: Goodbye all, and thankyou.]
polysics has joined #ruby
freezevee has joined #ruby
lkba_ has quit [Ping timeout: 256 seconds]
<freezevee>
I am experimenting with Sinatra and a weather API. I am writing a very simple app that I've got to fetch weather data every 10 minutes and then display them on a Sinatra erb page. Is that possible ?
amundj has joined #ruby
<freezevee>
I mean that when Sinatra runs, is it possible to have a loop on the background running ? Should I look in threads ?
MatthewsFace has quit [Remote host closed the connection]
<flughafen>
or you can just make a call every 10 minutes triggered by a request... so, call like "http://localhost/updateweather" doesn't return any html, just ok, which triggers your update, and then have it called by cron something like curl or wget localhost/updateweather"
avril14th has quit [Ping timeout: 240 seconds]
tesuji_ is now known as tesuji
layke has joined #ruby
<freezevee>
flughafen: the update on the html is not the problem, as I can refresh manually the page or make it ajax
<freezevee>
flughafen: I want to fetch several things, like news, weather etc. every X minutes maybe in a Hash
<freezevee>
while Sinatra is running
<freezevee>
but inside ruby. I don't want to use javascript to fetch data
<jhass>
adaedra: not optional, you can force it into requiring the third arg with .curry(3)
<jhass>
if I got the docs right
Zai00 has joined #ruby
scripore has joined #ruby
adriancb has quit [Ping timeout: 265 seconds]
User458764 has joined #ruby
OrbitalKitten has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<adaedra>
Works, except I can’t do c.()
<jhass>
that's what I said?
<adaedra>
ah, misunderstood then
phale has left #ruby ["now"]
OrbitalKitten has joined #ruby
jusmyth has quit [Quit: Leaving.]
RegulationD has joined #ruby
ta has quit [Quit: Leaving...]
max96at|off is now known as max96at
claw has quit [Ping timeout: 246 seconds]
ta has joined #ruby
agrinb has joined #ruby
lanemeyer has quit [Ping timeout: 256 seconds]
davidhq has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
claw has joined #ruby
Redsadic has joined #ruby
<Redsadic>
hi guys
<Redsadic>
question
RegulationD has quit [Ping timeout: 255 seconds]
<Redsadic>
everywhere is said that marshal.load could lead to code execution
agrinb has quit [Ping timeout: 255 seconds]
<Redsadic>
how can be achieved?
william3 has joined #ruby
jonr22 has joined #ruby
nfk has joined #ruby
Takle has quit [Remote host closed the connection]
Takle has joined #ruby
sankaber has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
DouweM has quit [Read error: No route to host]
Musashi007 has joined #ruby
jottr has joined #ruby
sandelius has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<jhass>
Redsadic: I think it has a hook?
dotix has joined #ruby
dotix has quit [Changing host]
dotix has joined #ruby
jonr22 has quit [Ping timeout: 265 seconds]
roolo_ has joined #ruby
roolo has quit [Ping timeout: 272 seconds]
<dotix>
Hi guys.. how can I send multiple arrays from #gets into Array#zip? [0,0].zip([1,1], [1,2]) => # [[0, 1, 1], [0, 1, 2]] but I get the arys from IO#gets.
<jhass>
dotix: String#split ?
<dotix>
I there any way I could serialize and deserialize in .zip ?
<dotix>
hm
Takle has quit [Remote host closed the connection]
<dotix>
and split after what? there is comma inside and outside of ary
Takle has joined #ruby
<Redsadic>
jhass: sorry, could you tell me more about this? I suck at ruby internals
sandelius has joined #ruby
<jhass>
dotix: you do realize that you made zero specifications about how your input looks like?
<jhass>
Redsadic: I think the issue is that Marshal.load determines the type to load from the data, not from the caller
arup_r has quit [Remote host closed the connection]
<jhass>
so when you load something, you actually don't know which class you're gonna end up with
zorak8 has joined #ruby
<jhass>
so an attacker knowledgeable about your application can trigger a classes _load/marshal_load where you don't expect it to be triggered
ldnunes has joined #ruby
<dotix>
Ok jhass, on the first line it will be number of arrays I'll get
giuseppesolinas has quit [Quit: This computer has gone to sleep]
<jhass>
and given there are plenty marshallable classes in ruby core and stdlib...
<dotix>
and I want to zip all of them into a [0, 0] because I need the sum of first elements in each of them
<workmad3>
jhass: wow, didn't know about transpose... that's fun :)
<jhass>
it's one of the things you forget about, yeah
<dotix>
me neither :) I will have to take a look at your suggestion workmad3
xlogic has joined #ruby
charliesome has joined #ruby
<jhass>
I only remembered it because apeiros_ used it yesterday for something
<workmad3>
dotix: I wasn't offering a suggestion, just terminology
jenrzzz has joined #ruby
<workmad3>
dotix: however, the terminology does then lead to looking for a transpose operation (as a column-centric matrix expressed as an array of arrays would look like the row-centric transpose of the row-centric original... which kinda makes sense if you know some linear algebra and matrix representation stuff :) )
livathinos has joined #ruby
dotix has quit [Read error: Connection reset by peer]
<apeiros>
<3 transpose
lxsameer has joined #ruby
<apeiros>
rarely useful, but when it's useful, it's quite nice :)
SouL has joined #ruby
lessless has joined #ruby
giuseppesolinas has quit [Quit: Leaving]
jerematic has joined #ruby
<shevy>
workmad3 may not be offering a suggestion
<shevy>
but perhaps he may offer hot wild sex!
<workmad3>
shevy: only to my wife
zorak8 has quit [Ping timeout: 265 seconds]
aswen has joined #ruby
kaspergr1bbe is now known as kaspergrubbe
SOLDIERz_ has joined #ruby
arup_r has joined #ruby
pretodor has joined #ruby
<workmad3>
apeiros: if I did more graphics stuff, I could see it being useful a lot... tbh, it's a little odd that a matrix operation is on standard Array :)
<certainty>
transpose wifes?
bim has quit [Remote host closed the connection]
<apeiros>
workmad3: what operations are not on array?
<certainty>
interpose juxtapose
* certainty
stops wild associtions
<workmad3>
apeiros: well, I somewhat doubt that diagonalising a matrix is on an array ;)
<apeiros>
Array is a motley potpourri of all kinds of special purpose methods
shredding has joined #ruby
<workmad3>
apeiros: or calculating the matrix inverse, matrix determinant, etc. :)
<jhass>
yeah, it's even a hash, never looked at #assoc, #rassoc?
<workmad3>
godd2: aiui, keywords aren't blacklisted from being variable or method names in the parser... they're just recognised as keywords first in contexts where they're applicable
<godd2>
ah ok. I just regard them as off-limits haha
<workmad3>
yeah, it's sensible to regard them as off-limits :)
silkfox has joined #ruby
<workmad3>
but it's kinda fun that they're only so by convention ;)
lanemeyer has joined #ruby
<workmad3>
apeiros: you need to use define_method for some crazy methods though... such as the method ' ', or the method empty string :)
<phutchins>
Ok so back on the binary topic from yesterday... I've converted a binary string to an array, then packed with "C*" which I believe returns a raw s tring with my hex? in it. then i'm doing an unpack to get the data out that i need and having trouble finding the right combo of arguments. The data I need to extract makes up is 4 bytes, 3 bytes, 2 bytes 3 bytes. That is where i'm having trouble. I see that I c
<phutchins>
an use directive C for 8 bits, S for 16, etc... but what if i need to pull 3 bytes (24 bits) ? I don't see an option for that
<workmad3>
certainty: heh :) that made me think "I want a lightsaber emoji" which, as a result, ended up with me browsing http://rejectedemojis.tumblr.com/
<workmad3>
who the hell even proposed an emoji for "Top hat full of pornography"???
revoohc has joined #ruby
<jhass>
phutchins: 24bit integers are not really a common thing, that's why I guess
<jhass>
is it really a single integer the 3 bytes?
scripore has joined #ruby
doodlehaus has quit [Remote host closed the connection]
User458764 has joined #ruby
spider-mario has quit [Remote host closed the connection]
<phutchins>
jhass: yeah i guess so. And yeah, thats how it is being encoded...
unicodeveloper has quit [Quit: unicodeveloper]
<phutchins>
jhass: like so (this is javascript of course) var machine3Bytes = BinaryParser.encodeInt(machineId, 24, false);
livathin_ has joined #ruby
<jhass>
well, then do it manual, extract a 16 bit integer and a 8 bit integer, shift the 16 bit by 8 bit to to the left and add the 8 bit one
<jhass>
phutchins: I still have no idea what BinaryParser does
<phutchins>
jhass: ok i figured i'd have to something like that. but was hoping not :).
<godd2>
phutchins are the bytes word aligned? you might be able to pull out 2bytes at a time and discard half of the bits in one of them
ych4k3r has joined #ruby
<jhass>
phutchins: if you don't need it as an actual Fixnum, you can just a3
dukz has quit [Remote host closed the connection]
unicodeveloper has joined #ruby
jeromelanteri has joined #ruby
<phutchins>
jhass: BinaryParser.encodeInt is just encoding an int with the params... Not really important. Just showing how it's 24 bit incoded.
<phutchins>
*encoded
<phutchins>
godd2: They're all strings of numbers, is that what you mean?
ohcibi has quit [Quit: No Ping reply in 180 seconds.]
<jhass>
for all I know the 24 could mean read 24 bits from macineId but encodeInt could always pad it to 32bit one or whatever
<phutchins>
jhass: ah cool, let me try a3, that sounds promising
<workmad3>
it's that sort of weirdness that makes me wish more people would just use plain text transports rather than binary encodings :)
ohcibi has joined #ruby
joonty has quit [Quit: joonty]
<phutchins>
workmad3: yeah :) I hate that i'm even having to do this. being tricky is nto always good practice lol
MatthewsFace has joined #ruby
<jhass>
workmad3: but the efficiency!
<jhass>
:P
tier has joined #ruby
<jhass>
protobuf seems reasonable though
avril14th has joined #ruby
unicodeveloper has quit [Client Quit]
varunwachaspti has joined #ruby
<godd2>
phutchins I'm asking how many bits between the beginning of two pieces of information. if each piece of info has 8 padded bits, then you can suck them out 32 bits at a time and discard 8 of them. If each piece of info is actually 24 bits long back to back, then yea youll have to do something like a3
livathinos has quit [Ping timeout: 256 seconds]
<phutchins>
godd2: gotcha, let me look into what BinaryParser.encodeInt is dong
varunwachaspti has quit [Client Quit]
varunwachaspati_ has quit [Quit: Leaving]
varunwachaspati has joined #ruby
<workmad3>
jhass: screw efficiency, I'll just gzip my requests and responses :P
jespada has joined #ruby
unicodeveloper has joined #ruby
<jhass>
but thing of the cute penguins! all that wasted cpu cycles climate change their homes away!
<phutchins>
workmad3: for a little background, this is the MongoDB ObjectID. Someone here has changed the BSON library to encode a hash of the hostname into the ID
<jhass>
eh, think* even
lessless has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<godd2>
phutchins what library/gem is this?
<phutchins>
workmad3: so to recover that so we can align log entries to hostnames i have to decode the id
<workmad3>
phutchins: s/Someone/Some idiot/
<phutchins>
godd2: I'm writing a logstash input plugin for mongodb, the code creating the ID is a forked BSON library...
<phutchins>
workmad3: I wouldn't necessarily have done it this way... :)
MatthewsFace has quit [Ping timeout: 255 seconds]
unicodeveloper has quit [Client Quit]
Hirzu_ has quit [Remote host closed the connection]
nfk has quit [Remote host closed the connection]
<workmad3>
phutchins: s/.../ because I'm not an idiot/ ;)
jerius has joined #ruby
<phutchins>
:)
fabrice31 has joined #ruby
aiguu has quit [Ping timeout: 256 seconds]
nfk has joined #ruby
brb3 has joined #ruby
<phutchins>
Ok so the code in BinaryParser.encodeInt that does the magic - or (var r = []; data; r[r.length] = String.fromCharCode(data % 256), data = Math.floor(data / 256));
Takle has quit [Remote host closed the connection]
nettoweb has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<phutchins>
(forgive jruby and horrible version)
Musashi007 has quit [Quit: Musashi007]
<jhass>
if you really need them as fixnums (note that's not needing to comparing them for example to Digest::MD5.digest()[0, 3]), you have to do the SC, <<, + dance
frobs has joined #ruby
Hirzu has quit [Ping timeout: 252 seconds]
<shevy>
I dance!
tymat has quit [Ping timeout: 245 seconds]
<shevy>
phutchins dance with me man
<shevy>
phutchins don't dance with jhass, he is writing more crystal code than ruby code these days
SOLDIERz_ has joined #ruby
<jhass>
shevy: you're just jealous
<phutchins>
lol
<phutchins>
I'm trying to convert them to human readable strings that get parsed into an entry in elasticsearch, then used to build visualization in kibana...
sambao21 has quit [Quit: Computer has gone to sleep.]
n80 has joined #ruby
<jhass>
so what was it, time, machine_id, ?, ?
Takle has quit [Remote host closed the connection]
arup_r has quit [Ping timeout: 245 seconds]
Takle has joined #ruby
sambao21 has joined #ruby
<jhass>
pid, index apparently
havenwood has joined #ruby
shaquile has quit [Ping timeout: 250 seconds]
boadie has quit [Ping timeout: 265 seconds]
inukshuk has joined #ruby
Soda has joined #ruby
SOLDIERz_ has quit [Quit: Be back later ...]
nettoweb has joined #ruby
<arup_r_>
shevy: I'm back here
<shevy>
arup_r_ lol
<shevy>
you teleport between the channels
<arup_r_>
hehehe
shaquile has joined #ruby
keen__________86 has quit [Read error: Connection reset by peer]
<phutchins>
jhass: time, machineid, pid, index
<arup_r_>
shevy: BTW, why you went there ?
tus has joined #ruby
keen__________86 has joined #ruby
<bweston92>
I have an application that has essentially "products" listed by other people for a period of time. When their "product" has expired I want to send them occasional e-mail until they re-list their "product" I don't want to use the MySQL database to store when I last notified them it would just grow to much and look ugly. However I'm debating either making an SQLite database within the current application or making an external application
<bweston92>
(daemon) which would store the notifications itself. Which would be best?
Takle has quit [Ping timeout: 245 seconds]
<shevy>
arup_r_ I tried to find out if I can have borders less than 1 px size :)
startupality has quit [Quit: startupality]
jefus has quit [Ping timeout: 245 seconds]
<arup_r_>
ok
<shevy>
the answer was funny though I got it from stackoverflow; sometimes a shadow box can help make things appear smaller
tagrudev has quit [Remote host closed the connection]
<shevy>
then you have a .mp4 file locally. now you can convert all sorts of stuff. perhaps this gem works https://rubygems.org/gems/extract_audio - if not no big deal, let me find the ffmpeg command...
<shevy>
from .aac you can convert into .mp3 with lame; lame *aac bla.mp3
<shevy>
from .mp3 to you can to .ogg and wave too
mleung has quit [Quit: mleung]
momomomomo has quit [Ping timeout: 256 seconds]
<Rayford>
I am using Sintra, and I have a “Secrect Key” that i need to hold for the users session to use for API calls. What is the best/secure way to store this key in the session?
<toertore>
Rayford: you mean clients making api calls to your service, or you making 3rd party api calls on behalf of them?
<Rayford>
making third party calls
<sweeper>
why on earth would you transcode aac -> mp3 -> ogg instead of aac -> mp3? :P
last_staff has quit [Remote host closed the connection]
<Rayford>
Basically i have a secret i want to store in the session
<toertore>
Rayford: what do you mean by session?
<Rayford>
user session
<Rayford>
Sinatra Session
renier_ is now known as renier
<toertore>
http session?
<Rayford>
yes
gaussblurinc1 has quit [Quit: Leaving.]
coderhs has quit [Client Quit]
<toertore>
then it depends on how the session is stored
<Rayford>
Are you familar with Sinatra?
<toertore>
do you have any persistent storage at all?
leat1 has quit [Ping timeout: 264 seconds]
<Rayford>
I do, but I do not want to store it there
hmsimha has joined #ruby
<workmad3>
Rayford: is the session stored in a cookie or in some server-side storage?
<toertore>
Rayford: store it there
<toertore>
putting shit in session storage is dumb
bim has joined #ruby
<workmad3>
putting lots of data and sensitive data in session storage is dumb anyway
startupality has quit [Quit: startupality]
ndrei has quit [Ping timeout: 264 seconds]
<Rayford>
See it better to put that sensitive info into a central repository/storage?
razrunelord has joined #ruby
Spami has joined #ruby
<toertore>
yes
SegFaultAX has quit [Excess Flood]
<toertore>
if you have any concept of user accounts, then connect it to that
Spami has quit [Client Quit]
SegFaultAX has joined #ruby
<workmad3>
Rayford: only let sensitive information travel outside of your own infrastructure if you have absolutely no other choice
bricker has joined #ruby
unicodeveloper has quit [Quit: unicodeveloper]
chipotle has quit [Ping timeout: 264 seconds]
ghostpl_ has quit [Remote host closed the connection]
bal has joined #ruby
bal has quit [Client Quit]
<toertore>
to get the secret key into your storage, have each user travel to your datacenter, identify themselves using a previously agreed upon secret handshake and then enter it manually
<jhass>
shevy: the instance variable is the correct solution, reassigning a constant is not
piotrj has quit [Remote host closed the connection]
contradictioned_ is now known as contradictioned
<shevy>
Wulf I am a shuup
krz has joined #ruby
<shevy>
godd2 cool... $VERBOSE defaults to false?
dmcnabb has quit [Quit: Leaving.]
<shevy>
huh
<shevy>
irb says nil
<shevy>
strange... running it from a .rb file it also outputs false
<godd2>
shevy yes. if it's nil, you wont get any warnings and if its true youll get extra info during runtime from some libraries. if set to nil, Object#warn wont output either so keep that in mind if you're relying on that
momomomomo has quit [Ping timeout: 255 seconds]
momomomomo_ is now known as momomomomo
<godd2>
shevy what version of Ruby did you just run irb in?
jenrzzz has quit [Ping timeout: 250 seconds]
tohsig has joined #ruby
MasterPiece has quit [Quit: Leaving]
<Senjai>
apeiros: Thanks for answering :) Just sat down again
<apeiros>
Senjai: hm?
delianides has quit [Remote host closed the connection]
Soda has quit [Read error: Connection reset by peer]
Soda has joined #ruby
wallerdev has joined #ruby
Stalkr_ has joined #ruby
kalusn has joined #ruby
christiandsg has joined #ruby
leat1 has quit [Ping timeout: 245 seconds]
sambao21 has joined #ruby
mjuszczak has quit []
tjohnson has quit [Quit: Connection closed for inactivity]
fgo has joined #ruby
<hoelzro>
bjonnh: could you build an image after installing the dependencies via bundler, and then commit that as an image?
Soda has quit [Read error: Connection reset by peer]
piotrj has joined #ruby
Soda has joined #ruby
<jhass>
bjonnh: make sure too use --deployment to speed up resolution for starters, also make sure to use --without and groups to exclude everything you don't need
<jhass>
finally maybe have a look at bundle package to reduce download times
Mon_Ouie has joined #ruby
Mon_Ouie has joined #ruby
<jhass>
if you end up using bundle package also check --local to block out network requests completely
<bjonnh>
hoelzro: I could also do that yes, that's true
mjuszczak has joined #ruby
Beliq has joined #ruby
<bjonnh>
jhass: network is really fast, its really building that takes time
christiandsg has quit [Ping timeout: 252 seconds]
Takle has joined #ruby
iamjarvo has joined #ruby
<jhass>
well, other than reducing the amount of gems to install there's not much you can do ;)
<jhass>
except building in a tmpfs I guess
lessless has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
leat1 has joined #ruby
Soda has quit [Read error: Connection reset by peer]
lanemeyer has quit [Ping timeout: 265 seconds]
juanpablo__ has quit [Quit: (null)]
momomomomo has joined #ruby
Soda has joined #ruby
juanpablo__ has joined #ruby
juanpaucar has quit [Remote host closed the connection]
<hoelzro>
isn't docker pretty slow at FS stuff?
Synthbread has quit [Quit: Leaving]
Soda has quit [Read error: Connection reset by peer]
krz has quit [Quit: WeeChat 1.0.1]
<hoelzro>
I think the new overlayfs storage driver is supposed to really help
Soda has joined #ruby
mikepack has joined #ruby
<bjonnh>
hoelzro: doesn't feel that slow ;) Its still faster than doing it in VMs
<bjonnh>
at least in my case
<hoelzro>
I mean compared to native
<bjonnh>
jhass: I think I'll just share the bundler folder for now
Soda has quit [Read error: Connection reset by peer]
<jhass>
bjonnh: if you can guarantee same ABI and architecture among the shared stuff...
Soda has joined #ruby
kalusn has quit [Remote host closed the connection]
<bjonnh>
jhass: yeah its basically on the same server. Just that I may have a development version and a production version
<bjonnh>
but I can give them different folders
Soda has quit [Read error: Connection reset by peer]
<jhass>
just saying there's a reason that bundle package exists ;)
<jhass>
and that it doesn't just zip up vendor/bundle
mistermocha has quit [Ping timeout: 256 seconds]
<bjonnh>
yep, that's why I want to be able whenever I want to build everything from scratch
Soda has joined #ruby
zorak8 has quit [Ping timeout: 252 seconds]
<bjonnh>
but also make things faster when I know that nothing changed there
juanpablo__ has quit [Ping timeout: 246 seconds]
adaedra has left #ruby ["be back later"]
zorak8 has joined #ruby
B1n4r10 has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
timonv has quit [Ping timeout: 246 seconds]
joonty has quit [Quit: joonty]
piotrj has quit [Remote host closed the connection]
tcrypt has joined #ruby
zenith_ has joined #ruby
undeadaedra has joined #ruby
doodlehaus has joined #ruby
cpt_yossarian has quit [Ping timeout: 244 seconds]
auraka has joined #ruby
n008f4g_ has joined #ruby
gr33n7007h has quit [Ping timeout: 264 seconds]
Channel6 has quit [Quit: Leaving]
dfinninger has quit [Remote host closed the connection]
bim has quit [Remote host closed the connection]
EllisTAA has joined #ruby
otisZart has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<EllisTAA>
hello. i searched the web for “what does all software have in common” i’m trying to find out the building blocks of software and the software process. can anyone recommend a source on this info or suggest a better search
shazaum has quit [Quit: Leaving]
<undeadaedra>
bugs
<undeadaedra>
they all have bugs.
<undeadaedra>
:)
bim has joined #ruby
Aristata has joined #ruby
<bjonnh>
+1
tvw has quit []
tvw has joined #ruby
ki0 has quit [Remote host closed the connection]
<Aristata>
I am trying to user a method that takes arguments like this: method(variable, variable, :some => :thing), but when I call it like this: method(variable, variable, some_hash_variable) I am getting a syntax error, how do I move forward?
ramfjord has joined #ruby
<jhass>
Aristata: show your real code
<Aristata>
ok
maximski has quit [Read error: Connection reset by peer]
<ducklobster>
but that doesnt cause a command failure (return of nil)
<shevy>
so what is the full line
<phale>
i'm pretty sure system returns nil when STDERR outputs something
<shevy>
before you send it
unicodeveloper has quit [Ping timeout: 256 seconds]
<shevy>
paste it here
<shevy>
without those #{}
<havenwood>
ducklobster: Just an aside, but do `system 'ls', '-l'` instead of `system 'ls -l'` so you run the command directly with no shell.
<eam>
actually both won't use a shell
dfinninger has joined #ruby
<eam>
though the advice to pre-tokenize is still good :D
<ducklobster>
havenwood: great tip thanks
<ducklobster>
shevy: you mean print the string first and paste it here?
<ducklobster>
also:
<shevy>
yes ducklobster show the string
<ducklobster>
system returns true if the command gives zero exit status, false for non zero exit status. (RDoc)
<phale>
ruby is bloated
<ducklobster>
echo $? 1
<arup_r>
havenwood: need one rvm help
<ducklobster>
echo $? => 1*
<ducklobster>
gimme a minute for the string
<shevy>
puts string; exit
<shevy>
you don't need a minute for that!
Rayford has quit [Remote host closed the connection]
<phale>
ruby has some methods that you shouldn't "use"
<ducklobster>
the thing that initiates this requires hardware :-/
<ducklobster>
and no test has been written yet :-x
<phale>
but ruby is a rolling release
<ducklobster>
shame on me
<phale>
i don't see why they dont remove those things and just keep it bloated like that
sevvie has quit [Ping timeout: 265 seconds]
<shevy>
phale which methods scare you?
<havenwood>
eam: *: system 'ls', '-l', '*'
<arup_r>
I am looking for something likw, when I will CD into project directory.. the related gemset and ruby version will be selected automatically.. is this possible ?
<shevy>
seems perfectly valid to me if the file exists; you can check before running a command. if ffmpeg randomly chokes on stuff and randomly otherwise works then I'd just compile a newer ffmpeg
<phale>
"<zyxwvuts> hey, have you finally accepted that gets.chomp is shit and the people you learn from are hipsters who don't know how to program? ;-"
<makerop>
but I cant find the package I need to install
towski_ has joined #ruby
<jhass>
apeiros_: I just asked them to stop copy pasting stupid people from other channels
Synthbread has quit [Ping timeout: 252 seconds]
<jhass>
makerop: uh, you seem to lack build-essential ?
jlast_ has quit [Read error: Connection reset by peer]
<makerop>
it's there
<makerop>
for sure
Dolphi has joined #ruby
<jhass>
mmh, yeah, why would it do ./install, that's weird
<apeiros_>
jhass: ok, somehow missed that in the logs, but I trust your judgment. if you think a kick is in order, ping me.
werelivinginthef has joined #ruby
<makerop>
yea
jlast has joined #ruby
<jhass>
apeiros_: nah, it was just the old "authority" thingy, you know
<jhass>
when they have no more arguments... ;)
<sweeper>
you will respect my authoritah
<apeiros_>
sweeper: hi there, cartman
jespada has quit [Ping timeout: 252 seconds]
Pupeno has quit [Read error: Connection reset by peer]
Pupeno has joined #ruby
maximski has joined #ruby
<jhass>
so sad they only do half the episodes per year now :(
mikepack has quit [Remote host closed the connection]
werelivinginthef has quit [Ping timeout: 244 seconds]
mitchellhenke has quit [Read error: Connection reset by peer]
r3dkinG has quit [Quit: Konversation terminated!]
jespada has joined #ruby
maximski has quit [Client Quit]
unicodeveloper has quit [Quit: unicodeveloper]
mitchellhenke has joined #ruby
mitchellhenke has quit [Client Quit]
towski_ has quit [Remote host closed the connection]
Takle has quit [Remote host closed the connection]
wallerdev has joined #ruby
iliketurtles has joined #ruby
bradleyprice has joined #ruby
mistermocha has joined #ruby
yqt has joined #ruby
ponga has quit [Remote host closed the connection]
iamninja has quit [Read error: Connection reset by peer]
Tuxero has quit [Quit: Tuxero]
bluOxigen has quit [Ping timeout: 265 seconds]
soulcake has quit [Changing host]
soulcake has joined #ruby
iamninja has joined #ruby
iamjarvo has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
sambao21 has quit [Quit: Computer has gone to sleep.]
<apeiros_>
jhass: gotta admit, people who get held up by such trivial problems fascinate me
<apeiros_>
"omigosh gets returns the newline too!!! and it's so troublesome!!!" d'uh, just write a method which does not return the newline…
Takle has joined #ruby
mistermocha has quit [Ping timeout: 245 seconds]
SOLDIERz_ has joined #ruby
<apeiros_>
I mean, writing that method probably takes less time than all the whining
patrick99e99 has quit [Ping timeout: 255 seconds]
<jhass>
apeiros_: maybe, not what annoys me though
dfinninger has quit [Remote host closed the connection]
jespada has quit [Ping timeout: 245 seconds]
<jhass>
trying to get a solution through transporting FUD into hear, that does
<jhass>
*here
patrick99e99 has joined #ruby
MrRobinhood5 has joined #ruby
scripore has quit [Quit: This computer has gone to sleep]
<jhass>
and then that shitty hiding behind someone else's statements through that
mitchellhenke has joined #ruby
wottam has joined #ruby
<pipework>
zenspider: What was the language you liked the most right now from your talk?
<pipework>
I want to investigate for some fun.
wottam has quit [Client Quit]
EllisTAA has quit [Quit: EllisTAA]
rajeshchawla has joined #ruby
rdark has quit [Quit: leaving]
EllisTAA has joined #ruby
soulcake has quit [Quit: Quack.]
soulcake has joined #ruby
<MrRobinhood5>
Afternoon all, is this channel for discussion of the Ruby package, or the language itself?
<jhass>
"the ruby package", because there's only one...
<jhass>
MrRobinhood5: ask away ;)
grr_ has joined #ruby
baroquebobcat has joined #ruby
<MrRobinhood5>
Well, I have ruby installed and can run some simple programs, was looking for help for language itself.
pietr0 has quit [Quit: pietr0]
<LiquidInsect>
Hey all, I have an... interesting... problem and wonder if there's a way to make a Class do something (say, print to the console or log or whatever I have available) whenever a method is defined on it. Anyone know?
<jhass>
MrRobinhood5: still, ask away ;)
<undeadaedra>
LiquidInsect: respond_to? ?
<undeadaedra>
method_defined? ?
<LiquidInsect>
basically I'm inheriting a project where I've already found some metaprogramming crimes against nature and want to see where we're defining or redefining things
<MrRobinhood5>
jhass, thanks, looking into all those 3 right now. Need something simple and small.
<kaleido>
curb is spiffy
<jhass>
MrRobinhood5: sinatra is by far the most widespread after rails though
jonr22 has joined #ruby
<atmosx>
MrRobinhood5: Sinatra is the most common, but the others are good as well.
<atmosx>
MrRobinhood5: you familiar with slim or haml?
<ottanta>
you totally can, since you can specify open("http://url-here.com", "User-Agent" => "lawl I'm editing headers 1.0")
<ottanta>
with open-uri's open
razrunelord has joined #ruby
<MrRobinhood5>
undeadaedra, lookin at ruby toolbox, it doesnt have to be pretty, but do need database.
<jhass>
MrRobinhood5: there's no need to tie that to the web framework
<undeadaedra>
MrRobinhood5: both links are just repositories of existing libraries, you pick what you need
leat has quit [Ping timeout: 246 seconds]
<jhass>
MrRobinhood5: do you want an ORM or just plain access?
<undeadaedra>
If you go with sinatra or other of the same kind, you’ll have to bring database management yourself though, but there are also gems for that
Rarikon has joined #ruby
razrunelord has quit [Client Quit]
skmp has joined #ruby
Ankhers has quit [Quit: ERC Version 5.3 (IRC client for Emacs)]
josephleon has quit [Quit: Leaving...]
<MrRobinhood5>
slim / haml : nope, im just a beginner, but I have a need to complete a project
<MrRobinhood5>
no ORM
gaussblurinc1 has quit [Quit: Leaving.]
jaequery has joined #ruby
<jhass>
MrRobinhood5: then just run the client library of your DB directly or use a thin abstraction like Sequel
<undeadaedra>
Sequel <3
Xoro has quit [Ping timeout: 246 seconds]
jottr has quit [Ping timeout: 244 seconds]
<atmosx>
sequel is awesome
jlast has quit [Remote host closed the connection]
DerisiveLogic has quit [Read error: Connection reset by peer]
<MrRobinhood5>
basis of project: users will use application for ordering clothing, items and authorized quantities will be set, need some sort of authentication, and notifications for myself and users. I will use information to complete ordering on a different system.
<atmosx>
MrRobinhood5: what do you wanna build anyway? Rails has everything integrated in sinatra you need to glue everything yourself
<kaleido>
or you could use a kv store and go the nosql route but i spose thats a use case decision
jonr22 has quit [Ping timeout: 244 seconds]
<MrRobinhood5>
atmosx, looking at sql and it seems pretty simple
<undeadaedra>
MrRobinhood5: if you’re beginner, Rails may be an easier path though
<jhass>
yeah, don't go "nosql" because "it's the thing now"
<MrRobinhood5>
atmosx, *sequel
<atmosx>
MrRobinhood5: it was meant to be simple actually
<kaleido>
do it because sql limits a lot of agility
<jhass>
bullshit
<MrRobinhood5>
undeadaedra, rails was my first option, there is a lot of docs ive been reading on it
DerisiveLogic has joined #ruby
<kaleido>
sql and sotrage, the killer of almost every multi-DC app
<kaleido>
storage rather
<kaleido>
"i can fail to another data center, but failing back isnt so easy"
godd2 has quit [Ping timeout: 245 seconds]
hiyosi has joined #ruby
<undeadaedra>
I’m making a web application right now in sequel, and I should stay that it is indeed less easy than with rails
jespada has quit [Ping timeout: 244 seconds]
<kaleido>
and when you tell them you want to run multiple DCs at the same time, you tend to get blank stares back
<atmosx>
MrRobinhood5: truth to be told, for what you wanna do rails might be a good fit. You'll have a working app in no time.
<undeadaedra>
^
<MrRobinhood5>
atmosx, undeadaedra, thanks for the links and advice, gonna go back to work on it now
<undeadaedra>
rails + devise for the basis
* jhass
yet has to see a description of what they want to do
<undeadaedra>
?
paulfm has quit [Quit: Zzzzz...]
<jhass>
oh, nvm
<jhass>
too much scrollback :P
mistermocha has joined #ruby
keen__________86 has quit [Ping timeout: 245 seconds]
<atmosx>
MrRobinhood5: take a look at this app, has most of the things you need (using Sinatra)... https://github.com/atmosx/metro (encrypted passwords, users, sessions, etc.). Rails offers all that, in a much more secure way right out of the box.
dfinninger has joined #ruby
<jhass>
maybe go straight into shopify or spree even?
n0vo has joined #ruby
<n0vo>
f
relix has joined #ruby
<jhass>
g
n0vo has quit [Client Quit]
<wallerdev>
h
starless has quit [Quit: Leaving]
<pipework>
no
mistermo_ has joined #ruby
<undeadaedra>
ok
<atmosx>
jhass: spree is a mess (IMHO). Better use a vanilla rails... he has users (which is easy), he needs to create an 'items' view. Following the rails-4 tutorial online he could be up and running in less than a week and have something 'decent'.
<atmosx>
actually maybe even a day (long day) if he can catch up.
aclearman037 has quit [Quit: I'm out!]
ghostpl_ has joined #ruby
<MrRobinhood5>
thanks atmosx
josephleon has joined #ruby
x1337807x has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<weaksauce>
atmosx why do you think spree is a mess?
mistermo_ has quit [Remote host closed the connection]
Hijiri has quit [Ping timeout: 255 seconds]
<atmosx>
weaksauce: I don't see what spree will offer at this point. He will need to study the code which will change things on a code-base he is not familiar with, and then instead of adding what he needs, he will need to modify what he doesn't need.
<atmosx>
weaksauce: looks like a much mor etime-consuming task to me
mistermocha has quit [Ping timeout: 252 seconds]
_hollywood has quit [Ping timeout: 252 seconds]
<weaksauce>
ok. so not in general then. just this use case you think spree would be a mess then atmosx
jlast_ has joined #ruby
jlast has quit [Read error: Connection reset by peer]
<atmosx>
weaksauce: ah yes yes, sorry. I didn't state my thoguhts clearly.
<weaksauce>
:)
adriancb has joined #ruby
soulcake has quit [Quit: Quack.]
soulcake has joined #ruby
ponga has joined #ruby
Hijiri has joined #ruby
Xoro has joined #ruby
ghostpl_ has quit [Ping timeout: 244 seconds]
sevvie has quit [Ping timeout: 246 seconds]
GnuYawk has quit [Read error: Connection reset by peer]
lordkryss has quit [Quit: Connection closed for inactivity]
Rarikon has quit [Ping timeout: 246 seconds]
cpt_yossarian has quit [Quit: And then he took off.]
webmstk has quit [Ping timeout: 240 seconds]
max96at is now known as max96at|off
eighthbit has joined #ruby
towski_ has joined #ruby
silkfox has quit [Ping timeout: 245 seconds]
grr_ has quit [Remote host closed the connection]
Morkel has quit [Quit: Morkel]
rodfersou has quit [Quit: leaving]
chipotle has joined #ruby
baweaver has quit [Remote host closed the connection]
sevvie has joined #ruby
sankaber has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
scripore has joined #ruby
_hollywood has joined #ruby
chipotle_ has joined #ruby
naftilos76 has joined #ruby
mistermocha has joined #ruby
unicodeveloper has joined #ruby
fantazo has quit [Quit: Verlassend]
ottanta has quit [Quit: WeeChat 1.1.1]
ottanta has joined #ruby
ottanta has quit [Changing host]
ottanta has joined #ruby
chipotle has quit [Ping timeout: 246 seconds]
brb3 has quit [Quit: <.<]
rhllor has quit [Quit: rhllor]
last_staff has quit [Quit: last_staff]
gfawcettpq has joined #ruby
EllisTAA has quit [Quit: EllisTAA]
gaussblurinc1 has joined #ruby
Rarikon has joined #ruby
Xoro has quit [Ping timeout: 264 seconds]
varunwachaspati has joined #ruby
Nahra has joined #ruby
unicodeveloper has quit [Ping timeout: 252 seconds]
patrick99e99 has quit [Ping timeout: 246 seconds]
mistermo_ has joined #ruby
unicodeveloper has joined #ruby
patrick99e99 has joined #ruby
Synthbread has joined #ruby
chipotle_ has quit [Quit: cheerio]
sambao21 has joined #ruby
chipotle has joined #ruby
mistermocha has quit [Ping timeout: 255 seconds]
revoohc has quit [Quit: revoohc]
fakam has joined #ruby
startupality has quit [Quit: startupality]
<fakam>
How do you know whether you are still a beginner or intermediate?
duggiefresh has quit [Read error: Connection reset by peer]
duggiefresh has joined #ruby
iamjarvo has joined #ruby
Rarikon has quit [Ping timeout: 250 seconds]
<weaksauce>
fakam where are you now?
<weaksauce>
what have you done?
<ottanta>
do you get payed to do it
<jhass>
you don't, you just always assume you're a beginner and are probably right with that
ldnunes has quit [Quit: Leaving]
<jhass>
ottanta: haha, wish it would be that easy
<weaksauce>
ottanta I have seen some really bad programmers that get paid for it :)
<eam>
do you get paid to not do it
<jhass>
eam: oooh, that's why you no longer do perl
<fakam>
Well, I am writing some rails apps. I know about OOP making classes etc
Tinfoilhat_ has quit [Read error: Connection reset by peer]
<jhass>
fakam: let's ask differently, what's useful about those two categories?
<jhass>
what do you gain from having the answer to that question?
<eam>
jhass: ;-)
sevvie has quit [Ping timeout: 252 seconds]
<fakam>
Making sure I am moving forward is the gain?
<jhass>
do you feel like you don't?
josephleon has quit [Quit: Leaving...]
<fakam>
Sometimes
<fakam>
and sometimes not
<jhass>
okay, there's an easy fix to that
<eam>
money is a pretty decent proxy for most things. Not the presense of it, but the magnitude
<weaksauce>
welcome to programming. where you can spend a day doing everything and achieve nothing sometimes
<jhass>
pull up some project that has code that's at least a year old
<fakam>
lol
<jhass>
open a second editor with what you're working on
<jhass>
put them side by side
sevvie has joined #ruby
<undeadaedra>
fakam: are you Yukihiro Matsumoto?
varunwachaspati has quit [Remote host closed the connection]
<jhass>
maybe rewrite one of the files of the old project and compare
<weaksauce>
is ruby your first language fakam
<undeadaedra>
if no, you’re beginner. :p
<weaksauce>
and is this project the first rails project?
<fakam>
I am pretty new, I started studying ft in Feb
Tuxero has joined #ruby
<weaksauce>
yes you are still a beginner
<fakam>
No I wish I was Matz lol
<weaksauce>
done
<fakam>
okay
chrishough has joined #ruby
<fakam>
Matz did actually RT my tweet. That was amazing
slackbotgz has quit [Remote host closed the connection]
<jhass>
fakam: see, the only thing you'll learn as a professional is to know where your limits are, where to sit down and where to just quickly act
Xoro__ has joined #ruby
<jhass>
there's so many stuff out there
Takle has quit [Remote host closed the connection]
slackbotgz has joined #ruby
<jhass>
you're always the beginner
<jhass>
I can always find something you have no clue of
<fakam>
I see.
<eam>
jhass: find something for me
unicodeveloper has quit [Ping timeout: 244 seconds]
<atmosx>
the nicks are cool but the channels on the right, I don't know. I prefer the default bar although it's not practical for more than 9 channels
rajeshchawla has quit [Remote host closed the connection]
<jhass>
exactly
dfinninger has quit [Remote host closed the connection]
<atmosx>
gnome? the latest?
<jhass>
yeah
<jhass>
elegance colors theme in the numix style, maximus extension and terminology
mjuszczak has joined #ruby
<atmosx>
I see
<atmosx>
cool
jottr has joined #ruby
jarjar_prime has quit [Quit: Ready? Set? Go!]
<atmosx>
jhass: you write code on vim?
iamjarvo has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<iheartkode>
vim is scary lol
<jhass>
no, not really, only for adhoc stuff
<jhass>
sublime text here
<iheartkode>
I did the tutorial but yea not for me.
iamjarvo has joined #ruby
<iheartkode>
Atom is my fav
<undeadaedra>
vim <3
<makerop>
i moved from vim to sublime
<jhass>
well, editor is lke desktop environment is like distri is like religion
dfinninger has joined #ruby
<iheartkode>
I understand the power of vim and it's speed but it actually slows me down.
<centrx>
not if you combine it with LXDE and Shintoism
gr33n7007h has joined #ruby
<iheartkode>
Editor religious wars :P
beneggett has quit [Ping timeout: 255 seconds]
<undeadaedra>
ahah
<atmosx>
vim took over the world twice.
tvw has joined #ruby
<atmosx>
lol
<undeadaedra>
True story: I switched from emacs to vim because of PHP :x
<atmosx>
seriously though, it's incredibly powerful, the amount of plugins are unbelievable.
<atmosx>
undeadaedra: you should see a doctor.
slackbotgz has quit [Remote host closed the connection]
<undeadaedra>
M-x doctor
<undeadaedra>
:p
<atmosx>
undeadaedra: both for emacs and php.
<iheartkode>
I tried Ruby || Rails dev on windows.. Once
slackbotgz has joined #ruby
<jhass>
mmh, I haven't heard centrx's opinion of PHP for quite a while
<undeadaedra>
I know someone who did that, iheartkode. Windows + JRuby + Rails.
<Senjai>
PHP is bad </end>
<atmosx>
iheartkode: I can't work on windows.
<undeadaedra>
PHP is shit </end>
<gr33n7007h>
PHP stinks
<iheartkode>
No, I tried and it's a pain in the arse
<iheartkode>
Php is gross
<iheartkode>
Was my first language
<iheartkode>
I met Ruby and fell in love
<jhass>
lol, mime too actually :P
<atmosx>
iheartkode: I avoid it like the plague. I lost 25 minutes to change the screensaver on widnows 8.1 it's scary. The only way I can do what I want to do is by reading online tutorials... the way I did back when I was learning how to use linux.
mjuszczak has quit [Client Quit]
<atmosx>
not to mention there's no shell (bash/zsh) :-(
josephleon has quit [Quit: Leaving...]
<iheartkode>
I have used Linux since Ubuntu 5x
<undeadaedra>
what, windows command is not good enough? /s
<atmosx>
I see everyone is fond of php.
relix has joined #ruby
jottr has quit [Ping timeout: 252 seconds]
<iheartkode>
But I used windows for Photoshop/gaming/other
juanpaucar has quit [Remote host closed the connection]
Hijiri has joined #ruby
<iheartkode>
I just started using spotify, and you can listen ad free with adblock plus :P
juanpaucar has joined #ruby
<jhass>
in the first 6 months, yeah
<iheartkode>
No afk command ?
<jhass>
/away don't bother
<iheartkode>
ah
<GaryOak_>
I listen to the spotify 5 hour energy ads, and sexist new NBC show ads
echevemaster has joined #ruby
<ottanta>
most spotify ads are like 'wut'
Rollabunna has quit [Remote host closed the connection]
<atmosx>
Radiohead while too bored to launch the browser to see if the changes I made on my views actually took place where they should... lol
<atmosx>
I have a spotify subscription too
<atmosx>
too bored to download/youtube music
<GaryOak_>
I just like to work for 5 hours and then see if anything I did actually worked
josephleon has joined #ruby
<GaryOak_>
#5hourenergy
<atmosx>
GaryOak_: hm, and what happens when it doesnt?? :-P another 5 hours debugging?
<atmosx>
GaryOak_: you do TDD/BDD shit?
<iheartkode>
How do I un /away
<gr33n7007h>
drove my *shevy* to the levee but the levee was dry
<iheartkode>
nm
<GaryOak_>
Nah integration testing
relix has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
Pupeno_ has joined #ruby
baweaver has joined #ruby
<atmosx>
iheartkode: just /away
<atmosx>
GaryOak_: sounds legit
<GaryOak_>
Haha I'm in the awful plumbing stages of coding now
juanpaucar has quit [Ping timeout: 252 seconds]
<undeadaedra>
It’s 23:00
<GaryOak_>
Give that webservice the results from the call you made to this webservice
jlast_ has quit [Remote host closed the connection]
<undeadaedra>
too early to code.
sgambino has quit [Remote host closed the connection]
<gr33n7007h>
shevy: have you been hiding in a bunker in berlin?
Pupeno has quit [Ping timeout: 255 seconds]
jerius has quit [Quit: /quit]
<shevy>
gr33n7007h hey I am not in berlin
<gr33n7007h>
shevy: a lot of magic happens underneath the hood :)
zachrab has quit [Remote host closed the connection]
<shevy>
people don't live in berlin
<shevy>
they more like, try to survive
<shevy>
look at the airport
<shevy>
THERE IS NO AIRPORT!
<undeadaedra>
Ach ja
<shevy>
right hanmac
<gr33n7007h>
shevy: shevy shevy ttttt....
<gr33n7007h>
shevy: where you from?
<shevy>
gr33n7007h vienna
<gr33n7007h>
ah, austria
kirun has quit [Quit: Client exiting]
gaussblurinc1 has quit [Quit: Leaving.]
<undeadaedra>
Wien is a nice city
<atmosx>
actually, I'm ashamed to say that I liked Berlin.
RTG` has quit [Ping timeout: 256 seconds]
<shevy>
atmosx you are a sinner!
nettoweb has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<jhass>
shevy: there's actually a perfectly fine airport, they were just too stupid to execute the already existing plans for extending it and decided to "built" a new one instead
nettoweb has joined #ruby
<shevy>
nuremburg is nice, dresden is lovely (though it still looks half-destroyed), hamburg is ok-ish... hannover is ugly, berlin was awful, but Frankfurt was worse, Düsseldorf was worse than Frankfurt and the absolutely worst town was Chemnitz
<atmosx>
shevy: lol
<shevy>
jhass haha well I think London has two airports too, perhaps it started just like that
<gr33n7007h>
jhass: that would be "build"
<atmosx>
shevy: ever been in Costanza? or Konstanza however it's called, borders with Switzerland
<atmosx>
shevy: london has 4
<shevy>
atmosx nope, I was only in switzerland for skiing sometimes
<shevy>
cool
<shevy>
they solved that better than berlin
<atmosx>
shevy: where? I've been in Grindelwald
<atmosx>
or Grindenwald
RTG` has joined #ruby
malcolmva has joined #ruby
<atmosx>
Swiss girls are ugly an fat. The only pretty one married an Italian singer
<shevy>
I don't quite remember the name, it was at a village near the border to Vorarlberg
<atmosx>
ah
<atmosx>
wasn't Saint Moritz then
<shevy>
atmosx didn't she marry someone else?
<atmosx>
shevy: yes she did=
<atmosx>
shevy: her personal trainer
<undeadaedra>
Now in #ruby, which city is the worse.
<bradland>
Miami
<bradland>
:P
<atmosx>
the story is kinda silly. This guy had a personal 'medium', who had a son that was a personal trainer. She managed to get closer to him and appointed her son a personal manager to his wife.
<atmosx>
since they had something like 40 years of age diff, the medium's son managed to get into her pants.
<atmosx>
anyway
<atmosx>
undeadaedra: mine
<undeadaedra>
Which one?
<atmosx>
undeadaedra: I live in a small town 35k ppl in north-eastern Greece. At the same time is the best (crisis apart): 45 minutes away from sea or snoeboarding, food is supreme and I have a *regular job* which is rare in Greece at the moment.
<atmosx>
undeadaedra: ironically enough it's called 'Drama' :-)
<undeadaedra>
Doesn’t sounds like ”worse"
riotjon__ has joined #ruby
<atmosx>
undeadaedra: nah, truth to be told, I'm working my ass out but I like it.
DouweM has joined #ruby
<undeadaedra>
I begin to hate the city I work in
<atmosx>
undeadaedra: what city is that?
<GaryOak_>
is there a ruby method that can iterate a method on an object and return the modified object?
Wolland has joined #ruby
Pupeno_ is now known as Pupeno
Pupeno has quit [Changing host]
Pupeno has joined #ruby
<iheartkode>
Is it bad to always use attr_accessor compared to making them seperate?
<undeadaedra>
atmosx: Paris, France
<atmosx>
iheartkode: nah, it's just style
riotjone_ has quit [Ping timeout: 264 seconds]
<atmosx>
undeadaedra: wow, doesn't sound bad at all. The center of the city is lovely to say the least.
<shevy>
atmosx the name of the location is "Drama"??
<atmosx>
undeadaedra: looking forward to go there with my gf. Maybe next year though, this year if there will be any trips will be in Italy... Rome and Sicily.
<iheartkode>
Okay, what is a good app to make that utilizes classes and getting real world practice?
<atmosx>
shevy: yes
<shevy>
haha... you must excel in theater play and rhetorics then :)
<undeadaedra>
atmosx: to visit I don’t say. To go to work everyday, it’s bad.
<shevy>
atmosx I wonder how you can live in a small town though
<shevy>
I even think that vienna is too small
<iheartkode>
What is the population of Vienna?
<undeadaedra>
Many.
<undeadaedra>
Medium towns are nice.
<lupine>
better question. What is the most insane use of Method#receiver that you can think of?
<atmosx>
shevy: I live in Milan for 4 years and Brno for another 3.5 ... and I've travelled throughout Europe and China. I can say that both my working envinronment and my houme/living standard is extremely high here.
<iheartkode>
I live in San Diego 8th largest city in Murica
<undeadaedra>
’MURICA
<atmosx>
shevy: the only negative side that I don't have theatres (which I'd love to have) and international-level events nearby. I have to travel for at least 2 hours to watch a decent concert and even then not *good enough*.
<atmosx>
iheartkode: San Diego sounds nice.
amundj has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<iheartkode>
San Diego is very nice, it's rated as best climate.
<shevy>
atmosx Milano sounds cool, there was a guy from Milano recruiting for bioruby about 3 years ago; I think it was helios
<iheartkode>
It's March and 70+ degrees and sunny
baweaver has quit [Remote host closed the connection]
lucianosousa has joined #ruby
<atmosx>
shevy: Milano sucks though, if you are not extremely rich.
catoblepa has joined #ruby
<shevy>
hehe
<iheartkode>
atmosx: where are you from?
<shevy>
iheartkode isn't it awfully hot there?
DouweM has quit [Read error: Connection reset by peer]
<atmosx>
and it's not a good city to live or study IMHO. Berlin is orders of magnitude better, Vienna too.
<atmosx>
Vienna is amazing actually by all means
<shevy>
I think the best climate is in northern italy
<iheartkode>
No, not at all it's a very comfortable climate.
Wolland has quit [Ping timeout: 245 seconds]
<atmosx>
shevy: I don't wanna disappoint you but you'll hardly find a better *city*.
<shevy>
Treviso or further westwards to the Lago Maggiore area
dfinninger has quit [Remote host closed the connection]
<weaksauce>
ah ok. I'll take a look
ych4k3r_ has quit [Ping timeout: 264 seconds]
teddyp1cker has quit [Ping timeout: 245 seconds]
blackmesa has joined #ruby
zorak8 has joined #ruby
asmodchan has quit [Read error: Connection reset by peer]
mitchellhenke has joined #ruby
hcnewsom has joined #ruby
mjuszczak has quit []
christiandsg has joined #ruby
<iheartkode>
What is the best way to have persistent data in a Ruby app?
<bradland>
iheartkode: depends on the data
sankaber has joined #ruby
<bradland>
there are all sorts of options
<iheartkode>
Say I want to store quotes, users and such simple data.
<weaksauce>
sqlite is not a bad way to go
<bradland>
sqlite is nice and convenient, but it has some deps that can be tough
<weaksauce>
I am curious. like what?
<bradland>
well, maybe tough isn't the best word
<iheartkode>
What do you suggest bradland
<bradland>
namely that you have to have sqlite installed
<bradland>
how many records are you storing?
<iheartkode>
10 maybe
<iheartkode>
just a small ruby app
<bradland>
ok, is this a command line app, or a web app?
<iheartkode>
command
<iheartkode>
Strictly Ruby for learning.
<bradland>
you can use a serializer
<weaksauce>
yeah just write it out to a file then
christiandsg has quit [Ping timeout: 252 seconds]
<iheartkode>
serializer a gem?
baweaver has joined #ruby
<bradland>
a serializer is more of a concept
<bradland>
let's say you have a hash
<iheartkode>
Okay
<bradland>
internally, Ruby implements hashes in C
<bradland>
when you serialize a hash, you are taking it from the internal structure, and converting it to something that can be stored and passed around
<iheartkode>
I see.
<bradland>
examples of serialization formats are YAML and JSON
<bradland>
some serialization formats have limitations