PHP session set

how can i store this array into a session and use sessions to move the elements inside the array up/down/left/right diagonally $board = array(A B C D E F G H 0 array(0,0,0,0,0,0,0,0), 1 array(0,0,0,0,0,0,0,0), 2 array(0,0,0,0,0,0,0,0), 3 array(0,0,0,

Start more than one Android emulator at a time

After I updated my ADT/Tools to 20, I am not able to start Two Emulators at a time. It worked Once. But i don't remember what i did that time. I tried restart my system several times. I don't know how to locate whats the problem in emulator. the emul

Identification of groups in the group by

I am running a complicated group by statement and I get all my results in their respective groups. But I want to create a custom column with their "group id". Essentially all the items that are grouped together would share an ID. This is what I

Test unit in aptana studio 3

How do you run a Unit test on your class creation in aptana studio 3 on a python format class. I am wondering if I am supposed to add something to my code or is there a function in aptana studio that does it for you.Aptana Studio does not have a spec

SVG with nine scales

How could one obtain nine-slice scaling in SVG? Specifically, I'm looking for a way to define SVG objects that behave like nine-sliced objects when resized (some elements maintain their dimension, and others scale with the container).If you meant to

How to run a .sql file as part of a MySQL Workbench 6.2 query?

I'm using MySQL Workbench 6.2 [Windows7] and I want to create a script with all my steps. Among the steps, I have a series of .sql files stored from on my computer that create and populate tables. I want to run these files from the query tab but ever

EF Repository with UoW Update

I believe this is asked somewhere else but I can't find straight solution. My Api is passing object model and on the server side every value of that object which is not passed is considered null (makes sense). Is there way I can tell EF6 not to updat

Macro with if inside?

Is it possible to do something like this? Look at this code: #define MyMacro(...) SomeFunction(arg1, arg2, arg3) Now, I would like the 2nd parameter to be conditionally compiled: #define MyMacro(...) SomeFunction(arg1, #if CONDITION arg2, #endif arg3

Using the esp registry

I was trying to understand how to use the stack with assembly and in my attempt I came across the following code in one of the questions in SO, namely: push ecx mov eax, 4 mov ebx, 1 mov ecx, result mov edx, result_len int 0x80 mov eax, 4 mov ebx, 1

Found unsigned entry in resource

i have the following JNLP file: <jnlp spec="1.0+" codebase="http://****:****" href="tcm2012.jnlp"> <information> <title>TCM 2012</title> <vendor>Drift og Performance, *** Servicecenter</vendor

wpf attached property does not work

I simply want to pass parameter to the control. But it threw error "Input string was not in a correct format." Why?* * Xaml <Views:SomeView SecurityId="abc"></Views:SomeView> Model: class Data { public string Case { get; se

Using the Transpose function in Excel

I have a several text separated by ; A 1;2;3;5;6;7;8;9;10 11;12;13;14;15;16;17 18;19;20;21 Column A has few text in each row 1,2,3 and so on separated by ';' With the help of 'Text to Column' Option in 'Data' tab we are able to separate the same Whic

git - trim whitespace

I've accidentally put some whitespace in my initial commit - it shows up red in git diff --color. What's the best way to get rid of the existing whitespace and how can I avoid this happening again? I am not necessarily looking for a built-in git comm

Continue after the capture block

I try to continue the Try block after exception. I mean: Try action1() action2() action3() action4() Catch Log() And if found error in action2 go to Catch, do logging and continue with the action3, action4; How can I do this?Here's an example using a

This design is a good idea - Interfaces and abstract class

I would like to be able to do somthing like the following: //non-generic var MyTable = new Table(); string name = MyTable.Name; IEnumerable<String> rows = MyTable.Rows; //generic var MyTableGeneric = new Table<MyType>(); string name = MyTableG

Serializable transaction failure

Documentation says, serializable transactions execute one after one. But in practic it seems not to be truth. Here's two almost equal transactions, the difference is delay for 15 seconds only. #1: set transaction isolation level serializable go begin

How to send and file in $ http.delete

I want to delete the tag created using http post. here is the code that i have tried. $http({ method: 'DELETE', url: '/api/tags', data: [] }).success(function(data) { console.log('Gets DELETED'); = data; }).error(function(dat

Integer.parseInt does not parse an entire string

Scanner sc = new Scanner(; length = sc.nextLine(); length_to_play = Integer.parseInt(length); I have tried using length.trim() and length.replaceAll() to discard the whitespaces, but didn't work. I'm having Exception in thread "main" j

Verifying whether IP is in a range with Redis

I am interested in using Redis to check if a IP address (converted into integer) falls within a range of IPs. It is very likely that the ranges will overlap. I have found this question/answer, although I am not able to fully understand the logic behi

User Stories and Usage Scenarios

What is the difference between User Stories and Use case scenario , purpose-wise ?Use Cases are more like a contract while Use Stories are a planning tool. Consequently, Use Cases usually outlive User Stories since they (should) serve as documentatio

Rails Restore Authentication: Can not Find UserObserver

I am moderately new to Rails so this may be a stupid question... I followed the basic steps noted on the github site for the plugin (mainly installed the plugin, ran the generator, modified environment.rb and created the UserObserver class in the mod