*** Skymmer has left the channel2009-08-27 03:52:11
*** chornobyl has joined the channel2009-08-27 06:27:25
<Shelwien> ...2009-08-27 08:23:35
<chornobyl> this somehow does not work2009-08-27 08:31:49
 for %i in (en*) do (2009-08-27 08:31:49
 sizeondisk %i 802009-08-27 08:31:49
 if 0.000000e+00rrorlevel 0.000000E+00QL 1 (echo "boo"))2009-08-27 08:31:49
 pause2009-08-27 08:31:49
<Shelwien> remove 0.000000rom errorlevel?2009-08-27 08:32:05
<chornobyl> not help2009-08-27 08:32:41
 remove both2009-08-27 08:32:58
<Shelwien> ah, though there's really that kind of thing2009-08-27 08:33:01
 try writing echo 0.000000E+00RRORLEVEL% there then2009-08-27 08:33:15
 and check different cases2009-08-27 08:33:29
 and see what it prints2009-08-27 08:33:34
 still there's no EQL2009-08-27 08:34:16
 there's EQU instead2009-08-27 08:34:23
 read if /?2009-08-27 08:34:26
<chornobyl> same thing "unexpected )."2009-08-27 08:34:50
 there are EQL2009-08-27 08:34:54
<Shelwien>  IF [/I] string1 compare-op string2 command2009-08-27 08:35:17
  IF CMDEXTVERSION number command2009-08-27 08:35:17
  IF DEFINED variable command2009-08-27 08:35:17
 where compare-op may be one of:2009-08-27 08:35:17
  EQU - equal2009-08-27 08:35:17
  NEQ - not equal2009-08-27 08:35:18
  LSS - less than2009-08-27 08:35:20
  LEQ - less than or equal2009-08-27 08:35:22
  GTR - greater than2009-08-27 08:35:24
  GEQ - greater than or equal2009-08-27 08:35:26
 there's no EQL2009-08-27 08:35:29
<chornobyl> где оператор_сравнения принимает следующие значения:2009-08-27 08:35:46
 EQL - равно2009-08-27 08:35:46
 NEQ - не равно2009-08-27 08:35:46
 LSS - меньше2009-08-27 08:35:46
 LEQ - меньше или равно2009-08-27 08:35:46
 GTR - больше2009-08-27 08:35:46
 GEQ - больше или равно2009-08-27 08:35:49
<Shelwien> translation mistake maybe?2009-08-27 08:36:01
<chornobyl> what a crap2009-08-27 08:36:10
<Shelwien> well, thatever2009-08-27 08:36:15
 i also don't think that )) is okay2009-08-27 08:36:23
 write then second ) on a separate string2009-08-27 08:36:31
 *write that second ) on a separate line2009-08-27 08:36:50
<chornobyl> helpf2009-08-27 08:36:58
 it helped2009-08-27 08:37:10
<Shelwien> ;)2009-08-27 08:37:14
 but EQL works?2009-08-27 08:37:19
 what about EQU then?2009-08-27 08:37:29
 I don't believe that they could have made different conditions in different windows versions...2009-08-27 08:38:01
<chornobyl> still say unexpected occurence of EQU/EQL2009-08-27 08:39:11
*** pinc has joined the channel2009-08-27 08:39:20
<Shelwien> try using == instead maybe?2009-08-27 08:39:55
 like IF (0.000000E+00RRORLEVEL%)==(1) ?2009-08-27 08:40:18
 or there was older syntax2009-08-27 08:40:44
 if errorlevel xx2009-08-27 08:41:09
 means >=xx2009-08-27 08:41:12
<chornobyl> current state is2009-08-27 08:41:52
 for %i in (en*) do (2009-08-27 08:41:52
 sizeondisk %i 802009-08-27 08:41:52
 if 0.000000e+00rrorlevel% == 1 ( echo 0.000000e+00rrorlevel% )2009-08-27 08:41:52
 )2009-08-27 08:41:52
 pause2009-08-27 08:41:52
 still not return what i whant2009-08-27 08:42:21
<Shelwien> i' suggest write if condition exactly as i said (with ())2009-08-27 08:42:23
 and add that echo unconditionally2009-08-27 08:42:43
 and remove () in condition2009-08-27 08:42:50
 i mean this:2009-08-27 08:43:29
 sizeondisk %i 802009-08-27 08:43:29
 echo [0.000000e+00rrorlevel%]2009-08-27 08:43:30
 if (0.000000e+00rrorlevel%)==(1) echo 0.000000e+00rrorlevel%2009-08-27 08:43:30
<chornobyl> same stuff "unexpected occurence of )."2009-08-27 08:45:26
<Shelwien> don't put unexpected ) then ;)2009-08-27 08:45:52
 what echo 0.000000e+00rrorlevel503848rints anyway?2009-08-27 08:46:18
 do you get valid exitcodes at all?2009-08-27 08:46:31
<chornobyl> no2009-08-27 08:46:35
 whana try yourself? (guess no)2009-08-27 08:46:56
<Shelwien> i don't have compressed ntfs anywhere2009-08-27 08:47:08
<chornobyl> mac2009-08-27 08:47:23
<Shelwien> no; lots of XP, but all partitions uncompressed2009-08-27 08:47:46
<chornobyl> partittion is uncompressed also2009-08-27 08:48:00
 just take few files, like tyree to test with2009-08-27 08:48:18
<Shelwien> Q:\1>1.bat2009-08-27 08:50:51
 Q:\1>sizeondisk 0 802009-08-27 08:50:51
 'sizeondisk' is not recognized as an internal or external command,2009-08-27 08:50:51
 operable program or batch file.2009-08-27 08:50:51
 Q:\1>echo [9009]2009-08-27 08:50:51
 [9009]2009-08-27 08:50:52
 Q:\1>if (9009) == (1) echo 90092009-08-27 08:50:54
 tried this2009-08-27 08:50:56
 seems that if works at least ;)2009-08-27 08:51:09
 Q:\1>if (9009) == (9009) echo 90092009-08-27 08:51:43
 90092009-08-27 08:51:44
<chornobyl> sizeondisk is osmans tool2009-08-27 08:53:03
<Shelwien> i know2009-08-27 08:53:15
 but if it doesn't return what you want2009-08-27 08:53:23
 i can't really help ;)2009-08-27 08:53:27
 whats it written in and do you have source?2009-08-27 08:53:44
<chornobyl> yes souce included2009-08-27 08:54:28
<Shelwien> if its C# or something, I can't help ;)2009-08-27 08:54:44
<chornobyl> SizeOnDisk.cpp2009-08-27 08:55:13
<Shelwien> ah2009-08-27 08:55:19
 that's ok then2009-08-27 08:55:25
 where to get it?2009-08-27 08:55:29
<chornobyl> osmanturan.com/sizeondisk.zip2009-08-27 08:56:43
 but if youre busy dont bother, its not that important2009-08-27 08:58:13
<Shelwien> looking at it2009-08-27 08:58:22
 http://91.124.212.32/SizeOnDisk.exe2009-08-27 09:03:16
 what about this?2009-08-27 09:03:19
 chornobyl?2009-08-27 09:04:29
 it seems to work for me2009-08-27 09:04:33
<chornobyl> now2009-08-27 09:05:05
 works better but still "unexplected"2009-08-27 09:15:11
<Shelwien> wget http://91.124.212.32/1.txt2009-08-27 09:15:31
 rename it to .bat and try running2009-08-27 09:15:52
 it works correctly for me2009-08-27 09:15:58
<chornobyl> ok2009-08-27 09:16:00
 i modified your script to satisfy my needs and guess what2009-08-27 09:43:59
 File not found: 0.000000ile not found: 0.000000ile not found: %12009-08-27 09:43:59
<Shelwien> you did something wrong2009-08-27 09:44:15
<chornobyl> i guess so2009-08-27 09:44:28
<Shelwien> like, there's no %12009-08-27 09:44:37
<chornobyl> there are2009-08-27 09:44:46
 it just irc wierdness2009-08-27 09:44:56
<Shelwien> i mean, there're no %1 in batch scripts2009-08-27 09:45:05
 % is only used in FOR2009-08-27 09:45:19
<chornobyl> i told you there are2009-08-27 09:45:49
 stop i dont get it2009-08-27 09:46:02
<Shelwien> you have to use %1 to get the first argument2009-08-27 09:46:23
 not %12009-08-27 09:46:24
<chornobyl> i changed and "unexpecded occurence of I'2009-08-27 09:47:04
 appears2009-08-27 09:47:14
<Shelwien> but you need that % in I ;)2009-08-27 09:47:17
 because its a FOR variable ;)2009-08-27 09:47:22
<chornobyl> works somehow2009-08-27 09:47:50
<Shelwien> ;)2009-08-27 09:48:06
<chornobyl> not the way i whant to2009-08-27 09:48:20
 should i explain what i whant2009-08-27 09:48:30
 ?2009-08-27 09:48:50
<Shelwien> just say it ;)2009-08-27 09:49:03
<chornobyl> i whant to compress only those files which compressible2009-08-27 09:49:37
<Shelwien> osman did this:2009-08-27 09:49:43
  int expectedRatio = _ttoi(argv[2]);2009-08-27 09:49:43
  Int64 expectedSize = (originalSize*(expectedRatio/100.0));2009-08-27 09:49:43
  int result = 0;2009-08-27 09:49:43
  if (compressedSize > expectedSize) result = 1;2009-08-27 09:49:43
  else if (compressedSize < expectedSize) result = -1;2009-08-27 09:49:44
<chornobyl> so2009-08-27 09:51:01
 im about to compress all files2009-08-27 09:51:24
<Shelwien> so if you write sizeondisk file 802009-08-27 09:51:25
<chornobyl> and then decompress those that compressed badly2009-08-27 09:51:41
<Shelwien> it sets errorlevel to 12009-08-27 09:51:44
 if compressed file size is more than 800f its full size2009-08-27 09:52:08
<chornobyl> thing is i cannot handle this errorlevel2009-08-27 09:57:06
<Shelwien> you can2009-08-27 09:57:18
 you only have to check for errorlevel==12009-08-27 09:57:29
<chornobyl> it works? in plain bat file2009-08-27 09:57:52
<Shelwien> it works in my script2009-08-27 09:58:02
<chornobyl> but whaen adding if it doesnt2009-08-27 09:58:06
<Shelwien> add an if with a correct syntax then ;)2009-08-27 09:58:31
 like copy one from my script ;)2009-08-27 09:58:40
 osman: I posted an edited version of that - http://ctxmodel.net/rem.pl?-362009-08-27 10:08:39
<chornobyl> i dont whant to give up but this thind is literally eating my brain (if i have one)2009-08-27 10:15:14
<Shelwien> dunno whats you problem really2009-08-27 10:15:39
<chornobyl> curvehands.dll2009-08-27 10:16:02
<Shelwien> http://91.124.212.32/2.txt2009-08-27 10:20:15
 or2009-08-27 10:22:26
  if not errorlevel 0 (2009-08-27 10:22:26
  echo File %a is compressible2009-08-27 10:22:26
  )2009-08-27 10:22:26
<chornobyl> it works2009-08-27 10:25:18
 and i am a potato2009-08-27 10:25:23
<Shelwien> ;)2009-08-27 10:25:27
*** toffer has joined the channel2009-08-27 10:25:45
 hi toffer, check topic ;)2009-08-27 10:25:54
<toffer> i read it2009-08-27 10:29:22
 and hi btw2009-08-27 10:29:26
<Shelwien> tell me what you think then ;)2009-08-27 10:30:20
<toffer> ordianry context histories are not combinatoric2009-08-27 10:30:55
 thus the model has to be different from a linear counter2009-08-27 10:31:09
<Shelwien> nobody said anything about combinatoric models2009-08-27 10:31:23
 in fact, i even written that ccm counter example2009-08-27 10:31:37
<toffer> you should mention that a sse mapping of state -> probability improves compression due to context clustering2009-08-27 10:31:49
<Shelwien> to show how its clearly wrong2009-08-27 10:31:57
<toffer> i just thnik you should mention that2009-08-27 10:32:11
 context histories tend to be very uniform2009-08-27 10:32:19
 and the distribution is non-stationary 2009-08-27 10:32:50
 btw i found something interetsting2009-08-27 10:33:00
 which is some more evidence2009-08-27 10:33:09
 for a pattern based state model2009-08-27 10:33:17
 more preciesly run length based2009-08-27 10:33:22
 have you seen the quantisation function i posted yesterday?2009-08-27 10:33:33
 and remember that "steps" near 0/1 with your stretch?2009-08-27 10:33:55
<Shelwien> so?2009-08-27 10:34:20
<toffer> these steps do distingush bit histories which only are runs of one bit (0/1) w/o the occourence of the opposite bit2009-08-27 10:34:38
 distingush between these and bit histories where other bits appear, too2009-08-27 10:35:07