w3hello.com logo
Home PHP C# C++ Android Java Javascript Python IOS SQL HTML Categories
Real time game development
How about these two possible solutions (easy vs. difficult) The difficult one... To have a full control, you need to implement the logic in a server and have your application connect to it to get the credits (expensive but excellent solution). Your app will not hold permanent data. Your app will only be used for display, interaction, send/receive data from server. The easy one...To simply use your app along with phone time. This solution costs much less but your app will be vulnerable against phone time manipulations.

Categories : Java

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

MVC generates a text box with 'time' type in development, but reverts to 'text' upon deployment
Out of curiosity, do you lave latest MVC 4 installed on server? As this feature is only available in MVC 4 if i am not mistaking. You might also want to give a shot at Mvc Html5 Toolkit

Categories : Asp Net Mvc

Tycho and Eclipse: How to resolve OSGI dependencies to my own bundles at development time within Eclipse, without opening all of them in the IDE
As indicated by Nick Wilson, you will need to install the m2e Tycho Configurator, which basically "links up" Eclipse and Tycho (i.e., makes Tycho available in Eclipse). You should've been pointed towards it after having installed m2e, but you can also install it manually: Go to Window > Preferences > Maven > Discovery. Click the "Open Catalog" button. This will open the "m2e Marketplace" window. Search for "tycho", this should give you the "Tycho Configurator" as sole search result. Click "Finish", you're done. I've had this issue as well, and it isn't simple to find the solution, so I hope this helps!

Categories : Eclipse

Translating time stamps (start, end) into time series data. Errors with align.time() and colnames
This is not an answer to your problem. Honestly it is not clear for me the transition between the data you show in the image and the example of your data. It seems like that you can't reproduce this data. So Here a function to generate a reproducible example of your data. I think it can be at least useful, to validate your model. function to sample data library(reshape2) start.min <- as.POSIXct("2013-01-01 00:00:00 PST") hours.min <- format(seq(start.min, length.out=24*60, by = "mins"), '%H:%M') ## function to generate a trip sample ## min.dur : minimal duration of a trip ## max.dur : maximal duration of a trip ## min.trip : minimal number of trips that a user can do gen.Trip <- function(min.dur=3,max.dur=10,min.trip=100){ ## gen

Categories : R

identify the row in my time vector where the time is 5 seconds before the last printed time, times are however in milliseconds
For your sample vector (let's call it t): find(t < t(end) - 5000, 1, 'last') ans = 4 For the full matrix, it's almost the same thing: find(matrix(:,2) < matrix(end,2) - 5000, 1, 'last')

Categories : Matlab

How to compare Starting time and End time of a event with existing events of same time on same day?
You can use 24 hour format to solve this in your logic. you have to save existing event timings in Database. whenever new event timings entered, you need to compare with existing both start & end timings with previous ones. For Example: Event1: x1 to y1 Event2; x2 to y2 if(x2==x1 && y2==y1) if(x2>x1 &&x2<y1) andif(y2<y1) ...so on based on your requirement.

Categories : Asp Net

How to display a time in the user's local time zone if I have that time in UTC?
You can use the method localtime: {% load tz %} {% localtime on %} {{ value }} {% endlocaltime %} {% localtime off %} {{ value }} {% endlocaltime %}

Categories : Django

Python header print one time for every time I run the script not each time
I thoroughly apologize for the previous versions. There was a tiny detail that I was missing but I've fixed it now. Here's the correct code: #--- Open the file + write on it --- f = open('out.csv','a') prev_data = open('out.csv', 'r').read() header = "Datetime,Location,Temperature,current_condition " # Add a header only if the file is empty if prev_data == '': f.write(header) date = str(now.month) + "/" + str(now.day) + "/" + str(now.year) + " " + str(now.hour) + ":" + str(now.minute) + ":" + str(now.second) f.write(','.join([date,locations,str(temp_f),weather])) f.write(' ') f.close() # --- And Close the file ---

Categories : Python

Why are there differences in Python time.time() and time.clock() on Mac OS X?
From the docs on time.clock: On Unix, return the current processor time as a floating point number expressed in seconds. The precision, and in fact the very definition of the meaning of “processor time”, depends on that of the C function of the same name, but in any case, this is the function to use for benchmarking Python or timing algorithms. From the docs on time.time: Return the time in seconds since the epoch as a floating point number. Note that even though the time is always returned as a floating point number, not all systems provide time with a better precision than 1 second. While this function normally returns non-decreasing values, it can return a lower value than a previous call if the system clock has been set back between the two calls. time.time() measures i

Categories : Python

db.Time Property saving time as datetime instead of just time
I'm not sure why you have two inline assignments, but to get time out of a timedelta object: >>> b datetime.datetime(2013, 7, 15, 10, 21, 31, 599402) >>> a datetime.datetime(2013, 7, 15, 10, 18, 11, 251477) >>> str(b-a) '0:03:20.347925' >>> (datetime.datetime.min + (b-a)).time() datetime.time(0, 3, 20, 347925) In order to store only the time, you need to use TimeProperty in your datastore. It will be represented internally as datetime, but will store datetime.time() objects.

Categories : Python

How to calculate the time consumed from start time to end time in php
Try using diff: echo date_create('01:00:00 PM')->diff(date_create('01:25:00 PM'))->format('%H:%i:%s');

Categories : PHP

How to handle time zone issue without storing date time as TIMESTAMP WITH TIME ZONE
If you have the names of the time zones, you can use a query similar to the following to adjust alter timestamps: SELECT e.last_updated_date AS cst_last_updated_date, (FROM_TZ(e.last_updated_date, 'US/Central') AT TIME ZONE 'US/Eastern') AS est_last_updated_date FROM events_tbl e; In my experience this will automatically account for DST based on the locale. If you're working with DATES and not TIMESTAMPS, you can also do the following: select CAST (e.last_updated_date AS TIMESTAMP) AS cst_last_updated_date, (FROM_TZ(CAST (e.last_updated_date AS TIMESTAMP), 'US/Central') AT TIME ZONE 'US/Eastern') AS est_last_updated_date from events_tbl e;

Categories : C#

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

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

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

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

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

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

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

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

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

Categories : Google Chrome

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

how to set django development server
You may like to use nginx + gunicorn (http://docs.gunicorn.org/en/latest/run.html). Also, http://senko.net/en/django-nginx-gunicorn/ is useful.

Categories : Python

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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