How to view DB2 Table structure
How to view the table structure in DB2 database
- Modified
- 16 Apr at 22:53
List all files and directories in a directory + subdirectories
I want to list every file and directory contained in a directory and subdirectories of that directory. If I chose C:\ as the directory, the program would get every name of every file and folder on the...
- Modified
- 11 Apr at 00:57
Visual Studio Code Tab Key does not insert a tab
I'm using Visual Studio Code as my code editor. I did a search on google but wasn't able to find anything about my issue. The issue is simple, pressing in the editor does nothing. I'm expecting it to...
- Modified
- 22 Nov at 12:0
Convert float to std::string in C++
I have a float value that needs to be put into a `std::string`. How do I convert from float to string? ``` float val = 2.5; std::string my_val = val; // error here ```
- Modified
- 16 Nov at 16:11
How can I check if some text exist or not in the page using Selenium?
I'm using Selenium WebDriver, how can I check if some text exist or not in the page? Maybe someone recommend me useful resources where I can read about it. Thanks
- Modified
- 16 Jan at 12:8
Error "The goal you specified requires a project to execute but there is no POM in this directory" after executing maven command
I have a `pom.xml` in `C:\Users\AArmijos\Desktop\Factura Electronica\MIyT\componentes-1.0.4\sources\pom.xml` and I executed: ``` mvn install:install-file -DgroupId=es.mityc.jumbo.adsi -DartifactId=xm...
- Modified
- 26 Sep at 16:56
How to copy a java.util.List into another java.util.List
I have a `List<SomeBean>` that is populated from a Web Service. I want to copy/clone the contents of that list into an empty list of the same type. A Google search for copying a list suggested me to u...
- Modified
- 14 Jan at 13:52
Put content in HttpResponseMessage object?
Several months ago, Microsoft decided to change up the HttpResponseMessage class. Before, you could simply pass a data type into the constructor, and then return the message with that data, but not an...
- Modified
- 5 Apr at 09:18
Hibernate error - QuerySyntaxException: users is not mapped [from users]
I'm trying to get a list of all the users from "users" table and I get the following error: ``` org.hibernate.hql.internal.ast.QuerySyntaxException: users is not mapped [from users] org.hibernate.hql...
How to maintain a Unique List in Java?
How to create a list of unique/distinct objects (no duplicates) in Java? Right now I am using `HashMap<String, Integer>` to do this as the key is overwritten and hence at the end we can get `HashMap...
- Modified
- 17 Sep at 23:38
Row was updated or deleted by another transaction (or unsaved-value mapping was incorrect)
I have a java project that runs on a webserver. I always hit this exception. I read some documentation and found that pessimistic locking (or optimistic, but I read that pessimistic is better) is the ...
- Modified
- 1 Feb at 18:50
grep using a character vector with multiple patterns
I am trying to use `grep` to test whether a vector of strings are present in an another vector or not, and to output the values that are present (the matching patterns). I have a data frame like thi...
Getting parts of a URL (Regex)
Given the URL (single line): [http://test.example.com/dir/subdir/file.html](http://test.example.com/dir/subdir/file.html) How can I extract the following parts using regular expressions: 1. The Sub...
- Modified
- 13 Jan at 11:34
Disable cross domain web security in Firefox
In Firefox, how do I do the equivalent of `--disable-web-security` in Chrome. This has been posted a lot, but never a true answer. Most are links to add-ons (some of which don't work in the latest Fir...
- Modified
- 17 Jul at 23:19
Maximum size of a varchar(max) variable
At any time in the past, if someone had asked me the maximum size for a `varchar(max)`, I'd have said 2GB, or looked up a more exact [figure](http://msdn.microsoft.com/en-us/library/ms176089.aspx) (2^...
- Modified
- 30 Sep at 13:52
How to clear Flutter's Build cache?
There seems to be a problem with flutter's build. I always need to perform > everytime I run the app to an emulator or device. Otherwise, the app loads a scaffold body which my code had from 2 wee...
PRINT statement in T-SQL
Why does the PRINT statement in T-SQL seem to only sometimes work? What are the constraints on using it? It seems sometimes if a result set is generated, it becomes a null function, I assumed to pre...
- Modified
- 6 Nov at 11:43
sed: print only matching group
I want to grab the last two numbers (one int, one float; followed by optional whitespace) and print only them. Example: ``` foo bar <foo> bla 1 2 3.4 ``` Should print: ``` 2 3.4 ``` So far, I h...
ORA-01653: unable to extend table by in tablespace ORA-06512
I tried to generate some test data by running the following sql. ``` BEGIN FOR i IN 1..8180 LOOP insert into SPEEDTEST select 'column1', 'column2', 'column3', 'column4', 'column5', 'col...
- Modified
- 26 Nov at 17:48
Textarea to resize based on content length
I need a textarea where I type my text in the box, it grows in length as needed to avoid having to deal with scroll bars and it need to shrink after delete text! I didn’t want to go down the mootools ...
- Modified
- 15 Jun at 09:21
Pandas: Looking up the list of sheets in an excel file
The new version of Pandas uses [the following interface](http://pandas.pydata.org/pandas-docs/dev/generated/pandas.io.excel.read_excel.html#pandas.io.excel.read_excel) to load Excel files: ``` read_e...
Check if entry in table A exists in table B
I have a definition table that I know is not being maintained very well, let's call this `table A`. I have another table (call it `table B`) that is much smaller and ideally should be a `subset of tab...
Defining TypeScript callback type
I've got the following class in TypeScript: ``` class CallbackTest { public myCallback; public doWork(): void { //doing some work... this.myCallback(); //calling callback...
- Modified
- 30 Oct at 10:46
Maintaining the final state at end of a CSS animation
I'm running an animation on some elements that are set to `opacity: 0;` in the CSS. The animation class is applied onClick, and, using keyframes, it changes the opacity from `0` to `1` (among other th...
- Modified
- 30 Jan at 19:54
How can I put multiple statements in one line?
I know a little bit of comprehensions in Python, but they seem very hard to 'read'. The way I see it, a comprehension might accomplish the same as the following code: ``` for i in range(10): if i == 9...
- Modified
- 27 Apr at 10:17