Questions

Send value of submit button when form gets posted

I have a list of names and some buttons with product names. When one of the buttons is clicked the information of the list is sent to a PHP script, but I can't hit the submit button to send its value....

23 Feb at 09:54

Convert string to hex-string in C#

I have a string like "sample". I want to get a string of it in ; like this: ``` "796173767265" ``` Please give the C# syntax.

19 Mar at 11:16

Why is using the JavaScript eval function a bad idea?

The eval function is a powerful and easy way to dynamically generate code, so what are the caveats?

3 Mar at 14:3

Change remote repository credentials (authentication) on Intellij IDEA 14

I recently changed my Bitbucket password for security reasons. However, IntelliJ didn't update my repository to the new credentials, so it stops me from pulling/pushing anything to my repository. I am...

20 Apr at 10:38

How to correctly use the extern keyword in C

My question is about when a function should be referenced with the `extern` keyword in C. I am failing to see when this should be used in practice. As I am writing a program all of the functions that...

21 May at 09:47

What is the easiest way to ignore a JPA field during persistence?

I'm essentially looking for a "@Ignore" type annotation with which I can stop a particular field from being persisted. How can this be achieved?

28 Feb at 07:26

List rows after specific date

I have a column in my database called "dob" of type datetime. How do I select all the rows after a specific DoB in SQL Server 2005?

Problem HTTP error 403 in Python 3 Web Scraping

I was trying to a website for practice, but I kept on getting the HTTP Error 403 (does it think I'm a bot)? Here is my code: ``` #import requests import urllib.request from bs4 import BeautifulSoup #...

How to Set Selected value in Multi-Value Select in Jquery-Select2.?

I am binding my dropdown with `Jquery-Select2`. It's working fine but now I need to bind my Multi-Value `selectBox` by using `Jquery-Select2`. My DropDown ``` <div class="divright">...

11 Nov at 12:24

How to cin values into a vector

I'm trying to ask the user to enter numbers that will be pushed into a vector, then using a function call to count these numbers. why is this not working? I'm only able to count the first number. ```...

22 May at 16:18

"java.lang.OutOfMemoryError : unable to create new native Thread"

We are getting `"java.lang.OutOfMemoryError : unable to create new native Thread`" on 8GB RAM VM after 32k threads (ps -eLF| grep -c java) However, `"top" and "free -m" shows 50% free memory available...

15 Sep at 15:13

How to clear basic authentication details in chrome

I'm working on a site that uses basic authentication. Using Chrome I've logged in using the basic auth. I now want to remove the basic authentication details from the browser and try a different login...

12 Oct at 12:34

How to alias a table in Laravel Eloquent queries (or using Query Builder)?

Lets say we are using Laravel's query builder: ``` $users = DB::table('really_long_table_name') ->select('really_long_table_name.id') ->get(); ``` I'm looking for an equivalent ...

20 Jun at 06:3

How to get http headers in flask?

Using Flask, how can I read HTTP headers? I want to check the authorization header which is sent by the client.

Select rows from a data frame based on values in a vector

I have data similar to this: ``` dt <- structure(list(fct = structure(c(1L, 2L, 3L, 4L, 3L, 4L, 1L, 2L, 3L, 1L, 2L, 3L, 2L, 3L, 4L), .Label = c("a", "b", "c", "d"), class = "factor"), X = c(2L, 4L, 3...

29 Jan at 11:13

converting date time to 24 hour format

The time I get from the server is like `Jul 27, 2011 8:35:29 AM`. I want to convert it to `yyyy-MM-dd HH:mm:ss`. I also want the converted time to be in 24 hour format. Can any one give solution t...

23 Jan at 09:30

Are there any SHA-256 javascript implementations that are generally considered trustworthy?

I am writing a login for a forum, and need to hash the password client side in javascript before sending it on to the server. I'm having trouble figuring out which SHA-256 implementation I can actuall...

19 Aug at 17:15

Can anyone explain IEnumerable and IEnumerator to me?

Can anyone explain `IEnumerable` and `IEnumerator` to me? For example, when to use it over foreach? what's the difference between `IEnumerable` and `IEnumerator`? Why do we need to use it?

6 Feb at 08:2

How do you round a double in Dart to a given degree of precision AFTER the decimal point?

Given a double, I want to round it to a given number of points of precision , similar to PHP's round() function. The closest thing I can find in the Dart docs is double.toStringAsPrecision(), but thi...

9 Feb at 21:0

Open web in new tab Selenium + Python

So I am trying to open websites on new tabs inside my WebDriver. I want to do this, because opening a new WebDriver for each website takes about 3.5secs using PhantomJS, I want more speed... I'm using...

17 Dec at 01:43

Can you remove elements from a std::list while iterating through it?

I've got code that looks like this: ``` for (std::list<item*>::iterator i=items.begin();i!=items.end();i++) { bool isActive = (*i)->update(); //if (!isActive) // items.remove(*i); ...

27 Feb at 19:8

How to remove commits from a pull request

I did a pull request but after that I made some commits to the project locally which ended polluting my pull request, I tried to remove it but without any luck. I found some similar questions on Stac...

24 Aug at 13:21

Is it possible to use Visual Studio on macOS?

I want to install Visual Studio on macOS. Is this possible?

14 Nov at 13:2

Android Activity as a dialog

I have an Activity named `whereActity` which has child dialogs as well. Now, I want to display this activity as a dialog for another activity. How can I do that? ![enter image description here](http...

Turn off warnings and errors on PHP and MySQL

I am getting expected notices and warnings and would like to turn them off in my PHP file. The error is: ``` Warning: fsockopen() ``` And the notice are: ``` Notice: A non well formed numeric valu...

22 Apr at 02:0