SQS vs RabbitMQ

For a start, Amazon SQS is a pseudo-queue which means the delivery of every message(if it reaches the queue) is guaranteed but not in a FIFO fashion which usually happens in a queue. If the order of messages is important to you and you want the queue to work in a FIFO fashion, the Amazon … Read more

Android – Command not found

On MacOS/Linux, define the path to wherever you installed your SDK as ANDROID_HOME: MacOS If you installed Android Studio, the value will need to be Linux Then add the paths to the platform-tools and tools sub-directories (Same on MacOS/Linux). You should now be able to run android from the shell. If none of the suggested … Read more

d3.scale.category20 is too smart for me

Can anybody explain to me why these two expressions return different values… … in the following context Working example… Expand snippet The user agent reported in my system is Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/45.0.2454.85 Safari/537.36 I kind of get the above behaviour but this is very strange… Why is this… … Read more

GROUP_CONCAT comma separator – MySQL

I have a query where I am using GROUP_CONCAT and a custom separator as my results may contain commas: ‘—-‘ This all works well, however it is still comma separated, so my output is: How can I make it so the output is: I thought this was the idea of a custom separator! Failing that, … Read more

mysql.h file can’t be found

The mysql.h file from the libmysqlclient-dev Ubuntu package is located at /usr/include/mysql/mysql.h. This is not a standard search path for compilers, however /usr/include is. You’d typically use the mysql.h header in your code like this: If you don’t want to specify the directory offset in your source, you can pass the -I flag to gcc … Read more

Difference between nil, NIL and, null in Objective-C

nil is the literal null value for Objective-C objects, corresponding to the abstract type id or any Objective-C type declared via @interface. For instance: Nil is the literal null value for Objective-C classes, corresponding to the type Class. Since most code doesn’t need variables to reference classes, its use is not common. One example is: … Read more

OCaml cons (::) operator?

11 No. Cons (::) is a constructor, constructors can not be infix operators. The allowed infix symbols are here: http://caml.inria.fr/pub/docs/manual-caml-light/node4.9.html Some workarounds are (as you mention) the verbose and defining your own nontraditional infix cons

What does the M stand for in C# Decimal literal notation?

It means it’s a decimal literal, as others have said. However, the origins are probably not those suggested elsewhere in this answer. From the C# Annotated Standard (the ECMA version, not the MS version): The decimal suffix is M/m since D/d was already taken by double. Although it has been suggested that M stands for … Read more