Ewald Horn 26 Newbie Poster

I don't see the file attachment, so it's difficult to answer.

Ewald Horn 26 Newbie Poster

You can try this

window.setTimeout(function() {
    $("#myweb").load("webcamsnap.php");
}, 2000);

Inside your function. It will make the load wait 2 seconds before actually executing it.

Ewald Horn 26 Newbie Poster

Well, 400 means your request is bad. Have you traced your POST and taken a look at the actual request that is sent? Using Charles Proxy, you can easily see what request are being sent, and then see where the problem is.

Ewald Horn 26 Newbie Poster

Is there any particular reason you are not using the Java Stack collection? See Java Stac for some help.

I don't see the value in building your own stack collection, unless it's a homework exercise, in which case you need to struggle with it :)

Ewald Horn 26 Newbie Poster

Hi,

by default, the Android WebView opens links in the system browser. You need to override this (see Click Here) to change the behaviour.

Use this code:

webView.setWebViewClient(new WebViewClient() {
        @Override
        public boolean shouldOverrideUrlLoading(WebView view, String url) {
            return false;
        }
    });

Basically, returning false on this request tells the client to use the current webview instead of launching the default browser.

Ewald Horn 26 Newbie Poster

Excellent! It was an interesting question!

Ewald Horn 26 Newbie Poster

What is very interesting is that with http://plnkr.co/edit/0CTsA0Co4CBatiluSEwA?p=preview, I get to see that the canvas is cleared, but then something ELSE happens! That is the cause of the failure, I am missing something obvious, I just know it.

Ewald Horn 26 Newbie Poster

I rather prefer sending the details in the HTTP headers, just the username, of course.

Ewald Horn 26 Newbie Poster

Oh my - I haven't looked at that yet - I can tomorrow, it's midnight here in South Africa and I get up at 04:50am!

Ewald Horn 26 Newbie Poster

Your JavaScripts are over-writing each other. Wrap them in anynomous functions, like so :

http://plnkr.co/edit/B6265864pZhZOsXGkBqL?p=preview

Basically, you want to wrap your entire JS in

(function(){ 
..... your code .....
})();

This will protect the methods from each other. When I do that, I have two working canvas elements.

Ewald Horn 26 Newbie Poster

This is actually a very rarely used feature, so finding documentation on it is difficult. I, for one, believe that sending a username and a password this way is risky, but, if you really need to do so, you can modify the SOAP header request.

The trick is to create a handler for this, there's excellent documentation at this site : http://www.javadb.com/using-a-message-handler-to-alter-the-soap-header-in-a-web-service-client/

My only question is, are you sure this is what you need to do?

Ewald Horn 26 Newbie Poster

Ah, redirecting to a second page could also work, it's a good suggestion.

Ewald Horn 26 Newbie Poster

I was just trying to point out that it's not a simple guessing exercise, it requires some kind of measurement.

Ancient Dragon commented: I agree +0
Ewald Horn 26 Newbie Poster

Could you perhaps be a bit more specific? Do you want to know how it works, why it's required, what models work best?

Ewald Horn 26 Newbie Poster

Your subject and question are not the same, which one do you need answered? I'm not sure :)

Ewald Horn 26 Newbie Poster
Ewald Horn 26 Newbie Poster

You will need to take measurements as to the current disk consumption over a period of a month, every day, more or less at the same time. That will give you a daily disk consumption rate. Then work on an average of 125% of that rate and you'll have a more or less reliable estimate as to when the server can be expected to run low on disk space.

Ewald Horn 26 Newbie Poster

There's no easy way to answer this without knowing how complicated an application you are referring to.

Which platform are you targetting? Is this a mobile application for Android, iPhone, Windows Phone, Nokia S60, Blackberry... Does the mobile site already exist? Do you need the mobile app to interact with an API? What is the purpose of the mobile application?

See, there are many questions that influence the answer. Can you give us a more detailed description of what you require?

Ewald Horn 26 Newbie Poster

Ah, you want the two applets to be able to communicate with each other. You can do it with JavaScript, there's a very nice tutorial here : http://docs.oracle.com/javase/tutorial/deployment/applet/iac.html

The basic idea is to use the parent page's JavaScript context to pass messages between the two applets, because the page can see both applets.

Hope this helps!

Ewald Horn 26 Newbie Poster

Ah,

the Google Play store has a once-off cost, which means that once you've registered, you never pay again, even if you publish 1000 applications.

Please visit http://developer.android.com/tools/publishing/publishing_overview.html and http://developer.android.com/distribute/googleplay/publish/preparing.html to get the most recent and relevant information. The current cost to register is $25 (twenty five US Dollars). This is a once-off fee, so you won't pay it again.

There are some free stores, but they have very limited users.

The entire publishing process is well-documented and it's a few steps to follow. If you get stuck, let us know.

Ewald Horn 26 Newbie Poster

Do you get some kind of error message? Did you install into that exact path?

Ewald Horn 26 Newbie Poster

I use "php" when I try to run php commands using the xampp distribution.

For example, ignoring the path :

 C:\xampp\php\php.exe myphpfile.php

would execute the myphpfile.php script.

Ewald Horn 26 Newbie Poster

You'll need a build a basic API on the server side that handles all calls and provides a RESTful interface for the Android app. That's one way to do it - and I'd certainly recommend going this route. You can then use a simple Android client to make REST calls to this API, with the real work and logic happening server-side and results published to the calling app in JSON format.

This is the simplest solution if you need a native client, otherwise, you could just build a mobile-friendly Java EE application, although I suspect that might actually involve more work than you might have time for.

Ewald Horn 26 Newbie Poster

I figured you'd be able to access the sytem files etc. via BartPE, but I think Gerbil's got a pretty good idea going there. Now I'm curious to know if that will work.

Ewald Horn 26 Newbie Poster

Well, if you can't boot into safe mode that way, how about using a boot disk like Bart PE or something similar to be able to still look at the boot config files? There might be something in there as it sounds like something that loads into memory that gives you trouble.

Ewald Horn 26 Newbie Poster

Apart from the fact that the above code won't compile, nor run, you neglected to show HOW the append() method works, so we can't really help you there.

I'd have to venture a guess and say that you do not grow the linked list correctly, but that's impossible to be certain about without the actual code.

Ewald Horn 26 Newbie Poster

The most likely reason is that there's still a thread that is running in the background.

In Java, all GUI applications have at least two threads - the application itself and the GUI. In Swing, for example, you must specify the EXIT_ON_CLOSE flag for your top-level frame, otherwise the GUI will close but the application will still be running in the background.

If this is a desktop application, make sure you call Platform.exit() in whatever exit method you have.

Ewald Horn 26 Newbie Poster

Ah, this sounds like quite the conundrum - "Here type this - oh wait, no keyboard" seems to be what I keep running into.

Can you boot into command-prompt mode only? And does the keyboard work from there? I've had a machine with a very similar issue, and it turned out to be a virus infection that wrote a driver into the System.ini file in the Windows root folder. Drove me bonkers for quite a while.

You might have an entry in win.ini or system.ini that's messing with you, it's worth checking them out and eliminating anything in there as a possible culprit.

Ewald Horn 26 Newbie Poster

My pleasure, I hope it was of some help :)

Ewald Horn 26 Newbie Poster

You are correct.

A live wallpaper is just an application, just with special privileges. You can certainly build in date-driven behaviour. I've found Java to be the best language for doing this kind of development for Android.

Ewald Horn 26 Newbie Poster

The best way is to expose some kind of web service or API that your Android app can talk to. Directly connecting a mobile application to a database is not a good idea, you have so many connectivity issues to deal with that it becomes a nightmare to ensure data integrity.

Ewald Horn 26 Newbie Poster

Hi.

Sorry I only saw this now.

Let's take it line by line:

  1. create a static method called analyAPI that takes a single parameter, pkgname. In Groovy, you do not have to specify the variable type, just the name, very much like in JavaScript.

  2. Define a variable called refs that uses a static method load in the Yaml object to load and parses a file as text. This will load the Yaml script and populate the variable called refs with all the information from the script.

  3. The variable refs will contain a reference to all the Classes and it will be a collection. Using refs.Classes.each allows you to loop through all the classes in this collection.

  4. Using a static method caled analyzeClassRef, parse the package name and the class name. The "it" refers to the current class being served by the "each" iterator. The "it" is a convenient method for getting hold of whatever is being iterated over and is very handy in Groovy.

  5. Declare our static method and specify the parameters. Again, note the abscence of types.

  6. Println is a method / function in Groovy that will print something to the console. Of special note is the use of "" quotes, that allow you to specify placeholders in the string that will be replaced by the content of the specified variables when the line is printed. For example, this string will contain the String representation of pgkname and name when printed.

  7. Define a variable called filename, and, using standard …

JamesCherrill commented: Very helpful, thanks +15
Ewald Horn 26 Newbie Poster

The same TYPE of app. If you designed, let's say, Instagram, and sold it, the buyer wouldn't want you to create a similar app - that would undermine their investment.

Ewald Horn 26 Newbie Poster

If you end up selling to a company like Google, they will definitely have a nice contract they want you to sign. That contract will, amongst other things :

  • Transfer all intellectual property (code, design, names etc.) to them.
  • Have a restraint of trade in place to prevent you from writing the same kind of app again, this is to protect their investment.
  • Specify exactly what you need to give them, usually it is all the IP (as in the first point) but could also include a consulting period where you work with their developers while you hand over the code and processes to them. That is, if they don't buy your domains and developer accounts from you.
  • Transfer all hosted server and other online accounts that the application needs to them.

The actuall app will be transfered into the buyers Google Play or iTunes account. Applications do not need websites if they are sold via the Play Store.

At the end of the day, all control and rights for the application will belong to the buyer, with you, the seller, walking away with a nice sum of money.

Ewald Horn 26 Newbie Poster

Hi.

I've had good success opening XLS files with http://poi.apache.org/ - as for printing, that's entirely up to you. You will need to read the data and then send it to the printer.

Ewald Horn 26 Newbie Poster

Ok Rina, I'm sure we can help when you get stuck, but you are going to have to do a lot of planning and put in some effort. Nobody's just going to do your homework for you.

Show us what you've done, where you are stuck and where we can help. Remember, the whole point of this is for you to earn your graduation, otherwise it's all for nothing.

Ewald Horn 26 Newbie Poster

Great job - that's some good investigative development there.

Ewald Horn 26 Newbie Poster

Well, that is great news - at least you now know exactly where the problem lies.

What libraries are you using for the Python code? Have you tried to simply log information to screen, to see if perhaps you are losing data because the Python script is locked at the moment of writing and perhaps fails to read data from the buffer?

Ewald Horn 26 Newbie Poster

Do you have anything besides the Python script that can read the data? It might be worth your while to investigate whether the dataloss is related to your script or not, because right now, there are too many unknowns.

Ewald Horn 26 Newbie Poster

@PWolf - don't worry, I've only made that mistake a few hundred times, you'll learn to double-check :)

Ewald Horn 26 Newbie Poster

This service has been deprecated and is no longer available. The guys at http://www.xignite.com/ have a free trial you can use.

What I've found with free sotck information services is that they are very slow and inaccurate, so for commercial use, they are not a good choice.

Ewald Horn 26 Newbie Poster

You can use the Java Desktop libraries (see http://docs.oracle.com/javase/tutorial/uiswing/misc/desktop.html) to do exactly this. There's even some good examples, and the best thing is, it works cross-platform as well.

Ewald Horn 26 Newbie Poster

Touch screen displays for PC's. It's both an input and a display device. While it's not a new invention, it's only recently become popular.

Ewald Horn 26 Newbie Poster

Hi,

dont' worry, this is a common issue with learning Java :

Monster.Java should be called Monster.java.

Java is case sensitive, so when it tries to find the Monster.java file, it's failing due to the naming issue. Rename it to Monster.java and it should be fine. (You can right-click on the file to rename it in Eclipse).

pwolf commented: solved my problem +2
Ewald Horn 26 Newbie Poster

What have you tried?

Ewald Horn 26 Newbie Poster

Hi.

I'm not entirely sure what your question is.

Perhaps you need to make a list of what you want / need this program to do, that way, you can break it down into simple steps and develop them one by one, making your life easier.

How would you like us to help?

Ewald Horn 26 Newbie Poster

Depending on what you wish to do, you might make use of technologies like PhoneGap or Titanium Appcelerator to write a single program that works on both iOS or Android.

As RubberMan pointed out, these two platforms have applications that are built using a different technology stack, but for high-performance applications like games, you'll probably end up using C++.

For more generic applications (think most productivity apps, foto sharing apps etc.) you might wish to invest the time and effort to build native applications if you use a lot of device services and need lots of performance. If you have something that just displays some information or is a data capturing program, you can get by with a hybrid application.

Ewald Horn 26 Newbie Poster

I've run into this a few times - and the good Reverend Jim has a nice solution, but it will still benefit from indexing.

Ewald Horn 26 Newbie Poster

Indexes...

You do not have indexes on the columns you are comparing, so it will be doing table scans all the time.

Simply create indexes on both tables, for those columns, before you run the query.

Ewald Horn 26 Newbie Poster

Hi.

Sorry I was away for a few days - enjoying Africa :)

So, we've had something similar, and ended up using a distributed queue system, where every location has it's own local server that receives updates from the cloud, and pushes changes back to the cloud. The local server runs a mirror of the cloud solution, so look-ups first hit the local database, and if nothing is found, the cloud link is used to get the information.

This solution though, cost a lot of development time, and we had to modify our desktop application server (not the desktop app itself, luckily) quite a bit to make it work.

The solution seems to work well for the client, given that they do more reads than writes on the database. All changes (sales, inventory etc.) are pushed to the cloud queue and is pulled down by each individual location. Our queue is time-stamped and has a sequence number, so each location pulls down only what it needs. For example, if location B loses connectivity for two hours or so, it's not a big deal, it will be able to catch up to the rest, and will continue to work in isolation on the local database until a connection is restored.

We did make a change where each record in the database is also linked to a location, that way, we can view all sales in Location A, even from Location D, or just the sales for Location D, even in Location …