What is the recommended why of using derby.js - javascript

I'm trying to figure out how to install and use derby.js.
I have installed node.js version: 0.8.17
I have cloned derby from github, and installed, version: 0.3.13
I have installed derby-examples, also version 0.3.13
The examples don't really work.. the page renders but nothing dynamic happens.
What am I doing wrong?
What is the correct why of working with derby? should I install with the package available with npm, or do I need to use github?
I can't make it to work... going crazy
Thanks!

I hope this helps someone:
I managed to solve my problems after finding this wiki-page:
https://github.com/codeparty/derby/wiki/Using-Derby-%22Edge%22

From version 0.5 you can just use npm version.

I was having trouble too until I encountered https://github.com/derbyparty/generator-derby
Try running this with all the advanced options turned off, it gives a nice working starting point for new Derby projects. There is no dynamic behavior though, you'll need to add that yourself. I found that a good starting point is modifying the app based on the steps explained in this Multi-Player Notepad video https://www.youtube.com/watch?v=V0DOGXmaT3g

Related

React Project Looking Different on Localhost and gh-pages enviornment

React beginner here trying to make a portfolio. I ran into an issue which I could not find any answers for hence posting here.
My project uses react-mdl and particularly the projects page, which uses a <Grid/> component. When I view my project in a mobile interface (tested on FireFox and Chrome dev tools as well as a mobile device (OnePlus 7 Pro)), I get my desired layout. However, when I pushed the same code to Github Pages, the layout was remarkably different and certainly not appealing to the eyes.
The following screenshots should explain it better
Localhost view
Github Pages View
I am not necessarily sure what exactly is causing the issue and have tried multiple "fixes" which have unfortunately not worked out thus far and would really appreciate a push in the right direction.
I also apologize for linking the code and not posting it directly, however, I did not wish to clutter the post with that much media since the files are relatively big.
Thank you in advance and please let me know if I can provide any more information, I would be very pleased to.
It looks like the public folder in your repository hasn't changed in the last month. If you aren't building your project before deploying it to gh-pages then your live website will be using an older version which likely has these formatting issues.
Use npm run build, and then npm run deploy. This will update your public folder with the latest changes you have made, and then deploy these newer changes.
You can read more about the public folder for your CRA here - https://create-react-app.dev/docs/using-the-public-folder/

Ways to identify if my clients are using the CDN or NPM versions of my JS library?

I am currently in the midst of thinking of launching an open sourced version of my library on NPM. However, I'm wondering if there is a way for me to know whether the clients are using my CDN/NPM especially.
Is there anyway that this can actually be done?
I've thought about this and have come up with one idea so far:
Adding a commit tag to the minified file, which allows me to see the commit hash of a version either from NPM, or from our own CDN.
Would be good to hear if anyone else has ideas!

Disintegrate.js and htmlcanvas.min.js seem not working

I have a problem, i used disintegrate.js and html2canvas.min.js libraries to help me create a vanishing screen when an image is clicked on. But it seem not working. please help me out
I have tried reviewing the codes over and over to see if there is an issue but nothing yet.
I used npm to install the disintegrate and html5canvas respectively
okay i think i came across this issue sometimes back but i didn't use npm to do it, i downloaded the disintegrate.js and html2canvas.min.js libraries files and used it then it worked. I think the problem is from the npm installation, so you can check how to install desintegrate https://github.com/ZachSaucier/Disintegrate and try again.
techibytes

Building a new Cocos2d javascript project fails

I've just installed cocos2d-iphone and installed the XCode templates as described here. I've created a new "Cocos2d OSX with JavaScript"-project. Now, when I try to run the new project, I get a build error in jsb_core.mm, complaining that jsb_opengl_registration.h is not found. I've tried to google jsb_opengl_registration.h, but nothing turns up.
Do anyone out there know how to deal with this? Thanks! :)
As it turns out that, the jsb lib binding template templates/Xcode4_templates/lib_jsbindings.xctemplate/TemplateInfo.plist was falling behind a little. The problem has been resolved in https://github.com/cocos2d/cocos2d-iphone/commit/32fe67c6f31684dd3a235f6dfb5e64f49ce2edfc, so doing a fetch and installing the templates again fixes the problem.

Autocomplete in Aptana

I am using Aptana studio 3 for web programming. Also I use jQuery for the same purpose. The problem is with the autocomplete in Aptana. For instance I am getting this:
$('div').click(function() {
${0:
\}});
Instead of this:
$('div').click(function() {
});
Maybe there is some way to change it (the same happens with other jquery aoutocomplete options).
Thanks!
I had a similar thing happening when trying to type $.ajax... Aptana would insert Array(...
I discovered I needed to install the jQuery bundle!
Open the commands menu > bundle development > install bundle
In the "select bundle to install" window, choose jQuery and hit OK. That's it! You may need to restart Aptana.
Hope this helps.
Try to use latest vsdoc file and use it for code completion. The latest one could be found here. Also please check following related question.
I don't know if this will work for you, but you can try it if you're only using JavaScript and jQuery. https://github.com/JockiHendry/aptanastudio-contentassist-patch

Categories

Resources