[Q] App development help? - General Questions and Answers

I want to develop a very basic app.
Main function: Show the value of a cryptocurrency
My problem: I don't know how to get the value of this cryptocurrency from this website and put it on my app. I want it so every time I push the refresh button it gets the newly updated value and prints in on the screen.

Hi,
To get values from a website, you can use a technique called screen scraping. To do that you can use Jsoup. A very good start point is to search for "Jsoup HTML Parser Hello World Examples" and check the mkyoung examples (I can not post links yet).
In order to examine the html you can use a web inspector like Firebug.

Jsoup is a nice library especially since it can handle fetching the document for you (not always desirable though) and has a familiar jQuery-like syntax. I've used it in projects before and it's pretty quick to get going with.

Related

PHP Calendar Question

I'm in the process of redesigning our local access station's web site. I'm just about finished, except for a program guide system. Currently, the "program schedule" page is simple HTML, but there are a number of problems with this system.
First off, the person who updates the schedule is by no means a web designer, and the page slowly deteriorates as tweaks are accidentally made while updating.
Secondly, the new site is designed to show the current day's program schedule on each page. It would obviously be a royal pain to update this manually using HTML, so we're looking for some sort of PHP calendar system on the site: PHPKode to integrate into the site.
What we need is a simple PHP/MySQL calendar system that will allow us to integrate a daily schedule into a sidebar, and set up a program grid on the main schedule page.
As in the above example, we'd like the program name to link to that show's page.
I've looked around for a few days trying to find a good system, but haven't had much luck. I don't know if there are any PHP "program guide" scripts out there, but I would think there would be some sort of calendar that could accomplish this job.
I should note I know a little bit of PHP/MySQL scripting - enough to do some *minor* tweaking to a simple script, but I'm by no means fluent with it. Bottom line- the less scripting I have to do, the better.
The current version of the site can be viewed here. (We haven't transfered our domain to the new server yet, hence the subdirectory setup.) The weather sidebar is a placeholder for the program schedule. I appreciate any suggestions or advice, so thanks in advance to anyone who can point me in the right direction!

A new App for web-tinkerers (Open Source)

I don't participate much, but I've learned a great deal from this site. So I'm posting this here as GPL2 software as a way of thanking everyone. All I really ask is that it not be used in a closed-source app without talking to me first.
Can't poast URLs, because I have fewer than 10 poasts (I lurk hard). Mod, if you don't deem this to be spam, would you kindly provide the link (or allow me to do so)?
[sourceForge.net]/projects/webremote/
Basically, this was meant to be a generalized HTTP(S) client, with the URLs being assembled dynamically and under a variety of different circumstances. The server-end of the transaction is a creation of the user.
I wrote this tool to assist me with repititive tasks at work (specifically, asterisk/linux administration). I wrote a PHP page to do things like add users, check server load, trigger recordings and dialplan modes, and so forth.
I have also used it in conjuction with a Raspberry Pi to trigger relays and read sensors in my home from wherever I happen to be at that moment.
There are lots of things I want to do with this app...
Implement GPS, so I can trigger URLs at waypoints.
Tie into NFC and make a bitcoin wallet that you can "bump" or scan a QR code to pay someone.
Implement Trigger packages to support one-click importing of Triggers for a specific task (IE, minecraft server administration)
Use BouncyCastle to encrypt the DB.
Hook into the camera and fire triggers using snapshots (or image files) as arguments.
Actually cause the HTTPS Receivers to validate certificates. Presently it does not (although the traffic is still encrypted).
I will take requests, questions, and bug reports at the sourceforge page, but how fast things get done will directly correlate to how much interest the project attrracts (which may very well be none).
For those learning how to program and trying to learn something by reading the source, I'm sorry.
I've tried to keep things hygenic. I come from a C/Java background, so Android was a bit of a leap, with respect to its organization. This program is a work of evolution.
To check out the source, use subversion:
svn checkout svn://svn.code.sf.net/p/webremote/code/trunk webremote
My working copy is also my Eclipse directory, so importing it with Eclipse should be minimal trouble.
If anyone *really* wants to thank me, I am a bitcoin user:
12rA36FH4NUFZojxyxQgWmQm6WUnzfQ1yR
Or you could buy the version I have up at google play (but I consider this a donation):
Can't poast URLs.... Search the Play store for WebRemote.
Thank you all again for sharing your knowledge.

How to create a wordpress theme easily

Tips on how to Create your Customized WordPress Page Design template
The right Word Press Theme Guideline
Primarily made a webpage web site, Blogger automagically displays just about all comments in any loop, advertising the latest posts first and then the sleep inside chronological sequence in the time frame about connection. My spouse and i really like the following about concept marketing to get posting the idea facilitates all of your site visitors to view your most popular observations together with suggestions, although allowing these people the actual possibility to help search up elderly posting by few weeks.
Making certain that the text touch blog site only has a particular landing web page, is just not of which will really put together although locating the best style and design is undoubtedly super crucial, in addition to often you'll intend as well as set up your special. By way of static, I really necessarily mean that in contrast to the standard Wp web site, this written content stays precisely the same. You will be prepared to design the ordered nav menus to create confident people enjoy the best methods concerning each individual website.
Unfortunately generating the attaining web page and even customizing it is going to take practical knowledge and also you may will want the idea throughout common the same words. In this particular simple report I am going to not be in the guidelines where you would like to build a new customized concept mass media web theme, because there is not really a sufficient amount of area, yet I can go above the equipments that you really should must guarantee you could have right before people start up.
As soon as producing almost any design associated with blog including your own personal made to order statement curr web template it is really very important that you really remember that you just need to always test drive it onto your local desktop computer in advance of putting the item on the net. Acquiring a good neighborhood device will probably empower you actually to continue all your records inside a destination while not needing him or her get lost in passage. You will furthermore need XAMP, should you operate Windows xp as well as MAMP at Macintosh personal computer and the premium Wordpress theme platform based added against your remote computer. Piece of paper ++ is known as a free of charge download and read for you to may get with regard to encoding your wp template plus a net technique enjoy opera.
You might want to even appear directly into taking some, typically absolutely free, videos for Html page, Cascading stylesheet along with Perl. Hypertext System Dialect, Cascading down Type Bed sheets and also Hypertext Preprocessor, actually termed Personalized House Webpage, will be employed for making ones made to order post. I will be not implying which you will have to remain an qualified on these kind of your planning to will need to realize individuals and also be prepared to examine segments ones, designed for host instruction manuals.
For most people designing some sort of unique personal wordpress theme is a fight mainly because they manage their very own online site in addition to renew information, to not refer to wishing to know new languages. If your not even prepared capital t discover the particular code and it simply sounds towards complicated in that case comsider typically the client theme generation devices who are avaiable on the internet, in conjunction with any free of charge design templates which will include text hit.
Those subject makers definitely will let you outline a lot of spaces of your respective blog page to suit styles and additionally varieties to all your choosing, particularly the most thing are generally fairly reasonably limited in the models with variations they could make available. Yet certainly clicking a number of conventional hardware after which the carried out, you've got some sort of tailor-made word press theme within the other part.
Dude this forum isn't about wordpress themes!! Mod delete this thread

Basic N00b advice needed

First, I hope this is the right place where I am posting the question. I am in the fire service and I would like to create an app for droid, that would read a basic text message and display a lookup information from a xls document For instance, the text message would display the address for a call. The app would use the information from the text and display a map page number and a short text phrase (running route to the address). I.e the text message says : House Fire: 101 Main Street. The app would look up that address in the excel document, and display the attached information, which would be 101 Main street: Left of Central Ave, Right on Martin Ave: Map 305. Any ideas on where to start? Or maybe app like this exists already? Thanks in advance!
Hi, it's a very broad question so it is very hard to answer. The answer depends on so many factors:
- Do you have any experience programming?
- Have you experience designing/developing mobile applications?
- Do you specifically need to use xls documents? (what you want is better suited to use built-in maps app. i.e. take the text from the text message, parse it a bit for keywords if you want different actions to be keyed in on, and then pass a search string to the maps app).
If you have no experience with developing mobile apps, I'd suggest going to google and searching for simple mobile development languages and frameworks. Stick to ones which use scripting languages. Or you can go to freelance websites and pay someone to make such an app for you. If its very simple, they shouldn't charge you more than a couple hundred.
slivingston said:
First, I hope this is the right place where I am posting the question. I am in the fire service and I would like to create an app for droid, that would read a basic text message and display a lookup information from a xls document For instance, the text message would display the address for a call. The app would use the information from the text and display a map page number and a short text phrase (running route to the address). I.e the text message says : House Fire: 101 Main Street. The app would look up that address in the excel document, and display the attached information, which would be 101 Main street: Left of Central Ave, Right on Martin Ave: Map 305. Any ideas on where to start? Or maybe app like this exists already? Thanks in advance!
Click to expand...
Click to collapse
From what I am understanding here, you want something that will disperse Calls in the form of app alerts, with the two main purpose being alerting the recipient of the location, and also of the directions to said location... Yes?
to start with, figure out what exactly needs to be done and why and put it in writing
The first step would be to write down exactly what you're looking for this app to do and any other pertinent requirements (needs to work offline, speed requirements, hardware to support, etc.).
What you're describing so far sounds like a service provided by major online map providers such as Google, Bing, etc. If you have an address, you just key it in as a destination, and then if you have the fire station pre-filled in as your departure point, you'll get map directions generated right there. Is this what you're interested in? If so, then you can just open a browser when you receive a message and go to Google Maps or to the maps app directly from the phone and do it there.
If some of the details that you've provided are hard requirements (text message being an incoming SMS, .xls data store, precise data requirements, zero downtime tolerance, very fast response times, etc.) then the best place to start would be finding an acquaintance who can write phone apps (maybe some kid from a local high school or college?) and explain/show what you want done to them in detail and have them estimate how complex this work would be. After than you either hire that person to do the work or pressure them to do it for you as community service .
If you don't have the right people in your network or they're unwilling to do the hard lifting, then you should reach out to a contractor and have it done commercially. It's the same approach: explain what you need done exactly, then get an estimate, etc. Based on what you describe, it shouldn't be too complicated or expensive.
I don't recommend you do it on your own unless you have tons of free time and/or are specifically looking to learn how to write apps. You'll end up spending a lot more time than this project costs on the market, and if you're not really into it, it might seem quite frustrating for what seems like should be a very simple thing.

PHP is it possible?

Hi experts,
I am an reasonably good php scripter, but know just the very very basics of mobile app development (Java/Smali/Android Studio).
I really have no interest in trying to learn enough to build a decent app as time is a big limiting factor for me.
I have an idea for an app, and I know I could do the whole thing in php quite easily, but I would like it to be a downloadable app, is it possible to write my software in php, and then have a very basic android/IOS app that basically just loads the website, the only thing the app needs to do, is run the webpages in fullscreen and hide any browser elements (url bar, scroll bar etc). The only thing that may be challenging is enabling "swipe" abilities, but I can live without that and just use hyperlinks for moving around, I would also look at preloading content so the app runs smooth. At some point if the app gets any interest I would pay to get ti developed properly.
Keen to hear your thoughts - maybe there are other apps already doing this I can copy, and I know some may say why not just make it browser based, but I believe the app store itself its the critical part of advertising and exposure of this service, also means I can release a real app version in the future and have it pushed to all devices.
Conceivable assaults ¶
Utilizing PHP as a CGI paired is a possibility for setups that for reasons unknown don't wish to incorporate PHP as a module into server programming (like Apache), or will utilize PHP with various types of CGI wrappers to make safe chroot and setuid situations for scripts. This setup typically includes introducing executable PHP paired to the web server cgi-receptacle catalog. CERT consultative » CA-96.11 prescribes against setting any mediators into cgi-canister. Regardless of the possibility that the PHP double can be utilized as a standalone mediator, PHP is intended to keep the assaults this setup makes conceivable:
Getting to framework documents: http://my.host/cgi-container/php?/and so forth/passwd The inquiry data in a URL after the question mark (?) is passed as summon line contentions to the mediator by the CGI interface. Generally translators open and execute the document indicated as the primary contention on the order line. At the point when summoned as a CGI paired, PHP declines to decipher the charge line contentions.
Getting to any web record on server: http://my.host/cgi-receptacle/php/mystery/doc.html The way data part of the URL after the PHP twofold name,/mystery/doc.html is traditionally used to indicate the name of the document to be opened and deciphered by the CGI program. Typically some web server setup orders (Apache: Action) are utilized to divert solicitations to archives like http://my.host/mystery/script.php to the PHP translator. With this setup, the web server first checks the get to authorizations to the registry/mystery, and after that makes the diverted demand http://my.host/cgi-canister/php/mystery/script.php. Sadly, if the demand is initially given in this shape, no get to checks are made by web server for record/mystery/script.php, yet just for the/cgi-container/php document. Thusly any client ready to get to/cgi-canister/php can get to any secured archive on the web server. In PHP, runtime design orders cgi.force_redirect, doc_root and user_dir can be utilized to keep this assault, if the server record tree has any indexes with get to confinements.

Categories

Resources