« first day (946 days earlier)      last day (4006 days later) » 

12:02 AM
!!/undo
 
I have a question
Im trying to add a autocomplete function for a iphone app using javascript, im testing some stuff on the computer, it works on most sites but on 1 site it doesnt work fully. i do javascript:document.getElementsByTagName('input')[1].value='value', on webs.com/#signin it doesnt work, but if i do a alert of the value, it does the correct value? Is there a reason it wont set though?
 
12:22 AM
@SomeKittens, don't think so, why's that?
 
@phenomnomnominal Playing Minecraft with one of their team
They're NZ
 
Oh cute
Yeah NZ is small, but not that small
 
worth a shot
NZ has half as many people as SF
 
php is bad
 
12:55 AM
hey all. Can anyone show me an example of sending info from a variable into a text box? Dumb question, I know.
I'm making a site that generates code, and I want to press go and dump all of the choices into the text box.
 
1:33 AM
0
Q: Base64 decode and SH1 decryption of Sec-WebSocket-Accept value example from Websocket RFC

TemporaryNickNameI am planning to implement the Websocket protocol and currently learning how headers are look like. According to this link http://datatracker.ietf.org/doc/rfc6455/?include_text=1 To prove that the handshake was received, the server has to take two pieces of information and combine them to f...

 
 
1 hour later…
3:04 AM
@rlemon 404'd
 
Sweet. Is that the pump I'm hearing? It adds a great ambiance.
 
 
1 hour later…
4:24 AM
Ended up with this puppy
 
> Any intelligent fool can make things bigger, more complex, and more violent. It takes a touch of genius — and a lot of courage — to move in the opposite direction. — Albert Einstein
 
@XCritics neato
 
I still haven't figured out how to buy and download music on android :P
 
4:44 AM
play music ?
they say they are itunes compatible
 
Like if I bought stuff on iTunes I can download it to play? musix
 
Solution: Don't buy stuff on iTunes
 
Im just going to have to wait till I'm home and use Beatport Like normal
 
@SomeKittens iTunes is much bigger :P
 
Bigger than BitTorrent?
 
4:58 AM
Its legit :P
btw play store atm has free unlimited music for a month so have fun :D
 
90% of music I listen to is from Pandora anyway
other 10% is YouTube
 
lol
90% of the music i listen to is Youtube 10% is on my HDD
 
Hello Everyone!
 
I'm about 50% iPod 50% records :P
 
@phenomnomnominal HIPSTER
@Veekay GREETINGS.
 
5:03 AM
It's bad bro
 
HELP ME MY CAPS LOCK IS STUCK.
 
I go around telling people how much better it sounds
@AmaanCheval, 36 each on Project Euler
 
@SomeKittens Pour water on the keys and it will go away, promise! :)
 
@Veekay but my brand-new laptop!
 
@SomeKittens hehe
 
5:10 AM
!!s/my/my company's/
 
@SomeKittens @Veekay but my company's brand-new laptop! (source)
 
@CapricaSix and @SomeKittens then, Turn your keyboard upside down and shake it every time!
LOL
 
@Darkyen I must have the wrong Google music or something
 
@SomeKittens use the onscreen keyboard
argh :[
!!/geolocation XCritics
 
@Darkyen Command geolocation does not exist.
 
5:20 AM
oh bot with a new name ?
 
!!/learn ipLookup "$0 has an IP address of 34.58.265.88"
 
@SomeKittens Command iplookup learned
 
!!/ipLookup Darkyen
 
@SomeKittens Darkyen has an IP address of 34.58.265.88
 
That's not even valid :P
 
5:25 AM
:P
!!/forget ipLookup
 
@Darkyen Command iplookup forgotten.
 
!!/learn ipLookup "$0 has an IP address of 127.0.0.1"
 
@Darkyen Command iplookup learned
 
:D
!!/ipLookup Darkyen <- this is betaar
 
@Darkyen Darkyen has an IP address of 127.0.0.1
@Darkyen Darkyen <- this is betaar has an IP address of 127.0.0.1
 
5:31 AM
!!/learn meaw "@SomeKittens you were called"
 
@Darkyen Command meaw learned
 
!!/meaw
 
@Darkyen @SomeKittens you were called
 
@phenomnomnominal kinda the point
Do something like:
!!/ipLookup whitehouse.gov
!!/ipLookup zirak
 
@SomeKittens whitehouse.gov has an IP address of 127.0.0.1
@SomeKittens zirak has an IP address of 127.0.0.1
 
5:32 AM
@SomeKittens ;-) now its legit and troll at the same time ?
 
Now everyone knows it's localhost
the old one looked legit at first glance
(unlike Iron Man 3... grrr....)
IT'S NOT THAT HARD!
 
haha they're super secret SHIELD ips :)
 
They could have used the IPs for the Iron Man 3 or Marvel sites
 
OOP stands for "Oh Oh! Poop!"
 
5:58 AM
C++ is Procedural Oh! Oh! Poop!... Or, for short, P.O.O.P. Does that make P.O.O.P a recursive acronym?
 
@AmaanCheval 38 :P
@AmaanCheval 39 :D
 
6:32 AM
Anyone here decent with C#? The C# room is pretty much dead and I have a question about generators and parallelization.
 
I don't consider myself an expert, but the classes bored me... which is probably an indication that I'm fairly good at it.
Ask away. If I can answer, I will.
 
anyone else here super lazy like me so can't get bothered to pass JSON serialised (models) template data and manually put those data through Javascript instead of sending the whole template HTML from server?
 
7:01 AM
@TemporaryNickName that's just you using Java
@undefinedbehaviour Sorry, just saw your message I asked in the C# room
in C#, 22 mins ago, by Benjamin Gruenbaum
I currently have a generator method that returns an IEnumerable of URL strings, the problem is it's very slow. I'd like to either change the actual grabbing of URLs to work with async methods or with PLINQ but I want to keep the same interface
 
> There are two ways of constructing a software design: One way is to make it so simple that there are obviously no deficiencies and the other way is to make it so complicated that there are no obvious deficiencies. [C.A.R. Hoare]
 
7:33 AM
@phenomnomnominal ?
@BenjaminGruenbaum Ping kendallfry
and lemon
@rlemon you are needed
 
@Darkyen projecteuler
 
@phenomnomnominal duh ?
fuk ?
 
oh not for me Me.maths === STACK_OVERFLOW
btw i actually tried to write a code to catch a stackoverflow and seg-fault and still function but it lied to me and the VM itself crashed :[
bleh i needa learn computers more :'(
 
0
Q: Why can't I bind events to the elements in a namespace?

Romantic ElectronI have the following code and I want to listen to a mouseclick event but nothing will happen in this case why? function Obj(tag){ this.el=document.createElementNS("http://www.w3.org/1998/Math/MathML",tag); this.el.appendChild(document.createTextNode("cccc")); this.el.onclick=function(){ ...

@Darkyen @CapricaSix @phenomnomnominal any idea?
 
7:40 AM
@RomanticElectron, bro, don't ping randomly.
 
ok i m sorry
 
@RomanticElectron Caprica Six is the bot
 
@Darkyen shez not i know,she was asking some questions yesterday
 
yes she is.
!!are you a bot?
 
@phenomnomnominal Not at all
 
7:44 AM
!!/norris
 
@phenomnomnominal The Manhattan Project was not intended to create nuclear weapons, it was meant to recreate the destructive power in a Chuck Norris Roundhouse Kick. They didn't even come close.
A horse walks into a bar. The bartender asks, "Why the long face?" The horse, incapable of understanding English, shits on the floor and leaves
 
hi
helo
 
whats goin on here
:D
 
@OctavianDamiean Yep, I enjoyed it. I will try and get a game going with you one night next week :)
 
8:02 AM
@phenomnomnominal :(
 
@AmaanCheval bring it :P
 
8:35 AM
16 messages moved to Trash can
@deep there is a sandbox room if you want to play :)
 
soz
 
@Gal 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.
 
is google analytics not working for everyone else?
 
Tabs are better than spaces
 
8:49 AM
Then why isn't it called the International Tab Station?
2
 
@phenomnomnominal works for me
 
won't let me sign in
 
hello
someone, who uses grunt, does know what the tilde (~) means in the version of the grunt plugins?
 
@phenomnomnominal That's because you suck.
 
@FizzyTea I love this argument.
 
9:04 AM
@FlorianMargaine LOL
 
@Bruno it's not related to grunt, but to npm. npmjs.org/doc/json.html#Tilde-Version-Ranges
 
Heh, it's as good as any.
 
Sex :D /// the end of all arguments that go wrong :D
 
@CapricaSix I know you are a bot, but that's really offensive!
 
@Gordon oh shes not that offensive :P there is worse to come
!!/help
 
9:05 AM
@Darkyen Command hep does not exist. Did you mean: help, hey
 
@AmaanCheval jealous!
 
!!help
 
@phenomnomnominal NO
 
@Darkyen That's one way to get good grades I suppose.
 
9:06 AM
Why would I be jealous? There's nothing to be jealous of
 
@FizzyTea if you are female..maybe if male :-( no
 
@Darkyen All theories require testing :-)
 
@FlorianMargaine Thanks...
 
I AM NOT VOLUNTEERING
i am committed and loyal to a girl
 
@Darkyen You have no scientific curiosity.
 
9:08 AM
@Darkyen "Tabs are better than spaces" is the Klaatu Verata Nektu of programming!
 
@Gordon i use tabs all the time
except when i code in python
Thats the only reason my spacebar has survived this far
 
@Darkyen heretic! :D
burn the witch!!
 
!!/define heretic
 
@Darkyen No definition found
@Darkyen heretic Someone who, in the opinion of others, believes contrary to the fundamental tenets of a religion he claims to belong to.
 
pours petrol on self
passes the torch to @Gordon
 
9:11 AM
@Darkyen nah. can't do that. not even virtually.
 
@Darkyen you know, most editors allow you to press tab and make 4 spaces.
 
@FlorianMargaine yes...
but 4 spaces = 4x more filesize :P
 
hmm
that's probably the most stupid argument
 
lol it is :P , thats why ":P" trailing
bleh i just like to use the tab
 
23 mins ago, by FizzyTea
Then why isn't it called the International Tab Station?
 
9:12 AM
depends from people to people and you already know how horibbly i type like a man with only one finger at right
idk why i use tab... why not use tab btw ?
 
I guys. I'm having trouble with images. I'm using bootstrap image loader that embedded the image in my html code as <img style="max-height: 150px;" src="data:image/jpeg;base64,....... > After image is loaded, I need to save it in mysql. How can I perform this?
 
o_O
DAAAAAAAAAAA ?
well um , err um you wanna save what to mysql ?
the event that the IMAGE has been loaded ?
or the whole image itself ?
//PS

imgElement.onload = function(){
 /* use this and send server a message that the image is loaded */
 /* for more see xhr spec */
 /* By the way this === your image element in here so if you want to get,
     image element's src you can do this.src */
}
 
I don't think that's what he wants...
 
@Darkyen I have my image embedded in html code in base64, inside the tag <img src="data:image/jpeg;base64,....... " > Now, I want get this image and save it in mysql database.
 
but I don't know what he does though.
 
9:24 AM
There's always a better solution than a regular expression but the regex one will make you look smarter
 
9:36 AM
@AmaanCheval, pffft, you haven't even done 11
 
Yeah, I was confused about how I wanted to organize the data
It's easy enough to brute force
 
what are you guys talking about?
 
9:56 AM
@AmaanCheval 40
 
@phenomnomnominal Go away!
 
10:16 AM
NEED DECISION: Which Cross-Platform Mobile development environment to use?
Same Code - All Platforms, which IDE ?
0
Q: DECISION: Which Cross-Platform Mobile development environment to use?

Eng MohamedI've been researching the various IDEs and environments by which I can deploy my code to most if not all platforms i.e. deploy app to iOS, Android, Windows Phone, Blackberry, Symbian, etc all from the same code base Here are all the environments that I found, along with the URL, the language, th...

 
> I (…) am rarely happier than when spending an entire day programming my computer to perform automatically a task that would otherwise take me a good ten seconds to do by hand. - Douglas Adams, Last Chance to See
 
@EngMohamed dude use vim
works everywhere!
and does most of the task
you might also wanna use command prompt or console with it :P
@Joseph82 you wanna save an image in base64 png in db ?
are you nuts ?
@FlorianMargaine can u think of any use case when in any horrifically horrible instance somebody would like to do that ?
 
kindly debrief
 
and it's not "horrible"
 
10:29 AM
it is horrible !
 
it's not.
 
why would you save an image as base64 in a db ?
the process of getting image now will happen with added latency of db :P
 
caching often gets rid of this issue
 
not to mention the size of db will explode as a side effect
@FlorianMargaine i wrote some part of server-side of an image sharing site at work here :P we usually save signatures using md5digest
and put the images on s3
 
which may not always be the best solution
 
10:31 AM
true
but saving a whole image in db
 
34
Q: Files - in the database or not?

Jack DouglasWhat is the best place for storing binary files that are related to data in your database? Should you: Store in the database with a blob Store on the filesystem with a link in the database Store in the filesystem but rename to a hash of the contents and store the hash on the database Something ...

 
sounds yuck!
 
I have 2 favorite questions on DBA
this one ^
and this one v
28
Q: What are the arguments against or for putting application logic in the database layer?

Phil LelloNOTE The audience of programmers.se and dba.se is different, and will have different viewpoints, so in this instance I think it's valid to duplicate What are the arguments against or for putting application logic in the database layer? on programmers.se. I couldn't find discussion on dba on this...

 
@FlorianMargaine i still am scared by the idea of storing whole files in db
 
10:34 AM
though the pointing to actual files sounds bettar
The size and the latency :-(
 
a db is another filesystem you can use
 
a kinda sorta slow one ?
 
size is the same as if you store it in the filesystem
nope, an optimized one for this sort of thing.
 
base64 > binary file [ try it ]
@FlorianMargaine really ?
 
BLOB fields are optimized for binary data, yes
 
10:36 AM
hmm needa read more about this but the idea makes me wonder wtf!
btw he still can use the img.onload and send the src of the img to the db and then save it as base64 string or convert it to binary and save it like that with some server side logic
 
or he can do it before on the server-side
we need to know how/what/why he's doing that before being able to answer...
 
> I have my image embedded in html code in base64, inside the tag <img src="data:image/jpeg;base64,....... " > Now, I want get this image and save it in mysql database.
sounds like hes confused
what he himself wants to do, @Joseph82 you read us?
 
WordPress is bread & butter for any decent website
 
10:53 AM
0
Q: k-means clustering visualization with HTML5

mooseI've created a HTML5 visualization of the k-means algorithm: Online version to try, latest version is on GitHub (this will be updated when I get feedback) It looks like this: Click to create new green dots. Ctrl+Click to create new blue dots. When the circle has exactly the same number of ...

 
11:08 AM
Oh, just noticed that I have a second answer getting closer to 100 up-votes! :)
 
There you go
 
You are most kind
Warframe already has a registered Zirak. Fuck me.
Why did past me have to pick a popular Kurdish name...
Should I even bother contacting them?
 
Someone registered Ralt on LoL. Who in their right mind uses this nickname?!
@Zirak lol that's some drupal
 
11:22 AM
@Zirak Warframe? YOU SAID YOU DIDN'T HAVE ANY TIME TO GAME
 
I don't
 
I absolutely love emacs when writing Python.
 
Hello, everyone
 
console.log fucking sucks
 
@OctavianDamiean How're your hands fairing with the commands?
 
11:26 AM
@phenomnomnominal there is a syntax error on line 1 - should be console.log('fucking sucks');
@phenomnomnominal am i right when saying someone has made a syntax highlighter for SO?
 
Yeah
 
Yes, it was me
 
@Zirak I'm getting used to, I'm not gonna lie, I do have a cheat sheet open in a tab but it's not as bad as I expected it to be.
 
@phenomnomnominal cool, where can i get it?
 
11:28 AM
SO, or this chat?
 
@phenomnomnominal this chat
 
You're talking to the creator of it. :)
 
@phenomnomnominal ?
I helped with it :)
 
Oh cool. :)
 
11:30 AM
it says the app canot be installed from this website, thats what chrome says
 
Me and Ben whipped it up for shits and giggles
 
I still use it
 
@Connor Download it, then go to Options → Tools → Extensions.
 
you need to download it then drag and drop into extensions
 
ok
 
11:31 AM
Then drag 'n drop the downloaded script into the window.
I use it too.
 
download the js file?
 
Yea
You guys should add it to StackApps
 
// ==UserScript==
// @name SOJSChatHighlight
// @description Syntax Highlighting for code in StackOverflow JS chatroom!
// @match chat.stackoverflow.com/rooms*
// @version 0.0.7
// ==/UserScript==

var main = function () {
  var css = ".pln{color:#000}.str{color:#0c0}.kwd{color:#00c}.com{color:#c00}.typ{color:#a0a}.lit{color:#0aa}.pun,.opn,.clo{color:#aa0}.tag{color:#00c}.atn{color:#a0a}.atv{color:#0c0}.dec,.var{color:#a0a}.fun{color:red}.message code, .message pre{background:#ffffff;border:1px solid #f6f6f6;border-radius:6px;padding:2px;}"
what do i do, save it as something.js?
 
Yea.
something.user.js
 
Thanks
 
11:34 AM
well i drop it in, it says drop to install, so i do, then it goes to the js file and doesnt install
 
You're welcome. I have no idea what for but yea.
 
its ok that thanks was for me
 
@Connor Are you in the extensions tab?
 
@OctavianDamiean yes it says drop to install, so i get the highlighter.js and drop it then it opens up file:///C:/Users/Connor/Desktop/highlight.js and doesnt install
 
11:40 AM
Hey, hope someone can help... I'm making a Spotify app and they use require to load modules
 
Try renaming it to highlighter.user.js
 
View is ok in the console
and init function is there
 
@AlexW Please format your code. Edit the message and hit Ctrl + K.
 
I did, nothing happened
 
!!/learn formatcode "Please format your code. Edit your message and hit Ctrl + K"
 
11:42 AM
@OctavianDamiean Could not process input. Error: Unexpected end of input: Expected " on line 1366 on column 98
@OctavianDamiean Command formatcode learned
 
I tried!
 
require([
    '$api/models',
    '$views/image#Image',
    'js/lib/three',
    'js/lib/keyboard-state',
    'js/lib/jquery',
    'js/lib/helvetiker_regular.typeface',
    'js/app/view#view',
], function(models, Image, THREE, THREEx, $, helvetiker, View) {
    console.log('doc ready');
    console.log(View);
    View.init();
});
 
thanks
so anyway, firing View.init() throws the error:

Uncaught TypeError: undefined is not a function
 
What's up with this horrible function signature? function(models, Image, THREE, THREEx, $, helvetiker, View)
 
11:45 AM
the point being
I use exports.view = View inside of js/app/view
 
@OctavianDamiean It's AMD, that's all the dependencies... that's standard
 
and yet the module is inaccessible
 
@BenjaminGruenbaum Oh my gosh, that's ugly.
 
ok you;re not familiar with require.js
 
@OctavianDamiean you're not supposeed to have that many dependencies in one place for no reason, also it's just the top of the file and once
@AlexW exports.view? I think maybe you're not familiar with require.js :)
 
11:46 AM
well actually thats how it all works
the Spotify demo app, and require.js use this
read the docs
 
show me your return statement?
Did you just tell me to read the requirejs docs o_0?
 
I'm just following the format given by Spotify
chill
 
Inside "js/app/view#view" , show me your return statement
 
Still cant get it working :(
 
@Connor Are you dropping it on the address bar?
Just drop it somewhere inside of the extension window.
 
11:48 AM
the Spotify demo app has no return statement
in their module
mine doesn't either
this all works perfectly in Chrome by the way
 
without require
 
That's not how require works
 
* the Spotify demo app has no return statement
 
You're defining var exports = {} right?
Then sticking stuff to it, like exports.init = ....
 
11:50 AM
 
@AlexW try adding return exports;
 
that sounds better
 
@Connor eh, I told you to rename it to something.user.js not to something.user.js.js
 
it has the object where I need it
 
That's right, but not really the issue if he doesn't have tampermonkey though
 
11:51 AM
it just can't execute the function
 
@BenjaminGruenbaum I don't need tampermonkey.
 
@OctavianDamiean Oh?
 
that was a accedent, i saved it as something.user.js not realising it was being saved as a js file not a all files file if you know what i saying
 
@AlexW Look, I feel a strong urge to tell you to read the fucking manual or read the fucking source code, both are very nicely written for require.js. It's very straightforward and just around 2000 lines of code iirc which is perfectly readable in an hour if you skim through it. However, I'm feeling nice today so let me put this clearly -
 
11:53 AM
its done now thanks
 
man whats your problem
 
im tryying it
 
@AlexW The way require.js knows what to export is by looking at the return value of your define call. If you're not returning your exports, it won't have access to them
 
@Connor Anyway, you gotta make sure it is .user.js then it works right away.
 
THEY ARE NOT USING REQUIRE full
 
11:53 AM
	var promoMessage = app.create({
		type: 'div',
		'class': 'heading heading1',
		id: 'promoMessage',
		content: 'Welcome',
		style: {
			fontFamily: 'arial',
			color: 'skyblue',
			textShadow: '0px 0px 3px #000',
			textAlign: 'center',
			fontSize: '60px'
		}
 
they're using some custom thing
 
COOL
	var promoMessage = app.create({
		type: 'div',
		'class': 'heading heading1',
		id: 'promoMessage',
		content: 'Welcome',
		style: {
			fontFamily: 'arial',
			color: 'skyblue',
			textShadow: '0px 0px 3px #000',
			textAlign: 'center',
			fontSize: '60px'
		}j
i like it
Thank you
 
@AlexW cool, so apperantly, this isn't working between us, read the manual, and the docs. Good luck.
 
you need to grow up
 
There, being nice I'll tell you to read this: blog.teamtreehouse.com/organize-your-code-with-requirejs it's very simple and to the point of how requirejs works, and it'll make you understand your problem which is simple and clear.
 
11:55 AM
No one here seems to deal with Spotify, so if they are idiots and doing all kinds of crap, you'll have to deal with them or probably ask on Stack Overflow.
 
How gay is that, Oblytile when making website links, its makes the whole link lower case
 

« first day (946 days earlier)      last day (4006 days later) »