« first day (969 days earlier)      last day (3996 days later) » 

7:00 PM
@cx example: I worked for a large lms company, we bought a lot of RAD tools (pre-jQuery days) because we didn't want to waste time on front-end nitty gritty like making a half-descent WYSIWYG editor.
 
user1125394
and you too, and yes my keyboard is too tiny to type well
 
@cx I'll let you reping me to fix that
@cx run-on sentence
 
was the product sub-par and overkill? yes! did we spend the manhours supporting / upgrading / doing anything to it? no!
 
@cx you fail to type well, not the keyboard
 
user1125394
he lol
 
7:02 PM
@cx I can fix your keyboard.
Start -> Run -> "cmd"[ENTER]
> C:\Windows\System32\KB16 BE,850,C:\Windows\System32\KEYBOARD.SYS
[ENTER]
 
user1125394
hmm scared to do that :)
 
i dunno if it works.
probably doesn't
 
@rlemon do you use dvorak
 
user1125394
 
it was an old way to change your keyboard layout to Belgian layout
@Michael no, and never been interested to try it
 
7:04 PM
@rlemon What is belgian layout? Isn't that either us or azerty?
 
user1125394
@rlemon ah well not far since I'm french
 
I would be fumbling around for so long.
@PeeHaa埽 no clue, but sounded like it would be fun
 
:-)
 
When typewriters were first invented, the keys were arranged in alphabetical order. However, this increased the typists' typing speed and caused the typewriters to jam. So he rearranged the keys in the random pattern we see today to slow their typing speed and prevent jams.
 
7:06 PM
Close as not constructive ?
0
Q: Go (golang) gotchas?

m4ttyI've started using Go (golang) to build a distributed system of services (i.e. SOA / Micro Services) and I'm finding it to be a good choice so far. I've only run into: General dependency management issues (especially with -pinning down- changing dependency versions over time)... But this has o...

 
@dystroy sounds useful, but it's a big-list question
 
@dystroy Definitely, that is like reddit material lol
 
@rlemon i tried it once, but it's hard
 
what about migration to Programmers?
 
@dystroy cved it
 
7:08 PM
"cved" ?
 
user1125394
closed
 
c lose - v ot ed ?
 
CV'd. One to go.
 
user1125394
curriculum-vitaed
 
So my friend who works for local community college, the way they do templating on their site. <body><script src="body.js"></script> ect....
Inside body.js a shit ton of document.write its so fucked up.
example for their footer template
 
7:08 PM
@dystroy yes
 
@dystroy correct. "cv" is a verb
 
ok, thanks, I learned something today on SO...
 
function write_footer() { // include javascript footer	 document.write(" "); document.write(" "); document.write(" "); document.write(" "); document.write(" "); document.write("
"); document.write("
 
user1125394
@powerc9000 they don't like html
 
@Gacnt WTF?
 
7:09 PM
@Gacnt what are you doing ?!?!!?
 
omfg
 
Yo, I have a problem with javascript and forms.
I have this code:
<script language="javascript">
function dodaj_v_kosarico(id){
document.vnos.id.value=id;
document.vnos.metoda.value='add';
document.vnos.submit();
}
</script>
<form name="vnos" action="index.php?stran=trgovina">
<input type="hidden" name="id" />
<input type="hidden" name="metoda" />
</form>
The problem is that it redirects me back to index.php not to index.php?stran=trgovina
 
dear lord...
 
@Gacnt yuck
 
7:10 PM
@powerc9000 ????? a place of higher learning .. all of that crap + using tables for layout?!
someone should be shot.
 
Well, I had to put in line some code yesterday which wasn't much better...
 
1 message moved from PHP
 
what is the performance penalty on document.write
 
user1125394
they probably forgot <script>
 
-
 
7:11 PM
@TristanŠneider 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.
 
@rlemon performance penalty? DEAD KITTENS IS WHAT WE ARE TALKING ABOUT!
:-)
yay double ping
 
@cx it's a js file. but the browser tries to interpret it as html
 
3000 lines of HTML for about 50 links, everything like this :
<h3>
      <font color="#0000FF">
        <font color="#000000">
          <font color="#0000FF">
            <font color="#000000">
              <font color="#0000FF">
                <font color="#000000">
                  <font color="#0000FF">
                    <font color="#000000">
                      <font color="#0000FF">
                        <font color="#000000">
                          <font color="#0000FF">
                            <font color="#000000">
                              <font color="#0000FF">
 
@PeeHaa埽 yea but it just got me wondering
 
@rlemon being killed by your fellow coworkers isn't a penalty enough?
 
7:12 PM
heheheh
 
@rlemon Negligible, since it's only executed once.
 
@dystroy Yay christmas tree!
 
@TristanŠneider Try adding an method="get" attribute to the <form> tag.
 
Why does the JS file have Content-Type:text/html; charset=UTF-8
:(
 
user1125394
@rlemon a ok
 
7:13 PM
@Esailija to test if the browsers are smart enough to realise the server's lying
 
I'm irked the most about the improper indentation at the top of the main page's html
 
lol
 
snow.edu lines 43 & 61
 
@Michael test.tristans.tk/minko_v2/index.php?stran=trgovina Nope. It doesn't fix the problem. See for yourself how it works. Just click "Dodaj v kosarico".
 
TABLES
TABLES!~!!!!!
god why do people still do this?!
 
7:14 PM
css what is
 
This isn't a webpage. It's a restaurant.
4
 
@TristanŠneider It looks like the form fields are overriding the query string parameters defined in the "action" attribute.
 
@rlemon because college profs still teach that.
 
@JanDvorak using it!
 
Try adding a hidden input field instead of defining the field in the query string.
 
7:15 PM
Because they read some article from 2003 telling them how to shoot sparkles when you move your mouse
And yeah...unfortunately, that's how people teach web dev in some schools and colleges.
 
it's sad how much outdated knowledge is being taught in colleges by professors out of industry for far too long
 
round corners? Shit don't wanna leave out IEold .... better use tables and images.
that was IE6 can see what Chrome 27 does.
 
Should I rather try going with POST?
 
@TristanŠneider Depends. If you want to give your users the ability to bookmark the webpage, then you should use GET. If you use POST, they will not be able to bookmark the page.
 
Well, it's kind of a shop for school. It doesn't really matter.
 
7:17 PM
but they won't see tons of parameters either
 
POST can also be used to help hide sensitive information. It doesn't encrypt the information, but, due to the ways in which servers handle HTTP requests, it can help keep the data out of view.
 
thats like putting a napkin over the steak to keep your dog away from it
 
it also lessens the risk of double submission
 
doesn't take much effort to see past the napkin
 
@Michael Fix'd
 
7:19 PM
@rlemon Very true, which is why you should always encrypt sensitive information, like credit card numbers and passwords.
 
@rlemon yeah, but you still have to know there's a steak behind the napkin
 
You will have dogs that see the napkin and lay back down.
You will have other dogs that see the napkin, and are like "But I smell fucking steak" then tear into the napkin.
 
Anybody want to play my jquery connect4 game?
 
multiplayer? or vs AI?
 
@FlorianMargaine Now I love reduce, thanks to you :
1
Q: JavaScript split string by regex

GeorgeI will have a string never long than 8 characters in length, e.g.: // represented as array to demonstrate multiple examples var strs = [ '11111111', '1RBN4', '12B5' ] When ran through a function, I would like all digit characters to be summed to return a final string: var strs...

 
connect4 vs ai doesn't sound like fun
 
local multiplayer xD
 
@dystroy veni, vidi, voti
I came, I saw, I voted
 
@TristanŠneider allow me to click anywhere in the column to drop the colour
 
7:21 PM
@rlemon was about to say that > <
 
having to select the exact (legal) square seems kinda stupid.
 
@JanDvorak suffragi ?
 
in the original game everything was 'dropped' down a slot.
 
yeah should def allow clicking of columns
 
try to mimic that
 
7:22 PM
I assumed it was supposed to work like a real Connect4, so first thing I did was click the colum
n
 
have an animation too
 
!!/tell dystroy google veni vidi vici
 
Yes I know, it was made in 2 boring nights, so it's not really good. :D
 
simple animation for dropping down too
 
7:22 PM
@TristanŠneider just that alone would be so much better.
then add audio
then connect it all up using socket.io and node.js
so I can play Loktar over here
 
yes, that is what i wanted to ask
 
should only take you like two more night.
 
multiplayer
 
@JanDvorak A request that can safely be made multiple times is called an "idempotent" request. An example of such a request is a GET request the homepage of a website.
 
2
Q: How to build a turn-based multiplayer "real time" server

jmosesmanI want to build a TCG for mobile devices that is multiplayer over the web (not local wifi or bluetooth). As a player plays cards I want the second player to see what is being played in "real time" (within a few seconds). Only one player can play at a time. Server requirements: 1) Continuously...

 
7:24 PM
@JanDvorak I know my latin citations (like any French guy) I just thought that maybe suffragi would be more correct in Latin
 
user1125394
@Esailija hehe what server is doing that..
 
A "non-idempotent" request is one that changes the server-state in some way. For example, buying something from an e-commerce website.
 
google "node.js multiplayer turn based" and you should get some nice tuts
 
oh. I thought you were seeking the origin
 
7:25 PM
function write_footer()
{
	// include javascript footer

	document.write("         </div>");
	document.write("      </div>");
	document.write("    </div>");
	document.write("  </div>");
	document.write(" </div>");
Ok
 
I will look into socket.io and node.js, expect to hear from me in a week. Still need to do a lot of things for my schoolmates.
 
@copy reminds me of the flying arrow emoticon animation
 
What's that
 
(o_o) <---<
 
user1596138
@copy WTF
 
7:27 PM
(o_o) <---<
(o_o) <---<
...
 
var parts = [
    '-_-',
    '┏',
    '┗',
    '┓',
    '┛',
    '(',
    ')',
    ' '],
  scenes = [
    15064,
    250763,
    157064,
    25064,
    15063],
  actives = scenes.slice(0),
  output = document.getElementById('output');

function make(scene) {
  var ret = '';
  scene.toString().split('').forEach(function (item) {
    ret += parts[item];
  });
  return ret;
}

function play() {
  if(actives.length === 0) {
    actives = scenes.slice(0);
  }
  output.textContent = make(actives.shift());
3
 
omg face move!
 
The tension
 
<--(x_x)
 
You're about to get hit with an arrow!
 
7:27 PM
Oh gawd
 
I left out some frames
 
user1596138
<--(x-x)--<
 
@Jhawinsss yeah... my arrow was way too short
Bullet: (]
 
user1125394
@powerc9000 what server type is snow.edu ?
 
user1596138
7:29 PM
!!s/arrow/****/
 
@Jhawinsss @Jhawinsss yeah... my **** was way too short (source)
 
@cx a slow one?
 
user1596138
Hehe....
 
+
 
-
 
user1125394
7:30 PM
Server:Apache, X-Powered-By:PHP/5.3.3 o that's why it send a .js in text/html
 
That's what I said right? slow :D
 
@Loktar man.. trying to figure out the best audio channels to listen to / sensitivity is a PITA
 
yeah
 
I would love to analyse the song before hand and pull out the most active channels but that would be SO slow
 
@asadz 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.
 
7:32 PM
Hey guys, is there an easy way to store data in a document.createElement('div') object? Like I've got this.pblock= this.document.createElement('div'); and I'd like to be able to store the string "60px" in this.pblock.variableproperty = "60px" is that possible?
 
hey @CapricaSix i have adobe question that i like to ask
 
also, when drawing circles, don't + where you should have - when fixing the centering.
 
I'm not getting help anywhere on this
 
LOADS OF FUN LATER!
 
lol
 
7:34 PM
@billmalarky why
 
@billmalarky look at data-* attributes
or wrap the element in a new object
 
@rlemon... but + defines a point while - defines a line...
 
@Michael I'm working with code that passes an element (div) object to an object function and I need to introduce some extra data to that object function.
 
user1125394
@billmalarky with js maybe?
 
function billQuery(elm, properties) {
    this.elm = elm;
    Object.extend(this, properties);
}
var q = new billQuery(document.getElementById('foo'), { propValue: '60px' });

q.elm.style.height = q.propValue;
or... use data-* attributes
 
7:36 PM
@billmalarky Adding a variable to an HTML element object smells bad to me.
 
@cx ? Yes this is in javascript
 
@KevinMurphy 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.
 
@Michael well what is the best alternative? I was thinking something sketchy like putting the data in the class property but that seems sketchy.
 
wrap it
custom properties are siblings of the elm, not children.
 
also redundant comment is redundant :P
@rlemon Okay. Let me think on how to do that for a se
*second
 
7:39 PM
yea I would wrap the HTML element and the variable together in a separate object
 
var myObject = {
  element: someDiv,
  prop1: 'foo',
  prop2: 'bar'
};
 
^
Separation of concerns 101
 
yep
 
but if you are doing this a lot make a function return this, pass in the properties you want to add and the element.
I need 3-6 numbers between 0 and 128.
GO!
wow.. I could have written a script to return this by now.
 
0
64
11
 
7:42 PM
78
2
54
 
@Zirak You have mail.
 
stop
 
0 isn't between
 
HAMMERTIME!
 
54 will be included.
 
7:42 PM
@rlemon So right now in my master object prototype I am doing this.pblock= this.document.createElement('div'); in order to create the pblock div object, you are suggesting I create a new object in the prototype?
 
@sissonb It is if between means [)
 
@rlemon crowdsourcing, huh? ;)
 
@sissonb never specified inclusive or exclusive.
this.pobject = {
  pblock: div,
  prop: prop
}
but really the structure is upto you
 
user1596138
$('[id^=work]').remove()
 
however adding random properties to the Element prototype is bad
 
user1596138
7:44 PM
I wish.
 
!!> Math.random() * 95 + 5 | 0;
 
@rlemon usually between is exclusive and from is inclusive, right? :o
 
@rlemon 12
 
@rlemon Ahh this makes more sense. This is being done inside an initialization function in the prototype. This new object will be available to other this.functions that are outside the initialization function correct?
 
@billmalarky should be
	SENSITIVITY = 12;
var CHANNELS = [0, 64, 11, 78, 2, 54];
 
user2157210
7:46 PM
good evening
 
positions are random (for now)
 
!!c>[1..6].map(->Math.random()*128|0)
 
@JanDvorak [0.8245962211384635,0.7446800553384573,0.1230041200741886,0.7276214780790431,0.‌​5548057802412175,0.9538264481829802]
@JanDvorak [0.674040445165388,0.03909200661407408,0.3645166116070312,0.06060735825624697,0‌​.3300880860141916,0.5674295562053308]
 
:-(
 
@JanDvorak [97,93,47,16,58,115]
 
7:49 PM
@rlemon ^
 
@rlemon Ok cool. BTW you may recall me coming on here a week or so ago and asking you how to send binary image data to a remote website via ajax. You suggested creating a canvas object, loading in an image from the page and then sending the data to the remote website with toDataURL(). Would have been genius but for some reason toDataURL() has a security feature where once an image has been loaded into it you can't use toDataURL to send it somewhere :P
 
@rlemon why you no account for radius in outer wall collision?
 
@JanDvorak I need to add an interface allowing you to change them
@Shmiddty was lazy when I wrote that code.
it's in the midst of 'cleanup'
i'll get there
@billmalarky you cannot do stuff with cross domain images.
I assume this is your issue
ohh god. I FINALLY found the bug thats been bothering me since last night.
 
@rlemon It wasn't really a cross domain image, because the javascript was being run on the same page that contained the image so same domain. but once you've loaded a canvas object with an image, you can't send it via toDataURL().
 
defined the var, forgot to set it.
@billmalarky dude.... what do you think I do here: beta.lemonmeme.com
 
7:53 PM
So I guess you can't do cross domain toDataURL() with a canvas that has been loaded with an image or something.
 
function generate_meme(e) {
	$('#spinner-generate').show();
	var dataURL = canvas.toDataURL("image/png").split(',')[1];
	$.ajax({
		url: 'http://api.imgur.com/2/upload.json',
		type: 'POST',
		data: {
			type: 'base64',
			key: api_key.val(),
			image: dataURL
		},
		dataType: 'json'
	}).success(image_uploaded).error(image_upload_failed);
	e.preventDefault();
	return false;
}
 
@cx sorry was working on something they use PHP
 
@rlemon it says "alpha2"
 
user1596138
@billmalarky You can't do anything cross-domain with AJAX...
 
7:55 PM
@Jhawinsss It appears that rlemon is able to though.
 
@Michael long story
 
user1596138
@billmalarky What makes you say that.
 
had a slightly more updated version on my server
 
@rlemon Also, "Reset All" doesn't do anything
 
nuked my server
this is an older backup
 
7:56 PM
@Gacnt nice
 
oh ok
 
the entire thing is being re-written. and is clearly not final... so reporting small little bugs like "this button does nothing" probably isn't helpful.
just saying
 
@Jhawinsss Isn't he creating an a canvas object and then sending the data to imgur.com with ajax here? beta.lemonmeme.com
 
however, suggestions on features! that I can do
I'm not sending any canvas stuff.
 
@Gacnt around 2:00 it sounds like they're playing with time-reversed samples
 
7:58 PM
I'm generating the base64 data then sending a string
 
user1596138
@billmalarky I don't even have to look to tell you he's not using AJAX to send anything cross-domain.
 
@rlemon But you are doing that with ajax no?
 
yea
but i'm not sending any canvas / images
just strings
if the image you are pulling is cross domain this won't work
 
despite all of the nonsense that happened earlier, im proud to say, GOT IT!: demcode.3eeweb.com
 
because you cannot generate the dataurl from tainted canvases
 
user1596138
7:59 PM
Fuck it I don't care...
 
@rlemon What do you mean tainted canvases?
 
@Jhawinsss it's not even that
you need to work with canvas more to understand.
 
@Jhawinsss Well what is he doing then?
 
user1596138
@rlemon True!!
 
@billmalarky tainted = a cross-domain resource touched it
 
user1596138
7:59 PM
@billmalarky Why the fuck would you ask me.
 

« first day (969 days earlier)      last day (3996 days later) »