« first day (319 days earlier)      last day (4630 days later) » 

7:00 PM
@JeffHodge if you want to get serious about software development I cant recommend anything more then :
 
:P i agree with that, I am terrible. But then again I havent doen much JS or web developement much, all I did before I started this was robotics
 
Yeah thats the defacto developer handbook for sure.
 
If you want to be a hardware engineer then just continue hacking away @ JS & PHP
 
i want robotics, software part and hardware (i dislike hardware but it much be done!)
 
7:01 PM
You do robotics. You get to make things like that ^
 
the job im currently at using php JS and html css etc but most the times I do robotics in C# or various other languages similar to C
 
@Raynos You luck quite different from what I imagined :D
 
Embedded C is where its at :P
@IvoWetzel :(
 
@Raynos i feel like puking that spider looks so weird....
 
@IvoWetzel I was going to say the same for you, but never did
 
7:03 PM
@Raynos MEant in a good way ;)
 
I expected you to look a lot more awesome
 
@Raynos Haha, well I fail in that respect quite terrible
 
@Raynos BURN
 
FFFFFFFf
 
also, I made a sentry gun aka turret, using the webcam from laptop shoots moving target with BB gun, working on a wall climbing robot, ill make a youtube video n post it here for seeing
 
7:04 PM
@RyanKinal NO U
 
@Raynos :-)
 
user748221
 
@BrandonBenvie why?
 
i hate centering divs -_- so much complication...
 
user748221
cause linking images is hard
 
7:05 PM
@JeffHodge Horizontal centering isn't bad. Vertical centering is a PITA
 
? margin: 0 auto ?
Yeah what @RyanKinal said.
 
@RyanKinal i finally got it all together, even the vertical, and now im asked to change the setup a bit to make the logo extend over the menu, which i have no idea how to start with so im breaking before i explode :P
 
Gnah
 
user748221
has anyone used defineProperty to attempt to implement operator overloading?
 
need put some of the US guys code onto dailywtf
and by some, I mean their entire codebase
discovered a 5 level deep loop, that creates new RegExp all over the place today :D
and it calls a bunch of N2 methods
Also... the usual nightmare of missing dependeny tracking
4(!) different versions of jQuery in the page
plus dojo
I don't remember whether we were crying, or laughing
 
7:09 PM
this is how it currently looks....
 
user1385191
(brace for impact)
 
Red alert!
 
:ducks for cover:
 
lauft
 
Number One, take a security team to deck 5! Oh wait
 
7:11 PM
:checks color of shirt:
 
user1385191
"who is number one?"
 
@Incognito You, mean "rennt" laufen = walking
 
@MattMcDonald !!!! Riker
 
@JeffHodge What am I looking at?
 
7:12 PM
1996 I believe
sorry that was mean :(
 
Is this a time machine to the 90s?
 
Except for the terrible "forms" styling, it's actually not that bad
 
its a webpage im trying to make for them, thats how they wanted it so i made it
 
No, @Loktar That's what we're all thinking :P
 
Not nearly as bad as some things I've seen
 
user748221
7:12 PM
Object.defineProperty(Object.prototype, "toValue", {
get: function(){return "[some number we can use to reference a data store]"},
set: function(x){ dataStore[this.id] = x}
})
 
@JeffHodge "My daughter came up with it, she's great at being artisitic" < Been there too brah.
 
@Incognito ROFL
 
My son is turning into quite the little artist, I hope he becomes awesome so I can exploit his talents in my endeavors.
 
user748221
{someComplexObject} + {someOtherObject} + {another}
 
user748221
and thus we've overloaded all operators which defer to toValue
 
7:14 PM
 
@BrandonBenvie you cant
 
thats how they want it
 
user748221
I'm saying you return a number from toValue
 
menu higher and logo longer..
 
@IvoWetzel ... BAN HAMMER!
@IvoWetzel find someone decent in america get him hired
you need a man on the inside
 
user748221
7:15 PM
but in some way that it's reversible for you to match the value to a complex object stored elsewhere
 
@RyanKinal Yeah, you're laughing, I'm doing my best to get them to change the dreadful design "coded" by someone who doesn't know anything outside of the WYSIWYG from his MacBookPro.
 
@JeffHodge I see your new to web development
That's not how web development works
When the client tells you "they want it like this" you tell them they have no style and you will make them something good instead
 
yeah actually this is my very first website :P
 
user748221
I try to make sure all my websites have a lot of rainbows on them
 
@BrandonBenvie what is toValue
 
user748221
7:17 PM
because I really like rainbows
 
If you don't have style, then tell them to hire a designer
 
do you mean valueOf ?
and toString
And I'll tell you now that overwriting those is evil
 
user748221
toValue is the function that will be called on a complex object when Javascript needs to get a primitive
 
user748221
errr
 
user748221
wow
 
7:18 PM
It basically means I cant re-use your code because your code breaks everything
 
user748221
well I already got past that
 
@Raynos id like to learn but all the developers in the team are on the 8th floor im on the 11th floor with QA and debugging people around
 
valueOf can't be overridden in all cases
 
user748221
I tackled that first github.com/Benvie/Safehouse
 
well, to be more exact
 
7:19 PM
@BrandonBenvie toValue isn't used in ES5
there is toJSON
 
user748221
which works wonderful
 
Why WOULD YOU over-ride the defaults?
 
overriding only is useful when you do '' + or something
 
user748221
er valueOf you mean, which I meant?
 
user748221
I'm vairly sure valueOf isn't going anywhere
 
7:19 PM
for example there's no way of making innerHTML = someObject work
even if you override toString and valueOf
 
@Incognito hacks
 
since innerHTML does not use those two :/
 
user748221
you can but I'm not even talking about that really
 
@BrandonBenvie valueOf exists :p
Overwriting toString and valueOf on Object.prototype deserves a punch in the face
 
user748221
7:21 PM
my goal is to come up with ideas to create a fluent way of interacting with a library or whatnot
 
user748221
yes listen
 
user748221
I'd be doing that part in a sandbox
 
Oh then it's cool
 
user748221
so it's not going to affect stuff outside my code
 
i try to center the div and this is what happens
 
7:21 PM
Do you need an <iframe> for the sandbox?
 
I've been doing some hacking with getter & setters
 
user748221
I did a lot of research on execution inside either the new snadbox stuff, or inside regular iframes
 
user748221
and it's press good
 
user748221
yeah
 
7:22 PM
to make Foo.x === Foo.x() for all intensive purposes
 
user1385191
floooooooooooooats
 
user748221
but it works great
 
user748221
yeah that's exacty one thign I was looking at
 
@MattMcDonald yeah it was using floats initially to make it all centered ill try removing them
 
user748221
a setter is a way of executing any function without parenthesis
 
user748221
7:22 PM
and outside normal execution contexts
 
a getter*
 
user748221
nono setter
 
user1385191
...?
 
@MattMcDonald Turns out Nazis invented the float. en.wikipedia.org/wiki/Floating_point#History
 
user748221
someObj.prop = x
 
7:23 PM
Ugh, your going to be left with painful to read code
 
user1385191
a setter is a wrapper for access to write a private property
 
user748221
a setter allows you to execute a function by using an equal sign
 
user748221
look at it that way
 
user1385191
then you use a getter to grab it
 
user748221
I'm talking about not using it the way it's intended
 
7:24 PM
well its a nice concept
 
user748221
also you can do this
 
for seperations of commands and getters
command query seperation
 
i removed the float and now thats what i got
 
setters take data, mutate state and return void. Where as getters dont mutate state and return data
 
user748221
Object.defineProperty(obj, name{ get: function(){return function(x){//this is now a setter/getter frakenstein})
 
7:25 PM
it was hard enough putting that menu column beside that "other" stuff
 
@JeffHodge I highly recommend you remove the wordart fonts and get some real fonts
 
user1385191
well, it looks like we have our new Error-Error-Error
 
user1385191
oh goody
 
user748221
7:26 PM
well my higher goal is to overload operators
 
user748221
the rest of this is just screwing around
 
@BrandonBenvie btw whats your strategy for IE8 support?
 
user748221
I want to be able to add say three SVG circles together
 
user748221
and return a new circle
 
circle["+"](circle)["+"](circle)
 
user748221
7:27 PM
I was starting from the point of SVG stuff which automatically limits me to browsers which support the rest of this
 
How hard was that? :P
 
@Raynos Pain
Ahhhhhhhhhhhhhhhhhhhhhhhhhhh my eyes
 
@IvoWetzel at least its not unicode!
 
user748221
I'm just experimenting
 
user748221
to see what can be done
 
7:28 PM
SomeObject["©"]()
 
user748221
you want to see unicode
 
Tony the Pony
He comes
 
user748221
 
@IvoWetzel is this an injoke?
 
user748221
I like to play with stuff and see what I can twist things to do
 
7:29 PM
@BrandonBenvie do you unicode just "for the lulz" ?
 
@Raynos ...
Where's kitten? :(
 
user748221
I used it in that case to make javascript which could easily dynamically parse the functionality provided by the css module
 
@Raynos Zalgo won't like this
 
@BrandonBenvie I personally says no because its a pain in the ass to read
@IvoWetzel Y U IN JOKE
 
user748221
7:30 PM
it's not good for distribution simply because most people don't use fonts that have unicode support in their editors
 
user748221
but I do and it's more readable in those cases
 
@Raynos what... that's a pretty big in joke if even I got it.
 
user748221
the name describes itself
 
Anyone knows how to trigger these "eggs" here?
 
0
Q: Why Isn't Google Closure More Popular?

Matt PSo, Google released this sweet little framework a year or two ago called Closure. There hasn't been much adoption (other than playing w/ the compiler's advanced compile feature ;) and I'm curious as to why. Is it because of the initial overhead to setup and integrate Closure in to your build? Is...

 
7:31 PM
Tony the pony ^
 
user748221
Google.I.Love.To.Namespace.Things.Really.A.Lot
 
ggs.Cthulu=function(o){Eggs.Cthulu.running=false;if(o.search(/<[^>]*\[\^[^\]]*>.*\]/)!=-1){Eggs.Cthulu.running=true;(function(){function z(){for(var v=Math.random()-0.7,j="",f=0;f<v;f+=0.15)j+="&#"+(768+Math.round(Math.random()*95))+";";return j}if(!Eggs.Cthulu.Functions){var c=[];Eggs.Cthulu.Functions={};var A=["The <center> cannot hold it is too late.","You can't parse [X]HTML with regex.","Regex is not a tool that can be used to correctly parse HTML.","The use of regex will not allow you to consume HTML.",
Wonder how to trigger this
ahhh what was that?
Strange Unicode just wandered around my screen
 
@IvoWetzel a ghost
 
user748221
▁ ▂ ▃ ▄ ▅ ▆ ▇ █
 
the stuff is disabled by default
 
7:35 PM
@IvoWetzel enter what looks like a regex to parse HTML into the text box
 
go into the console and set Eggs.Cthulu.running = true
/\<div\>foo<\/div>
 
/<[^>]/
 
/<[^>]*[\^[^]]*>.*]/
 
mine worked
 
/<[^>]/
ahhh
 
user1385191
7:36 PM
<[^>]*[\^[^]]*>.*]
 
It amuses me every so often when somebody stumbles across that.
 
what r u guys doing?
 
That wasn't here 6 months ago :P
 
@Neal Try it... copy/paste @IvoWetzel's regex
 
user1385191
1 message moved to Sandbox
 
7:37 PM
@IvoWetzel Sure it was
 
@IvoWetzel I'm pretty sure it was, actually
 
@RyanKinal where?
 
@Neal Into the chat
And then send it
 
AMH
@al any help in my question stackoverflow.com/questions/7126513/…
 
@RyanKinal what regex....
 
AMH
7:37 PM
please any help
 
/<[^>]/
 
/<[^>]/
 
wth
/<[^>]/
 
oh god
it doesn't stop
 
when did that get added to chat?
/<[^>]*[\^[^]]*>.*]/
 
7:38 PM
@Neal A long, long time ago, in a galaxy far, far away
The moral of the story, of course, is that you can't parse HTML with regex
Or, more specifically, you can't lex/tokenize HTML with regex
 
AMH
0
Q: call webservice functon using javascript and HTML5

AMHI have a web service that contain function return array of bits I want to use javascript and html5 to draw this array of bits in imagebox for example , the array of bits form image any suggestion Best regards

 
user748221
one day everyone will have unicode everywhere
 
user748221
and I will be unstoppable
 
@RyanKinal you mean HTML is not a chomsky type 3 language
@BrandonBenvie one day you will be hanged for this
 
user748221
my regret is that javascript doesn't have the same rules for literals that css does for class names
 
7:42 PM
@Raynos Indeed! It does not have a context-free grammar!
 
Would anyone mind answering a jQgrid question. I'm having a little trouble with the documentation
 
Related: I miss my languages class... it was a damn good time
 
AMH
@BrianL @BrandonBenvie @RyanKinal @Raynos any help please
 
user748221
♥ = function(☽, ⁇) {return typeOf ☽ == "☄" ? ✪ : ☺ }
 
user748221
wait what
 
user748221
7:44 PM
oh jqgruid
 
user748221
haven't used it but I can read it
 
user748221
link?
 
@BrandonBenvie trirand.com/jqgridwiki/doku.php?id=wiki:inline_editing I'm trying to do inline editing and I have my <input> fields created, but when I press [Enter] I'm not seeing data submitted to the server
 
@AMH NO U
 
user748221
do you have the thing up somewhere I can see? Cause that could be a thousand things
 
user748221
7:47 PM
unless you have a specific question
 
AMH
@Raynos ok thanks a lot
@ircmaxell any idea
 
user1385191
NOISE
 
@BrandonBenvie Let me see if I can throw it up on JSFiddle
 
no
 
user748221
I pursue a lot of nefarious subversions of programming in pursuit of the goal of painting the world in rainbows
 
7:51 PM
Is there some kind of tool that take all my CSS and in-lines it automatically to some HTML?
 
@AMH Is your "array of bits" an actual image, or just an array of on/off pixels? i.e. is it a jpeg/bmp/png, or just pixels?
@Incognito Y U INLINE
 
AMH
@RyanKinal just pixels
 
Whoa, sorry, channeled @Raynos there for a second
 
@RyanKinal I don't inline, but I actually need to inline.
 
user748221
I'm setting up an implementation of Chromium Embedded Framework where everything is bound to javascript interfaces, and then I'm going to use that and SVG and node to create self-replicating rainbows that hob from computer to computer
 
7:52 PM
I have a legitimate need to inline all of my CSS rules into the elements.
 
AMH
and I want to draw in control that can handel mouse events
 
And I want to kill the fscking email clients of the world for this bs.
 
user748221
oh your css won't work anyway then
 
user748221
hah
 
@BrandonBenvie It works when you inline it.
 
user748221
7:53 PM
not if they're outlook anyway
 
And it works in outlook fine.
It's done, it works in outlook, I'm trying to make it work in gmail, which strips the style tags.
 
user748221
which ;)
 
user748221
considering they all use different, progressively worse renderers between 2003 and 2010
 
user748221
hmm inline css
 
user748221
oh i have an idea
 
user748221
7:55 PM
github.com/Box9/jss might be a good starting spot
 
user748221
you can resolve backwards what rules apply to what elements and factor in css specifity
 
user748221
at least I think you can with that one...
 
@Incognito Y U INLINE
 
@AMH what does the data look like? Just x/y of pixel locations?
 
AMH
7:56 PM
@RyanKinal can I handle the mouse event on div
 
user748221
if not try brothercake.com/site/resources/scripts/cssutilities which is one of the more complete libraries I've found for that type of css stuff
 
@Incognito Consider using MailChimp Email templates
 
@Raynos Because I have to raynos. You actually need to inline.
 
AMH
@Loktar it's pixel data array
 
@Incognito Y U EMAIL
 
7:57 PM
@RyanKinal I'm using mailchim email templates :P.
@Raynos Because we have to send emails.
 
@Incognito Oh. Well crap.
 
@Incognito Y U NO SEND POST PIDGEONS
 
so like [0,0],[10,10]?
 
I'm out of ideas
 
@BrandonBenvie Here's the JSFiddle : jsfiddle.net/brilong87/Db37j - All that really should matter is line #84 where I call $el.jqGrid('editRow', rowid, true);
 
7:57 PM
super easy to do that with canvas
 
There should be a law where your legally allowed to use post pidgeons instead of email
 
@AMH ... yes. You can handle mouse events on divs.
 
since you mentioned html5
 
@Raynos RFC 2549 is only a pipe dream.
 
AMH
@Loktar no [1,0,0,1,..]
 
7:58 PM
ahh i see.
 
user748221
if you're inlining css in a non-live environment for future use in one you have to have something than can factor css specificity in to make sure the write properties (when there are competing ones) ultimately gets applies
 
AMH
@RyanKinal can u give me example or update that example , allso how to call webservice using javascript
 
user748221
ok looking now amh
 
user1385191
105 lines of code just to invoke a jQuery plugin?
 
user1385191
head explodes
 
user748221
7:59 PM
so I'm guessing the outcome of this is what you're saying
 
user748221
AKA nothing
 
I would choose canvas over divs, but Im a fanboy.
 
user748221
lemme look
 
@Loktar Divs were quicker :-D
(And that's the SO way)
 

« first day (319 days earlier)      last day (4630 days later) »