So I want to start using dc.js package to create a few dashboards, and I've found this tutorial:
https://github.com/austinlyons/dcjs-leaflet-untappd
I've downloaded the entire folder and attempted to open the html to see whether it works, but I only get some parts of the page (no data, no graphs, you can see the expected and gotten image attached). I've had the same problem with some other tutorials that I've found, and can't figure out why. I can open the page in the browser when it is a link like:
https://austinlyons.github.io/dcjs-leaflet-untappd/
Any ideas? I am using Chrome btw, but it doesn't work in IE either.
You need to run python -m SimpleHTTPServer in your terminal.
Try it yourself
If you want to play with the code as we go, I recommend downloading
the source code from this GitHub repository, navigating to the
directory where the files are located, and kicking off Python's
SimpleHTTP server so that you can see your visualization in your own
browser at http://localhost:8000 (If this is new for you, see this
link for a bit more information).
If anyone is interested there is a very nice workaround for those not willing to play around with a server. For some reason Firefox allows the opening of such pages, so one can test D3 and similar code in it without having to run a server.
Related
I found a game online, or which the source code is here, and I wanted to mod it. However, after modding it online on Github for a while, I was being driven crazy, by the github pages load time and my browser cache, which seemed to defy all attempts at deletion.
Finally, I attempted to use NWjs to load it. But, now the audio doesn't play at all. How do I fix this?
Note, the sounds, like the ding and select noise play, but not the bgm. All of them are .ogg files.
I'm using windows 10.
Another note, I pushed my version to Github and then checked out the gh-pages, which worked. So it's probably a problem with NWjs or my computer or both.
You probably need proprietary codecs.
Easiest way:
Switch to the latest version supported by the prebuilts (currently 0.55.0)
https://github.com/iteufel/nwjs-ffmpeg-prebuilt/releases
Download the version you need, unzip, and place it with your NW.js files.
More details:
https://nwjs.readthedocs.io/en/latest/For%20Developers/Enable%20Proprietary%20Codecs/
I downloaded the files you linked. I put that folder inside another called "game". Made a game/package.json file with this:
{
"main": "c2-sans-fight-gh-pages/index.html",
"name": "example"
}
Downloaded the Win 64 SDK version of NW.js v0.55.0.
http://dl.nwjs.io/v0.55.0/nwjs-sdk-v0.55.0-win-x64.zip
Dumped those files into the game folder so nw.exe was next to package.json and then ran it, and it worked fine. All audio played normally. I did not need to pull in the modified ffmpeg at all.
I cleared all things I could find, so ~/AppData/Local/nwjs and ~AppData/Local/<projectname> and ~/AppData/Roaming/<projectname> all got deleted, then I ran it again and it worked.
EDIT: It seems that I have to re-delete the cache files again and again before each launch. Guess I'll write a python script to handle this.
I'm running a nodejs application on Heroku. For simplicity's sake, I went through Heroku's example application steps. Once the application was up and running, I created a public/js/test.js file which contained a simple alert( 'testing' ); command.
I then came back to the view/partials/header.ejs file and included the new test.js file appropriately. Obviously, all of this works as intended locally - but when I push it to Heroku I get no alert. When I check source using developer's tools I see that it found the js file, but clicking on it reveals an empty file.
I assume that Heroku must require some sort of build step for this - but I haven't been able to find a specific path to getting it working. Any help would be appreciated!
So, it turns out that the Brave browser was interfering with the javascript file. I've never known Brave to cause a problem like this (and locally Brave did not break it). The issue must have something to do with how Heroku loads some of the static files.
Hopefully posting this answer will help someone else encountering the same issue.
So this is a follow up question to an earlier question I had regarding a Udemy course on "Advanced Javascript I am taking. I am currently trying to follow along with a lesson on IIFE.
The instructor is using Chrome DevTools to show JS examples, and created the following three snippets - main.js, other.js, index.html.
As per an earlier question I had answered, it appears that the instructor is using Workspaces to map files from a local directory to work on them in Chrome DevTools (otherwise the index.html wouldn't function in DevTools just using snippets)
So... I paused the Udemy course to complete this short Workspaces demo. After completing the demo, I went back to the Udemy course, created a local directory with the main.js, other.js, and index.html files and tried to follow the instructions per the Workspaces demo for my Udemy files.
However, after running in my js-advanced/IIFE directory and navigating to localhost:8000 in Chrome, I still see the old index.html from the Workspaces demo. Even after navigating to Sources > Filesystem and opening up the new folder, I can't get the page to map to my new directory.
I am assuming that there's something I'm missing regarding ports being opened and not closed after following the tutorial. But maybe not. Can someone please explain what I'm doing wrong?
P.S. I'm technically using Brave Browser but it's built on top of Chrome so I don't think that should matter.
I am attempting to connect to my Informix database via NodeJS on MacOS, something I would have thought was reasonably simple. However, after Googling the issue, it seems that I am required to download a driver from IBM themselves, and this is the start of the problems...
I have seen the ifx_db and informix npm libraries which give instructions to download the informix SDK from IBM themselves, however any link I click on refers me to this page:
however I cannot seem to get to download the SDK itself, it just tries to make me download some sort of fix...
and going through this ends up with some sort of error, not being able to download anything...
Can anybody tell me if I am doing something wrong, looking in the wrong place? This is starting to become rather annoying!
UPDATE
I have since been able to follow down the rabbit hole to find this download page, but I cannot actually download the thing!
#jsagrera had it right.
This is a link where I Could correctly download everything, requiring IBM's specific downloader first (sigh). Things appear to be installed correctly after doing all of this.
Once the downloader is installed (Java may need updating first), it will automatically download the SDK file
I have the latest shock wave (11.9.900.117) add-on installed to my Firefox (24).
When i download and run the sample test.html file nothing is happening.But when i run the same demo linked (http://pixelgraphics.us/downloadify/test.html) HTML from Git hub works as expected.
Also i have tried this with my project too, same kind of output, nothing happens but the button hides.There are no error messages shown or can be caught since i cant go through the swfobject.js file.
I am using javascript alone, not jquery etc.
Is there anything that i am missing some basic stuffs?
Also asked in https://github.com/dcneiner/Downloadify/issues/34.
Any simple working examples would be helpfull.!!
Thanks in advance.
I know this question is old, but for anyone who encounters the same problem, here is how I solved it.
If you want to run Downlodify from the local filesystem you need to edit the Flash Player Global Security Settings and add the Downlodify folder as a trusted location.
Currently the settings can be edited here. The location URI looks like this file:///C:/Users/Name/Desktop/Downloadify-master