Questions

Is there a cross-browser onload event when clicking the back button?

For all major browsers (except IE), the JavaScript `onload` event doesn’t fire when the page loads as a result of a back button operation — it only fires when the page is first loaded. Can someone po...

24 Jan at 14:18

What is Castle Windsor, and why should I care?

I'm a long-time Windows developer, having cut my teeth on win32 and early COM. I've been working with .NET since 2001, so I'm pretty fluent in C# and the CLR. I'd never heard of Castle Windsor until...

Best way to remove from NSMutableArray while iterating?

In Cocoa, if I want to loop through an NSMutableArray and remove multiple objects that fit a certain criteria, what's the best way to do this without restarting the loop each time I remove an object? ...

10 Nov at 02:55

How to downgrade Flutter SDK (Dart 1.x)

I upgraded my Flutter SDK and now my project is broken. I need to basically revert back to a Flutter SDK which uses Dart 1.x. I tried the following in the pubspec.yaml, ``` environment: sdk: ">=1...

24 Mar at 18:26

Differences between arm64 and aarch64

I have two "unlocked" devices, an iPad mini 3, and a Galaxy Edge 6, both endowed with a terminal and a minimalistic set of unix commands. I thought both devices have arm64 processors but when I ran `...

16 Sep at 16:9

#1273 - Unknown collation: 'utf8mb4_unicode_ci' cPanel

I have a WordPress database on my local machine that I want to transfer to a hosted phpMyAdmin on cPanel. However, when I try to import the database into the environment, I keep getting this error: `...

7 Apr at 14:24

How to check for an empty struct?

I define a struct ... ``` type Session struct { playerId string beehive string timestamp time.Time } ``` Sometimes I assign an empty session to it (because nil is not possible) ``` ses...

11 Feb at 05:37

Include of non-modular header inside framework module

I am using Xcode 6, 1) Firstly I am creating a dynamic library (CoreLibrary). This library contain RequestPoster.h file. 2) Then I create a Cocoa Touch Framework and added this dynamic library (Core...

23 May at 20:21

What does %>% function mean in R?

I have seen the use of `%>%` (percent greater than percent) function in some packages like [dplyr](https://github.com/hadley/dplyr) and [rvest](https://github.com/hadley/rvest). What does it mean? Is...

21 May at 18:9

Android Studio SDK location

I see there a lot of similar topics pertaining to this issue but I did not find a solution for me among those posts. I just installed Android Studio v0.8.14 and it won't let me create a new project be...

4 Nov at 15:38

How can I convert string date to NSDate?

I want to convert "2014-07-15 06:55:14.198000+00:00" this string date to NSDate in Swift.

25 Oct at 13:18

What does %>% mean in R

I am following this example, the , [file is here](https://github.com/wch/movies/blob/master/server.R#L32). I plan to do a similar filter, but am lost as to what `%>%` does. ``` # Apply filters m...

31 May at 07:53

What's the cleanest way of applying map() to a dictionary in Swift?

I'd like to map a function on all keys in the dictionary. I was hoping something like the following would work, but filter cannot be applied to dictionary directly. What's the cleanest way of achievin...

18 Jun at 13:35

Postgresql query between date ranges

I am trying to query my postgresql db to return results where a date is in certain month and year. In other words I would like all the values for a month-year. The only way i've been able to do it s...

1 Oct at 17:15

Bootstrap trying to load map file. How to disable it? Do I need to do it?

I'm recently playing with bootsrap3. I compiled it from sources and included distr js and css to my project. The thing is, I see in GH dev tools, that it's trying to get .map.css file. Why does it wan...

How to generate a range of numbers between two numbers?

I have two numbers as input from the user, like for example `1000` and `1050`. How do I generate the numbers between these two numbers, using a sql query, in seperate rows? I want this: ``` 1000 1...

15 Sep at 20:44

How can I remove an element from a list, with lodash?

I have an object that looks like this: ``` var obj = { "objectiveDetailId": 285, "objectiveId": 29, "number": 1, "text": "x", "subTopics": [{ "subTopicId": 1, "num...

16 Oct at 00:55

ElasticSearch: Unassigned Shards, how to fix?

I have an ES cluster with 4 nodes: ``` number_of_replicas: 1 search01 - master: false, data: false search02 - master: true, data: true search03 - master: false, data: true search04 - master: false, d...

9 Aug at 14:43

Setting Django up to use MySQL

I want to move away from PHP a little and learn Python. In order to do web development with Python I'll need a framework to help with templating and other things. I have a non-production server that...

21 Jan at 13:46

How to correctly display .csv files within Excel 2013?

It seems Excel 2013 doesn't read CSV files correctly (Excel 2010 does). Every time I open .csv files, all my data are displayed in the first column. I know I can go to `DATA`, `Convert`, and then cho...

28 Nov at 12:39

ExpressJS - throw er Unhandled error event

I created expressjs application using the following commands: ``` express -e folderName npm install ejs --save npm install ``` When I run the application with: `node app.js`, I have the following e...

30 May at 04:33

how to disable DIV element and everything inside

I need to disable a DIV and all it's content using Javascript. I can swear that doing a simple ``` <div disabled="true"> ``` was working for me before, but for some reason it no longer works. I ...

14 Feb at 05:28

Postgresql 9.2 pg_dump version mismatch

I am trying to dump a Postgresql database using the tool. ``` $ pg_dump books > books.out ``` How ever i am getting this error. ``` pg_dump: server version: 9.2.1; pg_dump version: 9.1.6 pg_dum...

How to declare Return Types for Functions in TypeScript

I checked here [https://github.com/Microsoft/TypeScript/blob/master/doc/spec.md](https://github.com/Microsoft/TypeScript/blob/master/doc/spec.md) which is the [TypeScript Language Specifications](http...

29 Sep at 10:0

Can I write into the console in a unit test? If yes, why doesn't the console window open?

I have a test project in Visual Studio. I use . I add this line in one of my unit tests: ``` Console.WriteLine("Some foo was very angry with boo"); Console.ReadLine(); ``` When I run the test, the te...