« first day (1636 days earlier)      last day (3295 days later) » 

12:00 AM
hahah it's just difficult when no one at work knows js and i'm 6 hours in staring at three functions and thinking well damn i should've had this by now
 
crl
try to isolate the problem and post just the minimum code that shows your problem
 
any code at all might help us know see how JS is accessing the DB adn know if we can help or not
is this node.js?
 
@chronotrigga Not to sound rude, but are you an intern? Because that pay level is like entry entry level. It might be time to look for a new job?
 
I'm trying to cut out a lot of code and show you, hold on. It's essentially three functions: the first one pulls mysql data, the second starts appending stuff to the third function (appending is new to me) and the third uses it
 
that's still more money that some careers will ever see. depending on where in the country and the experience it could be very low, or quite competative
 
12:13 AM
I'm full time east coast but yeah you're right.. I'm learning a lot though which is good there's just not really any help and i've been staring at this code for a long time lol
 
what state?
 
no guarantees on being able to help, btw. typically we don't write code for people at all here, just answer questions and point people int he right direction
but if it's simple, and I CAN help..
 
Also.. learn JS. That's where it's at.
 
0
Q: Adding a table from database with javascript

chronotriggaI am seeking help trying to add a new table in my third function called ingredients. I am not very familiar with javascript so I tried to duplicate code from dosage which is similar to what I need to do. Unfortunately, right now all I see is 0, 1, or 2 and not the actual text from the ingredient ...

i will tip reasonably.. and i'm trying! i've learned a little bit so far but I think this append thing is difficult for me to understand
 
12:20 AM
so.. that's odd. It looks like client (browser) code..
but accesses a database..
 
it's a localized .db file created using sqlite
also nick wow that's a lot, I definitely don't get paid that much in PA.
 
so, it's using plain sql to talk to the DB. you should be familiar with that. what sql are you triyng to add?
 
Not sure where the 2 is coming from, but your formatProductDisplay function has 6 params defined, and your callers pass in 5, with constants "0" / "1" defined for 'Ingredients'
I dont know anything about what youre trying to do.. but that doesn't look quite right to me, especially since formatProductDisplay checks "aster=='1'"
 
!!games or code
 
@KendallFrey games
 
12:25 AM
there's a little bit more code that I stripped out
 
yea, he forgot to add the ingredients into the calll
also, i don't see any sql to get them
 
I thought it's in the first function
tx.executeSql('SELECT * FROM Main Database -- but how do I call the ingredients table? Is it not how I put it in the parenthesis
 
ohh, is it a column on 'main database' table?
 
yes sorry about that
 
You've determined your 'results' in txSuccessListTreament contain incorrect data - or it does contain correct data?
 
12:28 AM
I'm trying to mimic newDosage which is essentially what I'm going after
 
What Grant was trying to say: You added ingredients as an argument to formatProductDisplay() but never pass it in inside txSuccessListTreatment when you call it.
 
@Luggage Much better phrased, thanks :)
 
$("#products").append(formatProductDisplay('specialty1', treat.Specialty1, treat.PurposeSpecialty1, treat.DosageSpecialty1, '1'));
//change to
$("#products").append(formatProductDisplay('specialty1', treat.Specialty1, treat.PurposeSpecialty1, treat.DosageSpecialty1, treat.Ingredients, '1'));
assuming the column name is 'Ingredients'
 
so you're saying I have to append it in the second function txSuccessListTreatment(tx,results)
 
@chronotrigga Ah, PA... I worked in NE Ohio for a bit. Shit area, shit pay.
Us front end guys, in other parts of the country, get paid major moola, though
 
12:33 AM
front end is sexy
 
trying to work on the fix per your advice.. is there a reason why 'newDosage' was never appended in the second function but still was able to retrieve the data?
it's productDosage in the argument but I don't see it anywhere in function 2
 
yea, newDosage is a variable created in formatProductDisplay() from productPurpose
first line in that function.
 
productPurpose.. not even sure way over my head lol
 
show me how to assign a value to a variable in php.
 
but it worked! thanks! if you can send me your pp i'll tip :) and @NickDugger where should I move to?
 
12:40 AM
don't worry about it, i wasn't looking for the money.
 
@chronotrigga Don't let anyone tell you where to move, or what to do. Do your thing, man. Are you just starting your career?
 
$a = 10
I only see productPurpose as an argument in function 3
 
that first line in formatProductDisplay() is like $newDosage = ...
so it doesnt' need passed in.
it's MADE based on other data that IS passed in
 
ohhh I see
very interesting thank you very much
and yes, i'm about 3 months in i've been doing a lot of front-end css jquery and javascript is very new to me i never got the chance to touch it
 
well, get used to it. JS is THE front-end language :)
 
12:45 AM
only css* jquery and javascript is new to me, what i meant to say haha. ah.
 
I answered you SO question, btw. Accepting my answer is the only tip I need.
I've got 9805 more points to go
 
what's the reward?
 
@chronotrigga You win the internet
 
!!go to board game night OR stay home and veg out
 
@Shmiddty stay home and veg out
 
12:47 AM
aye aye cap
!!wings or asian
 
@Shmiddty asian
 
asian wings
 
!!rice or noodles
 
@Shmiddty rice
 
Ah screw you cap, I don't want fried rice
 
12:48 AM
Rice > Noodles
 
rice noodles..
 
@chronotrigga PA and OH are bad for jobs, right now. They're getting better, but they're still trying to get out of the rust belt. For starting off, anywhere is good, but in your future, moving could be wise.
 
There's a place here that does a really tasty Japanese Fried Rice
 
he has 3 months experience. he's doing fine.
 
Still pretty sound advice
if the job market is shit where you live, and you are motivated to do big things, you should move
 
12:49 AM
Melbourne is like the land of digital agencies
 
he has a job. Nick was thinking his salaray was low, but for that experience it's not bad.
 
My first dev job started at $22k salary
It was awful
 
i'm working on our web app that uses css/js/html to build it. do you guys ever use js to build apps or would you suggest go straight native?
 
yea, i was not much more
 
well they kind of threw me in it and with no help so
 
12:50 AM
@chronotrigga JS for apps is good if you also have a web app
 
I use JS almost exlusively to make my app. The server and front end.
 
You may look into Phonegap
 
eww
 
Or potentially other variations of the same thing
 
That's what we're using
 
12:51 AM
(never used Phonegap personally)
 
and cordova i think or maybe it's the same thing
 
cordova is listed as one of the 'dreaded' techs in stackoverflow.com/research/developer-survey-2015#tech-super
though so is Coffeescript, which I love.
 
@Luggage do you see any lag between like post requests and stuff? because our app only uses localized db i was thinking if i got better at js and built my own app if there would be any lag because I see a little in the simulator right now
 
it can be as fast as a request can get across the internet, whihc is pretty fast
performance is always a concern with web apps. you wan to make sure you are not sending more data than you need, the files aren't too big, etc.
but that's true for ALL web apps, regardless of language.
server-side language, I mean. The client is always Javascript.
 
i see very interesting..
also @NickDugger you're right. but i needed the challenge there was a social media job offering 50k but i wouldnt learn much
 
12:56 AM
social media job. Sounds terrible.
 
granted going on SO to ask for help wasnt in my plan but i was very stuck :(
i think they wanted facebook updates lol
 
I'd rather get paid less and program than do social media garbage
 
hey @luggage
 
He's not here.
This is his.. uhh.. twin brother.
 
hackkeedddd broooo
 
12:59 AM
Hi TwinDawgggg
 
I ordered wings and a salad. TAKE THAT @CapricaSix
 
hmm i'll look into coffeescript then i've never heard of it
 
You're fine without it
trust me
 
Yeah don't muddle things with coffescript
In about 5 years, most web development will be done with native JS/HTML/CSS
because they're getting better
 
@Shmiddty That's a fastfood fail right thur
 
1:01 AM
I love coffeescript, and I agree.
Don't bother with it
 
coffeescript was there to fill a gap that ES6+ is filling by its own. I'd still like static typing, though...
 
@monners But the wings are signature!
And the wedge salad has candied bacon and bbq blue cheese dressing
 
@Shmiddty If that's all you care about I'll gladly put my John Handcock on your rice :P
 
Keep your Handcock away from my food, sir
 
Also, to be useful in coffeescript you have to know JS so well that you can translate back and forth in your head and think about what JS the coffeescript will generate.
 
1:02 AM
@Shmiddty Oh, bluecheese wedge salad... Can't argue with that
 
Keep your hand away from my cock food, sir
 
which I am definitely not good at the slightest bit right now lo
I see
 
@monners What do you have against wings?
 
They're messy, and delicious, but mostly messy
 
boneless wings, so you can eat with a fork
 
1:04 AM
That's what napkins are for, ya slob!
and bluejeans
 
I can't be trusted with anything that has corners, not even napkins
 
I want jeans made out of napkins
 
aren't all jeans?
 
wat
 
wat
 
1:05 AM
wat
 
Hey, if equally skilled programmers of PHP, Python and Ruby used their best webframeworks, CakePHP, Django and Rails, which one of them would create a blog the fastest?
 
@luggage you are in australia correct?
 
Close.
east coast USA
 
@Luggage Tasmania
 
@EnglishMaster wordpress
 
1:11 AM
maybe not that close.
 
@NickDugger No CMS included
 
why?
 
Because I said so
 
your rules are bad
 
@EnglishMaster this is sort of a "who would win, the Enterprise or a Star Destroyer" kind of question.
 
1:12 AM
hahaha leafs you suck
 
@EnglishMaster You're Tasmanian?
 
Wait, I need to take a phone call
 
Surely that took longer to type than yes or no
 
awfully pushy stalker.
 
@monners No, I'm living in Korea but I'm going back to Sydney
 
1:22 AM
North?
 
yes
 
If you're in this chat from N Korea, we should all be thoroughly impressed.
Unless you're the Supreme Leader
then we should bow and pay respect to our better
 
Well, I'm living in Best Korea so I obviously have access to this chat
 
Which one is the best again?
 
1:24 AM
IDK
 
East
 
Who wants PayPal cash to help me troubleshoot a JS issue
 
the United States of Korea
 
nobody
 
If that's not against SO policy!?
@shmiddty :(
 
1:25 AM
I don't think they care
 
Just ask. if we can help, we will. If we can't, we'll claim it's a stupid question.
 
51st state of USA
 
!!s/claim/tell you why/
 
@Shmiddty Just ask. if we can help, we will. If we can't, we'll tell you why it's a stupid question. (source)
 
!!s/can't/won't/
 
1:26 AM
@Shmiddty @Shmiddty Just ask. if we can help, we will. If we won't, we'll tell you why it's a stupid question. (source) (source)
 
That's better.
 
0
Q: JavaScript Scroll Script - Fires in test, not on dev site

Tim SalabimMy script to replace the logo upon scroll works here in the test 'http://jsfiddle.net/timsalabim/opek5mtz/` <!-- Logo Scroll --> var img = document.querySelector('.logo_h__img img'); // get the element img.dataset.orig = img.src; // dataset document.addEventListener('scroll', function (e) { //...

 
@ThePixelBug 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.
 
That is my issue, if you can help it would be appreciated
 
ohh, this.
 
1:27 AM
this
 
ths
 
I'm fat
 
Why?
 
@TimSalabim ever find out of the img variable is null, like the error says?
 
Build muscles, it burns your fat automatically
 
1:32 AM
Where's @rlemon?
 
@Shmiddty North of The Wall
 
no where
 
Commie bastard
 
!!s/no where/now here/
 
@monners now here (source)
 
1:33 AM
They say I can't rhyme on a dime
 
:P
 
I'm sure I have more muscles than muscles of 2 guys here combined.
 
Just missed one more edit.
 
@luggage i was not sure how to confirm this
 
I told you yesterday, console.log the variable
 
1:36 AM
do you know how to debug?
 
@luggage if i could please have someone walk me through it or point out where i got wrong / stuck after putting the debug tag in that would help
@Shmiddty no, i did add debug code yesterday
 
You MUST learn how to read variables and answer basic questions if you want help.
 
!!tell TimSalabim google intro to chrome devtools
 
^
 
1:36 AM
Thank you!!
 
study up, son
 
Much appreciated
 
NP(hard)
 
His problem is that document.querySelector('.logo_h__img img') is returning null when he expect it to have a value.
I tried to help before but wasn't getting through.
 
Yet it works in my test environment
 
1:38 AM
well, show us where it breaks
you only link some template site
your question on SO doesn't include the error message. That would be helpful.
to refresh your memory, the error was: TypeError: Cannot read property 'dataset' of null
 
1:58 AM
Do you think you can calculate 1,000,000 factorial in Javascript?
 
make me
 
can anyone tell me why this z-index transition doesn't work rustin.me
 
I asked a few guys about "how would you calculate 1,000,000 factorial in a language that you prefer?"
 
it's causing a nasty clipping if you go right-to-left or down-to-up
 
2:07 AM
and they were immediately complaining about "modern day processors" "too large numbers" and shit
They just do not respect fundamentals like "algorithm" anymore
they are just worried about bigger processors and bigger craps
 
2:18 AM
I get a lot of messages from people wanting to use this: ndugger.deviantart.com/art/Tileable-Futuristic-Grid-312360821
 
@EnglishMaster their concerns are nothing to do with processor speed or less powerful hardware
The fact is, it's easier to write an algorithm that will handle 10! than one that will handle 1000000!
in many if not most languages
 
@rwollr z-index only works on positioned elements (position:absolute, position:relative, or position:fixed)
adding position: relative to div.showcase-grid-inner-box makes the z-index work.
 
roger
 
which.. makes it better in one way and worse in another..
 
how so?
it seems to have fixed the only thing i was concerned with
 
z-index also works on elements with transform
 
when moving down the shrinking box is clipped by the box on the right
 
any element that creates a stacking context will accept a z-index
 
oh
yeah, true
but the effect is muuuch less noticable
it was an improvement
i'm satisfied for now, but if anyone wants to play with it let me know what you find
 
you can probably fix it completely by animating the z-index.
 
2:28 AM
are you transitioning the z-index?
or how are you trying to make the element move in front?
 
he's not
go to the codepen, Grant.
Do yo know if you can have different animations for entering hover and leaving?
 
codepen looks like its doing a lot better than what was on the site :)
 
that's your code + position:relative
there, refrsh and see how you lke it, now.
i have it go right to z-index 30 on hover, but gradually animate back to 25 on exit so that it stays a higher z-index than it's neighbors.
 
i see
looks cool, thanks
 
I've set up a GitHub repo for a new JS library that allows us to store HTML as a JSON structure and parse it to HTML so that we dont have globs of HTML in our JS anymore when adding / removing elements, and also the HTML can be gotten / manipulated easy with JQuery and other libraries
Good idea?
 
2:43 AM
i actually started out by transitioning the z-index but I removed it when it wasn't doing anything
before i realized z-index required positioning
 
If so, is anyone willing to take a look at my notes on it and maybe make some early changes before the project begins?
 
nbubna.github.io/HTML there's already at least one lib named html.js
asking for clashes
 
@MediaWebDev I already made this
 
Well its certainly early enough for a re-name
Well great Nick, where's the repo?
 
@rlemon made something similar as well
 
2:46 AM
Are you open to developing it further?
 
I just tweaked the border-color animation so that it's smooth on mouse-leave.
 
As in, to a JSON structure? Iron out the wrinkles, etc?
 
It's kinda just done as is.
If you want to take it from where it is, be my guest
I also have a jQuery version
I actually have the jQuery version in a production environment.
 
What do you think about your syntax vs the one that I note in my repo readme?
 
Well, yours creates its own syntax. I just use existing JS syntax
 
2:50 AM
Mine is wordier, but it's more obvious too. With yours, you have to memorize the various property types, mine are done in a way that everyone who uses the DOm knows
Idk, to figure out a perfect syntax is hard anyway
 
@MediaWebDev You have to memorize the regular, default javascript property names with mine; as you should already be doing. Yours introduces an entirely new syntax.
 
Yeah, my bad
I see
 
@MediaWebDev how does one have multiple of the same element?
 
Luggage you just create more elements with that element type
more objects as children of the parent
 
NickDugger's is more like hmtl seriazlized as js.
 
2:53 AM
So yeah, Nick's syntax is better - for using JQuery all the time, I havent even used the actual property names
 
I don't understand navigation, home, foot, linkOne, etc.
does that translate the the .id?
 
its an object name to reference, thats all. So you could do HTMLJS.render(myDocument.children.navigation)
But honestly, Nick's is good, no need for mine
 
You can still make yours for the sake of learning. I always reinvent the wheel. Hell, mine is just me redoing what someone else already did
 
I saw another similar project that uses chained functions instead of an object. I'm trying to find it.
 
This was @rlemon 's that I used as inspiration github.com/rlemon/FragBuilder.js
 
m59
3:58 AM
Guys, would a facebook post I just read and was deleted be in my browser cache anywhere?
I'm assuming not.
 
progress
ctrl + f5
 
4:21 AM
very cool :)
 
thanks thanks
i guess the plan is i'm gonna try and make a new demo every week or so until i fill up most of the page
and then the arrow in the bottom right will take you to a more traditional web page/portfolio
 
ASR
5:30 AM
what is the meaning of Synchronous XMLHttpRequest on the main thread is deprecated because of its detrimental effects to the end user's experience. For more help, check xhr.spec.whatwg.org.
 
where is the source of those lines ?
 
It means that synchronous XMLHttpRequests are deprecated because they ruin the user experience. They still work, it's just a warning that they will be removed at some point
If you're using them in your own code, find other solutions, if you use a framework that uses them, find another framework or hope there'll be a new version before the requests are disabled
 
ASR
@ivarni thanks
 
5:45 AM
@SomeKittens yeah, that's ok though
 
Figured piling on again wouldn't be helpful
 
6:02 AM
@SomeKittens Must admit, I was more than a little surprised to see his name pop up in the list of candidates
 
6:19 AM
hi guys , have a small question
I need to construct an API call to //http://ws.audioscrobbler.com/2.0/?method=album.search&album=believe&api_key=7b3e1e72b5e06503e298ce018c407cc5&format=json

Is this the correct way ?
request.get('http://ws.audioscrobbler.com/2.0/?method=album.search&album='+ seriesName+'&api_key='+apiKey+'&format=json'
 
seems legit. Until I compose an album called spillCredentialsTo=me@example.com, that is.
 
Can i append a function (error, response, body) also at this request.get call ?
if error do this , else store this value.
 
check the documentation
 
6:40 AM
@Zirak
 
#OffTopic meta.stackoverflow.com/questions/289753/… If any of you can help.
 
6:54 AM
i think it wants you to answer questions. like the Samaritan
 
Pretty sure its not. The description says:
`Voted on 600 questions and 25% or more of total votes are on questions.`
 
25% or more of total votes are on questions ? what does that mean?
 
if you have 1000 votes at least 250 are on questions
as opposed to answers
 
yep
some gold would be nice
Nevermind. This post solved my problem: meta.stackoverflow.com/questions/269040/…
 
7:20 AM
in Tavern on the Meta on Meta Stack Exchange Chat, 8 mins ago, by Jason C
> Are you kidding me are you kidding me is this really happening it was just like this major transformation it started to happen to my face
 
7:39 AM
Just replaced my whole website with this: phenomnomnominal.github.io
 
No mouse interaction. 2/10 would not visit again
 
We0
Hey guys, in jquery is there a way to get the index of the bind? pastebin.com/YDp37Xhr example
 
Anyone familiar with 'Object.keys: argument is not an Object' in IE10, IE11.
It seems that IE has problems with underscore method: _.keys(obj);
 
7:54 AM
@Srle 'are you passing a DOM object to it?
@phenomnomnominal nice
 
@We0 Why not work with data-attributes?
 
not enough jQuery
@Kippie because data attributes are a horrible idea that disregards separation of concerns?
 
We0
@K
 
Fantastic. Have to support IE9 because QA is using it. In production, it's 0.5%.
 
We0
@Kippie @BenjaminGruenbaum updated pastebin pastebin.com/5hHA4QNd
 

« first day (1636 days earlier)      last day (3295 days later) »