Click here to Skip to main content
15,894,646 members
Home / Discussions / C#
   

C#

 
QuestionType Isomorphisms: this is more an open theory question than a practical programming question Pin
Alaric_8-Dec-11 6:01
professionalAlaric_8-Dec-11 6:01 
AnswerRe: Type Isomorphisms: this is more an open theory question than a practical programming question Pin
Alaric_8-Dec-11 8:09
professionalAlaric_8-Dec-11 8:09 
QuestionCompress and decompress string between java and c# Pin
Hossein Khalaj8-Dec-11 6:00
Hossein Khalaj8-Dec-11 6:00 
AnswerRe: Compress and decompress string between java and c# Pin
Luc Pattyn8-Dec-11 7:25
sitebuilderLuc Pattyn8-Dec-11 7:25 
GeneralRe: Compress and decompress string between java and c# Pin
Hossein Khalaj8-Dec-11 7:40
Hossein Khalaj8-Dec-11 7:40 
AnswerRe: Compress and decompress string between java and c# Pin
Luc Pattyn8-Dec-11 8:39
sitebuilderLuc Pattyn8-Dec-11 8:39 
GeneralRe: Compress and decompress string between java and c# Pin
Hossein Khalaj8-Dec-11 8:48
Hossein Khalaj8-Dec-11 8:48 
AnswerRe: Compress and decompress string between java and c# Pin
Luc Pattyn8-Dec-11 9:06
sitebuilderLuc Pattyn8-Dec-11 9:06 
1. You have to work around the limitations of any particular language; e.g. if Java doesn't offer unsigned numbers, use signed ones and add some code to compensate.

2. I doubt very much a complex scheme such as Lempel-Ziv-Welch (used by ZIP) is suited for small amounts of text. IMO you have to roll your own anyway. If you can make reasonable assumptions on the input, compressing it by a factor of 2 should be quite easy. Maybe use ideas such as the ones base64 is based on.

3. Keep in mind no compression is absolute, whatever scheme (or set of schemes) you choose, there will always be inputs that don't get compressed (e.g. try putting a JPEG image in a ZIP file).
Luc Pattyn [My Articles] Nil Volentibus Arduum

GeneralRe: Compress and decompress string between java and c# Pin
Hossein Khalaj8-Dec-11 9:10
Hossein Khalaj8-Dec-11 9:10 
QuestionClass to toggle a bool when it goes out of scope Pin
__John_8-Dec-11 3:58
__John_8-Dec-11 3:58 
AnswerRe: Class to toggle a bool when it goes out of scope Pin
PIEBALDconsult8-Dec-11 4:12
mvePIEBALDconsult8-Dec-11 4:12 
AnswerRe: Class to toggle a bool when it goes out of scope Pin
__John_8-Dec-11 5:03
__John_8-Dec-11 5:03 
GeneralRe: Class to toggle a bool when it goes out of scope Pin
harold aptroot8-Dec-11 5:21
harold aptroot8-Dec-11 5:21 
GeneralRe: Class to toggle a bool when it goes out of scope Pin
__John_11-Dec-11 22:15
__John_11-Dec-11 22:15 
GeneralRe: Class to toggle a bool when it goes out of scope Pin
harold aptroot11-Dec-11 22:34
harold aptroot11-Dec-11 22:34 
GeneralRe: Class to toggle a bool when it goes out of scope Pin
__John_12-Dec-11 0:28
__John_12-Dec-11 0:28 
GeneralRe: Class to toggle a bool when it goes out of scope Pin
BobJanova8-Dec-11 5:45
BobJanova8-Dec-11 5:45 
QuestionDisplay HTML data as a webpage in C# control Pin
sarang_k8-Dec-11 1:48
sarang_k8-Dec-11 1:48 
AnswerRe: Display HTML data as a webpage in C# control Pin
Ravi Bhavnani8-Dec-11 2:07
professionalRavi Bhavnani8-Dec-11 2:07 
QuestionRe: Display HTML data as a webpage in C# control Pin
sarang_k11-Dec-11 19:16
sarang_k11-Dec-11 19:16 
QuestionWebBrowser : how to show popup window? Pin
Sunil P V8-Dec-11 0:49
Sunil P V8-Dec-11 0:49 
Questionconvert wsdl inline schema imports into xsd Pin
Agweet7-Dec-11 19:50
Agweet7-Dec-11 19:50 
QuestionAdd context menu in windows explorer in c# 2010 Pin
iamdking7-Dec-11 19:19
iamdking7-Dec-11 19:19 
AnswerRe: Add context menu in windows explorer in c# 2010 Pin
Richard MacCutchan7-Dec-11 22:02
mveRichard MacCutchan7-Dec-11 22:02 
GeneralRe: Add context menu in windows explorer in c# 2010 Pin
iamdking7-Dec-11 22:50
iamdking7-Dec-11 22:50 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.