TheDcoder Posted September 2, 2016 Share Posted September 2, 2016 22 minutes ago, czardas said: unofficial August 2016 AutoIt code challenge Waiting for the September 2016 AutoIt code challenge! Congratulations to the winners . stamandster and czardas 2 EasyCodeIt - A cross-platform AutoIt implementation - Fund the development! (GitHub will double your donations for a limited time) DcodingTheWeb Forum - Follow for updates and Join for discussion Link to comment Share on other sites More sharing options...
stamandster Posted September 2, 2016 Share Posted September 2, 2016 (edited) 12 hours ago, czardas said: Orbs and stamandster are awesome Edited September 2, 2016 by stamandster Link to comment Share on other sites More sharing options...
stamandster Posted September 2, 2016 Share Posted September 2, 2016 ;-) thank you for choosing us, I think we had similar thought processes. Looking forward to the next challenge! czardas 1 Link to comment Share on other sites More sharing options...
iamtheky Posted September 2, 2016 Share Posted September 2, 2016 (edited) Quote Waiting for the September 2016 AutoIt code challenge! I vote for a 'find duplicate files' challenge. I need something to race against my win10 + bash + rdfind Edited September 2, 2016 by iamtheky ,-. .--. ________ .-. .-. ,---. ,-. .-. .-. .-. |(| / /\ \ |\ /| |__ __||| | | || .-' | |/ / \ \_/ )/ (_) / /__\ \ |(\ / | )| | | `-' | | `-. | | / __ \ (_) | | | __ | (_)\/ | (_) | | .-. | | .-' | | \ |__| ) ( | | | | |)| | \ / | | | | | |)| | `--. | |) \ | | `-' |_| (_) | |\/| | `-' /( (_)/( __.' |((_)-' /(_| '-' '-' (__) (__) (_) (__) Link to comment Share on other sites More sharing options...
stamandster Posted September 2, 2016 Share Posted September 2, 2016 @iamtheky do you happen to have something already coded for this? ;-) Link to comment Share on other sites More sharing options...
iamtheky Posted September 2, 2016 Share Posted September 2, 2016 (edited) It still has plenty of room for improvement, even at 1.5s Edited September 2, 2016 by iamtheky stamandster 1 ,-. .--. ________ .-. .-. ,---. ,-. .-. .-. .-. |(| / /\ \ |\ /| |__ __||| | | || .-' | |/ / \ \_/ )/ (_) / /__\ \ |(\ / | )| | | `-' | | `-. | | / __ \ (_) | | | __ | (_)\/ | (_) | | .-. | | .-' | | \ |__| ) ( | | | | |)| | \ / | | | | | |)| | `--. | |) \ | | `-' |_| (_) | |\/| | `-' /( (_)/( __.' |((_)-' /(_| '-' '-' (__) (__) (_) (__) Link to comment Share on other sites More sharing options...
stamandster Posted September 2, 2016 Share Posted September 2, 2016 (edited) @iamtheky roger that! 1.5s for how many files? Edited September 2, 2016 by stamandster Link to comment Share on other sites More sharing options...
iamtheky Posted September 2, 2016 Share Posted September 2, 2016 1,429 files in 86 folders - multiple types I'd post the screenshot of the properties but, I cant delete my attachments and neither can the Mods and I am at 100%, maybe they will be nice and increase my cap since IPB is so boned. stamandster 1 ,-. .--. ________ .-. .-. ,---. ,-. .-. .-. .-. |(| / /\ \ |\ /| |__ __||| | | || .-' | |/ / \ \_/ )/ (_) / /__\ \ |(\ / | )| | | `-' | | `-. | | / __ \ (_) | | | __ | (_)\/ | (_) | | .-. | | .-' | | \ |__| ) ( | | | | |)| | \ / | | | | | |)| | `--. | |) \ | | `-' |_| (_) | |\/| | `-' /( (_)/( __.' |((_)-' /(_| '-' '-' (__) (__) (_) (__) Link to comment Share on other sites More sharing options...
orbs Posted September 2, 2016 Share Posted September 2, 2016 thanks @czardas and everyone who contributed to this thread, it was enjoyable! i will now cherish my digital medal and go on an offline vacation for a week, so i won't be around to witness the fallout of these: @iamtheky, 5 hours ago, iamtheky said: I vote for a 'find duplicate files' challenge. I need something to race against my win10 + bash + rdfind 1) i believe a new thread is in order. 2) i recon an AutoIt challenge solution that involves calling an external executable/library to perform its core task can hardly be considered valid. the ultimate example being of course this: 3) an AutoIt solution to meet your challenge already exists. i can't tell how fast it is compared to bash command, but it is AutoIt... stamandster and czardas 2 Signature - my forum contributions: Spoiler UDF: LFN - support for long file names (over 260 characters) InputImpose - impose valid characters in an input control TimeConvert - convert UTC to/from local time and/or reformat the string representation AMF - accept multiple files from Windows Explorer context menu DateDuration - literal description of the difference between given dates Apps: Touch - set the "modified" timestamp of a file to current time Show For Files - tray menu to show/hide files extensions, hidden & system files, and selection checkboxes SPDiff - Single-Pane Text Diff Link to comment Share on other sites More sharing options...
iamtheky Posted September 2, 2016 Share Posted September 2, 2016 (edited) I'm sure there will be a new thread, but its also a discussion that would then be disjointed. So 6 of 1 half dozen the other. You should really down the SMF zip file and look how native it really is, it gets mad help from sqllite and contains the entirety of 7z which I am sure assists in compression/speed. If the resource is available to your system for $0 and can be controlled via an AutoIt script, then get some. Trying to dance around it for posterity will only make the end result suffer. And in my testing, I win the race. Though admittedly I havent done repeated attempts to ensure that the behavior once fs is cached persists. @orbs re-reading 2) it seems you think I want to compete. I merely want something faster. And if you read the specs for rdfind there are ways to improve SMF, like using first bytes Edited September 3, 2016 by iamtheky ,-. .--. ________ .-. .-. ,---. ,-. .-. .-. .-. |(| / /\ \ |\ /| |__ __||| | | || .-' | |/ / \ \_/ )/ (_) / /__\ \ |(\ / | )| | | `-' | | `-. | | / __ \ (_) | | | __ | (_)\/ | (_) | | .-. | | .-' | | \ |__| ) ( | | | | |)| | \ / | | | | | |)| | `--. | |) \ | | `-' |_| (_) | |\/| | `-' /( (_)/( __.' |((_)-' /(_| '-' '-' (__) (__) (_) (__) Link to comment Share on other sites More sharing options...
czardas Posted September 3, 2016 Author Share Posted September 3, 2016 (edited) I have to admit these challenge threads can be fun. I will have to think of something for a future challenge. Once per month is perhaps a bit too frequent though. I guess we should have a hall of fame. Edited September 3, 2016 by czardas operator64 ArrayWorkshop Link to comment Share on other sites More sharing options...
iamtheky Posted September 3, 2016 Share Posted September 3, 2016 Or Flags, and a post where you can list metrics required to take the individual flags from the various users that hold them. A sporting thread of sorts czardas 1 ,-. .--. ________ .-. .-. ,---. ,-. .-. .-. .-. |(| / /\ \ |\ /| |__ __||| | | || .-' | |/ / \ \_/ )/ (_) / /__\ \ |(\ / | )| | | `-' | | `-. | | / __ \ (_) | | | __ | (_)\/ | (_) | | .-. | | .-' | | \ |__| ) ( | | | | |)| | \ / | | | | | |)| | `--. | |) \ | | `-' |_| (_) | |\/| | `-' /( (_)/( __.' |((_)-' /(_| '-' '-' (__) (__) (_) (__) Link to comment Share on other sites More sharing options...
czardas Posted September 3, 2016 Author Share Posted September 3, 2016 (edited) I guess it's best not to rely too heavily on forum software features because IPB will break it. Such a thread will have to be maintained by someone (or by a committee). Edited September 3, 2016 by czardas operator64 ArrayWorkshop Link to comment Share on other sites More sharing options...
iamtheky Posted September 3, 2016 Share Posted September 3, 2016 (edited) or a competitive subforum, with challenges having their own individual threads. It certainly couldnt be a free for all, scopes will have to be narrowly defined. But I like challenges so probably would've worked my through a sub like that after AutoIt-1-2-3. Edited September 3, 2016 by iamtheky free fall and free for all mean 2 diff things czardas 1 ,-. .--. ________ .-. .-. ,---. ,-. .-. .-. .-. |(| / /\ \ |\ /| |__ __||| | | || .-' | |/ / \ \_/ )/ (_) / /__\ \ |(\ / | )| | | `-' | | `-. | | / __ \ (_) | | | __ | (_)\/ | (_) | | .-. | | .-' | | \ |__| ) ( | | | | |)| | \ / | | | | | |)| | `--. | |) \ | | `-' |_| (_) | |\/| | `-' /( (_)/( __.' |((_)-' /(_| '-' '-' (__) (__) (_) (__) Link to comment Share on other sites More sharing options...
czardas Posted September 3, 2016 Author Share Posted September 3, 2016 (edited) Something like that would require Jon to set it up and there are already quite a few subforums. If we can generate sufficient interest though, who knows what can happen? Edited September 3, 2016 by czardas TheDcoder and iamtheky 2 operator64 ArrayWorkshop Link to comment Share on other sites More sharing options...
TheDcoder Posted September 3, 2016 Share Posted September 3, 2016 Just now, czardas said: If we can generate sufficient interest though, who knows what can happen? True . EasyCodeIt - A cross-platform AutoIt implementation - Fund the development! (GitHub will double your donations for a limited time) DcodingTheWeb Forum - Follow for updates and Join for discussion Link to comment Share on other sites More sharing options...
Zedna Posted September 5, 2016 Share Posted September 5, 2016 Just one optimization note: Always use parameter CaseSense=1 in StringInStr() or StringReplace() when there are searched/tested/replaced non a-z,A-Z strings. This way you can achieve BIG speed boost! EDIT: Of course also use case sensitive string comparison in IF ... THEN: If string1 == string2 Then ... instead of much slower NOT case sensitive one: If string1 = string2 Then ... czardas 1 Resources UDF ResourcesEx UDF AutoIt Forum Search Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now