d10n-work has quit [Quit: Connection closed for inactivity]
Fernando-Basso has quit [Quit: May the force be with you.]
RickHull has quit [Client Quit]
duderonomy has quit [Ping timeout: 244 seconds]
Musashi007 has joined #ruby
RickHull has joined #ruby
yoloats has joined #ruby
casadei_ has quit [Ping timeout: 244 seconds]
Azure has quit [Ping timeout: 244 seconds]
<yoloats>
anyone in here familiar with net-ssh/sftp? Is it possible to initiate a SSH connection, iterate through files with SFTP and run commands like md5sum on them?
blackmes1 has joined #ruby
workmad3 has quit [Ping timeout: 250 seconds]
j4cknewt has joined #ruby
paulcsmith has quit [Quit: Be back later ...]
nofxx has quit [Ping timeout: 252 seconds]
CaryInVictoria has quit [Remote host closed the connection]
Eddieh_ has quit [Remote host closed the connection]
<zacts>
so personally, I think I'll work towards Ruby before python, since I want to learn both eventually (ruby for fun coding, and python if I want to ever do machine learning)
<zacts>
but, this is just for future reference for myself
<zacts>
:-D
<zacts>
I'm still heavy into scheme
<Ox0dea>
What does that mean?
<zacts>
Ox0dea: what does what mean?
<Ox0dea>
> heavy into scheme
malconis has joined #ruby
<zacts>
oh, I'm reading the Structure and Interpretation of Computer Programs. I'm heavy into teaching myself and living with the scheme programming language as my primary language
oo_ has quit [Remote host closed the connection]
<Ox0dea>
You'll probably want to focus strictly on SICP if you intend to get the most out of the experience.
<zacts>
exactly that was my point
<zacts>
thus "this is just for future reference, for myself"
<zacts>
I was trying to say that currently I'm focusing on scheme almost exclusively, and that these Ruby questions are just for future reference
<zacts>
anyway, thanks for the ideas
Mendenhall has quit [Ping timeout: 256 seconds]
oo_ has joined #ruby
freerobby has joined #ruby
Mweshi_ has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
Kully3xf has quit [Remote host closed the connection]
icosa1 has joined #ruby
mistermocha has joined #ruby
mistermocha has quit [Remote host closed the connection]
sharpmachine has joined #ruby
iceyec has quit [Quit: iceyec]
waka has joined #ruby
blaines_ has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
simplyianm has quit [Remote host closed the connection]
cmoneylulz has joined #ruby
bradleyprice has joined #ruby
fgo has joined #ruby
fgo_ has quit [Ping timeout: 240 seconds]
CaryInVictoria has joined #ruby
eggoez has quit [Ping timeout: 252 seconds]
f3ttX] has quit [Remote host closed the connection]
baweaver has joined #ruby
casadei_ has joined #ruby
devbug has joined #ruby
workmad3 has joined #ruby
casadei_ has quit [Ping timeout: 255 seconds]
sharpmachine has quit [Remote host closed the connection]
benlovell has joined #ruby
workmad3 has quit [Ping timeout: 244 seconds]
nahtnam has joined #ruby
CaryInVictoria has quit [Remote host closed the connection]
ddarkpassenger has joined #ruby
axisys has joined #ruby
s00pcan has quit [Ping timeout: 250 seconds]
sankaber has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
benlovell has quit [Ping timeout: 244 seconds]
towski_ has joined #ruby
shadoi has quit [Quit: Leaving.]
s00pcan has joined #ruby
christiandsg has joined #ruby
tjbiddle has joined #ruby
MrSamuel has joined #ruby
modern has quit [Read error: Connection reset by peer]
c_nick has joined #ruby
<c_nick>
how to get "Me" from this string - "Hi,This,is,Me". i can go split('
<c_nick>
but that seems inefficient
Channel6 has joined #ruby
bruno- has joined #ruby
<Aeyrix>
"Hi,This,is,Me"[-2..-1]
cmoneylulz has quit [Remote host closed the connection]
JoshGlzBrk has quit [Read error: Connection reset by peer]
<Rinzlit>
./usr/bin/env: node: No such file or directory
avahey has joined #ruby
aaeron has quit [Quit: Leaving.]
webguynow has quit [Ping timeout: 246 seconds]
icebourg has joined #ruby
<sevenseacat>
whats that got to do with ruby?
webguynow has joined #ruby
<Rinzlit>
Nothing,
<Ox0dea>
You're very inconsiderate.
<Rinzlit>
I am, but could you please help .-.
<Rinzlit>
If you can't say no that is perfectly fine
<Rinzlit>
but if you can help that would be wonderful
<Ox0dea>
You would be much better served by a fishing pole than a fish.
<Ox0dea>
But how fucking hard is it to figure out what "No such file or directory" means in 2015?!
<prefixed>
Ox0dea sure. it's 100% possible to iterate over entries. however, I am not sure if it's possible to run ruby methods on them over the connection. I would think either A.) ruby would need to be installe don the target machine or B.) the file would need to be downloaded to the primary host to compute the md5 sum
Eiam_ has joined #ruby
<Ox0dea>
prefixed: Net::SFTP::Operations::File seems to be the class you're looking for.
yb_drowe has quit [Quit: Zzzzzzz....]
mike___1234 has quit [Ping timeout: 246 seconds]
<prefixed>
I'm confused as to how that'd work though. Do you follow my logic?
<Ox0dea>
It should allow you to read, and thus checksum, the contents of files without explicitly downloadin them.
<Ox0dea>
*downloading
<prefixed>
hm. that's an interesting though
<prefixed>
*thought
<Ox0dea>
It confuses you that an FTP connection would be able to send you data, or--?
<prefixed>
it confuses me that it'd be possible to do this without ruby being on the target machine or downloading the file in quesiton
<Ox0dea>
Then you've fundamentally misunderstood the underlying principles of the thing.
<prefixed>
I'm happy to hear that
d0lph1n98 has quit [Quit: leaving]
<Ox0dea>
Net::SFTP knows how to connect to an FTP server and perform the operations specified by the relevant protocol(s), among which are reading and downloading the files found therein.
<Aeyrix>
SFTP is not a Ruby thing.
<Aeyrix>
That class is just a bunch of socket implementations that know how to speak the SFTP protocol.
<Rinzlit>
Said it would probably be good to know a little bit of PHP
tkuchiki has quit [Remote host closed the connection]
<Aeyrix>
sevenseacat: PHP on Pipes.
htmldrum has joined #ruby
<baweaver>
they don;t say that
marr has joined #ruby
<baweaver>
and if they do and I missed it, disregard strongly
<baweaver>
as they're dangerously incompetent if that's the case.
<Rinzlit>
Oh okay .-.
<Rinzlit>
Well that makes my list a little nicer
<baweaver>
that's akin to saying learn Basketball to get better at Soccer
<Rinzlit>
So now my list : Be less of an idiot and use linux properly, get better at current job, learn ruby, then learn RoR, work on learning real javascript
<baweaver>
they're both sports, they both have some similarities, but if you want to get good at one then just learn that.
schaerli has quit [Remote host closed the connection]
<Rinzlit>
lol and I was just going to talk to you guys and never learn ruby
<Rinzlit>
ah ha ha....
<konsolebox>
Rinzlit: you missed bash. unfortunately there are still many things that could easily be done in Bash than Ruby, but you would to use it, or mix it with other languages/tools.
riotjones has joined #ruby
<konsolebox>
*you would have to know when
<Ox0dea>
konsolebox: Ruby is arguably a superset of Bash, so I'm not sure I follow your logic.
<Rinzlit>
konsolebox I think that will be a better problem when I actually learn something
* Rinzlit
is currently a "programmer" like an air guitarist is a guitar player
<konsolebox>
Ox0dea: do this in Ruby without using something that is not Ruby: make && make modules_install && make install
<konsolebox>
Ox0dea: that's just a small example
<Ox0dea>
konsolebox: make is not Bash.
jbw__ has joined #ruby
<konsolebox>
Ox0dea: yeah, but it isn't Ruby either.
<Rinzlit>
konsolebox its for websites though
<Ox0dea>
konsolebox: But why did you offer it as a defense of Bash?
<Rinzlit>
Thats all I want ruby for
<konsolebox>
Rinzlit: because you mentioned system administration
danzilio has quit [Quit: Baiii!]
<Rinzlit>
Oh, yeah I'm a systems admin for a financial company
<Rinzlit>
A most worthless one
<Aeyrix>
konsolebox: `make && make modules_install && make install`
<konsolebox>
Ox0dea: because that's the first thing i could think of
<konsolebox>
ok, not allowed, but well it's pretty obvious :)
<Aeyrix>
Read up on Kernel#exec.
<konsolebox>
Aeyrix: i don't have to.
<konsolebox>
Aeyrix: for 1, that way of executing commands including && is not Ruby
<Aeyrix>
I was actually still typing. :^)
* Aeyrix
If the string from the first form (exec("command")) follows these simple rules:
* Aeyrix
- no meta characters
* Aeyrix
- no shell reserved word and no special built-in
* Aeyrix
- Ruby invokes the command directly without shell
<Aeyrix>
uhhhh
<Aeyrix>
what
<konsolebox>
Aeyrix: this is why i said "without using something that is not Ruby", because replies like the one you're making is easily called for.
<Aeyrix>
Not sure why that went full /me/
<Ox0dea>
konsolebox: Continuing the execution of some sequence if the previous invocation succeeded is, by your logic, something of which only Bash is capable?
<Ox0dea>
Did you accidently go full retard?
<Aeyrix>
Ox0dea: I think it was deliberate.
htmldrum has quit [Ping timeout: 244 seconds]
<Ox0dea>
Aye, likely as not.
<konsolebox>
Ox0dea: sigh.. of course captain obvious, it's an sh :)
aganov has joined #ruby
arooni-mobile has joined #ruby
<konsolebox>
Ox0dea: so is that all? an ordinary sh is something not fit to compete with Ruby.
<Ox0dea>
You're setting up a straw man, and I suspect you know as much.
t_ has quit [Read error: Connection reset by peer]
<Aeyrix>
> arguing with Ox
<Aeyrix>
> expecting to ever come out on top
<Ox0dea>
<3
<Aeyrix>
I learned my lesson day one.
maletor has quit [Ping timeout: 246 seconds]
<Ox0dea>
I sometimes even lose to myself.
<Aeyrix>
You should get that one checked. :^)
mistermocha has quit [Ping timeout: 250 seconds]
jaycee has quit [Ping timeout: 250 seconds]
baroquebobcat has joined #ruby
RobertBirnie has joined #ruby
sharpmachine has joined #ruby
mistermocha has joined #ruby
htmldrum has joined #ruby
icebourg has quit []
ScriptGeek has joined #ruby
<konsolebox>
Ox0dea: i misread your last reply. what i'm implying was it's way simpler to have sequences like `make && ...` in Bash than doing that in Ruby. concept-wise when things get a little bigger it would still be simpler to do it in Bash in Ruby. way simpler most of the time.
lkba has joined #ruby
sharpmachine has quit [Ping timeout: 240 seconds]
iateadonut has joined #ruby
ReK2 has joined #ruby
ReK2 has joined #ruby
<Ox0dea>
konsolebox: It's rather easy to foresee that this'll surely devolve into little more than an argument over semantics from which neither party is likely to gain any insight.
<Ox0dea>
Bash and Ruby are both Turing-complete, and either can invoke the other. </case>
dhjondoh has joined #ruby
<konsolebox>
Ox0dea: ok. and that is why i could tell that Bash is also necessary.
mistermocha has quit [Read error: Connection reset by peer]
<Ox0dea>
I suspect we subscribe to differing definitions of "necessary".
htmldrum has quit [Ping timeout: 255 seconds]
agent_white has joined #ruby
mistermocha has joined #ruby
<agent_white>
Evenin' folks
<Aeyrix>
Yo.
tjbiddle has quit [Quit: tjbiddle]
htmldrum has joined #ruby
tjbiddle has joined #ruby
tjbiddle has quit [Client Quit]
yfeldblum has quit [Remote host closed the connection]
tkuchiki has joined #ruby
baroquebobcat has quit [Quit: baroquebobcat]
mistermocha has quit [Ping timeout: 244 seconds]
<konsolebox>
Ox0dea: different tastes with different perceptions. you can believe that yours is better if you like.
nahtnam has quit [Quit: Connection closed for inactivity]
<Ox0dea>
konsolebox: Too soon on the ad hominem stuff.
<Rinzlit>
So, I think I should drop some of my jobs, and dedicate some time to learning .-.
<Ox0dea>
Rinzlit: Get the fuck off the Internet and read a book, dude.
<Ox0dea>
Please?
<Rinzlit>
Yeah I know right xD
<Aeyrix>
They just bought some books.
<Ox0dea>
Probably not.
<konsolebox>
Ox0dea: nevertheless if you are a system admin, you can't avoid needing to learn shell scripting.
kies^ has joined #ruby
<Aeyrix>
Actually, did.
<Rinzlit>
I got the one from the guy Aeyrix linked
<konsolebox>
Ox0dea: and most practical scripting is a bash.
<Aeyrix>
Radar owes me a finder's fee now.
<konsolebox>
*is bash
scripore has quit [Quit: This computer has gone to sleep]
<Aeyrix>
konsolebox: Shhhh.
<Radar>
Aeyrix: np. You can have half of my royalties for that copy. Should be about $2.36.
<Aeyrix>
This is a Ruby channel.
<Aeyrix>
Radar: That figure makes me upset knowing how much effort you put into that book.
<Aeyrix>
Jesus Christ.
<konsolebox>
Aeyrix: neither of us would lower our pride :) just don't mind :)
<Radar>
Aeyrix: This is why you should never ever ever do anything for people who's business it is to just PUBLISH your thing.
<Radar>
See also: music industry
<Rinzlit>
Well Ox0dea the system admin stuff is lower priority then web development
<Aeyrix>
v true
<Rinzlit>
But you guys made it very clear that I need to be able to at least use linux properly to even start the web servers for ruby
htmldrum has quit [Ping timeout: 244 seconds]
<Rinzlit>
ah ha ha... -facepalm-
<Ox0dea>
konsolebox: Please do quote me if you're able to find where I said anything to the contrary as regards Bash's utility as a language.
<Aeyrix>
Rinzlit: mhm
<Ox0dea>
But its power is as a "glue" for tying other programs together, a feat of which Ruby is just as capable, and generally in a more intuitive and programmer-friendly way.
<konsolebox>
Ox0dea: it's about just me recommending bash, not about anything you said.
<Ox0dea>
konsolebox: Recommending Bash over Ruby in the general case?
yardenbar has joined #ruby
<konsolebox>
Ox0dea: did i say that?
<Aeyrix>
S T O P
<Aeyrix>
T
<Ox0dea>
I'm asking if you intended to say that.
<Aeyrix>
O
<Aeyrix>
P
<konsolebox>
Ox0dea: no.
<Ox0dea>
konsolebox: Then when do you recommend using Bash instead of Ruby, or indeed any other language?
<Rinzlit>
Rail cast isn't a 1 time fee
<Aeyrix>
You two are more argumentative than I am, and I'm from England.
<Rinzlit>
is monthly Aeyrix .-.
<Aeyrix>
Rinzlit: It is. It says it isn't, but it is.
bluOxigen has joined #ruby
<Aeyrix>
Basically the guy is on an extended vacation, so he's indefinitely extending the subscriptions for free.
<Rinzlit>
I am reading 9$ per month .-.
<Rinzlit>
He is dead?
<Rinzlit>
-_______-
<Aeyrix>
No.
<konsolebox>
Ox0dea: i did recommend it over Ruby in some parts, but not on general case.
<Aeyrix>
He's alive and well.
<Ox0dea>
konsolebox: When?
<Ox0dea>
Which parts?
<Aeyrix>
He's just taking a break. He was very burned out.
mistym has quit [Ping timeout: 244 seconds]
<Aeyrix>
@ryanbates, IIRC.
<Radar>
@rbates
<Ox0dea>
> mfw the englishman didnt use burnt
<konsolebox>
Ox0dea: you missed bash. unfortunately there are _still_ many things that could easily be done in Bash than Ruby...
scripore has joined #ruby
jbw_ has joined #ruby
<Ox0dea>
konsolebox: Yes, please enlighten me as to what those things are, specifically.
<konsolebox>
Ox0dea: and wasn't i referring to the list?
<Ox0dea>
Which list was that?
<konsolebox>
Ox0dea: sigh.. this is not worth it :)
<Ox0dea>
k
<agent_white>
The need to install ruby. Each and every linux distro has pearl?
mark06 has joined #ruby
<Ox0dea>
agent_white: LFS doesn't.
<Aeyrix>
> pearl
<Radar>
agent_white has become a Markov chain
<Aeyrix>
lmao
jbw__ has quit [Ping timeout: 244 seconds]
<agent_white>
Radar: :) Hehe I think I'll keep that trophy.
yoloats has quit [Ping timeout: 256 seconds]
<Ox0dea>
agent_white: Is it your intention to claim that Perl is superior to Ruby because it's there by default in most cases?
<adaedra>
0b10 is just another way of saying 2 or 0x2
jenrzzz has quit [Ping timeout: 272 seconds]
thiagovsk has quit [Quit: Connection closed for inactivity]
Cust0sLim3n has joined #ruby
<TheBrayn>
there are 10 kind of people in the world, those who understand binary and those who don't
mistermocha has joined #ruby
<dubkoidragon>
haha nic one
<TheBrayn>
and those who didn't know that this is a base-3 joke
CaryInVictoria has quit [Ping timeout: 240 seconds]
<adaedra>
?badumtss
<ruboto>
I don't know anything about badumtss
<adaedra>
^ we need something here.
arturmartins has joined #ruby
<dubkoidragon>
hey so I am playing with rails and I basically need to refresh my html by testing it. doed anyone know the easiest way i can turn my html code in my code editor to being viewed on my webbrowser
<adaedra>
you just open the page on your webbrowser and hit F5/Cmd-R after changes
<adaedra>
(With a running server, ofc)
<adaedra>
also
<adaedra>
?rails
<ruboto>
Please join #RubyOnRails for Rails questions. You need to be identified with NickServ, see /msg NickServ HELP
<dubkoidragon>
oki will do
CloCkWeRX has joined #ruby
bradleyprice has quit [Remote host closed the connection]
n008f4g_ has quit [Ping timeout: 264 seconds]
CloCkWeRX has quit [Client Quit]
omninonsense is now known as [spoiler]
nym has quit [Quit: Connection closed for inactivity]
tjbiddle has joined #ruby
dopieee has quit [Quit: This computer has gone to sleep]
oo__ has joined #ruby
msgodf has joined #ruby
quimrstorres has joined #ruby
mistermocha has quit [Ping timeout: 272 seconds]
wildroman2 has joined #ruby
yardenbar has joined #ruby
oo_ has quit [Ping timeout: 246 seconds]
shredding has joined #ruby
leat1 has quit [Remote host closed the connection]
leat1 has joined #ruby
yardenbar has quit [Read error: Connection reset by peer]
white_bear has joined #ruby
dangerousdave has joined #ruby
xcesariox has quit [Remote host closed the connection]
Musashi007 has quit [Quit: Musashi007]
dangerousdave has quit [Client Quit]
ruby922 has joined #ruby
bodgix has joined #ruby
arup_r has joined #ruby
schaerli has quit [Remote host closed the connection]
arup_r has quit [Remote host closed the connection]
dmolina has joined #ruby
htmldrum has quit [Ping timeout: 244 seconds]
eGGsha has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
Igorshp has joined #ruby
MyMind has joined #ruby
allomov has joined #ruby
Ropeney has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
leat1 has quit [Remote host closed the connection]
Sembei has quit [Ping timeout: 244 seconds]
krz has joined #ruby
leat1 has joined #ruby
Averna1 has joined #ruby
djbkd has joined #ruby
krz has quit [Read error: Connection reset by peer]
soc42 has quit [Remote host closed the connection]
G_ is now known as G
Averna1 has left #ruby [#ruby]
user1138 has joined #ruby
krz has joined #ruby
djbkd has quit [Ping timeout: 252 seconds]
startupality has joined #ruby
senayar has quit [Remote host closed the connection]
schaerli has joined #ruby
j4cknewt has quit [Remote host closed the connection]
<Rinzlit>
Eh, I think I can work on it without that
troulouliou_div2 has joined #ruby
marienz has quit [Quit: upgrades]
shock_one has joined #ruby
sandelius has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
troulouliou_div2 has quit [Remote host closed the connection]
<shock_one>
Hi. Do you know any gem which would give me all possible names of a country? Like for "US" it would be ["The United States of America", "The United States", "USA", "US"...]
mistermocha has quit [Ping timeout: 265 seconds]
marienz has joined #ruby
<shock_one>
Or, if it's easier, having a string like "Rua do Padre Luis Cabral,1015, 4150-464 Porto, Portugal", I'd like to know if it's located in PT. I do know that I'm looking for PT, not any other country.
htmldrum has joined #ruby
Pisuke has joined #ruby
schaerli has joined #ruby
camilasan has quit [Remote host closed the connection]
MyMind has quit [Ping timeout: 240 seconds]
stamina has quit [Quit: WeeChat 1.2]
startupality has quit [Quit: startupality]
startupality has joined #ruby
oo__ has quit [Remote host closed the connection]
anisha has joined #ruby
camilasan has joined #ruby
<yorickpeterse>
shock_one: Not all possible ones, because that list could be infinite
<yorickpeterse>
e.g. we have a system (released literally only a few days ago) that currently maps 4313 different ways of writing countries/cities to the countries they belong to
<yorickpeterse>
So US, USA, United States, America, etc all mapped to the US
startupality has quit [Client Quit]
<shock_one>
yorickpeterse: is it open source?
<ljarvis>
open to the entire office
<yorickpeterse>
No
sevenseacat has quit [Quit: Me dun like you no more.]
astrobunny has joined #ruby
<shock_one>
yorickpeterse: can I ask where did you get the data from?
<yorickpeterse>
It's also not bulletproof, but for our dataset it matches 95% of our data
<ljarvis>
:/
<yorickpeterse>
shock_one: lots of different sources
astrobun_ has quit [Ping timeout: 240 seconds]
<yorickpeterse>
it's a mixture of the united nations country list, a mixture of well known different spellings, a huge pile of location names that we already stored in raw form, etc
<yorickpeterse>
e.g. the list also includes the top 20 cities for every country
<yorickpeterse>
because we have a lot of data where it's just the city name
bruno- has joined #ruby
<shock_one>
Thank you, yorickpeterse. Can you point me to at least one source of such data?
schaerli has quit [Remote host closed the connection]
<yorickpeterse>
Depending on how you match things you might not need all alternative names
bruno- has quit [Ping timeout: 246 seconds]
<shock_one>
Awesome, thank you again.
dubkoidragon has quit [Ping timeout: 250 seconds]
Musashi007 has joined #ruby
eGGsha has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
blackmes1 has quit [Ping timeout: 272 seconds]
RegulationD has joined #ruby
senayar has quit [Remote host closed the connection]
senayar has joined #ruby
senayar has joined #ruby
fella6s is now known as fella5s
s00pcan has quit [Ping timeout: 256 seconds]
senayar has quit [Remote host closed the connection]
senayar has joined #ruby
jolg42 has joined #ruby
serivichi has joined #ruby
last_staff has joined #ruby
RegulationD has quit [Ping timeout: 252 seconds]
jolg42 has quit [Client Quit]
ArchRogem has joined #ruby
s00pcan has joined #ruby
serivich has quit [Ping timeout: 244 seconds]
Musashi007 has quit [Quit: Musashi007]
eGGsha has joined #ruby
blackmes1 has joined #ruby
Musashi007 has joined #ruby
astrobunny has quit [Read error: Connection reset by peer]
astrobunny has joined #ruby
sandelius has joined #ruby
astrobunny has quit [Read error: Connection reset by peer]
arup_r has joined #ruby
s00pcan has quit [Ping timeout: 246 seconds]
sharpmachine has joined #ruby
s00pcan has joined #ruby
<Rinzlit>
- t('.banner_words').each do |index, word|
<Rinzlit>
Anyone know what I can replace so ruby can read it .-.
<yorickpeterse>
It's not Ruby
<yorickpeterse>
it's HAML
Mendenhall has quit [Ping timeout: 255 seconds]
<adaedra>
Rinzlit: maybe you should learn some Ruby to begin with
<Rinzlit>
adaedra whats HAML?
<Rinzlit>
O_o
<Rinzlit>
I'm sorry yorickpeterse
<adaedra>
Hey Rinzlit, you know sysadmin best friend?
<adaedra>
It works for developpers, too
<Rinzlit>
Agent ranksack is more useful
<Rinzlit>
But googles pretty good too
<Rinzlit>
But I prefer duckduckgo tbh
sharpmachine has quit [Ping timeout: 240 seconds]
<adaedra>
You should hang out with it more
railsForDaiz has quit [Ping timeout: 244 seconds]
AlexRussia has quit [Quit: WeeChat 1.3-dev]
serivichi has quit [Ping timeout: 244 seconds]
nofxx has quit [Ping timeout: 250 seconds]
wildroman2 has quit [Remote host closed the connection]
wildroman2 has joined #ruby
Macaveli has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
joonty has quit [Quit: joonty]
Musashi007 has quit [Quit: Musashi007]
blackmesa has joined #ruby
aceRacer has quit [Remote host closed the connection]
shredding has quit [Ping timeout: 260 seconds]
CaryInVictoria has joined #ruby
blackmes1 has quit [Ping timeout: 260 seconds]
oo_ has joined #ruby
usershell has joined #ruby
CaryInVictoria has quit [Ping timeout: 240 seconds]
ndrei has joined #ruby
anisha has quit [Ping timeout: 240 seconds]
senayar has quit [Remote host closed the connection]
oo_ has quit [Remote host closed the connection]
senayar has joined #ruby
senayar has quit [Changing host]
senayar has joined #ruby
CloCkWeRX has joined #ruby
iinzg has joined #ruby
iinzg has quit [Read error: Connection reset by peer]
blaines has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
oo_ has joined #ruby
anisha has joined #ruby
mistermocha has joined #ruby
konsolebox has quit [Quit: Leaving]
<agent_white>
Ranksack? I haven't heard from him in ages.
nveselinov has quit [Quit: Connection closed for inactivity]
oo_ has quit [Remote host closed the connection]
duncannz has quit [Remote host closed the connection]
CaryInVictoria has joined #ruby
oo_ has joined #ruby
Sembei has joined #ruby
mistermocha has quit [Ping timeout: 260 seconds]
Pisuke has quit [Ping timeout: 244 seconds]
schaerli has joined #ruby
auzty has quit [Quit: Leaving]
bubbys has quit [Ping timeout: 250 seconds]
CaryInVictoria has quit [Ping timeout: 272 seconds]
mathie_ has quit [Quit: Quitting...]
mathie has joined #ruby
postmodern has quit [Quit: Leaving]
railsraider has quit [Quit: railsraider]
codecop has joined #ruby
bubbys has joined #ruby
prestorium has joined #ruby
Outlastsheep is now known as zz_Outlastsheep
<Rinzlit>
I must be honest this ubuntu server
<Rinzlit>
Its an impressive troll
DoubleMalt has quit [Remote host closed the connection]
<ddv>
Rinzlit: ?
<Rinzlit>
I spent hours trying to get ruby gems working last night
<Rinzlit>
About 9~
<Rinzlit>
I gave up and went to play videogames ran 1 command to try again
<Rinzlit>
It suddenly works
<ddv>
Rinzlit: lol I can do it in 5 minutes
<ddv>
pebcak
<Rinzlit>
Try to repeat the process and it is broken again
<Rinzlit>
Well, idk. all I do know is this server is more bipolar then my ex gf
<awk>
erm, ruby noob... Dir.entries("*full*") what is the correct way to list the enteries for anything that contains full in it ?
[k- has joined #ruby
<ddv>
Rinzlit: investigate
blackmesa has quit [Ping timeout: 255 seconds]
<Rinzlit>
ddv: I'd love to but I don't know anything about Ruby, all I do know is a command worked after playing league of legends for 2 hours
<Rinzlit>
That didn't work when I tried getting it to work for 6 hours
krz has quit [Read error: Connection reset by peer]
<[k->
>> %w!Rinzlit shevy Ox0dea!!
<ruboto>
[k- # => /tmp/execpad-b44f9ecda85f/source-b44f9ecda85f:2: syntax error, unexpected '!', expecting keyword_end ...check link for more (https://eval.in/403955)
<adaedra>
Based on your messages, League of Legens is the solution.
<[k->
guess that didn't work
<adaedra>
Legends
<Rinzlit>
Hey [k-
<jhass>
awk: replace .entries with .glob
<ddv>
Rinzlit: I would play some more LoL if I was you.
<adaedra>
bim
nveselinov has joined #ruby
<Rinzlit>
ddv: Maybe, but I don't want it to break
<[k->
oh, I needed to escape the !
<awk>
jhass: glob doesn't return anything.
<ddv>
[k-: why are you spamming the channel
anisha has quit [Quit: Leaving]
<awk>
never mind...
<awk>
I'm being an idiot
<apeiros>
does the following pattern have a name? you have a parent class which takes a parameter (that parameter controls a couple of things - e.g. which server to contact, in what directory to store files). you have a subclasses for each allowed value of that parameter, which hard code that param.
<shevy>
yay! \o/
phutchins has joined #ruby
<[k->
why are you so strict?
anisha has joined #ruby
<[k->
you are like jhass 4.0
bruno- has joined #ruby
<[k->
jhass: you have been outdone
Soda has joined #ruby
<jhass>
[k-: you're proving his point...
<[k->
apeiros, seems like command sort of thing
serivichi has joined #ruby
krz has joined #ruby
<[k->
I'm pretty sure he is biased against me
<apeiros>
[k-: yeah, in all instances the classes are workflow handling classes
codecop has quit [Remote host closed the connection]
benlovell has quit [Ping timeout: 244 seconds]
leat1 has quit [Remote host closed the connection]
<workmad3>
which is also, oddly, one of the few refactorings that doesn't seem to have a standard reversal with it
presto has joined #ruby
tkuchiki has quit [Remote host closed the connection]
leat1 has joined #ruby
<[k->
look at my link >.>
sharpmachine has joined #ruby
prestorium has quit [Ping timeout: 260 seconds]
<agent_white>
[k-: "
<agent_white>
" you don't really need a design pattern, you just implement what you want to do"
<agent_white>
So I'm assuming there's no specific pattern?
<[k->
no, there's a link to the book
presto is now known as prestorium
<agent_white>
I saw that. But he didn't say "this pattern is called xyz, for more see ___".
<agent_white>
Just... what I said above.
shoutsid has quit []
<[k->
I did say link related
<[k->
but the book!
<agent_white>
Hahah. My expectations were too high. :(
<workmad3>
[k-: that's about the factory method pattern though, which is a name for the pattern used to create the subclasses, not a name for the pattern of setting up subclasses like that
khando has joined #ruby
lala has quit [Quit: Connection closed for inactivity]
schaerli has quit [Remote host closed the connection]
<workmad3>
[k-: patterns are names given to fairly common ways of solving specific problems... you don't 'extend a pattern' by making it mean something else or something new
Axy has joined #ruby
<workmad3>
[k-: because then it no longer means the same thing, so it's no longer the same pattern
last_staff has quit [Quit: last_staff]
tomaz_b has joined #ruby
Mia has quit [Ping timeout: 246 seconds]
codenihal has joined #ruby
<workmad3>
(I also love it when people say "Just implement what you want and don't use a pattern" as though these were two different things... the entire point of a pattern is to implement what you want, it's just that a common way of doing it has been given a name... if your code follows the common way of doing it, you've just followed the pattern, even if you don't know the name... But I know that what the author re
<workmad3>
ally meant was "Don't use a library that provides some generic implementation code of e.g. Factory, just write the code for a Factory yourself)
allcentury has joined #ruby
<adaedra>
just don't write code yourself, and no more problems.
<[k->
the world will work once again
<workmad3>
adaedra: code that isn't written contains no bugs :)
<adaedra>
exactly
<adaedra>
0 LOC * any % of bugged code is still 0 LOC
<[k->
I do not write buggy code!
<adaedra>
wonder of english: on the above sentence, you can remove "buggy" without changing meaning.
peter_paule has quit [Ping timeout: 244 seconds]
mweshi has joined #ruby
<[k->
(in the current context)
stoffus has joined #ruby
scripore has joined #ruby
mweshi has quit [Max SendQ exceeded]
c355E3B has joined #ruby
towski_ has joined #ruby
eGGsha has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
mweshi has joined #ruby
<shevy>
le baguette of le code
<adaedra>
wow, that's so funny /s
tjbiddle has quit [Ping timeout: 252 seconds]
blackmesa has joined #ruby
tjbiddle_ has joined #ruby
tjbiddle_ has quit [Client Quit]
<yorickpeterse>
oui
ldnunes has joined #ruby
xaxisx has joined #ruby
serivichi has quit [Ping timeout: 265 seconds]
towski_ has quit [Ping timeout: 240 seconds]
Igorshp has quit [Remote host closed the connection]
MisterRusty has quit [Ping timeout: 272 seconds]
MisterRusty has joined #ruby
a346 has joined #ruby
safeforge has quit [Remote host closed the connection]
lkba has joined #ruby
ndrei has quit [Ping timeout: 240 seconds]
eGGsha has joined #ruby
hahuang61 has joined #ruby
hahuang65 has quit [Read error: Connection reset by peer]
mesamoo has quit [Ping timeout: 272 seconds]
<Darkwater>
what would be the most ruby way to compress foo[:bar] == 5 or foo[:baz] == 5 or foo[:ban] == 5?
knrz has joined #ruby
<adaedra>
foo.slice(:bar, :baz, :ban).include? 5 # but that requires a library to provide Hash#slice
codenihal has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<Darkwater>
hm, that's a shame
<Darkwater>
anything else?
<Darkwater>
actually I guess a function like that would be the only option
<adaedra>
not .include?, .value?, tho
<adaedra>
Hash#slice is not difficult to reproduce, though.
<Darkwater>
hm, I guess I could use #value? in this case
<Darkwater>
thanks
<adaedra>
if :bar, :baz and :ban are the only keys in the hash, sure, #value?
<Darkwater>
well there are a couple of other keys as well, but it doesn't matter if they match
iceyec has joined #ruby
[k-_ has joined #ruby
<Darkwater>
it would actually excend the functionality because I'm using this in a find block
<Darkwater>
so I'm basically looking for an item with an id OR name specified by the user
<adaedra>
I smell xy
<Darkwater>
hm?
<adaedra>
?xy
<ruboto>
it seems like you are asking for a specific solution to a problem, instead of asking about your problem. This often leads to bad solutions and increases frustration for you and those trying to help you. More: http://meta.stackexchange.com/a/66378
<Darkwater>
oh
allcentury has quit [Ping timeout: 255 seconds]
<Darkwater>
nah
ndrei has joined #ruby
CaryInVictoria has joined #ruby
<Darkwater>
I'm happy with the solution I have now
dgutierrez1287 has joined #ruby
<[k-_>
what's the point of an id if you are finding by name
Ropeney has joined #ruby
<Darkwater>
the id is still used elsewhere
mistermocha has joined #ruby
krz has quit [Ping timeout: 264 seconds]
Igorshp has joined #ruby
CaryInVictoria has quit [Ping timeout: 240 seconds]
<workmad3>
adaedra: Hash#values_at is in core ruby ;)
kidoz has joined #ruby
gnzh has joined #ruby
<[k-_>
bar, baz, ban :o
mistermocha has quit [Ping timeout: 240 seconds]
<gnzh>
hello everyone, could sombody explain to me how to pass char* buffer in ruby ffi to c function? I get segfault :( not sure why. same stuff implemented in c just works.
davedev24 has joined #ruby
eGGsha has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<ruboto>
[k-_ # => /tmp/execpad-dc65c3ab88e2/source-dc65c3ab88e2:2: syntax error, unexpected '(', expecting keyword_end ...check link for more (https://eval.in/403978)
blackmesa has joined #ruby
<workmad3>
adaedra: makes your own Hash#slice even easier to implement though :) `class Hash; def slice(keys); keys.zip(values_at(keys)).to_h; end; end`
<ruboto>
workmad3 # => /tmp/execpad-966e662514fe/source-966e662514fe:2: syntax error, unexpected '{', expecting ')' ...check link for more (https://eval.in/403980)
<adaedra>
grmbl
eGGshke is now known as eGGsha
<awk>
Guys, 1 little question https://gist.github.com/anonymous/411ad99261f1a28337ff .... that returns 5 (which is correct) however if I change xtrabackup_logfile to xtrabackup_logfile1234 and I puts validate without the count it returns only the other 4, if I use validate.count it still returns 5 .. i'm trying to give myself the count of what actually outputs
bruno- has quit [Ping timeout: 256 seconds]
sarkyniin has joined #ruby
<[k-_>
experiment**
tsujp has joined #ruby
<workmad3>
[k-_: ->(_,__){_[__]}.({:a=>?b,:c=>?d,:d=>?e},[:a,:c]) <-- there you go (not really sure what you're trying though)
davedev24 has quit [Ping timeout: 255 seconds]
MatrixBridge has quit [Read error: Connection reset by peer]
<[k-_>
ah, the dot
freerobby has joined #ruby
<[k-_>
this should work too: ->(_,__){_[__]}[{:a=>?b,:c=>?d,:d=>?e},[:a,:c]]
bungoman_ has quit [Remote host closed the connection]
AugustoCesar has left #ruby [#ruby]
<oz>
that's quite unreadable
tjbiddle has joined #ruby
<adaedra>
that's the goal
<adaedra>
[k-_ only writes code to be unreadable
htmldrum has quit [Ping timeout: 244 seconds]
<[k-_>
i've made a name for myself this few days
hfp has quit [Ping timeout: 256 seconds]
<adaedra>
kind of like a C++ developer
DEA7TH_ has joined #ruby
saintcajetan has quit []
iamninja has joined #ruby
hfp_work has quit [Ping timeout: 244 seconds]
Papierkorb has joined #ruby
saintcajetan has joined #ruby
Cust0sLim3n has quit [Ping timeout: 246 seconds]
sankaber has joined #ruby
pepperbreath has joined #ruby
atomical has joined #ruby
gnzh has quit [Ping timeout: 240 seconds]
tjbiddle has quit [Ping timeout: 264 seconds]
sharpmachine has joined #ruby
Cust0sLim3n has joined #ruby
acovrig has joined #ruby
weemsledeux has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
doertedev has quit [Quit: Lost terminal]
tjbiddle has joined #ruby
sharpmachine has quit [Ping timeout: 265 seconds]
hfp has joined #ruby
hfp_work has joined #ruby
scripore has quit [Quit: This computer has gone to sleep]
poguez_ has quit [Quit: Connection closed for inactivity]
allcentury has joined #ruby
<awk>
Guys, 1 little question https://gist.github.com/anonymous/411ad99261f1a28337ff .... that returns 5 (which is correct) however if I change xtrabackup_logfile to xtrabackup_logfile1234 and I puts validate without the count it returns only the other 4, if I use validate.count it still returns 5 .. i'm trying to give myself the count of what actually outputs
Sirupsen has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
ndrei has quit [Ping timeout: 240 seconds]
mhf has quit [Read error: Connection reset by peer]
schaerli has quit [Remote host closed the connection]
<apeiros>
?guys awk
<ruboto>
awk, we're not all guys - while you probably don't meant to be exclusive, not everybody feels that way. Maybe consider using "folks", "y'all" or "everyone" instead?
konsolebox has joined #ruby
usershell has quit [Ping timeout: 252 seconds]
<adaedra>
guize
<awk>
apeiros: well i'm from South Africa and thats how we refer to _everyone_
<[k-_>
we already read your question
livathinos has quit [Ping timeout: 264 seconds]
<[k-_>
it is best not to argue
Igorshp has quit [Remote host closed the connection]
<ruboto>
awk, it doesn’t matter if it’s "normal"/gender neutral to say "guys" in your idiolect. "You guys" to refer to a mixed group is erasure. All we ask from you is to be a decent channel member and respect that. If you want to further discuss this, join #ruby-offtopic.
<apeiros>
same @ knrz
Averna has quit [Quit: Ex-Chat]
<[k-_>
apeiros: they stopped :(
DEA7TH_ has quit [Quit: DEA7TH_]
<apeiros>
what do you mean, they stopped?
S_Walker has quit [Ping timeout: 244 seconds]
<knrz>
@[k-_, @ruboto — thanks for letting me know/I'll keep that in mind from now on. sorry again; it's my first day on IRC
<apeiros>
np
yoloats has joined #ruby
Cust0sLim3n has quit [Max SendQ exceeded]
syath has joined #ruby
htmldrum has joined #ruby
<awk>
apeiros: apologies
prestorium has quit [Quit: Konversation terminated!]
prestorium has joined #ruby
<apeiros>
awk: no need to apologize (at least not to me). just take note :)
<[k-_>
we should only use guys2 in extreme situations
<apeiros>
[k-_: I disagree.
<awk>
sure
xaxisx has quit [Ping timeout: 244 seconds]
<apeiros>
I use (and will continue to use) guys2 whenever somebody defends their use of guys, or wants to argue.
vimz has joined #ruby
<apeiros>
it's just all too easy to say "no big deal" if you're not affected by it
blackmesa has joined #ruby
yeticry has quit [Ping timeout: 244 seconds]
fantazo has joined #ruby
<arup_r>
Why my link is doing GET instead of PUT ? <%= link_to "Accept", {controller: "events", action: "accept", id: invite.id, method: :put} %>
<yorickpeterse>
arup_r: because of method: :put
<yorickpeterse>
oh wait
<yorickpeterse>
heh
<yorickpeterse>
the other way around
<arup_r>
:p
<yorickpeterse>
No idea in that case, might be worth asking in #rubyonrails
<DylanJ>
arup_r: you're probably not including rails js
<DylanJ>
and also
<DylanJ>
method: :put goes outside the url param
tmtwd has joined #ruby
DEA7TH_ has joined #ruby
<DylanJ>
since it's an attribute thats added to the element and then rails' js sees it and turns it into a put link
<arup_r>
I tried outside ,, still doing GET
yeticry has joined #ruby
<DylanJ>
show me what you have.
<arup_r>
Don't get the "rails js" .. What you meant ?
<arup_r>
ok sure
<DylanJ>
i mean "jquery_ujs" in your application.js
<DylanJ>
it's in there by default
Iskarlar has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<DylanJ>
but if you dont include application.js on your page things like remote: true, or method: :put on links wont work.
<arup_r>
Yes it is there
CaryInVictoria has joined #ruby
<DylanJ>
okay then show me your link_to
chills42 has joined #ruby
ndrei has joined #ruby
<knrz>
@[k-_ what's guys2?
<[k-_>
?justabot
<ruboto>
I'm just a bot. You don't need to address me.
<acovrig>
Is it possible to iterate over an array in irb without displaying it again at the end?
<acovrig>
["a","b","c"].each{|e| puts e} puts a, b, c on their own lines, then “=> ["a", "b", "c"]” at the end, can I have it not show that at the end?
<DylanJ>
["a","b","c"].each{|e| puts e}; 1
<knrz>
@acovrig if you really want, ["a", "b", "c"].each { |e| puts e }; nil
<DylanJ>
or that
chills42 has quit [Read error: Connection reset by peer]
<DylanJ>
whatever the last statement is gets printed
CaryInVictoria has quit [Ping timeout: 246 seconds]
chills42 has joined #ruby
<DylanJ>
arup_r: you're still putting method: :put in your url params.
<[k-_>
the purpose of irb is to see the result, no?
<shevy>
the purpose of irb is to write kickass code!
<arup_r>
no changing one min
<acovrig>
DylanJ, knrz: thanks, that works for the most part
<DylanJ>
also what version of rails are you using arup_r? who the hell uses {controller: action:} for routes anymore?
<arup_r>
Ohh! Sorry I didn't notice in which channel I am asking.. Sorry for thar
mistermocha has joined #ruby
vondruch has quit [Quit: Ex-Chat]
<acovrig>
[k-_: yes, but I would like to see a element of a has without seeing the entire hash, because when it displays the hash at the end, it fills the screen and I have to scroll to see the original output
<arup_r>
DylanJ: There is a reason.. which is my misunderdtanding.. I tought I need to send method: key with url_options: key... That's why I did it ..
<arup_r>
Let me try ,... what you said
<acovrig>
I’m looking to read the data in the hash, not just display it in a jumbled mess I have to read through
<c0def00d>
Ruby beginner here: I’m working on a Rakefile where I’ve defined classes to abstract most of the work and I’d like to use the Rake DSL inside my class methods (desc, task and file). I’ve read on the Rake documentation that it should be possible using the Rake::DSL module, but can’t figure it out.
felixr has joined #ruby
<c0def00d>
Can someone tell me how I would get it working?
<arup_r>
DylanJ: sure.. I have not seen in which channel I am
rodfersou has joined #ruby
mistermocha has quit [Ping timeout: 255 seconds]
<arup_r>
It is good that I didn't ask in #css .. :p As I am now most of the times there only... made them annoyed on me hehehehe
bmurt has joined #ruby
serivichi has quit [Ping timeout: 265 seconds]
jpfuentes2 has joined #ruby
InternetFriend has joined #ruby
Cust0sLim3n has joined #ruby
Iskarlar has quit [Ping timeout: 265 seconds]
quimrstorres has quit [Remote host closed the connection]
Guest97703 has quit [Quit: Leaving]
bubbys has joined #ruby
ged has quit [Read error: Connection reset by peer]
eGGsha has joined #ruby
tjbiddle has quit [Quit: tjbiddle]
ged has joined #ruby
f3ttX] has joined #ruby
rikkipitt has quit [Quit: Leaving...]
jerius has joined #ruby
lannonbr has joined #ruby
blackmesa has quit [Ping timeout: 264 seconds]
<c0def00d>
I tried using “include Rake::DSL” at several places, but it doesn’t seem to work
jerius has quit [Client Quit]
yoloats has quit [Remote host closed the connection]
nveselinov has quit [Quit: Connection closed for inactivity]
jerius has joined #ruby
khando has joined #ruby
allcentury has quit [Ping timeout: 244 seconds]
<DylanJ>
c0def00d: my mind reading skills are pretty rusty. mind posting code?
<apeiros>
[k-_: `module Foo; def ok?` --> can't be called without including it into a class, creating an instance of that class, and call it on that instance
<acovrig>
I’m getting a confusing output from .sort: I get a-u just fine, but then it has h,m,m; why are those after u?
freeUmo has quit [Ping timeout: 256 seconds]
<[k-_>
why would it call self.ok?
duggiefresh has joined #ruby
<adaedra>
ah, it's ok?
jbw__ has quit [Ping timeout: 264 seconds]
<adaedra>
?code avdi
<ruboto>
avdi, We can't help you without your code, please post it to https://gist.github.com
<adaedra>
oops
<adaedra>
?code acovrig
<ruboto>
acovrig, We can't help you without your code, please post it to https://gist.github.com
<adaedra>
sorry, avdi
<dudedudeman>
ha
mhib has joined #ruby
dhjondoh1 has quit [Remote host closed the connection]
eindoofus has joined #ruby
ducklobster has joined #ruby
veduardo_ has joined #ruby
tmtwd has joined #ruby
kobain has joined #ruby
ledestin has joined #ruby
prefixed has joined #ruby
<acovrig>
adaedra: true, I figured it out though (and am saying dhu *sigh*): .each{|o| printf "%s %21s %s\n", o.id, o.title, o.uri}.sort; 1 would obviously not sort by title, since I’m printing the ID first…
quimrstorres has joined #ruby
htmldrum has quit [Ping timeout: 240 seconds]
<adaedra>
if you say so
jpfuentes2 has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
Yiota_ has joined #ruby
<Yiota_>
how do i fixi nvalid byte sequence in UTF-8 (ArgumentError) ?
<apeiros>
acovrig: it's mostly not sort by it because .each does not return the block's values
<apeiros>
additionally, printf returns nil, so the block's value would always be nil…
symm- has quit [Ping timeout: 246 seconds]
<adaedra>
?context Yiota_
<ruboto>
Yiota_, Please add more context to your question, what are you doing, why are you doing it, which libraries are involved. Post some code to gist if it clarifies your question.
<acovrig>
apeiros: true, I realized I could use .order().each… instead of trying to sort it after printing it.
veduardo_ has quit [Ping timeout: 244 seconds]
<Yiota_>
there's a python script that's writing to CSV, there's the £ sign being written, whenever the ruby parser reads the £ sign it throws an invalid byte sequence error
<apeiros>
acovrig: .order? you mean this stuff comes from a DB?
<acovrig>
apeiros: yup
<apeiros>
acovrig: um, yes, then *definitively* use .order.
jerius has quit [Quit: /part]
<acovrig>
apeiros: I wasn’t thinking about it from a DB perspecrtive for some reason
dblessing has joined #ruby
<apeiros>
Yiota_: so the CSV isn't utf-8, and you tell ruby to read it as utf-8.
<adaedra>
i8igmac: don't clean the characters yourself, let the database do it for you. This is not PHP4.
tkuchiki has joined #ruby
<i8igmac>
im scraping data with ruby, then inserting into a DB
<adaedra>
ok
nateberkopec has joined #ruby
<i8igmac>
i believe only 4 chars above could cause problems when inserting a string to a DB
<i8igmac>
mainly ` " '
CaryInVictoria has joined #ruby
<adaedra>
if you use prepared statements, that will be taken care of automatically
<[k-_>
where does this habit of `' come from
<i8igmac>
data scraped from online source... tim's <=
denver has joined #ruby
<adaedra>
what, [k-_
hsekami has joined #ruby
<[k-_>
the habit of using ` to start a string
shakes has joined #ruby
senayar has quit [Remote host closed the connection]
<adaedra>
who does that
christiandsg has joined #ruby
senayar has joined #ruby
zzak has quit []
zzak has joined #ruby
<[k-_>
21:54:40 i8igmac: mainly ` " '
joonty has joined #ruby
<hsekami>
hello does anybody know any gems that could do Ruby background job/tasks in a given unix timestamp, it will execute at that particular time. otherwise it will run in background?
<i8igmac>
no, the data scraped from a online source, "some string i need includes fancy chars"
<adaedra>
i8igmac: what are you using to connect to the database
<adaedra>
[k-_: `` in SQL is used for field names, not strings
<i8igmac>
require 'mysql'
<adaedra>
ok, mysql gem
<i8igmac>
i guess there is a function that exist already
<i8igmac>
mysql_sanitize()
<i8igmac>
or something
CaryInVictoria has quit [Ping timeout: 250 seconds]
<adaedra>
prepared statements
<i8igmac>
i got it ,-)
JoshL has joined #ruby
livathinos has joined #ruby
<adaedra>
apparently not
allcentury has quit [Ping timeout: 252 seconds]
<adaedra>
grmbl, writing docs seems to be too much when you write mysql gem
tagrudev has quit [Remote host closed the connection]
<adaedra>
ah
<i8igmac>
you should use screws and nails when you build a house
ht is now known as Guest14145
_ht has quit [Ping timeout: 244 seconds]
<adaedra>
wat
<hsekami>
lannobr: i am looking at that now though, can i run just 1 off task? yet it will run in background if no tasks, and i can add jobs anytime without disrupting the app?
<i8igmac>
you should tie your shoes before you run
<adaedra>
wat
dede has joined #ruby
<i8igmac>
lol
blueOxigen has joined #ruby
iamninja has quit [Ping timeout: 240 seconds]
bluOxigen has quit [Ping timeout: 244 seconds]
jonee has joined #ruby
mistermocha has joined #ruby
firevolt has quit []
firevolt has joined #ruby
iamninja has joined #ruby
ndrei has quit [Ping timeout: 244 seconds]
allcentury has joined #ruby
konsolebox has quit [Ping timeout: 244 seconds]
freerobby has quit [Quit: Leaving.]
chills42 has quit [Remote host closed the connection]
<jonee>
test
<Sp4rKy>
Anyone using pathname.mountpoint? ? I have the same directory that seems to return true (which is correct) from irb and false from script
mistermocha has quit [Ping timeout: 250 seconds]
<adaedra>
didn't work, jonee
cardoni has quit []
cardoni has joined #ruby
tkuchiki has quit [Remote host closed the connection]
krz has joined #ruby
InternetFriend has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<darix>
also you want to use <%= %> for the parts you want to output
mistermocha has joined #ruby
ggolk has joined #ruby
CorySimmons has joined #ruby
skmp has quit []
ddarkpassenger has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
skmp has joined #ruby
Iskarlar_ has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
Philipp__ has joined #ruby
Trynemjoel has quit [Ping timeout: 256 seconds]
sarkyniin has quit [Ping timeout: 240 seconds]
ggolk has left #ruby [#ruby]
snockerton has quit [Quit: Leaving.]
<deepu>
darix: I already have "<%= hostname %>"
benlieb has joined #ruby
senayar has quit []
Trynemjoel has joined #ruby
arup_r has quit [Ping timeout: 244 seconds]
djbender has quit []
djbender has joined #ruby
rfv has quit []
DEA7TH_ has quit [Quit: DEA7TH_]
andikr has quit [Remote host closed the connection]
rfv has joined #ruby
troulouliou_div2 has joined #ruby
mistermocha has quit [Ping timeout: 244 seconds]
blackmesa has quit [Ping timeout: 244 seconds]
eGGshke is now known as eGGsha
jonee has joined #ruby
dubkoidragon has quit [Ping timeout: 265 seconds]
psy_ has quit [Read error: Connection reset by peer]
freeUmo has joined #ruby
msnyon has joined #ruby
lxsameer has joined #ruby
lxsameer has joined #ruby
maletor has joined #ruby
maletor has quit [Client Quit]
davedev24 has joined #ruby
gizmore has joined #ruby
maletor has joined #ruby
pdoherty has quit [Remote host closed the connection]
Zai00 has quit [Quit: Zai00]
NoShitSherlock has quit [Ping timeout: 246 seconds]
theery has joined #ruby
prefixed has quit [Changing host]
prefixed has joined #ruby
bricker has joined #ruby
DEA7TH_ has joined #ruby
felixr has quit [Ping timeout: 244 seconds]
shock_one has quit [Remote host closed the connection]
allomov has quit [Remote host closed the connection]
bcavileer has quit []
jpfuentes2 has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
bcavileer has joined #ruby
manveru has quit []
peter_paule has joined #ruby
manveru has joined #ruby
halfdan has quit []
ddarkpassenger has joined #ruby
halfdan has joined #ruby
charles81 has quit []
charles81 has joined #ruby
freeUmo has quit [Ping timeout: 244 seconds]
NeverDie has joined #ruby
sarkyniin has joined #ruby
freeUmo has joined #ruby
yqt has joined #ruby
eGGsha is now known as eGGshke
michaeldeol has joined #ruby
arup_r has joined #ruby
krokuz has joined #ruby
lolmaus has joined #ruby
rideh has joined #ruby
lannonbr has quit [Quit: WeeChat 1.2]
eGGshke is now known as eGGsha
fantazo has quit [Quit: Verlassend]
scripore has quit [Quit: This computer has gone to sleep]
RobertBirnie has joined #ruby
spider-mario has joined #ruby
bradleyprice has quit [Remote host closed the connection]
jpfuentes2 has joined #ruby
scpike has quit [Quit: leaving]
ndrei has quit [Ping timeout: 240 seconds]
msgodf has quit [Ping timeout: 244 seconds]
eGGsha is now known as eGGshke
snockerton has joined #ruby
casadei_ has quit [Remote host closed the connection]
deimos has quit []
deimos has joined #ruby
kachi8_ has joined #ruby
pengin has joined #ruby
bryancp has quit []
shock_one has joined #ruby
bryancp has joined #ruby
jbw__ has joined #ruby
einarj has quit [Remote host closed the connection]
<vimz>
is it possible to delete from an array using map? e.g. [:a,:b].map{ |v| v.reject! if v == :a } #=> [:b] | or is the ONLY real way to do it by having the entire array and calling a method just as reject or delete on the WHOLE array, e.g. [:a,:b].delete...
jbw_ has quit [Ping timeout: 240 seconds]
bohallor has quit [Ping timeout: 244 seconds]
eGGshke is now known as eGGsha
sdrew has joined #ruby
eminencehc has joined #ruby
Philipp__ has quit [Read error: Connection reset by peer]
<adaedra>
what are you trying to do? remove elements depending on a block?
<adaedra>
It's Array#reject iirc
JoshL has quit []
mary5030_ has joined #ruby
spider-mario has quit [Remote host closed the connection]
<jhass>
or Array#select if you'd have to negate
DEA7TH_ has quit [Quit: DEA7TH_]
chouhoul_ has joined #ruby
mikecmpbll has quit [Ping timeout: 246 seconds]
casadei_ has joined #ruby
msnyon has quit [Ping timeout: 244 seconds]
mary5030 has quit [Read error: Connection reset by peer]
jackjackdripper has joined #ruby
<vimz>
adaedra yes, remove elements depending on the block and the in-block value of v. just wondering if it can be done inside an existing loop or if I have to use a different loop on the whole array such as #reject or #delete
<jhass>
vimz: maybe show your real code
schaerli has joined #ruby
<havenwood>
vimz: There's no #map_reduce, if that's what you're asking.
spider-mario has joined #ruby
ndrei has joined #ruby
chouhoulis has quit [Ping timeout: 240 seconds]
<ElSif>
but there is .map.inject
werelivinginthef has quit [Remote host closed the connection]
<ElSif>
andi think #reduce is thing too?
freeUmo has quit [Ping timeout: 255 seconds]
<havenwood>
ElSif: There's a #map and #reduce, sure.
<ElSif>
yep :D
<jhass>
reduce and inject are the same thing
<ElSif>
makes sense
scripore has joined #ruby
<ElSif>
though i usually end up using #each_with_object
<havenwood>
vimz: No #filter_map either.
serivich has quit [Ping timeout: 246 seconds]
baweaver has joined #ruby
maZtah has quit []
hfp has quit [Ping timeout: 252 seconds]
<havenwood>
I guess in Ruby it'd be #select_map or #find_all_map, which have been proposed but held up on naming disagreements.
alexclark has joined #ruby
djbkd has joined #ruby
maZtah has joined #ruby
connor_goodwolf has quit [Read error: Connection reset by peer]
nitenq has joined #ruby
<havenwood>
I'd not be at all surprised if Ruby 3.0 got a #select_map, whatever the name for it. Though maybe not.
<deepu>
wmoxam: Thank you that is exactly what I needed... One quick question.. How do I add a new line at the end after username="test"/>
mhib has quit [Quit: Leaving]
<havenwood>
Ox0dea: bytes
micalexander has joined #ruby
bronson has joined #ruby
<Ox0dea>
havenwood: Yes?
<havenwood>
Ox0dea: I mean #bytes
<Ox0dea>
Yours is still better on account of being able to terminate early.
<havenwood>
Ox0dea: bytes.any?
<wmoxam>
deepu: you could join with a newline character
<havenwood>
Ox0dea: mm, yeah not converting to bytes
kaleido has joined #ruby
axl_ has quit [Ping timeout: 245 seconds]
<wmoxam>
deepu: or add one into the row templat
<Ox0dea>
Or don't worry about formatting your HTML?
Mon_Ouie has quit [Quit: WeeChat 1.2]
<micalexander>
I am trying to find a good example on how to create and interface to my app using a DSL kinda like how guard has its "guard do" blocks. Any recommendations?
<deepu>
wmoxam: ok
christiandsg has quit [Remote host closed the connection]
dented42 has joined #ruby
eGGsha is now known as eGGshke
<Ox0dea>
micalexander: &block + instance_exec, in a nutshell.
sgambino has quit [Client Quit]
failshell has joined #ruby
peter_paule has quit [Ping timeout: 264 seconds]
dojobo1 has joined #ruby
mollymorphic has joined #ruby
<micalexander>
Ox0dea: yep been reading up on that and messing around with it but can't seem to find a way to have the guard syntax with out wrapping it in another method or storing it in a variable
rubie has quit [Remote host closed the connection]
roolo_ has joined #ruby
eGGshke is now known as eGGsha
<micalexander>
Ox0dea: I want to be able to have a use config and to be able to read that config while going through each of the do blocks with out having to store them into a variable or wrapping them in another method
<micalexander>
Ox0dea: *user
Eiam_ has quit [Quit: ╯°□°)╯︵ǝpouǝǝɹɟ]
theery has quit [Remote host closed the connection]
rdark has quit [Quit: leaving]
theery has joined #ruby
autrilla has joined #ruby
<Ox0dea>
micalexander: You know `guard` is a method in `guard to`, right?
sinkensabe has quit [Remote host closed the connection]
<Ox0dea>
*`guard do`, that is.
roolo has quit [Ping timeout: 256 seconds]
theery_ has joined #ruby
theery has quit [Read error: Connection reset by peer]
<micalexander>
Ox0dea: that is what I was thinking, I guess I really want to know how does it go through the file and store all of its configurations. Is that part of the DSL?
rubie has joined #ruby
casadei_ has quit [Remote host closed the connection]
hobodave has quit [Quit: Computer has gone to sleep.]
DEA7TH_ has quit [Quit: DEA7TH_]
shock_one has quit [Remote host closed the connection]
dojobo1 is now known as dojobo
lannonbr has quit [Quit: WeeChat 1.2]
blackmesa has quit [Ping timeout: 252 seconds]
Kully3xf has joined #ruby
marr has quit [Ping timeout: 240 seconds]
InternetFriend has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
christiandsg has joined #ruby
lolmaus has quit [Quit: Konversation terminated!]
felltir has joined #ruby
sharpmachine has quit [Remote host closed the connection]
pengin has quit [Remote host closed the connection]
bohallor has joined #ruby
Gnubie__ has quit [Quit: No Ping reply in 180 seconds.]
<Ox0dea>
micalexander: Essentially, you must capture the DSL "calls", and if your language is sufficiently dynamic, capturing "commands" and their arguments via method_missing is probably one of the easier approaches to the thing.
<benlieb>
oh looks like I need eq not equal
<Ox0dea>
benlieb: Aye.
<benlieb>
grrr
<Ox0dea>
#equal? compares object identity.
<micalexander>
Ox0dea: hmm ok, reading through your code...
AlphaAtom has joined #ruby
Gnubie_ has joined #ruby
bmurt has quit [Read error: Connection reset by peer]
iateadonut has left #ruby [#ruby]
baweaver has joined #ruby
Igorshp has quit [Remote host closed the connection]
<Ox0dea>
rehat: I suspect you want to do more than just print within the inner block there, in which case you should nix the first `puts`.
kannan4k has joined #ruby
<rehat>
yeah I just did and it worked, thanks
Alayde has quit [Quit: WeeChat 1.1.1]
balazs has joined #ruby
jerius has joined #ruby
dudoom has joined #ruby
chills42 has quit [Remote host closed the connection]
pengin has joined #ruby
DEA7TH_ has joined #ruby
<kannan4k>
guys, I come from Python background. Here is a class in Ruby (https://gist.github.com/kannan4k/4ccb4dd1a30496fd56b6). can you please help me what is 'field' in there? and why data types specified over there?
mistermocha has quit [Ping timeout: 265 seconds]
<jhass>
kannan4k: field is a method most likely defined in TSheets::Model
nym has joined #ruby
Eiam_ has quit [Ping timeout: 272 seconds]
<kannan4k>
I need to convert this ^ to a Python class, can anyone write me a simple one with the above class, prolly with only one field
<kannan4k>
jhass: oh let me check
chills42 has joined #ruby
<jhass>
nope, as said field is some method, we don't know what it does
<jhass>
oh and
<jhass>
?guys
<ruboto>
we're not all guys - while you probably don't meant to be exclusive, not everybody feels that way. Maybe consider using "folks", "y'all" or "everyone" instead?
Alayde has joined #ruby
<yorickpeterse>
I self identify as an airplane
<rehat>
lol
<pfish>
insert attack helicopter copypasta
<jhass>
yorickpeterse: that's beautiful. So flughafen and you... ?
<shevy>
... kissing
mistym has quit [Ping timeout: 244 seconds]
arturmartins has quit [Quit: Leaving...]
acovrig has quit [Quit: acovrig]
snophey has joined #ruby
<shevy>
kannan4k that must be a method called field which accepts at least 3 arguments
<kannan4k>
jhass: sorry for that, i thought its like 'folks'
sargas has joined #ruby
sargas has quit [Max SendQ exceeded]
<jhass>
for some it is but point is that for some it isn't
<shevy>
last argument seems to be a Hash
sargas has joined #ruby
<yorickpeterse>
jhass: flughafen?
<yorickpeterse>
oh haha
<yorickpeterse>
I keep forgetting there's an actual person with that nick
<jhass>
how dismissive. And that from an airplane
<kannan4k>
shevy, yeah you are right "def self.field fname, type, options = {}"
Outlastsheep is now known as zz_Outlastsheep
jhack has quit [Ping timeout: 244 seconds]
snophey has quit [Client Quit]
<Ox0dea>
kannan4k: That methods accepts two arguments and an optional third.
<kannan4k>
is there any guide like -Ruby for Python developers :D
<Ox0dea>
Aria: Which environment variable is that?
quimrstorres has quit [Remote host closed the connection]
casadei_ has joined #ruby
Alayde has quit [Quit: WeeChat 1.1.1]
<bohallor>
im changing the name of the ruby executable (to get a tweaked version of mri & normal ruby working on one machine) and this is messing up the load path (not being able to find the gem files)
serivich has quit [Ping timeout: 244 seconds]
freerobby has joined #ruby
<bohallor>
also changing the ruby version name from ruby-> new name
<Aria>
RUBYLIB
freerobby has quit [Read error: Connection reset by peer]
<Aria>
Also RUBYOPT with -I flags in it
<Ox0dea>
bohallor: You're building your modified MRI in its own directory, no?
peter_paule has joined #ruby
workmad3 has joined #ruby
jackjackdripper1 has joined #ruby
Alayde has joined #ruby
<bohallor>
yes
apt-get_ has joined #ruby
freerobby has joined #ruby
sargas has quit [Quit: This computer has gone to sleep]
<Ox0dea>
Why not just tell chruby to look for Rubies in there?
<bohallor>
own directory. local builds work fine with --disable gems
fantazo has joined #ruby
jackjackdripper has quit [Ping timeout: 244 seconds]
jackjackdripper1 has quit [Client Quit]
sarkyniin has quit [Ping timeout: 246 seconds]
Yiota has joined #ruby
freerobby has quit [Read error: Connection reset by peer]
quimrstorres has joined #ruby
freerobby has joined #ruby
dented42 has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
baweaver has joined #ruby
freerobby has quit [Read error: Connection reset by peer]
arturmartins has joined #ruby
quimrstorres has quit [Remote host closed the connection]
sargas has joined #ruby
kadoppe has quit [Ping timeout: 246 seconds]
<bohallor>
didn't know chruby was a thing. ill look at just using that
freerobby has joined #ruby
<ElSif>
there is also rvm >.>
<Ox0dea>
ElSif: Please stop.
<ElSif>
lol
<dfockler>
chruby! chruby!
workmad3 has quit [Ping timeout: 255 seconds]
<ElSif>
people really hate rvm these days huh?
<Ox0dea>
It's shit.
<ElSif>
ok
<ElSif>
chruby is good i agree
riffraff has quit [Quit: This computer has gone to sleep]
freerobby has quit [Read error: Connection reset by peer]
swgillespie has joined #ruby
robbyoconnor has joined #ruby
swgillespie has quit [Client Quit]
<cout>
ElSif: depends on whom you ask
<ElSif>
im sure it does
senayar_ has quit [Remote host closed the connection]
freerobby has joined #ruby
robbyoconnor has quit [Client Quit]
havenwood has joined #ruby
<dfockler>
everyone should use what they want
kadoppe has joined #ruby
freerobby has quit [Read error: Connection reset by peer]
<miah>
i use rvm on servers at work and 'Its Fine™', but i prefer and use chruby on my systems
allomov has quit [Remote host closed the connection]
zuQe8 has joined #ruby
freerobby has joined #ruby
<miah>
actually, currently using rbenv on servers and it was a previous gig where we ran rvm.
n008f4g_ has joined #ruby
Mendenhall has joined #ruby
<miah>
anyways. they all worked fine.
casadei_ has quit [Remote host closed the connection]
Igorshp has joined #ruby
freerobby has quit [Read error: Connection reset by peer]
chills42 has quit [Remote host closed the connection]
freerobby has joined #ruby
jerius has quit [Quit: /quit]
benlovell has joined #ruby
alexherbo2 has quit [Quit: WeeChat 1.2]
<shevy>
I compile from the source \o/
freerobby has quit [Read error: Connection reset by peer]
alexherbo2 has joined #ruby
* ElSif
highfives shevy
Guest14145 has quit [Quit: Konversation terminated!]
allomov has joined #ruby
<ElSif>
of course, so do most of the tools like chruby and rvm
pengin has quit [Remote host closed the connection]
sargas has quit [Quit: Leaving]
freerobby has joined #ruby
casadei_ has joined #ruby
freerobby has quit [Read error: Connection reset by peer]
polpak has joined #ruby
mike___1234 has quit [Ping timeout: 244 seconds]
wildroman2 has joined #ruby
<ElSif>
sometimes i miss running gentoo T_T
freerobby has joined #ruby
Pupp3tm4st3r has joined #ruby
benlovell has quit [Ping timeout: 252 seconds]
esantiago has quit [Quit: Page closed]
bronson has quit [Remote host closed the connection]
j4cknewt has quit [Remote host closed the connection]
yxhuvud has quit [Remote host closed the connection]
benlieb has joined #ruby
mkosaki has joined #ruby
symm- has joined #ruby
dblessing has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
ruby-lang096 has joined #ruby
michael_mbp has quit [Excess Flood]
Musashi007 has joined #ruby
freerobby has quit [Read error: Connection reset by peer]
jxpx777 has joined #ruby
michael_mbp has joined #ruby
freerobby has joined #ruby
freeUmo has joined #ruby
<Ox0dea>
ElSif: chruby doesn't do anything but change the current Ruby.
<ElSif>
yea i get why it is different
DroidBurgundy has quit []
<ElSif>
much less intrusive
<ElSif>
i was just stating that there are options :)
<Ox0dea>
shevy: You said you didn't do that not too long ago.
<ElSif>
i got tired of having updates take half my battery life
<Ox0dea>
Then a "yes" would've done. :p
ninji has joined #ruby
<ElSif>
ah
<ElSif>
lol
<ElSif>
i thought you were making a silly cartoon comment
<havenwood>
Do you want ants? Because that's how you get ants.
<cout>
ElSif: I thought so too
<Ox0dea>
ElSif: Do you use any git packages?
<shevy>
Ox0dea didn't do what?
freerobby has quit [Read error: Connection reset by peer]
casadei_ has quit [Remote host closed the connection]
<Ox0dea>
Compile from source.
alexclark has joined #ruby
<shevy>
I'd never say anything like that because I always compile from source!
<Ox0dea>
Even though you use 2.2.2?
<ElSif>
shevy: Slacker?
<Ox0dea>
shevy uses LFS.
<shevy>
Ox0dea it was compiled from source
<shevy>
no I do not
freerobby has joined #ruby
<Ox0dea>
shevy: But... why?
<havenwood>
Ox0dea: shevy even got a shoutout on RubyRogues for being the guy in #ruby that always recommends compiling from source, granted they transcribed it as "chevy"
<ElSif>
shevy: as in git extensions?
<ElSif>
i did that once :D
<ElSif>
it was fun
<shevy>
Ox0dea because it brings only advantages?
<ElSif>
... and broke within a week
<Ox0dea>
havenwood: Huh, nice.
<ElSif>
then i was like 'Aha! this is hard, so thats why people let others maintain their distro.'
<shevy>
ElSif oh yeah, there is quite a bit of "hidden" knowledge
freerobby has quit [Read error: Connection reset by peer]
jerius has joined #ruby
maletor has quit [Read error: Connection reset by peer]
<ElSif>
Ox0dea: *as in git extensions?
<shevy>
ElSif, for instance right now I ponder about cfdg: /usr/lib/libstdc++.so.6: version `GLIBCXX_3.4.21' not found (required by cfdg)
<Ox0dea>
ElSif: No, I meant -git packages from the AUR.
<ElSif>
linked library issues D:
<ElSif>
oh, ya
<ElSif>
tons
<ElSif>
i use yaourt to manage them
<shevy>
oh yeah... I hate libtool
freerobby has joined #ruby
<shevy>
one day I shall replace it with a ruby script
<Ox0dea>
ElSif: Don't you hate that they build from scratch on every update?
<ElSif>
sometimes yea :\
<ElSif>
especially java ones
casadei_ has joined #ruby
<ElSif>
probably mostly to me not caring to keep a good java env :P
Mekkis has joined #ruby
<ElSif>
but PCGen needs it
<ElSif>
and i need PCGen to live
<ElSif>
... and play dnd
<Ox0dea>
I keep a directory of cloned repositories for packages I want HEAD for. :/
bronson has joined #ruby
zuQe8 has quit [Quit: Leaving]
freerobby has quit [Read error: Connection reset by peer]
tsvenson has quit [Ping timeout: 256 seconds]
<ElSif>
ah, yea i did that, makes it much easier to bring back a stable env when something goes wrong
<ElSif>
now im just too lazy i guess :(
drewo has joined #ruby
<Ox0dea>
It's easy enough to be automatically notified of when a pull would be an update.
freerobby has joined #ruby
arooni-mobile has quit [Ping timeout: 244 seconds]
<ElSif>
i still do it for a couple things, but only things that i really care what version im running
<Ox0dea>
I looked for an AUR helper that didn't start from scratch for -git packages, but there weren't any. :/
<ElSif>
and java is not one of those things :)
<Ox0dea>
Fair enough.
neanderslob has joined #ruby
tsvenson has joined #ruby
<ElSif>
yea, in not sure there are, it would be hard to manage changes that needed it to start from scratch versus those that didnt
<ElSif>
cant blame them for being lazy
Trynemjoel has quit [Ping timeout: 240 seconds]
mike___1234 has joined #ruby
<shevy>
laziness makes us write better programs!
freerobby has quit [Read error: Connection reset by peer]
usershell has quit [Remote host closed the connection]
christiandsg has quit [Remote host closed the connection]
arup_r has quit [Quit: Leaving]
freerobby has joined #ruby
Musashi007 has quit [Quit: Musashi007]
shinnya has joined #ruby
mistym has quit [Ping timeout: 244 seconds]
perrier has joined #ruby
Trynemjoel has joined #ruby
ledestin has joined #ruby
hal_9000 has joined #ruby
martinium has quit [Ping timeout: 252 seconds]
<ElSif>
yea, i usually find that im mostly motivated by 'how can i go back to sleep and not worry about this'
drewo has quit [Ping timeout: 244 seconds]
eminencehc has joined #ruby
Mekkis has quit [Max SendQ exceeded]
slackbotgz has quit [Remote host closed the connection]
freerobby has quit [Client Quit]
drewo has joined #ruby
freerobby has joined #ruby
mistermocha has joined #ruby
<shevy>
hehe
tsvenson has quit [Ping timeout: 264 seconds]
tsvenson_ has joined #ruby
<jhack>
I need some help, im creating a cmd line blackjack game, and i have the cards in a global array, how would i set it so that the JQKA, are set into values when im adding the total?
<jhack>
I'm trying to use .include and .push to check to see if these cards are in the hand and if they are, push a value into the hand
freerobby has quit [Read error: Connection reset by peer]
<ElSif>
yea, you dont want to mix your data types definitely, you will end up with weird 'oh this is a number sometimes but a string other times' problems
mistermocha has quit [Ping timeout: 264 seconds]
<eam>
Ox0dea: I wrote an entire chess program with a similar approach in high school
<eam>
white was capital letters, black was lowercase
Musashi007 has joined #ruby
<Ox0dea>
That's quite different.
freerobby has quit [Read error: Connection reset by peer]
<jhack>
So, i'm putting my array into the Card class, and have value, face_value inside my intiialize?
<jhack>
initialize
nofxx has quit [Ping timeout: 240 seconds]
<jhack>
sorry, new to ruby here lol
<ElSif>
sure, i would suggest having one be a ONLY stings, and one be ONLY numbers
<ElSif>
*strings
<Ox0dea>
jhack: Heterogenous data should be a necessary evil, not something you impose on yourself.
ascarter has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
freerobby has joined #ruby
<ElSif>
unless you like hurting yourself....
<Ox0dea>
There's always that.
<jhack>
so... my values would be put into a value array and face_value be my strings (JQKA)
ascarter has joined #ruby
bronson has quit [Remote host closed the connection]
apt-get_ has quit [Quit: Quit]
freerobby has quit [Read error: Connection reset by peer]
<ElSif>
I think that makes sense :)
<jhack>
alright, thanks
<ElSif>
np
sarkyniin has joined #ruby
rbowlby has joined #ruby
dudoom has quit [Quit: Konversation terminated!]
<Ox0dea>
jhack: Using 'T' for 10 should simplify some things.
freerobby has joined #ruby
<ElSif>
interesting, i like it
Musashi007 has quit [Client Quit]
<Ox0dea>
It's a pretty standard representation.
freerobby has quit [Read error: Connection reset by peer]
quimrstorres has joined #ruby
codecop has quit [Remote host closed the connection]
<jhack>
i dont understand, why?
quimrstorres has quit [Remote host closed the connection]
<ElSif>
people sure are smart :D
freerobby has joined #ruby
bronson has joined #ruby
sharpmachine has joined #ruby
<ElSif>
because less logic to handle them
<ElSif>
at least, probably more too
ruurd has quit [Quit: ZZZzzz…]
freerobby has quit [Read error: Connection reset by peer]
Mendenhall has quit [Ping timeout: 244 seconds]
ruurd has joined #ruby
andikr has quit [Remote host closed the connection]
phutchins has joined #ruby
freerobby has joined #ruby
<Ox0dea>
jhack: Uniformity of representation if nothing else.
<Ox0dea>
All the other ranks can be represented as strings of length 1; why not let 10 join the club?
ips|malc has joined #ruby
<ElSif>
no pun intended?
freerobby has quit [Read error: Connection reset by peer]
<ElSif>
i guess you didnt say `clubs` :P i should take a break
freerobby has joined #ruby
hanmac has joined #ruby
bradleyprice has joined #ruby
freerobby has quit [Read error: Connection reset by peer]
freerobby has joined #ruby
syath has quit [Quit: WeeChat 1.2]
ruurd has quit [Quit: ZZZzzz…]
ruurd has joined #ruby
_cball has joined #ruby
freerobby has quit [Read error: Connection reset by peer]
pengin has joined #ruby
eminencehc has quit [Remote host closed the connection]
sshuff is now known as sshuff|gone
leat1 has quit [Remote host closed the connection]
baweaver has quit [Remote host closed the connection]
nitenq has joined #ruby
<jxf>
jhack: There's a lot to talk about there, but generally I would have expected something like a Card object, a Deck object that holds all the possible cards, a Deck#shuffle that shuffles the cards, a Deck#take that takes the top card, and so on. Then your "Game" is a one or more Players and a Deck.
vickleton has quit [Remote host closed the connection]
Jackneill has quit [Remote host closed the connection]
nahtnam has joined #ruby
<jxf>
jhack: There isn't any "one right way" to do it. Generally speaking, though, developers tend to favor solutions where the cost of making a change is small.
tmtwd has joined #ruby
<Ox0dea>
jhack: Imagine how much your code would need to change if you wanted to add another player.
<nahtnam>
How would I go about making my own cli interface gem? I know there is thor, but from what I can see, you have to run it with a `./`. I want to be able to run it like rails does, without the `./`
peter_paule has joined #ruby
<jhack>
Okay, i'm gonna rewrite this into different classes
<Ox0dea>
nahtnam: You add an "executable" to your gem's bin/ directory.
<DmitryM_>
Hey gents, shot in the dark. When I debug Rails 4.x with Pry (binding.pry) and I terminate the debugging session with exit, the whole ruby process seems to hang (or block somewhere). This is with Ruby 2.1.2 on OS X. Any tips on how to start debugging this?
<Ox0dea>
?guys DmitryM_
<ruboto>
DmitryM_, we're not all guys - while you probably don't meant to be exclusive, not everybody feels that way. Maybe consider using "folks", "y'all" or "everyone" instead?
<DmitryM_>
My appologies, ladies and gentlemen.
s00pcan has quit [Ping timeout: 244 seconds]
<havenwood>
DmitryM_: You might also try in #RubyOnRails if you haven't already. Just them know it's a cross-post.
<DmitryM_>
thanks, havenwood i tried #rails, but taht doesnt' exist
<Ox0dea>
?rails DmitryM_
<ruboto>
DmitryM_, Please join #RubyOnRails for Rails questions. You need to be identified with NickServ, see /msg NickServ HELP
<havenwood>
DmitryM_: Ah, yeah it's #RubyOnRails.
DmitryM_ is now known as DmitryM
<havenwood>
Too bad #rails doesn't redirect.
lala has joined #ruby
s00pcan has joined #ruby
<apeiros>
#rails does redirect
<apeiros>
as does #ror
<borodin>
having trouble with ruby seeing a gem I have installed - gem list zabbixapi shows it, find show's it's path, but when I do irb require "zabbixapi" I see errors that the gem is notavailable
<havenwood>
DmitryM: Is something rescuing SystemExit or Exception?
<apeiros>
or it did redirect
mjuszczak has quit []
<havenwood>
apeiros: #rails just redirected me to ##namespace
<havenwood>
apeiros: #ror worked
<apeiros>
odd
Drewch has joined #ruby
<apeiros>
same for me. wondered whether it was because I already joined #rubyonrails
last_staff has quit [Remote host closed the connection]
<havenwood>
I hadn't joined #rubyonrails when it redirected me
ninji has quit [Quit: Leaving]
<DmitryM>
havenwood: i'm not sure. once i exit the debugging session, the process just stops accepting connections on port 80.. I'm not sure where to go from there.
<borodin>
can anyone tell me another gem that is normally loaded into ruby-1.8.6 (rhel default ruby) that I can compare this to?
bohallor has quit [Ping timeout: 252 seconds]
<Ox0dea>
borodin: Did you require 'rubygems' first?
ScriptGeek has quit [Read error: Connection reset by peer]
<borodin>
hmmm duhhhhh
Asher has quit [Read error: Connection reset by peer]
<Ox0dea>
borodin: It's only a 1.8 thing, so you're forgiven. :P
Asher has joined #ruby
<jhass>
1.8.6 x_x
hinbody has quit [Read error: Connection reset by peer]
<havenwood>
borodin: Ruby 1.8.6 is way past end-of-life. If you can, update to a currently-supported Ruby. Either Ruby 2.1 or Ruby 2.2.
ScriptGeek has joined #ruby
hinbody has joined #ruby
jenrzzz_ has quit [Ping timeout: 244 seconds]
<havenwood>
borodin: The `require 'rubygems'` is just required pre-1.9.
<borodin>
you're a sexy human being havenwood
<havenwood>
o.O
<borodin>
I have no doubt many humans want to reproduce with you and your mighty brain
<DmitryM>
havenwood: i wonder if the connection gets into a bad state if i end up debugging for a while..
<DmitryM>
if i exit right away everything works fine
<borodin>
thanks again!
craysiii has joined #ruby
icebourg has quit [Ping timeout: 250 seconds]
myztic has joined #ruby
bronson has quit [Remote host closed the connection]
philn_ has quit [Ping timeout: 250 seconds]
Mekkis has joined #ruby
bronson has joined #ruby
imperator has joined #ruby
<imperator>
hi folks
philn_ has joined #ruby
stantonnet has quit [Ping timeout: 250 seconds]
pocketprotector has quit [Ping timeout: 250 seconds]
hanmac has quit [Ping timeout: 246 seconds]
<imperator>
on an http POST is there any reason not to set a default body of "" ?
<havenwood>
imperator: hi
icebourg has joined #ruby
hanmac has joined #ruby
<imperator>
i hit an issue with RestClient.post that is bugging me
malconis has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
workmad3 has joined #ruby
stantonnet has joined #ruby
ruby-lang096 has quit [Ping timeout: 246 seconds]
carlosoliveira has quit [Quit: Connection closed for inactivity]
drewo has joined #ruby
jenrzzz has joined #ruby
pocketprotector has joined #ruby
rasalghul_ has joined #ruby
<dfockler>
imperator: what is it doing?
<imperator>
dfockler, not working ;)
<imperator>
basically, i had a post fail because i didn't explicitly pass "" to the post method
<dfockler>
when would you do a post and not have anything in it?
<imperator>
when the rest api i'm using says i don't need anything
werelivinginthef has quit [Remote host closed the connection]
<dfockler>
You need to change that REST api!
<havenwood>
imperator: If Content-Langth is 0 I don't see any problem with a default Body of "".
Lucky_ has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
workmad3 has quit [Ping timeout: 246 seconds]
freeUmo has quit [Ping timeout: 244 seconds]
phutchins has joined #ruby
<imperator>
dfockler, is the MS azure REST api
<havenwood>
imperator: It'd likely work with more apps.
allcentury has joined #ruby
<craysiii>
https://gist.github.com/craysiii/cb36c5fe33204bb4317f I am having an issue trying to sync up these two threads. In it's current state it ignores the sleep calls inside each thread. How can I get each thread to run at a certain interval?
hobodave has quit [Ping timeout: 255 seconds]
<havenwood>
I mean technically I don't think an empty Body is required if the Content-Length is zero but yeah, it's not wrong and likely better for compatibility.
<Antiarc>
Well, you would perform DB setup prior to your tests, in an isolated DB
<Senjai>
Controlling the data source inbetween tests that are not running on the actual backend is proving difficult
<myztic>
havenwood: thank you :)
<Senjai>
Antiarc: Okay, so if I have an acceptance test to purchase a product that goes out of stock, I need that product to be in its original state after that test
skinofstars has joined #ruby
workmad3 has joined #ruby
<Antiarc>
I would recommend using a separate test DB that simply sets up an item that is out of stock prior to the test
eminencehc has joined #ruby
skinofstars has left #ruby [#ruby]
Contigi has quit [Read error: Connection reset by peer]
<Senjai>
Antiarc: I meant the act of adding an item to the cart, and having it go out of stock before you can checkout with it. We do use a seperate test db, but we still have to maintain the state of it
<Senjai>
E.g. I'd like to rollback to the initial seeds after each acceptance test
a346 has joined #ruby
<Antiarc>
IIRC AR provides something like that through the use of transactional fixtures?
<Senjai>
If I was actually acceptance testing the backend, this would be easy because everything happens within the context of the database connection I control
<Senjai>
Antiarc: But I cant access AR from the test stack ;)
Igorshp has joined #ruby
<Antiarc>
Well, it wouldn't be too hard to provide setup/teardown steps for the test which set the state/restore the state, provided those interfaces exist
usershell has quit [Ping timeout: 240 seconds]
lxsameer has quit [Quit: Leaving]
zapho53 has joined #ruby
<Senjai>
Antiarc: They do not. I'm thinking I will have a seeds file for this specific set of testing, and dump the database and restore it from the SQL file after each test and restart the backend. Which is not fun.
duggiefresh has quit [Remote host closed the connection]
<Antiarc>
Heh, no, it's not fun. But it may be effective.
<slash_nick>
Senjai: dump db before tests... empty db and import dump on teardown?
<Antiarc>
Acceptance testing is usually slow anyhow though
<Senjai>
I may not have to restart the backend if I dont drop the database and instead just replace tables
<zapho53>
Is there a way with middleman to avoid having all my images duplicated in source/ and build/ ?
<Senjai>
iirc dropping and recreating the database borks AR connections
<Antiarc>
Senjai: You could also use a separate DB per test, perhaps
Yzguy has joined #ruby
bigbadbear has quit [Ping timeout: 240 seconds]
<Senjai>
Antiarc: That could get unweildy but thats also an option
<Senjai>
Antiarc: I could also restore each database while another database takes the next test
<Antiarc>
That way your test state would be isolated and inspectable, which would be handy
<Senjai>
and alternate between databases
<Senjai>
Bleh no, requires restarting the backend
jenrzzz has joined #ruby
<Senjai>
which is slow, and probably is slower than postgres doing its thing
omegamike has quit [Remote host closed the connection]
workmad3 has quit [Ping timeout: 250 seconds]
baweaver has quit [Remote host closed the connection]
<Antiarc>
Well, if it proves too unweildy you might just do segmented testing - test that the frontend behaves like so when it receives this data, and test that the backend behaves this way when it receives this request, etc
<Antiarc>
That's less comprehensive but it would be far easier to control
<Antiarc>
(This is effectively how one tests functionality against a remote API, anyhow)
decoponio has quit [Quit: Leaving...]
tennis_ has quit [Remote host closed the connection]
zapho53 has quit [Quit: BitchX: the NEW form of birth control!]
yfeldblum has joined #ruby
sshuff is now known as sshuff|gone
gamename has joined #ruby
wildroman2 has joined #ruby
<Senjai>
Antiarc: Yeah, but when we have control over the API we should also be able to do better than that.
lannonbr has quit [Quit: WeeChat 1.2]
<Senjai>
Antiarc: I think the goal would be to only write tests independent of state for this kind of stuff
imperator has left #ruby ["Leaving"]
centrx has joined #ruby
<Antiarc>
agreed - just noting that it's an option
<Senjai>
If I have to manage the data source of another application, that would quickly get unwieldy
xkickflip has quit [Quit: xkickflip]
victortyau has quit [Quit: Leaving]
edwardly has joined #ruby
Alayde has quit [Quit: WeeChat 1.1.1]
<Senjai>
Antiarc: Thanks for the dialogue. :)
edwardly has quit [Changing host]
edwardly has joined #ruby
<Antiarc>
Good luck with it! It sounds arduous either way - hope you find a good solution!
ascarter has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<Senjai>
Yeah, it's definitely going to be a tough problem
<Senjai>
To do it well
gamename has quit [Ping timeout: 244 seconds]
bhorn1 is now known as bhorn1|away
<nitenq>
Is there a way to get the cpu % of use using ruby ? (on Mac)
danzilio has quit [Quit: My computer has fallen asleep!]
kapowaz has joined #ruby
<jhass>
heh, basically same second
neanderslob has joined #ruby
<prefixed>
what does that do?
<jhass>
prefixed: look up the used methods and tell us!
omegamike has quit [Ping timeout: 260 seconds]
veduardo has joined #ruby
rbowlby has joined #ruby
<apeiros>
Regexp.union(array) =~ string
esantiago has joined #ruby
<Rhidian>
Hello
veduardo has quit [Client Quit]
<Rinzlit>
I think I'm starting to get the hang of this ruby stuffz o-o
<Rhidian>
I know this isn't the appropriate channel, but I already tried on on Ruby on Rails channel to no avail.
veduardo has joined #ruby
michael_mbp has quit [Excess Flood]
workmad3 has quit [Ping timeout: 246 seconds]
<esantiago>
Rinzlit, did you complete your server configuration?
blackmesa has quit [Ping timeout: 265 seconds]
<jhass>
Rhidian: you tried of you've been there for 2-4 hours
<jhass>
*if
<Rhidian>
I'm currently using the Cloud9 IDE, and I'm following http://guides.rubyonrails.org/getting_started.html guide, and whenever I try to connect to localhost:3000 I get the following error in chrome: This webpage is not available ERR_CONNECTION_REFUSED
rbowlby_ has quit [Ping timeout: 246 seconds]
<Rhidian>
Eh, I have been searching for around 3 or so, I tried all the fixes I found online, but it hasn't worked :/
<prefixed>
centrx so that method checks every string in the array against the "other_strung"
<prefixed>
?
Ilyas has quit [Read error: Connection reset by peer]
<centrx>
prefixed, Yes
Juanchito has quit [Quit: Connection closed for inactivity]
<craysiii>
Rhidian are you typing in localhost:3000 in your actual browser?
devbug has joined #ruby
<prefixed>
and it returns true / false?
<Rhidian>
Yes
GeissT has joined #ruby
<craysiii>
since your IDE is online you should be accessing the running server from a url of some sort
michael_mbp has joined #ruby
<craysiii>
localhost means the computer from which it was referenced
ELLIOTTCABLE has quit []
<craysiii>
so that would be your computer. which the server does not live on
poguez_ has quit [Quit: Connection closed for inactivity]
<Rhidian>
It's been stuff like "uncomment the # in Config/routes.rb"
prefixed has quit [Ping timeout: 255 seconds]
<drbrain>
thanks jxf
Kyhz has joined #ruby
<ght>
jxf: thank you
<ght>
and thank you drbrain.
<craysiii>
okay so Rhidian. When you uncommented it, did you go to the route after to see if the route worked?
<jxf>
I tend to use gsub as a general-purpose for all transformations but #delete is probably better here
<jhack>
Is this correct? def take(where)
<jhack>
where.push @@deck.pop
<jhack>
end
v4n has quit []
<jhack>
I'm trying to remove the last card from an array and add it onto another array
devbug has quit [Ping timeout: 272 seconds]
<jxf>
using @@ is almost never correct, so probably not
<jhack>
ok
<jxf>
jhack: I have no idea what this method is supposed to do, but whoever consumes it should probably just take the result of deck.pop and do what they like
Respek has joined #ruby
<Rhidian>
On the guide it said to just chekc the localhost:3000, so I tried that and it worked
nym has joined #ruby
<Rhidian>
Then I did the "Hello Rails" part, and that worked, but everything I've done after has not
<jxf>
jhack: btw, you might like codereview.stackexchange.com
zendrix has quit [Remote host closed the connection]
<bricker>
jhack: that looks correct
mollymorphic has quit [Quit: Lost terminal]
<jhack>
I'm getting a undefined method `pop' for nil:NilClass (NoMethodError)
<jhack>
-.-
<craysiii>
i am really confused as how you got that page to load on localhost:3000 if you dont even have ruby on your computer.
<bricker>
jhack: @@deck would only return nil if you explicitly set nil
<craysiii>
or if you're doing it all in c9 rather.
mike___1234 has joined #ruby
safeforge has quit [Remote host closed the connection]
<jhack>
it gives me the error when i'm not using @@
juanpablo_ has quit [Quit: (null)]
<bricker>
jhack: also be aware that that method is very non-threadsafe
<Rhidian>
I do have ruby on my computer
<bricker>
jhack: what?
jobewan has quit [Ping timeout: 252 seconds]
juanpablo_ has joined #ruby
<Rhidian>
But I'm trying out th guide online
juanpablo_ has quit [Read error: Connection reset by peer]
<craysiii>
i thought you were using cloud9
<Rhidian>
I think there might have been some sort of conflict with my computer and cloud9
ascarter has joined #ruby
<Rhidian>
Yesterday, when I tried it out, I was trying to configure the roots, and it kept pointing to my computer rather than Cloud9
a346 has quit [Quit: a346]
dudoom has joined #ruby
pmarreck has quit []
AlphaAtom has quit [Read error: No route to host]
pmarreck has joined #ruby
<craysiii>
doesnt cloud9 run in your browser? i thought it doesn't touch your machine unless via ssh. did you do that?
lannonbr has joined #ruby
AlphaAtom has joined #ruby
elia has quit [Quit: Computer has gone to sleep.]
<Rhidian>
Yeah, hmm I don't think so
senayar has quit [Remote host closed the connection]
drewo has joined #ruby
pengin has quit [Remote host closed the connection]
<craysiii>
okay so. any changes you make on cloud9 i assume will only be reflected through that url, https://therails-rhidian.c9.io/
zendrix has joined #ruby
baweaver has quit [Remote host closed the connection]
Kyhz has quit []
<Rhidian>
Sorry Im not being of much help, I haven't done any programming before
mikecmpb_ has joined #ruby
robbyoconnor has joined #ruby
<craysiii>
it's okay
dopie has quit [Quit: This computer has gone to sleep]
<Rhidian>
but the thing was, when I completed some of the guide on cloud9, it affected localhost:3000 yesterday
workmad3 has joined #ruby
tno has quit [Remote host closed the connection]
<Rhidian>
Then I deleted my ruby projects on my desktop because I couldn't do something about the root correctly, and now I can't connect to localhost
texasmade has joined #ruby
scottymeuk has quit [Ping timeout: 256 seconds]
pipework has quit [Ping timeout: 256 seconds]
EvilJStoker has quit [Ping timeout: 264 seconds]
Tarential has quit [Ping timeout: 256 seconds]
usershell has quit [Ping timeout: 250 seconds]
MVPhelp has quit [Ping timeout: 264 seconds]
anekos has quit [Ping timeout: 264 seconds]
marens_ has quit [Read error: Connection reset by peer]
marens has joined #ruby
hachiya has quit [Read error: Connection reset by peer]
anekos has joined #ruby
phreakocious has quit [Ping timeout: 264 seconds]
ashleyhindle has quit [Ping timeout: 264 seconds]
tekacs has quit [Ping timeout: 264 seconds]
MVPhelp has joined #ruby
mikecmpbll has quit [Ping timeout: 246 seconds]
lnx_ has quit [Ping timeout: 256 seconds]
elaptics has quit [Ping timeout: 256 seconds]
freedrull has quit [Ping timeout: 256 seconds]
p7r has quit [Ping timeout: 256 seconds]
<craysiii>
if you deleted your ruby projects then there wouldn't be a rails app to start in the first place. you could have just stopped the local server. are you sure you deleted the files?
lnx has joined #ruby
s2013 has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
ashleyhindle has joined #ruby
p7r has joined #ruby
freedrull has joined #ruby
drewo has quit [Ping timeout: 256 seconds]
elaptics has joined #ruby
pipework has joined #ruby
tekacs has joined #ruby
htmldrum has joined #ruby
rasalghul_ has quit [Ping timeout: 264 seconds]
<craysiii>
what i meant by stopped the local server, is i think that you stopped and thats why you can't access localhost right now.
phreakocious has joined #ruby
EvilJStoker has joined #ruby
<Rhidian>
oh that might be it
Mendenhall has quit [Ping timeout: 272 seconds]
pengin has joined #ruby
scottymeuk has joined #ruby
<Rhidian>
I moved the files to 'trash' on my computer and emptied the bin, so im assuming it all deleted
hachiya has joined #ruby
<craysiii>
well, you should be able to create a new rails app, and start over
myztic has quit [Ping timeout: 255 seconds]
workmad3 has quit [Ping timeout: 246 seconds]
c0ncealed has joined #ruby
<craysiii>
> rails new projectname
dgutierrez1287 has joined #ruby
htmldrum has quit [Remote host closed the connection]
krainboltgreene has quit []
krainboltgreene has joined #ruby
htmldrum has joined #ruby
crdpink2 has joined #ruby
crdpink has quit [Ping timeout: 244 seconds]
sharpmachine has quit [Remote host closed the connection]
dudoom has quit [Read error: Connection reset by peer]
bronson has quit [Remote host closed the connection]
meph has joined #ruby
im0b has quit []
rcvalle has quit [Quit: rcvalle]
im0b has joined #ruby
xkef has joined #ruby
sinkensabe has quit [Remote host closed the connection]
joneshf-laptop has joined #ruby
devbug has joined #ruby
chipotle has quit [Ping timeout: 240 seconds]
FernandoBasso has quit [Quit: May the force be with you.]
mistym has joined #ruby
dgutierrez1287 has quit [Ping timeout: 240 seconds]