Messages - czb [ switch to compact view ]

Pages: prev1 ... 31 32 33 34 35 [36] 37 38 39 40 41 ... 67next
176
FARR Plugins and Aliases / Re: New FARR Plugin: FCalc
« on: June 09, 2008, 11:14 PM »
You need to be using FARR 2.04.02 or later for this version.
Should not there be a compatibility check in DC updater for those having stable release of FARR, so it will not be prompted and installed to them?

177
Find And Run Robot / Re: Today is release day !!!
« on: June 08, 2008, 08:10 AM »
and how is it with JS SDK? will it be released also today?

178
Find And Run Robot / Re: Today is release day !!!
« on: June 08, 2008, 04:27 AM »
Is it already today? Cool. Hopefully new version of fscript.dll will follow soon ;)

179
Find And Run Robot / Re: Instant infos via aliases?
« on: June 04, 2008, 03:17 AM »
Ok.
So formely I wanted to join timer + instant info into one plugin but probably those will be two, I will see when I start coding how much different those two codes are going to be.

My idea is to have folder which would be searched for all files (no matter of name and extension) and every file will be as one tab (like firefox has) in html view. (You would be able to switch between tabs by Ctrl+Tab or command "switch number" or by clicking on the tab. It would search one file (tab) at a time to make searching faster.

Every file will have optional meta data or options and default options for files without those data will be stored in plugin settings.

As to tags, I think the easiest way would be to implement tags this way:
<tags:school,telephone,door,etc> anywhere on the line so that html will not display those tags but they will be searchable. If you have a better idea pls share ;)

For displaying result I think I will use http://dhtmlx.com/docs/products/dhtmlxGrid/index.shtml so that the user would be able to edit anything just by clicking in to the box. Not sure if to implement other way of editing since this one seams easy and fast. Just adding and deleting of entries will have to be implemented somehow.

As to @headers:name, number, address, phone I think I will implement it exactly this way

As to @type: csv I think I would rather try to implement it directly by some kind of regular expression. Instead of typing @type: csv you would type @type: "^($1) | ($2)$" etc so you would be able to implement any kind of file. However there could be some predefined types such as csv... Suggestions are also welcome.

That is all for now, but I think more will come as I think it through and when I start coding ;)

BTW: does anybody here have experience with JS searching? what is the fastest way to search a file? to load it at once and then use search command on it or is it better to load it line after line and apply search to every line separately?

Also is it better to store former searchings in the memory for future use (only until you close FARR) => I guess it might be memory demanding, or to erase former search results and always start searching from the beginning?

Mouser: I know that SpreadSheet view you want to implement might be better for such a purpose but I would like to have tabs displayed all the time (also some additional info will be displayed all the time) so I need to use HTML view. That is why I asked you if it is possible to embed your SpreadSheet view into HTML view.

EDIT: just to mention. To search 7MB text file for "a" which finds 376906 occurences it takes on my pc less than 3 seconds. I do not know how fast are other languages but it seams reasonable to me ;)
As search is going to be a core function of the plugin here I present it and please tell me if anything is wrong => if there is a way how to make the function even faster ;)
Code: Javascript [Select]
  1. function search(file,search){
  2.   var out = new Array();
  3.   var index = 0;
  4.   objFile = fso.GetFile(path+"\\"+file);
  5.   objTS = objFile.OpenAsTextStream(1, 0);
  6.   strSearchThis = objTS.Read(objFile.Size);
  7.   objTS.Close();
  8.   var strlength = strSearchThis.length;
  9.   while(index < strlength){
  10.     var pos = strSearchThis.indexOf(search,index);
  11.     if(pos == -1) break;
  12.     else {
  13.       out[out.length] = pos;
  14.       index = pos+1;
  15.     }
  16.   }
  17.   return out;
  18. }

180
Find And Run Robot / Re: Instant infos via aliases?
« on: June 03, 2008, 12:27 PM »
I have an idea of this program in my mind and will start coding it immediately when new version of FARR is out. ;)

Pages: prev1 ... 31 32 33 34 35 [36] 37 38 39 40 41 ... 67next
Go to full version