I am looking for some help anyone that is familiar with php and xpath please email me, I have a couple of questions.
I am trying to complete a web based app for WINMO
Metaplane
dhpcnc at gmail
Here is my problem
Here is part of the xml file.
-
<forecast_conditions>
<day_of_week data="Fri"/>
<low data="59"/>
<high data="89"/>
<icon data="/ig/images/weather/sunny.gif"/>
<condition data="Sunny"/>
</forecast_conditions>
-
<forecast_conditions>
<day_of_week data="Sat"/>
<low data="47"/>
<high data="71"/>
<icon data="/ig/images/weather/sunny.gif"/>
<condition data="Sunny"/>
</forecast_conditions>
I want to only display the /condition (<condition data="Sunny"/>) for a given day, such as /forecast_conditions/day_of_week[data="Fri"], what would the proper xpath statement be for that?
I know this is the apps thread, but all you super geeks hang out here and I know several of you guys are xml experts, LOL. Yes, I'm still learning but hey at least I know when to throw up my hands and ask for help.
Come on...
I can't believe out of 49 views that no one knows how to do this, LOL. Or maybe its just that no one wants to take the time, but thanks anyhow.
If you want just the data attribute from the condition element the proper xpath statement would be:
/forecast_conditions[day_of_week/@data="Sat"]/condition/@data
or drop the /@data at the end if you want the whole element.
I did not test this so I'm not making any guarantees. Try it out.
Thanks MooGoo
/forecast_conditions[day_of_week/@data="Sat"] worked
Related
Hi all,
I'm looking for a very simple program which will read GPS coordinates from my bluetooth GPS receiver and use a GET or FORM request to upload them to a website, i.e.
www.website.com/gps.php?n=000.000&w=000.000
Does such a program exist? I've had a look around here and on Google and can't find anything.
If not, I would be willing to have a go at making it. In this instance, does anyone have any pointers for reading the data from the Com port?
Thanks
Oliy
Try the search next time
here: http://forum.xda-developers.com/vie...=0&postorder=asc&highlight=http+post&start=50
Oliy said:
I've had a look around here and on Google and can't find anything.
Click to expand...
Click to collapse
Thanks for the link, however all the solutions in there are far more complex than what I want, or limited to me making an account on someone else's server.
Is there just a really simple app to do this? Or could anyone provide source code of getting the GPS coordinates, and I could make the rest of the program from there.
Cheers
Oliy: it's a little more involved then just reading the com port. What kind of experience do you have? You have to do quite a bit of token and string parsing. Have a read of the GPS protocols:
http://vancouver-webpages.com/peter/
V
Hi Vijay,
Thanks for the link. String and token parsing is fine. I have plenty of experience in core operations of programming languages, it's when you get into hardware specific things that I have very little experience.
I don't have a whole lot of time to program at the moment, I start my internship on monday and I have work on my own little OmapScaler project building up as well, but I've found a guy on this forum who seems to have the same ideas as me, I've PMd him and will hopefully get a reply soon.
Oliy
Okay,
I have this problem where I am never pleased with anything I do, so I keep trying to improve it and improve it even further. The time has come.
I have been coding the new features for my website (www.touch-innovation.com) and here is the list I have thought of and has users suggest via email:
- Live submit (Submit directly onto the site... instantly. With lots of security though )
- Screenshots on category lists
- Download names instead of random hash.
- Add comments to news sections
- And lots of admin panel updates which you don't need to know about
Another thing is, what do you think of the design. Does it need a re-design? Does it need to be minimilsed or what not?
Help me out come on, throw me some ideas!
<3
dude, this sounds great
all of those features sound like excellent additions. good work on the coding
no, the site looks fine the way it is
Why do you want to change that site it's clear easy to use and looks cool
Because people have complained about the fixed backgrounds on the left and right. I was thinking of making them a bit thinner to make more room for content and shiz.
Thanks for your compliments, so you don't have any other feature requests? And the Live sumbmission idea, would anyone use it?
Thanks again
Anyone with a decent knowledge of php drop me a line. I'm having problems editing filenames on the fly (sounds easier than it is trust me, complex scenario).
The one and only thing I'd like to see changed? Not use javascript when clicking on applications to take you to their detail page. I get annoyed when I can't open it in another tab
It only uses javascript for the onhover effect and to make the whole td a link. If you want to open it in the new tab, just right click on the name (which is a hard link, for people without javacript).
It's been like this since first release, I did it just incase of no javascript
Napbree said:
Anyone with a decent knowledge of php drop me a line. I'm having problems editing filenames on the fly (sounds easier than it is trust me, complex scenario).
Click to expand...
Click to collapse
I guess I need more specifics, but a nice little loop with the function rename() should do the trick. I am sure you have looked at some resources, but the php.net site is great, here is rename with tons of good examples, some of which I have used in the past:
http://us.php.net/manual/en/function.rename.php
Hope this helps, FYI the site looks great!
Gudy
Thanks, rename isn't on the fly though. I'd have to rename it, then let the user download it... wait till the user has downloaded it, and then rename it back. And what hapens if someone else trys to download it in the proccess of this, they'll get a 404 for the file. I'd have to copy to a new location and do it that way. No point, I need on the fly not permanent. Normally I would use the rename function but it's not helpfull in this sutation.
I just need to play with the headers for a while and get them working .
Thanks for your help though
And thanks for the compliments.
Napbree said:
Okay,
I have this problem where I am never pleased with anything I do, so I keep trying to improve it and improve it even further.
Another thing is, what do you think of the design. Does it need a re-design? Does it need to be minimilsed or what not?
Click to expand...
Click to collapse
hell yeah, I know that feeling...I´m never pleased with my designs as well
And no, it doesnt need a major refresh yet but try to make the background a bit lighter so the whole site gets a bit more contrast. Just lighten up the background by 10-20% or so and show us what it would look like
And tell me if I´m wrong...but "Touch friendly programs for the windows mobile" sounds extremly strange, what about leaving the "the" out ?
regards,
Martin
Napbree said:
Thanks, rename isn't on the fly though. I'd have to rename it, then let the user download it... wait till the user has downloaded it, and then rename it back. And what hapens if someone else trys to download it in the proccess of this, they'll get a 404 for the file. I'd have to copy to a new location and do it that way. No point, I need on the fly not permanent. Normally I would use the rename function but it's not helpfull in this sutation.
I just need to play with the headers for a while and get them working .
Thanks for your help though
And thanks for the compliments.
Click to expand...
Click to collapse
I didn't understand what you needed, and I think now I do, you want to change the name as someone is downloading a file correct? If so, check this sample out, modify the header section as needed, ie this line:
header("Content-Disposition: attachment; filename=\"$file\"");
you could do any type of processing on the name you need, then just pass the string like above. Here is the link to the rest:
http://apptools.com/phptools/force-download.php
Hope this helps
m.schmidler:
Thanks, I'll try that now. And the "The" bit... Well it makes it sound like it's the only decent phone - aka unlike iphone . Its pronounced th-eee not th-u. So it sounds slightly different.
Get what I mean?
mjg7876:
I've been looking into the disposition header for a while, but the way I currrently download files is quite simple but to interlock these 2 things togeather is complex. Especially considering I will need to do checking, exploding (for the file extension) and redirecting if it's not hosted on the server. I make things too complicated lol.
Thanks for your help guys btw
Anyone else?
Is it me or does the logo from this site in this post look very similar to yours?
http://forum.xda-developers.com/showthread.php?t=441647
Great Site
I love your Site. In my opinion : it doesn't need any re-design.
But i do have one suggestion : it would great to have your tables with worting features.... One could just click on the title of one column and it would be sorted.... Understand what i mean ?
Thank for your work.
Thanks for your kind words
And btw, you can already sort them (programs list only atm). Simply click on the title, download, views, etc. and it will resort.
Try it
BTW: That logo looks like a skeleton version of mine :/. There's everthing thats on mine, just minimilised! What's going on? :/
ATM work is up to my eyes, so I've had to slow down on the development. It's not something I can rush due to security.
Any more suggestions I will be more than greatful
Attention:
The Release is Here
I do alot of skinning but finally decided to jump in and try and actually create my own program, and i need a little help
Some of you may be familiar with trinket softwares "fake call." If not you can do a quick read up with this link.....
http://www.trinketsoftware.com/FakeCall/
I am in the middle of developing something similar but a freeware version (if you didn't know the software isn't freeware any longer) I had put a very basic but working program together in basic4ppc, i then found out i had to buy the software to compile the program. Since i already own visual studio 2008 i decided i would go ahead and try to rewrite my program in vs.
I have completed my design, but i need help with the code....
i need a help with-
"sound" - i obviously need to be able to play sound, i have looked in ms help in vs and they provide some keywords but i am getting errors when i debug.....
-how to load images from an xml file- (in need code for the call)
These will all get me rolling and allow me to release a beta......
I'm getting closer and closer
Because everyone has a different dialer or "incoming call screen," i have decided the best way to go about your fake call is to allow people to select a screen shot and a sound of their choice, creating a very customized realistic experience for every phone (as it would look just like the dialer on your phone) without having to input an obsessive amount of information. (caller name, picture, ect..)
thanks for your help in advanced
THANKS TO-
MRABIE
Attention:
The Release is Here
Wow, this is great. Ya, since fake call is no longer free this is a very amazing idea. I know a lot of people here will help you. We just have to wait. =)
Great idea, I downloaded that app a while ago when it was posted and was rather disappointed to find out it was fake freeware. A couple of suggestions, the aforementioned app would use the default ringer. The suggestion seems pretty simple from a logistics point of view but may be more difficult to program than I would imagine, when selecting a person with a ringer other than default associated use that one. Maybe have a call timer that will stay up and count until the end button is tapped. Hope this helps.
I didn't realize that the other software had gone commercial. Thanks for stepping up!!
bump............
What programming language are you using, considering Visual Studio supports several.
In vb.net your Wait method could be replaced by Sleep(milliseconds). Documentation. I am not sure, however, it this method is included in the compact framework, assuming that's the one you are using. Hope this helps somehow.
Full .Net documentation can be found here.
I am using .net but may consider rewriting again later after getting a release to rid the program of dependacy on the .net framework.
I Have updated the list, as i have gotten some stuff already figured out thanks to different people on the forums, THANK YOU
If you guys can help me out with this other stuff it would be greatly appreciated
Whoa!
Trinket Software is practically giving away their apps!
http://www.trinketsoftware.com/xdadevoffer.aspx
selfdestrct said:
Trinket Software is practically giving away their apps!
http://www.trinketsoftware.com/xdadevoffer.aspx
Click to expand...
Click to collapse
thanks for posting.
just as a reference, there's something called DOWNCALL which is free and simple.
edit: my bad, this calls someone at a scheduled time.. doesn't fake a call.
this is nice of trinket but will only last until the 24, and is really only supposed to be for our webpage.
UPDATE:
i'm working on xml now
still need help with sound
did this die out or is it still in development?
jhw549 said:
did this die out or is it still in development?
Click to expand...
Click to collapse
Yeah, I'm curious to know as well. Thanks.
Heres an app I use called PhoneyCall
http://www.aimproductions.be/titleview_comingsoon.php?title=PhoneyCall
Hello everyone. I am a second year electronics student and am now working for my General Radiotelephone Operator License (GROL). I am looking at having to memorize the answers to just under 700 questions. Its rather tough lol. The reason I am here is simple. I have searched and searched and have not found any software for my touch pro that will help me study for this test. I don't know how to write programs but I know that many of you out there do a phenomenal job. I am looking for someone that would write a program for me that would quiz me on all the questions for the GROL. In fact I believe that if one where interested in making a few dollars he or she could go all out and make a program that creates a full exam from the test question pool, then watches which ones the user gets wrong and makes sure to ask them more often. It would also be cool if a pop up window came up explaining the proper answer. I also think it would be nice to have a screen at the end showing results. I know at first this seams daunting but I do have software that came with my book that is close to this and could send you a copy. Also, the entire question pool is listed on the fcc website. It wont let me post the link here but if you contact me by email i can find it for you.
The GROL only requires sections 1 and 3. The only other program similar was marked at $40.00 and for the pc. Nothing has been found for the PPC where it makes the most sense. During random downtimes a person can do a few random questions here and there. I believe that if made to look nice with a nice touch style interface someone could post this to windows marketplace and sell it for $20.00 easily and make some nice cash on it. I would learn to program and do it myself if it weren't for the fact that I am in class now and need it ASAP.
Thanks in advance for all that entertain the thought of taking this on
Aaron
soco28 at gmail.com
It's not exactly what you said, but maybe you can use SuperMemo UX & SuperMemo Mobile. It's free software, but you will need to build your own course.
www supermemo eu
frizzlediam said:
Hello everyone. I am a second year electronics student and am now working for my General Radiotelephone Operator License (GROL). I am looking at having to memorize the answers to just under 700 questions. Its rather tough lol. The reason I am here is simple. I have searched and searched and have not found any software for my touch pro that will help me study for this test. I don't know how to write programs but I know that many of you out there do a phenomenal job. I am looking for someone that would write a program for me that would quiz me on all the questions for the GROL. In fact I believe that if one where interested in making a few dollars he or she could go all out and make a program that creates a full exam from the test question pool, then watches which ones the user gets wrong and makes sure to ask them more often. It would also be cool if a pop up window came up explaining the proper answer. I also think it would be nice to have a screen at the end showing results. I know at first this seams daunting but I do have software that came with my book that is close to this and could send you a copy. Also, the entire question pool is listed on the fcc website. It wont let me post the link here but if you contact me by email i can find it for you.
The GROL only requires sections 1 and 3. The only other program similar was marked at $40.00 and for the pc. Nothing has been found for the PPC where it makes the most sense. During random downtimes a person can do a few random questions here and there. I believe that if made to look nice with a nice touch style interface someone could post this to windows marketplace and sell it for $20.00 easily and make some nice cash on it. I would learn to program and do it myself if it weren't for the fact that I am in class now and need it ASAP.
Thanks in advance for all that entertain the thought of taking this on
Aaron
soco28 at gmail.com
Click to expand...
Click to collapse
I know this is an older post. And I knkw what you mean, and are talking about. I am changing career fields into Avionics, and a classmate has an app for his (cry)Phone. But in the Google Play Store, they have some, but they are expensive for what it is ($19.99 and $12.99). I can't find anything except crApple. Absolutely no Android. I can't even find anything where someone ported the CD that is in the book over to Android and other platforms. I have coppied the files from the CD to a folder on my computer called "GROL." So I didn't have to have the CD in my computer the whole time. I'm going to graduate at the end of this month, and I only have Element 1 done. Partly its my own fault for waiting until now. But either way, I'll have 3 & 8 done. But it would be nice if I could take the studying with me when I have life going on and not by my computer. Lol
Android surpassed crApple, and yet we still get kicked to the curb.
Hello everyone,
Sorry if this has already been answered. I did search but I couldn't find a clear answer(there were some but they weren't exactly what I needed).
What I'm trying to do is just show a bunch of images from the web. I figured getting the images would be the hard part but it turned out to be easy. Now I have an arraylist of imageviews and I figured the easiest way to show them would be in a listview. I made a ListActivity and then used setListAdapter with the arraylist of image views that I have. I ended up with a bunch of things like
[email protected]
for all of my list items. Obviously, this is not what I was hoping for.
Any help here would be greatly appreciated.
Thank you so much,
Samuel Maskell
I meant to say ArrayAdapter, actually. That would make more sense..
maybe I'll explain a bit more what I'm doing.
I'm getting a bitmaps from BitmapFactory.decodeStream()
then creating a BitmapDrawable
and finally using ImageView.setImageDrawable() with that BitmapDrawable
should I be doing something else?
I kind of figured it out using this tutorial
http://www.anddev.org/novice-tutori...t97.html?sid=57c1096099cb666b386eb4ab65aba0c6
It wasn't exactly what I wanted to but I managed to figure it out eventually
however, now my images have a bunch of space between time.. oh well
hopefully I can figure that out