How to convert a hex string to hex number
I want to convert a hex string (ex: `0xAD4`) to hex number, then to add `0x200` to that number and again want to print that number in form of `0x` as a string. i tried for the first step: ``` str(in...
- Modified
- 19 Feb at 12:55
MySQL: NOT LIKE
I have these text in my db, ``` categories_posts categories_news posts_add news_add ``` And I don't want to select the rows with `categories`, I use a query something like this, ``` SELECT * F...
Spring MVC - How to get all request params in a map in Spring controller?
Sample URL: ``` ../search/?attr1=value1&attr2=value2&attr4=value4 ``` I do not know the names of attr1, att2, and attr4. I would like to be able to do something like that (or similar, don't care, ...
- Modified
- 6 Dec at 13:39
Regex match any single character (one character only)
How do you match any one character with a regular expression? A number of other questions on Stack Overflow sound like they promise a quick answer, but they are actually asking something more specific...
- Modified
- 2 Jul at 13:20
how to pass parameter from @Url.Action to controller function
I have a function `CreatePerson(int id)` , I want to pass `id` from `@Url.Action`. Below is the reference code: ``` public ActionResult CreatePerson(int id) //controller window.location.href = "@U...
- Modified
- 7 Nov at 11:51
How does GPS in a mobile phone work exactly?
I assume it doesn't connect to anything (other than the satelite I guess), is this right? Or it does and has some kind of charge?
- Modified
- 7 Oct at 22:16
IF EXIST C:\directory\ goto a else goto b problems windows XP batch files
whenever i run the `code` below it occurs to me I have made a mistake using the if exist lines, as no matter whether the directory exists or not, it acts as if the line was never there... either that ...
- Modified
- 15 Nov at 05:45
What are the differences between a clustered and a non-clustered index?
What are the differences between a `clustered` and a `non-clustered index`?
- Modified
- 23 Mar at 07:5
Typing Greek letters etc. in plots
I need to type Greek letters and the Angstrom symbol in labels of axes in a plot. So for example ``` fig.gca().set_xlabel("$wavelength\, (Angstrom)$") fig.gca().set_ylabel("$lambda$") ``` except th...
- Modified
- 19 Mar at 20:4
matplotlib error - no module named tkinter
I tried to use the matplotlib package via Pycharm IDE on windows 10. when I run this code: ``` from matplotlib import pyplot ``` I get the following error: ``` ImportError: No module named 'tkinte...
- Modified
- 18 Jun at 16:49
MySQL fails on: mysql "ERROR 1524 (HY000): Plugin 'auth_socket' is not loaded"
My local environment is: - - - with installed MySQL 5.7``` sudo apt-get install mysql-common mysql-server ``` --- When I tried to login to MySQL (via CLI): ``` mysql -u root -p ``` I came ac...
- Modified
- 17 Jun at 10:36
Simple dictionary in C++
Moving some code from Python to C++. ``` BASEPAIRS = { "T": "A", "A": "T", "G": "C", "C": "G" } ``` Thinking maps might be overkill? What would you use?
- Modified
- 1 Mar at 05:57
Start / Stop a Windows Service from a non-Administrator user account
I have a WindowsService named, say, BST. And I need to give a non-Administrator user, UserA, the permissions to Start/Stop this particular service. My service runs on a variety of Windows OS, starting...
- Modified
- 14 Dec at 06:38
How do I create a Bash alias?
I'm on OSX and I need to put something like this, `alias blah="/usr/bin/blah"` in a config file but I don't know where the config file is.
PHP mailer multiple address
> [PHPMailer AddAddress()](https://stackoverflow.com/questions/1770765/phpmailer-addaddress) Here is my code. if value is only 1. It will send. But multiple don't send. What should I do for this....
Can’t delete docker image with dependent child images
I am trying ``` docker rmi c565603bc87f ``` Error: > Error response from daemon: conflict: unable to delete c565603bc87f (cannot be forced) - image has dependent child images So i can't delete ...
- Modified
- 6 Mar at 20:48
How to change Navigation Bar color in iOS 7?
How do I change the Navigation Bar color in iOS 7? Basically I want to achieve something like the Twitter Nav Bar (updated Twitter for `iOS7` that is). I embedded-in a nav bar atop a `view controller...
- Modified
- 5 Aug at 12:5
How to start a Process as administrator mode in C#
I have a Visual Studio Windows app project. I've added code to download an installer update file. The installer after it has finished downloading would need administrator privileges to run. I have add...
What is a callback?
What's a callback and how is it implemented in C#?
Docker (Apple Silicon/M1 Preview) MySQL "no matching manifest for linux/arm64/v8 in the manifest list entries"
I'm running the latest build of the [Docker Apple Silicon Preview.](https://www.docker.com/blog/download-and-try-the-tech-preview-of-docker-desktop-for-m1/) I created the tutorial container/images and...
- Modified
- 26 Dec at 13:20
PHP check whether property exists in object or class
I understand PHP does not have a pure object variable, but I want to check whether a property is in the given object or class. ``` $ob = (object) array('a' => 1, 'b' => 12); ``` or ``` $ob = new stdC...
- Modified
- 16 May at 18:44
Validate email address textbox using JavaScript
I have a requirement to validate an email address entered when a user comes out from the textbox. I have googled for this but I got form validation JScript; I don't want form validation. I want textb...
- Modified
- 14 Dec at 09:31
How to create a foreign key in phpmyadmin
I want to make doctorid a foreign key in my patient table. So I have all of my tables created - the main problem is that when I go to the table > structure > relation view only the primary key comes ...
- Modified
- 3 Jun at 13:22
"Invalid JSON primitive" in Ajax processing
I am getting an error in an ajax call from jQuery. Here is my jQuery function: ``` function DeleteItem(RecordId, UId, XmlName, ItemType, UserProfileId) { var obj = { RecordId: RecordId, ...
View a specific Git commit
> [Get Information about a SHA-1 commit object?](https://stackoverflow.com/questions/7610073/get-information-about-a-sha-1-commit-object) I needed to check when a specific change was added to ...
- Modified
- 23 May at 12:18