|
So you want the DISTINCT[^] keyword. You'd better replace the asterisk by the actual list of fields you want returned then, and specify which of those MUST be distinct.
|
|
|
|
|
Hello,
Thank you so much this is really the answer I was looking for
Thanks also the link it was super helpfull.Now I can finish the System I am doing,
I am stuck in that part due to filtering my listview.
Thank so much,
Dan
|
|
|
|
|
You're welcome.
|
|
|
|
|
So, my neighbor, who I didn't realize knew I was a 'computer person' came around last night and asked if I would be able to take a look at a friends USB drive to see if I could get anything off it. Wanting to make friends with my neighbors I said I could take a look. So, if the USB drive isn't being recognized (what I would think most users would term "not working"), then unless her USB controller fried, I'm going to have a hard time investigating something I can't communicate with.
That aside, it got me onto the thought of file recovery. So, I have a few questions;
Is .NET able to communicate with hardware at a low enough level that I could query the contents of a piece of hardware? (I know about the IO namespace and the ability to enumerate drives etc.). If not, am I picking back up C++?
How do I go about finding resources on teaching me how to investigate, verify and re-assemble(if necessary) files. I went 4-5 pages into google searches and was just seeing data-recovery software/companies.
|
|
|
|
|
hammerstein05 wrote: Is .NET able to communicate with hardware at a low enough level that I could query the contents of a piece of hardware?
If there's an API for it, you can p/invoke it. Bear in mind that C++ will use the API then .NET should be able to - I'm not saying that it's the right tool for the job, but you can do it.
|
|
|
|
|
|
You might want to post this against the OP so that they receive the email. They won't be notified of your reply to my answer.
|
|
|
|
|
D'oh!! Good point
edit : had to remove previous message - seems I can't post the same message twice.
Days spent at sea are not deducted from one's alloted span - Phoenician proverb
modified on Wednesday, September 22, 2010 10:44 AM
|
|
|
|
|
Although you could roll your own, you might be quicker to use one of the off-the-shelf recovery programmes - I think writing something like this would be a pretty major undertaking.
Here are a couple of pretty good packages which might get your neighbour's data back fairly quickly :-
PhotoRec[^] comes highly recommended, and should deal with most types of media, and most types of file.
Foremost[^] is also worth a look...
Days spent at sea are not deducted from one's alloted span - Phoenician proverb
|
|
|
|
|
Oh, If the drive is that bad I will be suggesting a third party tool.
My questions were mainly based around making this a research project for myself, no timescales. I'm interested in understanding. Whenever I see pieces of software where people charge such a varying amount for, I'm always curious as to the true effort involved. I don't expect this to be a 3 hour coding project, but I would like to find more reading material on it
|
|
|
|
|
Hi,
does anyone know a free .NET crypter/protector? My problem is, that there are many free obfuscators I could use, but with obfuscation all the code (also in Log and Tracefiles) is blurred and our developement team is no longer able to assigne the error codes to a function.
So, does anyone know of a possibility to obfuscate code without blurring special function names? A tool, which just obfuscates the "in-function" code like algorithms?
Or is there maybe a completely different solution for my problem?
Thanks for any advice!
Cheers, cheery
|
|
|
|
|
What you want is near to impossible, or at least very difficult. I believe professional obfuscation tools might be able to do what you need, at least partially, but you can't get those for free.
Anyway, no obfuscation algorithm can protect your code. If you keep your method names unchanged - probably because you need descriptive names - then your code cannot really be obfuscated. A good descriptive method name pretty much says what the method does (that's its purpose, in the end), which helps a lot to any potential reverse-engineer.
As for the method body, automatic obfuscation usually only consists of renaming all identifiers and a few more well-defined steps. The algorithm has no knowledge of your code and it can only do very little because it must not break your code.
|
|
|
|
|
There is control-flow obfuscation though
|
|
|
|
|
spaghettization?
|
|
|
|
|
cherrymotion wrote: all the code (also in Log and Tracefiles) is blurred and our developement team is no longer able to assigne the error codes to a function.
They're using reflection to determine the name of the current function? How about replacing those with encrypted constants? Should be easy to decrypt. Wouldn't recommend on doing that change manually though; best to create a small app that modifies the current source-files.
cherrymotion wrote: Or is there maybe a completely different solution for my problem?
There's no solution, merely patches.
I are Troll
|
|
|
|
|
Currently, my IT department has rolled out to my user community the following CasPol.exe setting:
"c:\Windows\Microsoft.NET\Framework\v1.1.4322\CasPol.exe" -m -ag All_Code -url http://ProdServer/App1/* FullTrust -n App1
The new version of the application says that the following CasPol.exe command needs to be executed because the application is now a .NET 2.0 application.
"c:\Windows\Microsoft.NET\Framework\v2.0.50727\CasPol.exe" -m -ag All_Code -url http://ProdServer/App1/* FullTrust -n App1
Is this really necessary ?
I have to roll out the new version of the application to 70 desktops and this would require that the CasPol.exe command be issued to all of those users. (The users are not local Admins, so it may be a bit tricky to run in a logon script.) Right ?
Cheers.
David
|
|
|
|
|
Well, I finaaly had to upgrade the system and YES, I did have to go to each desktop and run the CasPol.exe command under .NET 2.0 in order for it to work.
Just wanted to let everyone know what the answer was.
|
|
|
|
|
Hi All,
I have Typed Datasets, I am creating Table Adapters for them. What I want is, I want to create the table adapters with parameters. Is there any way to create table adapters
with parameters and with relations. So that, if we select a specific department in "dept" table then the Employee table adapter also picks only those employees from "Employee"
table who belongs to that particular dept.
Is there any way please help me in this regards, I am new to Typed Datasets. Any links or suggestions will be of great help.
Thanks & Regards,
Md. Abdul Aleem
NIIT technologies
|
|
|
|
|
indian143 wrote: Any links
There's a Howto[^] article and the general overview[^] on MSDN that might be helpfull. You can change the version of the targeted framework with the link on top of the page.
I are Troll
|
|
|
|
|
Bit of a strange one here guys (And if anyone can suggest a more appropriate forum, please do!).
We have a fairly complex (111 projects spread across asp.net, silverlight, WFC, Ria Services etc) solution, which builds correctly on my dev box (2010). If I fire up VS on our build machine, I can also build the solution correctly. However, when I queue a build, it almost makes it through, until it attempts to run SGen - at which point I get the old "Mixed mode assembly is built against version 'v2.0.50727' of the runtime and cannot be loaded in the 4.0 runtime without additional configuration information." chestnut.
I've googled to try to find a solution, but nothing appears to do the job - the error is occurring at complile time rather than runtime, and I've added the v2 activation key to Team build host's config file to no effect. There are no tests in the solution which might cause things to be loaded.
Any ideas? Anyone? Particularly confused that VS can build ok on the server, but team build fails.
C# has already designed away most of the tedium of C++.
|
|
|
|
|
Hi
I'm working on a Spectrum analyzer application and need some help to get the graphics updated in an optimal manner.
Whenever my program receives a new block of audio data I do an FFT and I then update the oldest FFT data (a column) in my 2D-matrix which is then copied to a bitmap for display. So this spectrogram is shifted horizontally as data arrives in blocks. I see two options for achieving the shifting of the NxM bitmap whenever a new FFT output block arrives:
1. Copy columns [0:M-2] to [1:M-1] and then copy in the new FFT data...hope the notation makes sense. This requires a lot of memory copying and I hope to avoid that using GDI.
2. Replace the "oldest" column (the matrix works as a circular buffer in the time-direction) and let GDI ensure that when wrap-around happens GDI the remaining columns (the columns up to the column where the new FFT data resides) are copied to the bitmap. I once did a spectrum Analyzer in C++ project using OpenGL that supports this functionality. Can find the project anymore..I tried to look for it to find the name of the instruction used. Does GDI/GDI+ support this?
Do any of you guys know how I get to do this efficiently?
Thx
Tom
modified on Sunday, September 19, 2010 8:00 PM
|
|
|
|
|
Hi,
when you use a circular buffer (holding all N columns of your graph) as you indicated, then you can always paint them in two parts, as the first physical columns [0,P-1] will map onto logical columns [N-P, N-1]; whereas the remaining physical columns [P, N-1] will map onto the logical columns [0, N-P-1] for some value of P. Therefore the logic you have to paint should be applied twice, once to each said part.
FWIW: you could keep using a single full-size Bitmap to convert your matrix into a draawing, there is no need to allocate one or two new bitmaps all the time.
|
|
|
|
|
Hi
Thanks for your support!
OK I understand your way of doing circular buffering. Do you know which copying method is fastest? I've been searching for options and "bitblt" seems the fastest method - are you familiar with it and is it recommendable?
Also, as you might have guessed I'm a newbie with C# (actually I'm only good at Matlab) and I'm trying to understand GDI better ...but it's challenging. Can I do the spectrogram using the bitmap itself and manipulate data in it for every update - I gues I can but is it efficient MIPS wise?
Can you please provide me a few keywords on how you would go about this? From the examples I've found searching googling bitmapdata seems a component I might have to use but I can't understand for what reason. MSDN doc seems sparse
http://msdn.microsoft.com/en-us/library/system.drawing.imaging.bitmapdata.aspx
Sorry for all the questioning
Thx
Tom
|
|
|
|
|
Hi Tom,
1.
bimbambumbum wrote: Do you know which copying method is fastest?
It depends. What type are your matrix elements? how are they calculated/obtained? can you choose their type, format, and storage characteristics at the producer (without adding a significant number of cycles)? Is there only one trace in the image? Is it black/white, grayscale, colored?
2.
bimbambumbum wrote: MSDN doc seems sparse
It may be obscure, hard to understand, lacking examples, but scarce it is not.
AFAIK GDI/GDI+ only paint images represented by the Image/Bitmap classes in .NET; so yes BitmapData is relevant. They do support all kinds of PixelFormats though.
3.
I would avoid having a matrix and a bitmap, requiring converting one in the other. I'd rather have the producer manipulate the bitmap, i.e. move existing data (or not) and stuff new data. It may take "unsafe code", "pointers", and maybe native code and "P/Invoke" for max performance.
4.
if you already have something up and running (slowly), I'd be interested in image size, column update frequency required, and current performance (with summary hardware description). And maybe relevant code.
5.
I might consider writing an article, as it seems like an interesting topic for one.
|
|
|
|
|
Hi Luc
Thanks for your reply - once more....you are a fast responder
1. My matrix is not really a matrix but just an array of bytes of size [3*bitmap.height*bitmap.width] so by the 3 term this should correspond to 24bit but less resolution will be ok for the final application. I want to insert the 20*log10(abs(FFT-bins/2) into each column of the bitmap (FFT-bins/2 could be 256, 512 or 1024). Yes I can define the producer type/format myself. Grayscale is probably fine. "..Trace in the image" - can you elaborate?
2. OK, I'm starting to understand now.
3. Yes I get the point. I just read that scrollWindow might be what I'm looking as it offers horizontal shifting by a pixel which is basically what I'm looking for. You know of this method?
4. Image size could be up to 1024x1024. Update frequency is likely to be around 25Hz. I can share the code if you are interested but I'm thinking you can do a much better job than me.
5. There is another spectrum analyzis tool I'm thinking of adding to my application. Maybe that can beef up your article if you are interested.
Thx
Tom
|
|
|
|
|