« first day (1082 days earlier)      last day (4091 days later) » 

21:00
Yeah
Awesome, thanks
Everything else is a pointer, but they represent integers directly as an optimization
@Loktar Have you seen this?
lol yea
I think it crashed during restart :P
IT CROWD!
user1596138
21:05
@KendallFrey Yeah, that's what I was saying earlier, I've seen at least a dozen different versions of that meme today and yesterday.
If I add x5 = x5 + 1 - 1, that line is ok, but the newer line isn't.
It even marks them both as the same thing.
What if you change it to
main_tile = Main.tile[x5. y5];
main_tile_wall = main_tile.wall;
if (main_tile_wall == 62)
Just to remove any possibility of confusing it
Not my code
But eh, why not
user1596138
!!learn solution "<>http://chat.stackoverflow.com/transcript/message/12132646#12132646"
@Jhawins Command solution learned
user1596138
21:10
!!tell zirak solution
user1596138
That will fix your problem.
HAHAHAHHAA
user1596138
!!solution
I keep reading "Codementor" as "Co-dementor"
21:11
1 hour ago, by deep
document.write(eval(txtarea.value));
what the fuck
what the fuck indeed
Of course, that didn't solve it. But exchanging x5 = ... for x5 = 4 does fix it...
I call BS
Oh! I didn't add the Player class yet.
0
Q: HTML5 Canvas Parsing image into tileset while preserving transparency

saoyr5I'm trying to import a Tiled Map Editor JSON file into my HTML5 canvas game but I'm having trouble with separating out the tileset image into separate images while preserving the transparency. Currently I'm using a temporary canvas element and the getImageData() and putImageData() functions to g...

21:30
                                                                                                                            }
                                                                                                                        }
                                                                                                                    }
                                                                                                                }
                                                                                                            }
(see full text)
Pretty
user1596138
gfa
user1596138
Oops
user1596138
Why can't I trigger events when I press control or option or command?
Anyone's desk messier?
^_^
Yes
Check for the event argument first, then the global one.
user1596138
21:39
they trigger, just not when control is pressed on it's own. if i press it and another key it triggers?
@Jhawins what event are you binding to?
user1596138
I'm trying to change the command+click to register as control+click so I can select multiple messages. Because the real devs obviously don't care enough to fix 2 minute problems.
user1596138
FUCK IT.
I haven't vetted that code. YMMV.
21:42
WHAT EVENT ARE YOU BINDING TO?
click, mousedown, mouseup, doubleclick?
@Jhawins Then listen to clicks, you have e.ctrlKey or something like that
keypress
@JoeFrambach wtf, have you even looked at the code
// NETSCAPE 4 CODE
This is why I can't help people
21:44
Then get on TS
Octavian is starting to hit on me
@Zirak I tried
user1596138
8
Q: Chat move messages bug for Mac users

Raghav SoodAs a room owner on chat, you can move messages out of the room. To do this, we can click on the Room link in the sidebar and select Move Messages. This results in the following instructions: Now on a Mac, Shift-click works fine for selecting an entire set of consecutive messages. However, Ctr...

We'll give you a participant badge.
user1596138
Bounty. Maybe someone will spend the 5 minutes to fix this. Doubt it.
user1596138
Although it's been over a year, and it was bountied once already.
21:46
document.body.onclick = console.log.bind(console) and poke around
document.body.onkeydown = function(e){ if(e.which === ???) ???Down = true;}
user1596138
@Zirak I have been but I don't think I can spoof the browser this way. I think multi-selecting with control is deeper than window.
zzz
So, @Jhawins, you're trying to allow macs to use the command key for multiselect (for moving messages)?
@Shmiddty I miss your voice ;-;
user1596138
That was my idea, but I really don't think it's going to be that easy.
21:50
@Jhawins What is the keycode for the command key?
user1596138
There should have been a clause for Macs when the chat system was made, because fucking duh.
onkeydown will fire for most, if not all, keys.
same with onkeyup
I'm not sure if there's a "commandKey" property on the event object for mac browsers.
user1596138
16
Q: jQuery key code for command key

CraigI have read jQuery Event Keypress: Which key was pressed? and How can i check if key is pressed during click event with jquery? However my question is if you can get the same key event for all browsers? Currently I know that Firefox gives the command button (Mac) the code 224 while Chrome and Sa...

user1596138
There's two of each of these keys, so why did Apple make one literally useless other than control+C.
so what's the problem with using event.metaKey and being done with it?
user1596138
22:01
Wait that'll work?
4
Q: What is the deal with returning empty functions for modularity?

RedsandroMore and more javascript has this modular approach where empty functions are returned. You can find it in the source of node.js. It's in the documentation of require.js. What does it do? define(['jquery'] , function ($) { return function() {}; }); If I would return an object, I would just ...

22:14
@Zirak creeper
I need someone to motivate me
Your voice is highly amusing
@Zirak Do your work or I kill a goat
Be sure to share the spoils
var chartID = new Date().getTime();
Is that going to come back and haunt me?
@jbolanos What are you using it for?
22:18
@jbolanos + new Date()
Date.now()
I'm saving charts to a json that gets sent to the database. When I make changes I need a unique identifier that the user can't modify
each profile can contain an unlimited number of charts. I need to be able to update each chart if they make changes to it
@jbolanos You can't rely on anything from the front-end, ever.
I tried to get the DBA to do something different - like each chart gets its only line in the DB with an ID - but he decided to just jam them all into one CLOB
@LuigiSaggese Why are you posting that here?
22:24
He wants downvotes
user1596138
I've tried telling her how to do it, but nothing is changing, she's just not tech s̶a̶v̶v̶y̶ competent.
user1596138
Email to boss about ridiculous co-worker.
You don't want to be that guy
I think he posted that in all the popular chat rooms lol
That Luigi guy
22:28
1 message moved to Trash can
...and he got 8 rep for spamming that.
wonderful
6 rep
4?
Boom, fuck you .NET, now running almost all of our build/test through grunt
Isn't it +10 / -2 ?
He's got +2/-3, so that would be +14 rep, right?
Seems like it
22:33
He had +1 before he posted it here
!!artisticpoop
!!undo
@SomeKittens TimeError: Could not reach 88mph
@rlemon What did people around say about it?
22:45
!!> o = [1,2,3,4,5,6,7,8,9]; o.map(o.map(a=>(b=>a*a*b*b)))
@Shmiddty "TypeError: o.map(...) is not a function"
@Shmiddty "TypeError: o.map(...) is not a function"
!!> o=[1,2,3,4,5,6,7,8,9]; o.map(o.map(function(a){return b=>a*a*b*b}))
@Shmiddty "TypeError: o.map(...) is not a function"
bullshit
oh, duh
derp moment.
@blueintegral 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.
22:52
@BadgerGirl mostly they told me to relax, don't force it. One guy offered some t.p.
But why did you do it?
@DanGarthwaite 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.
nature doesn't let you put her on hold. When she calls you answer her.
0
Q: Find duplicate blocks in 30+ files

Sorry-Im-a-N00bI have roughly 30+ similar websites that call javascript files that were identical at one point but have slowly been modified over the years. I would like to take all of the identical functions (across all 30 files) and put them in one JS file that gets called by all the pages, leaving only the c...

@rlemon And she sometimes calls collect.
22:55
My brother once was given the improv topic "When nature calls"
not in my country
His entire skit was a phone conversation with various woodland creatures
@SemicolonExpected 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.
He won.
grade 11 dramatic arts class I made up my own monolog on the way to class, stole "props" from lockers around me and went 20 minutes over. Aced it.
22:57
@rlemon Today I pooped.
... I was a 17 year old girl waiting for the buss telling my story of my father trying to teach me to drive.
@rlemon That was pre-op?
Wow that turned awful
home time
22:59
No that was post first op
@Shmiddty Then get on TS
I got confused in my twenties
The Department of Can Two People Marry Each Other
Someone has a rich imagination
My favorite is Mattress Tag Illegal Removal Response Team
The bear "problem" has been promoted to an "act of God" and therefore is beyond the scope of this system. Good luck.
23:30
It's fucking 2013, almost 2014, and Windows STILL doesn't come bundled with a fucking PDF viewer
Fucking christ
Q: I am confronted by a bear, how do I react? A: Use your bear spray, then call 911 and leave a voicemail.
@JoeFrambach: Windows also cannot mount ISO files natively.
fuuuuuck
@JoeFrambach But Windows does come with a groovy web browser!
The only thing I dont need them to provide
user1596138
23:35
Holy shit.
@JoeFrambach yes it does
user1596138
Silk Road got busted!!
its 2013 you should be using Windows 8
I didn't bother to download that one yet
user1596138
Go figure, the owner was in SF. @SomeKittens you live in the same town as the worlds biggest drug trafficker (by extension) for the last decade.
23:36
:P
Say uhm, I have a question. I bought a domain name, but right now, it's impossible for me to properly link it to my actual Web hosting, which my school provides.

Is it possible to completely mask the original URL and make it appear entirely as though people were browsing my purchased domain name? That would be done with JavaScript, I suppose.
ts actually annoying, its a metro app
so when you open a pdf it takes you out of the desktop
So... is it possible, or would I be losing my time if I tried?
into metro with the pdf fullscreened
user1596138
@Ariane Care to re-phrase that last part?
23:37
@Ariane no
you can do domain name forwarding (through the domain control panel)
however it will show where it forwards to
Ariane getting your own hosting is super cheap
user1596138
@Loktar very ambiguous.
$5/month at digitalocean
@Jhawins The Korean MMO? (sorry Loktar)
A CNAME record is an abbreviation for Canonical Name record and is a type of resource record in the Domain Name System (DNS) used to specify that a domain name uses the IP addresses of another domain, the "canonical" domain. This is convenient when running multiple services (like an FTP server and a webserver; each running on different ports) from a single IP address. You can, for example, point ftp.example.com and www.example.com to the A record example.com, which in turn points to the IP-address. Then, if you ever need to change the IP-address, you only have to change it in one place. ...
??
user1596138
23:38
@Zirak No. \
user1596138
!!wiki silk road (marketplace)
Silk Road was an online black market on the Deep Web. It was operated as a Tor hidden service, such that online users could browse it anonymously and securely without potential traffic monitoring. The website launched in February 2011; development began six months prior. Silk Road was an underground website or the eBay for drugs. On 2 October 2013, Silk Road was shut down by the FBI. Before it was shut down, buyers could register on Silk Road for free, but sellers had to purchase new accounts through auctions, a policy that was purportedly implemented to mitigate the possibility of ma...
@rlemon Most likely the forwarded address needs to be www.department.university.edu/~ariane
which CNAME can't do
I made the assumption you got your domain from godaddy
I don't know about you, but I don't support godaddy
23:40
its just hugely popular so I assumed his is there.. or maybe he said that?
or maybe I read it on a result lol
I have 2 names through godaddy currently, and like 90 or so through a reseller
which.. I think is a reseller for godaddy unfortunately
@Jhawins Uuuuuhum. Well uhm. There's going to be a portfolio on my school's website. And the URL is like techniquesmedia.com/11boucharda/portfolio, which is ugly. So I have ariweb.ca. But my school's host doesn't allow me to use a domain name to forward to my student account. I do have a free 10 MB hosting at AlwaysData, the one I got my domain from, so I can simply put a JS redirection there, but if I could make the URL stay the same, it'd be nice.
wah too much money to transfer them all though :?
@JoeFrambach Yeah, it can be cheap, but I'm poor beyond your imagination, so I really really appreciate the school's free hosting.
around $1400 to transfer them at $15 transfer fee per domain
You can host your html pages with your 10mb free, and pull in all your bigger assets (images, scripts, etc) from your school domain
23:42
host on github, use CNAME
that you can do
Or that, +1 for the github suggestion
ask @FlorianMargaine how
Or ask google
he does that for his blog currently I know
It's not that difficult
23:43
@JoeFrambach no! let him tell her!
makes him feel important..
haha ok
yeah github would be best
however you should use an A record :P
also they are both french. french connections ;) ;)
How would an A record help here?
for github
23:44
Uuuuuhm. I don't really know anything about Github, so I guess I'll wait for that person.
It would point www.ariane.ca to www.school.edu. A record don't care about paths
@Ariane great time to learn it
its not hard at all, download the app on the site to get started a bit easier
@Loktar I'll keep it in mind for in about a week, when I'll need to make an actually finished and touched-up portfolio. Right now I'm in a hurry to give something "decent" to the teacher by tomorrow morning, so. :p
ah well thats understandable
Ohey. Warning to everyone who would be tempted to try. It is impossible to make SVG images compatible with Internet Explorer 8 and below, or so I've discovered after trying different methods for about 6 hours. So just make PNG fallbacks.
23:48
?
really?
^ supports IE6 (via vml i believe)
Nope, that one doesn't work with SVG images (as in <img src="thing.svg" />), it has to be inline SVG. Or well maybe I'm mistaken but I did try left and right.
@Jhawins No suprise to anyone
Can IE8 render a svg in a canvas tag
Does ie8 even know what canvas is
anyone here know much about linux terminal aliases?
Does IE … no it doesn't
!!Can Connor ask whether he can ask about something?
23:52
@copy Probably
@Joe Nope. That's what I did for Android <3, but IE only does canvas from v9 onwards. And sadly it's still too soon to ditch IE8 because it's the latest version available for XP, and many (too many) people still use XP.
!!tell joe google caniuse canvas
@Connor ...some...
Thanks Conner but most times it's faster for someone else to type "yes" or "no",
23:53
@SomeKittens Basically i see a lot of articles that say you can use them like this get = 'apt-get'
@Connor ditch the spaces
alias agi='apt-get install'
@SomeKittens yeah yeah
sudo agi python-software-properties
i have
i did ditch the spaces, my aliases work, but it doesnt work with commands that require some name after it
@JoeFrambach no
23:55
Can you show what you have
Try "$@" rather than $1
(I'm trying to work on my psychic abilities)
@JoeFrambach you have to use a variable is it?
Please show your alias
 install='apt-get install'

« first day (1082 days earlier)      last day (4091 days later) »