Questions tagged [uid]

uid refers to a string used for record keeping which is not guaranteed to be unique, but should be in the large majority of use cases.

uid stands for one of the following:

  • user identifier
  • unique identifier

References

368 questions
3
votes
2 answers

setuid() failing - operation not permitted

changeIDs() is trying to use setuid() to change the effective user id but it always errors out and I'm not sure why. I have two users on computer. user is an admin with UID of 1000. The other standard user, user 2, has a UID of 1001. I want to…
Angel
  • 311
  • 1
  • 4
  • 16
3
votes
1 answer

Monitoring data usage in Android: difference between total stats and per UID stats

I'm having some troubles with a data traffic monitor in Android. I have to get bytes transmitted per UID and bytes received per UID and also the total sum of all UIDs (divided into transmitted and received too). The problem is that the sum of all…
3
votes
1 answer

How to set TextBlock text property to a string resource?

I've been following this tutorial Using String resources (xaml) to set up string resources, in a Windows Universal project. But even though I've set the Uid of the text block to the string resource name, the string contents aren't displayed in the…
Brian Var
  • 6,029
  • 25
  • 114
  • 212
3
votes
2 answers

what does it mean when uid equals to zero for Android system

In the NotificationManagerService.java from Android 5.0 framework source code. I don't understand when the uid will be zero. private static boolean isUidSystem(int uid) { final int appid = UserHandle.getAppId(uid); return (appid ==…
shanwu
  • 1,493
  • 6
  • 35
  • 45
3
votes
1 answer

Converting JavaScript (random UID) code to Delphi

I'm trying to convert JavaScript code to Delphi but I failed. Javascript: /* generate random progress-id */ var uuid = ""; var i; for (i = 0; i < 32; i++) { uuid += Math.floor(Math.random() * 16).toString(16); } ...and its…
3
votes
1 answer

dicom tag frame of reference UID of sequential spatial-related image sets

normally you can only put sequential image sets (for instance of two parts of the lower leg) in spatial relationship to each other when they have an identical frame of reference UID (dicom tag 0020,0052). But are there exceptions for differences of…
3
votes
1 answer

Images do not show up. UID in URI and construction of URI seems to be wrong

"Links using UIDs" is activated. Same for "link integrity". On a few pages images do not show up. The link to images is something like .../datenabgleichtool/resolveuid/4ff237ae-1b26-4854-90cc-892ee84a1ad0/@@images/image/preview. When I manually…
Katja Süss
  • 759
  • 6
  • 13
2
votes
2 answers

MySQL generated UID

I am coding a messaging system and I don't want to have short IDs shown, is there any way that MySQL can generate a UID which is unique as UID suggests? I need to know how I can do this with ONLY MySQL, no PHP, JavaScript or anything else, just…
André Figueira
  • 6,048
  • 14
  • 48
  • 62
2
votes
2 answers

Android App Development: How to get Google Gmail account credentials to send email automatically?

I'm trying to create an application that uses a Gmail account to send emails automatically. I do not want that the user enters username and password if he has already added a Gmail account in his Android Device, but I want the application uses that…
Meroelyth
  • 5,310
  • 9
  • 42
  • 52
2
votes
1 answer

Android: Sharing a common folder between linux application and Android application

Hi I'm a newbie for Android... Please throw some light on the following issue.. I have a file created by a linux application (written in C) with S_IRWXU|S_IRWXG permission and the file belongs to root user and root group. Now I'd like to read/write…
user1099859
  • 103
  • 1
  • 8
2
votes
2 answers

How to check if a UID exists in an ACL in Linux?

I need to write a program, part of which involves checking if the userid of the person executing the program exists in the ACL file of a file which the program uses. That is, this program writes into the file and only users whose ID and privileges…
CodingInCircles
  • 2,565
  • 11
  • 59
  • 84
2
votes
0 answers

docker go permission works on mac fails on linux

I'm trying to run go tests inside a container and want the coverage file exported to the host volume. My solution works on macOS but fails on linux. my Dockerfile looks something like this: FROM golang:1.17.9 AS codebase WORKDIR /usr/src COPY go.mod…
Kanak Singhal
  • 3,074
  • 1
  • 19
  • 17
2
votes
0 answers

fork/exec /usr/bin/sudo: invalid argument: syscall.CLONE_NEWUSER causing invalid argument error

Building off of this issue I have modified a golang program whose intention is to start a new root process and execute a command using /bin/sudo to be the following: if rootless.IsRootless() && scpOpts.Root { syscall.Setuid(0) …
cbd123
  • 41
  • 3
2
votes
1 answer

Silverlight & JS: Get the Name or uid from XAML, through Javascript

I am trying to obtain the element from my Xaml, through Javascript, so I can add new elements to it at runtime. This way, if a user inputs the number '20', then 20 elements will be added to…
2
votes
1 answer

Which DICOM UIDs should be replaced while overwriting pixel data in DICOM?

I am trying to create a new DICOM file (instance) from an existing one, where I change the pixel data. I know that I need to change some of the UIDs while replacing pixel data. Currently I am generating SOPInstanceUID, MediaStorageSOPInstanceUID and…
Tina P
  • 61
  • 7