« first day (611 days earlier)      last day (4336 days later) » 

2:01 PM
" yes it can, by using CSS instead of JavaScript "
 
is there any non hacky way to make node process run as daemon
 
non hacky !== node server.js & ?
there is node-supervisor IIRC that may be better too
 
non hacky, as in it should not require specific application code to work.. it should be completely independent of application code
nohup sounds great but it feels hacky?
 
oh, then you're looking for node app.js &
nohup isn't suited for this
can't remember why just now...
 
2:06 PM
what does & d
 
doesn't hoist your console.
 
it works for every unix command
it says "run this program in background"
yay, 5k rep
 
cool, so it works like apached or httpd etc?
 
gratz
I went upto 5K then serial downvoted retards now i'm dwindling back to the 5K point :P
 
@Esailija uh, no
 
2:07 PM
how do I get something like that
 
httpd doesn't run in the background
it blocks your console
 
http daemon doesn't run in the background?
 
I thought you meant the httpd in /etc/init.d
for this, & is the way to go yeah
you can use it with nohup too
nohup keeps the program open when the users logs out
so you can do nohup node app.js &
this way, it keeps working as long as the server is up
but I think you'd prefer node-supervisor
so... nohup node-supervisor app.js &
 
I can't use that I already have application code for recycling processes and keeping them up
var cluster = require("cluster"),
    numCPUs = require("os").cpus().length;


if( cluster.isMaster ) {
	var workers = {};
	for (var i = 0; i < numCPUs; i++) {
		var worker = cluster.fork();
		workers[worker.pid] = {worker: worker, started: +new Date};
	}

	cluster.on('death', function(worker) {
		console.log('worker ' + worker.pid + ' died');
		delete workers[worker.pid];
		var newWorker = cluster.fork();
		workers[newWorker.pid] = {worker: worker, started: +new Date};
	});

	setInterval( function() {
 
yeah then just nohup node app.js &
 
2:12 PM
see, I don't want any of this supervisor bullshit, I just want the process not to take over the console and run in background
 
photon.attasi.com <-- css3 lighting engine @Abhishek
 
:)
what does the & do at the end
 
it sends the program to background
for example you can grep -r "node" / & and keep working in the terminal while the grep is working
 
@Loktar nice!
 
and nohup is just for keeping the program open after I disconnect
 
2:16 PM
thats actually using a better technique then what i did with skeleton :3
 
and there is nothing more to it?
 
using it mwahahhahahha
 
@Abhishek hah nice
 
i computed all by hand :-| and then ported calulations to js with ugly sick pukable bad gradients and masks hacks :-|
 
2:18 PM
@Esailija remember, all unix commands are very simple
 
its good that the project is still in very pre alpha
 
yeah Ive seen that before
pretty cool
 
i used that (x
 
2:20 PM
lags a bit on this machine
 
uber laggy for me
 
@rlemon it runs exceptional on windows
 
Im on Windows :?
 
cries on linux chrome
 
winxp using chrome
runs like poo poo
 
2:20 PM
dont try it on linux ur pc will uber lag
 
is it your Motto @rlemon ?
 
for me its smooth :-| , intel i5 IInd gen maybe
 
(Incoming griping about stupid contractors - C#/.NET)
 
This is my JSON response , how can I access "res" ??
{"d":"{\"res\":\"\\u003cdiv class=\\\"accordian_head\\\"\\u003e\\u003cdiv class=\\\"
 
		public static string DigitsOnly(this string s)
		{
			if (s.IsNullOrEmpty())
				return s;
			StringBuilder result = new StringBuilder();
			foreach (char c in s)
				if (char.IsDigit(c))
					result.Append(c);
			return result.ToString();
		}
 
2:21 PM
@RyanKinal lol
 
var res = unescape(msg.d.res); ??
 
@DieVarDump no my motto is "Hard work pays off later; Laziness pays off now!"
 
Friggin' brilliant, that function
 
@Loktar i used that technique for lightning with a difference that my gradients were semitransparent 2nd layer and masks which were dynamically being generated :-|
 
@RyanKinal LOLOL wtf
at first I was like meh whatevs
 
2:21 PM
Don't like your motto.
 
then I thought.. regex
@Abhishek cool, cant wait to see the skeleton man
 
@DieVarDump My motto doesn't care too much for you either.
 
@RyanKinal thats pretty friggin terrible man :?
 
Sure.
 
@Loktar no just skeleton no man no woman just skeleton
i cant be assed to make each rib anymore (XD)
<ul class="ribs-left">
<li class="rib rib-1"></li>
...
<li class="rib rib-16"></li>
</ul>
 
2:23 PM
lol
 
man thats hard :-/
 
semantic ribs!
 
semantic my foot each <li> has 4 div inside it
 
the in a rib-cage container?
 
LOL
which is in chest container
 
2:24 PM
well there are 24 ribs... so I really don't wanna see the malformed freak that cage belongs too (extra 8 ribs)
 
Oh, sunuva...
/// <summary>
/// Convenience method for string.IsNullOrEmpty()
/// </summary>
/// <param name="s"></param>
/// <returns></returns>
public static bool IsNullOrEmpty(this string s)
{
	return string.IsNullOrEmpty(s);
}
 
LOL.....
 
Friggin' enterprise, right there
 
@RyanKinal 24 ?
i thought there are 32 :-/
 
@RyanKinal wut?
 
2:25 PM
@Abhishek 12 on each side
 
so. I could totally get a job as a .net contractor
like I have full confidence now
 
Hi all
 
@rlemon lol thanks for the info :-)
 
in PHP, 4 mins ago, by Neal
: http://stackoverflow.com/q/3275258/561731
 
@FlorianMargaine This is in code we got from a contractor
 
2:25 PM
and I am complete garbage at c# .net :?
 
The human rib cage, also known as the thoracic cage, is a bony and cartilaginous structure which surrounds the thoracic cavity and supports the pectoral girdle, forming a core portion of the human skeleton. A typical human rib cage consists of 24 ribs, the sternum, costal cartilages, and the 12 thoracic vertebrae. It, along with the skin and associated fascia and muscles, makes up the thoracic wall and provides attachments for the muscles of the neck, thorax, upper abdomen, and back. Respiratory function The human rib cage is a component of the human respiratory system. It encloses t...
 
oh and somebody has an idea for skin ?
 
Also men and women have the same number of ribs.... regardless of what the bible or biblical text's say
 
@Neal why?
 
cause my skeleton looks like a ghost so far .. nxt time i boot on pc i will send u SS
 
2:27 PM
@Won't usually a Stack Overflow shows some effort on the OPs part. No offense to Pekka, but that question does not cut it, and is Asking the SO community to do the coding for him, which is not constructive on Stack Overflow. I did not troll at all, someone posted their answer in SE chat and I noticed that it had no reason to be on SO. — amanaP lanaC A nalP A naM A 13 mins ago
Basically that is why @FlorianMargaine
 
@rlemon its funny.. because apparently thats been debunked since the 1500's
 
@FlorianMargaine a lot of @Won'ts comments bother me over there... but what can i do?...
 
19
Q: Why does $($) crash my page?

NealDisclaimer: Do not try this at home Why, if I am using jQuery, does $($) freeze the page? Inspired by this Area51 question

 
@rlemon ?
 
Haaay @Neal "What have you tried"?? "Stack overflow is not your personal research assistant"
 
2:29 PM
@Neal I don't agree though, the question is asking for a specific algorithm
 
basically these types of questions exists from all of us.
so nit picking at one that is valuable to the community is just being pedantic.
 
@rlemon That is not the same thing whatsoever. I was not looking for some code golf. I was alsing for the reason why it happened and I found no solution on the interwebs
 
@Neal same turd different pile dude.
 
@rlemon ehhhhh. grey area
 
You're asking someone else to do the work for you... with no research shown or effort.
albeit it's a nice question; should stay.
just like Pekkas
 
2:31 PM
what are you talking about
 
@rlemon haha well anyways.
what the fruit loop?
 
I thought it was infinite loop
 
Direct copy of my question with different names.
 
Wow! that is insane!
pure content RIP!
and i wonder who these people are
 
Kelsey Cleland
 
2:33 PM
wtf
 
@rlemon even the answers are copied with different names
 
Yes
 
the dates are two months before SO though :D
way to make believe "SO is behind us, suck that"
 
hahahahahah
my name is Madeline Corell
 
@Esailija lol
 
2:35 PM
0
Q: Control Module - Good Design?

stack.user.0I take all my event listeners and have them point to a function called cIO. This captures all user initiated input. From there I use a switch to call the correct model either by calling the server directly mServer() or by using a "template" mTemplate(), which may or may not call the server. ...

 
0
Q: Sort of copy of my question on a different site

amanaP lanaC A nalP A naM AI am not sure if this belongs here: Report sites that use SE content without following attribution rules here but I just found a version of my question: Is "Too old to migrate" a good reason NOT to migrate? with it's answers, but with different names??? http://www.advancesharp.com/Ques...

 
in Tavern on the Meta on Meta Stack Overflow Chat, 1 min ago, by rlemon
Where do you even go with something like this....
 
$('input:checkbox:checked:visible:first').val(); lol
 
Is it possible to tag a post because you think you can reuse the content later
(+1 ?)
 
make the question your favorite
 
2:39 PM
0
A: Report high-Google-ranking SE content copiers here

rlemonhttp://www.advancesharp.com/Questions/7587/why-does-crash-my-page is a direct copy of Why does $($) crash my page? and so far (other than the retained links from the sister sites) I do not see any citation or linkage to the SO site or question. The do not follow the the content attribution rules...

 
@Esailija the hell is that ?
 
Thanks Easailija
 
3
A: Nodejs Event Loop

AbhishekI have been personally reading the source code of node.js & v8. I went into similar problem like you when I tried to understand node.js architecture in order to write native modules. What i am posting here is my understanding of node.js and this might be a bit off track as well. Libev is ...

he accepted the answer :D
 
grats
 
2:42 PM
0
A: Report sites that use SE content without following attribution rules here

rlemonhttp://www.advancesharp.com Example of content: Report high-Google-ranking SE content copiers here is the original; here is the copy: http://www.advancesharp.com/Questions/7587/why-does-crash-my-page all content from http://www.advancesharp.com appears to be ripped from SO.

 
@Esailija flag as spam
 
Hello, this is EasySlider customer support
this free code I am using and taking credit for is not working perfectly, fix plz
 
Anyone wanna have fun? ali.adravi@gmail.com is the owner of that content ripping site (so clone) Neal posted
 
blogger profile.
 
That is HIM!
 
man if people are going to rip off content and post these stupid sites they should really register it with a fake name
and email address
 
see his site
 
rofl his question is about scraping so :D
-4
Q: What is the best way to save the articles?

Ali AdraviI got a project from my client to create a site similar to STACKOVERFLOW for Printing media. So I want to know where should I store the article heading, body, images etc.? In databaser? in XML? I want to make them searchable and can easily be picked by search engine. Waiting for your replies. ...

send-teh-codes-pls
 
2:46 PM
> I got a project from my client to create a site similar to STACKOVERFLOW for Printing media.
lul
 
should i hack him ?
 
ninja'd
@Abhishek why? you're a kid?
 
for fun xD
 
destroying people's lives is not fun
 
:-| okay i wont brother
 
2:48 PM
I reported him on all areas of meta with the link to his user the site address the content examples
we should be ok
 
@FlorianMargaine it is
 
In databaser? in XML?
databaser whats that ?
 
@Abhishek you do whatever you want, just saying my opinion
 
@Raynos you have a big mouth, good for you :)
 
2:49 PM
It's pretty good opinion
 
i take your opinion as a big bros advice so i wont
and btw i can email him some funny content
 
here is a question that is only relevant to me and only I can know the answer
so I'll answer it right away
 
LOL
 
user1385191
ugh
 
f*** i thought 1st choice / 2nd choice was tabs
 
So i clicked...
And i can not unselect
 
Cannot unselect what?
election?
If yes, you can click the same button of another candidate.
 
But i don't want to vote for any of them
(you)
I'm not involved enough to have an idea for whom to vote
So i have a " second choice " and that's it
 
the ones with fat flag count
 
So basically you don't want any first/third choice?
The system doesn't work that way: en.wikipedia.org/wiki/Meek%27s_method#Meek
Basically you just have one vote which is split in an optimal way on the candidates you selected.
 
2:58 PM
I don't want to choose. But now I clicked on " second choice " there is one selected
 
Ah, you didn't want to vote for anyone. Sorry, misunderstood.
 
I thought " second choice " was a tab which will show another "pretendant" description
 
It might be possible that the ballot is not valid if you did not make three choices. I guess you could ask in the election chatroom, maybe one of the mods there knows it for sure.
 
If I have an array-of-arrays, how can I access the (i, j) element? Doing matrix[i][j] gives me the following error: "Type 'Object' does not support slicing".
 
You are getting that error in plain JavaScript?
 
3:02 PM
In Unity3d.
 
user1385191
we can't help you there
 
Especially without seeing the code where you are creating matrix
 
@Esailija I finally feel accomplished on meta:
A question by Neal that I'm upvoting? What is this I don't even. — yoda 5 mins ago
:-D
 
lol :D
 
user1385191
t-minus one hour until Beta
 
3:05 PM
@MattMcDonald ?
 
user1385191
I'd like to thank Facebook and its use of pushState in its "widgets" for clogging my history.
 
user1385191
I don't even visit the stupid site
 
user1385191
and I have hundreds of history states from it
 
user1385191
because of those intrusive "widgets"
 
haven't had problem with facebook, they use pushState when "full" site changes, not for every small thing
but I am not a facebook power user
can't repro
=D
 
3:11 PM
Reminds me of the guy who wrote "pong for addressbar".
 
now, use jsbin and switch between code and result for a while as per normal work flow
you'll have 315 history entries
 
hello there I'm trying to hide a select box if a value of another select box is selected I'm doing it like this but it does not seems to work : $(document).ready(function() {
if($('#select-box').val() == "V"){
//$('#albums_opt').hide('slow');
}
});
 
is it unemployed?
 
well
your line is commented
 
I just commented it
cuz I was trying to alert to debug but it's just not working
 
3:18 PM
Are you sure value is "V" ?
text and value are different
Try plain old javascript
 
user1385191
I'm amazed at how aggressively old browsers cached resources
 
MG1
Can someone help me figure out how to assign a user input value to an object that has a variable in its index - element[Payment_Format_name]['PmtRec']['PmtFormat'] = PaymentFormat -> isn't working
 
yes value is V
 
var element = document.getElementById('select-box'),
      value = element.options[element.selectedIndex].value,
      text = element.options[element.selectedIndex].text;
so just use value
 
@MG1 I reviewed your code, and I have made a few alterations and was able to get it to work.. the problem in my console appears around line 254 - "Uncaught Unicorn" - if you just replace it or define it you should be fine.
 
MG1
3:22 PM
I'm trying to assign the value to the object
 
user1385191
s/getelementById/getElementById/
 
(thx)
 
MG1
@rle
@rlemon I've changed the code since then after sort of figuring out why it wasn't working
 
"Uncaught Unicorn"
:')
 
user1385191
21/21 in o5
 
user1385191
3:23 PM
lol
 
user1385191
degrades on 43/64 tests
 
MG1
@DieVarDump isn't your code example assigning the object value to a variable?
 
It is but i was not talking to you ^^
 
MG1
oh oops
@rlemon would you look at my current code?
 
I was, but tbh I was just trolling because your question is unanswerable
Huyyy Guis.... I go tthis foo[bar].biz.baz = HelloWorld but it isn't working.
Can you answer that???
i thought not.
sorry it is many many questions posted in the chat like this that make me instantly rage on them
relevant code usually helps.
 
3:26 PM
The prod manager is in holidays, my manager is sick so at home, i'm new in the company and nobody knows what i must do because my manager was the only web dev...i really have nothing to do right now.
 
@DieVarDump i'm the only programmer in my company... no one knows what I do period.
 
MG1
@rlemon sorry... I didn't want to paste my entire code in here
 
I sometimes make work up
@MG1 then sorry we cannot help you
the code you provided is so vague I could speculate on like 400 problems.
 
user1385191
24/24 in o6
 
@MG1 but you can link to a JSBin or jsfiddle :)
@MattMcDonald you are crazy but i really admire you for your perseverence and your wish to do things good.
 
3:29 PM
element[Payment_Format_name]['PmtRec']['PmtFormat'] = PaymentFormat
element is undefined?
Payment_Format_name is undefined?
element has no index by the key in the variable Payment_Format_name?
the sub element has no PmtRec object?
the sub elements PmtRec object has no PmtFormat property ?
 
lol
 
user1385191
t-minus thirty minutes until release
 
thx
 
MG1
I get element[Payment_Format_name] is undefined
 
3:30 PM
console.log(element, element[Payment_Format_name]);
add that just before the line you error on
 
user1385191
the "crazy" part was writing an entirely DOM 0 test page
 
user1385191
that netted me Opera 5-6
 
where do you release
 
user1385191
HN
 
$.getJSON('WF-XML.php'
 
3:31 PM
oh cool
 
just that is crazy.
 
user1385191
release time is 9:00 SV time
 
getJSON on a file called " WF-XML "
 
user1385191
on a Monday, which is probably when developers are most likely to nod off
 
:)
 
3:32 PM
@MG1 i wouldn't normally suggest this; but looking at the code this function just pumps data out based on a template and some criteria... why not use api.jquery.com/jQuery.template
 
^star... not star... star... not star...
 
user1385191
…because even the $ developers don't recommend it
 
user1385191
and it's a crap technique
 
@rlemon it's deprecated by jQuery itself
 
user1385191
it was basically Resig hacking around with script tags
 
3:34 PM
If jQuery core deprecated it... maybe it's not that bad.
 
user1385191
and he wrote a blog post about it, and suddenly it picked up
 
(troll on Monday...)
 
MG1
@rlemon what would be the benefit of doing that?
 
user1385191
null
 
@MG1 no walls of ugly unmaintainable inline HTML
 
3:35 PM
Well, it's far superior to concatenating html strings or even worse, dom code
 
maybe not the jQuery template engine but a template system...
My eyes bleed a little every time I have to read
 
MG1
@rlemon ok maybe I'll do that later... but right now I'm trying to change the object value based on user's input
 
        if (element['PmtRec']['PmtMethod'] === 'CHK'){

                $('<div class="hd_field">Delivery Method: <select alt="Delivery_Method" " id="Delivery' + count  +'" class="Delivery_Method"><option value="100" selected="selected">US Mail</option><option value="300">Foreign Mail</option><option value="400">UPS Priority - 10am guarantee</option><option value="500">FedEx Priority - 10am guarantee</option><option value="C00">UPS 2-day - 2nd day, no guaranteed time</option><option value="E00">FedEx 2-day - 2nd day, no guaranteed time</option><option value="F00">FedEx International, no gua
 
user1385191
I prefer factories for "templating"
 
@rlemon exactly, and the same in "dom code" or similar is even worse
like some kind of json wannabe html scheme
or the like
 
user1385191
3:36 PM
that's just biting off more that one can chew
 
well the DOM code is not worse. (that is opinion based) but I think we all agree this is not the best way about it.
 
user1385191
way too many nodes to create
 
Enters... FragBuilder :P ehehehehe
 
@rlemon I dunno, it's a lot more code to read plus it's easier to read html than dom code
 
in your opinion...
 
3:38 PM
well you can use the converter I made jsfiddle.net/mFNud/7
let me know which is easier
 
user1385191
and now to download another version of Firefox…
 
it's easier not to read HTML lines pushed into a string with variables in the mix.
 
yeah but compared to equivalent in dom code it's pretty good
 
well that DOM code is retarded :P nice generator but still.
 
user1385191
factories can get the job done given specific tasks
 
3:39 PM
I wrote FragBuilder because I hated writing out DOM code so I tried to make a reusable function to do so.
 
take that huge piece of html and compare it in different methods
 
rlemon.github.com/FragBuilder.js I have found bugs in it... I need to fix them ASAP
 
user1385191
why can't the FF team be honest and admit that they're really only on FF 5.8?
 
MG1
are you guys on a different topic now?
 
maybe you can also rely on server to do this stuff, and request for xml trees and just appendChild it to your content ?
 
3:40 PM
most of my issues are, I write these projects for personal use; and this works 100/100 for that intended use... now to make it scalable and usable by all is going to take some work.
[
    {
        "tagName": "div",
        "className": "foo",
        "id": "bar",
        "childNodes": [
            {
                "textContent": "Hello "
            },
            {
                "tagName": "span",
                "style": {
                    "font-weight": "bold"
                },
                "textContent": "World!"
            }
        ]
    }
]
it's not amazing, but It's a lot easier to read than the HTML strings imo.. also easier to work with when pluggin in your data to the structure
 
wtf
 
user1385191
why the array?
 
that's exactly what I mean by JSON wannabe html
 
user1385191
you're on the right track though
 
it's just easier to read plain html without any quotes or that stuff
 
3:41 PM
@MattMcDonald limitation of the script
assumes the JSON object is always an array of objects :S
 
user1385191
with a factory, only the id and text would differ
 
like I said there are bugs.
 
user1385191
possibly the classes as well
 
that code amounts to <div class="foo" id="bar">Hello<span style="font-weight:bold;">World!</span></div>
 
Heh, jQuery TDWTF
 
3:42 PM
Why don't you create the HTML server side instead of creating dom elements ?
 
newline and indent that html, and it's easier to read
 
@Esailija yea for small amounts it makes no sense.
 
if not easier already
 
user1385191
@DieVarDump because then you're passing HTML strings
 
user1385191
3:43 PM
which means innerHTML
 
but for inserting LARGE blocks of HTML via JS I think this is easier to work with.
 
user1385191
which requires escaping for security
 
you can have a responseXML, no ?
And appendChild it
 
html is already the standard way to serialize dom, why invent these schemes
 
because HTML was never intended to be written inline your JS
 
3:44 PM
@DieVarDump Sometimes you don't want to add a server script, if the rest works without it
 
then MS pumped out innerHTML and fucked the world.
 
where you write this scheme is irrelevant
you could write that json in a .json file or have it in the body comments, there are millions of ways
 
I like that approach, although I mostly been using <div id="foo" style="display: none"> ... things that are used by javascript ... </div>
 
MG1
@rlemon any chance you can help me?
 
anyways, food is much more important than continuing this.
@MG1 maybe after lunch
toodles.
 
3:49 PM
@ThiefMaster lol, first the rant about web developers and then the code is exactly the same type of wtf as the java/vb/c#/realprogramming-language wtfs in tdwtf normally. :p
 
@Esailija s/web //
 
no the rant was about web developers specifically :P
 
And in java tdwtf, the rants are on java
 
user1385191
one minute
 

« first day (611 days earlier)      last day (4336 days later) »