user

How to determine the browser of the user using PHP?

How to determine the browser of the user using PHP? So that if the users browser is IE then the variable $alert="onbeforeunload" and if it is not IE, for example Firefox (else) then $alert="onload. Help is much appreciated. Thanks Also please note that I can not install browscap.ini on my PHP server. ...

Contribution claiming for anonymous contributors

Hi, I'm curious what would be an effective way to allow users to claim their anonymous contributions (done without registration or log-in) to a site that allows such contributions? What kind of info can I collect about anonymous contributors that will help identify them? IP is the only thing that comes to mind (but what if they log in f...

How can I extract the current user's account picture?

I am trying to extract the current user's account picture in Windows 7, but I can't seem to figure out where it is located. I have found that the picture is sometimes written to the User's temp folder, but only after performing certain actions. It isn't always guaranteed to be there. Has anyone had any luck extracting this image? Thanks!...

How do I create 1 .NET Settings per instance of DLL

My service is a DLL and it can be installed multiple times. The DLL has its settings stored in Settings.settings. Each instance of the DLL will have its own Settings.settings. Can this be done with Settings.settings, or do I have to create my own configuration scheme? I want to avoid reinventing the wheel if possible. I don't have to ...

Is it possible to have WAMP run httpd.exe as user [myself] instead of local SYSTEM?

Hello! I run a django application over apache with mod_wsgi, using WAMP. A certain URL allows me to stream the content of image files, the paths of which are stored in database. The files can be located whether on local machine or under network drive (\my\network\folder). With the development server (manage.py runserver), I have no t...

Is it possible to filter users from a launchd plist?

I have some launchd plists that are now placed at the administrator per-user level, particularly inside: - /Library/LaunchAgents OR - /Library/LaunchDaemons I'd like to avoid that some of those services could start only for one user (possibly avoiding to move all the plists to ~/Library/LaunchAgents), which is the simplest way? Thanks ...

User switching without logging off

We need to switch users without logging off so we can remotely administrate a PC running with a limited user that will disconnect from the VPN if the user logs off. I've got this working by killing the explorer process and then running explorer.exe with the administrator user credentials as the following code shows: private void bt...

Converting a User.user_id() to a User.email()

Is there a way to derive a user's email given his user_id? ...

Inno Setup install for another user

When a user has restricted rights on his/her computer and runs my Inno Setup installer, Windows pop-up an administrator login prompt. The problem is that when the administrator types in his/her username and password and logs-in, Inno Setup thinks that he or she is the logged in user and installs my app for that user instead of the origi...

How to send a notification to another user with notify-send ? Bash

Hello all, notify-send display a notification box with the message that you want to display on your own machine. Is there a way to use notify-send to send a notification message to another user and display the message on his machine? Thanks ...

UIView keep forward toutches

Hi all, I subclassed UIImageView for controlling touch events. The problem is that when i do userInteractionEnabled = NO, it doesn't work, i can still touch it and the touch methods response. Even if i add big subview over it the touches happen. Any suggest? ...

Is it possible to have a local group for an LDAP user

I have an LDAP server to which i do not have full privileges and an ubuntu system with LDAP authentication to which i am root. Is it possible to add an LDAP user to a local group? (i dont know if i phrase this correctly but all i want is to have a user in LDAP in a group without edititing the actual database) ...

How can I delete duplicated users in django?

Hi guys, I need to delete duplicate users in django (by duplicate I mean two or more users with the same email). If for instance there are three records like this: id email 3 [email protected] 56 [email protected] 90 [email protected] I need to delete records 56 and 90 and leave the oldest record id -> 3 Is there a way to quickly do this. Thanks ...

How to let user set his home page in c# visual studio 2008?

I am creating a browser and I am supposed to provide an option for the user to set his homepage. I have created a tabbed browser. Can anyone suggest me what to do? Thank you ...

Limit number of results per screen

Hi all, I need modify this code (is a search engine) http://www.gamarod.com.ar/javascript/ejemplos/85-buscador-javascript-search-javascript.htm ...I need that the user choose the amount of result per screen Please help me! Thanks. ...

Pass data between 2 dynamically loaded User control

Hi, I have a scenario where I dynamically load 2 user controls in a webform, and need them to interact together. Here's the code : default.aspx.cs ControlA cA = (ControlA)LoadControl("~/controlA.ascx"); ControlB cB = (ControlB)LoadControl("~/controlB.ascx"); Page.Controls.Add(cA); Page.Controls.Add(cB); Now the thing is, controlB nee...

SQL Server 2008 Express Grant User Permission

What is the appropriate SQL commands (not through the GUI) to add a windows user account to permissions on a SQL Server 2008 Database? ie.. I want to give someone read access and another person read/write.. ...

Growing user control not updating

I am developing in C# and .Net 2.0. I have a user control that draws cells (columnar) depending upon the maximum number of cells. There are some drawing routines that generate the necessary cells. There is a property NumberOfCells that adjust the height of this control; CELLHEIGHT_CONSTANT * NumberOfCells. The OnPaint() method is overr...

Scribd style document rendering on ASP.NET

Hi, I have large documents (HTML or Text) (think legal documents/regulatory documents etc.) that need to made readable i.e. paged, with some rich-text markup, allowing user highlighting and annotation etc. I was thinking of using a Scribd style rendering or as on Secwatch.com (see here). Any thoughts how I can go about it? We are on AS...

AJAX TabContainer containing user controls

Hi all, Wondering if someone here can help. I have an AJAX tabcontainer which has a number of tabs and each tab contains a user control. When I add a new item from one of the tabs, it is not reflected in the user control in another tab unless a postback occurs. (e.g. the first tab has a listview where I add a new record and the second ...