« first day (2112 days earlier)      last day (2838 days later) » 

7:02 AM
i have download sb admin anguler template than i buil grunt and bower using npm and start npm.....thay give me 0.0.0.0:8888....!! than i open 127.0.0.1:8888 and temaplate run properly....!! but i can't access it through direct index.html or apache server
 
@choz haha. vim is actually easier to use than most IDEs.
It has cool stuff too.
 
I tried Emacs for a bit and it felt even easier than Vim
 
An hour of using emacs usually leaves me with wrist pain.
 
is that purple or pink?
 
#C795AE
 
7:05 AM
did you try Evil mode? emacswiki.org/emacs/Evil
well, at least bits like mixing several syntaxes in one buffer didn't feel like a total hack
 
@FilipDupanović Nope. Why not juse use vim?
 
@littlepootis I just seem to find it comfortable to navigate between files, and I am sure I don't have that autocomplete feature. Do I need to install such plugins for it?
 
hello
 
@choz yes
 
!!welcome reyjoel
 
7:11 AM
@reyjoel Welcome to the JavaScript chat! Please review the room rules. Please don't ask if you can ask or if anyone's around; just ask your question, and if anyone's free and interested they'll help.
 
You'll need to install the YouCompleteMe plugin.
 
Let me check that out.. I need to practice more..
 
do you know a plug ins about preview image then if click will become big
 
The shortcuts need years to master I bet..
 
@choz start here vimawesome.com
 
7:12 AM
@reyjoel Try Galleria? or with a simple bootstrap modal you can do also
 
Not really. You just learn a few basic commands and then learn the "advanced" ones when you need them.
 
i just need simple preview and display image when click
in jquery
 
vimawesome.com/plugin/unite-vim is a great plugin, the plugins that interoperate with it can turn Vim into an IDE
 
@choz thank you ill check it
 
!!nudge 15
 
7:13 AM
@SagarNaliyapara Nudge #3 registered.
 
@littlepootis I don't know, just felt that the Emacs modes are a lot better to what I hacked together to get things like JS and JSX working together... gosh, we'll also have CSS in the same buffer next year
 
ReactJS
 
@choz nice article on unite.vim bling.github.io/blog/2013/06/02/…
 
@km8295 ...are you using node to host the page or apache? What is "giving you 0.0.0.0:8888"? What do you mean index.html? Do you even have that page? What's your directory structure look like? How many watermelons fit into a 1965 VW Beetle?
 
^ with or without the driver inside?
 
7:19 AM
Both.
 
@FilipDupanović Thx for the links.. I am checking em out..
 
@FilipDupanović How many watermelons did the driver eat before getting in?
 
@choz nah, couple of weeks let you be comfortable already
 
@littlepootis As many as are required. Minus two, they had alcohol poured in and were blended.
Using grunt, no less.
 
7:27 AM
Porting to production on a Saturday is evil. It only pits programmer against programmer on who has to go in Saturday to check.
 
@SagarNaliyapara nudge
 
7:38 AM
I saw a video of someone who bore a small hole into a watermelon and used a coat hanger attached to a drill to blend it up. Then he poured vodka in. Was impressed
I suppose you'd have to use the seedless variety though
 
of the drilling part, or of the sparing enough vodka part?
 
Yeah seedless would be ideal.
 
@JanDvorak well the drilling part mostly, but I had never considered the possibility of combining vodka and watermelon, so 10% impressed by that as well
 
Yeah, I did that exact thing a few years ago.
My friend ended up wearing the watermelon husk as a hat for the remainder of the night.
He may have imbibed the majority of the watermelon slush... :P
 
@Nimphious sounds like it was a great party
How much room was left for vodka?
 
7:46 AM
It was right up until I was twirling my fire staff around with my little sister and got pushed onto the plastic container filled with kerosene which then lit on fire and melted, spilling some onto my foot and burning me :P
 
Did you have to pour out some of the juice?
 
Nah there's a fair amount of air inside a watermelon once you crack it open, and you don't need too much alcohol to make it rather potent.
 
@Nimphious indeed. Great party
 
I mean, you open up the hole and it looks like solid watermelon, then you jam the coat hanger in there and power up the drill and it all reduces down a bit. Then insert some vodka and hey presto.
 
Cool
Maybe rum would work better
 
7:49 AM
It helps if you loosen up the flesh a bit first. We used a steel skewer to do that first. Otherwise the coat hanger just bends or tries to rip the melon out of your hand.
 
Not sure, never tried the two together
 
I think Vodka + Watermelon works because the sweet contrasts with the tart, rum would probably just be too sweet.
But you never know until you try.
 
My parents once went to this bar in Russia during their retirement travels and in the vodka my dad ordered, he said there was this piece of cheese
 
lol?
 
He ate it and said that it was quite chewy and not very tasty. Turns out that it was a piece of fat.
 
7:53 AM
Hah.
Oops.
 
He had two before he realized it
 
Was the fat from the distillation process or added after?
 
Added after I think.
 
Odd. Crazy Russians.
 
It wasn't a small piece either. Huge round white ball of fat
 
7:54 AM
I mean, if anyone knows how to do Vodka it would be them I guess. But eh.
 
I read that it is common practice to occasionally pay vodka factory workers with a bottle of vodka. Don't know if that's true though
The fact that they don't complain should be some indicator of the amount of alcohol consumption by Russians
 
> If you change a file name extension, the file might become usable. Are you sure you want to change it?
 
@JanDvorak there needs to be a "fuck off" button where you never get asked that question ever again by windows
 
Renames explorer.exe to banana.hammock
 
How much can you change by userscripts in firefoxOS?
 
8:05 AM
nfi tbh tla bbq wtf
 
!!urban nfi
 
@JanDvorak nfi No Fucking Idea
 
!!urban tbh
 
@Nimphious tbh to be honest
 
!!urban tla
 
8:07 AM
@Nimphious TLA Three-Letter-Acronym
 
Neat.
 
I got the others
!!urban bbq
 
@JanDvorak Input not matching /((.*?)*?)*?d/. Help: User-taught command: WHATksahdfklajjahskdfjhkashdkfjakshdfkhagskdfgkashgdfkagskdjfgkahsgdkfasd
 
<div class="preview">

		</div>
		<ul class="thumb">
			<li><a href="#"><img src="images/wew/coleen.jpg"></a></li>
			<li><a href="#"><img src="images/wew/jessy.jpg"></a></li>
			<li><a href="#"><img src="images/wew/jinri.jpg"></a></li>
		</ul>
 
I just wanted to see if it worked.
 
8:07 AM
@JanDvorak [bbq](http://bbq.urbanup.com/477100) Generally the acronym used for barbecue, it has evolved into a piece of the internet vernacular.

Used to poke fun by attaching it to common acronyms such as [\[wtf\]](http://urbandictionary.com/define.php?term=wtf), [\[omg\]](http://urbandictionary.com/define.php?term=omg) and [\[hax\]](http://urbandictionary.com/define.php?term=hax).
 
how can i display the first <li> into .preview?
div
 
Why do you need the first <li> to be in the <div class="preview"> element?
 
by hiding the rest?
 
cause i have this code
jQuery("ul li a").click(function(){
				var x = jQuery(this).html();
				jQuery(".preview").html(x);
			});
 
Do you want a larger image that the thumbnail represents to appear in the div when you select one of the thumbnails?
 
8:10 AM
yes i get it but i want to display first the first li
<li>
before i start clicking the rest of <li>
i can get it if i put this above click function
jQuery(".preview").html("<li><a href='#'><img src='images/wew/coleen.jpg'></a></li>");
 
How do you click something you can't see?
 
but i want it to dynamic not static
 
anyways: hint: display:none
 
it sees the ul li a
but preview should be empty
i just need to make it dynamic this code where i put this above click function
jQuery(".preview").html("<li><a href='#'><img src='images/wew/coleen.jpg'></a></li>");
 
You have to put your data somewhere, so why not put it where it will be in the end?
 
8:15 AM
lalilulelo
 
> A web designer travels by train, and hears <td></td><td></td><td></td><td></td>...
 
@JanDvorak yes i like to use it but the assignments is we cant touch the html given
 
Then don't
 
Works for me like this jsfiddle.net/adtdev17
 
@Nimphious the code is not wrong just i want to dynamically display the first <li> in preview
 
8:21 AM
Also notice the potato image doesn't work because it was added after the event listener was created.
 
at your example i want to display coleen first in box
 
There's an example that will react properly to images added after the handler is created.
Sorted?
 
@Nimphious thank you this is what i need to make it dynamic
 
Doneski.
 
@Nimphious my teacher told me it was a cheat hahaha
so i make it like this
jQuery(".preview").html(jQuery("ul li a").html());
			jQuery("ul li a").click(function(){
				var x = jQuery(this).html();
				jQuery(".preview").html(x);
			});
 
8:30 AM
What was a cheat?
Adding the live event listener?
 
Mother of god.
 
Also, your "teacher" told you to write that? You need a new teacher man.
 
@Nimphious i need to know the basic first that was he said
 
That is awful for a number of reasons
 
so, what's the hottest build tool of today?
 
8:32 AM
bdw thank you for the help anyway :)
 
@FilipDupanović arc welder :-D
 
@FilipDupanović screwdriver
 
@Neil could have been worse
@Neil only if you heat it up
 
d'oh! need an actual replacement for Webpack
 
@JanDvorak that is the curse of what we do. It could always be worse
 
8:33 AM
touche
So, what's the worst part of this?
 
Js in wingdings would be bad
 
Ok, so the basics are the following:

First, `$` is the shorthand for the `jQuery` function. Don't write the full function name it's horrible.
Second, the best function to use to create event handlers is the generic `on` method, not the shortcut methods like `click`
Third, if you're using jquery, everything complicated is done for you, everything is "the basics". Right in the documentation for the `on` method it has an argument for subqueries and explains what they are for and how they work.
Fourth, doing things the worst way possible isn't a good learning experience.
 
That's an editor-specific thing
 
I could keep going but goddamn. You need a new teacher @reyjoel.
 
@Nimphious The longhand exists there for a reason, as a framework could steal the dollar symbol
 
8:36 AM
Sure, but it's a closed environment he's learning in, and in production you'd minify it and not run into that problem by using closures.
 
@JanDvorak there are better ways to ensure that $ really is jquery without writing "jquery" every time
 
And that's a lesson learned later, after getting the basics down. And in the start, $ is way easier on the eyes than loads of "jQuery"s :P
 
@Neil unless you really want $ to be the thing some other lib provides
 
@JanDvorak which isn't the case here
 
true
 
8:38 AM
If you use a framework that steals the $ symbol for itself, iirc jQuery supports you setting it to something else. On top of that, if you're running into that problem then your other framework is either poorly coded, or you're not correctly handling the conflict.
 
What's wrong with the shortcuts like click except limited versatility?
 
Unless I am mistaken and "jquery" here is a symbol of another library with similar functions
 
The only time that would ever be out of your control is if it was something a third party included into the page, like an ad or something, and in that case you're not insulating your third party content correctly with closures and/or iframes or whatever.
 
I don't like the dynamic element creation
I would avoid it like the plague, even if it means having hidden elements to copy on your page
 
php has $ and if i use $ also in jquery my brain would explode hahahah
 
8:41 AM
The problem is that cloning an element doesn't clone its handlers
@reyjoel stop using PHP
 
@JanDvorak Using the shortcut functions 1) Doesn't let you use the extra functionality of the on function, 2) Using the on function removes ambiguity where a first time learner might think that calling a click(...) function invokes a click, rather than listens for it, 3) Using the same function multiple times rather than a bunch of different functions few times makes the VM/JIT compiler happier :P
 
@Nimphious don't optimize for newbs
 
Wat?
 
@JanDvorak for me, apart from versatility, nothing?
 
@JanDvorak but i need to use php to send data to database
 
8:42 AM
No.
 
There are LOADS of alternative frontends backends, all of which are demonstrably superior to PHP.
Why are you using PHP in particular?
 
for webpage
 
backends
 
@Nimphious not all of them. Classic ASP is a case in point
 
Thank you poots.
@JanDvorak We don't talk about classic ASP.
It doesn't exist.
 
8:44 AM
because facebook is made from php? thats why i want to learn it?
 
Facebook is made from a custom rolled version of PHP put through a blender.
 
yes and i want to learn from it
 
And probably only because the legacy code from way back when it was a tiny website made from students.
 
i need to learn php first then study other language
 
How are you going to learn from facebook's PHP? Their code isn't publically visible, nor is it standard PHP you could ever use?
You also don't need to learn PHP first, in fact it would likely do more harm than good to learn PHP first.
 
8:45 AM
Facebook no longer uses php
 
Oh?
 
i need to learn the basic of php then use a framework like CI or laravel
 
It is their own language albeit similar
 
I mean, technically they haven't been using it for a long time since they rolled their own custom version.
 
@reyjoel Facebook uses a lot of different tools.
 
8:46 AM
Wait I already said that Neil...
 
ahh i see
 
o_o
 
but still many companies hiring php developer
 
@Nimphious oops
 
They use Hack on HHVM now.
 
8:47 AM
That's what I get for reading the last couple lines
 
Shrug
 
@reyjoel Companies hire all kinds of peeps.
 
Good morning guys, i am looking for a plugin to convert from normal date to doy if anyone can pin point one . Thanks
 
yes but php is my first language learn
 
@reyjoel Majority of PHP hires are going to be for maintaining aging codebases or doomed startups.
 
8:47 AM
Most PHP devs I know are severely underpaid.
 
@reyjoel because nobody wants to do that
 
@reyjoel go for Laravel if you need a framework
 
ok after php i want to learn new language
 
@Joseph to doy?
Seriously man why are you so set on learning PHP? It's literally the cancer of the internet codebase.
 
You can learn php, but you would have the problem that you'd have to program in php afterwards
 
8:49 AM
@Nimphious figuratively
 
@reyjoel Did your "teacher" convince you to learn PHP?
@JanDvorak You can't tell me what to do.
 
@Nimphious day of year
 
nope
 
@Joseph What's the time format stored as? Seconds since unix epoch? Date string?
 
can you recommend me other language?
 
8:50 AM
any, i don't mind
 
You're already learning javascript. Try node.js
 
Kill two birds with one stone.
 
@reyjoel JS
 
@Joseph No I mean, your source data. How is it formatted?
 
8:51 AM
node.js for back end?
 
Yes @reyjoel. node.js is an instance of Google's V8 JS engine running headless with extra stuff for developing standalone applications like web servers.
 
@reyjoel yes, you don't even have to learn another language to do both front end and backend
 
Super simple to set up, buttloads of examples to look at, and loads of people in here who would be more than happy to help you when you run into trouble.
 
@Nimphious why php is the cancer of internet codebase?
 
why should that matter ? say dd/mm/yyyy
 
8:52 AM
you can write CLI, desktop electron.atom.io and server applications
 
PHP is a great language
 
@Buchow_PHP Welcome to the JavaScript chat! Please review the room rules. Please don't ask if you can ask or if anyone's around; just ask your question, and if anyone's free and interested they'll help.
 
ok im going to study node.js
 
It's easy to write bad code in PHP
 
@Buchow_PHP Hhhhhsssssssssssssssss
 
8:53 AM
@reyjoel this may not be as true as it was before, but we're obviously a bit biased here
 
People who slag it off generally have a very outdated knowledge of it
or cant code
 
@FilipDupanović what do you mean?
 
Personally I just hate PHP's syntax and think it's horrible to code in. Also maintaining other people's code is a nightmare more often than not because people don't know what they're doing most of the time.
 
Its C based!
 
8:54 AM
Your face is C based.
 
@Nimphious node(npm) give me 0.0.0.0:8888...and it's working properly....but when i run on apache...index.html show me blank page...!!
 
PHP isn't bad, bad developers are bad.
 
Its function names are horribly inconsistent
 
Holy fuck nuggets @km8295 why are you using node AND apache?
Why didn't you answer my previous question about this?
And why are you repeating yourself instead?
 
why not
 
8:55 AM
@reyjoel PHP is an olden language, Node.js is newer, did a lot of things better than any language before, but PHP is picking up the pace, the language is still evolving
 
@Nimphious Most people do, though the to-go-to is usually Nginx.
 
Also when you "run on apache" and "index.html" what are you saying?
 
Php is like if someone had said to themselves that libraries are hard to use because all the books are on shelves in various sections and decided to open the first library where all the books are on the floor instead
 
PHP is an old language! what are you on
 
JS is old too.
 
8:55 AM
@km8295 Is apache your caching server? Is index.html the page that node is serving?
C is old too.
Age of the language is irrelevant.
 
old in the sense it came out without a built-in package manager and a decent repository to discover the language extensions
 
I just think PHP is a shitty language and it's particularly bad for someone to learn as their first language because it's so wonky and fucky.
 
would you do that today after seeing Node.js' success on GitHub, when creating a new language @Buchow_PHP?
would you make it that impossibly hard to compile PHP with native extensions as it's still the case?
 
"So wonky and fucky"... how can any argue with that
 
It's absolutely true
 
8:57 AM
Your counterargument so far has been "lol no it's C based" and "anyone who disagrees with me is a moron" so I don't know what you're on about @Buchow_PHP.
 
Php has a very relaxed policy for naming and collisions
 
@Nimphious i have one template that properly working with node but when i try it with apache it's show me blank page nothing more
 
I cant remember calling anyone a moron
 
Which is fine if your objective is to not crash, but it also means that your programs are very fragile
 
@Neil because for a very long time the recommended processing model was: get a request, start a PHP process, handle the request and die
 
8:58 AM
"People who slag it off generally have a very outdated knowledge of it
or cant code"
^ What you said earlier @Buchow_PHP, I simplified to what you read.
 
@Neil Not really.
 
Eh, how do you quote in this.
 
@Nimphious true
 
is "we'll be solving compatibility later" a workable strategy when dealing with IE9?
 
@littlepootis if your method is replaced by another, you have no way to prevent it or even plan for the possibility
 

« first day (2112 days earlier)      last day (2838 days later) »