Find out how to get started coding apps for the new Windows Phone 7. Plus learn how you can sell and update your apps through the Windows Phone 7 Marketplace. Get code samples illustrating how to change the keyboard layout, include location data, and support multi-touch. Click now!
Over at the Google Code Blog, there's a pretty significant announcement, about the release of APIs for Latitude . the idea, as you might expect, is that the...
Resilient T-SQL code is code that is designed to last, and to be safely reused by others. The goal of defensive database programming, the goal of this book, is to help you to produce resilient T-SQL code that robustly and gracefully handles cases of unintended use, and is resilient to common changes to the database environment.
…
my node number is 1.2.3.4
$node= 1.2.3.4
when i run mycode as shown below, it print error message
but when i try assign $node = abc_def it execute the function codemy question is can php read 1.2.3.4?
if(!get_node_id($node) === false){
//function code
..................................
…
Original Question
What I'd like is not a standard C pre-processor, but a variation on it which would accept from somewhere - probably the command line via -DNAME1 and -UNAME2 options - a specification of which macros are defined, and would then eliminate dead code.
It may be easier to understand what I'm after with some…
For various reasons, we are writing a new business objects/data storage library. One of the requirements of this layer is to separate the logic of the business rules, and the actual data storage layer.
It is possible to have multiple data storage layers that implement access to the same object - for example, a main…
I'm teaching myself javascript by creating a script for displaying an external rss feed on a webpage.
The code I patched together works great locally. This is a screen grab of the code producing exactly the desired behavior. The code is populating all the information inside the section "Blog: Shades of Gray",…
Hi All,
If some one can point me in the right direction for this code for my assigment I would really appreciate it.
I have pasted the whole code that I need to complete but I need help with the following method public void changeColour(Circle aCircle) which is meant to allow to change the colour of the…
I'm trying to develop a simple kernel using TASM, using this code:
; beroset.asm
;
; This is a primitive operating system.
;
;**********************************************************************
code segment para public use16 '_CODE'
.386
assume cs:code, ds:code, es:code, ss:code
…
I have the following directory structure in the CMS application we have written:
/application
/modules
/cms
/filemanager
/block
/pages
/sitemap
/youtube
/rss
/skin
/backend
/default
/css
/js
/images
/frontend
/default
…
I have an app that scales it's UI and I want to scale the ToolTips with it.
I have tried doing this:
<Style TargetType="{x:Type ToolTip}">
<Setter Property="LayoutTransform" Value="{DynamicResource scaleTransf}"/>
...
</Style>
...where scaleTransf is a resource that I change…
I have the following code that I need to migrate from VS 2003 (.Net 1.1) to VS 2008 (.Net 2+)
but I get compilation error -
System.Xml.Xsl.XslTransform' is obsolete: This class has been deprecated.
I probably need to use System.Xml.Xsl.XslCompiledTransform instead.
but I do not find the matching…
What is the best tool for generating Entity Class and/or hbm files and/or sql script for NHibernate.
This list below is from http://www.hibernate.org/365.html, which is the best any why?
Moregen Free, Open Source (GPL) O/R Generator that can merge into existing Visual Studio Projects. Also…
Hi,
In my iPhone app I'm using Core Data and I've made changes to my data model that cannot be automatically migrated over (i.e. added new relationships). I added the data model version (Design - Data Model - Add Model Version) and applied my new data model changes to the new version 2. I…
Look at the code below. I want to alert the value of i at the moment that specific listener was added. Is other words, clicking each marker should alert a different value.
Where can I store the value of i in a way that it won't change and be accessible inside the scope of that function?…
What is the most important thing you weren't taught in school?
What topics are missing from the CS/IS education?
Posted so far
How to sell an idea
Principles:
Often, good enough is better than perfect.
Making mistakes is actually a Good
Thing™ -- as long as they're new…
Running XNA app, using Reach profile, in VMWare Fusion host OS Mac OSX, VM is Windows XP SP 3 (my dual-boot OS). Running on MacBook Pro w/NVidia 320M graphics card
When I am booted in to XP natively, mycode works. The code is drawing cubes that are set up using vertex buffers…
The following code:
import numpy as p
myarr=[[0,1],[0,6],[0,1],[0,6],[0,1],[0,6],[0,1],[0,6],[0,1],[0,6],[0,1],[0,6],[0,1],[0,6],[0,1],[0,6],[0,1],[0,6]]
copy=p.array(myarr)
p.mean(copy)[:,1]
Is generating the following error message:
Traceback (most recent call last):
File…
I'm trying to build a simple Android app that increments a number displayed every time a button is pressed, but I can't work out how to fix the "illegal start of expression" error I keep getting.
My code:
package com.clicker;
import android.app.Activity;
import…
I want to parse the html file, pdf file, csv file and text file.
Now parsing for which type of file (specified above) is easiest and efficient ?
Like parsing for html file is easiest and efficient OR
parsing for pdf file is easiest and efficient OR
parsing…
I work on a software project and would like to estimate the percentage out of the total contribution that I have put in the development of the software. Is there some tool doing this? Such a tool can be useful for appraisals or negotiations, for example. After…
One long term project I have is working through all the exercises of SICP. I noticed something a bit odd with the most recent exercise. I am testing a Huffman encoding tree. When I execute the following code in DrScheme I get the expected result:
(a d a b b c…
I try to install new magento version 1.4.xx . But after the config menu I meet after I copy and change local.example.xml to local.xml .
Error in file:…