Jump to content

Wikipedia:Reference desk/Archives/Computing/2012 May 27: Difference between revisions

From Wikipedia, the free encyclopedia
Content deleted Content added
MalnadachBot (talk | contribs)
m Fixed Lint errors. (Task 12)
 
(2 intermediate revisions by 2 users not shown)
Line 10: Line 10:
{| align=center width=95% style="background: #FFFFFF; border: 1px solid #003EBA;" cellpadding="8" cellspacing="0"
{| align=center width=95% style="background: #FFFFFF; border: 1px solid #003EBA;" cellpadding="8" cellspacing="0"
|-
|-
! style="background: #5D7CBA; text-align: center;" align="center" | <font face="Arial" color="#FFFFFF">'''Welcome to the Wikipedia Computing Reference Desk Archives'''</font>
! style="background: #5D7CBA; text-align: center; font-family:Arial; color:#FFFFFF;" | '''Welcome to the Wikipedia Computing Reference Desk Archives'''
|-
|-
| The page you are currently viewing is {{#ifexist:Wikipedia:Reference desk/Archives/Computing/2012 June 6|an archive page|a [[Wikipedia:Transclusion|transcluded]] archive page}}. While you can leave answers for any questions shown below, please ask new questions on one of the [[Wikipedia:Reference desk|current reference desk]] pages.
| The page you are currently viewing is {{#ifexist:Wikipedia:Reference desk/Archives/Computing/2012 June 6|an archive page|a [[Wikipedia:Transclusion|transcluded]] archive page}}. While you can leave answers for any questions shown below, please ask new questions on one of the [[Wikipedia:Reference desk|current reference desk]] pages.
Line 69: Line 69:


Occasionally, I find that somehow a load of people have somehow made me follow them on Twitter without me wanting to. It's bloody annoying. How can I stop this happening? Thank you. [[User:DuncanHill|DuncanHill]] ([[User talk:DuncanHill|talk]]) 18:50, 27 May 2012 (UTC)
Occasionally, I find that somehow a load of people have somehow made me follow them on Twitter without me wanting to. It's bloody annoying. How can I stop this happening? Thank you. [[User:DuncanHill|DuncanHill]] ([[User talk:DuncanHill|talk]]) 18:50, 27 May 2012 (UTC)
: If that is happening I think your account might compromised. You might want to change your password and look through the list of applications that you've allowed to use Twitter on your behalf. More: http://support.twitter.com/articles/76036
: If that is happening I think your account might compromised. You might want to change your password and look through the list of applications that you've allowed to use Twitter on your behalf. More: http://support.twitter.com/articles/76036 --[[User:TowTrucker|<font color="green">Tow Trucker</font>]] [[User talk:TowTrucker|<font color="maroon">talk</font>]] 06:18, 31 May 2012 (UTC)

::Hmm, two apps, klout.com and tweinds seem to be giving themselves approval, have just removed them for the second time. [[User:DuncanHill|DuncanHill]] ([[User talk:DuncanHill|talk]])

Latest revision as of 03:16, 23 February 2022

Computing desk
< May 26 << Apr | May | Jun >> May 28 >
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.


May 27

[edit]

Linux, file created on?

[edit]

Why do linux files do not have a creation date metainformation? OsmanRF34 (talk) 01:18, 27 May 2012 (UTC)[reply]

They can, but why should they? ¦ Reisio (talk) 03:51, 27 May 2012 (UTC)[reply]
All versions of ext have create, modify, and access date metadata. Shadowjams (talk) 03:45, 28 May 2012 (UTC)[reply]
Wrong. Traditional unix filesystems have atime, mtime, and ctime. Lots of people guess that ctime stands for "creation time", and then that guess turns in to a solid belief over a long period of failing to read any proper documentation, and that solid belief sometimes becomes an authoritative pronouncement reinforcing other people's bad guesses... Actually ctime stands for "change time" and it's updated whenever any attribute of the file changes. Among native Linux filesystems, ext4 has a creation time field, but ext3 and earlier don't. Just see the articles ext3 and ext4, where it says "Dates recorded".
As for why it took so long, I don't know, but it might have been a chicken/egg problem. Even now, with ext4 recording the creation times, it's hard to actually look at them, since 40 years of unix tools and programming languages have been built around the assumption that the original 3 timestamps are the only ones that exist. 98.226.12.79 (talk) 04:50, 28 May 2012 (UTC)[reply]
ctime used to stand for "creation time". Richie & Thompson's 1974 paper "The UNIX Time-Sharing System" says (in section IV) that an inode records "time of creation, last use, and last modification". Similarly the 1971 Unix system manual's section on the stat(2) call shows it yielding 4 bytes for "creation time" (ctime) and 4 for "modification time" (so we're before the age of atime). There's nothing in the brief descriptions of inode-altering calls like chown(2) and chmod(2) that says these change the ctime. So at some point after Unix defined ctime someone decided that meta-calls like chown should change the ctime, and thus they had to back-change what the abbreviation means to the rather mealymouthed "change time". This blog posting puts the change at around UNIXv7. I'll bet the change happened when someone was writing an incremental tape backup program and complained that they needed to capture permissions changes, but didn't want to have to write a whole file to the tape whenever it was merely chmod-ed. Apart from that use (which only makes sense on sequential media like tape; rsync's method make much more sense when one has random-access backup media) I'm rather lost to think of a useful application for ctime. Happily many modern unixen have taken a "better good than POSIX" approach to atime (cf Stat (Unix)#Solutions); perhaps a ctimecreate option for mount would make sense. -- Finlay McWalterTalk 14:09, 28 May 2012 (UTC)[reply]
I'm going to update Stat (system call) a little bit to reflect some of what Finlay has said. Shadowjams (talk) 18:00, 28 May 2012 (UTC)[reply]
To my mind there's a lot of stuff in Stat (system call) that should be in inode, including almost all of the extensive atime discussion (and inode is where I'd expect details about ctime worked and works). These data are held in the inode and changed by a variety of syscalls; stat is merely the means by which we see them. -- Finlay McWalterTalk 18:12, 28 May 2012 (UTC)[reply]
I was kind of thinking that too, but the "userspace" caveat gave me some pause because I suppose while one could find a way to alter those by tinkering with the disk directly, that might not technically be considered userspace. I apparently already made a technical "blunder" here already =). Shadowjams (talk) 07:12, 30 May 2012 (UTC)[reply]
Although the blog link provided by Finlay McWalter says that the earliest versions of unix source code were lost, most of them have since been found.
In V1, there is a "ctim" field, which appears to be a working creation timestamp. It's set in the kernel by the function called "maknod", and never updated anywhere else. C didn't exist yet, so this is all in assembly.
V2 kernel source is still lost, or at least I can't find it.
In V3, maknod is gone, the new function is maknode, written in C, and there is no creation timestamp set there.
It seems plausible (WP:OR) that in the transition from assembly to C, the ctim got accidentally left out, and nobody noticed for a long time because it wasn't frequently needed, and then the issue was resolved by removing it from the documentation rather than reinserting the code to make it work again (which by that point may have required an incompatible change to the on-disk inode format). 98.226.12.79 (talk) 04:46, 31 May 2012 (UTC)[reply]

Lyrics on phones

[edit]

Can the Samsung SII display lyrics while a song plays? I wouldn't think so, but, just asking. --Sp33dyphil ©hatontributions 09:35, 27 May 2012 (UTC)[reply]

Which version of Windows is Wine supposed to be?

[edit]

OsmanRF34 (talk) 16:12, 27 May 2012 (UTC)[reply]

winecfg lets you set which version it tries to pretend to be. The docs say it defaults to Windows XP - but in practice it implements some subsystems from newer versions, and doesn't fully implement everything from older ones. -- Finlay McWalterTalk 16:20, 27 May 2012 (UTC)[reply]

Bluetooth on Win7 and Samsung Galaxy Phone

[edit]

I am unable to connect to my phone using Bluetooth from my Win7 laptop. My phone connects ok, and the computer even notices that I have changed the name of the device, but when I try to transfer any files, it just tells me it can't find the device. I have been into Control Panel>Administrative Tools>Services, and everything appears to be running. Does anyone know what to do here? KägeTorä - (影虎) (TALK) 17:55, 27 May 2012 (UTC)[reply]

Not all Bluetooth stacks are equal, you might try http://www.broadcom.com/support/bluetooth/update.php or http://aps2.toshiba-tro.de/bluetooth/?page=download. ¦ Reisio (talk) 19:03, 27 May 2012 (UTC)[reply]

Thanks. My PC is a HP laptop with Win7. I have not been able to update the driver, and I think it just gets done automatically. So, basically, what you're saying is, my phone's Bluetooth and my PC's Bluetooth may not be compatible? That's annoying, because neither is my iPod's Bluetooth (which works only with iPhone and Mac computers). As I also don't have a USB cable for the phone, I have taken to sending all the files I want by email. Cheers, anyway. KägeTorä - (影虎) (TALK) 13:22, 28 May 2012 (UTC)[reply]

Not so much incompatible as much as your laptop may well not have even come with any stack (to speak of). If it doesn't have internal bluetooth this is a foregone conclusion, if it does it's probably something else. ¦ Reisio (talk) 20:59, 28 May 2012 (UTC)[reply]
Well, my laptop's Bluetooth worked with my old Sony Ericsson and works with my Android tablet. I'm surprised it won't work with my Galaxy phone (which is also Android)...... KägeTorä - (影虎) (TALK) 21:22, 29 May 2012 (UTC)[reply]
You should be able to send files over wifi without using email, Samsung Kies for example seems to support wifi. (It's even possible to enable ADB over wifi although I'm not sure if some phones prevent this.) Alternatively a microUSB cable should be at most a few dollars; under $5 shipped if bought from eBay, DealExtreme, KaiDomain, Buyincoins or similar. Or complain to Samsung, some/many? other manufacturers provide a power adapter with a USB socket and a USB to micro cable meaning as long as you have your power adapter you have your cable which IMO seems better then the Samsung practice of hardwiring the microUSB to the power adapter. If you don't have a wifi network whereever you are and are relying on mobile data, I presume your laptop must at least have a wifi NIC and it's possible to enable AP mode in various versions of Windows 7 [1] [2] presuming the NIC and drivers support it. (Alternatively you can often connect to an adhoc network but I think this usually relies on a rooted phone.) Nil Einne (talk) 04:19, 30 May 2012 (UTC)[reply]

Twitter following

[edit]

Occasionally, I find that somehow a load of people have somehow made me follow them on Twitter without me wanting to. It's bloody annoying. How can I stop this happening? Thank you. DuncanHill (talk) 18:50, 27 May 2012 (UTC)[reply]

If that is happening I think your account might compromised. You might want to change your password and look through the list of applications that you've allowed to use Twitter on your behalf. More: http://support.twitter.com/articles/76036 --Tow Trucker talk 06:18, 31 May 2012 (UTC)[reply]
Hmm, two apps, klout.com and tweinds seem to be giving themselves approval, have just removed them for the second time. DuncanHill (talk)