Is it possible to Pivot data using LINQ?

Is it possible to Pivot data using LINQ?

I am new to LINQ, but I am wondering if it is possible to use LINQ to pivot data from the following layout:CustID | OrderDate | Qty1 | 1/1/2008 | 1002 | 1/2/2008 | 2001 | 2/2/2008 | 3502 | 2/28/2008 | 2211 | 3/12

Exception Breakpoint in Xcode

Exception Breakpoint in Xcode

How to add Exception Breakpoint in Xcode?int main(int argc, char *argv[]) { NSAutoreleasePool * pool = [[NSAutoreleasePool alloc] init]; int retVal = UIApplicationMain(argc, argv, nil, @"AppController"); [pool release]; return r

How to configure an app to run correctly on a machine with a high DPI setting (e.g. 150%)?

How to configure an app to run correctly on a machine with a high DPI setting (e.g. 150%)?

I've created a simple Winforms application in C#. When I run the application on a machine with high DPI settings (e.g. 150%), the application gets scaled up. So far so good!But instead of rendering the fonts with a higher font size, all tex

How can I connect to Android with ADB over TCP?

How can I connect to Android with ADB over TCP?

I am attempting to debug an application on a Motorola Droid, but I am having some difficulty connecting to the device via USB. My development server is a Windows 7 64-bit VM running in Hyper-V, and so I cannot connect directly via USB in th

Setting environment variables in OS X?

Setting environment variables in OS X?

What is the proper way to modify environment variables like PATH in OSX? I've looked on Google a little bit and found 3 different files to edit: /etc/paths~/.profile~/.tcshrcI don't even have some of these files, and I'm pretty sure that .t

How to serve static files in Flask

How to serve static files in Flask

So this is embarrassing. I've got an application that I threw together in Flask and for now it is just serving up a single static HTML page with some links to CSS and JS. And I can't find where in the documentation Flask describes returning

Learning to write a compiler [closed]

Learning to write a compiler [closed]

Preferred languages: C/C++, Java, and Ruby.I am looking for some helpful books/tutorials on how to write your own compiler simply for educational purposes. I am most familiar with C/C++, Java, and Ruby, so I prefer resources that involve on

Visual Studio Go to Definition (F12) opens Object Browser instead of Code View

Visual Studio Go to Definition (F12) opens Object Browser instead of Code View

I'm running VS2005, and when I right click on an object and select Go to Definition it brings me to the object browser instead of the actual code.Is there some settings that I can change to fix this? Note: it works properly for C# solution

Changing the order of maven plugin execution

Changing the order of maven plugin execution

Hi I am very new to maven. I would like to change the order of maven plug-in execution.In my pom.xml I have maven-assembly plug-in and maven ant plug-in .I used maven assembly plug-in for creating zip file and maven ant plug-in for copying

org.apache.catalina.LifecycleException: Failed to start component [StandardServer[8005]]A child cont

org.apache.catalina.LifecycleException: Failed to start component [StandardServer[8005]]A child cont

I am struggling for the past 6-7 hrs trying to figure out what went wrong with my Apache Tomcat Server. In all of my projects, the jdk version got switched to 1.6 from 1.8. To solve the version conflict, I verified whether compiled version

Run “mvn package” on “Build project” in Eclipse

Run “mvn package” on “Build project” in Eclipse

I have maven java project in eclipse. I right click project, choose "Build project" and I want "mvn package" get invoked automatically. Is it possible? 1:Rightclick on your pom.xml and choose "Run as" -> "Maven build.." and put in Goals:

How to integrate a library that uses expression templates?

How to integrate a library that uses expression templates?

I would like to use the Eigen matrix library as the linear algebra engine in my program. Eigen uses expression templates to implement lazy evaluation and to simplify loops and calculations.For example:#includeint main(){ int size = 40; //

Difference between running lint via Android Studio menu and gradlew command-line

Difference between running lint via Android Studio menu and gradlew command-line

When I run the following on a command line:./gradlew -lintI get different results than if I choose the following menu option within Android Studio.Analyze->Inspect Code...Can anyone explain this? Is this normal? Should a prudent developer

How to Export JSON to CSV or Excel - Angular 2

How to Export JSON to CSV or Excel - Angular 2

Say my json is like this: var readyToExport = [ {id: 1, name: 'a'}, {id: 2, name: 'b'}, {id: 3, name: 'c'}];How can I export this JSON into CSV or Excel file in Angular2?The browser that I'm using is Chrome. Maybe Angular2 is not rele

Eclipse - How to fix error “No persistence.xml file found in project” JPA issue

Eclipse - How to fix error “No persistence.xml file found in project” JPA issue

Error "No persistence.xml file found in project" in Eclipse.Aim: Create a new project GWT+App engine+Maven Steps to create this:Google eclipse plugin: select "New Web Application Project". set the name etc. right-click on the project > Con

Why am I getting Unexpected token '\\u0000' when using npm install -g package

Why am I getting Unexpected token '\\u0000' when using npm install -g package

This is probably a Windows specific issue but I haven't found any information when googling this issue. I had been using ionic framework which relies on Cordova (or Phonegap). However, the problem is not specific to any of these packages.

Why relative path doesn't work in Ruby require

Why relative path doesn't work in Ruby require

I'm starting learning Ruby, one thing that I don't understand, why relative path for require directive doesn't work in ruby. It's something that works almost in every scripting language that I now (JSP, PHP...). I explain with a real exampl

ASP.NET vNext - compile code dynamically not working for me

ASP.NET vNext - compile code dynamically not working for me

I've run through the tutorial on this here:http://www.asp.net/vnext/overview/aspnet-vnext/getting-started-with-aspnet-vnext-and-visual-studioI am following step 7 in section 2 - "With the browser still open, open Class1.cs and change the me

What exactly is the zookeeper quorum setting in hbase-site.xml?

What exactly is the zookeeper quorum setting in hbase-site.xml?

What exactly is the zookeeper quorum setting in hbase-site.xml? 1:As described in hbase-default.xml, here's the setting: Comma separated list of servers in the ZooKeeper Quorum. For example, "host1.mydomain.com,host2.mydomain.com,host3.

Ways to manage DB migrations with SQLAlchemy? [closed]

Ways to manage DB migrations with SQLAlchemy? [closed]

I've looked at sqlalchemy-migrate, but it just seems like a lot of work and I haven't been able to find any useful examples.Anyone care to share how they handle this? 1:Check out new project Alembic: http://readthedocs.org/docs/alembic/

The view didn't return an HttpResponse object. It returned None instead

The view didn't return an HttpResponse object. It returned None instead

I have the following simple view. Why is it resulting in this error?The view auth_lifecycle.views.user_profile didn't return an HttpResponse object. It returned None instead."""Renders web pages for the user-authentication-lifecycle project

Split comma-separated values

Split comma-separated values

I am using Visual Studio 2005 and C# 2.0, and I am trying to split a comma-separated string using the string.Split function and a lambda expression as follows:string s = "a,b, b, c";string[] values = s.Split(',').Select(sValue => sValue.Tri

unbound class path container error in eclipse?

unbound class path container error in eclipse?

I tried to import my project into ecclipse, but im get following error DescriptionUnbound classpath container: 'JRE System Library [jre1.5.0_16]' in project 'myproject', How i can resolve this error 1:An unbounded classpath container fo

Asset Catalog Compiler Error

Asset Catalog Compiler Error

I'm not sure what I did to get this error in Xcode 5: "None of the input catalogs contained a matching app icon set named "AppIcon"".My app was building fine - then my machine locked up tighter than the arctic - don't know why - and now I

Not allowed to create transaction on shared EntityManager - use Spring transactions or EJB CMT

Not allowed to create transaction on shared EntityManager - use Spring transactions or EJB CMT

This post is in continuation of JPA How to get the value from database after persistWhen I execute the following I am getting following exception, how can I resolve this?Not allowed to create transaction on shared EntityManager - use Spring