« first day (1312 days earlier)      last day (3637 days later) » 

9:00 PM
@deltree if I understand this correctly you would only need to reference the file path in the URL tag and then sub files you can precede with a " / " IE: href="/app/product1"
 
Hey guys I have a problem. I am using this code to launch a setup.
w = new ActiveXObject("WScript.Shell");
w.exec('adobe.exe');

This is working fine if i try to open notepad with this but when I am trying open the setup it is not. I think I am not passing the right path of the file. But how do I pass the right path? The file is in the same folder as the js file.
Thanks for any help in advance :)
 
why are you trying to run an installer from your webpage?
sounds fishy to me
 
@SyedFarjadZiaZaidi You don't work for Adobe, why are you trying to run their code?
 
Oh no no not fishy. I made a software using c# that installs other software for example chrome, firefox etc. But to use that software one should install the .NET framework. My client demands a software that will run without installing any other software like .NET. So I am trying to make it using js
 
tell your client they are risking security holes and it cannot be done
 
9:06 PM
"Software which installs other software" is the definion of malware
 
clients never argue with "technical restrictions"
 
@Zirak Software that does bad things is the definition of malware
 
all you have to do is turn your browser's security off. that'll do it
 
@SyedFarjadZiaZaidi in short: in this room (and most others) you are likely going to be told how bad an idea it is and how you shouldn't do it. not an answer.
 
No no I am not running anyone's code. Just installing their product like everyone does. I am like making a page that will have buttons and when you click on them they start a process and the user installs the software as usual. The goal is to provide them all of the software in one place.
 
9:07 PM
@Zirak Did you mean a Trojan?
@SyedFarjadZiaZaidi Link to product?
 
no he meant worm
 
make an installer, use the browser to download that. have them execute the installer.
 
Man, if you could just run any piece of code you want on the client's computer...
 
^ that is how it is done.
 
The web would be so broken
 
9:08 PM
@Shea I have turned of my security. Still not working
 
@SomeKittensUx2666 Trojan is malware that pretends not to be malware
@Shea Worm is malware that spread through a network
 
@SomeKittensUx2666 What if the user does not have internet? A lot of people here does not have internet.
 
because you are trying to do something many specialists have spent a long time trying to ensure you cannot do. your average joe does not want shit installed automagically from their browser.
 
@SyedFarjadZiaZaidi actually I think what your client really needs is a BATCH file that can run the install files for example @echo off start firefox.exe "URL"
 
@SyedFarjadZiaZaidi Then how did they get to your site?
 
9:08 PM
@copy I thought the internet was a network
 
write an installer
 
!!wiki trojan (malware)
 
@SomeKittensUx2666 The Gods of Wikipedia did not bless us
 
installer.exe <- I install all things.
 
A Trojan horse, or Trojan, in computing is a generally non-self-replicating type of malware program containing malicious code that, when executed, carries out actions determined by the nature of the Trojan, typically causing loss or theft of data, and possible system harm. The term is derived from the story of the wooden horse used to trick defenders of Troy into taking concealed warriors into their city in ancient Anatolia, because computer Trojans often employ a form of social engineering, presenting themselves as routine, useful, or interesting in order to persuade victims to insta...
 
9:09 PM
If it's intranet, provide a local intranet path
 
anyway
home time
 
@SyedFarjadZiaZaidi did you try deleting your browser's program directory?
 
have fun chaps.
!!afk ping @SyedFarjadZiaZaidi and tell him how it is a bad idea to install rando apps from the web
 
@CS_STEM yeah, right. But that will just execute. It wont have any graphics. He wants his phone no and etc on the page.
 
@Shea Yeah
 
9:10 PM
@shea the internet is massive where a network is just that little portion that connects to the internet
 
@CS_STEM you mean private network
 
@Zirak I will just give them the folder with the installation files and when they insert the cd internet explorer will open and they can choose which software to install
 
@SyedFarjadZiaZaidi Still don't see what value you add.
 
@shea I am not exactly sure... but yes that sounds about right
 
@Shea deleting my browser's program directory? Why?
 
9:11 PM
you make is moar faster
 
@SyedFarjadZiaZaidi Browsers weren't meant to do this. Doing this would just be...horrible.
js is not the tool for this job.
 
@Zirak what else then?
 
3 mins ago, by rlemon
write an installer
 
@ke4mtg 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.
 
I need a universal software. That will run on windows xp, 7, 8
 
9:13 PM
I've used installers which worked on XP+
 
@SomeKittensUx2666 How do I write an installer?
3
 
Google
 
Its been years since I have seen anything like that.
 
I'm gone for 5 minutes and i miss the fun :(
 
9:13 PM
On it
 
@SyedFarjadZiaZaidi If you really want to torture yourself, use NSIS
 
@SyedFarjadZiaZaidi "Universal" but Linux/OSX is not required?
 
@SomekittensUx2666 Yes Right.
 
@SyedFarjadZiaZaidi for 1 it does not really need graphics 2 text strings can be displayed using the "echo" command and Batch is the same thing as the CMD in every Windows version
 
@SomeKittensUx2666 I thought Mac was a computer and Windows an OS
 
9:15 PM
@OliverSalzburg read the link
 
@SomeKittensUx2666 Ah, got it
 
Guys get this.
 
Got it
 
Our rackspace hardware crashed. And they're now charging us $100 new setup fee and $650/m new hardware fee. AND on top of that they might have lost our entire database backup.
How the hell do they have the nerve to charge us for their faulty hardware and their loss of our data?
 
Isn't the cloud great?
 
9:18 PM
@RUJordan tell them you are unhappy and you are leaving.
 
My boss is livid it's funny as hell
We're moving to amazon I think [hope]
Because I will be OD pissed if I have to re-create everything data-wise from the old site
 
!!urban OD
 
@mikedidthis OD Overdose on a drug.
 
You kids and your slang / drugs.
 
Oh sorry, it's slang for "immensely"
Like, if you're really mad, you're OD salty
Kids these days
 
9:21 PM
TIL: OD. Thanks @RUJordan!
 
!!themoreyouknow
 
@RUJordan That didn't make much sense. Use the !!/help command to learn more.
 
WHY IS THAT NOT A COMMAND
 
github.com/RUJodan/SourceUndead @rlemon if you're interested in my server.js -- I'm going to modulize it because it's messy but you might learn something/teach me lol
@SomeKittensUx2666 LOL OMG NO!!!
!!learn themoreyouknow <>"https://i.chzbgr.com/maxW500/4304731904/h047B16E8/#.png"
 
9:24 PM
@RUJordan Command themoreyouknow learned
 
Somebody is going to use that, and it will be hilarious.
Kind of like when somebody hit me with the !!hahastillthere command after I !!forget friday
I had tears
 
Has anyone here worked with YUI?
 
@RUJordan You have a possible injection in here
 
Whose that?
@Zirak ohshit didn't even see that, thanks!
 
Always use prepared statements, never construct sql strings yourself
It's also here
 
9:29 PM
Anyone want to give me some design feedback?
 
Software design or graphical design?
 
graphical
 
Hell no
But someone surely will
 
@RUJordan c'mon, mysql even has built-in escaping
 
9:30 PM
Also, (somewhat related) who wants to see the startup thingie I've been doing the front-end on ?
 
@Zirak damn I slacked off on that one. I tried prepared statements btw, but I couldn't get them to work. Will try again
 
@phenomnomnominal sure
 
@SomeKittensUx2666 it's so easy to forget D:
 
YESSIR! :salute:
 
9:32 PM
theroster.herokuapp.com (either on a phone or a small browser window, I've mainly done the mobile version so far)
 
@Zirak yes i haven't set up that yet :P
I just need to redirect all non-static resources to /
 
9:33 PM
guys this is what my client wants
 
@wadzy1 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.
 
@SyedFarjadZiaZaidi My eyes are now bleeding, thanks
@SyedFarjadZiaZaidi Great! You should make it for him, that's what you're getting paid to do!
 
@SyedFarjadZiaZaidi So pro
 
@SyedFarjadZiaZaidi I suddenly feel really good about my design skills.
 
But I do not know how did he do that, I made a software on C# but that need .NET framework so he does not want it
 
9:35 PM
"I made a software"
 
!!> Promise.resolve().then(() => new Promise(r => setTimeout(r,3))).then(() => Promise.all(5));
 
@BenjaminGruenbaum {}
 
@Zirak can we have async eval? That is, eval that has a done argument and waits for done to be called before returning?
 
How would it look like?
A pre-defined function named done or something?
 
9:41 PM
Hmm, the cutest thing I could think of is unwrap a promise, that already works natively
Promise.resolve(evalReturnValue).then(function(result){ /* show result */);
That'd require zero magic callback names or other magic, and would just check if the return value is a promise and resolve if if it is
 
And what about the general async case?
 
This is the general async case :)
 
Like setTimeout
hurr de durr
 
new Promise((r) => /* calling r here resolves the promise and ends the computation )
 
9:43 PM
And again, what about our good friend setTimeout?
 
@SomeKittensUx2666 doesn't look too bad actually
 
If you want there can be a Promise special case
 
But why? It's very easy to solve the general callback case with a promise..
 
@BenjaminGruenbaum Read specific reviews, most hated it
 
sigh
 
9:44 PM
Let's say you want to pass a magic done value, right?
You just do new Promise((done) => setTimeout(done,1000))
 
Just suppose someone doesn't want to wrap it in a promise
Most of what I see is people just calling setTimeout
 
@Loris 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.
 
I think it's much nicer than a magic keyword/variable name.
No one asked for this before anyway, if this doesn't work with promises, add callbacks by all means.
 
I can special case promises, but it doesn't solve the immediate, most obvious "will this work" general case
 
m59
@BenjaminGruenbaum It looks to me like Angular's return $q.when(foo) breaks a promise chain, presumably because it's a new promise
 
9:46 PM
@m59 what?
 
Which is ok, since it's not solved right now
 
m59
Is there a different way that's supposed to work?
 
@Zirak oh but it does :)
 
Tell you what
Educate the world to wrap setTimeout calls in promises, and when everyone does that, I'll call it solved
 
The only two non magic things you can do here is throw and return. Those are your only two keywords until es6 yield comes and introduces a third way to transfer control.
So, either you introduce a magic superglobal fun time, or you use the return value, which is exactly what promises do to begin with.
 
m59
9:48 PM
return foo().then(bar);

function bar() {
  if () {
    baz(stuff) //async
  }
  else {
    $q.when(stuff) //sync
  }
}
 
You are, of course, right. And for some strange reason, when people do !!>setTimeout, they didn't wrap it in a promise.
People are just weird like that.
 
@m59 the baz(stuff) breaks it, not the $q.when , also you're not returning.
 
m59
oh, oops, just forgot to type it there
 
@Zirak well, they can, with a simple new Promise call they can convert their API to use the return value instead of a magic parameter. The magic string is gone and the syntax overhead is like... 20.
 
m59
Hmm, baz makes another $http call, but I'm not even using that yet
It's always using the else right now
 
9:50 PM
@BenjaminGruenbaum They can do a lot of things
But I'm not talking about what they can do
 
@Zirak ok, name another non-magical solution
 
I don't have one besides saying "call this function when you're done."
And overwriting setTimeout and setInterval to set some flag
 
That's a super global value.
Oh, you mean like overriding setInterval and setTimeout in specific?
Are those the only two async functions in the bot's API?
 
Woah, that's terrible, since the bot's eval worker is a huge and complex piece of code which needs to be inserted into many diverse places
We have state transitions everywhere, can't afford globals
 
@Zirak terrible and ugly are two different things, you know that.
 
9:52 PM
!!s/code/man hunk/
 
@RUJordan Woah, that's terrible, since the bot's eval worker is a huge and complex piece of man hunk which needs to be inserted into many diverse places (source)
 
Yeah, that just happened.
 
@BenjaminGruenbaum Those are basically the only two async functions you have left once globals are stripped
Actually, overwriting setTimeout and setInterval sounds like an ok solution. It can come alongside wrapping promises.
 
@Zirak ok, just overriding setTimeout to increase a counter when it gets called and decrease one when it's done, and doing the same for setInterval, and for Promise.then and new Promise (since it also does deferred execution) would work, if we didn't forget anything.
I think unwrapping promises is a lot less brittle, but I can see how overwriting setTimeout and setInterval would work.
 
I want a solution that'll work for people just calling setTimeout
Without the need to educate them
 
m59
@BenjaminGruenbaum doh - I did miss a return. Tired eyes.
 
!!youtube day of wreckoning
 
m59
@SomeKittensUx2666 sold
 
!!youtube all of my best friends are metalheads
 
9:56 PM
 
@SomeKittensUx2666 sounds like all the problems are with the pay grade which doesn't sound like a problem in your case.
 
I don't know why, I just really love the drums in that song
 
m59
oh wait...I don't drink. Dern, I was looking for the perfect thing to waste a few years pay on.
 
@BenjaminGruenbaum Yep. Also influencing the SNR is the number of out-of-country workers.
 
@Zirak you can unwrap functions, but that'd be uglier since you can't return functions which is bad.
 
9:57 PM
Trying to decide if there are plenty of happy people who have never bothered to post on Glassdoor.
 
@DonavonLerman 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.
 
@m59 you could always start purchasing female escorts and lots of illicit narcotics
 
m59
I hear meth does wonders for narcolepsy.
 
Or in-app purchases. TBH they're both the same risk on your life
 
9:59 PM
@m59 you'll never sleep again xD
> "Naked bald man found wrestling bear off I81 in Southwest VA"
"...Johnny?!?!"
> "This just in, the bear has tapped!"
 
m59
Funny (actually sad) story - there was a woman that had it for a long time undiagnosed. In high school, her grades started slipping, lost social interest, etc. People, including her parents, suspected her of being on drugs.
Incidentally, she started trying narcotics to feel better.
 
Oh no :(
 
m59
Which she did - her grades improved, social life, etc
And she was a drug addict
 
I'm helping my best friend get off painkillers right now. It's kind of frustrating, but he's improved a lot
 
m59
years later, she dropped the drug habit, then went downhill with the narcolepsy (always sluggish, less social, work performance issues) and people suspected her of being on drugs again (never knowing she was in the first place) LOL
@RUJordan glad to hear that
 
10:03 PM
Speaking of, he's calling me now. Means he's off work and ready to see a movie!
!!afk chasing waterfalls
BYE! <3
 
m59
holla!
 
wooo druuuugs
 
!!youtube we're all on drugs
 
@whistler 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.
 
@whistler Toronto? Talk to @rlemon
 
10:09 PM
@danjok 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.
 
@CS_STEM you do not, but that's ok, I'm going to go with the original simplest solution, as much as I don't like it
 
I hate SQL
 
@SomeKittens Mongodb FTW!
 
for the highest level language out there today, it sure is a low level language
 
@bjb568 No, not FTW. Mongo has some serious disadvantages, namely the lack of JOINs as well as no ACID compliance.
 
10:15 PM
mongo isn't ACID?
 
Correct.
 
citation needed
 
> Does MongoDB support ACID transactions?

MongoDB does not support multi-document transactions.

However, MongoDB does provide atomic operations on a single document. Often these document-level atomic operations are sufficient to solve problems that would require ACID transactions in a relational database.
CITATION PROVIDED, NOOB
 
thanks, don't work with mongo, but I've been looking at it and was curious
* douchebag
 
!!s/douche/fine hand /
 
10:20 PM
@rlemon * fine hand bag (source)
 
@SomeKittensUx2666 Who needs joins?
 
@asheinfeld 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.
 
@bjb568 Anyone with relational data
 
https://github.com/pigeonhole/JustBnW/blob/master/application.html The code.
https://marketplace.firefox.com/app/justbw/ the app.

On my desktop when I tested it while making, it was running reasonably fast on images <= 800 px width. But then when I dwled it with Firefox android browser, its running very slow even on 500px x 500px images.. How to speed it up.
I did not put the cache manifest file on github. It contains the caches of fonts and .js and .css file. Also in the webapp at marketplace, I split application.html into 3 files index.html , main.css and filter.js.
 
now I'm reminded of why I hate all of these ideas. None of my javascript url fixes will resolve the issue with urls inside of css files.
css googling would suggest that all my css should use relative paths, ugh
 
10:32 PM
yes
background: url('../images/banana.jpg');
it sounds like you have fundamental structure issues
this is not something that should be a problem
 
this is something that's wrong to it's core in my opinion
3 completely inconsistent ways to deal with urls
 
@SomeKittensUx2666 Isn't it pretty obvious that mongodb isn't for that kind of stuff?
 
I'm not following your logic
 
Relational databases cannot be converted to non-relational databases since they are fundamentally different things.
 
Also peanut butter sandwiches contain peanut butter.
You seem to be fervently arguing something no one's objecting to
 
10:47 PM
So then why are you arguing that mongodb has disadvantages when it is designed to not compete with the things with your supposed advantages? Yeah, motorcycles are cool, but that doesn't mean apples aren't cool because they don't have wheels.
 
I grumbled about SQL. You suggested MongoDB.
 
@bjb568 MongoDB is web scale.
It does sharding
 
hello all
 
hello
 
what you building @rlemon
 
10:59 PM
someone was discussing something in the HTML room earlier which resulted in this jsfiddle.net/rlemon/yC9Xp/2
 

« first day (1312 days earlier)      last day (3637 days later) »