Jump to content

Wikipedia:Reference desk/Archives/Computing/2012 April 4

From Wikipedia, the free encyclopedia
Computing desk
< April 3 << Mar | April | May >> April 5 >
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.


April 4

[edit]

Operating systems that run on feature phones

[edit]

I have identified Brew/Brew MP (really more of a runtime), Nucleus RTOS, MontaVista Linux, and Samsung Handset Platform (SHP is actually what powers bada devices). Does anyone know of any others? Internal names of the operating systems that companies like LG use on their feature phones would be great. --Melab±1 00:17, 4 April 2012 (UTC)[reply]

You've also got Symbian, iOS, Android, and Windows Phone 7. This article's old but suggests that LG will use Windows Phone 7 and android on its new phones and not develop its own. But again, that's over 2 years old.
LG's definitely still turning out Windows Phone 7 models currently like the C900. Some earlier LG phones like LG Viewty used a proprietary OS according to our article... I can't find much more on that. Shadowjams (talk) 06:03, 4 April 2012 (UTC)[reply]
Nokia's feature phone OS has been Series 40 for more than a decade. --Colapeninsula (talk) 09:42, 4 April 2012 (UTC)[reply]
Nokia also has variants of Maemo and Meego, which have linux as kernel and X server for graphics. --145.94.77.43 (talk) 11:57, 4 April 2012 (UTC)[reply]
Sadly our article Mobile operating system is largely restricted to smartphone OSes. --Colapeninsula (talk) 09:45, 4 April 2012 (UTC)[reply]

JavaScript variables

[edit]

If I define a variable in Javascript eg

this.price = function()
{
this.baseprice * this.taxrate;
}

does the function get re-run EVERYIME I read this.price?

Thanks Duomillia (talk) 13:33, 4 April 2012 (UTC)[reply]

this.price is a function; if you just were to read it, you'd get the text of the function (which isn't much use for you). To call the function, you need to say this.price()
But your function isn't very useful anyway, as it doesn't return anything. Instead you probably want something like:
this.calcprice = function() {
  return this.baseprice * this.taxrate;
}
-- Finlay McWalterTalk 13:40, 4 April 2012 (UTC)[reply]
I was wrong when I wrote "if you just were to read it, you'd get the text of the function". You actually get a function reference; in some javacript engines (like Rhino) if you print that it helpfully prints the text of the function; in others, like JägerMonkey, it just prints "function()". -- Finlay McWalterTalk 14:45, 4 April 2012 (UTC)[reply]

images from Word doc

[edit]

I want to extract some images from a Word doc and use them on a web page. In Word I right clicked on the image to Save as Picture and stored it in a folder on my computer. Clicking on the name successfully displayed the image in my browser (Firefox). No trouble importing it into my web editor (KomPoser). I FTP'ed the image file and the web file containing it to the web site, but the image does not appear. No broken link, just nothing. This is the case for the other images as well. The code for the relative paths to the images is the same on my computer and the web site. The image files do exist on the web site, in the right place. Also, if I place an image not from a Word doc in the web file, it does successfully display.

What is happening? What can I do about it? --Halcatalyst (talk) 18:51, 4 April 2012 (UTC)[reply]

What type of image is this? Jpeg? Looie496 (talk) 19:16, 4 April 2012 (UTC)[reply]
One .png and the rest .jpg. --Halcatalyst (talk) 22:19, 4 April 2012 (UTC)[reply]
Have you tried opening your saved image in an image/photo editor, resaving it, and using that version instead? Word is probably doing something funny to the file, but I don't know what. --Colapeninsula (talk) 09:21, 5 April 2012 (UTC)[reply]
Let me try that in a moment. --Halcatalyst (talk) 01:09, 6 April 2012 (UTC)[reply]
When I went back to do this, I recalled that I had had to do that to re-size most of the images. I tried it again with this one and it made no difference. --Halcatalyst (talk) 01:18, 6 April 2012 (UTC)[reply]
Could you let us know where this is, so we can look at the web page and the images?--Phil Holmes (talk) 15:56, 5 April 2012 (UTC)[reply]
The page I'm testing with is at http://k9cola.org/events-test.shtml. An image called 4RK9s.jpg should be displayed above "Word image." You can see the link in the source: src="test/4RK9s.jpg". When I try to see the image with http://k9cola.org/test/4RK9s.jpg, I get a message from Microsoft saying, "The page cannot be displayed. There is a problem with the page you are looking for and it cannot be displayed. This error can occur if you are trying to display an HTML page that resides in a directory that is configured to allow Execute or Script permissions only." ... "HTTP Error 403.2 - Forbidden: Read access is denied." --Halcatalyst (talk) 01:09, 6 April 2012 (UTC)[reply]
Well, there you go. You've put that image in a directory that doesn't allow the web server to read it. Stick it in images and you should be OK. --Phil Holmes (talk) 08:47, 6 April 2012 (UTC)[reply]
I did that and the result is the same. Moreover, I have quite a few subdirectories under images and they all work fine. It must be something in the image file. --Halcatalyst (talk) 13:46, 6 April 2012 (UTC)[reply]