Running Jasmine testing on Ubuntu. Page not found - javascript

I installed Jasmine-gem on my project without rails usage as my app is php based on Ubuntu. I go to localhost:8888 as said and get page not found in any browsers. Am I missing a basic HTML page like the standalone install or something?.
I know this isn't a full gems issue because compass and other gems function fine.
Can't figure out what I am doing wrong, it is able to find the specs in the command line.
I could just load jasmine standalone but if is possible to get this running, I would really appreciate it!
Thank You.

Forgot to mention I am running Windows. Since Jasmine will run on its own server, I installed it directly on Windows and it works fine. Thanks again for your help. Sometimes you wonder which way you want to go on a shared file system.

Related

getting jdk and intellicode errors in vs code. how do i fix it?

I am a very early beginner to coding. I downloaded VS Code so that I could, you know, have somewhere to code in Java. However, I keep getting these two errors telling me these two extensions that I already have installed on VS Code are not working here are the error messages. I already searched through the odds and ends of StackOverflow and have tried everything, and nothing has worked. Any help would be appreciated.
I inputted some code into settings.json under a "java.configuration.runtimes" thing but nothing in it worked. I conformed it to my installation directories and current Java version
Do you have a JDK (Java Development Kit) installed?
If you are on Windows, you can check by clicking on the start button, and search through applications and programs for a Java folder.
If you are on MacOS or Linux, you can open up the terminal/command line and type in "java -version" and if it is properly installed, it will display the version.
If you do not find a JDK installed, install one from https://www.oracle.com/ca-en/java/technologies/downloads/
Download and install the Coding Pack for Java.
It would be helpful to follow this documentation to get started.

Electron NPM application cannot find file:///eel.js, but python can

I'm building a desktop application using Python, JS, HTML and CSS. I'm connecting python using eel. When I launch my desktop application through the python terminal, it works perfectly.
However, when I launch the app through electron via command line:
$npm start
The desktop application loads up, but it doesn't execute on any of the python backend, explained well by this error in the inspector:
Failed to load resource: net::ERR_FILE_NOT_FOUND eel.js:1
I'm not sure what is causing it, I have spent the last 8 hours testing things but to no avail.
I know you may need more information but I've been checking everything, from file structure i.e. the __.py outside web folder, to inserting <script type="text/javascript" src="/eel.js"></script>, so please comment below what specifically you require as including every possible cause would be a very huge question. I will include whatever is relevant in edits in this question alongside the final answer for anyone with similar issues in the future.
No need to run from npm. eel.js is just virtual javascript, dont bother with it.
Put this in your your_main.py file
import eel.browsers
asign your electron browser
eel.browsers.set_path('electron', 'node_modules/electron/dist/electron')
and then use it
eel.start('main.html', mode='electron')
to run, call from python:
python your_main.py

Nuxt.js: How to debug server side after nuxt build (logging some information)

I am using nuxt.js for my frontend app. I currently have a problem with asyncData especially the first time it is run (which is on the server).
When building my app ($ nuxt build and serving it via $ serve), I currently have no real possibility to console.log some information out from the code that is run on the server. How can I debug that part, before code is run on my client?
Would this be a way:
https://codeburst.io/debugging-nuxt-js-with-visual-studio-code-724920140b8f
So I would launch nuxt manually with node.js and try to inspect something there?
Or is there a better way?
The nuxt build properties (https://github.com/webpack-contrib/webpack-bundle-analyzer#options-for-plugin) are just for analyzing the build right? Like package sizes etc, and not for actual code that is run on the server?
I hope I could make clear what I am looking for, if not I am happy to answer further questions.
Any hints are very welcome. Thank you in advance.
cheers

FullCalendar display on localhost but not on server

I'm currently building a rails app and I need a calendar to display some events so I decided to use FullCalendar.
The calendar works fine on localhost but when I deploy my app on a server, the calendar won't display anymore! I figured out that I have a Javascript error which is not there on localhost.
TypeError: undefined is not a function (near '...$('#calendar').fullCalendar...')
It seems to be the fullCalendar() which is not find when the page is load.
I have done some research but I didn't find anything. Does anyone ever encountered this issues and know how to fix it?
Thank you!
Did you need to rebuild your assets pipeline using rake assets:clean and rake assets:precompile? Don't know if anyone else has observed this behavior, it may be specific to my installation, but whenever I run a rake assets command I have to check the file permissions in my project directory because one or two will have their values changed from 755 to 600 (assuming linux environment). The errors that result are not very helpful in identifying this!

Custom script in electorn builder?

I'm working on an Electron application and am using electron-builder to generate a windows installer and dmg for mac.
Everything works great, I was able to set up auto update and use other features of electron-builder.
Now I need to include other files that are not part of my electron project and execute them in order to install them during the installation process (on windows).
From the electron builder docs (https://github.com/electron-userland/electron-builder/wiki/Options#NsisOptions) I found out that a custom script can be used (NSIS, which I'll have to learn). I've tried including a test script but nothing seems to happen, has anyone here tried this?
The docs don't seem detailed enough in that regard so it's been very confusing.
Thanks a lot in advance!
So after looking at different places I found out that setting win.target to nsis and perMachine to true will generate the NSIS installer.
It does work, but then sadly there are no auto updates.

Categories