« first day (566 days earlier)      last day (4385 days later) » 

4:00 PM
Though I appreciate all the help, it eventually led to fixing the issue
 
@EventHorizon but you learned so much more by taking the long route to fix it.
 
Yeah, I didn't bother looking at it
 
My brain hurts...
 
Sam
@gosto hey gosto......yes, I have seen/downloaded it, but I haven't worked on it yet
 
damn nothing can beat the while NOTHING
 
4:01 PM
Yeah I did learn a good deal @rlemon
 
just tried forEach vs while they were very close, but while still won
 
@Event_Horizon Btw, what I told you about adding var in the beginning. Do it for good practice
 
@Amaan yeah I understand that, I was just trying to get the damn chunk of code working, I do lots of cleanup and standards stuff after usually
 
@Sam i will ask it here also ok !
 
Sam
ok....no problem; currently busy, but will definitely take a look at it soon
 
4:03 PM
@RyanKinal so... jQuery triggers stopPropagation on purpose when an event handler returns false... but in POJS it's completely normal behavior that returning false doesn't trigger stopPropagation
 
@FlorianMargaine Wow. One more reason to hate jQuery.
jQuery has managed to overload return false -_-
 
isn't jQuery praised for it's event handling?
 
Yep
 
> Returning false from an event handler will automatically call event.stopPropagation() and event.preventDefault(). A false value can also be passed for the handler as a shorthand for function(){ return false; }. So, $("a.disabled").on("click", false); attaches an event handler to all links with class "disabled" that prevents them from being followed when they are clicked and also stops the event from bubbling.
 
4:06 PM
hahahaha..... you goto the API... i try to dig through the source...
 
<nerdrage>
 
Florian 1 | rlemon 0
 
@rlemon nah, a guy commented on my question with the link
 
ahh. hehehe
 
but still, I like to win :D
 
4:07 PM
are you winning?
 
1-0, isn't that winning? :p
 
florianMargaine.score++, double laziness
 
user1385191
4:09 PM
@RyanKinal the entire API is a giant set of assumptions
 
user1385191
I can't believe people are just noticing this now
 
user1385191
and now to move to a different topic…
 
@MattMcDonald Are you comfortable with Prolog?
 
user1385191
sure
 
There may be hope just yet! My code...infinite recursion!...weirdness!...
 
4:11 PM
Hey guys,

Is it possible to use this statement to check if an element contains and image?

if(element.innerHTML == '<img src="images/suitcase_bread.jpg">')
 
user1385191
I'd also look to talk about what constitutes good docs
 
YUCKY
 
user1385191
@Nuktu never ever ever
 
if(img.src !== "")
 
@Nuktu shudder
 
4:12 PM
something like that
 
0
Q: CSS placing elements without affecting one another dynamically using javascript

Jinu J DI was trying to create an image map tool as part of my project http://jsfiddle.net/MBThE/12/ I tried to place the links as divs and positioning using css.. But the problem is that adding or deleting new hot spots reults in repositioning of other elements..I found the solution for this as positi...

 
user1385191
he/she/it is checking if one of a node's child nodes is an image
 
or wait you mean an image in general
yeah
 
Ye just to see if an image is in a box
 
@JinuJD SO is your google?
 
user1385191
4:13 PM
…which is asking for a recursive childNodes traversal
 
if(yourparent.getElementsByTagName('img').length > 0) // then there be an image
 
user1385191
boy, it's sure a good thing that I'm not working on a library that can do exactly that
 
If he has the image element itself it's very trivial
 
you have over 60 questions in less than 3 months
 
hes inquisitive dude
google banned him for too many queries
 
4:14 PM
if (imgElem.parentNode === container) for a direct descendant
 
@FlorianMargaine:@me?
 
@Zirak I think hes just seeing if an image exists in general
 
yeah, you, over 30 questions in the last week
 
if an element has any children images
 
@Loktar thanks
 
user1385191
4:15 PM
there's been no specification that the image is a direct descendant of the node
 
If any image, then sure
 
> Ye just to see if an image is in a box
 
user1385191
so it's a recursive childNodes traversal or a recursive parentNode traversal
 
@FlorianMargaine:I considet SO as a google with some responsive intelligence .. :P
 
user1385191
I'm assuming the former since the node was specified and the image was a string
 
4:16 PM
Seeing his grotesque attempt with innerHTML I assumed it was direct; but even if it's higher in the tree it'll be trivial
 
@Loktar Would it be possible, using that code to check if there is a specific image?
 
user1385191
we need to get people thinking in trees instead of strings
 
?? a getElementsByTagName should work perfectly fine
@MattMcDonald bah eff that extra complexity.
@Nuktu youd have to get the image, and check the src attribute
 
@FlorianMargaine:I'm studying js.....You don't that from a student.?. :(
You don't expect that from a student ?:(
 
@JinuJD it's just... you don't look like very autonomous as you're only trying to have all the answers instead of searching them
 
:(
 
@Loktar Great, thanks for the help
 
np
 
@FlorianMargaine I simply ignored him. He's one of those people which can only accept the perfect solution that fits perfectly; if they have to actually understand it or change anything, they give up on it.
 
sounds like a good option, but I don't know how to unignore people, and he might improve, which would restore my faith in humanity.
I got a nice answer about the propagation stuff
> As for why they did it? I don't know, as I'm not not the jQuery design team, but I assume it's just because return false is a lot quicker to type than event.preventDefault(); event.stopPropagation();. (And if jQuery isn't about making sure you have less to type, I'm not sure what it's about.)
 
4:23 PM
Click on their icon or go to profile, click "don't ignore this user"
 
@Zirak how to unignore Feeds? :(
 
ah, thanks.
 
@Zirak use "@ab+tab" for typing my name much faster :P , and second i misunderstood what was going into your bot :P i thought your bot could be a userscript which can fetch info from the chat's client browser // via javascript & then process it using server power
 
it's not ab+tab, it's @ab+tab
 
4:28 PM
Forcing the bot user to keep their browser open for the bot to run is just silly, especially when the brain itself is already on a server
 
@Zirak agree :P
 
> I don't believe the return value of an event handler is ever actually used anywhere in POJS (someone correct if that's wrong!). Thus, jQuery can safely have a return statement cause side effects in a handler (since returning false in a POJS handler is meaningless, no POJS functionality is harmed).
 
is that true?
 
wow webdesigners amaze me sometimes
drewgreenwell.com look at his blog
scared me :-)
 
4:32 PM
"can this be done in jQuery?"
"not directly... here is how you would do it"
"I see Javascript there... I want this in jQuery"
"this is a function you would pass your element into... you don't need jQuery for this... in fact you can't do this cleanly with jQuery"
"but I want it to be... I know I can do it <this> way..."
"ugh... $.fn.somePlugin = function() { function somePlugin(element) { .. } return somePlugin(this[0]); }"
here... you want jQuery... PLUGIN ALL OF THE THINGS~!
 
@rlemon wut ?
 
hi guys , i have this code here http://www.pastie.org/3859675 and i have two problems in it .1 : i get undefined index when is nothing selected from selecting options.
2: the table2 disapear when page refresh and also the selecting option loose what was selected
 

 jQuery

This room is often empty cept rlemon. he's always here.
jTrolls.
 
lmao
 
my code probably isn't the best.... but I fail to see his logic.
 
4:39 PM
@rlemon your code is damn not cross-browser too
 
user1385191
would anyone find this useful?
 
user1385191
function getName(
	node,
	lower
)
{
	var canGet = Utils.can.getName(node),
		lowKey = "toLowerCase",
		upKey = "toUpperCase",
		result = null;
	lower = Boolean(lower);
	if (canGet) {
		result = node.nodeName;
		if (lower) {
			result = result[lowKey]();
		} else if (!lower) {
			result = result[upKey]();
		}
	}
	return result;
}
 
I hate how you format your parameters
 
user1385191
(an element's nodeName is its tagName)
 
any help ?
 
4:42 PM
@FlorianMargaine i know... i never care about finagling with browsers when giving noobs code..
they can deal with their own headaches.
i'm not being payed to write their code :P
 
^
yeah if its a canvas question sometimes ill go all out because its fun
 
unless they explicitly are looking for the cross compat way to XYZ
 
other than that I give them a solution they can figure out
 
like I only ever addEventListener...
dafuq is attachEvent() ?
@Loktar just onclicks. :P
 
haha
its crossbrowser!
 
4:43 PM
lol
@MattMcDonald you're spacing is not consistent with itself (it's consistent but strangly so)
 
user1385191
how is it not?
 
Sam
@gosto the code you sent me isn't complete; the only thing I see about posting is this line $menucompare = $_POST['menucompare']; what does that line do? What happens after that? You need to send a proper code
 
function()
{
     if() { // y u no new line?

     }
}
 
hi guys , i have this code here http://www.pastie.org/3859675and i have two problems in it .1 : i get undefined index when is nothing selected from selecting options.
2: the table2 disapear when page refresh and also the selecting option loose what was selected
 
y u no
if(
one,
two
)
{
 
4:45 PM
@rlemon Because it's an if
There was some huge Wikipedia article about coding styles
 
@Amaan so? it's a block statement.
 
One of them excluded if statements from that
 
user1385191
the function declaration is the only special case
 
user1385191
it gets the newline brace
 
user1385191
4:46 PM
function expressions get the brace on the same line
 
user1385191
it helps differentiate them visually
 
@Sam what ! i have sent you all code, here the copy in pastie pastie.org/3859675
 
@MattMcDonald there are several things I don't get :

- Why do you store `upperCase` and `lowerCase` in variables to use them only once?
- Why do you use `Boolean()` when `!!` is enough?
- Why do you use `else if ( !lower )` when `else` is enough?
 
@MattMcDonald man... all the power too you if that makes it more readable to you.. just looks very strange to me. confusing and unreadable (again, to me)
 
user1385191
1. to keep the width < 72 cols
 
user1385191
4:47 PM
2. explicit conversion
 
user1385191
3. else is vague
 
else is vague?
 
Sam
@gosto you have one line of server code, and the rest are html/js; what exactly are you trying to achieve when you refresh the page?
 
@FlorianMargaine He means you have to refer back to the if
 
it's not like the if is 50 lines long
 
4:48 PM
1. because it's pretty
2. agreed
3. for maintainability.. a comment would suffice.
 
(hmm)
 
if( condition ) {

} else { // yo that shit was false brotha!

}
 
,i have two problems .
1 : i get undefined index when is nothing selected from selecting options.
2: the table2 disapear when page refresh and also the selecting option loose what was selected.
 
well especially when the if statement is a one-liner
 
Sam
@gosto why are you refreshing the page?
 
user1385191
4:50 PM
the width may not look like much there, but the method is already inside of an if block and a function expression
 
@FlorianMargaine to that ends... would you rather read the condition or the comment? Matt prefers the condition.
I suppose it makes no difference in the end.. matter of choice.
 
let's go with ( lower ) ? result = result[ lowKey ]() : result = result[ upKey ]; :p
 
user1385191
really, the only comments I write are at the top of methods to describe what they do
 
@MattMcDonald I think you sacrifice readability for column size...
and I hate to see non-commented code ._.
 
@Sam in this code is simple i know , but im using variables and getting data from mysql so i need to refresh to get data . in this code there is no variables i just write it to show the problems only
 
4:51 PM
@MattMcDonald yes, but i'm hammering home this is all matter of taste. you're not wrong for doing it this way... we're not wrong for thinking it looks strange (to us)
 
user1385191
if you think that, see my PHP code
 
don't want to
 
user1385191
…which is stuck inside php tags, a namespace, then a class
 
user1385191
so there's an extra indentation level
 
you indent after php tags?
well this is the reason Drupal's coding standards require a 2 space indentation ._.
(not indent after php tags, but all this nesting)
 
user1385191
4:52 PM
and you don't get the object hacks that JS gives you
 
@FlorianMargaine I do if it's not more than one line.
 
user1385191
so my original question that was lost was:
 
Sam
@gosto ok....you cannot just show the problem only; you need to show all the code that should run once the page is refreshed especially the server code; that way, we can understand how best to help
 
user1385191
what constitutes good documentation?
 
if it's just one line, I do it all on one line like <?php print $hello; ?>
 
4:54 PM
idk, someone should make some documentation for that
2
 
<?php if( condition ): ?>
      <h1>indent</h1>
<?php endif; ?>
<?php
$arr = array(
     'foo' => 'bar'
);

?>
yea I guess i make no sense in my explination
 
oh, that
yeah ok
 
lol everything I read stuff @TimeToThine posts I read it with a lisp now, its awesome
like "except jQuery is fath ter"
 
@FlorianMargaine I've had people complain because this messes with rendered HTML formatting :S
 
with a lisp?
 
4:55 PM
@Sam sam pls , i have this code , and if you try it in your localhost u see those two problems ,
 
who cares what the view-source looks like.
 
user1385191
so for example, postgreSQL has a clear index and decent navigation
 
especially since you should be minifying your html
 
@FlorianMargaine yeah, because I think his name is TimeToShine, as someone with a lisp would say it
lisp means they cant pronounce S, they make a TH sound instead
 
4:56 PM
@FlorianMargaine I should be.... but I am not. (development :P)
 
user1385191
it also has nice tidbits of information around esoteric entries
 
FWIW, I like django's doc docs.djangoproject.com/en/1.3
 
user1385191
myLib's docs describe the type of feature detection used for each entry
 
I'm trying to think of 'docs' that i think are well put together...
 
4:57 PM
I can't
 
Make it searchable, navigationable and complete (detail-wise.) Other things are just for eye-candy
 
like... codeigniters docs are nice. easy to read.. easy to navigate... searchable... not complete.
 
I also like node's doc
 
user1385191
4:58 PM
that's what I've got so far
 
less docs SUCK
 
A bit shameful to admit it, but I find that JavaDoc (or whatever that was called) makes good (yet ugly) documentation pages
 
Sam
@gosto what you sent is unusable; server code must be included
 
aaahhh the colours, my eyes, my eyes!
 
codeigniter.com/user_guide <- imo that is a well put together doc... I just wish it were more complete.
 
4:59 PM
@Sam ok thx sam
 
anyways
bbl
 
see ya
have a good weekend if I dont see ya
 
i'll be back... boss let me off early... so i'm hitting the beerstore then home to do some more work. (it's sad)
 
2 hours ago, by TomShreds
Hey guys, I'm currently developing a web app, where do you think I should host it? I'm currently hosting all my stuff on a VPS but once it'll launch I'm afraid about scaling and I want to back myself up a bit by starting with the right service.
For Node.js projects
 
@TomShreds i would say get a dedic
cause thats what i did :-)
or you can use the joyent smartmachines
which are pbbly the bst
or you have heroku ( which hosts it aswell )
or you have amazon
 
is this what's running on no.de and nodjistsu kind of stuff?
I don't get how to manage DNS and emails with services such as heroku
Amazon could be a good idea
I like ec2
 
yeah there's tuts on setting up node with ec2
 
i am having an evil idea -.- static page blog hosted on "jsfiddle" lol
 
5:16 PM
LOL
 
haha
thats a cool loading thing btw
 
1 min ago, by TomShreds
I don't get how to manage DNS and emails with services such as heroku
Is there anyone who knows a bit about that?
oh that may be the answer addons.heroku.com/cloudmailin
I so don't get the whole idea of heroku
I'd like something with dns management, I hate doing BIND configs
 
Sam
5:36 PM
@gosto have you sent the new code?
 
@Sam no
@Sam its this code who is all
@Sam so thx if u cant
 
Sam
@gosto how fluent are you with PHP?
 
@Sam fluent ??
 
Sam
how good?
 
60 percent maybe
 
5:39 PM
Hey there guys
@Loktar btw the whole blogs loader will kinda shock you :-)
 
JIRA is down, hacker news HERE I COME!
 
Sam
how long have you been working with PHP?
 
@Sam 3 months
@TomShreds who is JIRA ?
 
Sam
ok.....in that case, you are probably about 5% in
 
@gosto what is JIRA**
 
5:41 PM
@Sam yes
 
LOL
a project management tool
for enterprises
 
@Sam "you are in the javascript room, trust me you will garner more php help and spotlight in the php room "
 
it is, what tells me what I should do at work
but since it's down, I'M NOT DOING SHIT!
 
Sam
anyway......whenever you post a question on SO, or ask them, they'll require you to post all your codes that pertain to what you need help with
@Abhishek his problem is with JS
 
oh sorry i got confused
 
Sam
5:43 PM
but part of the problem is PHP too..:D
 
Damn why VM hosting is so expensive.
EC2 Small instance hosting, 60+bucks/month, really?
This isn't Windows hosting ffs
 
Sam
cause he's a little confused with how refreshing a page work
@gosto open up a room, invite me, and let me see if I can walk you through some steps that might help you solve this issue
 
What's the best place I should ask about node/vps hosting?
 
@Sam open room ? where and how ?
 
Sam
hold on
 
5:45 PM
omg drank too much redbull I feel like a train
or took too much cocaine, one or another, dunno
 
@Sam better is i share my screen to you if u want
 
Sam
go to that room
 
@Sam what u think about this join.me
 
Sam
no....thanks
I have an aversion to joining online communities
I've created a room, specifically to help......especially since I've seen you ask the same question for about 3 days without a solution
 
@Sam yes , i have no solution yet :(
 
Sam
5:53 PM
I know you don't......you don't need a solution; you need an understanding, which will enable you to obtain the solution
 
@TomShreds use linode
 
Why should I use linode over EC2, RackSpace, heroku or nodjitsu?
 
because it's not $60 a month
unless you want a bigger one i guess
 
ah their pricing is better
nah I don't really care about big or not, I just want good tools to work with and good tools to analyze the traffic I get on the machine
also cpu usage, etc
 
actually it's not better
the ec2 small instance actually gives you a fair amount of ram and space
 
5:56 PM
oh I love the dns manager of linode I want that kind of thing
 
linode has a pretty damn impressive control panel
yeah, setting up DNS was a breeze
 
yes it seems pretty good
My current hosting is usually a windows hosting, but they did an experimentation with me and a big exception by hosting a linux vps for me, it works awesomely well, it's stable but I don't have no tools with it since they're a windows box
 
i need to learn a bit more linux before i can use my linode vm properly
the default install seems to have you sshing in as root
 
hehe there always more and more stuff you can learn about it :P
ok
 
i really need to decide what to put on it though :S
atm all i can do is ping it :D
 
5:59 PM
hahaha
 
but at least the DNS lookups work
unfortunately i'm not even the slightest bit artistic
so making a website is a pain ><
 
For my proof of concepts I like to buy themes on site like www.themeforest.com so you get a real design for like 15 bucks and all you have to do is develop
Because I'm not artistic neither hehe
 
I think those would be overkill
I'll just get a dirty gradient texture and put that as a background
instant web3.0
or 4.0 or whatever web we're up to now
 
6:14 PM
hahaha
 
6:27 PM
o/
 
@rlemon pardon my NQOFD (Noob Question Of The Day) but what's these o/ \o etc?
 
o (head) / (hand)
o/\o hi-five
 
oh so o/ = facepalm
 
/o/ hands waving
no
hand up
 
oh
 
6:30 PM
the sticks are arms
 
okay so the logical process would be: o/ + \o => o/ \o
 
sorry not hands. :P
yes
 
facepalm ?
 
o/
 
o\ <-- facepalm?
 
6:31 PM
user image
2
 
@Abhishek
 
lol
 
o\
|-/
|
\
|
 
oh LOL
 
6:32 PM
i <3 it
 
ohh god... this one just needs to be used more.
 
hey guys, i'm trying to use a php timestamp to pass to new Date(timestamp * 1000), but when I use setInterval it doesn't seem to pass the incremented timestamp by 1 to new Date() properly
the code i have for the clock pastebin.com/dEh5wD4H
 
:o
Facepalm contest?
 
6:48 PM
@OctavianDamiean kind off
 
A last one from me then. :)
Best facepalm ever.
 
7:02 PM
@OctavianDamiean image not found
redirects to funnyjunk.com
what you pulling
 
7:16 PM
I read a thing yesterday where Lynch was claiming Alien was ripped off from one of his movies. As if he invented the idea of parasites in a horror movie. What a damn tool that guy is.
 
7:45 PM
.. nvm ..
 
7:58 PM
 

« first day (566 days earlier)      last day (4385 days later) »