*** Skymmer has left the channel | 2009-08-27 03:52:11 |
*** chornobyl has joined the channel | 2009-08-27 06:27:25 |
<Shelwien> | ... | 2009-08-27 08:23:35 |
<chornobyl> | this somehow does not work | 2009-08-27 08:31:49 |
| for %i in (en*) do ( | 2009-08-27 08:31:49 |
| sizeondisk %i 80 | 2009-08-27 08:31:49 |
| if 0.000000e+00rrorlevel 0.000000E+00QL 1 (echo "boo")) | 2009-08-27 08:31:49 |
| pause | 2009-08-27 08:31:49 |
<Shelwien> | remove 0.000000rom errorlevel? | 2009-08-27 08:32:05 |
<chornobyl> | not help | 2009-08-27 08:32:41 |
| remove both | 2009-08-27 08:32:58 |
<Shelwien> | ah, though there's really that kind of thing | 2009-08-27 08:33:01 |
| try writing echo 0.000000E+00RRORLEVEL% there then | 2009-08-27 08:33:15 |
| and check different cases | 2009-08-27 08:33:29 |
| and see what it prints | 2009-08-27 08:33:34 |
| still there's no EQL | 2009-08-27 08:34:16 |
| there's EQU instead | 2009-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 EQL | 2009-08-27 08:34:54 |
<Shelwien> | IF [/I] string1 compare-op string2 command | 2009-08-27 08:35:17 |
| IF CMDEXTVERSION number command | 2009-08-27 08:35:17 |
| IF DEFINED variable command | 2009-08-27 08:35:17 |
| where compare-op may be one of: | 2009-08-27 08:35:17 |
| EQU - equal | 2009-08-27 08:35:17 |
| NEQ - not equal | 2009-08-27 08:35:18 |
| LSS - less than | 2009-08-27 08:35:20 |
| LEQ - less than or equal | 2009-08-27 08:35:22 |
| GTR - greater than | 2009-08-27 08:35:24 |
| GEQ - greater than or equal | 2009-08-27 08:35:26 |
| there's no EQL | 2009-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 crap | 2009-08-27 08:36:10 |
<Shelwien> | well, thatever | 2009-08-27 08:36:15 |
| i also don't think that )) is okay | 2009-08-27 08:36:23 |
| write then second ) on a separate string | 2009-08-27 08:36:31 |
| *write that second ) on a separate line | 2009-08-27 08:36:50 |
<chornobyl> | helpf | 2009-08-27 08:36:58 |
| it helped | 2009-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/EQL | 2009-08-27 08:39:11 |
*** pinc has joined the channel | 2009-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 syntax | 2009-08-27 08:40:44 |
| if errorlevel xx | 2009-08-27 08:41:09 |
| means >=xx | 2009-08-27 08:41:12 |
<chornobyl> | current state is | 2009-08-27 08:41:52 |
| for %i in (en*) do ( | 2009-08-27 08:41:52 |
| sizeondisk %i 80 | 2009-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 |
| pause | 2009-08-27 08:41:52 |
| still not return what i whant | 2009-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 unconditionally | 2009-08-27 08:42:43 |
| and remove () in condition | 2009-08-27 08:42:50 |
| i mean this: | 2009-08-27 08:43:29 |
| sizeondisk %i 80 | 2009-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> | no | 2009-08-27 08:46:35 |
| whana try yourself? (guess no) | 2009-08-27 08:46:56 |
<Shelwien> | i don't have compressed ntfs anywhere | 2009-08-27 08:47:08 |
<chornobyl> | mac | 2009-08-27 08:47:23 |
<Shelwien> | no; lots of XP, but all partitions uncompressed | 2009-08-27 08:47:46 |
<chornobyl> | partittion is uncompressed also | 2009-08-27 08:48:00 |
| just take few files, like tyree to test with | 2009-08-27 08:48:18 |
<Shelwien> | Q:\1>1.bat | 2009-08-27 08:50:51 |
| Q:\1>sizeondisk 0 80 | 2009-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 9009 | 2009-08-27 08:50:54 |
| tried this | 2009-08-27 08:50:56 |
| seems that if works at least ;) | 2009-08-27 08:51:09 |
| Q:\1>if (9009) == (9009) echo 9009 | 2009-08-27 08:51:43 |
| 9009 | 2009-08-27 08:51:44 |
<chornobyl> | sizeondisk is osmans tool | 2009-08-27 08:53:03 |
<Shelwien> | i know | 2009-08-27 08:53:15 |
| but if it doesn't return what you want | 2009-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 included | 2009-08-27 08:54:28 |
<Shelwien> | if its C# or something, I can't help ;) | 2009-08-27 08:54:44 |
<chornobyl> | SizeOnDisk.cpp | 2009-08-27 08:55:13 |
<Shelwien> | ah | 2009-08-27 08:55:19 |
| that's ok then | 2009-08-27 08:55:25 |
| where to get it? | 2009-08-27 08:55:29 |
<chornobyl> | osmanturan.com/sizeondisk.zip | 2009-08-27 08:56:43 |
| but if youre busy dont bother, its not that important | 2009-08-27 08:58:13 |
<Shelwien> | looking at it | 2009-08-27 08:58:22 |
| http://91.124.212.32/SizeOnDisk.exe | 2009-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 me | 2009-08-27 09:04:33 |
<chornobyl> | now | 2009-08-27 09:05:05 |
| works better but still "unexplected" | 2009-08-27 09:15:11 |
<Shelwien> | wget http://91.124.212.32/1.txt | 2009-08-27 09:15:31 |
| rename it to .bat and try running | 2009-08-27 09:15:52 |
| it works correctly for me | 2009-08-27 09:15:58 |
<chornobyl> | ok | 2009-08-27 09:16:00 |
| i modified your script to satisfy my needs and guess what | 2009-08-27 09:43:59 |
| File not found: 0.000000ile not found: 0.000000ile not found: %1 | 2009-08-27 09:43:59 |
<Shelwien> | you did something wrong | 2009-08-27 09:44:15 |
<chornobyl> | i guess so | 2009-08-27 09:44:28 |
<Shelwien> | like, there's no %1 | 2009-08-27 09:44:37 |
<chornobyl> | there are | 2009-08-27 09:44:46 |
| it just irc wierdness | 2009-08-27 09:44:56 |
<Shelwien> | i mean, there're no %1 in batch scripts | 2009-08-27 09:45:05 |
| % is only used in FOR | 2009-08-27 09:45:19 |
<chornobyl> | i told you there are | 2009-08-27 09:45:49 |
| stop i dont get it | 2009-08-27 09:46:02 |
<Shelwien> | you have to use %1 to get the first argument | 2009-08-27 09:46:23 |
| not %1 | 2009-08-27 09:46:24 |
<chornobyl> | i changed and "unexpecded occurence of I' | 2009-08-27 09:47:04 |
| appears | 2009-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 somehow | 2009-08-27 09:47:50 |
<Shelwien> | ;) | 2009-08-27 09:48:06 |
<chornobyl> | not the way i whant to | 2009-08-27 09:48:20 |
| should i explain what i whant | 2009-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 compressible | 2009-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> | so | 2009-08-27 09:51:01 |
| im about to compress all files | 2009-08-27 09:51:24 |
<Shelwien> | so if you write sizeondisk file 80 | 2009-08-27 09:51:25 |
<chornobyl> | and then decompress those that compressed badly | 2009-08-27 09:51:41 |
<Shelwien> | it sets errorlevel to 1 | 2009-08-27 09:51:44 |
| if compressed file size is more than 800f its full size | 2009-08-27 09:52:08 |
<chornobyl> | thing is i cannot handle this errorlevel | 2009-08-27 09:57:06 |
<Shelwien> | you can | 2009-08-27 09:57:18 |
| you only have to check for errorlevel==1 | 2009-08-27 09:57:29 |
<chornobyl> | it works? in plain bat file | 2009-08-27 09:57:52 |
<Shelwien> | it works in my script | 2009-08-27 09:58:02 |
<chornobyl> | but whaen adding if it doesnt | 2009-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?-36 | 2009-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 really | 2009-08-27 10:15:39 |
<chornobyl> | curvehands.dll | 2009-08-27 10:16:02 |
<Shelwien> | http://91.124.212.32/2.txt | 2009-08-27 10:20:15 |
| or | 2009-08-27 10:22:26 |
| if not errorlevel 0 ( | 2009-08-27 10:22:26 |
| echo File %a is compressible | 2009-08-27 10:22:26 |
| ) | 2009-08-27 10:22:26 |
<chornobyl> | it works | 2009-08-27 10:25:18 |
| and i am a potato | 2009-08-27 10:25:23 |
<Shelwien> | ;) | 2009-08-27 10:25:27 |
*** toffer has joined the channel | 2009-08-27 10:25:45 |
| hi toffer, check topic ;) | 2009-08-27 10:25:54 |
<toffer> | i read it | 2009-08-27 10:29:22 |
| and hi btw | 2009-08-27 10:29:26 |
<Shelwien> | tell me what you think then ;) | 2009-08-27 10:30:20 |
<toffer> | ordianry context histories are not combinatoric | 2009-08-27 10:30:55 |
| thus the model has to be different from a linear counter | 2009-08-27 10:31:09 |
<Shelwien> | nobody said anything about combinatoric models | 2009-08-27 10:31:23 |
| in fact, i even written that ccm counter example | 2009-08-27 10:31:37 |
<toffer> | you should mention that a sse mapping of state -> probability improves compression due to context clustering | 2009-08-27 10:31:49 |
<Shelwien> | to show how its clearly wrong | 2009-08-27 10:31:57 |
<toffer> | i just thnik you should mention that | 2009-08-27 10:32:11 |
| context histories tend to be very uniform | 2009-08-27 10:32:19 |
| and the distribution is non-stationary | 2009-08-27 10:32:50 |
| btw i found something interetsting | 2009-08-27 10:33:00 |
| which is some more evidence | 2009-08-27 10:33:09 |
| for a pattern based state model | 2009-08-27 10:33:17 |
| more preciesly run length based | 2009-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 bit | 2009-08-27 10:34:38 |
| distingush between these and bit histories where other bits appear, too | 2009-08-27 10:35:07 |