This question is unlikely to help any future visitors; it is only relevant to a small geographic area, a specific moment in time, or an extraordinarily narrow situation that is not generally applicable to the worldwide audience of the internet. For help making this question more broadly applicable, visit the help center.
Closed 11 years ago.
I'm trying to get Ember running with BPM based on these instructions:
https://github.com/bpm/bpm/wiki/Using-BPM-with-SproutCore-2.0
Everything seems to work fine until I try to add an expression to the Handlebars template:
Congratulations! You are running HelloWorld v{{MyApp.VERSION}}
Then I get the following error:
TypeError: 'undefined' is not a function (evaluating 'a.charAt(0)')
If I remove the expression, everything works fine.
The source is here: https://github.com/nicholasjhenry/bpm_ember
Can anyone provide determine why this error is occurring?
Edit: The line that is throwing the error is:
function normalizePath(path) {
ember_assert('must pass non-empty string to normalizePath()', path && path!=='');
if (path==='*') return path; //special case...
var first = path.charAt(0); // <======
which is called by Ember.watch.
EDIT (2012/01/03)
I have updated the packages on GetBPM.org so now they work out of the box. All you have to do is run bpm add ember in your project directory and everything will work fine. I also have updated using BPM with Ember.js instructions here: https://github.com/ud3323/bpm/wiki/Using-BPM-with-Ember.
Related
Closed. This question needs debugging details. It is not currently accepting answers.
Edit the question to include desired behavior, a specific problem or error, and the shortest code necessary to reproduce the problem. This will help others answer the question.
Closed 6 years ago.
Improve this question
I have a flask app that calculates the hotness score for blog posts. However the app is susceptible to calculating wrong scores in case someone continuously refreshes a page through a script. How do I prevent this?
P.S.-New to everything. So please keep the lingo a bit basic. Thanks.
Try using cookies they store client data or introduce logins then use decorators.
This question is unlikely to help any future visitors; it is only relevant to a small geographic area, a specific moment in time, or an extraordinarily narrow situation that is not generally applicable to the worldwide audience of the internet. For help making this question more broadly applicable, visit the help center.
Closed 10 years ago.
Trying to compile hello world on windows 8, using Sublime Text 2, get the following error:
g++: : No such file or directory
g++: No input files
[Finished in 0.7s with exit code 1]
Thanks for the help.
Solved, but embarrassing to post. The issue was that I assumed that Sublime Text 2 autosaved upon quitting the program. SB2 auto-opens the last file you're working on, so I thought it was already saved. Saving the file to whatever path eliminates the error and compiles fine.
This question is unlikely to help any future visitors; it is only relevant to a small geographic area, a specific moment in time, or an extraordinarily narrow situation that is not generally applicable to the worldwide audience of the internet. For help making this question more broadly applicable, visit the help center.
Closed 10 years ago.
Label font is not working, I have added fonts folder under asset folder.
pop = CCLabel.makeLabel("Eggs left: ", "fonts/comic.ttf", 14);
CCLabel labelMainMenu = CCLabel.makeLabel("OPTIONS MENU", "Fonts/JimboStd-Regular.otf", 20);
I Think you forgot to mention the font size in float. and see that the fonts folder is created in assests ...
This was happening because of android-cocos2d.jar.. I have replaced with new jar and now its giving me changed fonts..
This question is unlikely to help any future visitors; it is only relevant to a small geographic area, a specific moment in time, or an extraordinarily narrow situation that is not generally applicable to the worldwide audience of the internet. For help making this question more broadly applicable, visit the help center.
Closed 10 years ago.
I'm trying to write text with Raphael JS, but it completely ignores the text style attributes. Other attributes like fill, fill-opacity, cursor etc. will work, but font-size, font-family etc. won't. Here's my code:
paper.text(40, 80, 'teste').attr({fill: '#fff', 'font-size': 120});
Note that the 'fill' attribute works perfectly, but the 'font-size' doesn't. I've searched the forum and found a lot of questions answered about text problems (like this one), but no one seems to be having this specific kind of problem.
Any idea of what could I do? Thanks in advance.
Ok, I've managed to solve it. There was a CSS rule overriding every text style:
* {font: 12px Arial;}
I haven't write the CSS, plus this is my first experience with Raphael JS, so I was twice unaware of it. Hope my case can help someone in the future. Thanks.
Closed. This question needs debugging details. It is not currently accepting answers.
Edit the question to include desired behavior, a specific problem or error, and the shortest code necessary to reproduce the problem. This will help others answer the question.
Closed 7 years ago.
Improve this question
We use Facebook comments and Facebook Like Buttons on our site. These somehow generate a call to http://static.ak.facebook.com/connect/xd_arbiter.php which never loads, leaving the impression that the page isn't loading. Is there a way to avoid having this script called?
Two ways,
write to Facebook and report the problem and suggest them to fix their Javascript
download their Javascript code that add button to the page, fix it and directly link to it from your server page.
Disadvantage of the last suggestion is that Facebook hosted Javascript code or back-end can be changed at any time and your old version of the script will not work.