« first day (671 days earlier)      last day (4276 days later) » 

7:00 PM
I'm going to try to learn javascript and not touch JQ even though it looks tempting
I saw a couple of snipets from JQ and everything looks pretty staright forward
 
getElementById, createElement, setAttribute, firstSibling (and so on) aren't straight forward?
 
@FlorianMargaine just me or ur blog is down
 
I think you can get away with looking at both at the same time. Just don't go pro with only JQ under your belt. Quirksmode is a good site for explaining a lot of the old DOM normalization craziness (much of that goes away if you don't support anything below IE9). Beyond normalization, JQ is really just a cruft eliminator with some handy methods bolted on.
Everybody, including IE8 supports querySelectors now so the CSS selector engine is less of a win.
 
going pro with just jQ would be like me buying a toolbox, filling it, and calling myself a carpenter
 
@Abhishek it's github pages :/
 
7:04 PM
@ErikReppen I'm not planning on become a JS guru. I have a side project and decided to learn something new so I picked javascript hence why I'm here
 
@FlorianMargaine rlemon.github.com mine works.
I do notice randomly my gh pages will 'unbuild' themselves and I just have to push again
 
@ErikReppen I agree though. Thanks for the advice. Going back do my original question... any ideas where I should start?
 
@rlemon cool
 
anybody knows how to use a power converter
 
Woo Serial downvoter!
 
I have a feeling it was Steve :P
 
There is a @Raynos at the end. But I'm not sure he talks about the one he linked to
 
@FlorinStingaciu Quirksmode. The book "DOM Scripting" but if it's just an amateur side-project, you only care about modern browsers and you might not even return to JS, by all means hack away with a big giant axe and bolt robotic arms on it with JQ for the Hell of it. If it's about learning JS with potential for expanded use, then yeah, know what's going on under the hood.
 
@ErikReppen Cheer mate. I'll keep that mind.
 
7:12 PM
Thanks guys. I'm out of here. Sorry if I came on a bit strong. That wasn't my intent.
 
@rlemon I tweeted to him also to signal the mistake.
 
I didn't think porn was allowed on Twitter.
One of the Raynos (not the real one the linked one) followers is nothing but porn on her account.
 
How it's spam bot no ?
 
even her profle is full frontal nudity twitter.com/lindax1983
her images are all porn (softcore)
like, I didn't think twitter allowed this
 
7:15 PM
no they don't, I just read their rules
 
Oh I know
 
I just don't want porn on twitter. porn invades the rest of the internet. I would like to have some sites porn free.
 
Their is a lot of guys i don't follow in his post... If I follow them all, I'll end up to have 400 tweets to read every hours...
@rlemon I agree. Just let Twitter out of p0rn
 
damn I didn't make paul's list :(
 
He changed his post.
For Raynos
Raynos begin to be known in the JavaScript community. Where will he end-up ?
 
7:21 PM
@dievardump I red flagged the account with twitter then sent an email to them
 
Dean Edwards should be on everybody's list, IMO. He was one of the few devs who understood JS from a Scheme perspective back when everybody else was trying to understand it/make it work like Java or C.
 
He will end up in the Dart community of course :D
raynos.org is down?
 
wohoo tech demo
 
7:23 PM
(get your websockets ready)
 
started: function() {
    console.log('game started');
},
 
Love it! ready to ship?
 
:D
Just testing local prediction and lag compensation
 
Sleeping
now people
 
7:24 PM
the white ship thing which seems to lag behind is what the server sees
 
Not to mention teaching people to stop normalizing DOM API stuff like chumps.
 
in Inspector I changed it to just "the game" then I lost.
 
cee yaall with some working head tomorrow
 
@IvoWetzel you used to have the cutest photo on SO
 
HAHAHAHA photoshop fail!
HAHAHAHAHAH (i'm still loling)
 
7:25 PM
@SimonSarris That one?
 
omg I know that girl... she had a mastectomy :-(
 
no, this is clearly photoshop - and a bad job on the first enlargement
 
'strue :-D
 
LOL man I laugh every time I think about this getting posted on facebook/twitter/myspace/g+/anything and her not being able to take it down before it was copied 99 times and sent all over the net.
 
@rlemon lol
@FlorianMargaine kk
 
7:28 PM
"NOOOO I forgot about lefty!"
> image has been reposted 8742 times in 18 seconds.
"FML"
 
Co-worker when he passed next to me " Are you not gay ?? "
Stop putting blond girls (who clearly try to be attractive) on my screen
:p
 
LOL
 
:confused:
 
Do any other offices "own" peoples computers when they leave them unattended and unlocked? \
 
@IvoWetzel yes :D
 
7:31 PM
good old snufkin!
 
I always lock my computer when I walk away from it
 
lol, well when someone doesn't you quickly open up google images and search for "owned" - pic a funny one, set as desktop background, lock, and walk away
 
that reminds mee... I did saw this one in a shop some weeks ago
or at least a similar one :D
 
I can't wait to start in on this monday
they are so small.... so sexy...
it's replacing avalue.com.tw/products/EBM-LX800.cfm this one
@Abhishek Dude, do your sheets have dinosaurs or ninja turtles on them . I can't make it out.
 
@rlemon have to agree with your latest tweet
 
7:41 PM
you inspired it
 
that's cool
 
that's friggin' sweet
Also, it looks like Denver is getting PUMMELED
 
Hey guys! I answered a question !
Woot!
 
Good job!
I really only actively answer questions when I'm close to a new privilege
 
7:57 PM
now with some more information
 
@rlemon That's the spirit!
 
@IvoWetzel It's a little long, no ?
one second
 
my github pages are down :/
 
@SimonSarris got some upvotes too!
 
oh, I just had to talk about it
they're back now :D
 
8:04 PM
3
A: PHP: How to get only the current folder of a website

rlemonparse_url & explode $path = parse_url($url, PHP_URL_PATH); gives you /folder/file then you can explode() to separate the path values and check the first one to see if it is 'folder' Example here: http://tehplayground.com/#7TIKAwp6J Example code: $url = "http://www.mysite.com/folder/...

but the OP is kinda ambiguous as to whether or not they want the CWD or the first segment of the URI
and it appears he wanted the CWD
 
[].forEach.call(document.querySelectorAll("input"), function(i) { i.removeAttribute("onpaste"); })
So useful
 
8:20 PM
We said: Troll day
The first binary search was published in 1946. The first bug-free one in 1962. In 2006 a bug was discovered in Java’s Array.binarySearch().
 
@IvoWetzel works perfect for me. no lag, no white stuff
ping is 8
 
~50 here
 
61 here
I guess the website is in canada or usa.
or my connection just sucks
it's possible, I'm not home there
 
@Esailija wern't you on a rage the other day because people were misnaming these.
53
Q: What is the purpose of a self executing function in javascript?

Ej.In javascript, when would you want to use this: (function(){ //Bunch of code... })(); over this: //Bunch of code...

 
" A small demo showing of client side prediction in order to hide network latency. "
-» Client side prediction = same calcul code on client and server-side ?
 
8:28 PM
right now it's only the client side and the server part which sends the tick updates and tells you what's you ping.

in short, it keeps the state of the actor (ship) for the last 30 frames or so and then interpolates based on that... it's hard... to explain
for more details on how the system actually works
I'm missing most of the stuff right now, need to send up stuff to server, broadcast to other clients and then interpolate their states locally by practically displaying them about 50ms to 100ms back in time
then on the server any action from a player needs to set all entities on the server into the specific reference frame as specified by the calcuclated local "tick" of the player in order to correctly handle collisions and other things
also there's a lot of logic which needs to be duplicated on both the server and the client
 
bookmarked
 
but right now I'm just procrastinating...
 
0
Q: filter images with jquery / javascript and checkbox

Grescafe GrescafeI'm looking for the next and can't solve it. I have N pictures, car red fast car blue car blue fast car green slow bike blue bike green ... <?php echo "<html>"; echo "<head>"; echo '<script src="jquery-1.7.2.min.js" type="text/javascript"></script>'; ...

wtf?
 
@IvoWetzel it's like a "never trust the client BUT act like if it was ok until you get updates from the server " ?
 
exactly
 
8:39 PM
What we all should do
 
New Topic: Why do people let their clients dictate the code they are writing? I don't tell my car mechanic what wrench to use, or how I think he should put my transmission in. I just care that the car works as expected when he is complete. Too often I see "but the client wants me to use this code", well then you can just close this SO window and go ask your client why the code is not working.
Does anyone else not see this as up-surd? I see it probably once, twice a week in the chat and/or the main site.
not once have I ever had a client concern himself with my actual code, just the end results.
My next project; (just to see if any clients open the source code) is to write a short story in comments. but each "page" in my application will contain a new "page" of my short story, and the client will have to follow instructions on where to navigate next on the site to get the next page to my short story in order (all in the source code :P )
 
does this really happen that often
 
It seems to
 
I don't see it, and I have done front end development / design (I outsourced the graphics and bulk of the 'design' process :P )
but I hear about it a lot
I once suggested to an employer that we use Java.... This was the only time I was scolded for a coding choice by a client / employer
@dievardump 12 minutes how's the prod server?
 
@rlemon My co-worker is here. So no problem.
He will handle it
(On Friday... it could be very mean)
 
8:50 PM
The one who is now questioning your sexual preference?
Sad part was: when I met my GF I managed an Aldo shoes and an accessory store, and everyone in the mall I worked in didn't believe I was not gay. When I asked her out the first time she thought I meant as 'friends'. Took me 20 minutes to convince her otherwise :/
 
@rlemon because the client usually has other code in such or such language, or he made some researches and found that he could easily find someone else in this language, or he has a coder who knows this language
@rlemon hahaha
 
@FlorianMargaine but often not the real case; they did know this language... 5-6-7 years ago? and how well did they know it? took a two week course? read the "dummies guide to?"
 
it doesn't matter, they pay :)
 
Either way they hired you to do a job, micro-managing is one of my biggest pet peeves and i've walked off jobs because of it.
 
if it's an absolute requirement, they'll hire someone else
 
8:54 PM
I have told multiple clients/employers this, and asked them to let me finish my work and judge my results or pay me now for my time spent because i'm walking.
@FlorianMargaine I understand them not wanting XYZ technology for some strange reason I don't really understand; but to sit there and say "NO DONT USE DIVS, EVERYTHING IN TABLES!" really tells me they want to write this themselves and hired me to pat them on the back for a job not well done.
 
oh, yeah, that
 
rlemon It always took me some time to convince people I like guys ^^'
 
takes me time to convince people I don't..... hrmm....
 
It's like "no way, too straight. " and i'm like " no, too cute to be straight "
 
however because of this; I have made many many friends with same sex couples... homosexuals are a lot more fun to hang out with than lesbians (imo)
 
8:59 PM
than lesbians ? Really ?
 
yea, maybe just the ones ive met. but yea
anyways, be back in a little. drive home time.
 
Well, lesbians are homosexuals. You meants gay guys I think.
bye
 
hi everyone, I need to remove() a row (tr) from a table, change a few things in a few child nodes and then append() the row to another equivalent table. is there a standard way of doing this?
 
@markus-tharkun Yes
 
@Nile I figure with jQuery newNode = oldNode.clone() would be a good start
then change the clone, remove the oldnode and append the clone
I'm trying that now
 
9:12 PM
@markus-tharkun I mean, I wouldn't use jQ... That's not really "standard"
 
@Nile how would you do it?
 
@markus-tharkun pure DOM... jQ is a waste.
 
@markus-tharkun api.jquery.com/detach
> The .detach() method is the same as .remove(), except that .detach() keeps all jQuery data associated with the removed elements. This method is useful when removed elements are to be reinserted into the DOM at a later time.
 
@FlorianMargaine that's helpful!
@Nile a waste of what?
 
@markus-tharkun a lot of things actually.
especially when not used correctly
or intuitively
 
9:16 PM
he's probably working for cross browser, let him use jquery
 
@Nile I think you need to be more explicit if you're going to criticize a library that popular.
 
exactly, besides, jquery's api is fine
 
Or more general.
 
the problem with jquery is not jquery itself, but its users.
 
It sucks is fine. It sucks because it's a waste... eh... now you need to point something out.
 
9:17 PM
> when not used correctly or intuitively
People are starting to link to jQuery simply to use top level DOM functions.
 
And don't get me wrong. Popularity is no indicator that a framework or tool isn't the antichrist.
 
@Nile yes, because document.getElementById( 'someId' ).detachNode( true ) is a PITA to write compared to $('#someId').detach()
 
In this case, something like using pure dom is so simple
 
@FlorianMargaine this is true. I'm not saying that jQ is a terrible and awful framework that nobody should use. But if you can do it without including 252kb into your page, why not?
 
9:22 PM
"252kb"
 
> 252kb
what about it?
 
1/ jquery's probably already included
2/ jquery's most probably already cached in the browser
3/ jquery's not so big, it's around 20kb last time I checked
4/ any of your image is bigger than that
 
let me make a point here that a lot of people don't understand for some reason:
1/ it's not necessary to use jquery when the you're using simple functions like top level DOM and the jquery library isnt already loaded
2/ when asking a question, don't use the names of jquery functions without saying that you're using jquery. (dont say "I need to remove() a row ... then append() the row")
3/ when answering a question, dont post jquery functions without the OP originally stating that he wanted the answer in jquery
to be honest, I didn't know the OP was even talking about jquery in the first place. I thought he was using short names for functions that already exist simply for convenience. when he brought up jquery afterwards, to me it was him saying "oh... i'll just include the jquery framework". natrually, I had to say that in this case, it's superfluous
personally, I think jquery can be a good framework (to use) if you're trying to do things like cool animation fx.
another issue is that a lot of people have no idea how to use jquery to make their code as short as possible.
 
theoretically you're correct... but it doesn't matter
 
@markus-tharkun "it"... what's "it"
 
9:34 PM
what you correctly say (1-3 plus appendix) doesn't matter because of what @FlorianMargaine says (1-4)
it's not a practical problem
 
@markus-tharkun in what environment?
it could definitely matter
now I have to repost his image, directed at you this time
 
yes, I guess, depending on the environment, it can matter, I couldn't say
 
14 mins ago, by Florian Margaine
user image
 
but e.g. I'm working with twitter bootstrap and its jquery plugins
 
@markus-tharkun yes, see. if you were to say that in the beginning, both me and @FlorianMargaine would be right in this case.
 
9:36 PM
yes... but I didn't mention jQuery because I didn't really care if the question was in jQuery
because I don't mind if it's not, especially when there is a cleaner way of doing something in javascript, etc.
 
okay. for future reference, when you're not including jq elem.removeChild(elem2) will return elem2, so you can simply say: elem3.appendChild(elem.removeChild(elem2)); which would pass elem2 onto the appendChild function and you'll get that move functionality you were looking for
honestly, I think, in order to use the jq framework people should be forced to take a javascript test... just to make sure that they know how to use javascript. I see too many noobs not knowing a thing about javascript.
^ not at all directed at you, mostly at people who use jq 24/7 and don't know what the difference between this and $(this) are
 
@Nile thanks
 
@dievardump Yeah that's me
 
Some people say I need anger management courses, These people MAKE ME SO ANGRY!
me: (complaining about something @ work for two weeks to the other employees)
them: still thinking it is a joke
me: (today) Finally crack and blow up on them about it
them: "why are you sweating this? it's no big deal?!"
me: GRRRRRRR BECAUSE IVE TOLD YOU FOR TWO WEEKS IT WAS BOTHERING ME AND YOU ALL MAKE A FUCKING JOKE ABOUT IT
</rage></rant>
@Nile but.... you called it a framework.... :(
today is driving me to drink
 
10:00 PM
@rlemon library*
 
@Nile: uh-oh, deja vu... I think he's going to have a fit unless you correct yourself and call it a toolkit
 
writing code for CLI becomes easy
and yes, you can like this code :D
 
hello everyone
Oh Florian, I managed to fix the problem yesterday, finally!
 
gratz :)
 
anyways I have a question, do you know how to make google plus button automaticaly grab the url of the site?
I googled this since a week yet no answer on the web :(
im sure there is a code I have to add on to the url like "pagenumber" etc
tried +pagename, didnt work though :/
 
10:17 PM
did you try href?
 
what do you mean rlemon?
 
<!-- Place this tag where you want the +1 button to render -->
<g:plusone annotation="inline" href="somewebsite.com"></g:plusone>

<!-- Place this render call where appropriate -->
<script type="text/javascript">
  (function() {
    var po = document.createElement('script'); po.type = 'text/javascript'; po.async = true;
    po.src = 'https://apis.google.com/js/plusone.js';
    var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(po, s);
  })();
</script>
like this?
maybe I didn't understand the Q
 
well
 
I tried that url but I cant find the answer :(
ill explain quickly.
 
10:19 PM
what is the real question. just give me your use case
 
The idea is that for my dynamic created pages I dont want to manually enter the "plused 1" page url.
<script type="text/javascript">
document.write('<g:plusone size="standard" href="http://www.rolfvohs.com+pagename.php" count="true"><\/g:plusone>');
</script>
for example
 
what would the actual link be?
 
I tried adding +pagename but it just doesnt work. The idea is to not manualy enter the document name but rather letting the button understand on what url it is
 
you can't
are these pages php?
 
yes
well no includes or anything though
just the extension is php. I know some social networks manage to do this for their users social media buttons.
 
10:27 PM
-1
Q: How to run project written with html,javascript, with eclipse and phonegap to see result in emulator?

Md. BayezidI have a project written with javascript, html , php ,mysql, and put the project in xamp/htdocs. i want to run it with eclips and want to see output with emulator. I want to do this with the help of phonegap. My question is : 1.I can not open it with eclips. is there need any configuration ? ple...

0
Q: Javascript and OOP

Eduard FlorinescuI know Javascript for some time, although I am not a heavy user, I know it the first from the time when Netscape was my browser. I pretty much understand the main things, but since JavaScript approach to OOP is prototypical I have some problem grasping it. One problem to add to this it seems tha...

 
<!-- Place this tag where you want the +1 button to render -->
<g:plusone annotation="inline" href="http://yourdomain.com<?php echo $_SERVER['PHP_SELF']; ?>"></g:plusone>

<!-- Place this render call where appropriate -->
<script type="text/javascript">
  (function() {
    var po = document.createElement('script'); po.type = 'text/javascript'; po.async = true;
    po.src = 'https://apis.google.com/js/plusone.js';
    var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(po, s);
sorry, phone call. but you don't need to worry about that. place this code on all pages and change the yourdomain stuff. this will tell the button on each rendered page what the current url is.
 
wow
 
php.net is your friend. get to know her
 
hey rlemon I thank you so much for your help. Is this the url ?
wow thank you so much. I appreciate it.
 
it's the url for the specific part of the docs outlining the predefined $_SERVER variables.
 
10:31 PM
oh hello Zirak! I want to thank you too for your hint, after testing and tweaking I managed to create exactly what I needed
 
if you @ infront of the name @Demorus it pings them
use it wisely
 
@rlemon
 
np at all, glad you could get it to work
 
oh didnt know that. Thanks for the advice. mwhaha :)
 
@Troy pinging for the sake of pinging however is not cool. and generally leads to edit pings
 
10:34 PM
Was just testing, sorry :P
 
@Zirak does pinging work?
 
lol no worries
@Demorus do you have sound?
or if you turn on desktop notifications
 
Yarr, the PHP is a fickle mistress.
 
@Demorus Yes it does
 
oh no I dont, Im not on my audio workstation , using my outdated half destroyed xp machine
 
10:35 PM
But I muted chat. Can't stand that horrid sound.
 
i use it for online activities xD
lol damn I could have annoyed you the whole day :-)
 
Pinging also shows up in your stack inbox.
 
@rlemon I'm a former PHP room chatter, but it lost its memebers, dunno why :P So I came here, because I like jQuery (the jQuery room is not as full as this one).
 
Example Scene #1...ACTION: "Hello! My name is Zirak! I am doing stuff like coding while being so smexy! tralalalala PING AAARGH"
 
hey Troy, you traitor lol
 
10:37 PM
What did I do?
 
I made the jQuery room :P
 
:O
 
We have a really ugly pinning in a audio community I used to go to. The pinging was so horrible because I had my headphone monitors on LOUD and was mixing my music. Guess what? loud "ping"
 
I do not condone improper uses of jQuery
 
@rlemon Lol, okay, I like your Lememe.
 
10:38 PM
:P
you use chrome?
 
@rlemon Me?
 
yes
 
I use Chromium.
I hate chrome.
 
ok well either way.
5
Q: Stack Search Chrome Extension

rlemon Stack Search A Google Chrome Context Menu Extension Screenshot About This is a simple context menu extension that adds an option for selected text on a page to be searched on your favourite Stack Exchange sites. The extension has two main components, the context menu list and the '...

 
It's basically the same ting :P
 
10:39 PM
2
A: Unicorn Voting - Bringing the Joy of April 1 All Year 'Round!

rlemonUnicorn Staring a userscript to bring unicorns to chat stars! Only uses the OP images. Same License. Don't sue me George Install

 
hi all
 
5
Q: Chat Easy Input Tools - Provides keyboard shortcuts for common text formatting commands

rlemon About Provides keyboard shortcuts for common text formatting commands, reducing the dependency on mouse usage. Current version does not have a configurable set of hotkeys but later versions will. How to use. All of the following commands are run if the user has focus in the chat input area. ...

 
Woah, what are these for?
 
pro tip: if you are on chrome 20+ open chrome://extensions and drag and drop the downloaded files to the page to install without webstore.
@Troy read them and see.
 
Oooh, cool, I'm gonna check them.
 
10:40 PM
that was also a good one after moving from windows to linux.
 
Are you using Linux right now?
 
nahh, my fastest pc is my gaming pc. so windows.
and it has the best monitor.
so when i'm at home, and not working I use windows.
that is to say, when I am at home and also working I do use linux
or qnx (which is stupid)
 
:D Which distro?
 
Ubuntu mostly.
 
Yup.
That's what I use.
 
10:46 PM
openSUSE sometimes, which is also a PITA
 
I dual boot. But I'm mostly on Windows.
PITA?
 
Pain in the ..
 
ahahah
(rofl)
 
also on the windows front. can't get netflix on linux :(
one of the biggest reasons I still keep windows around.
if I really wanted to I could game in WINE
watching stargate right now
 
Ooh, didn't know that wasn't on Linux :/ Never tried. I use it on my Xbox 360, iPhone, iPod, iPad... all my small devices and TV , not computer :P
 
10:49 PM
well resolution from my Wii vs my kick ass gaming pc is worth me watching on a pc
 
:D
 
also i have a nice chair and a 24" wide screen HD TV as my pc monitor
I see you like jQuery. how much Javascript (DOM API et al) do you know ? (no offence just asking)
 
Just jQuery (it does everything I want, so why learning something else? ). How can you see that I like jQuery? :)
@rlemon That's pretty cool.
 
well consider this, jQuery is actually a toolkit built for Javascript. Language agnostics are still a must, and understanding how a toolkit is built does help you greatly when developing any application using it.
Javascript is not something else rather it is what the toolkit is abstracting. and layered over. it is still a fundamental part of everyday jQuery use.
these are both projects I converted away from jQuery.
 
Thta's cool.
 
10:56 PM
if you read the source they are really not that hard to understand.
 
Even thought I like jQuery, I mostly code in PHP.
 
if you are ever bored and have some free time check these out

Learn Javascript Videos

Apr 27 at 15:10, 1 minute total – 7 messages, 1 user, 0 stars

Bookmarked Apr 27 at 15:13 by rlemon

 
I know JavaScript buddy.
 
I suggest them to everyone, old and new to Javascript
 
I do know it.
 
10:57 PM
but watch them, they are not like "learn the basics" they are learn how to optimize it and shit
at least look at the titles to the videos.
maybe the link there looks condescending i understand
 
I just use jQuery because it's way asier and gets things done faster (that's pretty much what I'm always looking for) not saying that JS is not good (it's basically the same thing), but jQuery is way easier, that's it.
 
still, I didn't mean to offend, it was a suggestion from one programmer to another.
I have been writing JS for over ten years and these videos still taught me stuff.
 

« first day (671 days earlier)      last day (4276 days later) »