w3hello.com logo
Home PHP C# C++ Android Java Javascript Python IOS SQL HTML Categories
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

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

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

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

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

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

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

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

Android Widget development
You will need to write a service that runs in the background, which then updates the widget (and the app too) through an intent. In android when an app is not in the foreground, it gets paused, so any code running also gets paused. A service is independent of an app. Read up about services. You can have it start at boot, or have the widget trigger the service when it needs data. One thing to consider though is updating data every second will drain the battery. A widget is usually intended to update data occasionally (every 30mins, hour etc), not every second.

Categories : Android

keplerr can't get Web development tools
Standard functionality (i.e. Eclipse projects, functionality available in other bundles) can be installed via Help > Install New Software..., select the appropriate update site ("Kepler").

Categories : Eclipse

vba or vsto or .. outlook development
Outlook API is not native .NET framework. To interact it with, .NET relies on marshaling and interrop assembly thus making it much more prone to errors and unstable. From what I've seen so far with my outlook API experience, I would stick with VBA and you should consider retrieving a third party library that exposes outlook extended MAPI if you run in to much of trouble.

Categories : Vba

Front end development: where to start?
I'd suggest AngularJS (http://angularjs.org/). Why? Because it has a pretty good tutorial section, good documentation AND it's backed by a large company (Google). But unfortunately, the learning is still up to you ;-)

Categories : Javascript

Eclipse e4 and plug-in development
I'm not sure what exactly you want to achieve. Option 1: You want to write a plug-in for an e4 RCP application: You can do this (e.g., contribute ViewParts to an e4 application model) via a model fragment. Basically, instead of extending the org.eclipse.ui.views extension point in Eclipse 3.x you create an application model fragment file in your plug-in and reference this in an extension to the extension point org.eclipse.e4.workbench.model. In the model fragment, you define the parts, commands, etc. you want to contribute. See for example these tutorials for more details: http://eclipsesource.com/blogs/2012/06/26/eclipse-4-e4-tutorial-part-3-extending-the-application-model/ http://www.vogella.com/articles/Eclipse4Modularity/article.html Option 2: You want to write a plug-in e4 s

Categories : Eclipse

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

Setting up PySide/Qt for GUI development
I'm doing something similar (however I'm in the progress of migrating from PyQt to PySide). You should use pyside-uic to generate the code for the GUI after creating the UI files in QtCreator (If this were PyQt "pyuic gui.ui > gui.py" would produce the desired code, I assume pyside-uic has a similar behaviour). I then subclass this generated code to customise the user interface. Yes, you can use cx_freeze with PyQt/PySide, you'll want to include PySide in the "includes" item in the build options. Yes, you can create a completely self-contained executable - you won't need Python, Qt or anything else. Here's the build I use from my PySide GUI application. __author__ = 'AlexM' import sys from cx_Freeze import setup, Executable import MyPySideGui import PySide, os base = None if sys.pla

Categories : Python

Trying to understand the AVAudioPlayer in iOS development
In Object Oriented Programming, there are methods, or functions, called setters and getters. the setters set the data for a certain variable. The getters are essentially the getters of the data. with objective-c, and iOS, you don't have to provide the setters and getters for the variable you are dealing with. The @synthesize keyword is what automatically creates the setters/getters. An example using your code For the @property you have, the compiler is doing this: -(void)setAVAudioPlayer:(AVAudioPlayer *)player {} -(AVAudioPlayer *)getAVAudioPlayer { return AVAudioPlayer var;} This isn't exactly the conventions the compiler would be using, but it is just to show the setters/getters way of showing what @synthesize does. It is like an automatic creation of the getters/setters. In your e

Categories : IOS

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++

Using Gradle in Android Development
In your top directory file with name build.gradle just put: task assemble {} You can see it in known issues here Get started with gradle here! Edit: Android Studio 0.2.1 solves this error: http://tools.android.com/recent/androidstudio021released

Categories : Java

2D DirectX 10 Game Development
Well if you are interested in learning DirectX itself, you should try to write your own 2D engine, which with a little experience isn't as hard as it may seem. But if you want to get straight to game developement, you can take a look at some engines that take care of that part. Shaders can really enhance scenes (3D as well as 2D) and if I were you, I would definitely use them, instead of just using simple unprocessed textures. Most engines won't take the shader programming from you, so you will probably need to look into hlsl anyway. Also what I experienced with several engines and librarys: at some point they will come to an end, and if you are enthousiastic about your project, you don't want to live with those limitations. That's why I would recommend writing your own engine which you ca

Categories : C++

CUDA development Mac Mini
You will not be able to use CUDA, as you do not have an NVidia graphics card. You might want to look into OpenCL which is supported on Intel CPUs and GPUs (as well as AMD and NVidia GPUs). OpenCL is similar to the CUDA Driver API and therefore what you learn programming in OpenCL will help with learning CUDA as well since many of the concepts are similar. For OpenCL on Mac, check out https://developer.apple.com/library/mac/#documentation/Performance/Conceptual/OpenCL_MacProgGuide/Introduction/Introduction.html.

Categories : Osx

URLRewriteFilter in Development Environment?
Can you try adding this in BuildConfig.groovy to exclude the dependency? (provided you have not added the jar in lib) grails.project.dependency.resolution = { inherits("global") { if (Environment.current != Environment.PRODUCTION) excludes "urlrewritefilter" } } If that does not work then in my opinion the safest bet will be to fork/clone the plugin (which uses the latest version of urlrewritefilter:4.0.3) and modify UrlRewriteGrailsPlugin.groovy by adding the below elements: def environments = ['prod'] //or 'production' def scopes = [excludes:'run'] //If you normally use run-app in development and use the plugin instead of adding the dependency.

Categories : Grails

vtiger crm development setup
Choice 1 is appropriate. VC must always track the source code, not the products of any interpreter or processing. I feel your pain. It is so easy to tweak that Vtiger source code, and VC tends to be left by the wayside.

Categories : Misc

Burp Extension Development
The following works from within the Burp Extender Jython Shell. Hope it helps. import jarray callbacks = Burp._callbacks myRequest = Burp.history[0] myHost = myRequest.host myPort = myRequest.port myByteArray= jarray.array(myRequest.raw, 'b') testScan = callbacks.doActiveScan(myHost, myPort, 0, myByteArray) # int showing percentage complete print testScan.percentageComplete

Categories : Misc

How to set up git for wordpress theme development
Why not have the top level folted, that is "name_of_site.com" be the repository, and in that folder, you can create a .gitignore file to ignore the other directories you don't want, that is, the html and briefing files (if I understand your layout correctly). That way, you're simply tracking the Wordpress content. You can even move it up a level so that only the briefing files and the HTML are in separate directories and the WP content is in the "name_of_site.com" directory. Edit: After your comments, I think you could do it this way: Create repos for each site you have and put the wp-content of those sites in the .gitignore file Create one repo for wp-content, which contains all your themes. Organize them according to your needs. Write a simple shell script that pulls the latest them

Categories : Wordpress

Get exif data in mac OS development
This post did it: http://devmacosx.blogspot.com/2011/07/nsimage-exif-metadata.html. I can now read all the exif data that I'm looking for.

Categories : Objective C

iPhone 3G XCode Development for 4.2.1
Yes it is feasible but you will not be able to use xcode the latest xcode 4.5 with it because it supports ios 4.3 and later. You would be able to use lower versions of xcode for 4.2.1 . The latest release notes indicates 4.2.1 and lower will not be supported, we now have to use 2 version of Xcode to develop when supporting older devices. Please go through Old Xcode Xcode 4.5 and iOS 4.2.1 incompatibility XCode 4 and iOS 4.2.1

Categories : Iphone

Git with separated development and releases
Until you publish your work, it is your private. Just don't push while developing. However, you could set-up a private repo visible to you only (e.g. just for backups or working from different locations such as laptop, desktop, etc). Set up another shared repo (e.g. on github) and push here only when you release. Small demo: [kan@altegom so18334364]$ git init --bare privrepo Initialized empty Git repository in /private/tmp/so18334364/privrepo/ [kan@altegom so18334364]$ git init --bare pubrepo Initialized empty Git repository in /private/tmp/so18334364/pubrepo/ [kan@altegom so18334364]$ git clone privrepo wc Cloning into 'wc'... warning: You appear to have cloned an empty repository. done. Set up public repo in you wc [kan@altegom so18334364]$ cd wc [kan@altegom wc (master)]$ git re

Categories : GIT

iOS Custom Framework Development?
I followed this framework tutorial with a lot of success. My callout from the tutorial is that it doesn't specifically mention (from what I recall) building the target, then the bundle before archiving the bundle. I also found it easier to directly copy the archived bundle from its source directory instead of relying on the script.

Categories : Iphone

Development model for website using SVN
This is how we have it set up: We develop on the trunk. Our dev work is on our local laptops, and when it works well enough, we check in. Then we deploy on the trunk to the Development Server, and do a bit of testing there. We deploy to the Test server also on the trunk, but only after we see it working on the Dev server, and NOT if the code in Test has been approved for prod. So Dev is the most recent checked in, and Test is often that recent too, but sometimes it is an older revision. Both of these are on the Trunk. When the code in Test is approved for Prod, we will create a tag, then deploy the tag to a copied app, make sure that the source code matches what we expect, and then deploy that tag-created application to Prod. If the code in Test which has finally passed QA isn't the ve

Categories : Web Services

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

Categories : Google Chrome

What is the use of development.log file in rails
All the informations about your web applications requests are written in it, and it is quite useful. When you start your application with rails s you can see it (it is tailing the development.log) Since its the development.log, you can clean the content, but be sure to leave it there so you can see what your application is doing.

Categories : Ruby On Rails

Guidelines for the development of web Gis Application
Please see some ideas below set out to answer your questions. I think the way to integrate the most amount of data sources is probably with the the OpenGeo Suit. This is an open source software stack that includes Geoserver as a WMS source and GXP libraries and examples as the front end client. It can be found here http://opengeo.org/ There are a number of Open source projects out there that will help. I have already mentioned OpenGeo. Also check out Openlayers http://openlayers.org/ GeoExt (Can't post link as I don't have enough reputation points yet) Leaflet (Can't post link as I don't have enough reputation points yet) Geoserver is a good one for this but you could also checkout Mapserver (Can't post link as I don't have enough reputation points yet) In summary I would recommend th

Categories : Asp Net

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

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

Using git to mirror web development environment?
If you're set on managing it this way, you could use symlinks to link into the git project from the actual web-exposed directories. Here's a thorough answer describing that technique.

Categories : GIT

How to continue further development from old changeset in Git?
Assuming you are in the master branch with a few commits you’d like to rewind but keep the code that you have in a new branch. Steps are as follows Create a new branch for the current code git branch new-branch Determine how far back you would like to rewind master git log When looking at the log, find the last commit you want to keep and make a note of its hash tag. It will be used in the next step. Rewind/move master back to found commit git reset --hard ab15cd26 # (assuming ab15cd26 is the hash tag) Go back to where you were by checking out the newly created branch git checkout new-branch If you wish to push your changes to remote repo, you also need to use git push --force remote-repo master

Categories : GIT

Is Opengl Development GPU Dependant?
OpenGL is just a standard. The actual implementation of the API is up to the graphics card manufacturer. So yes, OpenGL development can be GPU dependant sometimes. However, all implementations should provide the same result (what happens behind the scenes can be really different). If your code gives a different result with different GPUs, there is probably a version difference in the OpenGL implementation. You can use these functions to get the supported OpenGL version: glGetIntegerv​(GL_MAJOR_VERSION​, *); //version 3.0+ glGetIntegerv​(GL_MINOR_VERSION​, *); //version 3.0+ glGetString​(GL_VERSION​); //all versions

Categories : Android

select_for_update in development Django
select_for_update will only lock the selected row within the context of a single transaction. If you're using autocommit, it won't do what you think it does, because each query will effectively be its own transaction (including the SELECT ... FOR UPDATE query). Wrap your view (or other function) in transaction.atomic and it'll do exactly what you're expecting it to do.

Categories : Django

TDD aproaches for Development DBAs?
In the past I've used two approaches: Having a very thin Data Access layer in the application and writing tests around that. In other words (assuming your dba uses sprocs), for each new sproc a method to access it is written and a test is created which exercises it appropriately (or better, tests first). This is nice because it integrates easily with test runners. You can use transactions to rollback tests without side effects. Another option is to use native SQL testing frameworks. I've evaluated tsqlt which is a SQL Server framework, so not appropriate in your case, but the approach is solid and there could be appropriate frameworks for DB2.

Categories : Unit Testing



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