Questions

proper name for python * operator?

What is the correct name for operator `*`, as in `function(*args)`? unpack, unzip, something else?

17 May at 02:35

What Vim command(s) can be used to quote/unquote words?

How can I quickly quote/unquote words and change quoting (e.g. from `'` to `"`) in Vim? I know about the [surround.vim](https://github.com/tpope/vim-surround) plugin, but I would like to use just Vim....

16 Jun at 00:1

When to use std::size_t?

I'm just wondering should I use `std::size_t` for loops and stuff instead of `int`? For instance: ``` #include <cstdint> int main() { for (std::size_t i = 0; i < 10; ++i) { // std::size_...

29 May at 05:36

Add IIS 7 AppPool Identities as SQL Server Logons

I'm running an IIS 7 Website with an AppPool of . The AppPools does NOT run under NetworkService, etc.. identity (by purpose), but uses its own AppPool Identitiy (IIS AppPool\MyAppPool). This is a so...

11 May at 20:25

Type.GetType("namespace.a.b.ClassName") returns null

This code: ``` Type.GetType("namespace.a.b.ClassName") ``` returns `null`. I have in the usings: ``` using namespace.a.b; ``` The type exists, it's in a different class library, and I need to get it...

7 Dec at 13:30

"Unknown class <MyClass> in Interface Builder file" error at runtime

Even though Interface Builder is aware of a `MyClass`, I get an error when starting the application. This happens when `MyClass` is part of a library, and does not happen if I compile the class direc...

OrderBy descending in Lambda expression?

I know in normal Linq grammar, `orderby xxx descending` is very easy, but how do I do this in Lambda expression?

26 Jun at 15:17

{"<user xmlns=''> was not expected.} Deserializing Twitter XML

I'm pulling in the XML from Twitter via OAuth. I'm doing a request to [http://twitter.com/account/verify_credentials.xml](http://twitter.com/account/verify_credentials.xml), which returns the followin...

30 Aug at 11:52

jQuery lose focus event

I'm trying to show up a container if a input field gets the focus and - that's the actual problem - hide the container if focus is lost. Is there an opposite event for jQuery's focus? Some example co...

Git reset --hard and push to remote repository

I had a repository that had some bad commits on it (D, E and F for this example). > A-B-C-D-E-F master and origin/master I've modified the local repository specifically with a `git reset --hard`. I...

29 Oct at 15:20

How to run a JAR file

I created a JAR file like this: ``` jar cf Predit.jar *.* ``` I ran this JAR file by double clicking on it (it didn't work). So I ran it from the DOS prompt like this: ``` java -jar Predit.jar ```...

6 Dec at 10:50

Can I add a UNIQUE constraint to a PostgreSQL table, after it's already created?

I have the following table: ``` tickername | tickerbbname | tickertype ------------+---------------+------------ USDZAR | USDZAR Curncy | C EURCZK | EURCZK Curncy | C EURPLN | EURPLN ...

JavaScript naming conventions

I know there is a lot of controversy (maybe not controversy, but arguments at least) about which naming convention is the best for JavaScript. How do you name your variables, functions, objects and su...

12 Oct at 20:3

Nullable types and the ternary operator: why is `? 10 : null` forbidden?

I just came across a weird error: ``` private bool GetBoolValue() { //Do some logic and return true or false } ``` Then, in another method, something like this: ``` int? x = GetBoolValue() ? 1...

20 Apr at 08:19

Explain Python entry points?

I've read the documentation on egg entry points in Pylons and on the Peak pages, and I still don't really understand. Could someone explain them to me?

28 Aug at 07:17

How do I extract text that lies between parentheses (round brackets)?

I have a string `User name (sales)` and I want to extract the text between the brackets, how would I do this? I suspect sub-string but I can't work out how to read until the closing bracket, the len...

26 Mar at 07:51

Simplest SOAP example

What is the simplest SOAP example using Javascript? To be as useful as possible, the answer should: - - - - -

15 Feb at 04:2

Remove spaces from std::string in C++

What is the preferred way to remove spaces from a string in C++? I could loop through all the characters and build a new string, but is there a better way?

11 Jun at 10:11

Your project does not reference ".NETFramework,Version=v4.6.2" framework. Add a reference to ".NETFramework,Version=v4.6.2" in the "TargetFrameworks"

I can't run my unit tests. I have the next error: > Your project does not reference ".NETFramework,Version=v4.6.2" framework. Add a reference to ".NETFramework,Version=v4.6.2" in the "TargetFram...

Could not install packages due to an EnvironmentError: [WinError 5] Access is denied:

I have windows 10. I have completed installing Tensorflow. It works. It says "Hello Tensorflow!". But it has all of this before it: ``` 2018-08-18 18:16:01.500579: I T:\src\github\tensorflow\tensorflo...

19 Dec at 08:2

Get current url in Angular

How can I get the current url in Angular 4? I've searched the web for it a lot, but am unable to find solution. ``` import { BrowserModule } from '@angular/platform-browser'; import { NgModule } fr...

28 Jan at 12:28

Switch php versions on commandline ubuntu 16.04

I have installed php 5.6 and and php 7.1 on my Ubuntu 16.04 I know with Apache as my web server, I can do ``` a2enmod php5.6 #to enable php5 a2enmod php7.1 #to enable php7 ``` When I disable php7.1 i...

How to select specific columns in laravel eloquent

lets say I have 7 columns in table, and I want to select only two of them, something like this ``` SELECT `name`,`surname` FROM `table` WHERE `id` = '1'; ``` In laravel eloquent model it may looks ...

28 Apr at 16:39

How to install wget in macOS?

I try to install wget in MAC OS 10.11.1 but when I run `./configure --with-ssl=openssl` I get this error: ``` configure: error: --with-ssl=openssl was given, but SSL is not available. ``` How to re...

What is the difference between res.end() and res.send()?

I'm a beginner in `Express.js` and I'm confused by these two keywords: `res.end()` and `res.send()`. Are they the same or different?

24 Jul at 14:56