I've written an xml parser, and I've written a unit test to go with it.
Where should I store the actual xml file to be used by the test?
Should I just store it under test/unit/whatever package the test is in?
I'm using generics rather long time but I've never used construction like List<? super T>.
What does it mean? How to use it? How does it look after erasure?
I also wonder: is it something standard in generic programming (template programming?) or it's just a java 'invention'? Does c#, for example, allow similar constructions?
I am contributing code to an open source project which requires that no tabs exist in source code(only spaces). I am sure I have used tabs accidentally in some places, and want to clean up my code before I submit a patch. How can I find uses of tabs in a commit range?
Hello eveyone
One of my app was rejected due to using private API.
But Apple did not give me more details.
Is there any tool to detetect and locate the codes where I used private API?
Thanks
interdev
Note I am not asking for which is the "best" IDE for PHP or anything subjective like that. I want to know which is the most widely used backed by some sort of statistic (something like the W3's stats for browser usage) but for IDE usage amongst PHP developers.
Hi,
I've been using api level 4, and am moving to 5. I had a tab widget in my activity. The tabs used to b pretty light greys, after moving to api level 5, they are quite dark. The unselected tabs are almost black! I've tried setting the theme to light, but the colors remain very dark. Anyone else seeing this?
Thanks
Hi Guys
I'm trying to gain deeper understanding of the way CLR works and can't find a good determination of "SyncBlockIndex". I've found out that each managed object has it, but what is it? What is it used for?
Please kindly advise on benchmarks used to test a C and C++ allocator? Benchmarks satisfying any of the following aspects are considered:
Speed
Fragmentation
Concurrency
Thanks!
I have a C# program that works correctly on xp and vista but it needs to be used on windows 7, I have not been able to come up with a solution, it appears that getpixels just doesn't work right on windows 7, thanks.
What tool (or product) is used for this Q & A site? I came across this tool on other sites and kind of like it. I am looking for a tool similar to this to implement for my website. Will appreciate useful answers. Thanks
When I talk about exceptions in my product team I often talk about two kind of exceptions, business and critical exceptions. Business exceptions are exceptions thrown based on “business rules”, for example if you aren’t allowed to do a purchase. Business exceptions in most case aren’t important to log into a log file, they can directly be shown to…
I'm hoping someone can explain this to me like I'm 5, because I've been struggling with this for hours and simply cannot understand what I'm doing wrong.
I've written a Camera class for my 2.5D game. The intention is to support world and screen spaces like this:
The camera is the black thing on the right. The +Z axis is upwards in that image,…
This blog post will show you step by step to refactoring some code to be more readable (at least what I think). Patrik Löwnedahl gave me some of the ideas when we where talking about making code much cleaner. The following is an simple application that will have a list of movies (Normal and Transfer). The task of the application is to calculate…
Whenever we format a disk volume, it is a good idea to name the label so it will be easier to categorize. To label a volume, we can use LABEL command or UI depends on your preference. Windows CE does provide FAT driver and support various format (FAT12, FAT16,FAT32, ExFAT and TFAT - transaction-safe FAT) and many feature to let you…
As you know, we can use MAKEIMG.EXE tool to create OS Image file, NK.BIN, or ROMIMAGE.EXE with a BIB for more accurate. But what if the image file is already created but need to be patched or you want to extract a file from NK.BIN?
The Platform Builder provide many useful command line utilities, and today I am going to introduce one,…
The CE 7 (aka. Windows Embedded Compact) provides many new features, a new VirtualPC is one of them and as a replacement of Device Emulator in CE 6.
The bootloader of VPC BSP utilize a new introduced framework in CE7, the BLDR (not the BIOSLOADER!)
It provides many rich and advanced feature, I will introduce more detail…
Windows CE is a 32 bits OS since day one, so it makes sense tools shipped with PB, compiler, linker, assembler and etc, are for targeting to 32 bits system.
But occasionally, if you are developing x86 based system and especially working on some boot code, such as boot sector of BIOSLOADER, that…
Just a side note for people who may be interested in creating high performance code to take advantage on NEON instruction set but wish to use NEON intrinsic instaed of coding assembly.
Compiler won't generate NEON opcode unless application use the NEON intrinsic explicitly.
Basically, you need ARMv7 build enviroment,…
CE 7 introduces a new boot loader framework, BLDR (platform\common\src\common\bldr\). Some people like its powerful and flexbility, others may feel its too complicate as a boot loader framework.
Despite to the favor, it is already there; so let's take a look at its features.
Unlike the previous BL framwork (CE7 still…
The default root bus driver, BusEnum, enumerate and active drivers one by one in synchronized manner. It is not only slowing the boot time but in the even if any of driver's init function (XXX_init) get hanged, the whole system won't boot at all.
There is a sample of enhanced root bus driver, BusEnum2, on the…
When an USB Disk plugs into CE/Mobile based device, how do you know the folder name of the mounting point? Usually, it should be "USB Disk" but it is really depends on how OS image builder; they may change the folder name for whatever reason.
FindFirstFlashCard looks simple and promising, the drawback…
This question already has an answer here:
How do I handle having to many links on a webpage because of my menu
4 answers
I'm using the term "Mega Menus" loosely here.
I'm redesigning my WordPress…
Usually when setting up OpenGL contexts, I've simply filled out a PIXELFORMATDESCRIPTOR structure with the necessary information and called ChoosePixelFormat(), followed by a call to SetPixelFormat() with the returned matching pixelformat from ChoosePixelFormat(). Then I've simply passed the initial…
Please clarify for me, how does UTF16 work?
I am a little confused, considering these points:
There is a static type in C++, WCHAR, which is 2 bytes long. (always 2 bytes long obvisouly)
Most of msdn and some other documentation seem to have the assumptions that the characters are always 2 bytes…