« first day (1489 days earlier)      last day (3445 days later) » 

7:02 PM
@rlemon The belt is vaporware, I'm talking about Paranoia
 
@SomeKittens I know. I'm just reminded because you posted another 'indy' thing
@Loktar @SomeKittens youtube.com/watch?v=sEYpzif_nwY
 
!!neat
 
@Loktar your kids might enjoy it
 
hooray, someone found me some fun for the day
Wed Nov 12 00:04:30.610 [conn174474] query db_db.coll query: { $query: {}, $orderby: { id: -1 } } ntoreturn:1 <...>nscanned:96392 scanAndOrder:1 keyUpdates:0 numYields: 20355 locks(micros) r:47531946429 nreturned:1 reslen:303045 25355580ms
 
7:15 PM
0
Q: Ignore capital and small initial letters

InteraI would like to set that the use of capital and small initial letters should be ignored in this search script. So if I write "hello" or "HEllo" ... it should bring the same results. Here is the script: <input type="text" class="boxformal boxformal-cf" placeholder="Diese Seite durchsuchen ..." o...

Suddenly I realize readability is indeed an issue.
 
7:29 PM
> Married Couple Frustrated After Months Of Unsuccessfully Trying To Sell A Baby
One word. One bloody word.
 
lol
 
Need good song suggestions for deploying to master
 
she'll be commin around the mountain when she comes
haha :P
 
Hey everybody -- in this case I know what I don't know -- if I'm trying to collect DOM elements (using getElementsByClassName) for persistent storage (for mass deletion and later re-insertion), what should I be searching for? Any combination of 'javascript' and 'persistent' just comes up with persistence.js and other node.js stuff
 
@SeanAllred 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:36 PM
@SeanAllred goo.gl/taIqf <- Give that a quick read, and then we'll proceed
 
@SeanAllred - querySelectorAll > getElementsByClassName
@SeanAllred - you probably want to use appendChild, insertBefore, and insertAfter
 
@CapricaSix I'm assuming you're a bot (or someone with a lot of hotkeys...), but I did read the rules. Nice unicorn, by the way. - You must login to post - retry / edit / cancel
@SomeKittens I'm very familiar with the XY problem -- it's a real menace on TeX.SX (where I live) - You must login to post - retry / edit / cancel
But if you think I should explain the problem a bit more, I'll ask a proper Q. I just don't want to vampire you all :) - You must login to post - retry / edit / cancel
... are my chat messages coming in? ... going to refresh the page..... - You must login to post - retry
Sorry about all that business.
@TravisJ I'll look into the methods you give; thanks. Haven't had any courses on this and (sortof) need it for my job; we aren't a web shop. Gotta learn quick ;)
 
@SeanAllred - just google for them and add the acronym MDN (Mozilla Developer's Network)
 
@SeanAllred yes I am a bot. I post the welcome message to everyone when they make their first post in this room. Sorry if it Rustled your jimmies.
 
lot of good information available there
 
7:40 PM
@CapricaSix No jimmies rustled :)
@TravisJ Seriously -- thanks. :) It looks like a fantastic resource. A lot better than w3schools....
I get the feeling that place is like a dirty word 'round these parts
 
@SeanAllred how persistent is this storage need to be?
 
It kind of is :)
 
do you need to store listeners for the elements as well? or just the elements? children? attributes?
 
@SeanAllred My question: Why can't you use a framework like Angular?
 
Just per session. If the page reloads, the DOM should just repopulate with what's on-disk. I imagine that's default behavior; I haven't noted anything that would suggest otherwise
 
7:42 PM
I'm still not fully understanding the requirements :/ is this dynamic user created content?
or static HTML?
 
@rlemon - wb!
 
ty
 
I missed u, it was ded in here lol
 
I am going to be back, less chatty, more professional. no room for mis-interpretation
 
@SomeKittens It's complicated, but I'm making this thing for a truly awful version control system we use at work. It's a government contract and the tech we use is pretty... incumbent. There is one special file in the repository that is used as a template for bug reports (`%author%, etc.), so I'm mapping those to variables within the JS and inserting them in spans.
 
7:43 PM
no more 2K messages a day :/
 
aww
 
@SomeKittens It's all on a classified network, so I do not have access to a CDN or anything like that.
 
@SeanAllred if you have an array of objects say, and you're using them to generate the HTML then it becomes a trivial problem
 
(And I truly doubt they'd let me host the library in the repo itself)
 
serialize and store it
 
7:45 PM
@rlemon I can serialize DOM elements within the file itself? I'm restricted to the one.
 
you can serialize dom elements, but that isn't as straight forward as if you have the data in JS first
> There is one special file in the repository that is used as a template for bug reports (`%author%, etc.), so I'm mapping those to variables within the JS and inserting them in spans.
you said you're mapping these to JS variables.
can you store those in an array?
 
@rlemon Ah, then disregard that bit. And yeah, hold up
var map = {
  'author.name':  "%author%",
  'author.org':   "%author_organization%",
  'author.phone': "%author_phone",
  'author.email': "%author_email%",
  'title':        "%title%",
  'lcrid':        "%id%"
};
 
kk 1 sec
 
This is the approach I'm using
 
> Emacs: The Best Thing Since Sliced Bread If It Wasn’t For The Fact That Emacs Was Actually Invented Before Sliced Bread.
 
7:46 PM
@SomeKittens :) :) :)
 
var map = JSON.parse(window.localStorage.getItem('mapdata')) || { map data }
and to store it
window.localStorage.setItem('mapdata', JSON.stringify(map))
!!tell SeanAllred mdn JSON
 
Oh, but if you like emacs, you might be interested in the client I (and a friend) have made. We've about to hit v0.1 (reading posts across sites). github.com/vermiculus/stack-mode
 
@SeanAllred I'm a Sublime guy
 
ST3 all day baby
 
@SomeKittens Fair enough. I tried sublime, actually - promised another friend I would - but I think emacs has actually ruined me for other editors. I can't make my hands forget the keybindings.
 
@SeanAllred Zirak (the one who wrote the bot) uses emacs. he is not here, but he'll get that ping
 
@rlemon Thanks :)
 
np
and read those links about localStorage (browser storage) and JSON object
 
@SeanAllred Yeeeep.
Had to do that when switching from GEdit to ST2 (yes, laugh at me)
 
7:49 PM
you can stringify the object and store it in the browser. then check for it on load.
 
But correct me if I'm wrong, but the map I use is JSON, no?
 
it is an object literal
 
@rlemon I'll try to figure out what that means :)
hmmm
 
!!> JSON.stringify({a:1})
 
@rlemon "{\"a\":1}"
 
7:50 PM
i'm assuming then that there is a difference?
 
see how everything is a string now?
 
well yes - this seems similar to python's repr and lisp's prin1
 
you need to parse JSON to make it an object you can use in JS
 
@rlemon Did you just instruct the bot to execute that? neat!
 
in the same idea, you have to stringify the object to make it json
 
7:51 PM
Ahh
 
!!tell SeanAllred help
 
@SeanAllred Information on interacting with me can be found at this page
 
there is a lot of commands and cool things the bot can do
feel free to play with all commands here:

Sandbox

Where you can play with regular chat features (except flagging...
 
:) We have a similar bot on TeX.SX. It's effectively just something that brings up definitions of macros and such
And yeah, I read about that room in the rules
I'll have to check it out when I get home :)
 
the bot was first developed because Zirak was bored on christmas eve and wanted someone to play hangman with
 
7:53 PM
@rlemon Ah, thanks -- makes perfect sense now :)
 
so the bots first command was a hangman game
she evolved from there
 
bahahahaha
necessity is the mother of invention
and the greatest necessity of all is for something to do
 
I like the history of the bot, it is just comical enough to make me remember it :P
 
Histories are very interesting. TeX was developed solely because Knuth was "dissatisfied" with the way his books turned out. He made it Turing complete after Guy Steele pestered him to do so -- effectively saying "you won't"
Rumor has it that he regrets that to this day.
 
Does anyone know why this simple string won't split? jsfiddle.net/vf61x27u
 
7:58 PM
jQuery has no split method ?
 
post_id is numeric
not a string
 
data isn't a jQuery object :)
 
data is jQuerys dataset shim
 
ah okay. should i convert to string first?
 
7:59 PM
See you later, everyone. And thanks for your help, @rlemon, @CapricaSix, and @SomeKittens :) I'll let you know how I get on.
 
post_id.toString().split('')
@SeanAllred np. come back if you need help
 
(""+post_id).split('');
 
tis what we're here for
@TravisJ ew
 
@rlemon :)
 
lol
 
7:59 PM
I'd go for readability here
 
or $('.post').attr('data-color')
 
That was readable to me :(
 
why, use data. it is what it is for
 
thanks guys.
bunch of geniuses
 
$.data converts to types, also arrays and objects
 
8:00 PM
just understand it converts types
@adeneo go away! lol we're overlapping information!
 
I'm trying to find out the last number. I was going to convert to string, get last character, turn to integer. Is there a better way to find out the last digit?
 
Was testing greensock, crazy stuff
Jquery animate and css animations are really bad in performance if we do a comparison.
 
again, depends on the nature of the CSS animation
not all will be slower
and they're getting faster every day
 
Can you give an example? you mean simple transitions?
 
yes
 
8:02 PM
ya those are fast
 
simple stuff isn't slow
complicated transformations can be
just be aware, so if you need something simple in the future you're not throwing GSAP at it when 10 lines of CSS will do
 
@tmyie - 2131431434 / 10 - parseInt(2131431434 / 10 )
 
@TravisJ that looks cray.
is that just wizardry?
 
It is slightly off actually because it gives the result in the 10ths, it would need one more alteration
parseInt(10 * ( 2131431434 / 10 - parseInt(2131431434 / 10 ) ) )
 
check this out. Greensock in action. Testing it jsfiddle.net/LgLugco6
Doesnt seem to work in ie8 though :/
 
8:06 PM
@tmyie it takes a number, say 12. and then it divides it by 10 to get the last digit in the tenths column, 1.2. It then takes that same number and parseInts it, floors it. So 1. So you take 1.2 - 1 and get .2 . Next you multiply by 10 to get back to 2. And the final parseInt gets rid of random cruft from the float representation caused by the division
 
jQuery 2 doesn't work in IE8 iirc @Steve
 
oh ya true
 
Thanks Trav
 
use jquery 1.11.1 or w/e
 
:)
 
8:07 PM
Ya I know, I forgot. Ill change it
 
:)
 
developer tools, ie8 mode, failure.
 
also @Steve realize people with IE8 rock an XP machine. do you think the hardware is fast enough for complicated animations?
I usually just say eff it.
I can make the code support it, but I know the hardware will lag behind
there is no point
just something to think about
 
Indeed, it doesnt make sense.
It just makes me wonder though since im fiddling around. Not really thinking of supporting ie8 for animations
 
If people use IE8, they are used to the web spiting them
 
8:10 PM
I got an XP machine too, it is interesting to see how the animations here work remarkably smooth greensock.com/jump-start-js#basic-tween
I use it for testing
If we think of how big css code can become when doing animations then I think it is worth considering that it might take a while till css is ready for such tasks
let alone reversals. I make a complex css animation, then reverse it. Not to mention all the browser prefixes. We quickly end up with a large file
 
0
Q: How do I remove the color swatch from my HighCharts legend without affecting the column?

SkullomaniaIn my JSFiddle the swatch by My Company is blue. I already know that I can replace the swatch with a symbol as shown in the JSFiddle posted, but how would I go about removing the other swatch without affecting the columns and just keeping the series name My Company. I tried setting the color to t...

 
Im thinking of wrapping my code in an window.onload = function(){
 
@Skullomania like this? i.stack.imgur.com/NdQ6y.png
@Steve for what purpose?
 
if you are going to use onload, be nice to others
 
imo the ONLY reason to use onload is to wait for images
but I personally prefer to just take the control and load them myself.
@Steve include your js in the foot and 99% of the time that is all you need
 
8:17 PM
Ya I know, I thought maybe it could hack be some sort of hack XD
 
@rlemon very close...do you see the blue swatch beside KDMC in the legend. I just want to remove the blue swatch and keep everything else
 
It is in the foot! before the body tag :/
 
ohh, I thought you wanted to remove the goals :P
 
playing around in a test.html file
 
@Steve then there is almost no point to it (the onload)
 
8:18 PM
yep.
 
unless you wanna force the browser to wait for the images to download vs just knowing their there
i.e you need the image dimensions
 
I was playing around with GSAP some time ago as well, it seems to perform a lot better than jQuery, but at the end of the day it's just changing inline styles with javascript.
Knew I had a fiddle somewhere -> jsfiddle.net/adeneo/Lynwqx4h
 
how quick did you write this? lol
 
Was going to make a slideshow, worked on it for two days I think before it got boring !
 
crazy
really pro though
 
8:26 PM
@adeneo - that looks really nice
 
wooow
 
@Skullomania such a hack.
legend: { symbolHeight: '0px' },
 
greensock is really fast with normal 2d animations on my xp
ok jquery animate is dead lol
 
jquery animate suffers from making a timeout per animation instead of using an interval and scheduling animation
 
var flash = $Jquery Animate
 
8:31 PM
@Skullomania added an answer to your question
 
so how big is support for ie8 next year do you think?
 
@TravisJ instead of requestAnimationFrame?
 
@rlemon but if I do that it removes the flag from the goals
my boss will cry
 
@adeneo pro as hell
 
@KendallFrey - that works too
 
8:33 PM
so working with knockout.js the past week, and I love it
 
way more sane than angular.
 
@Skullomania what is this missing?
I see flags
 
I can actually use JS which is always nice
 
knockout? never heared of it
 
8:33 PM
ahh crap
 
@Steve really? Its one of the older mv* projects
 
I made a coffee like an hour ago
 
lol
 
came out around the same time as backbone I believe
pre 3.2 I think I would have hated it, but the component system is nice
and Im using browserify to package everything up, even my templates
 
@Loktar really, im actually a newcomer to the javascript world. Javascript will probaböy already be replaced by google Dart when I finally become a pro in this lol
 
8:35 PM
hah
 
still drinkable!
woo!
 
psh no.. itll be atscript :/
 
@Steve DART will never replace JS
 
really?
 
really
 
8:36 PM
poor google vision?
they vision it as the new standard or not?
 
look at typescript
 
you can only enhance something so much before you start from scratch (jquery, chrome, javascript) or am I wrong
 
that is closer to where js is headed
 
ya
 
then read about es next
there is some exciting stuff happening
 
8:37 PM
es?
 
es = ecmascript
 
ill google it
 
@Steve ecmascript is the standard js is built around
 
8:38 PM
Nah, ecmascript sucks, javascript is so much better
 
and on that note, actionscript and a few others as well
 
take a look...i posted the wrong one
 
still looks fine to me
:P
 
looks like ecm isnt that a big deal
 
@rlemon you da man
 
8:40 PM
quick! go upvote me and accept on main!
before someone comes in with a better answer!
 
hey the flags
why are they inside the bars?
 
scatter on a bar
flags are scatter plotted over top of the bar graph
 
shouldnt they be on top?
 
no, they correspond to an x/y point
 
oh
 
8:42 PM
imagine the bars are how many steps a day you've taken, and the bars are your daily goals.
but you only made goals on a few days :/
 
why not put them slightly to the right and maaybe the handle could become a bit darker
 
I'm giving up, I hope you get it :P
 
i get it!!
they correspond to an x/y point
 
(it isn't my chart, I'm helping Skullomania)
 
@rlemon - imagine the bars are your daily goals, and how many steps a day you will take to hop to each bar :)
 
8:43 PM
lets hope he reads it :D
 
@rlemon done :)
 
Skullomania!
 
Woop! 25 rep!
 
@Steve whats up bro
 
Tip: why not put the flags slightly to the right and maybe the handle could become a bit darker
 
8:44 PM
@Skullomania that was my first main site answer since april :P
 
@rlemon gratz man!
@Steve whatcha mean?
 
and I've never used highcharts
 
Wanna drink some lemonade. No idea why
 
:P
 
@rlemon don't boss will want it for everything
 
8:46 PM
@Skullomania maybe put the flag abit more center, less to the very edge (left edge)
also some contrast would be cool. Like give the flag stick a darker tone
 
I do need a chart library. the fun interactive kind that I can live update (minute averages on a live view)
was thinking of pressing my own
 
Highcharts is great, made in the best country in the world
 
might get lazy
 
by the way, what do you guys do, web design, programming or all in one?
 
I dry corn
 
8:47 PM
lol
 
I'm not joking
 
He's telling the truth
 
I know alot of programmers who are bad at css and web design and vice versa
thats why im asking xD
 
@Steve like brown, I like the idea of the contrast...but I like the flags centered as they are
 
I am bad at web design. I pay other people to make my stuff pretty
 
8:48 PM
I drive an excavator !
 
ya some contrast would be cool :D
 
I'm great at pointing out mistakes in designs (worked SQA for many years) but I cannot pull it off myself.
it's strange :/
 
i get bossed around by my kids and wife at home and beat mercilessly at work
 
Ya, those who want to do everything cant do anything
lol
 
right now I'm working a lot with node.js
I'm doing design work, but nothing i'm proud of
however, in the industry I work (agri) everything is so out of date, my ugly ass designs look fresh and new to them
 
8:50 PM
I'm doing UI code today
 
im new to christmas...here is something i find shitty about the whole chrismas idea
/begin rant
 
well missing creativity rlemon? you are more for finding mistakes within a frame. More of a logic type too
 
The worst kind you can imagine
 
@Steve nope, creativity isn't the issue. I am very creative
 
i work my ass off for expensive toy...but that toy is from santa
 
8:51 PM
just have a hard time with beating html/css into my submission
 
i can't even hint that I purchased it
 
@rlemon maybe its because you love javascript so much that you get bored with other things quickly
 
but the dollar bin toys kids are from me and your mom....thats some bullshit!
/end rant
 
@Skullomania haha
families do it differently
my family did it all the cheap stocking stuffers were from Santa
with my kids I take credit for all the cool shit
 
@Skullomania simple solution: "Jhonny, I know this might come as a shock. there is no Santa. mommy and daddy love you very much and work very hard all year long to make sure we can celebrate christmas with you in a loving way and give you all of the presents we think you deserve. Please don't tell the other kids at school, it might upset them. and now that you know this, can you stop leaving santa milk and cookies, I prefer beer and pizza"
@Steve I do get fed up with design very quickly. never see them to fruition
 
8:53 PM
@Loktar haha..thats what im talking about!
 
probably the root of the problem
 
@rlemon that is going on my facebook
 
:)
 
@rlemon same with me an javascript. In my case I work with javascript but get fed up because I want to go back fiddling with css3 pseudo classes lol
 
@Loktar see the video I posted about the pokemon rift ??
3d pokemon!
 
8:54 PM
3d pokemon?
 
!!youtube 3d pokemon + oculus rift
 
yeah couldnt watch it though and the ping is gone
oh yeah thats been around for a while, pretty neat
someone is doing an original zelda one as well
 
ahh, damn. here I thought I was showing you something new :P
 
This is some of the best bullshit I've ever seen: youtube.com/channel/UCN8JJf0CMRkZ6ozapl6nMCw
 
8:55 PM
 
@KendallFrey all I can think is "Perpetual Motion Squad"
TBBT had it's moments
 
Some of those ideas are so obviously wrong it's funny
 
this pokemon 3d isnt real huh
 
sure it is
 
funny stuff
no way man, must be a fan video
I mean there is no 3d pokemon like this....
we have black and white, and the nintendo wii versions but hey....the one above is crazy lol
great oculus experience! really unique lol
 
8:59 PM
someone made it
 
^
 
woa
 
@KendallFrey no way man. youtube.com/watch?v=qYyVRU5Z0so&list=TLyBYPbV2R3Tg this will totally work. you just have to power the motor inside of it :P
 
crazy man
 

« first day (1489 days earlier)      last day (3445 days later) »