« first day (1290 days earlier)      last day (3673 days later) » 

5:00 PM
break your file into bytes and send each on its own request. It is the safest way to determine progress
 
Or... progress event.
 
no
progress event is slow, don't use it
 
How come?
 
it slows down on large files.
not good.
 
Well ill need to check if its possible to build a file out of raw bytes in php then
On the php chat, someone said "Why would you even do that?"
 
doing that will permit the client to stream the bytes
 
My life is complete.
Bring me to the gallows. Any additional second that I live dulls in comparison to the pure ecstasy of discovering droidQuery.
 
how complex does an application have to be to merit using a framework?
 
@Crow framework at which end?
 
It's not code's complexity, it's the code's purpose.
$.ajax(new AjaxOptions().url("http://www.example.com")
    .type("post")
    .dataType("text")
    .data(????????)
    .context(this)
    .success(new Function() {
        @Override
        public void invoke($ droidQuery, Object... params) {
            JSONObject json = (JSONObject) params[0];
            //handle json response. Also see $.map(JSONObject) for parsing
        }
    })
    .error(new Function() {
        @Override
        public void invoke($ droidQuery, Object... params) {
            AjaxError e = (AjaxError) params[0];
OH YES
@BenjaminGruenbaum You must see this
 
5:10 PM
My suggestion is that unless you are building a landing page, you should use a framework.
Doing so will let you scale later without rewriting your code base.
 
It's the intelligent design of jquery and the beauty of Java combined.
 
Has anyone ever used jsDoc before?
 
@Relfor front end. Hence why I ask in JS room
 
@Crow well given javascript's isomorphic nature we see it at either ends
 
Code complexity doesn't mean squat. If you have inversion of control, you have a framework.
 
5:12 PM
I suppose, but doesn't it tend to be seen as more of a front end thing, short of node.js?
 
@Crow have you worked with any MVC frameworks before?
 
@Relfor yes, JavaScript MVC and BackboneJS
 
I wonder if my arguments will be addressed if and when I remove my pants and throw eggplants around.
 
@copy you ever play with the arduinos
 
@Crow and this is going to come off as a dumb question: do you have data in your application? or is your website primarily static?
 
5:16 PM
@Relfor well here's the thing... the data is handled almost completely on the backend and rendered statically to the page. There are a few post requests which can be possible, but they would be contained within highcharts
 
wow... took me 5 hours to finish strudying
 
That's it? Dang I wish 5 hours was enough for me in school..
 
but it doesn't look like too much time now that I think about it
@RUJordan I usually spend at most 30 minutes to study
 
Study what, though?
 
history
 
5:19 PM
Oh I never studied for that
All my efforts was focused on sleeping (high school) and tech projects (college)
 
ancient greece, alex the great, prehistorical italy, rome..
 
@Zirak : (
Where?
 
@RUJordan :P
 
@Crow neither mvc
 
well, new game of thrones episode is out
 
5:19 PM
@Crow are you open to modifying your application's structure, for eg delivering the data over ajax and using the server serving html primarily as templates? or is that against the (client) needs? the pro of what you are currently doing is that your pages can be easily SEO indexed, however the con is that it won't stick well with most MVC js frameworks which i'm aware of
 
so I guess I know what I'll be doing in the next hour
 
@t1wc writing a polymorphic class in Java with detailed JavaDoc standard documentation?!?!
^ Wild guess
 
@Crow brb
 
@RUJordan obviously, how could I do anything else?
 
lol
 
5:24 PM
woo
progress :)
 
'morning
 
@Relfor you can SEO index anyway.
 
@BartekBanachewicz what is that for/what is it supposed to do?
 
its not as elegant though
 
@SomeKittensUx2666 morning
 
@RUJordan "visual scripting"
 
@BartekBanachewicz yeah, not really sure what that means but ok!
 
@RUJordan ever heard about Kismet?
 
No sir
!!google kismet
 
5:27 PM
Is it really time for another attempt at visual coding? Time flies...
 
Software used to analyze wireless network traffic?
 
@SomeKittensUx2666 why not?
@RUJordan nope, a visual replacement for coding
 
Oh
I've used something like that --
 
@BartekBanachewicz As I'm sure your research has turned up, the brief history of coding is absolutely littered with attempts.
 
5:28 PM
When i learned Java in college we started out by using programmable lego robots that used "highly abstracted code" so it was mostly a visual
 
@SomeKittensUx2666 Yeah. And Kismet has been rather successful, wouldn't you agree?
 
I can't comment on that, since I haven't heard of it today.
 
@SomeKittensUx2666 but you have heard about Unreal Engine, I presume?
 
Of course
To be fair, I've only worked in Unity
 
Is there an event to check if user is focusing or not? e.g not in tab, or collapsed the browser down
 
5:32 PM
@rlemon Nope
 
I assume it's .focus()
 
@user3123545 yes
 
@Relfor I know..
 
@SomeKittensUx2666 well, it was a part of it for a reason
a lot of designers/artists can't code
 
@vishnurajv Welcome to the JavaScript chat! Please review the room pseudo-rules. Please don't ask if you can ask or if anyone's around; just ask your question, and if anyone's free and interested they'll help.
 
5:33 PM
@SomeKittensUx2666 Need to detect if a user is not in browser or not in tab, what event do I use?
 
damn I have a bug
 
!!ziraksadvice
 
2 days ago, by Zirak
@BartekBanachewicz Use jquery
 
5:33 PM
lol..
 
BTW @Benjamin can we expect something like I wrote today (map, filter, folds) for lazy containers to standarize somehow?
 
@user3123545 $(window).focus()
 
!!urban lel
 
@SomeKittensUx2666 Lel Unlike what many people think lel is not an acronym in the same fashion that LOL is (it does not mean laughing extremely loud, laughing extra loud or similar). Lel (and variations including lal) resulted from the use of random vowels substituted in place of the 'o' in LOL. These vowels were used in an attempt to be different from the millions of internet game fags. The word however, in essence, still means LOL.
 
@CapricaSix this is a very good definition
 
5:37 PM
working with horribly indented html <<<
 
<><>
 
yay found the bug
block.id = "output" + num;
//cc @Benjamin ^
 
Cutting down on my coffee input...this'll be fun
@BartekBanachewicz He won't get it, you commented out the ping
 
@SomeKittensUx2666 lol
 
@t1wc Learning prehistoric Italy in history class?
 
5:41 PM
hmhm
what should I add now
 
!!ziraksadvice
 
@SomeKittensUx2666 That didn't make much sense. Use the !!/help command to learn more.
 
@Zirak I guess there is no prehistory class in highschool
:P
 
2 days ago, by Zirak
@BartekBanachewicz Use jquery
 
@Zirak check your email
 
5:42 PM
I am already using jQuery
 
@SomeKittensUx2666 Done
Thanks, failblog couldn't have waited any longer.
 
So I got the wrong one?
 
I'd assume so
Aside from this, nothing nearing amusing. It's been a while since they made me laugh.
 
Sniped at 22 minutes.
EEEEBBAAAAYYYY
 
@Relfor breaking down the application, it does some statistics, which it renders as highcharts json. It then throws the json on the html page and returns the html page to be rendered. There are a few "small" jquery interactions here and there -- like making qtips or modal windows, but interaction and data retrieval is minimal at best
the only time it retrieves data is in a click event on the chart series, which does a post request and makes a table with its callback data
 
5:49 PM
@Crow since most your data bindings are dealt with the highchart charts I guess you can do without an MVC framework here
@Crow however do you see your application accommodating more features down the road?
 
@Relfor sort of, except they're mostly done on flask's side.
for example, an advanced search which filters data from the data source
 
@Crow I see, that still pertains to the charts
 
Hi all, i got some questions about objects
 
@Relfor sorta, this wouldn't have a chart, it would just throw a WTForm on the page, then when they fill it out and send it back, it would stream a response
 
@Crow sweet, given the robustness of the APIs you are using you seem to be fine
 
5:53 PM
yeah, I just feel like I am including a lot of "small" scripts that do UI based things
 
Does anyone know how could i bind events to objects created with templates something similar to backbone views?
 
user1596138
Form spam free for: 6 days
 
hello, I have an array [{col1:name, col2:email, col3:add},{col1:"alex",col2:'alex@gmail.com', col3:'san frans'}]
 
user1596138
Hell yeah
 
I want to move the col2 to first position and then add etc
 
user1596138
6:03 PM
 
user1596138
 
user1596138
Silicone valley at it's finest!
 
any one who can help me out.. i am stuck with the code
 
@Jhawins Silicone valley? Is that another term for fake cleavage, or a misspelling of the region in California? :)
 
user1596138
6:06 PM
@KendallFrey Maybe it's a place you just haven't heard of
 
user1596138
(Actually my half-bro refers to strip clubs as silicone valley)
 
@Jhonnatan seen my data binding post?
 
@Jhawins lololol #firstworldproblems
 
Also, LA is where all the silicone is injected
 
@dystroy I don't particularly like it but I don't see anything wrong with it
 
6:08 PM
@ThiefMaster dystroy is afk.
 
have tried if and else, but there must be smart solution, any one who know?
 
@copy
 
user1596138
@ThiefMaster I don't get it :(
 
My code works for the first and third inputs, but not the second. I can't make sense of it.
@BadgerGirl tell @copy to wake up
 
@abbie Welcome to the JavaScript chat! Please review the room pseudo-rules. Please don't ask if you can ask or if anyone's around; just ask your question, and if anyone's free and interested they'll help.
 
6:16 PM
aww... nothing really happened in the new episode (game of thrones)
 
@t1wc It was a bit snoozey
 
@copy wake up
I'm at work and he stayed home to clean and cook.
 
well, studied for 5 hrs and can't remember what it was...
great
this I call concentration gents!
anybody here has studied republical Rome?
 
@BartekBanachewicz you deserved it :D
 
Customizing a drupal webform sucks..
 
6:30 PM
@BartekBanachewicz honestly? No idea, but very likely that it will.
 
It doesn't make it easy to have custom JS or dynamic fields.
 
You have comprehensions though.
 
@BadgerGirl do you two live together now? Making babies and such?
 
2 Nexus 5 phones + 2 cases (one leather) + Wireless charger = $515
 
@Glitchezz Welcome to the JavaScript chat! Please review the room pseudo-rules. Please don't ask if you can ask or if anyone's around; just ask your question, and if anyone's free and interested they'll help.
 
6:37 PM
@Relfor I just realized - is the entire popscript.js in the global scope? So you're corrupting it with all your inner functions and such?
 
Yeah, many of inner functions serve as helper functions for later use cases.
 
Don't. Wrap it up in an IIFE or something of the likes. It's called the module pattern, or some fancy shmancy shit like that.
 
@SomeKittensUx2666 I changed my twitter name again :D
 
Yup, the helper functions can be moved into a local execution scope, will do that
 
0
Q: return javascript function in JSP form

user2799598I have a javascript function (get_deviceprint()) that return UI data such as ip, resolution, device, etc. I need to return it as part of a form to the servlet. I know the function works because console.log(get_deviceprint()); correctly displays the info in the web console. so the problem is pa...

shoots self
 
6:40 PM
*local helper functions
 
just found out that for 2 hrs I've been studying the wrong thing -_-
and what was asked to study was much simpler
could anyone burn me plz?
 
!!burn t1wc
I forgot that was a real command
!!undo
 
:P
looking for burn school on google I've found this
and I completely agree
 
@t1wc You are now flagged for monitoring.
 
"Click here to receive letters from Philadelphia State Penitentiary inmates today!"
Um... no.
Weird ass email...
 
6:52 PM
"Click here to not receive letters from Philadelphia State Penitentiary inmates today!"
 
I guess that would be worse
> Subject: THEY HAVE YOUR ADDRESS GET OUT
Potential follow up email?
 
Is you address "Philadelphia State Penitentiary"?
 
@Zirak you caught me.
I've been in prison this whole time :(
 
Aren't you a figment of my imagination?
 
6:54 PM
@Low-Pointer Welcome to the JavaScript chat! Please review the room pseudo-rules. Please don't ask if you can ask or if anyone's around; just ask your question, and if anyone's free and interested they'll help.
 
Quick, I need an example of a context sensitive sentence.
 
@Zirak maybe. Maybe I'm just a very intelligent figment of Caprica's imagination. AI learning ftw.
 
@Zirak i helped my uncle jack off a horse
 
Tempted to star that for potential out of context readers..
 
@Zirak I never said he stole my money
 
6:56 PM
@Shmiddty That's an ambiguous sentence
@SomeKittensUx2666 Explain?
 
@Zirak Say it out loud, each time emphasizing a different word.
 
^ Interesting!
 
I never said he stole my money, I never said he stole my money, etc
 
ok, that's a nice one, but it doesn't go well through text.
 
Now emphasize nth-child(3) of that sentence.
 
6:57 PM
Ok, how about "Where can I find it?"
 
hrm, I might go for ambiguity after all, like "they ran". The meaning of "they" gives the verb "ran" different meanings.
 
@Zirak And why are they running?
 
What's the context of this context barrage?
 
You could always go for "I saw a man in the park with a telescope"
 
The user doesn't understand contexts.
Or html. Or whatever.
 
6:59 PM
I think I SQL'd myself into a corner
 
After thinking about your question more I think jQuery append would be a better use for you. I will create a new answer to explain better. — n8ross 5 mins ago
-________-
#jQuery
 
@SomeKittensUx2666 I want to start pronouncing SQL as "squeal".
 
How the hell are Drupal webforms any good when you can't customize the HTML surrounding the fucking elements?
Good god. I want to smash.
 
Wow...he just...completely missed it
0
A: return javascript function in JSP form

n8rossInstead of calling a JS function within a value attribute. Set all the values in your script and then just append the input to the document. I created a small example below and I use jQuery, but you could do it without. http://cdpn.io/AogHk Note: my example doesn't use hidden so you can see it ...

 
@BenjaminGruenbaum no, havent seen it
 
7:05 PM
He just completely and wildly missed the question
 
In the middle of an answer here
 
36
Q: How to Implement DOM Data Binding in JavaScript

Benjamin GruenbaumPlease treat this question as strictly educational. I've accepted and answer but I'm still interested in hearing new answers and ideas to implement this tl;dr How would I implement bi-directional data-binding with JavaScript? Data Binding to the DOM By data binding to the DOM I mean for exam...

 
That question and the answers all make me angry.
 
@BenjaminGruenbaum goint to read it
 
7:10 PM
@srrvnn Welcome to the JavaScript chat! Please review the room pseudo-rules. Please don't ask if you can ask or if anyone's around; just ask your question, and if anyone's free and interested they'll help.
 
stackoverflow.com/questions/23349384/… these guys think they're so clever avoiding the codeless jsfiddle filter
 
woah, 1101 edits..
 
@Zirak why'd you put so much effort into an almost closed question?
 
Because I feel bad for the guy.
 
7:19 PM
D'aww that's so sweet!
 
Should I rant about that n8ross guy?
 
!!yes or no
 
@RUJordan yes
 
Yes.
 
@Zirak where?
 
7:21 PM
It's a good answer btw
 
@BenjaminGruenbaum i think your answer could work for me in order that you talk about only works in modern browser and i am only interested in modern browsers, my only concern is if i could instantiate instantiate a bunch of objects using this technique
 
@SomeKittensUx2666 The jsfiddle link in the question RUjordan posted
 
@JhonnatanGonzalezRodriguez like real modern, like, Chrome and FF nightly.
 
haha, nice
 
@JhonnatanGonzalezRodriguez here's ES5 btw jsfiddle.net/P9rMm
 
7:22 PM
@BenjaminGruenbaum well, thats real modern :/ ahahahahah :(
 
Sorry, I don't believe this is a good answer. The first solution is just downright wrong, and the posted code isn't much better. It treats html as if it were a string, which is part of what's wrong anyway, and doesn't actually answer the OP's question, which is how one would dynamically change an input's value. — Zirak 10 secs ago
 
stackoverflow.com/questions/23349482/… guy wants to bump forum threads with js?
I hate people who use JS to make the internet a shittier place.
3
 
Like that asshole RUJordan
3
 
He's a real dickhead that's for sure
 
Before I go ask in the PHP room, can anyone here help with a SQL issue?
 
7:29 PM
Potentially Don't ask to ask :-P
 
@SomeKittensUx2666 depends on the complexity -- I only just learned CASES in sql.
 
SQL has CASES?
 
I just learned update
 
Yeah, they're like if statements
 
7:30 PM
@SomeKittensUx2666 Yes
Glad I could help
 
CASE WHEN t.RegistrationFee = 400 THEN 250 WHEN t.RegistrationFee = 250 THEN 175 ELSE 0 END as RegFee
 
Y U NO PRIMARY KEY
lol jk what's the problem?
 
in the comments
-- For a given set of flags, I want to get a list of userids
--   with the highest avg flag weight
I tried doing SUM but that only returned one flag
 
1
Q: Add done() function in jquery plugin to wait until animation finishes

Fabio SampaioMy problem is when I add a: .done(function() { innerDef.resolve(); }); in the "animate" function, it don't work as I wanted. I just want the function to wait until the animation finishes, like this: $('#anim_vision').showThis().done(function(){ alert('task finished!')...

 
7:36 PM
@SomeKittensUx2666 so you want to sum the flag weight for a specific flag, and order by highest desc?
 
So who wants to see my chat I've been working on, to suggest/review?
 
brb computer restart
 
@SomeKittensUx2666 So, when you mean "avg flag weight" you mean relative to the flags you specified?
 
@Retsam So if Dude A has three entries for flag 3, with weights 1, 3, 3, it should return something like:
Dude A, 3, 2.3333333
 
@SomeKittensUx2666 Oh, okay. I thought you wanted to find the average weight for flags 1 & 3.
 
7:41 PM
 
@Loktar I need it by flags, not dude
 
HOLY SHIT NOW DID I NOT KNOW ABOUT AVG
 
:P
 
7:43 PM
@RyanKinal yours is exactly what he wants then, just add AVG
 
Yerp
 
Ive never used that before, sqlfiddle
pretty sweet
 
Ah, I think mine is the same as Ryan's.
 
Yeah, that's awesome
Glad to see something like sqlfiddle exists
 
yeah definitely
 
7:44 PM
Hey there, after I use jquery to .get() something and return it in a <div> what do I need to do when the content returned is longer than the page? It isn't giving me scroll bars to get to the bottom of the content.
 
Cool it exists; wish it were a little more explicit about when it's creating a new version.
 
@Alan is overflow set to hidden?
 
It seems like it ups the version every time you execute?
 
Not sure, I will look it up
 
@Retsam Yeah, not sure
 
7:45 PM
Awesome, learned about AVG
Thanks all!
 
Glad to help! And glad to learn :-)
 
@RyanKinal you should also alias that so it's prettier :D
 
Psh. Aliasing
Who does that.
NOT THIS GUY
 
So you're saying you're
(•_•)
( •_•)>⌐■-■
(⌐■_■)
anti-aliasing?
5
 
lol
 
7:48 PM
SELECT id AS thisreallylongsentencetomakeeverydeveloperwhoseesthisrageoutbecauseofcomplexinnerjoins ...
 
@Loktar there is no mention of overflow in my code
 
@Retsam slow clap
 
faster clap
 
@Alan weird, make a fiddle if you can.
 
@RUJordan Doing that on everything now, other guy abuses joins like he's from West Virginia.
 
7:50 PM
Still my favourite one:
We found the victim with his penis stuck in a peanut-butter jar. So it's safe to say that he was...
(•_•)
( •_•)>⌐■-■
(⌐■_■)
...fucking nuts.
YYYEEEAAAAAHHHHHH
 
@SomeKittensUx2666 o.O
@Zirak \o/
 
@Zirak The youtube video I think those all came from is one of the few times I've actually not regretted reading the comment section..
 
@SomeKittensUx2666 LOLWUT
 
For me roll is something like a sandwich. If that is what you mean than this question belongs on Seasoned Advicerene 3 mins ago
 
Random twitter fact: slut was originally described a woman who did not keep her room clean
O.o
 
7:51 PM
@Loktar Not sure how I could do that, all the content is database driven :(
@Loktar here is the working example though. Click setGridoptions: alanhalls.com/admin
 
@bjb568 best comment of the day
 
@RUJordan That reminds me of my first time talking to an American. Told him I have a 4 year old bitch. He didn't take it kindly.
 
@bjb568 :reopens question for the lulz:
 
@Alan dude..
DUDDDEE
 
7:53 PM
        html, body {
			background-color:#19347F;
			margin: 0;            /* Remove body margin/padding */
			padding: 0;
			overflow: hidden;    /* Remove scroll bars on browser window */
			font-size: 75%;
        }
^ wtf is that? I told you I was like hey is overflow set to hidden?
BUT NOOOOooo
 
DDUUUUUUUDE.
 
:P anyway fix that style and you'll be good.
 
Sorry, I was looking in a different file
 
haha np I'm just messing with you
 
@Loktar DDoooOOOoooOOOOooo0000hhhhOOOhhh
 
7:54 PM
NP, I was looking at this code and like, NOpe, not there :)
<script>
$(document).ready(function(){
<?
foreach($db->query('SELECT * from navmenu') as $row) {
print_r("
$( \"#" . $row[0] . "\" ).click(function() {
$.get( \"". $row[3] . "\", function( data ) {
$( \".contentarea\" ).html( data );
});
});
");
}
?>

});
</script>
 
;-;
 
omg phormat
 
!!tell Alan format
 
@Alan Format your code - hit Ctrl+K before sending and see the faq
 
@Zirak haha and by bitch you clearly meant..?
 
7:55 PM
@RUJordan Female dog.
That's what bitch means
 
oh you went literal on his ass
 
@BenjaminGruenbaum If you have time, would you mind explaining what Roamer is trying to explain to me here? stackoverflow.com/questions/23329485/… I think I understand what he's saying, I just don't understand the implications of it
 
My newest goal in life
Skeet shooting to the max baby
 
haha
that dudes stance after
and the other guys reaction its all so great
 
the golf club gun swing got me the most xD
 

« first day (1290 days earlier)      last day (3673 days later) »