« first day (799 days earlier)      last day (4150 days later) » 

12:50 AM
Hey is there an actual official design philosophy stated for JS anywhere?
 
@ErikReppen If so, its probably not a good idea... haha
 
@ErikReppen No
 
Why not? It definitely seems to have design principles.
 
Take the "official" part off and it might be a goodish idea
 
@ErikReppen No official ones, jslint might be what you look for though
Kind of
 
12:54 AM
Ew. No.
Crockford knows more about JS than he understands.
 
I assume you mean more of design patterns/inheritance?
 
No @twiz I mean actual design of the language. How it's meant to work and why we like it that way. Why dymanic types rather than strict for instance.
 
oohhh
 
JS hasn't developed that way, sadly
 
Well, it does continue to maintain a focus on keeping core primitive elements highly flexible. Everything is highly mutable which IMO, is a standout feature, not a weakness. And it's been rocking proper first-class functions for much longer than any of the other less academic languages.
 
12:58 AM
With basically all web languages though, it seems that the proper way to use a language is defined more by the developers than the creators of the language
 
I don't know that that's the case in JS. I've definitely seen some standards of use widely accepted at certain key points but you won't meet as many JS devs telling you about the one true way to do something. In fact, I immediately assume someone framing a thing that way is probably about to say something stupid when they talk about any language.
 
Well if the your code works, saying it is wrong is only an opinion....
even if that is a very good opinion
 
Code that works but is still illegible, difficult to modify, and dominates the way you have to do things on a given page is till broken, IMO. Unless you're just doing temporary disposable sites for a marketing-oriented interactive agency and the goal is to just to ship something basic out ASAP.
^Even in those scenarios it still doesn't hurt to think about how it could be done better if it doesn't eat up too much time. You never know when something might need to get reused. Like a contest suddenly turning in an annual thing for instance.
 
1:16 AM
@ErikReppen "Because Eich wanted it that way"
 
Well him and the other guy whose name I forget. He owns a bar now.
 
1:35 AM
Helloooooooooooooo
 
1:49 AM
hellooooooo
 
greetings
 
Hi guys, I was wondering how I can create a tagging system similar to the one used in SO when you ask a question and numerous options appear while typing the tags.
??
 
!!/tell DemCodeLines google "auto complete"
 
Array.prototype.pairwise = function() {
    return this.map(function(a, b, c) {
        var t = c.map(function(d) {
            if (a != d) return [a, d];
        });
        return t.splice(t.indexOf(undefined), 1), t;
    });
};
["cat","dog","chicken","pig"].pairwise();
> [ [["cat","dog"],["cat","chicken"],["cat","pig"]], [["dog","cat"],["dog","chicken"],["dog","pig"]], ... ]
if anyone cared to know how to do this that is.
maybe i'll blog about "pairwise in js"
 
2:12 AM
nice hat ole lem
 
Thanks
sitting in the lieu,
no tp for my poo....
Now I start to wonder
What am I to do?
 
lieu? not loo?
 
Auto correct... damn mobiles
I txt the gf. She is in the PC room.. crisis diverted
 
2:34 AM
lol
I have this:
	var availableTags = [
		"ActionScript",
		"AppleScript",
		"Asp",
		"BASIC",
		"C",
		"C++",
		"Clojure",
		"COBOL",
		"ColdFusion",
		"Erlang",
		"Fortran",
		"Groovy",
		"Haskell",
		"Java",
		"JavaScript",
		"Lisp",
		"Perl",
		"PHP",
		"Python",
		"Ruby",
		"Scala",
		"Scheme"
	];
Is there any way instead of putting all the words there, I can just put something there so it fetches some online dictionary that has all possible words and then uses those words instead?
 
3 messages moved to bin
 
????????????????????????????????????????????????????????????????????????????????‌​???????????????
 
I moved your noise to the trashcan where it belongs. There is zero point in such messages. If anyone had an answer he'd already have answered.
I doubt there's a useful API to get a list of programming languages out there...
 
I don't want programming languages
Those are just examples
I just want all possible words
 
Dod you even realize how many words there are?!
 
2:46 AM
Basketball, television, remote, plate, computer, ...
 
For what do you intend on using that list?
 
It is a tag system.
 
So why do you need a word list for this?
 
User enters a letter and auto-complete suggestions start to popup
Cause user can enter anything
 
A tagging system is only useful if a tag is likely to be used more than once.
This means you should only put existing tags in the autosuggest list.
 
2:47 AM
It is a tagging system, but its not being used in the sense of what you see on SO
I can't put every word in that list
 
Ah well, google for a wordlist and dump it into your database. Then use a PHP (or whatever you use on the server side) as a data source for your autocomplete script.
Obviously you need one that uses AJAX to fetch that information - you really don't want to send a few MB of words to the clients all the time.
 
3:45 AM
posted on December 23, 2012

var gaJsHost = (("https:" == document.location.protocol) ? "https://ssl." : "http://www."); document.write(unescape("%3Cscript src='" + gaJsHost + "google-analytics.com/ga.js' type='text/javascript'%3E%3C/script%3E")); try { var pageTracker = _gat._getTracker("UA-3727700-1"); pageTracker._trackPageview(); } catch(err) {} New Hand 2 Mouth, in which Marque wears an awesome shirt, and James

 
 
2 hours later…
5:29 AM
hello my loved people on this good and early sunday morning
 
 
2 hours later…
7:35 AM
helloo...gud mornin..
opps gud afternoon
 
 
1 hour later…
9:04 AM
Holy shit! My game works in IE!
 
@AmaanCheval IE 10 ?
 
9
This is so strange :p
 
9:17 AM
9 shouldn't be that shocking. It's the first reasonably well behaved IE ever.
Still slower of course, but it has all the core DOM stuff IE wasn't doing right for 10 years.
 
@ErikReppen lol
 
9:34 AM
Hey. Do you know of a service for handling time zones? I remember seeing one, but can't find it. Their site has a black look and feel... Any?
 
9:45 AM
The date constructor actually handles quite a lot by itself.
 
9:56 AM
400 rep till I get 10k
 
indexed loop is infinity?
 
@FlorianMargaine Woohoo!
 
10:27 AM
time to get coding <3
Question Time ::

What are the common open-id's you people use ?
Twitter , Facebook , Persona [ Mozilla ] , google ?
 
10:51 AM
Google
 
google and fb
 
11:10 AM
I've used Twitter once or twice as well. Never Facebook
 
Nobody ever used persona :-( , which is actually a good one xD
 
I used it when logging into Game-On
But that's only because that's the only thing I could use :p
 
Persona keeps privacy more then fb and google btw
 
What does Persona even have on you to keep?
Google has all your email and all your searches
Persona is there solely to let you log into places, so that's pretty obvious
 
aha ;D
am trying to create an easier sign /in and up
realized that the older one i was using was great! but lacked open-id's
which are way better then typing the damn thing
 
12:08 PM
^-? how does that looks ?
 
12:38 PM
Afternoon peoples :)
@Abhishek loving the pic.. it looks cool :D
 
@Abhishek Looks good
 
Yes I am using Js 1.7.2 — Syed Faizan Ali 50 mins ago
 
12:57 PM
@KirstyHarris , @AmaanCheval thx
@tereško good lord
How to make a guest user login in the same screen :-/
 
what ya mean ?
 
I want to allow the user to have a special login case
where he can be a guest user , just a screen-name like IRC , well this is to implement irc support
i am not sure how to do that on the same login screen
 
1:13 PM
emm .. when you run the application , the first screen has two boxes
the left one has "I dont have an account, use this a guest"
the right one has login form
clean and simple .. ala MetroUI
 
Thanks :D
 
1:47 PM
Hey guys
 
2:03 PM
 
"Be A Guest" sounds a little strange. How about, "Use as a guest"?
 
i agree :)
Test as a Guest ha!
 
Also, if you're putting the guest option above, it looks like that's what you'd prefer them to do. Let them signup or login above, and have the option for guests below
 
2:18 PM
Can somebody help me, I am having some problem execute a script after its been loaded in
 
"Sign in as Guest"
Dec 12 at 20:14, by rlemon
IF YOU HAVE A QUESTION DON'T ANNOUNCE YOU HAVE A QUESTION OR ARE ABOUT TO ASK A QUESTION. ASK THE DAMN QUESTION!
 
The problem its that the question will take a fullscreen becuse I belive I have to post the script.
 
ok ok
 
2:25 PM
hello Kirsty o/, and Kirsty's girls.
 
ha :) why hello there ;)
 
If I load in content from a external site to a div using .load() AFTER the page have finish loaded, and the content contains some javascript, these dont work anymore (they dont show up), how to solve that?
the javascript works in there own page, but not when they are being loaded in to the other page
 
load them into the parent page. or when you make the call load the html, then the ext js files.
also, why do people ask questions without rtfd? api.jquery.com/load/#script-execution
so in the callback function you can just also get the javascript file and inject it .
 
becuse I have read that but dont understand it totaly. well ok I have to google some about the callback
@rlemon whats the differens between doing a callback and initialize the script
 
2:45 PM
how are you calling load
.load('page.html #section'); or .load('page.html')
 
a user in a forum showed me how to initialize the scripts to make them work, but that dont feel like the correct solution when there is many scripts?
I just want to load in divs, not entire site
/page
 
then you cannot load in the scripts as well.
> If .load() is called with a selector expression appended to the URL, however, the scripts are stripped out prior to the DOM being updated, and thus are not executed.
 
what "selector expression" means?
 
google it
it means what it means.
if you don't know what it means start picking up javascript books
 
@rlemon
playing with ideas...
 
2:50 PM
the thing is this, I am webdesigener and I am in a project where I just need to get these scripts to load in, so I understand what you mean but I hoped I dident had to read a whole book to manage to only this load.in sciprt
 
1) are you being paid for this work?
2) do you take pride in serving your clients excellence and quality?
 
nods at @rlemon
in agreement that is
 
3) would you let your doctor perform sub-par surgery then tell you "sorry really i'm an esthetician"?
 
great analargy
 
Honestly, I know I can come off hard. but that is only to push you to learn. This is the thing though... it's really not that hard. few hours watching videos / reading tutorials and maybe an afternoon reading "Eloquent JavaScript: A Modern Introduction to Programming" (which is free) and you'll be able to wrangle this mockery language that is js.
 
2:53 PM
i agree on that one
 
its my own project anyway thanks for the callback function will google that and hope to find some further info
 

Javascript Resources.

Sep 4 at 13:36, 2 minutes total – 8 messages, 1 user, 1 star

Bookmarked Sep 4 at 13:40 by rlemon

lol, hopeless.
 
lol
i know your harsh on me at times, but what u say is true! i wont learn unless i try
 
I try to teach.
 
even thou i am fucking useless at it....
 
2:55 PM
@KirstyHarris lol, it feels like that at first... then shit just starts making sense one day (somewhat)
I'll let you know if it progresses past somewhat
 
no you do! i know exactly with what your saying on the above comment, would you be happy copying and pasting hoping that it will work... erm...
 
Learn a whole language to write one script then never use the language again..... we work different thats for sure =)
 
think fuck that shit i will write it myself, then i know it works.
@wobot... so your telling me as a developer you would only use a code once?
 
@Wobot lol, if you really are a designer I promise and guarantee you this will not be the only time you will ever use it.
"I design shit for the web.... but I have no interest in learning how it's implemented past design... that would be silly to know how the technologies work and are changing so I can be bleeding edge in my designs... just silly."
I write code for embedded systems... I take a lot of time learning how said systems actually work and function and try to learn how to build them so I can write more efficient code.
 
a mean fuck the .hover and mouse enter function for event listeners i now use all the time,... i think i over use it @wobot... @rlemon told me to fuck off... go on code academy and learn, then come back, write it, and have a go... and fuck it worked! Harsh reality sweet but your never gonna learn the way you want as a quick fix
this guy dont just speak and advise for the fun of it hun, hes doing it to help you.
 
2:59 PM
man... so much text here
 
i can believe for one second that comment about you will only use it once, not for one second... see you in a few months for the next installment
 
also, learning the entire js language would take max 2 hours. DOM api is another 3-4 hours. other APIs pick up as needed. Browser inconsistencies will take years to learn. But that can be said for everything.
 
@rlemon Worked with design for 5-6 years, this is first time I need jquery, I just cant get them to execute after loadin.. no now your exaggerate, I do care about the code also but I dont need to know it, if you understand how I mean
 
yea I get you.. you fail to see the light before your eyes. :P
 
@wobot what exactly were you using then to enhance a customers experience, a mean jquery and js are brilliant for that
 
3:00 PM
anyways, can teach those who do not want to learn.
 
@FlorianMargaine... what you think! i.imgur.com/xq6xC.png
 
later all. instead of being productive I'm now wanting to waste time and play video games
 
aww booo
 
haha well anyway thanks for the callback clue, if I read some about that maybe I understand enough to get this script running
 
@KirstyHarris nothing yet. What do you want me to think?
 
3:03 PM
@rlemon Awesomenauts?
 
a meant about the header ha!
aint really done owt... im just playing with ideas...
tvs distracting me thou... pyschic sallys on
 
Error Message: Your Password Must Be at Least 18770 Characters
LOL
 
HA!
Good luck with that one
 
wellthatwouldbeareallysecurepassworditmaybeneedstocontainsomenumbers55alsowhichw‌​ouldsuckhoweverifspecialcharactersarerequiredtoo$$itmakesitlooklikearealuglylongs‌​tring
 
3:17 PM
> Note that the number of required characters changes from 17,145 to 18,770 with the installation of SP1.
that's reassuring
 
who the fuck makes that character limit
 
23th dec and still missing two packages/presents = priceless
those delivery boys better hurry up tomorrow... grrrr I will architect a world of trouble around them otherwise "=($"=$"$"
 
thats the joys of ordering online... shite when they dont turn up
 
I ordered pretty much everything online
but I did it 2 months ago ;)
 
dito
 
3:25 PM
lol
 
I did it a week ago :(
 
i would sack your delivery company then...
 
well .. my failure was that I choosed my offices address. Actually it would have worked out quite well if all the things would have arrived in time
but now.. I'm pretty much fucked
I have to go to the office tomorrow morning and wait there.. ON MFUIHDFUDS xmas...
 
0
Q: How to make dropdown like on Facebook?

DzoniI would like to make dropdown panel like on Facebook when you click on notifications. Can anyone help me, share some tutorial or something? Thank you very much!

 
now thats crap
WTF!.. whos asked that lol
Can i write a answer on this?
 
3:29 PM
why does this channel actually listen for javascript tagged questions on stackexchange ?
must be low quality
 
its shocking.. u read it.. im responding now
 
just another vampire
 
is he just wanting like a CSS drop down or something lol... im just directing him to CC
ha!
awww someone closed it... damn
 
haha yay that sucks.. writting a great rant and insults.. and the question gets closed before you can post it = also priceless
 
i know.. was looking forward to viewing my quick witted answer
hmmm thinking about doing a @rlemon and doing like a bio gravatar on my site... but turning my site into a learning haven.... write tutorials for thick fucks like me
 
3:34 PM
(I answered it so i won't mod-close it.. one user being pissed about that per day is enough :p)
 
i wanna downvote but i dont wanna lose rep for it being shocking
 
You don't lose rep for downvoting a question
 
oh i thought u did
 
Not for questions
You lose rep downvoting answers
 
@ThiefMaster: did you actually get 'elected' to mod ?
 
3:36 PM
@jAndy: yes, why do you ask?
 
is there actually any other way.. wondering
 
The first mods got appointed by SE
SE staff members also have mod (and some more) privileges network-side
And on new beta sites mods are appointed, too, but need to be re-elected to keep their diamond after the site is more mature
 
@ThiefMaster: well, .. I'm just curious. Those elections pretty much always follow the same pattern, hundreds of candidates 95% get like 5k downvotes
and a few grab the fame
for whatever reason :P
 
Well, some candidates are pretty bad ;)
Who would vote for someone admitting that he was part of a voting ring in the past?
 
can any member become a candidate ?
 
3:40 PM
Yeah, you just have to post why you think you should be elected
And there are requirements like having a certain number of helpful flags, I think?
 
@AmaanCheval: thats my point actually.. I don't think you get elected for what you write there.. I guess 99.999% all all winners so far, were well known and active in the past
 
Well, isn't that expected?
 
Whats so wrong about inline-css
 
yea maybe, but I don't get the point then why any member could become a candidate
 
You need certain badges and a certain amount of rep
 
3:42 PM
okay its hard to mantain but if you are using a script to generate the page ? .. any other difference-issue caused by inline-css ?
 
It has a really high specificity.
So you have a hard time counteracting it with normal CSS
 
@Abhishek: whats your point ? code-separation is just a very good and useful suggestion, not mendatory.
mixing up html/js/css/php like in the good'ol'days, have fun :p
 
0
Q: how do i in ignore/disable/delete a javascript call from parent in child theme ?

DanielNew to WP i hope its an easy one. I am working on a child theme and i want to disable a javascript file from the parent folder instead of deleting it . i have a function.php file in my child theme folder but dont now how to do it. so in my parent folder i have this file in my js folder --> jque...

 
4:01 PM
@jAndy nah just wondering why its hated so much :P
And perhaps does anybody have a method to attain this
<div> <!-- Position relative -->
 <input /> <!-- This input has padding & margin both but should fill available space given to it -->
</div>
there must be something without box-flex
 
width?
with some display block eventually
 
nah it wont happen
without box-sizing:border-box;
@FlorianMargaine
See the difference : jsfiddle.net/Wykhj
 
4:17 PM
can anybody send me the resources link please?
 
box-sizing is so awesome <3 , i feel like i have found my first love after long
 

Javascript Resources.

Sep 4 at 13:36, 2 minutes total – 8 messages, 1 user, 1 star

Bookmarked Sep 4 at 13:40 by rlemon

 
@henrymb67 you also can use mdn for css and then there is css-tricks.com for css :P
if u want css though
 
@ThiefMaster Thanks
 
@Abhishek Well in regards to this the best way I have found to handle filling space is like so: box-sizing:border-box;width:98%;margin:2%;
 
4:32 PM
@Abhishek Really, Mr. JenJen'sDark?
 
@AmaanCheval :P
 
Have you guys played Portal?
 
@Event_Horizon thats not needed with margin box
 
the hell is margin box
 
Google searched margin box. NSFW google.com/…
And it's there when I go incognito too, so no, it isn't me :p
 
4:38 PM
From Margin-Box on SO - "Why don't we have box-sizing: margin-box;?" Because while horizontal margins don't collapse, such a proposition would seriously interfere with vertical margin collapse.
 
brainfart
i meant border box\
 
ha brain fart... classic
 
@Abhishek actually with border box you do need to use percent on your margin if you want it to fit within your size constraints including the margin
 
hey guys,... u know if i put a div at top of a bage, and theres a margin .. i assume that the body remove padding margin isnt working?
 
uh....what? body remove padding margin?
 
4:48 PM
u know like a page automatically has a margin and a padding?
i would put this..
 
usually they do, you can do body{padding:0;margin:0;border:0;}
or html,body{padding:0;margin:0;border:0;}
 
ah thats what i thought... will try that lol.. dunno why it werent doing it.
:)
thankyou
 
hmmm... still aint doing it... hmmmm...
 
are you doing this on jsfiddle?
 
4:50 PM
no ... one sec will make a fiddle..
see it doing it fine on the fiddle... must be something else.. hmmm...
 
could be something overriding it, might want to do
body{padding:0!important;margin:0!important;border:0!important;}
and if that works, you have something to track down causing the issue
 
ok, thankyou
 
though I implore you to not leave !important in your code, it can make troubleshooting hell sometimes
 
nope.... fml... no idea hahah..
i will have a nosy....its probably as u say something stupid ive done... im not the brightest spark
 
might want to put code in pastebin.com so we can try to help
 
4:54 PM
yh will do sweet, :)
see when i put a negative margin on it on top its fine.
 
shouldn't have to do that though, and thats the same as saying putting negative top:-20px works, yeah it moves, but is it correcting the proper issue
 
yh true... hmmm lemme paste it... maybe u can see something i cant lol
 

« first day (799 days earlier)      last day (4150 days later) »