« first day (879 days earlier)      last day (4060 days later) » 

2:00 AM
@BenjaminGruenbaum whats wrong with it?
 
@BenjaminGruenbaum As far as JS MVC vs PHP MVC i would honestly rather work with PHP... apart from meteor. They all have their uses I guess
 
@BrandonGelfand I think you should work on the site concept a bit more. To me, it looks like a blog with a cart plugin. But if you want a proper site, you need to worry more about the user, less about the components
 
Gotta go, dinner
 
@MrD node.js isn't built at the moment for things like full blown websites. It's built for webapps
 
brb in 30
 
2:01 AM
@MrD It was designed for that, actions that consume little processing time and a lot of IO. It's also very fast at the moment since v8 is awesome
 
Anyway guys I'm off to go get some more coffee, addios
 
Man I love the idea of GIT but I suck so bad with it I've had to re-make the same repo like 15 times cause it keeps fucking up some how
 
@BenjaminGruenbaum I am building a full site on node atm and im not unhappy with node + couch + lucene
 
@XCritics It's worth it, git is awesome, once you learn to use it you discover how powerful it is
 
@BenjaminGruenbaum v8 is amazing! ciao
 
2:02 AM
@plodder I'm not saying it's not possible, just that it was not the design goal of node
 
@BenjaminGruenbaum it keeps putting these lines in all my files

<<<<<<<<<<<<<<HEAD
end
>>>>>>>>>>>>>>>>>>>>>
and I have no idea why
 
@XCritics Those are merge conflicts
 
@BenjaminGruenbaum so how the hell do I remove that it's screwing up my entire project lol
 
@XCritics What are you using git for?
 
@BenjaminGruenbaum just to manage my Ruby on Rails project
so I can make changes locally
then push it
 
2:03 AM
@XCritics Who else is using it?
 
then pull it to my remote server
Nobody
I just use it for what I just said
 
You're changing it on both machines
 
If I git pull does it do anything to change it?
 
You have to commit and push every time you make a change before you switch computers
 
I might have accidentally did git commit on the wrong terminal
 
2:04 AM
@XCritics what that mostly means is that you are trying to merge commit X into branch Y, but commit Y has changes on the same sections and git will not decide which code is the right one
 
You're editing files on both computers at the same time without working with updated copies
 
@BenjaminGruenbaum oh, so if I do all the work on my local computer, and then just keep git pulling it, I should be safe yes?
It's only when I get push from remote that it screws with it?
 
@XCritics Yes, you push when you're done working, pull the first time you come to the computer
 
@BenjaminGruenbaum right now I'm making a lot of changes, does it matter how many times i do a pull?
 
If you're the only one working on the project there's no reason for you to see merge conflicts at all
 
2:06 AM
@BenjaminGruenbaum like I did a clone, now I pull after each major push
 
@XCritics You only pull once
Why did you clone -_-
 
@BenjaminGruenbaum how do I keep my remote file up to date?
 
Git is very simple
You start a new project and initiate a repository
 
@BenjaminGruenbaum I don't know whats clone do lol I thought thats how you get it in the first place.
 
Any WebStorm/PHPStorm users here?
 
2:06 AM
@XCritics let's start from the beginning
@ŠimeVidas me, but not often, why?
@XCritics You have a new project, so you start by doing a git init to create a repository, so far so good?
 
yeah I do git init git add . git commit -m "" git push
 
@BenjaminGruenbaum I have a .WebIde50 folder on three places, and I'm confused why.
 
@XCritics no empty commit messages, even in your own repos :P
 
where you push to?
 
Benj
 
2:07 AM
@ŠimeVidas What 3 places?
 
@BenjaminGruenbaum no i know i was just saying
 
@BenjaminGruenbaum 1. C:/Users/Šime/, 2. D:, 3. E:
 
@BenjaminGruenbaum I'm ok with pushing, but then on my remote machine with the web server, whats the best way to keep it up to date by pulling the changes from the repo
@BenjaminGruenbaum is I guess where I'm getting my confusing, I just want to pull the recent changes from the repo not the full thing
 
@ŠimeVidas I don't know... I'm guessing you have 3 projects? It creates one whenever you work on a project. Do they correspond to project folders?
@XCritics Git does that for you
 
@BenjaminGruenbaum Don't you mean .idea folders which are inside each project root?
 
2:10 AM
@XCritics It's very simple, you pull before you start start working, you add and commit during work and you push when you're done and occasionally
 
@BenjaminGruenbaum oh, so I do 1 pull, and then it just works it's magic every time on the remote machine?
 
All my projects are in E:\Projects
 
@XCritics: no.
@XCritics: you have a separate repository where you push to, like github?
 
@ŠimeVidas Hmm, I only have 1 directory called .WebIDE50, in C:/Users/
 
@BenjaminGruenbaum hold on I'm confused, I don't do any changes, other than on the local machine is where all the changes take place, I always push from the local machine (e.g. my macbook at home) but then I want to pull to my Ubuntu 12.04 LTS server and keep it up to date with the changes I make on my macbook
@BenjaminGruenbaum How might I do that?
@plodder
 
2:11 AM
@BenjaminGruenbaum That's probably the initial one. I'm not sure why I got the other two, but the one in D: is the most recent in my case.
(I'm about to install version 6, and I remember that I had to specify a path to those folders the last time)
 
@XCritics Are you working on one computer or two? Also, which is the server (or is the server external like bitbucket or github)
@ŠimeVidas Might be related to plugins
 
@BenjaminGruenbaum I only do work on the macbook, the linux server (which is my old laptop is sitting right beside me on my desk) is where I want to keep it for viewing and keep it up to date with the changes I push from my macbook
 
@XCritics In that case your git server is your ubuntu, you push to it over ssh or https or whatever
When you work on your macbook, you only add, commit and push, you add and commit often and push when you're done
 
Oh, ok so then does it still appear on the repo on my profile?
 
What profile?
 
2:14 AM
@BenjaminGruenbaum I keep my projects on a USB stick (E:) so I guess I've moved .WebIde50 to E: in order to have settings synchronized between my two machines. But, then, why is it on D: too? Well, whatever :-)
 
like my github profile
 
Oh -_-
In that case github is the server and not your linux
Well, in git everyone is the server
But you usually agree on a central repo everyone is synced to, in your case github
 
@BenjaminGruenbaum well if I can I want to push just straight to my laptop (I just push to github just in case my computers crap out I don't lose everything)
 
@XCritics: you push on your mac to github and you pull on your ubuntu server from github
 
@plodder with git pull right?
 
2:15 AM
yes
 
@XCritics I'd use github, it's social which is great
 
That's what I've been doing this whole time
But I Thought I only git pull once?
 
@XCritics nope, you have to pull each change
meh its 3am :(
 
@plodder will that only pull changes and not the whole thing?
 
@XCritics all that git really is doing is taking a snapshot of your files with add/commit
when you do a push, it will only send over the difference between the snapshot on github and the snapshot on your local machine
and when you pull the same vice versa
so what you need to do is 2 things:
 
2:21 AM
@plodder oh ok cause it seemed like my blah.sqlite3 kept getting overwrote
 
thats possible. because you shouldn't really put db files in git
 
@plodder maybe I should add it to my ignore file
 
yes. echo blah.sqlite3 >> .gitignore
 
How do I add it late like this git rm blah.sq and then add it to gitignore?
 
then add + commit that
 
2:23 AM
will it auto remove it once I add it to git?
 
good question re git rm
give me 1 second to test something because i havent done that in a while ;)
 
@XCritics No
If it's previously been added, you'll have to manually remove it
 
ye just tested that :)
 
With git rm?
 
@BenjaminGruenbaum you there?
 
2:25 AM
Yeah, working thouhg
 
sup fellas
 
MySQL injection
 
git rm --cached <file>
so it doesnt delete the local copy
 
how do I check which parts of my site are vulnerable
 
check your source code
 
2:26 AM
-_-
what do I look for sherlock?
 
i think in php its something like mysql_query("SELECT A FROM B WHERE C=$D");
where the variable gets inserted without being escaped and checked
 
I have to do that for every single flippin function?
 
How do I stop the server from tracking file changes, I don't want to accidentally push from the wrong side
 
in php i think mysql_escape is a great step forward
XCritics: which file changes?
 
But for every variable I need to type that?
mysql_real_escape_string does
 
2:29 AM
@plodder like if i change my environment from development to production
 
$name_bad = mysql_real_escape_string($name_bad);
 
@BrandonGelfand use Prepared Statements... Seriously..
 
@XCritics best practice for that is to put it in environment variable
 
i'm having trouble triggering input radio
am i doing this right?
 
@XCritics I only listen to a few ppl here
one isnt u
 
2:30 AM
LOL
 
heh
 
plodder
ben
phenom
 
@plodder tell him I'm right then lol
 
rlemon
 
@BrandonGelfand: better listen to @XCritics because my php is rustier than php4
 
2:31 AM
k
 
lol @BrandonGelfand you should be asking in the php chat
not here
 
good point...
 
@plodder Like a variable in git or ?
 
brb @plodder
 
back, hi all
 
@BrandonGelfand be careful though they'll flame you for asking such a vague question
 
@hanleyhansen ...you have no idea
 
@SomeKittens you're alive?
@SomeKittens about what?
 
Is "click to play" for Flash in Firefox? I can't find it.
 
@hanleyhansen Rumors of my death have been greatly exaggerated
 
2:33 AM
to late already asked it...
 
@XCritics no, as in user@server:/$ RAILS_ENV=Production rails
 
@SomeKittens since you're here: jsfiddle.net/fZ4pX
wtf?
 
@XCritics I'm searching for the best paper i know on git based deployments
from the CTO of Heroku
 
@hanleyhansen Your labels are weird
 
@SomeKittens lol you're missing the point. screw the labels. what's the best way to trigger on radio change?
 
2:38 AM
Event delegation?
 
sure
anything really
 
@XCritics got to love 6 illion bookmarks and dont remember the keywords because tech papers are nowadays used for creating marketing buzz :(
still searching that means
 
I mean use event delegation. Have an 'click' event for that whole input, then figure out what was clicked in the JS
@plodder What are you looking for?
 
@plodder haha
 
2:42 AM
that describes how deploying with git actually works for you
instead of against you :)
 
Ok I'll try to mosey my way through this
 
basically you set the real config in environment variables
 
-1
Q: Need advice on IDE/language for specific application development

tmwoodsI know this is a very specific question and I will delete it when I am done because it is incredibly localized but nonetheless I am in need of some expert advice. I am developing a desktop application for a battery management and data acquisition system. I already have the embedded side virtuall...

 
@plodder do you use RoR?
 
@XCritics not anymore
 
2:44 AM
@plodder How come what did you switch too?
 
vanilla JS :)
 
If I knew more javascript I'm sure I wouldn't but, Javascript isn't my strong point at all PHP is my best, but I recently switched to RoR which is nice not having to type in SQL every 3 seconds
A lot more easier to manage files too
 
I basically don't like refactoring in RoR, or any other framework for that matter
 
@SomeKittens err jsfiddle.net/fZ4pX/4
 
I deploy about 20% Java, 80% node.js atm :)
 
2:46 AM
@plodder what did you have to refactor?
 
and thats node without express because i hate connect
 
Node FTW. I deploy in 100% Node
 
@XCritics every app, one million times :P
 
@plodder haha how come?
 
@hanleyhansen Holy alert, Batman!
 
2:47 AM
because nothing is ever good enough
 
@SomeKittens what the hell is that thing lol
 
@SomeKittens aliensguywithjquerycaption.jpg.exe
 
@SomeKittens: I wish i was better at C++ so i could write very fast analytic functions there and interface with node
 
So is there any good tutorials on node, or should I learn JS in depth before I dabble in node
 
@XCritics nodebeginner.org is decent
 
2:49 AM
@XCritics: i think node is a great way to learn JS :)
 
@plodder Same here. Someday I'll have time
 
@hanleyhansen You call yourself a webdev and cannot even figure out basic problems?
 
@SomeKittens well thats the only reason left for me to code java
 
@plodder and it offers all the same functions? Like do you write 100% in node, or do you write in HTML/JS/CSS and then use NODE for server side
 
@plodder C++ Is really not that hard, it's much simpler in concept imho
@XCritics node is js
 
2:50 AM
Yeah but like
 
@XCritics i write no html, i use jade templating mostly.
 
24 secs ago, by Benjamin Gruenbaum
@XCritics node is js
 
Ok let me ask this, Node serves as what function in your application
 
@copy who says i can't figure out basic problems?
 
@XCritics server side, like php would for example
 
2:50 AM
The one problem with using Node to learn is you miss out on DOM manipulation, still learning that.
 
@XCritics: as webservice, like RoR
 
Oh ok, and what do you use for your SQL, like sqlite, postgres?
 
@SomeKittens miss out :P what a choice of words
 
@XCritics MongoDB
 
nosql
so mongo and couch
 
2:51 AM
Can you use what you want?
 
You can use SQL with node
 
@BenjaminGruenbaum instantostrich.com
 
Jesus node scares me
 
Yeah, you use whatever you want
 
@hanleyhansen I do, looking at the fiddle you made
 
2:51 AM
All these things I've neer heard of
never*
 
You can use MySQL, PostgreSQL etc
 
@XCritics: you can use all of it
 
A lot of people prefer NoSQL databases like MongoDB or CouchDB for node.js because they're usually slimmer and faster for RESTful APIs which is what node is used for a lot of times
 
@XCritics They're all awesome. Learn them
 
@copy i'm not a js developer.
 
2:52 AM
@SomeKittens yeah well, I WILL so bleh
:)
 
\o/
 
@hanleyhansen You can't be a front-end web developer and not know JavaScript
 
@SomeKittens you prefer mongo over couch? :)
 
@BenjaminGruenbaum i'm not a front end web developer. i'm a back end php developer
 
@plodder Yep. My whole stack is JS
Never used couch, heard it's nice.
 
2:53 AM
its nice from admin point of view
 
Apples magic mouse is pretty nice, am I the only one here?
 
all views predefined :P
 
Just bought the node beginner book
Pray for me
 
Fruit + mouse == magic .. does not compute
will do
id convert anyone to node any day
expecially ror foolz :P
 
What's its longevity like?
Why is it every time I learn a new language I'm learning the wrong one lol
 
2:55 AM
haha no
you're not learning the wrong one
 
I learnt PHP then it was like OMG BRO USE DA ROR OR YOU GET THE INJECTS, I'm like OK \o/ now its all, Node bro... Node or ugay
 
mb thats cus u on the JS channel ;)
 
Yeah well I'd rather be here than the 0 user RoR chat
 
in the ror chat they will say node.js is experimental crap and they once did a benchmark 3 years ago that proved that ror is faster
 
Node is nice because then your whole stack is one language. No need to learn more
 
2:57 AM
@SomeKittens: thats how I sell it :P
thats not what i do though
 
Learning languages is hard. Only needing to learn one language > Some stupid benchmark
 
@SomeKittens Eureka! jsfiddle.net/fZ4pX/5
 
I know ~5 coding languages, but am mastering only one right now
 
well the PHP guys also found that when you invest $3k in commercial software on your hostgator vps, you can beat node.js by 10% ;)
so benchmarks do matter :)
 
Front-end guys: Should I be using querySelector or getElementById?
 
2:59 AM
gEBI
 
As a startup founder: 10% slower > $3k
 
(shutting up now)
 
@copy and why?
 
@SomeKittens: same, same and same
 

« first day (879 days earlier)      last day (4060 days later) »