Questions

Is it possible to "decompile" a Windows .exe? Or at least view the Assembly?

A friend of mine downloaded some malware from Facebook, and I'm curious to see what it does without infecting myself. I know that you can't really decompile an .exe, but can I at least view it in Asse...

-didSelectRowAtIndexPath: not being called

I'm writing an iOS app with a table view inside a tab view. In my `UITableViewController`, I implemented `-tableView:didSelectRowAtIndexPath:`, but when I select a row at runtime, the method isn't bei...

What is the difference between .js and .mjs files?

I have started working on an existing project based on Node.js. I was just trying to understand the flow of execution, where I encountered with some `*.mjs` files. I have searched the web where I foun...

11 Oct at 19:48

WSL Redis encountered System has not been booted with systemd as init system (PID 1). Can't operate

I'm trying to follow the Redis installation process that was discuss in this [article](https://www.digitalocean.com/community/tutorials/how-to-install-and-configure-redis-on-ubuntu-16-04) of digital o...

Vue v-on:click does not work on component

I'm trying to use the on click directive inside a component but it does not seem to work. When I click the component nothings happens when I should get a 'test clicked' in the console. I don't see any...

How to show full column content in a Spark Dataframe?

I am using spark-csv to load data into a DataFrame. I want to do a simple query and display the content: ``` val df = sqlContext.read.format("com.databricks.spark.csv").option("header", "true").load(...

ld: framework not found Pods

I'm trying to add a framework to my IOS project but when I build I always got the same message : > ld: framework not found Podsclang: error: linker command failed with exit code 1 (use -v to see invoc...

20 Jun at 09:12

How to download HTTP directory with all files and sub-directories as they appear on the online files/folders list?

There is an online HTTP directory that I have access to. I have tried to download all sub-directories and files via `wget`. But, the problem is that when `wget` downloads sub-directories it downloads ...

22 Oct at 03:46

Where is Developer Command Prompt for VS2013?

I need to run web.exe file from my developer command prompt in Visual Studio 2013. By default, the command prompt is not installed in Visual Studio 2013. Previously, I was using Visual Studio 2012. I...

3 Mar at 00:19

Gmail Error :The SMTP server requires a secure connection or the client was not authenticated. The server response was: 5.5.1 Authentication Required

I am using following code to send email. The Code works correctly in my local Machine. But on Production server i am getting the error message ``` var fromAddress = new MailAddress("mymailid@gmail.co...

26 Jul at 08:36

Passing variables to the next middleware using next() in Express.js

I want to pass some variable from the first middleware to another middleware, and I tried doing this, but there was "`req.somevariable` is a given as 'undefined'". --- ``` //app.js .. app.get('/som...

What is the best way to conditionally apply attributes in AngularJS?

I need to be able to add for example "contenteditable" to elements, based on a boolean variable on scope. Example use: ``` <h1 attrs="{'contenteditable=\"true\"': editMode}">{{content.title}}</h1> `...

31 Jul at 15:34

LINQ: Not Any vs All Don't

Often I want to check if a provided value matches one in a list (e.g. when validating): ``` if (!acceptedValues.Any(v => v == someValue)) { // exception logic } ``` Recently, I've noticed ReSha...

11 May at 20:9

Python Image Library fails with message "decoder JPEG not available" - PIL

PIL does support JPEG in my system. Whenever I do an upload, my code is failing with: ``` File "PIL/Image.py", line 375, in _getdecoder raise IOError("decoder %s not available" % decoder_name) I...

17 Oct at 20:32

Cannot find JavaScriptSerializer in .Net 4.0

I cannot seem to find the [JavaScriptSerializer](http://msdn.microsoft.com/en-us/library/system.web.script.serialization.javascriptserializer.aspx) object nor the the `System.Web.Script.Serialization`...

10 Jan at 12:43

diff to output only the file names

I'm looking to run a Linux command that will recursively compare two directories and output the file names of what is different. This includes anything that is present in one directory and not the ot...

10 Aug at 11:16

How to undo a git pull?

I would like to undo my git pull on account of unwanted commits on the remote origin, but I don't know to which revision I have to reset back to. How can I just go back to the state before I did the ...

16 Jul at 05:36

How do I check if a string is unicode or ascii?

What do I have to do in Python to figure out which encoding a string has?

22 Feb at 15:28

How to resolve "local edit, incoming delete upon update" message

When I do a `svn status .`, I get this: ``` ! C auto-complete-config.elc > local edit, incoming delete upon update ! + C auto-complete.elc > local edit, incoming delete upon upd...

20 Jun at 16:27

How to get first 5 characters from string

How to get first 5 characters from string using php ``` $myStr = "HelloWordl"; ``` result should be like this ``` $result = "Hello"; ```

30 Sep at 04:47

Is there an equivalent to 'continue' in a Parallel.ForEach?

I am porting some code to `Parallel.ForEach` and got an error with a `continue` I have in the code. Is there something equivalent I can use in a `Parallel.ForEach` functionally equivalent to `continue...

20 Mar at 18:10

Get IP address of visitors using Flask for Python

I'm making a website where users can log on and download files, using the [Flask micro-framework](http://flask.pocoo.org/) (based on [Werkzeug](http://werkzeug.pocoo.org/)) which uses Python (2.6 in m...

25 Jan at 16:42

Copy files from one directory into an existing directory

In bash I need to do this: 1. take all files in a directory 2. copy them into an existing directory How do I do this? I tried `cp -r t1 t2` (both t1 and t2 are existing directories, t1 has files ...

20 Oct at 16:28

Java, How do I get current index/key in "for each" loop

In Java, How do I get the current index for the element in Java? ``` for (Element song: question){ song.currentIndex(); //<<want the current index. } ``` In PHP you could do this: ``` ...

14 Apr at 20:29

How to check for null in Twig?

What construct should I use to check whether a value is NULL in a Twig template?

8 Mar at 18:33