I'm using TortoiseSVN and Visual Studio 2008.
Is there any way to update my project's subversion with svn's version in every build?
For example, 1.0.0.[svn's version] - 1.0.0.12
I am trying to write our own RIA services provider to expose data from a server that I access via ODBC. I follow th eguidelines set out at http://blogs.msdn.com/alexj/archive/2010/03/02/creating-a-data-service-provider-part-9-un-typed.aspx
I have written our own IDataServiceMetadataProvider / IDataServiceQueryProvider pair and get no errors on what i do.
I am putting in a resource set like this:
ResourceType tableType = new ResourceType(
typeof(Dictionary<string, object>),
ResourceTypeKind.EntityType,
null,
"Martini",
table_name,
false
);
tableType.CanReflectOnInstanceType = false;
var prodKey = new ResourceProperty(
"Key",
ResourcePropertyKind.Key |
ResourcePropertyKind.Primitive,
ResourceType.GetPrimitiveResourceType(typeof(int))
);
prodKey.CanReflectOnInstanceTypeProperty = false;
tableType.AddProperty(prodKey);
var prodName = new ResourceProperty(
"Name",
ResourcePropertyKind.Primitive,
ResourceType.GetPrimitiveResourceType(typeof(string))
);
prodName.CanReflectOnInstanceTypeProperty = false;
tableType.AddProperty(prodName);
_MetaDataProvider.AddResourceType(tableType);
_MetaDataProvider.AddResourceSet(new ResourceSet(table_name, tableType));
I see the requests coming in for enumerating the resource sets. I check them there in a breakpoint, and the resource set and the type is there, with all properties.
Still, the output I get is:
<?xml version="1.0" encoding="utf-8" standalone="yes" ?>
- <service xml:base="http://localhost:2377/MartiniData.svc/" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:app="http://www.w3.org/2007/app" xmlns="http://www.w3.org/2007/app">
- <workspace>
<atom:title>Default</atom:title>
</workspace>
</service>
And for the $metadata version:
<?xml version="1.0" encoding="utf-8" standalone="yes" ?>
- <edmx:Edmx Version="1.0" xmlns:edmx="http://schemas.microsoft.com/ado/2007/06/edmx">
- <edmx:DataServices xmlns:m="http://schemas.microsoft.com/ado/2007/08/dataservices/metadata" m:DataServiceVersion="1.0">
- <Schema Namespace="Martini" xmlns:d="http://schemas.microsoft.com/ado/2007/08/dataservices" xmlns:m="http://schemas.microsoft.com/ado/2007/08/dataservices/metadata" xmlns="http://schemas.microsoft.com/ado/2007/05/edm">
<EntityContainer Name="Martini" m:IsDefaultEntityContainer="true" />
</Schema>
</edmx:DataServices>
</edmx:Edmx>
The actual metadata for the types never shows up, no error is shown. pretty frustrating. Anyone any idea?
Since the latest version of NSS does not provide the SSLSample program, I copied the folder SSLSample from the older version of NSS (3.9, 3.12) to the /security/nss/cmd folder inside nss-3.12.4 .
When I run make nss_build_all in my 3.12.4, the other programs generated its own binary but not my SSLSample folder.
I would like to know why?
I have installed Visual Studio 2010 Professional (final version), with some components, plug-ins and templates I use a lot. Recently, I been checking all the things that the Ultimate version has, and I've been wondering,
Can I just run the VS2010 ultimate installer and it upgrade the Sku, letting me use all of its features along with the previous plug-ins (like telerik rad controls, Deklarit for VS2010, and VS.php)??
Thanks in advance
I have a branch checked out in Tortoise 1.4.2, edited it in 1.6.2 and now can't modify it on my old machine running 1.4.2. The latest version on the Tortoise website is 1.6.7. Are versions 1.6.x interoperable? I'm stuck with version 1.6.2 on my new machine.
Hello,
I am trying to generate C# code from an XML schema with xsd.exe with Visual Studio RC1 (version 10.0.30128.1) but get the follwoing error:
C:\Developmentxsd CR2008Schema.xsd /classes
Microsoft (R) Xml Schemas/DataTypes support utility
[Microsoft (R) .NET Framework, Version 4.0.30128.1]
Copyright (C) Microsoft Corporation. All rights reser
Process is terminated due to StackOverflowException.
The xsd is http://www.businessobjects.com/products/xml/CR2008Schema.xsd
Any help appreciated.
Thanks,
Staffan
Hi,
I'm trying to generate XML like this:
<?xml version="1.0"?>
<!DOCTYPE APIRequest SYSTEM
"https://url">
<APIRequest>
<Head>
<Key>123</Key>
</Head>
<ObjectClass>
<Field>Value</Field
</ObjectClass>
</APIRequest>
I have a class (ObjectClass) decorated with XMLSerialization attributes like this:
[XmlRoot("ObjectClass")]
public class ObjectClass
{
[XmlElement("Field")]
public string Field { get; set; }
}
And my really hacky intuitive thought to just get this working is to do this when I serialize:
ObjectClass inst = new ObjectClass();
XmlSerializer serializer = new XmlSerializer(inst.GetType(), "");
StringWriter w = new StringWriter();
w.WriteLine(@"<?xml version=""1.0""?>");
w.WriteLine("<!DOCTYPE APIRequest SYSTEM");
w.WriteLine(@"""https://url"">");
w.WriteLine("<APIRequest>");
w.WriteLine("<Head>");
w.WriteLine(@"<Field>Value</Field>");
w.WriteLine(@"</Head>");
XmlSerializerNamespaces ns = new XmlSerializerNamespaces();
ns.Add("", "");
serializer.Serialize(w, inst, ns);
w.WriteLine("</APIRequest>");
However, this generates XML like this:
<?xml version="1.0"?>
<!DOCTYPE APIRequest SYSTEM
"https://url">
<APIRequest>
<Head>
<Key>123</Key>
</Head>
<?xml version="1.0" encoding="utf-16"?>
<ObjectClass>
<Field>Value</Field>
</ObjectClass>
</APIRequest>
i.e. the serialize statement is automatically adding a <?xml root element.
I know I'm attacking this wrong so can someone point me in the right direction?
As a note, I don't think it will make practical sense to just make an APIRequest class with an ObjectClass in it (because there are say 20 different types of ObjectClass that each needs this boilerplate around them) but correct me if I'm wrong.
IAR C/C++ Compiler for MSP430
5.10.1 [Evaluation] (5.10.1.20144)
I get an illegal state internal error when attempting to compile the FreeRTOS 5.4 Task.c file (everything else compiles fine)
Internal Error: [CoreUtil/General]: Illegal state
The kick start version of IAR (MSP430 version) works fine.
Any thoughts?
I tried to uncompressed a "*.xz" file with both 7z and lzma.
But they gave me such message:
$ 7z x J_12.fq.xz
7-Zip 4.57 Copyright (c) 1999-2007 Igor Pavlov 2007-12-06
p7zip Version 4.57 (locale=C,Utf16=off,HugeFiles=on,4 CPUs)
Processing archive: J_12.fq.xz
Error: Can not open file as archive
$ 7z x J_12.fq.xz
7-Zip 4.57 Copyright (c) 1999-2007 Igor Pavlov 2007-12-06
p7zip Version 4.57 (locale=C,Utf16=off,HugeFiles=on,4 CPUs)
Processing archive: J_12.fq.xz
Error: Can not open file as archive
and with lzma
$ lzma -d J_12.fq.xz
J_12.fq.xz: unknown suffix -- unchanged
A buddy sent me a later version of a .apk file. I already had the earlier version on my device.
When I tried to adb install the file, I got this:
$ adb install ../FlashLite.apk
320 KB/s (18311 bytes in 0.055s)
pkg: /data/local/tmp/FlashLite.apk
Failure [INSTALL_FAILED_ALREADY_EXISTS]
$ adb uninstall FlashLite.apk
Failure
$ adb uninstall /data/local/tmp/FlashLite.apk
Failure
How do you install/replace from the cmd line? I don't have the source, so I cannot do it from Eclipse.
Thanks,
Peter
From Visual Studio 2008 Command Prompt I run this command to generate .vcproj file:
>qmake -spec win32-msvc2008
And get a warning message:
WARNING: Generator: MSVC.NET: Found more than one version of Visual Studio
in your path! Fallback to lowest version (MSVC.NET 2008 (9.0),
MSVC.NET 2008 Express Edition (9.0), MSVC.NET 2005 (8.0),
MSVC.NET 2008 (9.0) in path, MSVC.NET 2008 Express Edition (9.0) in path)
For this project I use MSVS 2008 Professional. Actually the generated .vcproj file works well, but what is the warning message about?
I am looking for suggestion in putting image file maven web project. One of classes under src/main/java need to use an image file. My problem is, if i put image file under src/main/webapp/images then application server cannot find that path on runtime(where myeclipse can ) because war archive do not have specified path "src/main/webapp/images".
My question is where should i put the image file that my project can find it without prompting any error or exception.
I am using
Java Web Application with Mavenized falvour
MyEclipse 10
Application Server: JBoss 6
Currently i do have following dir structure
Project Directory Structure
-src/main/java
-- classes
-src/main/resources
-- applicationContext.xml
-src/test/java
-- test classes
-src/test/resources
(nothing)
-src
-- main
--- webapp
--WEB-INF
--Images
--Css
--Meta-INF
-target
-pom.xml
And pom.xml's build snippet is as follows
<build>
<sourceDirectory>${basedir}/src/main/java</sourceDirectory>
<outputDirectory>${basedir}/target/${project.artifactId}/classes</outputDirectory>
<resources>
<resource>
<directory>${basedir}/src/main/resources</directory>
<excludes>
<exclude>**/*.java</exclude>
</excludes>
</resource>
</resources>
<testResources>
<testResource>
<directory>${basedir}/src/test/resources</directory>
</testResource>
</testResources>
<finalName>${project.artifactId}</finalName>
<plugins>
<plugin>
<artifactId>maven-compiler-plugin</artifactId>
<configuration>
<source>${jdk.version}</source>
<target>${jdk.version}</target>
<optimize>true</optimize>
<useProjectReferences>true</useProjectReferences>
</configuration>
</plugin>
<plugin>
<artifactId>maven-war-plugin</artifactId>
<version>2.1.1</version>
<configuration>
<warSourceDirectory>${basedir}/src/main/webapp</warSourceDirectory>
<webResources>
<resource>
<directory>${basedir}/src/main/resources</directory>
</resource>
</webResources>
</configuration>
</plugin>
</plugins>
</build>
Thanks in advance
Hi!
How to find items in Outlook inbox by from email?
This version works and finds email:
String sCriteria = "[From] = 'Sebastian Nowak'";
Outlook.Items filteredItems = inbox.Items.Restrict(sCriteria);
This version doesn't work, doesn't find any mail:
String sCriteria = "[From] = '[email protected]'";
Outlook.Items filteredItems = inbox.Items.Restrict(sCriteria);
How do I should search by email from wich mail was sent.
I've put some text inside a rectangle using inkscape so the tree is like
<svg:rect><svg:text><svg:tspan>text....
The problem is, I can't see the text. I've tried fiddling with the opacity of the rect to no avail. There should be a way of doing this from the UI?
Edit
example as requested
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<!-- Created with Inkscape (http://www.inkscape.org/) -->
<svg
xmlns:dc="http://purl.org/dc/elements/1.1/"
xmlns:cc="http://creativecommons.org/ns#"
xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
xmlns:svg="http://www.w3.org/2000/svg"
xmlns="http://www.w3.org/2000/svg"
xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd"
xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape"
width="184.25197"
height="262.20471"
id="svg2"
sodipodi:version="0.32"
inkscape:version="0.46"
version="1.0"
sodipodi:docname="ex1.svg"
inkscape:output_extension="org.inkscape.output.svg.inkscape">
<defs
id="defs4">
<inkscape:perspective
sodipodi:type="inkscape:persp3d"
inkscape:vp_x="0 : 526.18109 : 1"
inkscape:vp_y="0 : 1000 : 0"
inkscape:vp_z="744.09448 : 526.18109 : 1"
inkscape:persp3d-origin="372.04724 : 350.78739 : 1"
id="perspective10" />
</defs>
<sodipodi:namedview
id="base"
pagecolor="#ffffff"
bordercolor="#666666"
borderopacity="1.0"
gridtolerance="10000"
guidetolerance="10"
objecttolerance="10"
inkscape:pageopacity="0.0"
inkscape:pageshadow="2"
inkscape:zoom="0.64"
inkscape:cx="195.9221"
inkscape:cy="335.3072"
inkscape:document-units="px"
inkscape:current-layer="layer1"
showgrid="false"
inkscape:window-width="640"
inkscape:window-height="675"
inkscape:window-x="44"
inkscape:window-y="44" />
<metadata
id="metadata7">
<rdf:RDF>
<cc:Work
rdf:about="">
<dc:format>image/svg+xml</dc:format>
<dc:type
rdf:resource="http://purl.org/dc/dcmitype/StillImage" />
</cc:Work>
</rdf:RDF>
</metadata>
<g
inkscape:label="Layer 1"
inkscape:groupmode="layer"
id="layer1">
<rect
style="opacity:0.25480766;fill:#ff0000;fill-opacity:1;stroke:#000000;stroke-width:12.94795799;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1"
id="rect2383"
width="150.87796"
height="84.226181"
x="18.221733"
y="39.557121">
<text
xml:space="preserve"
style="font-size:56.0331955px;font-style:normal;font-weight:normal;fill:#000000;fill-opacity:1;stroke:none;stroke-width:1px;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1;font-family:Bitstream Vera Sans"
x="44.815186"
y="114.0088"
id="text2385"
transform="scale(1.0054479,0.9945816)"><tspan
sodipodi:role="line"
id="tspan2387"
x="44.815186"
y="114.0088">text</tspan></text>
</rect>
</g>
</svg>
I'd expect to be able to see this in inkscape.
The workaround is to put text on a layer above the box (the intent is that the box obscures the layers below it) and not try and get clever with nested tags. Shame it doesn't work though.
Hi,
Can any one help me on software licence module.
We created a new application and want to release a demo version(30 days trial) of our tool later we need full version.
How can i generate license file or license code and how to limit 30 days evaluation.
Please give me some help on this.
Our application is developed on windows in QT
I added bash completion for Maven following the docs:
http://maven.apache.org/guides/mini/guide-bash-m2-completion.html
Everything works well except for goals that use a colon. For instance, instead of
mvn eclipse:eclipse
completion escapes the colon
mvn eclipse\:eclipse
Any suggestions how this can be fixed? I'm using Ubuntu 8.10 (2.6.27-17-generic) and
$ bash -version
GNU bash, version 3.2.39(1)-release (i486-pc-linux-gnu)
How do I determine the versions of jQuery that shipped with each version of WordPress since like version 2.7? Was there a log kept somewhere on this? Because as a plugin developer, I may need to rely on a function that might not work in older versions of WordPress.
Can Castle ActiveRecord do optimistic locking on properties? I found optimistic locking for the entire class, but not for an individual property. In my case, I need to make it so that adding/removing elements in a collection does not update the version number of the entity (so for example, adding a Product to a Store without changing any of Store's properties will not increment the version number).
Duplicate:
Protecting .NET Code from Reverse Engineering
We've recently released a small application and this weekend I found a cracked version of it on Piratebay that had the registration checking removed, so the app ran as if it was a registered version.
Apart from using a code obfuscation tool (which doesn't seem to be that hard to get around), are there any standard things we should be doing to make our .NET applications more difficult to crack?
I am looking for a .net library that can help me do one of the following:
1. Convert an MHT file to PDF
2. Convert between pdf versions
3. Change a pdf file encoding
4. Convert an MHT to an Excel file
5. Convert a MIME version of excel (an Excel file that is readable via notepad) to a binary Excel file
6. Convert between Excel version
Purchased a new computer, actually the parts to build one. Unsure what windows 7 to purchase. Need at least professional, seems to be around $200 upgrade to $300 full version.
If I put the old XP on my new machine, will i be bale to use the 64bit windows 7 Pro upgrade instead of having to buy the full version? Will it still do a clean install?
I am setting up an Android environment for the first time on Eclipse. I have many years of Eclipse experience, but new to Android. This is being done on an Apple Mac Mini, running MacOSX 10.6.3. I am using the latest Eclipse Classic, version 3.5.2. I am trying to get the tiny hello world program running.
When I run it, I get the following in the console window of Eclipse:
[2010-06-12 13:48:08 - HelloAndroid] Automatic Target Mode: launching new emulator with compatible AVD 'Android2.2AVD'
[2010-06-12 13:48:08 - HelloAndroid] Launching a new emulator with Virtual Device 'Android2.2AVD'
[2010-06-12 13:48:11 - HelloAndroid] New emulator found: emulator-5554
[2010-06-12 13:48:11 - HelloAndroid] Waiting for HOME ('android.process.acore') to be launched...
[2010-06-12 13:48:12 - Emulator] 2010-06-12 13:48:12.783 emulator[50495:903] Warning once: This application, or a library it uses, is using NSQuickDrawView, which has been deprecated. Apps should cease use of QuickDraw and move to Quartz.
[2010-06-12 13:48:19 - HelloAndroid] emulator-5554 disconnected! Cancelling 'com.example.helloandroid.HelloAndroid activity launch'!
The emulator crashes with the following info.
I have followed all the instructions for running the hello world sample.
Anyone have any ideas?
Process: emulator [50398]
Path: /Users/jeremy/android-sdk-mac_86/tools/emulator
Identifier: emulator
Version: ??? (???)
Code Type: X86 (Native)
Parent Process: eclipse [50388]
Date/Time: 2010-06-12 13:28:38.595 -0400
OS Version: Mac OS X 10.6.3 (10D573)
Report Version: 6
Interval Since Last Report: 363037 sec
Crashes Since Last Report: 9
Per-App Crashes Since Last Report: 7
Exception Type: EXC_BAD_ACCESS (SIGSEGV)
Exception Codes: KERN_INVALID_ADDRESS at 0x00000000007fd000
Crashed Thread: 4
Thread 0: Dispatch queue: com.apple.main-thread
0 emulator 0x000eed4e helper_set_cp15 + 30
Thread 1:
0 libSystem.B.dylib 0x9020bbd2 __workq_kernreturn + 10
1 libSystem.B.dylib 0x9020c168 _pthread_wqthread + 941
2 libSystem.B.dylib 0x9020bd86 start_wqthread + 30
Thread 2: Dispatch queue: com.apple.libdispatch-manager
0 libSystem.B.dylib 0x9020cb42 kevent + 10
1 libSystem.B.dylib 0x9020d25c _dispatch_mgr_invoke + 215
2 libSystem.B.dylib 0x9020c719 _dispatch_queue_invoke + 163
3 libSystem.B.dylib 0x9020c4be _dispatch_worker_thread2 + 240
4 libSystem.B.dylib 0x9020bf41 _pthread_wqthread + 390
5 libSystem.B.dylib 0x9020bd86 start_wqthread + 30
Thread 3:
0 libSystem.B.dylib 0x901e635a semaphore_timedwait_signal_trap + 10
1 libSystem.B.dylib 0x90213ea1 _pthread_cond_wait + 1066
2 libSystem.B.dylib 0x90242a28 pthread_cond_timedwait_relative_np + 47
3 com.apple.audio.CoreAudio 0x9056f965 CAGuard::WaitFor(unsigned long long) + 219
4 com.apple.audio.CoreAudio 0x90572997 CAGuard::WaitUntil(unsigned long long) + 289
5 com.apple.audio.CoreAudio 0x90570294 HP_IOThread::WorkLoop() + 1892
6 com.apple.audio.CoreAudio 0x9056fb2b HP_IOThread::ThreadEntry(HP_IOThread*) + 17
7 com.apple.audio.CoreAudio 0x9056fa42 CAPThread::Entry(CAPThread*) + 140
8 libSystem.B.dylib 0x90213a19 _pthread_start + 345
9 libSystem.B.dylib 0x9021389e thread_start + 34
Thread 4 Crashed:
0 emulator 0x00040380 audioInDeviceIOProc + 96
Thread 4 crashed with X86 Thread State (32-bit):
eax: 0x00000000 ebx: 0x007fd000 ecx: 0x000001fe edx: 0x0198f3f0
edi: 0x00000200 esi: 0x01119850 ebp: 0x01119800 esp: 0xb020fad0
ss: 0x0000001f efl: 0x00010212 eip: 0x00040380 cs: 0x00000017
ds: 0x0000001f es: 0x0000001f fs: 0x0000001f gs: 0x00000037
cr2: 0x007fd000
I am just wondering on what version of Visual Studio 2010 to install (Professional or Premium) If there are a few people in the team with a mix of VS2010 professional/premium, would opening solution/project files be an issue, ie incorrect version or prompts to upgrade prjects..
Projects include: asp.net mvc, database and silverlight.
I have 2 databases with a 2 tables with HierachyID fields.
For one database I can get a dal cs file, for the other database I cannot get a dal cs file ?
HBus is a database I can get the dal cs for, ...
SqlMetal /server:.\SQLSERVER2008 /database:HBus /code:HBusDC.cs /views /functions /sprocs /namespace:HBusDC /context:HBusDataContext
This kicks me out a file, ... which works, but excludes the HierarchyID field for the table and includes all other fields for that table. This is OK I do not mind.
The above cmd line kicks out an warning but still produces a file, like so
SqlMetal /server:.\SQLSERVER2008 /database:HBus /code:HBusDC.cs /views /functions /sprocs /namespace:HBusDC /context:HBusDataContext
Microsoft (R) Database Mapping Generator 2008 version 1.00.30729
for Microsoft (R) .NET Framework version 3.5
Copyright (C) Microsoft Corporation. All rights reserved.
Warning : SQM1021: Unable to extract column 'OrgNode' of Table 'dbo.HMsg' from SqlServer because the column's DbType is a user-defined type (UDT).
Warning : SQM1021: Unable to extract column 'OrgNode' of Table 'dbo.vwHMsg' from SqlServer because the column's DbType is a user-defined type (UDT).
HMsg is a table with a HierarchyID field.
I have another database, Elf, almost the same thing but I get a warning and an Error when using sql metal and I do not get a dal cs file ...
SqlMetal /server:.\SQLSERVER2008 /database:Elf /code:ElfDataContextDal.cs /views /functions /sprocs /namespace:HBusDC /context:HBusDataContext
An error as well as the warning and the cs file fails to appear on my disc, ... :-(
SqlMetal /server:.\SQLSERVER2008 /database:Elf /code:ElfDataContextDal.cs /views /functions /sprocs /namespace:HBusDC /context:HBusDataContext
Microsoft (R) Database Mapping Generator 2008 version 1.00.30729
for Microsoft (R) .NET Framework version 3.5
Copyright (C) Microsoft Corporation. All rights reserved.
Warning : SQM1021: Unable to extract column 'OrgNode' of Table 'dbo.EntityLink' from SqlServer because the column's DbType is a user-defined type (UDT).
Error : Requested value 'ELF.SYS.HIERARCHYID' was not found.
The fields are declared the same way
in Elf db
OrgNode [HierarchyID] null ,
in HBus db ...
OrgNode [HierarchyID] null ,
Both databases are in the same instance of sql server 2008, so the HierarchyID is an inbuilt type, neither db has HierarchyID udt ,...
cheers in advance for any replies ...