Transitioning from Windows Forms to WPF

Transitioning from Windows Forms to WPF

For a long time now, I have been stuck with Windows Forms development (started with VB6, and has continued through to C# .NET 4.5), and I have pretty much hit the limit of what Windows Forms can do, both using pure .NET, and special effects

How can I parse a JSON string that would cause illegal C# identifiers?

How can I parse a JSON string that would cause illegal C# identifiers?

I have been using NewtonSoft JSON Convert library to parse and convert JSON string to C# objects. But now I have came across a really awkward JSON string and I am unable to convert it into C# object because I cant make a C# class out of thi

When should I write the keyword 'inline' for a function/method?

When should I write the keyword 'inline' for a function/method?

When should I write the keyword inline for a function/method in C++?After seeing some answers, some related questions:When should I not write the keyword 'inline' for a function/method in C++?When will the compiler not know when to make a f

generate days from date range

generate days from date range

I would like to run a query likeselect ... as days where `date` is between '2010-01-20' and '2010-01-24'And return data like: days----------2010-01-202010-01-212010-01-222010-01-232010-01-24 1:This solution uses no loops, procedures, or

Mean per group in a data.frame [duplicate]

Mean per group in a data.frame [duplicate]

This question already has an answer here: Aggregate / summarize multiple variables per group (e.g. sum, mean) 4 answers I have a data.frame and I need

Serializing to JSON in jQuery [duplicate]

Serializing to JSON in jQuery [duplicate]

This question already has an answer here: Serializing an object to JSON 3 answers I need to serialize an object to JSON. I'm using jQuery. Is there a "

How do I create a transparent Activity on Android?

How do I create a transparent Activity on Android?

I want to create a transparent Activity on top of another activity.How can I achieve this? 1:Add the following style in your res/values/styles.xml file (if you don’t have one, create it.) Here’s a complete file:<?xml version="1.0" encodi

Saving Android Activity state using Save Instance State

Saving Android Activity state using Save Instance State

I've been working on Android SDK platform, and it is a little unclear how to save an application's state. So given this minor re-tooling of the 'Hello, Android' example:package com.android.hello;import android.app.Activity;import android.os

What are the good Scala IDEs at the start of 2010?

What are the good Scala IDEs at the start of 2010?

I know this is an exact duplicate, but a year has gone by and Scala seems to be a fast moving thing, so I figure it might be acceptable to ask again:What is the best IDE for Scala development right now? 1:I know the Eclipse plugin is a w

Node.js: Connecting to a Server Using Sockets

Node.js: Connecting to a Server Using Sockets

I'm just starting to play with Node.js today, and thought I'd start with what I thought would be a simple script: Connecting to a server via sockets, and sending a bit of data, and receiving it back. I'm creating a command line utility. Not

Date archives for custom post type

Date archives for custom post type

I have seen many questions/posts regarding this, but have yet to find a decent solution. Basically I am trying to do what wp_get_archives does, but for a custom post type (personally I am unsure why wp_get_archives doesn't support custom po

C++ testing framework: recommendation sought

C++ testing framework: recommendation sought

I'm looking for a "quick and dirty" C++ testing framework I can use on my Windows/Visual Studio box. It's just me developing, so it doesn't have to be enterprise class software. Staring at a list of testing frameworks, I am somewhat befuddl

converting Date object to TimeWithZone

converting Date object to TimeWithZone

I need to convert a Date object into a TimeWithZone object representing the beginning of that day in a given time zone.The following approach works, but seems too convoluted as it requires me to convert the date to a string:?> date = Date.p

Execute a SQL stored proc from a SQL view

Execute a SQL stored proc from a SQL view

I am finding that calling a stored proc in Excel is not as easy as it should be, but calling a view, or a direct table is very easy. So, how can I create a view that will call a stored proc with no params?I know I won't be able to pass any

Options for real-time web notifications and updates using Comet/XMPP vs WebSocket technologies on a

Options for real-time web notifications and updates using Comet/XMPP vs WebSocket technologies on a

I am scoping out the architectural options for a project that will render live updates (like Facebook) of user activities - logins, photos, etc. Two main UI components of this are an auto-updating scrolling area where new notifications wil

Xcode building and resources folders

Xcode building and resources folders

I have several resources in my iPhone app and when they get compiled they all get added to the root of the resources folder in the app regardless of the Xcode grouping structure. This is fine for most things, however there is a set of files

SQL Server 2005:charindex starting from the end

SQL Server 2005:charindex starting from the end

I have a string 'some.file.name',I want to grab 'some.file'.To do that,I need to find the last occurrence of '.' in a string.My solution is : declare @someStr varchar(20) declare @reversedStr varchar(20) declare @index int set @someStr = '0

Find already paired bluetooth devices automatically, when they are in range

Find already paired bluetooth devices automatically, when they are in range

I am no Bluetooth specialist and wondering what possibilities are available to find already paired Bluetooth devices automatically when they are range of each other. Background:In our case an Android application needs to connect to a dedica

Does adding a method to a WCF ServiceContract break existing clients?

Does adding a method to a WCF ServiceContract break existing clients?

We have an existing ServiceContract[ServiceContract(Namespace = "http://somesite.com/ConversationService")]public interface IConversationService{ [OperationContract(IsOneWay = true)] void ProcessMessage(Message message);

django-mptt get_descendants for a list of nodes

django-mptt get_descendants for a list of nodes

I am trying to get all descendants(include_self=True) not for one Node, but for a list (a QuerySet) of Nodes. This should be one SQL query. Example (that actually is not working:) some_nodes = Node.objects.filter( ...some_condition... ) som

is an ID column really needed in SQL?

is an ID column really needed in SQL?

Traditionally I have always used an ID column in SQL (mostly mysql and postgresql).However I am wondering if it is really necessary if the rest of the columns in each row make in unique. In my latest project I have the "ID" column set as my

Compare Delphi Exception Handlers

Compare Delphi Exception Handlers

How would you compare MadExcept to EurekaLog as an Exception handler for your Delphi application?Why would you pick one over the other?Are there any other exception handlers for Delphi that should be considered in addition to these two?Well

PHP Call to undefined function

PHP Call to undefined function

I am trying to call a function from another function. I get an error:Fatal error: Call to undefined function getInitialInformation() in controller.php on line 24controller.php file:require_once("model/model.php"); function intake() { $in

PHP PDOStatement: Fetch A Row, as the First Column as the Key of an Array

PHP PDOStatement: Fetch A Row, as the First Column as the Key of an Array

I am using PDOStatement to query the database. Whenever I get a returned row, I want it to be fetched into an array, with the $row[0] as the key, and the subsequent elements in the row as the values.I can, of course, write a combination of

Find process id by window's handle

Find process id by window's handle

i have a problem with getting a specific PID of a process, the problem with this process is that it's a hidden process, it's not showing on task manager / powershell, completely hidden.what i have do far is the main window handle of this pr