Wikipedia:Reference desk/Archives/Computing/2009 July 14

From Wikipedia, the free encyclopedia
Computing desk
< July 13 << Jun | July | Aug >> July 15 >
Welcome to the Wikipedia Computing Reference Desk Archives
The page you are currently viewing is an archive page. While you can leave answers for any questions shown below, please ask new questions on one of the current reference desk pages.


July 14[edit]

Priority queue with same priority[edit]

How does the problem of a priority queue change when multiple elements can have the same priority, and those that do should be FIFO? NeonMerlin 02:22, 14 July 2009 (UTC)[reply]

It doesn't have to change and it doesn't have to be FIFO. It is up to the implementation to make it FIFO if that is required. Otherwise it is just a sorted list of items in the queue. As with any sorted list, it is up to the implementer to decide if anything special should be done when to items are equal. -- kainaw 02:27, 14 July 2009 (UTC)[reply]
Typically elements of the same priority will come out in some unspecified (and not necessarily consistent) order relative to each other. --76.91.63.71 (talk) 05:07, 14 July 2009 (UTC)[reply]

speech recognition for mutiple voices[edit]

Does modern speech recognition software works with one voice only (end user on a computer), or is it good enough for multiple voices (interview transcription, etc.)? --Piotr Konieczny aka Prokonsul Piotrus| talk 03:40, 14 July 2009 (UTC)[reply]

There are companies which use speech recognition software for their phone support services...the user has to answer with words rather than push buttons, to make choices. For simple yes/no answers the software is trained to understand various accents and voices, as well as "okay, yep, that's right" and other common equivalents of the desired responses. For other replies, the software prompts to "say XYZ or ABC". These words are chosen to be hard to misunderstand for another possible choice. The system is "trained" on many voices (and still often doesn't understand the user).- KoolerStill (talk) 09:38, 14 July 2009 (UTC)[reply]
Right, but does it meant that there is or there isn't a piece of software one can use to transcribe 2+ voices without training them? --Piotr Konieczny aka Prokonsul Piotrus| talk 01:17, 16 July 2009 (UTC)[reply]
You mean two voices at the same time? Well, Premiere Pro CS4 has a transcribe tool that is pretty amazing. It can detect multiple voices and will transcribe a separate text for each person. [1] --68.102.170.184 (talk) 12:19, 16 July 2009 (UTC)[reply]

A stupid question about moving a window off the screen in Windows[edit]

I recently dragged a window off the screen and cannot access this file as I cannot see it any more. The particular file program in question is the Winamp media player in Windows Vista. I was watching a video clip on Winamp and manually increased the attached video screen to the size of my monitor (I should of pressed F11 but didn't). Now the video portion of Winamp is the size of my monitor and the main GUI is off the screen. If I press the (x) to close the application, it only closes the video part but winamp is still running off screen and reattaching the video makes the whole thing go off screen. I've tried everything and given up. Since Winamp doesn't act like a normal window, the "Cascade Windows" doesn't work. The only solution I have in mind is to reinstall Winamp but is there a better way?-- penubag  (talk) 07:30, 14 July 2009 (UTC)[reply]

Have you tried right-clicking the program icon in the notoifcation area, going to options, and playing with all the window sizing stuff? Maximising/minimising a few times? Ale_Jrbtalk 07:37, 14 July 2009 (UTC)[reply]
My usual method is to right-click the process in the task bar and select "Move". You can then use the arrow keys to move it back on-screen. Another option for Winamp is that it used to save its window position in its .ini file, I think. If you close it, open the file, change the position to 0,0 and then start it back up, that might work too. Indeterminate (talk) 07:45, 14 July 2009 (UTC)[reply]
When those suggestions fail, my last resort has traditionally been to move / resize the window programmatically using the Windows API. The following C++ program:
#include <windows.h>
int main()
{
	HWND h = FindWindowA(0,"Window title");
	SetWindowPos(h,0,0,0,0,0,SWP_NOSIZE);
}
should move the window named "Window title" to the top left corner of the screen. If you do not have a C++ compiler you can use an Excel macro or similar. decltype (talk) 08:11, 14 July 2009 (UTC)[reply]

Ale_jrb and Indeterminate's solutions don't work. The "Move" doesn't work because of the size of the entire window fills up the entire screen so I cannot move it any higher (which is what I need to do to access the GUI at the bottom) the arrow keys and mMaximzing and minimizing don't seem to work either for winamp. I'm not sure which .ini file you're talking about (apparently not the one in the main Winamp folder since that didn't do anything). The mp3 file doesn't have any .ini files attached. Decltype's solution is very interesting however I know nothing at all about C. I have Microsoft Visual C++ 6.0 which is a 1994 version! Vista says it has compatibility problems but maybe I'm just not compiling it correctly. I opened VS and went to "File>New>C++ source file" and entered your above code verbatim and pressed Compile. This is the output:

--------------------Configuration: mover - Win32 Debug--------------------
Compiling...
mover.cpp
C:\Windows\System32\mover.cpp(1) : error C2143: syntax error : missing ';' before '<'
c:\program files\microsoft visual studio\vc98\include\excpt.h(36) : error C2143: syntax error : missing ';' before '{'
c:\program files\microsoft visual studio\vc98\include\excpt.h(36) : error C2447: missing function header (old-style formal list?)
C:\Windows\System32\mover.cpp(7) : warning C4508: 'main' : function should return a value; 'void' return type assumed
C:\Windows\System32\mover.cpp(7) : error C2143: syntax error : missing ';' before '<'
Error executing cl.exe.

mover.obj - 4 error(s), 1 warning(s)

I'm probably missing a step or two. -- penubag  (talk) 08:40, 14 July 2009 (UTC)[reply]

I meant to try using "Move" after closing the full-screen video window. As far as the config file goes, this link describes where to find it and gives an exhaustive list of the options. Note that you need to close winamp before editing it. You can set wx and wy to 0, which should cause it to be in the upper-left corner the next time winamp is opened. Another option is to set "easymove" to 1, which will allow you to move winamp by clicking on any component window (which should include the video window). Good luck. Indeterminate (talk) 10:26, 14 July 2009 (UTC)[reply]
The "missing ';' before '<'" errors are because you pasted in the <syntaxhighlight lang="cpp"> and </syntaxhighlight> along with everything else. That's not C++, it's Wikipedia markup. The "warning C4508" is because Visual C 6.0 wasn't very compliant with the C++ standard (which wasn't even published until 1998). You can work around it by changing int to void. -- BenRG (talk) 15:13, 14 July 2009 (UTC)[reply]
WinAMP does this a lot - they've got "fancy" window behavior, which doesn't always play nice. Here's what you can do, without having to write and compile code:
Windows Key + R   (Or, Start Menu + Run)
winamp            (to start Winamp)
ctrl+D            (command to resize WinAMP window)             
This will usually push the main window back to the main viewable area. Note: do not click the mouse, or do anything else, between calling up winamp and pressing (CTRL+D) - because you need keyboard focus to hold for the invisible (or non-present) WinAMP window. Some other things to try are the built-in winamp keyboard shortcuts (Alt+W, for example, can create and solve the mysterious "Winamp Disappeared But The Music Is Still Playing" feature). Nimur (talk) 22:23, 15 July 2009 (UTC)[reply]
@Interminate: Move doesn't work at all because Winamp doesn't act like a standard window. Bummer :( .
@Ben:Oh I get it now but that didn't work either
@Nimur: Thanks!! It works! I finally got it fixed :) -- penubag  (talk) 06:40, 16 July 2009 (UTC)[reply]

One more solution for you to try: Install Pitaschio (exact spelling, Google it). Amongst the other nice settings it has is an option to force windows to stay within the borders of the screen. I got it via a recommendation on this very RefDesk (for a different problem: making the desktop icons appear as a "list view"). Zunaid 08:53, 16 July 2009 (UTC)[reply]

Thanks for that link! It's really handy! Unfortunately it doesn't work on winamp since it's not a real window. -- penubag  (talk) 10:00, 18 July 2009 (UTC)[reply]

Is there such a thing as password protection in one direction only? I have in mind Apple Disk Image files. I use them to store things I don't want others to gain easy access to. (I use a password.) Trouble is, a password is required just to put things into it. I think it would be more convenient if I could put things into it without having to enter a password. I would still like the added security of the requirement to type a password in order to view or remove anything. Anything like that, or is it impossible? Bus stop (talk) 15:04, 14 July 2009 (UTC)[reply]

Yes, you can do this with public key encryption, using gpg for example. Generate a public/private key pair and protect the private key with a passphrase. Then you can encrypt things using the public key without the passphrase and you will need to enter the passphrase to decrypt them. -- BenRG (talk) 15:19, 14 July 2009 (UTC)[reply]
What you want is some sort of encrypted drop box (a drop box lets anyone put things in it but lets only the owner read it). I would be surprised if there wasn't a program already to do it if you Googled around with that phrase. --98.217.14.211 (talk) 22:44, 14 July 2009 (UTC)[reply]
Thank you for the responses. Bus stop (talk) 21:15, 15 July 2009 (UTC)[reply]

I'm looking for excellent headphones for listening to music WITH a microphone[edit]

Hi. I am looking for headphones which are excellent for listening to music but which can also be used for Skype, so it has to have a built-in microphone. The best I have so far found are the so-called "Gaming Headsets" from Creative but they just have one problem: their ear parts are too small!!!! I want to have something like a combination of a headset with BIG ear parts so that it covers but doesn't touch the ear and a headset with a microphone. Can anyone help me? Thank you in advance! --Tilmanb (talk) 15:26, 14 July 2009 (UTC)[reply]

I can vouch for the sound quality of Sennheiser gear. The PC 350 gaming headset appears to meet your criteria; there are other headsets with smaller ear cups. Sennheiser is good (IMO), but pricey. The RRP of the PC350 is apparently $229.95 (Amazon US), although Amazon offers them with $100 discount. Searching Amazon (other online retailers are available) for headphones with microphone produces around-ear headsets from $5.99. I'm not sure where you are based - I've used the US as an example, but I would imagine similar products are available elsewhere. --Kateshortforbob 11:03, 15 July 2009 (UTC)[reply]
Thanks for your answer. I forgot to mention that I don't like behind-the-neck headphones but that it has to be an over-the-head headphone. So the PC 350 looks good otherwise but it seems to be a behind-the-neck model, right? The other Sennheiser models have too small ear cups. Can you suggest which brand or model is the best (has the best audio quality) apart from Sennheiser (as they don't seem to have over-the-neck models)? The Amazon search you mention looks great but I have no clue which model has the best (or good enough) quality. Of course I can judge by the picture whether it fulfills my requirement (big ear cups, microphone, over-the-head), but I'd like to make sure that it is also suitable for (serious) music listening. The $5.99 model LOOKS good but can it be good quality if it is so cheap? The price isn't as important for me at the moment... Thanks again for your help! --Tilmanb (talk) 06:08, 16 July 2009 (UTC) P.S. I am based in three countries: Finland, Germany and Costa Rica. I am intending to use eBay for buying the headphone of my choice.[reply]
Get one of these clip-on microphones, and use it with normal headphones. Best of both worlds. -- Consumed Crustacean (talk) 06:01, 16 July 2009 (UTC)[reply]
Should I really? I have difficulties imagining that a clip-on mic would be as comfortable as a headphone with a pre-built mic. I am really afraid that the clip-in will fall off, be directed the wrong way, face away from me, catch the background noise rather than just my voice, etc... So, unless you can really tell me that I am wrong (for example by showing me good reviews and pictures of working arrangements), I don't like the idea of buying a clip-in. Thanks anyway for the idea! --Tilmanb (talk) 06:13, 16 July 2009 (UTC)[reply]

I just bought a Sennheiser PC350 and I'm using it right now! Strange world we live in. It is EXCELLENT. The sound quality is amazing, and the mic is extremely high quality. if you can afford it, buy it. Also, Plantronics makes some headphones with large headphones. I have them sitting next to me, I used them before I bought my Sennheiser a few days ago =P 68.123.28.58 (talk) 05:57, 19 July 2009 (UTC)[reply]

Hi, the Sennheiser PC350 OTHERWISE looks good, EXCEPT that it is NOT an over-the-head headphone but a behind-the-neck headphone! I definitely require it to be an over-the-head headphone! Can somebody suggest an excellent over-the-head headphone covering the whole ear with a microphone? --Tilmanb (talk) 06:17, 20 July 2009 (UTC)[reply]

Slightly more advanced database[edit]

Say I wish to store the animal kingdom family tree in a database (along with top-trumps type information such as length, max age, weight etc), or alternatively I want to store a list of football players, along with individual detailed records for each match they play.

What sort of database program would be up to this - it seemed to be that the common desktop database programs don't really go much beyond a table of values - much like a spreadsheet - am I missing their higher order features, or are they 'just shit'? (excuse my french) 83.100.250.79 (talk) 17:13, 14 July 2009 (UTC)[reply]

Sounds like you're talking about a relational database. However I have no idea what desktop apps help facilitate this. Friday (talk) 17:14, 14 July 2009 (UTC)[reply]
For a relational database there are a number of programs you can use. All require some real time to get to know, and reading up on a few database design tutorials will definitely help out. (My general rule: keep it is as simple as you can. Elaborate, many-linked-table databases are a pain to use, alter, and maintain, and in most cases one doesn't need quite as much flexibility in such an area as one suspects one will.) Standard desktop, user-friendly solutions include Microsoft Access, Filemaker Pro, and the free-but-hard-to-use OpenOffice.org Base. Note that none of these are as easy to use as, say, a word processor or a spreadsheet -- they are not intuitive, they have their own complicated way of doing things, and they will all require substantial investment of time to learn how to use even at all. These provide tools to develop user interfaces that sit on top of relational databases, but because relational databases are very flexible, even with a lot of easy-macroing and things of that nature there is a lot of complexity involved in setting up even something quite simple. I recommend getting a "learn in 7 days" type book for any of these programs before attempting to use them yourself, just to help you get acquainted with them. Another approach is to use MySQL (which has no user interface) as a backend database and to write your own interface using any other language you are comfortable with (PHP does a pretty good job of this, and I know people who have done similar things with Perl). Once you have familiarity with a minimum amount of database theory and the means of making them, a decent home-made database can be constructed quite quickly, but it's a steep learning curve to get to that point. (I say this as someone who has done this sort of work for a decade.) --98.217.14.211 (talk) 17:48, 14 July 2009 (UTC)[reply]
Hypothetically I think I would need
The ability to store multiple data items in a field eg field_subspecies might contain "dog","cat" etc, each with their own database of (mostly) different fields.
It looks like somesort of "pointer to" in a field is necessary too.
Database_model#Hierarchical_model is probably what I need, and it's fairly clear that a relation database can emulate/simulate/be a tree type data base.
I was wondering about "object orientated" concepts as well - since things like inheritence/methods/classes etc might be useful here.
It's already clear to me that this gets complex rapidly, and you might be right about ease of use/access / complexity issues making the whole thing basically inefficient to implement (especially if no money is riding on it!)
I've tinkered with access and base, and it wasn't immediately apparent that they would be able to do a hierarchical model of the sort I might need - can someone confirm that they can/can't (I don't want to spend a lot of time learning only to discover that they are useless to me)83.100.250.79 (talk) 18:17, 14 July 2009 (UTC)[reply]
Specifically I think the most important point is that I could make a database field contain more databases - I suppose this is done by the "keys" described in the article which would be the equivalent of "pointers to other databases" I described above.83.100.250.79 (talk) 18:21, 14 July 2009 (UTC)[reply]
My personal preference for something like this is Filemaker Pro. You can create multiple tables/databases and relate them to one another. I once wrote a maintenance scheduling system for a college motorpool department using FMP. And this was the old version, where each table had to be in a different file! — The Hand That Feeds You:Bite 18:43, 14 July 2009 (UTC)[reply]
It appears that what you mean when you say "database" is what database people call a "table". A database contains many tables. The table can look like a spreadsheet, but doesn't have to. As an example, the database I use every day has one table with a bunch of people's names, birthdates, social security numbers, and stuff like that in it. Another table has an entry for every blood pressure for every patient. Another table has an entry for every prescription for every patient. This allows for freedom of having a person in the people table that does not have a prescription in the prescription table or a person in the people table that has dozens of prescriptions in the prescription table. It is called relational because the person's identifier in the people table is used to relate that person's record there with all that person's records in the blood pressure and prescription tables. -- kainaw 18:49, 14 July 2009 (UTC)[reply]
Yes I don't want to be stuck with a Database_model#Flat_model. However I don't want to be 'pretending' I've got a databases when what I've got is in fact a collation of flat file databases in a computer filing system - ie/eg I would like the database program to be able to open a persons "prescription history" from the "patients list" within the same program - I haven't yet found out how to do this in access. It's the presense or absense of those links I'm interested in - ie I don't want to be the database management program !83.100.250.79 (talk) 19:23, 14 July 2009 (UTC)[reply]
Filemaker Pro sounds quite good
Basically I'm looking for a database that allows a spreadsheet (probably as a specific templated type) to be allowable as a type in a cell (just as integers, text, date etc are allowable types)83.100.250.79 (talk) 19:41, 14 July 2009 (UTC)[reply]
The easiest way to emulate a hierarchical structure in a relational database is to have parent/children fields. Let's say you wanted to do a family tree. It wouldn't actually be efficient to create a new table for each branch of the family, which is what you are suggesting. This would get out of hand and unmanagable very quickly. What you could do, though, is have something like this:
Id Name ChildOf
0 Erasmus Darwin
1 Robert Waring Darwin 0
2 Erasmus Darwin II 0
3 Charles Robert Darwin 1
4 Erasmus Avery Darwin 1
...And so on. This is very simplified but you can see how it works. Charles Robert Darwin is a ChildOf Robert Waring Darwin who is a ChildOf Erasmus Darwin, who is a child of no one. Siblings are identifiable by having the same ChildOf status. Obviously a real family tree requires more fields than this (there are no spouses in this chart) but you can see the gist of things. This sort of structure is much more scalable and easy to deal with than tables-of-tables. With the right user interface you could easily have the above structure mapped onto a simple TreeList control (like a file system).
A relational database can also be used to simulate very flexible structures. Imagine that you have Footballers and each of them has played in an arbitrary (and different) number of Games. The Games information (with fields like the team names, where it was played, the date, the final score, etc.) would be in its own table (Games), the Footballers (with fields like player names, numbers, teams, etc.) would be in their own table (Footballers). Each table would have a list of primary keys uniquely identifying the game and the footballer. A third, intermediary table could then link up footballers to games by collecting their primary keys in one place.
And maybe you'd want a fixed list of Teams for the footballers to be part of; this would be its own table with its own primary key, and the Footballs would have a field that pointed to the primary key of a team in the Teams table.
All of the above structures are very elementary. This is why I suggested a little database theory would go a long way -- thinking about how data works is not terribly difficult but most people are not very natural at it, because they are not familiar with the specific constraints that organized (computer) data requires. A relational database is almost infinitely flexible (though not infinitely efficient) in these sorts of things, but it requires a bit of either experience or poking around before you are going to figure out what the minimal structure it is that you need in order to get it to work the way you want it to. Rest assured, any of the programs I named can do whatever kind of data you want to do—the trick is not finding the "right" program so much as it is in your own understanding of how to efficiently create table structures that hold the data you need. Hope this of some use. Again, as you report with Access, it is not at all clear when you first start how to make this programs really do what you want them to do—I heavily, heavily suggest getting a simple "learn databases in 7 days" sort of book and working through it. You cannot just walk into database programming and expect it to make sense without some sort of basic guidance. --98.217.14.211 (talk) 22:27, 14 July 2009 (UTC)[reply]
Your footballer/games example is exactly the sort of thing I was looking for - but so far in both access and base I've not been able to find any real way of doing this - I was at least expecting an abstracr pointer type (key) but I found no such thing. I'll keep trying.83.100.250.79 (talk) 20:42, 15 July 2009 (UTC)[reply]
Relational databases are able to store hierarchical data easily, but the problem arises when there is a huge amount of complex hierarchical data - the time taken to read and collate this information into meaningful reports using SQL queries can be quite restrictive. However, I'm assuming you're not going to have large amounts (millions of rows) of data. I wouldn't use Access for anything other than simple, small relational tables and joins. Use something that uses some sort of ANSI SQL. Oracle would be ideal, but there are any number of 'free' SQL RDBMS's out there. MySQL and Firebird are some that come to mind, or even cheaper single-user licences of Oracle or SQL Server. Alternatively, if you really want to start with an architecture more suited to handling hierarchical data, then something XML based might be the way to do. Sandman30s (talk) 08:30, 15 July 2009 (UTC)[reply]

Thanks. Actually the data is v. large, and intinsically hierarchical - so I wouldn't dream of attempting to store in in one massive 'spreadsheet' with relational pointers - in general most querys would be of small mostly intrinsically self contained data sets, so I would expect to be able to set up relational links between different files - I'll assume that's all possible with standard programs. (There could be statistical analysis of the whole set - which as the above rightly points out - would be time consuming, and potentially problematic) I don't need to worry about 'circular relational links' - which I expect is an advanced topic. I'll have a try and maybe ask another question later on.83.100.250.79 (talk) 18:04, 15 July 2009 (UTC)[reply]

Oh, and thanks everyone who responded - I really expected a very short and quick answer, but people did a whole lot of typing. Cheers ! :) 83.100.250.79 (talk) 21:19, 15 July 2009 (UTC)[reply]

I find it very unlikely that you really do need some sort of radically different database structure than a well-thought-out relational database. Consider that Wikipedia is essentially just a very large relational database, as is probably every other dynamic site you use on the Internet. The trick is learning how to think in terms of relational databases and the languages used to manipulate them (e.g., SQL can understand that tables are linked to other tables quite readily, but it takes time to learn how to create complex SQL queries). Again, I recommend getting some sort of book on it. Database programming is not intuitive and requires a little disciplined study if you want to avoid just wasting a lot of your time on schemes that won't work. (You're free to do as you please, of course, but I speak from experience! I deal with a lot of people who decide one day, "I need a database!" and try to do it from scratch, only to find out six months later that really they have no idea what they are doing and their work has produced nothing.) --98.217.14.211 (talk) 16:48, 16 July 2009 (UTC)[reply]
You have sort of hit the nail on the head - in that nobody wants to start from scratch when a solution exists
- one thing I wonder is about browsability - specifically for an end user - not an expert database designer - eg will an end user be able to simply browse the database in a way that would be easily learn - ie probably using paradigms inherited from the internet - such as hyperlinks between data bases - eg suppose one set of data is "Mammals", and contains amongst other things a list of mammal families eg dogs, cats, cows etc. Will a given database program allow me to create a database that a non expert user can "browse" - eg expanding or switching to a "cows" database by clicking in some way on the "cows" field in "mammals". My first guess is that I'd need to implement the equivalent of a 'hyperlink' on fields in "report" or "query" mode, and have each sub-database identified by type (ie order,family,species,subspecies etc), with a record/query template for each type. Does that sound do-able?83.100.250.79 (talk) 18:00, 16 July 2009 (UTC)[reply]
Or to put it another way - do these 'databases programs' actually support end-user access - or is it expected that the programmer write their own display routines using the windows API or whatever, search the actual database using SQL queries, and in fact only use the database program eg 'base'/'access' to create the database??83.100.250.79 (talk) 18:18, 16 July 2009 (UTC)[reply]
Maybe there is a different set of software programs addressing the problem of end user accessibility - do these 'database browsers' have a name?
After reading through this, it appears that the questioner simply has not discovered how to make foreign keys in Access. Make the key field in one table. I will assume it is an integer. Add a field to another table using the same type (integer). Now, go to the relations field. Use the mouse to drag the ID field of the first table to the key field on the other table. A line will appear that indicates you've created a foreign key. Now, you can easily create reports and queries that map data from one table to the other using the foreign key. -- kainaw 16:58, 16 July 2009 (UTC)[reply]
Yes that's useful information for me. It's a relief to know they can do relational stuff - however I have another question about browsability for non-expert users. (see 2 paragraphs above)83.100.250.79 (talk) 18:00, 16 July 2009 (UTC)[reply]
Thanks, again, I finally found the relationship manager screen - those db designers certainly know how to keep anything actually useful well hidden!83.100.250.79 (talk) 20:11, 16 July 2009 (UTC)[reply]

Finding ip address in php[edit]

I'm trying to find the ip address of people who visit a web site using php, but all I'm getting is addresses like "hsd1.co.comcast.net" and not the actual ip address. The script is this:

I'm extremely new to php, and I would be so greatful if someone could look over this and tell me what I need to do. Thanks so much! —Preceding unsigned comment added by 82.43.91.128 (talk) 18:53, 14 July 2009 (UTC)[reply]

gethostbyname 87.114.25.180 (talk) 19:21, 14 July 2009 (UTC)[reply]
Thanks, but I'm utterly clueless what to do with that lol. If it's not too much to ask, could you modify the code I posted above to include the new function in the correct way. Thanks so much! :) —Preceding unsigned comment added by 82.43.91.128 (talk) 20:22, 14 July 2009 (UTC)[reply]

wow this script is fantastic. Thank you for this.! but to get the ip address of people that visit your site you just need this part. That is it.

$_SERVER['REMOTE_ADDR']

to test this, visit any page you are creating with this:

$ip=$_SERVER['REMOTE_ADDR'];
print $ip;

It will display your ip address, if someone else visits it will display theirs. Now your issue is storing this information. you will need to know SQL to do this. create a table and store the values in it or use a flatfile. Ivtv (talk) 21:26, 14 July 2009 (UTC)[reply]

Thanks guys! I worked out what the problem was by removing "gethostbyaddr" from
$host = gethostbyaddr($_SERVER["REMOTE_ADDR"]);
so it's now just
$host = ($_SERVER["REMOTE_ADDR"]);
Again, thanks! —Preceding unsigned comment added by 82.43.91.128 (talk) 23:03, 14 July 2009 (UTC)[reply]

weather radar netherlands android G1 phones[edit]

Does anyone know of an android G1 app that currently gives weather radar in the Netherlands. I've installed imap Weather on the phone, but it doesn't seem to have radar and the website suggests that it has radar only in the US at this point. Thanks if you can help. —Preceding unsigned comment added by 83.98.238.113 (talk) 21:33, 14 July 2009 (UTC)[reply]