Check if a column contains text using SQL
I have a column which is called `studentID`, but I have of records and somehow the application has input some in the column. How do I search: ``` SELECT * FROM STUDENTS WHERE STUDENTID CONTAINS...
- Modified
- 27 Jan at 08:40
Hashset vs Treeset
I've always loved trees, that nice `O(n*log(n))` and the tidiness of them. However, every software engineer I've ever known has asked me pointedly why I would use a `TreeSet`. From a CS background, I ...
Increase Tomcat memory settings
> [Dealing with “java.lang.OutOfMemoryError: PermGen space” error](https://stackoverflow.com/questions/88235/dealing-with-java-lang-outofmemoryerror-permgen-space-error) I have 8GB RAM in my d...
/usr/lib/libstdc++.so.6: version `GLIBCXX_3.4.15' not found
How can I get GLIBCXX_3.4.15 in Ubuntu? I can't run some programs that I'm compiling. When I do: ``` strings /usr/lib/libstdc++.so.6 | grep GLIBC ``` I get: ``` GLIBCXX_3.4 GLIBCXX_3.4.1 GLIBCXX_...
Is it a good practice to use try-except-else in Python?
From time to time in Python, I see the block: ``` try: try_this(whatever) except SomeException as exception: #Handle exception else: return something ``` I do not like that kind of progr...
foreach vs someList.ForEach(){}
There are apparently many ways to iterate over a collection. Curious if there are any differences, or why you'd use one way over the other. First type: ``` List<string> someList = <some way to init>...
- Modified
- 1 Nov at 11:18
error: use of deleted function
I've been working on some C++ code that a friend has written and I get the following error that I have never seen before when compiling with gcc4.6: ``` error: use of deleted function ‘GameFSM_<std:...
- Modified
- 19 Dec at 00:23
Await is a reserved word error inside async function
I am struggling to figure out the issue with the following syntax: ``` export const sendVerificationEmail = async () => (dispatch) => { try { dispatch({ type: EMAIL_FETCHING, payload: tru...
- Modified
- 17 Jul at 10:25
What is the difference between ng-if and ng-show/ng-hide
I'm trying to understand the difference between `ng-if` and `ng-show`/`ng-hide`, but they look the same to me. Is there a difference that I should keep in mind choosing to use one or the other?
- Modified
- 7 May at 06:48
No Firebase App '[DEFAULT]' has been created - call Firebase.initializeApp() in Flutter and Firebase
I am building a Flutter application and I have integrated Firebase, but I keep getting this error when I click on a button either to register, login or logout. I have seen other people have asked the ...
- Modified
- 26 Dec at 09:25
Groovy - How to compare the string?
how to compare the string which is passed as a parameter the following method is not working. ``` String str = "saveMe" compareString(str) def compareString(String str){ def str2 = "...
- Modified
- 25 Jan at 09:6
Adding asterisk to required fields in Bootstrap 3
My HTML has a class called `.required` that is assigned to required fields. Here is the HTML: ``` <form action="/accounts/register/" method="post" role="form" class="form-horizontal"> <input type=...
- Modified
- 20 Jun at 09:12
Difference between static memory allocation and dynamic memory allocation
I would like to know what is the difference between static memory allocation and dynamic memory allocation? Could you explain this with any example?
- Modified
- 27 Apr at 18:58
Fill formula down till last row in column
I'm trying to draw down the formula that's in cell M3 to the end of the data set. I'm using column L as my base to determine the last cell with data. My formula is a concatenation of two cells with a...
Compare object instances for equality by their attributes
I have a class `MyClass`, which contains two member variables `foo` and `bar`: ``` class MyClass: def __init__(self, foo, bar): self.foo = foo self.bar = bar ``` I have two inst...
Oracle SQL escape character (for a '&')
While attempting to execute SQL insert statements using [Oracle SQL Developer](http://www.oracle.com/technology/products/database/sql_developer/index.html) I keep generating an "Enter substitution val...
- Modified
- 22 Aug at 16:3
Print a div content using Jquery
I want to print the content of a div using jQuery. This question is already asked in SO, but I can't find the correct (working) answer. This is is my HTML: ``` <div id='printarea'> <p>This is a ...
- Modified
- 16 Nov at 10:37
What is object serialization?
What is meant by "object serialization"? Can you please explain it with some examples?
- Modified
- 11 Oct at 23:32
How to make the main content div fill height of screen with css
So I have a webpage with a header, mainbody, and footer. I want the mainbody to fill 100% of the page (fill 100% in between footer and header) My footer is position absolute with bottom: 0. Everytime ...
- Modified
- 23 Aug at 19:21
100% width in React Native Flexbox
I have already read several flexbox tutorial, but I still cannot make this simple task to work. How can I make the red box to 100% width? [](https://i.stack.imgur.com/7LaIW.png) Code: ``` <View style=...
- Modified
- 6 May at 14:30
Using IQueryable with Linq
What is the use of `IQueryable` in the context of LINQ? Is it used for developing extension methods or any other purpose?
- Modified
- 12 Nov at 08:49
Get img thumbnails from Vimeo?
I want to get a thumbnail image for videos from Vimeo. When getting images from Youtube I just do like this: ``` http://img.youtube.com/vi/HwP5NG-3e8I/2.jpg ``` Any idea how to do for Vimeo? [Her...
- Modified
- 23 May at 12:26
How to check if running as root in a bash script
I'm writing a script that requires root level permissions, and I want to make it so that if the script is not run as root, it simply echoes "Please run as root." and exits. Here's some pseudocode for...
How do I use Maven through a proxy?
I want to share my experience of using maven through a proxy. You would most likely face exceptions and messages like: or How to configure Maven to use proxy server?
Compiling/Executing a C# Source File in Command Prompt
How do you compile and execute a .cs file from a command-prompt window?
- Modified
- 2 May at 23:57