Click here to Skip to main content
15,891,762 members
Home / Discussions / C#
   

C#

 
GeneralRe: Get CPU Serial Number in WinRT Pin
Dave Kreskowiak9-Feb-12 16:38
mveDave Kreskowiak9-Feb-12 16:38 
QuestionWhy is my regex cutting of last char when doing replace? Pin
KimberlyKetchum8-Feb-12 11:24
KimberlyKetchum8-Feb-12 11:24 
AnswerRe: Why is my regex cutting of last char when doing replace? Pin
Peter_in_27808-Feb-12 12:02
professionalPeter_in_27808-Feb-12 12:02 
AnswerRe: Why is my regex cutting of last char when doing replace? Pin
Luc Pattyn8-Feb-12 12:07
sitebuilderLuc Pattyn8-Feb-12 12:07 
AnswerRe: Why is my regex cutting of last char when doing replace? Pin
Bernhard Hiller8-Feb-12 20:51
Bernhard Hiller8-Feb-12 20:51 
QuestionAnybody familiar with compression? (Using it I mean) Pin
SledgeHammer018-Feb-12 8:21
SledgeHammer018-Feb-12 8:21 
AnswerRe: Anybody familiar with compression? (Using it I mean) Pin
Luc Pattyn8-Feb-12 8:28
sitebuilderLuc Pattyn8-Feb-12 8:28 
GeneralRe: Anybody familiar with compression? (Using it I mean) Pin
SledgeHammer018-Feb-12 9:53
SledgeHammer018-Feb-12 9:53 
Well, let me give you more info then:

* table has ~400 rows
* schema is int, int, varchar(80), varchar(256), varchar(max), varchar(80), TimeStamp
- varchar(256) column is mostly NULL
- last varchar(80) column is generally NULL, but occasionally may have a < 16 char
string in it...
- the varchar(max) column is what I am dealing with
* the varchar(max) column contains javascripts
* javascript size varies from about 700 bytes to 43k
* total size of all javascript written out to separate files is 4.8MB
* if I dump all those 400+ javascripts into a 7zip archive, the resultant archive is ~200k
* if I loop throw the rows and compress each column in memory and add up all the
compressed sizes, I end up with 800k in data

I was expecting to add up with something around 200k???

I realize there is probably some header info included, but over 400 files, that shouldn't account for 600k diff.

Thats why I was asking if you throw a bunch of files into the same archive it archives all the files as one chunk vs. individual files which results in it being able to compress "larger chunks" or whatever.

Trying to find a way to get rid of that extra 600k if possible.
AnswerRe: Anybody familiar with compression? (Using it I mean) Pin
Luc Pattyn8-Feb-12 10:04
sitebuilderLuc Pattyn8-Feb-12 10:04 
GeneralRe: Anybody familiar with compression? (Using it I mean) Pin
harold aptroot8-Feb-12 10:13
harold aptroot8-Feb-12 10:13 
GeneralRe: Anybody familiar with compression? (Using it I mean) Pin
SledgeHammer018-Feb-12 11:52
SledgeHammer018-Feb-12 11:52 
AnswerRe: Anybody familiar with compression? (Using it I mean) Pin
Luc Pattyn8-Feb-12 12:12
sitebuilderLuc Pattyn8-Feb-12 12:12 
GeneralRe: Anybody familiar with compression? (Using it I mean) Pin
SledgeHammer018-Feb-12 13:08
SledgeHammer018-Feb-12 13:08 
GeneralRe: Anybody familiar with compression? (Using it I mean) Pin
SledgeHammer018-Feb-12 13:56
SledgeHammer018-Feb-12 13:56 
AnswerRe: Anybody familiar with compression? (Using it I mean) Pin
Luc Pattyn9-Feb-12 4:33
sitebuilderLuc Pattyn9-Feb-12 4:33 
AnswerRe: Anybody familiar with compression? (Using it I mean) Pin
Luc Pattyn8-Feb-12 10:39
sitebuilderLuc Pattyn8-Feb-12 10:39 
QuestionUsing Controls in multiple threads Pin
Danzy838-Feb-12 7:47
Danzy838-Feb-12 7:47 
AnswerRe: Using Controls in multiple threads Pin
Luc Pattyn8-Feb-12 8:21
sitebuilderLuc Pattyn8-Feb-12 8:21 
AnswerRe: Using Controls in multiple threads Pin
DaveyM698-Feb-12 8:43
professionalDaveyM698-Feb-12 8:43 
QuestionThe type or namespace name 'Excel' could not be found Pin
pmcm8-Feb-12 5:17
pmcm8-Feb-12 5:17 
AnswerRe: The type or namespace name 'Excel' could not be found Pin
Wes Aday8-Feb-12 5:24
professionalWes Aday8-Feb-12 5:24 
GeneralRe: The type or namespace name 'Excel' could not be found Pin
pmcm8-Feb-12 5:31
pmcm8-Feb-12 5:31 
GeneralRe: The type or namespace name 'Excel' could not be found Pin
Richard MacCutchan8-Feb-12 6:25
mveRichard MacCutchan8-Feb-12 6:25 
AnswerRe: The type or namespace name 'Excel' could not be found Pin
Eddy Vluggen8-Feb-12 9:12
professionalEddy Vluggen8-Feb-12 9:12 
GeneralRe: The type or namespace name 'Excel' could not be found Pin
Richard MacCutchan8-Feb-12 21:41
mveRichard MacCutchan8-Feb-12 21:41 

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.