Google chrome, native client support and development - c++

I would like to write a small C++ app and run it on chrome using the native client API.
I have a few questions though:
1) I compiled the examples on Ubuntu and ran the code on firefox but can't run it on chrome (using version 5.0.342.7 beta)
Do I need to install something? An extension/plugin?
2) I can't find a single online application I could run? Links anyone, I want to see the power of this thing without having to compile the code locally.
Thanks for your help,
-hbt
PS:
I don't know what's the policy with asking multiple questions. If it's a problem, let me know and I will create multiple threads.
More details:
Already read doc at
http://code.google.com/p/nativeclient/wiki/NativeClientInGoogleChrome
Running with --enable-nac from the command line and I have this error
.mozilla/plugins/sel_ldr_bin.trace: cannot dynamically load executable
I already built and installed sel_ldr
./scons -c --mode=opt-linux sel_ldr
./scons -c --mode=nacl
./scons run_all_tests
./scons --mode=opt-linux npGoogleNaClPlugin
./scons --verbose firefox_install
Works in firefox! not in chrome
Double checked about:plugins in chrome
Native Client Plugin is enabled and pointing to
.mozilla/plugins/libnpGoogleNaClPlugin.so
Please advise
Thanks

Did you launch Chromium with the following parameter --enable-nac.

1) Firefox is not supported now(maybe in the future it will be supported again). It seems that you are not using the latest SDK.
2) You need to use newer Chrome browser(yes Chrome is running nativeclient module now as well). In Ubuntu, you may use the google repository for testing
deb http://dl.google.com/linux/deb/ stable non-free main
deb http://dl.google.com/linux/deb/ testing non-free main
and the package of the chrome in dev channel is named 'google-chrome-unstable'. For more information of google linux repository, refer to: www.google.com/linuxrepositories/
3) Native Client's SDK is separated into nativeclient-sdk. It's easy to use. Here is the guide: http://code.google.com/p/nativeclient-sdk/wiki/HowTo_GetStarted
Have Fun!

Related

File upload Selenium Web driver python in linux machine calling a remote machine

Hi I have scenario that needs to upload a file in a webpage. Actually I know that selenium will not support file upload scenario. But this can be done in python with external libraries such as AUTOIT, PYWINAUTO. But the challenge is i have to run my code in a linux server that is going to call a windows remote machine.
When i tried installing pywinauto in linux server i got an error in importing winreg library. Hence i dont know how to proceed further. Please help me out to solve this scenario.
Both AutoIt and pywinauto are Windows-only libraries (at least for now). If you need to automate file upload on Linux, consider using AT-SPI accessibility (say pyatspi2 package).
If it's a server without X and DBus, I think the question is about remote code execution from Linux to Windows. Good option for the SSH remote execution is Fabric (very pythonic & nice), but using Cygwin or OpenSSH might be an additional challenge for you. There are many other tools like Ansible etc.

Step by Step install of wso2 EMM for Ubuntu

I've visited the wso2 website and the install instructions are very disjointed in that there is a lot of jumping around between pages. I've seen the following blog that seemed to streamline the instructions but it doesn't seem complete (plus it's out of date with the version it's installing) - https://maxmalm.se/blog/2014-06-17-installing-wso2-enterprise-mobility-manager-110
Has anyone seen step-by-step instructions on what needs to be done to completely setup wso2-EMM on a newly installed Ubuntu 14.04 virtual machine with just the O/S on it and none of the pre-reqs installed yet? The blog I mentioned above seems to give a lot of the necessary apt-get install bits but doesn't mention anything about a database (yet the wso2 has a whole section on installing and using a database).
Thank you.
To try out WSO2 EMM you will only need to have JDK 7 or 8 [1] installed as minimum to start off the server. WSO2 products are build to run with OOB database which is H2. So to get things started and play around, I suggest that you install java and then start the pack to get things going.
[1] https://docs.wso2.com/display/EMM201/Installing+on+Linux+or+OS+X
To getting started all you need is JDK installed in your machine and setting the Java related environment variables like PATH, JAVA_HOME. You might have to install the correct version of JDK for the particular version of the EMM.

Heroku: Replacement for Anvil builds?

I used to use Anvil (through hammer) to build some native libs to be bundled with a rails app. Specifically I was building libapngasm using this:
https://github.com/Kagetsuki/heroku-buildpack-apngasm
Unfortunately it seems Anvil has been discontinued and I couldn't find any information on how to do a remote build and retrieve the resulting binaries through the Build API.
Is there a new alternative to Anvil? What is a "correct" way to do this?
OK, the official answer here was a little more obvious than I had expected. Basically if you're running the same gcc/libc~ as that stack your dyno is running compile locally. Otherwise just spin up a VM or a docker image with a compatible version and build on that. Then just vendorize the libraries/binaries into your app repository so they'll be bundled up with the slug when you push. Finally, set your heroku environment load path to find the libs/bins you bundled.

Installing open source web-based software?

new to working with Web Servers and despite my tedious Googling, I think I am missing some of the most general (obvious?) questions regarding how to install an open source web-based program.
I have a dedicated server running CentOS 6, 32GB of RAM, etc........ I used a SSH Client to install the prerequisites of PandoraFMS. Everything installed finE.
Now what, just upload all the open-source files onto the web server?? That's the part I am not understanding about the general process of installing an open source program using build files, do I just UPLOAD it all to my server, or am I missing something???
You use Yum from the command line. Here is a link to the documentation http://www.centos.org/docs/5/html/yum/sn-managing-packages.html. If you really want a linux box that is easy to use I recommend Ubuntu. Good Luck

Mylyn & Redmine Integration

I'm trying to get Mylyn and Redmine work together so I can manage tasks right inside Eclipse. I saw this on redmine wiki http://www.redmine.org/wiki/redmine/HowTo_Mylyn but I think it's for the old version of Mylyn.
I can't find the Generic Web Connector plugin for Mylyn but there's this Web templates plugin. I think that one replaced the Generic Web Connector. But it's quite different from the screenshots posted at the Redmine wiki. There's no Task URL, New Task URL, etc.
Here is what you are looking for:
http://sourceforge.net/projects/redmin-mylyncon/
A Mylyn connector specially for RedMine. It works fine with eclipse ganymede.
The update site is: http://redmin-mylyncon.sourceforge.net/update-site/N/
Here are the steps to perform integration between Eclipse Mylyn and Redmine.
I assume that Eclipse, Mylyn and Redmine are already installed, the latter somewhere in $REDMINE_HOME. Tested with Eclipse 3.7 and Redmine 1.2.1.
Summarily, you need to install an Eclipse plugin AND a Redmine plugin.
Go to $REDMINE_HOME/vendor/plugins and run
git clone git://redmin-mylyncon.git.sourceforge.net/gitroot/redmin-mylyncon/redmine-mylyn-connector
(Re)start the server, and in Redmine under Administration/Plugins the Mylyn Connector Plugin should be listed
Again in Redmine, under Administration/Settings/Authentication, check the "Enable REST web service" field
In Eclipse, install the Eclipse connector via its update site
http://redmin-mylyncon.sourceforge.net/update-site/N/
Create your repository and check that it connects, then you are good to go!
See this manual.
http://wiki.eclipse.org/index.php/Mylyn_Extensions
Eclipse Menu.
Help -> Software Updates ... -> Add Site...
http://download.eclipse.org/tools/mylyn/update/incubator
http://www.redmine.org/projects/redmine/wiki/HowTo_Mylyn
http://danmunn.github.com/redmine_mylyn_connector/
https://github.com/danmunn/redmine_mylyn_connector
As of july 2012 now there is a new dedicated Redmine-Mylyn-Connector under active development for Redmine 2.x! (Got to admit, I haven't tested it yet.)
I am in the process of testing the 1.x connector that can be found on sourceforge, I will edit this post once I am done.
EDIT:
The update-site for the mylyn-plugin from the link in the accepted posting works.
As well as the mylyn-connector for the redmine installation. (Tested with 1.3.2 installation, don't forget to restart the web server after installing it. ;))
But both things aren't working out... once the mylyn-connector is installed, the web-interface is not working anymore. ;(
EDIT2:
The special connector works with 2.x and Mylyn finally looks proper.
http://danmunn.github.com/redmine_mylyn_connector/ the redmine server plugin.
http://kenjiru.ro/blog/2012/02/install-the-redmine-mylyn-connector-for-eclipse another server plugin link and the eclipse connector plugin
Will look like this.
As of yesterday, Sven has taken down the update site (if you go there, you'll find nothing) since someone reported him to Sourceforge (see https://sourceforge.net/tracker/?func=detail&aid=3441532&group_id=228995&atid=1075435).
So, there are NO binaries available now for Eclipse. Does anyone know of alternative ways to get these plugins? I have no clue how to compile.
The GIT and SVN repositories are there, but again as I sad, I'm not a java programmer. Can anyone offer Sven a site where he can store the binaries as an Update?
For retrieve redmine mylyn connector
https://github.com/ljader/redmine-mylyn-plugin
In eclipse juno 4.2
"Install new software" and as local archive like in this post :
How to install plugin for Eclipse from .zip
Also a good read from redmine.
HowTo connect a Mylyn repository to Redmine:
http://www.redmine.org/wiki/1/HowTo_Mylyn
download.eclipse.org/tools/mylyn/update/incubator wont work anymore, for the new update sites look at http://www.eclipse.org/mylyn/downloads/
The Web Connector could be found via http://download.eclipse.org/mylyn/incubator/3.5