« first day (976 days earlier)      last day (3974 days later) » 

10:05 PM
0
Q: After a user hits the submit button, how do I make an image or icon appear over another image?

JManThis question is for a website coded in HTML. http://www.blogcdn.com/devblog.mapquest.… *I pulled the above image from google (located on mapquest.com) and I do NOT own this image. With that said, please look at this picture as a reference to go along with my question. Assume that this image d...

 
KO is so pretty :) jsfiddle.net/pUfyH
@Shmiddty thanks, it was a for loop initially but that wouldn't capture closure and another function would suck.
 
@BenjaminGruenbaum I feel like it would look even nicer in Angular
 
Code it in Angular then :) It shouldn't take more than 5-10 minutes
 
Maybe.
 
it seems to do well on trivial demos
 
10:13 PM
@Esailija Funny :P It does well on big projects too just so you know
 
it's not the size per say
 
But how you use it
 
if I have 1000 different crud forms that's the same as 1
but still a huge project
 
Yeah
Of course I was making a nice example for OP, the size of a KO solution could be easily reduced to half jsfiddle.net/wjbah
 
anyone know how to search for a particular string inside of a particular type of file in Windows?
 
10:17 PM
notepad++ has that feature.
Also, just get bash and do what you'd normally do.
 
@BenjaminGruenbaum It's so damn fast too.
 
user1125394
 
Sublime Text also has that feature
 
10:22 PM
for those who don't know
 
mad swag is serious business bro
 
user1125394
men don't downvote, give him teh bot
 
Good site to take advice from right?
 
is there canvas 2d API that secretly uses webgl?
like gamua.com/starling is for flash
 
0
Q: Review my browser reward plugin

Justin BoydI've never put together a plugin before but I thought this would be useful to push technology forward. It's basically a browser sniffer, but if the user has a modern browser it will reward them for keeping it up to date. Unfortunately, the code is a little heavier than I expected (6kb minified)....

 
meh
written with complete disregard to JIT optimizations
 
ok that looks good
 
> 2008: David Phyall, 50, the last resident in a block of flats due to be demolished in Bishopstoke, near Southampton, Hampshire, England, cut off his own head with a chainsaw to highlight the injustice of being forced to move out.
 
10:37 PM
(this is without objects jsfiddle.net/TdSUZ )
 
@Shmiddty is the 33B answer to Not Quine obvious? I haven't got a clue how people are doing it!
 
@loading... There's two different answers
both use print instead of putstr (that should give you a big hint)
 
And function? I just couldn't get that to work with print.
I found another way but I'm intrigued by all the 33s.
 
@loading... print throws a line-feed at the end
 
@Gacnt Did you delete that 'command' yet?
 
10:39 PM
My angular feels rusty, I read too much Angular code and write too little.
 
Yeah, still stumped when using function though. Maybe I was just tyred and did something stupid. :-/
I must be tired now. s/tyred/tired/.
 
@BenjaminGruenbaum I like
 
@Gacnt !!sadnomnom
 
Angular shines more on big projects though :) It's also more magical.
 
coercing a function to a string adds whitespace
 
10:41 PM
@Shmiddty yeah, but not when I was testing locally, so that threw me to begin with.
 
I always just use anarchy to test
save to a file, use the input to upload, submit, refresh (confirm) when you make changes
 
I've got caddy installed now, because I can't upload files from an iPad :-)
 
I haven't tried caddy
what does it bring to the table?
 
@phenomnomnominal Gacnt made a command for you...
 
@Shmiddty you can run tests locally or on the server. It downloads and runs the actual test cases for you. It can minify your code too, though I've not used that feature. And it can upload your submission for you, obviously.
 
10:45 PM
@loading... so it's a tool specifically for that site?
 
Yep, written by the site author AFAIK.
 
that's cool
 
I had to fix up one or two regexps in the src because of encoding issues when run with newer versions of ruby, but otherwise no probs.
 
Does anyone know how to get started with Node.js? I'm lost
 
0
Q: After a user hits the submit button, how do I make an image or icon appear over another image?

JManThis question is for a website coded in HTML. mapquest image *I pulled the above image from google (located on mapquest.com) and I do NOT own this image. With that said, please look at this picture as a reference to go along with my question. Assume that this image does not start with the star,...

 
10:47 PM
@CheesyBacon You should install it.
 
@Shmiddty Actually, I'm actually trying out what to include in <script> tags in the client page...
 
@JamesWillson 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.
 
low
 
10:48 PM
Well, i am still getting a wierd error in my console. when using Nivo Slider
it tried to get a file called undifined
and inserts a blank slide
 
I'm actually trying out what to include in <script> tags in the client page...
 
for what?
 
Benjamin helped me out hugely on this question
0
Q: Jquery improvement of this script - Adding and removing items from list

James WillsonI've been getting help with this script seen below. It allows one input box to be used to put values into a text area and also display a list of the items. The items can be deleted once inserted: http://jsfiddle.net/ZTuDJ/50/ // If JS enabled, disable main input $("#responsibilities").prop('dis...

But I wondered why he didn't want to use query. Is it not very suitable for this kind of application?
 
@CheesyBacon are you using Nivo Slider?
 
@EliteGamer What?... No.
 
10:51 PM
oh
 
@Shmiddty i have a little problem with .load .can you help me now ?
 
@CheesyBacon What one?
@CheesyBacon, also, nodebeginner.org
 
@phenomnomnominal The command?
 
@phenomnomnominal While you weren't here, @Gacnt made a command for you, named !!sadnomnom
 
10:54 PM
!!/sadnomnom
 
Oh lovely
 
@phenomnomnominal Not very polite, don't you think?
!!/undo
 
@CheesyBacon I'm afraid I can't let you do that, CheesyBacon
 
Well...
 
10:55 PM
@CheesyBacon, meh, I'm not exactly polite to @Gacnt, he's a bit of a fuckface
 
@phenomnomnominal Well, you should just use !!/forget.
 
@CheesyBacon, if I wanted to, I would.
 
@loading... 30 chars?!
 
I'm loading index.php file using .load() and i'll send a ajax request to the another page like ajax.php .SO i have a function to call when the both files after loaded .like bellow
$().load("index.php",function(){

function

$.ajax({

url:"ajax.php",
type:"post"
...............etc
success:function(){

function ike above
},
});
});
help me please ?
 
10:58 PM
!!/tell Samithaఠ_ఠ format
 
@BenjaminGruenbaum Don't be annoying, drop the @, nobody likes a double-ping.
@Samithaఠ_ఠ Format your code - hit Ctrl+K before sending and see the faq
 
See now
 
I don't understand what you're asking
Maybe a fiddle could help
 
Search afterEdit.php
 
That's still not a question..
 
11:02 PM
in the js file
I'll explane when you see my code
 
That's still not a question, also your code is pretty bad :/
 
yeah i know .I'm learning
 
:(
        if (par !== 0) {
            var par_el = tr.find('td:first').filter(function () {
                return parseInt($(this).text(), 10) == par;
            }).closest('tr');
 
yeah i'm calling this function a lotof times
because when i load another page that .load function is no longer work
 
@phen but I'm your fuck face ;)
 
11:05 PM
2.9
 
So when i send ajax request and when on success callback i would put that function again
@BenjaminGruenbaum
 
If you're building a web application your approach has several things wrong. First, and foremost you're storing your information inside the DOM instead of in an actual data model.
 
I wish gopro supported live streaming
 
Second, you're loading HTML instead of using templates.
 
 
11:08 PM
@BenjaminGruenbaum do you want to check my application ?
 
27 new iOS7 features that apple didn't talk about macworld.com/article/2041306/…
 
@JamesWillson This is a more jQuery solution. It's basically like the vanilla one, I used whatever jQuery gave me in the scenario but a DOM manipulation library's worth isn't very high when building an application. jsfiddle.net/dhhJSBenjamin Gruenbaum 1 min ago
He asked for a 'more jQuery' solution
 
ok i need help with an explanation about forced synchronous layouts with chrome timeline, im using the .offsetWidth for a div but i get this warning in the timeline that it could be effecting performance
does any one know much about what that even means
 
Watch "the breakpoint"
 
you can use break points on chrome time line ?
 
11:19 PM
no, "the breakpoint" is a video
 
oh ok
i should mention i found it was this line:

	var test = document.getElementById(div).offsetHeight;
	var height = settings.height;
	var temp = Math.floor( (height / 2)- ( test / 2 )) + 'px';
	document.getElementById(div).style.marginTop = temp;
found the video :) thanks ben
 
Aye. Do you want to see the code? You might be able to figure out a way to shorten it. @Shmiddty
 
are you referring to my code @loading...
 
Sorry, no, edited.
 
okies np :)
 
11:24 PM
@loading... I think you're doing something with regex
 
Heh, yep.
 
I'm working on a regex solution, but it's failing
 
heres another one for ya is it normal for memory to increase with a loop if the loop is doing the same thing over and over?
 
[SPACE]//[LF]
print(r=/print(r=,r)/,r)
 
@Dave If the loop is allocating memory then yes.
 
11:25 PM
output is: /print(r=,r)/ /print(r=,r)/\n
which I feel should work.
shouldn't it?
 
its a req anim frame - clears and redraws canvas
 
Oh, yeah that's v close to mine.
 
roughly 60fps as i don't know if thats normal behaviour for it i wasn't sure if i may have a small leak
 
I can't see the collision immediately, do you see it?
am I printing too many characters?
or is it too few?
ah, I have something
 
@Shmiddty I think the r after the first comma is colliding.
 
11:33 PM
yeah, and a slash
alright, I gotta go before I miss my train
ttfn
 
I've basically got what you have with two extra spaces in there to avoid collisions. But you might be able to find a way to do it without those spaces.
seeya
 
damn it i got lots of issues xD
 
@Dave It takes 4 miliseconds...
 
OT: what's the difference between validator.w3.org/nu and validator.w3.org?
How do they compare?
 
i know but it says invalidated so i must be using bad javascript methods
rather than the more standard way
 
11:40 PM
@ŠimeVidas @JamieTreworgy
 
@BenjaminGruenbaum Who's that guy?
 
@ŠimeVidas He created a C# library that uses a port of it so he probably knows (He was also in this room quite a bit)
> Validator.nu does not perform the duties of a “validating SGML parser” as defined in ISO 8879. In fact, this service does not have any SGML functionality at all. In particular, the HTML 4.01 support uses the HTML5 parser with some additional error conditions.
 
i tested my site had 2 warnings :P not bad
easy fixes too
 
@BenjaminGruenbaum HTML5 isn't SGML anymore.
So neither of those two validators do SGML validation (when the site is HTML5).
 
@user1805897 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.
 
11:45 PM
This document was successfully checked as HTML5!
Result: Passed
w00
 
reddit.com 4 errors
 
↑ Comparable to being excited that you got your underwear on properly sustaining no injuries
 
Hey I may be a Mormon :)
 
I was talking about @Dave's excitement
 
lol. i got a score of 40 out of 100 though for optimisations
 
11:49 PM
yea, I think that's a tiny bit more important
 
I've seen an uncomfortable amount of people on Stack Overflow recently who think they can just dump their files on us and expect an answer. Does anyone else think we need an "isolate your issue" campaign?
 
@Nile Close reasons are changing like really soon. Meta is all about it for some time now.
 
Yeah, I saw the "isolate an issue" segment, but that seems to easy... I doubt it'll encourage users to actually attempt before posting
 
so according to chrome offsetWidth has to recompute the layout, so would it be technically faster to get the div's paddings/margins/width and do the calculation manually ?
 
Almost every web-development-related question I click on is overflowing with irrelevant code and leftover tabs (implying it was copied and pasted without being isolated)
 
11:54 PM
Hello everyone! Has anyone got any experience with jQuery framework Wijmo?
 
@user1805897 Haha.
 
whats jQuery?
 
user1125394
!!/define transwoman
 
just something i must use in a project apparently!
 
@cx transwoman (LGBT) A male-to-female transgender or transsexual person.
 
11:58 PM
my OCD makes me feel dirty about this 4ms bottleneck warning >.>
 
@Dave how many times are you using offsetWidth?
 
every time a user opens a menu in the game
as they are all center screen
 
@Dave is it something you can just cache?
 
no because each menu varies in size
altho i could use a fix size with a scroll bar
 

« first day (976 days earlier)      last day (3974 days later) »