webIDE Firefox OS simulator editor does not work - firefox-os

I am running firefox 38.0.5 on linux KDE (OpenMandriva 2014.1). When I open my firefox-os project under webIDE, I cannot edit its files. I can see the project directory structure on the left but when selecting a file (index.html for example) it is not opened in the editor panel. I keep on seeing the general description of the app. I cannot either navigate in the project subdirectory.
I have enabled the logging and this is the error I can see:
A promise chain failed to handle a rejection. Did you forget to '.catch', or did you forget to 'return'?
See https://developer.mozilla.org/Mozilla/JavaScript_code_modules/Promise.jsm/Promise
Date: Sun Jun 28 2015 12:03:54 GMT+0200 (CEST) Full Message: destroy
Full Stack: JS frame :: resource://gre/modules/Promise.jsm ->
resource://gre/modules/Promise-backend.js :: PendingErrors.register :: line 162 JS frame :: resource://gre/modules/Promise.jsm -> resource://gre/modules/Promise-backend.js :: this.PromiseWalker.completePromise :: line 675 JS frame :: resource://gre/modules/Promise.jsm -> resource://gre/modules/Promise-backend.js :: Handler.prototype.process :: line 903 JS frame :: resource://gre/modules/Promise.jsm -> resource://gre/modules/Promise-backend.js :: this.PromiseWalker.walkerLoop :: line 746 JS frame :: resource://gre/modules/Promise.jsm -> resource://gre/modules/Promise-backend.js :: this.PromiseWalker.scheduleWalkerLoop/> :: line 688 native frame :: unknown filename :: TOP_LEVEL :: line 0
Only the webIDE editor is not working. The rest of the functionalities are working fine.
I have tried to open and edit with webIDE the same project with another computer (MS Windows) and it works perfectly.
Any hint would be welcome. Thank you!
EDIT: This problem will be fixed with Firefox 44.0. As sugested in bugzilla bug 1208713 I have tested it successfully with the Firefox Nightly (44 at that time).

This problem will be fixed with Firefox 44.0. As sugested in bugzilla bug 1208713 I have tested it successfully with the Firefox Nightly (44 at that time).

Related

\DeclareSymbolFont Not working with Ankiweb app

I am attempting to use math symbols that don't exist by default as part of existing packages in Options for notes (eg. amsmath). I tested the below code in TeXworks (pdfLaTeX) with no issues.
\DeclareSymbolFont{matha}{OML}{txmi}{m}{it}% txfonts
\DeclareMathSymbol{\varv}{\mathord}{matha}{118}
...
$ \varv = 0 $
Upon adding the \DeclareSymbolFont... and \DeclareMathSymbol... lines to
Tools => Manage Note Types => Options, and inserting the lines before \begin{document}, I tried below lines in Ankiweb app Card
\( \varv = 0 \) or [$] \varv = 0 [/$],
but ankiweb app doesnt convert this to the right symbol as it does with TeXworks
Is there something I need to do specifically? Or is the above steps not allowed in Ankiweb app.
Ankiweb app details:
Version ⁨2.1.54 (b6a7760c)⁩
Python 3.9.7 Qt 5.15.2 PyQt 5.15.5

MoveFileEx with MOVEFILE_REPLACE_EXISTING flag Fails with LastError = 183

We have an application that makes a backup of a configuration file by copying it to a sub-folder (see log file entry below) using the following command:-
BOOL b = MoveFileEx(ExistingFileSpec, NewFileSpec, MOVEFILE_REPLACE_EXISTING | MOVEFILE_WRITE_THROUGH | MOVEFILE_COPY_ALLOWED);
This appears to work as expected on most systems but on two we get the following warning in our log file:-
11 Jun 2018 10:58:05.437 W. COMMON WARNING MoveFile failed on C:\Program Files\Configuration\Stores.xml to C:\Program Files\Configuration\Backup\Stores.xml LastError=183
Lasterror =183 means "ERROR_ALREADY_EXISTS"
This is odd since MOVEFILE_REPLACE_EXISTING is specifically meant to enable this command to work when the target file exists.
This is happening on Win7 x86 machines.
In a previous version of the code MoveFile was used but with a DeleteFile call immediately prior to ensure the target file did not exist. When the code was rolled back to this version it works.
Any suggestions?

Inkscape 0.92.2 compilation: links with two libMagick versions

I've compiled Inkscape 0.92.2 (on Slackware64-current Linux), and I can't export to PNG.
I found some references that libpng could be the culprit. Indeed, I found that the inkscape executable was linked with two versions of libpng (1.5 and 1.6).
A lot of tracing and debugging showed that the probleem seems to be that the executable is linked with two versions of libMagick (6 and 7), which import different versions of libpng.
Checking the Inkscape config.log file shows that indeed both libs are accessed:
pkg_cv_IMAGEMAGICK_LIBS='-lMagick++-6.Q16 -lMagickWand-7.Q16HDRI -lMagickCore-7.Q16HDRI'
Edit: As per emcconville's suggestion, I added --with-magick-plus-plus=yes and recompiled everything (both ImageMagick and Inkscape. No luck though:
$ ldd /usr/bin/inkscape | grep Magick
libMagick++-6.Q16.so.5 => /usr/lib64/libMagick++-6.Q16.so.5 (0x00007f5ee46f3000)
libMagickWand-6.Q16.so.2 => /usr/lib64/libMagickWand-6.Q16.so.2 (0x00007f5ee43d3000)
libMagickCore-6.Q16.so.2 => /usr/lib64/libMagickCore-6.Q16.so.2 (0x00007f5ee3d23000)
libMagickWand-7.Q16HDRI.so.5 => /usr/lib64/libMagickWand-7.Q16HDRI.so.5 (0x00007f5ee2e9b000)
libMagickCore-7.Q16HDRI.so.5 => /usr/lib64/libMagickCore-7.Q16HDRI.so.5 (0x00007f5ee27a3000)
Maybe there's another library pulling in version 6. Though I can't seem to find which.
Edit2: Before applying emcconville's steps, I wanted to understand what was going on...
These are the actual libs and their links:
libMagick++ so -> so.5.0.0
so.5 -> so.5.0.0
so.5.0.0
libMagick++-6.Q16 a la so -> so.5.0.0
so.5 -> so.5.0.0
so.5.0.0
libMagick++-7.Q16HDRI a la so -> so.4.0.0
so.4 -> so.4.0.0
so.4.0.0
libMagickCore-6.Q16 a la so -> so.2.0.0
so.2 -> so.2.0.0
so.2.0.0
libMagickCore-7.Q16HDRI a la so -> so.5.0.0
so.5 -> so.5.0.0
so.5.0.0
libMagickWand-6.Q16 a la so -> so.2.0.0
so.2 -> so.2.0.0
so.2.0.0
libMagickWand-7.Q16HDRI a la so -> so.5.0.0
so.5 -> so.5.0.0
so.5.0.0
libMagickCore so -> so.5.0.0
so.5 -> so.5.0.0
so.5.0.0
libMagickWand so -> so.5.0.0
so.5 -> so.5.0.0
so.5.0.0
This seems acceptable, except for the (unversioned) libMagic++, libMagickCore, and libMagicWand which I suspect are version 5.xxx and can be removed.
The .PC files are a little more complicated:
---- Version 6 pc files ---------Version 7 pc files ------
ImageMagick-6.Q16.pc ImageMagick-7.Q16HDRI.pc
ImageMagick++-6.Q16.pc
Magick++-6.Q16.pc Magick++-7.Q16HDRI.pc
MagickCore-6.Q16.pc MagickCore-7.Q16HDRI.pc
MagickWand-6.Q16.pc MagickWand-7.Q16HDRI.pc
--- Relationships:
ImageMagick.pc -> ImageMagick-6.Q16.pc
Magick++.pc is same as Magick++-7.Q16HDRI.pc (not a link!)
MagickCore.pc is same as MagickCore-7.Q16HDRI.pc (not a link!)
MagickWand.pc is same as MagickWand-7.Q16HDRI.pc (not a link!)
Note: ImageMagic.pc is pointing to version 6,
and there is no ImageMagick++-7.Q16HDRI.pc generated (even enabling the ++ compile option)
Edit3: Today I recompiled the last version of ImageMagick once again, this time monitoring much more closely which files it generates, and installs. #emcconville's suggestion to use symlinks for the pc-files does not seem to be entirely practical, as each install will overwrite those symlinks.
(see the last table in edit2). Still, while this system is as it is, there doesn't seem any other solution.
I think I know what's going on, but it's more of a "hunch" than an answer.
I'm suspecting that an extra .pc script is floating around, and you just need to delete it.
Find the location of ImageMagick.pc & ImageMagick++.pc. This is usually under /usr/share/pkgconfig/, /usr/local/share/pkgconfig/, /usr/lib/pkgconfig/, /usr/lib64/pkgconfig/, & etc etc etc.
Don't just stop at the first match, but scan everything with locate, or find utility.
find /usr/ -name "ImageMagick*.pc" -type f
You should have a list that looks something like ....
/usr/local/share/pkgconfig/ImageMagick++.pc
/usr/local/share/pkgconfig/ImageMagick.pc
/usr/local/share/pkgconfig/ImageMagick++-6.Q16.pc
/usr/local/share/pkgconfig/ImageMagick-6.Q16.pc
/usr/local/share/pkgconfig/ImageMagick++-7.Q16HDRI.pc
/usr/local/share/pkgconfig/ImageMagick-7.Q16HDRI.pc
Nuke the offending files.
# Create a backup place
mkdir -p ~/backups
# Archive `.pc' files for future investigations.
gzip < /usr/local/share/pkgconfig/ImageMagick.pc > ~/backups/ImageMagick.pc.gz
gzip < /usr/local/share/pkgconfig/ImageMagick++.pc > ~/backups/ImageMagick++.pc.gz
# Remove
sudo rm /usr/local/share/pkgconfig/ImageMagick.pc
sudo rm /usr/local/share/pkgconfig/ImageMagick++.pc
# Repeat as nessasry for duplicate instances,
# but KEEP files with version prefixes (i.e `-6.Q16' & `-7.Q16HDRI')
Create symbolic links (assuming ImageMagick-7 is the default version for your system).
sudo ln -s /usr/local/share/pkgconfig/ImageMagick-7.Q16HDRI.pc /usr/local/share/pkgconfig/ImageMagick.pc
sudo ln -s /usr/local/share/pkgconfig/ImageMagick++-7.Q16HDRI.pc /usr/local/share/pkgconfig/ImageMagick++.pc
Rebuild inkscape, and confirm issue is resolved.
Write a note to your future self describing what you did, and steps repeat/restore. Some programs haven't migrated to IM-7, so it's more than possible that you'll need to updated the generic .pc files to point to IM-6 (or other way around).

pdf2swf.exe Error on IIS

I am trying to convert PDF files to SWF using pdf2swf on windows 2008 server via Process proc = new Process().
When running from Visual Studio, everything works fine. But when running from IIS, I get this on most files:
ERROR Internal error: No current splash fontinfo
ERROR Internal error: No current splash fontinfo
ERROR Invalid charid 3 for font 00f896d8 (0 characters)
ERROR Invalid charid 615 for font 00f896d8 (0 characters)
ERROR Invalid charid 602 for font 00f896d8 (0 characters)
I believe the reason is permissions but I don't know what I have to change.
Can anyone help me?
I've found solution right now. Im using windows service to convert from pdf to swf and I noticed wrong working directory. For me it was syswow64. PDF2SWF had no permissions to create temporary files. I set working directory property in ProcessStartInfo and now it works great.

TortoiseSVN never runs post-commit.bat

I have set up my subversion/trac environment on Windows (Now Win7, previously tried on Vista) and all works perfectly. But I can't get my post-commit to work.
Here's the setup (using VisualSVN and Trac running on Apache):
C:\Users\Martin\Repositories\test_svn\hooks:
post-commit.bat:
call %~dp0\trac-post-commit-hook.cmd %1 %2
trac-post-commit-hook.cmd:
#ECHO OFF
::
:: Trac post-commit-hook script for Windows
::
:: Contributed by markus, modified by cboos.
:: Usage:
::
:: 1) Insert the following line in your post-commit.bat script
::
:: call %~dp0\trac-post-commit-hook.cmd %1 %2
::
:: 2) Check the 'Modify paths' section below, be sure to set at least TRAC_ENV
:: ----------------------------------------------------------
:: Modify paths here:
:: -- this one *must* be set
SET TRAC_ENV=C:\Users\Martin\Trac\test_svn
:: -- set if Python is not in the system path
SET PYTHON_PATH=
:: -- set to the folder containing trac/ if installed in a non-standard location
SET TRAC_PATH=
:: ----------------------------------------------------------
:: Do not execute hook if trac environment does not exist
IF NOT EXIST %TRAC_ENV% GOTO :EOF
set PATH=%PYTHON_PATH%;%PATH%
set PYTHONPATH=%TRAC_PATH%;%PYTHONPATH%
SET REV=%2
Python "%~dp0\trac-post-commit-hook" -p "%TRAC_ENV%" -r "%REV%"
trac-post-commit-hook:
Grabbed from http://trac.edgewall.org/browser/branches/0.11-stable/contrib/trac-post-commit-hook
I have tested the scripts in a cmd window and they work all the way. But on a TortoiseSVN commit, nothing happens, which makes me believe that Tortoise never runs the post-commit.bat.
I have also tested a simple pre-commit, and that works.
The strange thing is that is HAS worked before, but I think I used an earlier release of VisualSVN then.
Does anyone have any idea on what's going on here?
Thanks a lot!
/Martin
The post-commit hook is run server side. If the hook is implemented correctly, it should work for any Subversion client. You'll want to take a look at this chapter from the SVN book.
Follow-up: You might take a look at this blog entry.

Resources