w3hello.com logo
Home PHP C# C++ Android Java Javascript Python IOS SQL HTML Categories
NetBeans Remote Development with additional configuration
It turned out that setsee is more or less an internal tool. Yet “the core question” remains: how to have an arbitrary script executed on behalf of an SSH session created by IDE, before IDE actually uses that script. Answer to the “How can I set environment variables for a remote rsync process?” question on Super User says it all. To summarize it shortly: in ~/.ssh/authorized_keys one has to modify an entry corresponding to the key with which the IDE will log in. There one has to add a command parameter that is a script to be executed after logging in but before “returning control”. There is also another thing associated with that solution. If the script to be executed within the command option outputs anything the it will break many tools (possibly the IDE as well). Such too

Categories : C++

GIT: Managing repos between two remote development teams
This isn't a simple problem. When you have two repositories that simultaneously update each one of them you can get conflicts when sync-ing them. Conflicts may need human interaction to be solved the correct way. One way to solve this is to always sync, while pushing to B, A is locked down and then B is pushing to A and A is unlocked again, and the other way around. This is probably not a good solution for you. I suppose that you have bandwidth limitations, otherwise all devs would work directly with A. So, let's do some magic. You have a timezone difference. Let's move the master repository twice every day. Make B read only and let all devs push to A. Let B do a pull. Make A read only and let all devs push to B. Let A do a pull and so on. You would always have fast-forward updates (i

Categories : GIT

Script working fine on development server but not remote server
If its timing out on the server it's more than likely because a link to a resource in your script is not pointing to the correct location. Leading to a function call not working or other resource not being found.

Categories : PHP

Do any standards and practices exist for applying acceptance test driven development to non-development tasks?
Take a look at this post in StackExchange: Agile methodologies such as Scrum in non-software development projects Also there is a nice article called "Scrum is not just for software" written by the Agile Alliance (note that this is a PDF download)

Categories : Misc

Local Wordpress install with Remote Database. Error: Remote DB Appears to be already installed
Did you include 'http://' in your URL? Refer : http://wordpress.org/support/topic/you-appear-to-have-already-installed-wordpress-1 Thanks.

Categories : Wordpress

Can I migrate remote SVN to local disk without exporting dmp files on remote server?
You can dump only latest revision range with the -r switch. svnadmin dump REPOS_PATH [-r LOWER[:UPPER]] [--incremental] [--deltas] and then you can load this increment in the new repository. Reference: http://svnbook.red-bean.com/en/1.7/svn.ref.svnadmin.c.dump.html Example: http://www.vioan.ro/wp/2007/07/31/dumprestore-for-subversion-repository/

Categories : Svn

Failed to connect to remote VM. Connection refused. when trying to debug remote java application in Flash Builder 4.7
Each debug argument must be placed in a line by itself, after the -vm argument. This should do the trick: -vmargs -Xdebug -Xrunjdwp:transport=dt_socket,server=y,suspend=n,address=8000

Categories : Java

merge remote branches before it gets merged to remote/master?
Whether or not you'll have a merge "problem" depends on what happens on the upstream master prior to the owner merging in branchA. However, regardless of what happens, once branchA does get merged into the upstream master, you can just run the following in your local copy and be "up-to-date": git checkout master git fetch upstream git reset --hard upstream/master This combination will ensure your local copy of master points to the same commit as the upstream copy of master. Since you would do this after the owner merged branchA into the upstream master, your local master will, effectively, still have the changes introduced by branchA. update If you want to make changes to branchA prior to merging into master, I would recommend you create your own branch based on branchA and make your

Categories : GIT

Remote PHP Debugging with Netbeans and XDebug (remote server)
Remember you need to set the Path Mapping in the Debugger tab inside Netbeans Options. Another little big problem I was having when trying to connect from NetBeans remotely was the SSH tunnel. You have to creat it for the port xdebug will work on, 9000 usually. If you experience network problems for a moment, the tunnel might "break" silently and NetBeans will be stuck in the holy "Waiting for connection..." state. In putty, you can right click and Restart Session, but this won't work. You will need to close the putty window and re open the session for it to work again. Hope it helps!

Categories : Misc

Syncing remote fork with remote master
Your local repository is a clone of your fork, so that is your origin. You need to pull from your remote repository and push to your fork. Assuming that you are on your master branch locally you can pull any changes from the upstream repository (the one that you forked from) git pull upstream master Then once you have resolved any merge issues etc you can push the changes to your fork. git push origin master how will you get any changes into your company repository of you only do this? And if you're not going to be making any changes why not just clone your company repository and do away with the fork? Edit. If you want to sync all of the remote branches you can do git remote update Which will fetch all of the remote branches. Then you can push to your origin.

Categories : GIT

Creating remote Drb server (for use with pry-remote)
You can just use binding.remote_pry(host_string, port_number) In your code to bind on host different from localhost. And use pry-remote -s host -p port to connect to this host from another computer. But pry-remote opens only one listening socket, so your colleague can only has access if you are not connected yet.

Categories : Ruby

Error unable to connect to remote server when upload file to remote server
Using the FTP protocol requires a dedicated FTP server software running on the remote machine. FTP cannot access network drives without it. If you just want to access files on your network, start with this SO question: Copying files to a mapped drive while user is not logged in (scheduled task) For security reasons, I strongly recommend a few steps before: a) Do not open root shares like C$. b) Create specific shares on your "remote" server, where you grant access only to users for that specific purpose. Further reading on FTP: http://en.wikipedia.org/wiki/File_Transfer_Protocol

Categories : Vb.Net

is there a way to save css/js changes of remote resource between page reloads or map remote resource to local in devtools?
You got most of it, but here's the slight change: Make a change in the Styles pane (or in Sources), then click over to Sources, and when your modified file is open, hit ctrl-s. Then you can right-click the asset in the Sources list and hit Save As... and save the new modified file to disk. There is no way to save a modified remote file without persisting it to disk and expect it to be changed on reload.

Categories : Javascript

Ping remote computer from another remote computer and get result back
According to Windows IT Pro (referred in Microsoft TechNet): PsExec displays the process's exit code and returns the exit code as its own exit code. So, your batch should work. Put ECHO ErrorLevel=%ERRORLEVEL% after PSEXEC ... just to get sure. To disable outputing, append >NUL 2>NUL or >NUL 2>&1 to PSEXEC ... command-line. Without /f as you used (where did you get it???)

Categories : Windows

bootstrap modal - remote url. Can I put the whole modal element into remote.html?
I have a modal this way... <!--[if lt IE 9]> <script type="text/javascript"> $( "#placeholder" ).load( "/html/myExternalModalDiv.html", function() { $('#myExternalModalDiv').modal('toggle'); }); </script> <![endif]--> This loads an external modal markup and fire it (just for internet explorer < 9 in my case) I hope this will be usefull as example.

Categories : Jquery

IVR Development in java
There is far too little information here to provide a direct answer, but I'll try to give you some basics. The standards for IVR application development is VoiceXML for dialog (caller interaction) and CCXML for call control. The latter is not as commonly available. There are also numerous proprietary solutions. Your choice of an open standard versus a proprietary solution should be more about vendor/solution lock in. Even with the open standards, you'll likely use custom enhancements and have some amount of lock in, but portability will be easier. You can code directly to the telephony boards (challenging and usually poorly documented if you are someone new to telephony) or work with solutions that provide end to end capability. I find very few people porting IVR applications so I w

Categories : Java

How to apply TDD to web API development
From what you are describing you could easily find yourself writing integration tests. If your aim is to test the logic for processing what is returned from the scraped data (e.g. you know that you are going to get a timetable in a specific format coming in and you now have logic to process that data) you will need to create a SEAM between your web services logic and your processing logic. Once you have done this you should be able to mock the data that is returned from the web service call to always return the same table data and then you can write consistent unit tests against it. public class ScrapingService : IScrapingService { public string Scrape(string url) {// scraping logic} } public interface IScrapingService { string Scrape(string url

Categories : Api

bias when not using a development set
Yes. By the very definition of bias, using a small set means you will have a higher bias, towards whatever section you decide to train on. If you randomly choose small samples from a larger data set though, this bias will be greatly minimized. If you're just using a small set of data, 10-fold cross-validation doesn't make much sense. The idea of cross validation is to chunk up a large data set into multiple parts, training with alternating parts of them serving as train and test sets, iterating until the best solution across all cross-validation sets is found. If you don't have much time or computational power my first suggest would be to step down your 10-fold CV checking. This will mean you can include a much larger portion of your data set for the same computation time and quickly eva

Categories : Machine Learning

manuals for os development?
Here is a basic tutorial on how to make an OS (assuming you mean operating system): http://www.youtube.com/watch?v=6MJUGVFAXKg. It's pretty good, but you need to learn the assembly language first (http://en.wikipedia.org/wiki/Assembly_language). Hope I helped!

Categories : Assembly

Parallel development in Git
This article is a good place to start for git workflow. Also, Number8 is right. You should be regularly fetching updates when working on the same branch with other developers.

Categories : GIT

Where to start for WSN development
I have uploaded a series of tutorials on YouTube and also my Website that might be helpful for you to get started.

Categories : Misc

NSStatusItem app development
As you dont have much work with NSWindows and NSViews, you surely dont need NSWindowController or NSViewController. And I think for this kind of app even your AppDelegate class is enough and best place to put all your logic. If you have some models then you can break your code upto that, and use it in the AppDelegate itself. Transition from iOS to OSX. If you are good in Objective-C then you dont have to worry about few more Cocoa-Controls especially GUI levels, you have full support of Documentation. Switching between iOS to OSX, vice-versa is not to difficult, but yes if you end up with system level then you need to interact with OSX too.

Categories : Objective C

When would I use ant for Java web development?
Ant is used as a build system. You do not have to use it--in fact there are quite a few better systems but since ant was one of the first it's still likely to be very common. It generally is used to compile your java files, create wars and often even put the .war files onto the tomcats. Maven is bigger and tries to do a lot more, but it's also rather strict in it's format and quite heavy--but it's quite common these days as well. Maven can gather all your dependencies automatically which is nice, with ant you still have to download everything yourself. There are others, but you get the idea. Response to comment: I don't use visual studio, but I think it is more limited. For instance, Eclipse can build all your java files into a jar or execute them directly (in fact, it uses ant int

Categories : Java

Get master of one remote repository into master another remote+ one
If I understand what you're looking for - a one-time conversion, as opposed to continuous integration - this should work out. It's a bit overkill, as you could adapt it to work in your currently existing local repo, but then I'd have to make assumptions about the current state of your local repo, and this approach will help avoid conflicts due to uncommitted changes, unpushed state, etc. git init newrepo # create a new scratch space repo cd newrepo git remote add originA <url or relative path of A> # add both original repos as remotes git remote add originB <url or relative path of B> git fetch originA master # fetch the branches we want git fetch originB master git checkout -b newbranch originB/master # sta

Categories : GIT

Can CreateJS be used for Mobile App Development?
CreateJS is not specially adapted for game development, there is no "game engine". It just allows you to easily manipulate shapes, images, sounds in layers (Containers) like Flash. Supports touch interactions in iOS, modern Android browsers and IE10. So yes, you can use this library to create mobile app and you can combine it with jQuery.

Categories : Javascript

Multi-resolution development - how to?
here is the link for great tutorial series on developing multi resolution app. http://my.safaribooksonline.com/9781449320904/ch01s25_html?readerfullscreen=&readerleftmenu=1&reader=

Categories : Misc

clojure development with fireplace.vim
The only external dependency is that you have either a Vim with Python support compiled in, or ruby in your path. To check if vim has python support you can do a vim --version | grep python If you see a +python vim has been compiled with python support. If you see a -python vim has not been compiled with python support. If vim doesn't support python you can probably reinstall vim with python support through whatever package manager you are using. To see if ruby is in your path you can type which ruby. It should come back with the location of the ruby executable. Path in Linux is where programs search for the location of the executable you want to run. You can see your path by typing echo $PATH. So when you type ls in your shell. The shell goes of and searches every director

Categories : Vim

Git, and moving between development machines
"I am happy to overwrite these changes, but I'm not sure how to do it." git reset --hard git pull origin master You can use git in your new computer exactly the same way as you do in your old computer. "Ideally I'd like to be able to exclude some files from being tracked..." Create .gitignore in the same directory and put the names of the files to exclude in it. If you're using windows, How to create .gitignore file

Categories : GIT

Does apns needs certificates for each app development?
Siva, what matters for establishing an Apple Push Notification Service is: App Id Bundle Id of the app which is unique to each app. Provisioning profile [development/distribution] depends on your enviornment. Then the SSL certificates. So for your first question- you cannot use same certificates for two apps,which are having different bundle Id's. Because an SSL certificate is creating for a particular bundle Id. You can see that from your key chain. For the new app I would suggest you to create new Id, new bundle Id, new provisioning profile and offcourse new certificates. So there is no reason for any sought of confusions. If the above mentioned error still prevails, you can refer these links- these are really worthy answers. How to fix "no valid 'aps-environment' ent

Categories : IOS

par files why do we use it in java development
Eclipse Virgo An OSGi application is packaged as a JAR file, with extension .par. A PAR artifact offers several benefits: A PAR file has an application name, version, symbolic name, and description. The artifacts of a PAR file are scoped so that they cannot be shared accidentally by other applications. The scope forms a boundary for automatic propagation of load time weaving and bundle refresh. The artifacts of a PAR have their exported packages imported by the synthetic context bundle which is used for thread context class loading. So, for example, hibernate will be able to load classes of any of the exported packages of the artifacts in a PAR file using Class.forName() (or equivalent). The PAR file is visible to management interfaces. The PAR file can be undeployed an

Categories : Java

Android Development : Getting data from the web
The easiest way to display posts into an Android application will be to use JSON data on the web, and read it into a Master Detail Android application. On the website side, getting the data to display in JSON seems to be the most difficult part of your problem. It would be easy if it was a Wordpress site, as there are plugins that will do this for you. On the application side, getting the data and parsing it into a master detail flow is a fairly trivial task. Something like this tutorial may help: http://www.technotalkative.com/android-json-parsing/ or this video https://www.youtube.com/watch?v=0TulTqQM0Cc

Categories : Java

Firefox OS 'HELLO WORLD' development
This took me about a minute to find. A step by step guide. More info related to app development for FF OS can be found at their official page Edit: A video tutorial with the use of the jQuery library.

Categories : HTML

objective c for mobile web development
I'm not sure exactly what you want to do but: You can run a web site on obj-c (as opposed to, say, Cake PHP or Ruby on Rails), which could run a social network accessible from all kinds of browsers, and offering REST APIs and all that jazz. If you're super hot on Obj-C but not much else, I suppose this might be a good idea. You can run a web server on an iOS device, I guess if you want a site on your wifi network. You can run a web server, using whatever framework and server you like, that makes web sites that can be added to the homescreen, kind of like native apps. I think this is what you are actually asking about. This wouldn't need to use objective-c at all.

Categories : IOS

Multi Window App Development
it's not possible multi-pane-layout two other apps. if u want your app with multiple activities follow this tutorials for your references: it's called named as multi-pane-layouts and offical introduction about multi-pane-layouts below link: http://developer.android.com/design/patterns/multi-pane-layouts.html and it's shows how to implement multi-pane-layouts on your project below link from android official side: http://developer.android.com/guide/practices/tablets-and-handsets.html and you can download example project from github below link: https://github.com/faisalgeek/MultiPaneAndroidApp

Categories : Android

Chrome Plugin Development
Google has built a whole site dedicated to Chrome Extension Development: Getting Started: Building a Chrome Extension.

Categories : Google Chrome

Production and Development in WAMP
There are two php.ini files packaged with WAMP: php.ini-development and php.ini-production. They are preconfigured with common settings for either development or production. Whichever one you rename to php.ini is the one that will be used. If all you want to do is turn on error reporting, you can just edit whichever php.ini file you are currently using by clicking on the WAMP icon in your system tray and choosing PHP > php.ini. This will open the file in a text editor where you can change whatever config you want including: error_reporting = E_ALL & ~E_NOTICE There is lots of documentation online and in the file for possible values for this.

Categories : HTML

Web project development in subfolder
A good way of handling this is to use a constant that holds the path to your project. That way you only have to edit that constant to get your paths right. define('BASEDIR', '/a/'); echo ' <script type="text/javascript" src="'.BASEDIR.'resources/scripts/javascript.js" ></script> <link href="'.BASEDIR.'resources/styles/stylesheet.css" rel="stylesheet" type="text/css" />'; This will turn your paths into <script type="text/javascript" src="./a/resources/scripts/javascript.js" ></script> <link href="./a/resources/styles/stylesheet.css" rel="stylesheet" type="text/css" />'; If you keep that constant in a seperate file you can include it where you'd need it. A php file that handles an AJAX request for instance.

Categories : PHP

PostgreSQL development workflow
Well, your question is actually quite relevant to any database developer, and, if I understand it correctly, there is another way to get to your desired results. One interesting thing to mention is that your idea of separating different changes into different files is the concept of migrations of Ruby On Rails. You might even be able to use the rake utility to keep track of a workflow like yours. But now to what I think migh be your solution. PostgreSQL, and others to be sincere, have specific utilities to handle data and schemas like what you probably need. The pg_dumpall command-line executable will dump the whole database into a file or the console, in a way that the psql utility can simply "reload" into the same, or into another (virgin) database. So, if you want to keep only the c

Categories : Database

Java development using INTEL SDK
There is a java tutorial out on the Perceptual Computing Download Site. This tutorial is in the SDK Documentation - look under "SDK Tutorials" and "My First Java Application" You will need to install JDK 1.7.0_11 or later. Set the environment variable JAVA_HOME to point to the installation directory for easy reference. 1.Create a directory called Java1. 2.Launch any editor and enter the Java code Java1.java. import intel.pcsdk.*; import java.lang.System.*; public class Java1 { public static void main(String s[]) { PXCUPipeline pp=new PXCUPipeline(); if (!pp.Init(PXCUPipeline.GESTURE)) { System.out.print("Failed to initialize PXCUPipeline "); System.exit(3); } for (;;) { if (!pp.AcquireFrame(true)) break; PXCMGesture.GeoNode[] nodes=new PXCMGest

Categories : Java

BlackBerry 10 development- TextField
We have 3 parts in this problem First on in Qml your text area and bottom when clicked send text area to function in c++ TextField { id: n2 } Button { id: button text: "send text" onClicked: { app.sendtext(n2.text) } Second part your c++ function in your ApplicationUI to receive this text QString ApplicationUI::sendtext(QString txtarea) { QString text = txtarea; return text; } Third and final part in your ApplicationUI.h u must make this function INVOKABLE to access it in Qml so u will need this line Q_INVOKABLE QString sendtext(QString txtarea);

Categories : C++



© Copyright 2017 w3hello.com Publishing Limited. All rights reserved.