Welcome Guest.   Make a donation to an author on the site April 24, 2014, 02:03:24 PM  *

Please login or register.
Or did you miss your validation email?


Login with username and password (forgot your password?)
Why not become a lifetime supporting member of the site with a one-time donation of any amount? Your donation entitles you to a ton of additional benefits, including access to exclusive discounts and downloads, the ability to enter monthly free software drawings, and a single non-expiring license key for all of our programs.


You must sign up here before you can post and access some areas of the site. Registration is totally free and confidential.
 
The N.A.N.Y. Challenge 2011! Download 30+ custom programs!
   
  Forum Home Thread Marks Chat! Downloads Search Login Register  
  Show Posts
      View this member's profile 
      donate to someone Donate to this member 
Pages: Prev 1 2 3 4 [5] 6 7 8 9 10 ... 19 Next
101  Other Software / Developer's Corner / Re: Google Rankage, a FF GM script for adding numbers next to google search results on: March 05, 2009, 01:32:20 PM
Just a side note, when I set out for the task of getting numbers next to the google search results, in the html, the results are actually inside an OL, which is suppose to order LI's by default.. but the google css overrides it with list-style-type: none, and list-style-position: outside, if you change these to values to some thing appropriate (such as
list-style-type: numerals and list-style-position: inside) the numbers will then show up smiley So you could just set a class on the OL and set the LI styles to make the numbers appear (as they should).. etc. I decided to do it a diff/longer way ^.
102  Other Software / Developer's Corner / Google Rankage, a GM script for adding numbers next to google search results on: March 05, 2009, 01:20:40 PM
Google Rankage, a GM script for adding numbers next to google search results, making it easy to see their positions (saves counting Wink.

[attach=1]


Formatted for Javascript with the GeSHI Syntax Highlighter [copy or print]
  1. // ==UserScript==
  2. // @name            Google Rankage BETA
  3. // @author          mitzevo <http://mitzevo.dcmembers.com/>
  4. // @description     Google Rankage, a GM script for adding numbers next to google search results, making it easy to see their positions (saves counting ;)).
  5. // @include         http://google.*/*
  6. // @include         http://www.google.*/*
  7. // ==/UserScript==
  8.  
  9.  
  10. // todo: filter out news and shopping results on first page.. making the first page appear to have 11 or 12 results..
  11. // todo: improve chinese listings beyond the 100.. probably improve/optimize/compact the code at a later stage or sum thin..
  12. // todo: on google.cn some pages are not showing the numbers, have to debug that.
  13. // todo: when logged into google account, results don't show numbers.. debug.
  14.  
  15. (function() {
  16. var lang; //Display numbers in English or Chinese ('en' or 'zh')?:
  17. lang = 'en';
  18.  
  19. var langhash = new Array(); //unicodes for english and chinese numbers
  20. langhash['en'] = new Array(); langhash['zh'] = new Array();
  21. langhash['en'][0] = "\u0030"; langhash['zh'][0] = "\uLING";
  22. langhash['en'][1] = "\u0031"; langhash['zh'][1] = "\u4e00";
  23. langhash['en'][2] = "\u0032"; langhash['zh'][2] = "\u4e8c";
  24. langhash['en'][3] = "\u0033"; langhash['zh'][3] = "\u4e09";
  25. langhash['en'][4] = "\u0034"; langhash['zh'][4] = "\u56db";
  26. langhash['en'][5] = "\u0035"; langhash['zh'][5] = "\u4e94";
  27. langhash['en'][6] = "\u0036"; langhash['zh'][6] = "\u516d";
  28. langhash['en'][7] = "\u0037"; langhash['zh'][7] = "\u4e03";
  29. langhash['en'][8] = "\u0038"; langhash['zh'][8] = "\u516b";
  30. langhash['en'][9] = "\u0039"; langhash['zh'][9] = "\u4e5d";
  31. langhash['en'][10] = "\u0039"; langhash['zh'][10] = "\u5341";
  32. //langhash['en'][11] = "\u0031\u0030"; langhash['zh'][11] = "\u5341\u4e00"; //.. we will generate the sequence later instead of hardcoding.
  33.  
  34. var start = window.location.href.match("start=([0-9]+)"); //get the start param value from the loaded/loading/gs'd page..
  35. start = (start == null)? 0 : start[1]; //alert("start = "+start); // ^if it doesn't exist, it's a fresh page/first page listing.
  36. var page = start/10 + 1; //page = (pos == 0)? 1 : (pos/10 + 1); alert("page = "+page);
  37. var pos = start; //pos = start;
  38.  
  39. //find out which <ol> contains the organic results by matching the footprint.. (easily found when comparing the html source of a few G queries)
  40. var ol = document.getElementsByTagName("ol")[0]; // let's try the first one..
  41. ol = (ol.innerHTML.substr(0,8) == '<!--m-->') ? ol : document.getElementsByTagName("ol")[1]; //does the first match the footprint? if not, it's the second one we're after
  42. ol = (ol.innerHTML.substr(0,8) == '<!--m-->') ? ol : document.getElementsByTagName("ol")[2]; //does the second match the footprint? if not, it's the thirc one we're after
  43. ol = (ol.innerHTML.substr(0,8) == '<!--m-->') ? ol : document.getElementsByTagName("ol")[3]; //does the third match the footprint? if not, it's the fourth one we're after
  44. var lis = ol.getElementsByTagName('li');
  45. for(var i = 0, li; li = lis[i]; i++){
  46. if(li.className=='g'){
  47. var ones, tens, position;
  48. pos++;
  49. if(pos < 10){
  50. position = langhash[lang][pos];
  51. }else if(pos < 100){
  52. position = String(pos);
  53. tens = langhash[lang][position.substr(0,1)]; ones = langhash[lang][position.substr(1,1)];
  54. if(lang == 'en'){
  55. position = tens+ones
  56. }else{
  57. if(pos > 9 && pos < 20)
  58. position = (pos != 10)? langhash['zh'][10]+ones : langhash['zh'][10];
  59. else if(pos > 19 && pos < 100)
  60. position = (pos != 20 && pos != 30 && pos != 40 && pos != 50 && pos != 60 && pos != 70 && pos != 80 && pos != 90)? tens+langhash['zh'][10]+ones : tens+langhash['zh'][10];
  61. else
  62. position = tens+langhash['zh'][10]+ones;
  63. }
  64. }
  65. li.innerHTML = '<span style="color: black; background-color: yellow; font-family: tahoma; font-size: 11px; font-weight: bold; border: none; padding: 1px 3px 2px 3px;"><a title=\''+position+'\'>'+position+'</a></span> '+li.innerHTML;
  66. }
  67. }
  68. })();

I know there are lot of search/seo tools (browser extensions, softwares, scripts, etc.) that already include the feature of adding numbers next to search listing, but I just wanted to make a small script just for my use - I thought I'd share it, and there it is in beta form smiley It's not much, but it does have an option to specify to display ENGLISH or CHINESE numbers which I think is pretty cool considering I've never coded any thing with any type of language support tongue and because it gave me a small task to achieve.

You can add this to GM by saving this code as a new file, probably google_rankage.user.js (must have the .user.js ending), and dropping the file into Firefox (assusming GM is indeed installed and enabled!)
103  Special User Sections / Site/Forum Features / Re: Dc Member Blog Idea - Feedback Requested on: March 04, 2009, 04:58:27 AM
Nah, dont merge it with the main blog, would be better as a seperate blog where certain DC members/coders have a posting account where they can post about any thing they want such as their personal project updates, small tutorials, tips for apps, etc. and then all the posts from the members would be aggregated together making the blog index and content. Since there would be a few coders/writers, things could range from regex, mod_rewrite, to svn, web dev, seo, software dev,  etc. ect. in relatively small time..

Great minds think alike Wink So if some one ends up on this new blog (after seeking what ever they wanted), good chance they'll check out a few other posts and eventually find theretheir way to the main DC site.. any ways, isn't it just blog just for members, so it doesn't matter if it directly relates to the "best of blog" or the main DC site, it's just a small home where those members can post if they want to right? smiley
104  Main Area and Open Discussion / General Software Discussion / Re: Scripting vs. Programming on: March 03, 2009, 09:59:39 PM
another organization question.. code? script? programming? lol depends on the thinker.
105  Main Area and Open Discussion / Living Room / Re: Should I switch from Dreamhost? on: February 22, 2009, 04:05:29 PM
I'd stay with them. Over the years I've always heard of the incredible features/space/etc. they give you for really good prices, etc. But yeah, different experiences in different circles. Never seen any bad comments/feedback on dreamhost.. well I haven't researched.. tongue
106  Other Software / Developer's Corner / Re: CodeIDE: the online IDE that works in your browser on: February 21, 2009, 03:14:09 PM
Sorry app, I didn't realize the original post was so old! Good research/findings on the poster, this is not a place to be advertising things! tongue
107  Other Software / Developer's Corner / Re: CodeIDE: the online IDE that works in your browser on: February 21, 2009, 02:16:00 PM
Wow that's pretty nice! Would be good for people new to programming and wanting to get into dev fast with downloading any compilers, or software.. etc. Still, nothing close to having your own setup/evn for coding or learning to code :>
108  Other Software / Assembly / Re: What version of assembly? Any on: February 12, 2009, 10:23:03 AM
Just has to be an Assembly area doesn't there!  Grin
109  Main Area and Open Discussion / General Software Discussion / Re: Make Firefox 3 load faster on: February 12, 2009, 07:48:36 AM
Run Firefox with no more than 3 extensions/addons and your ok!  Cool
110  Other Software / Found Deals and Discounts / Re: Acronis TrueImage 10 available for free on: February 05, 2009, 04:52:25 AM
Yeah, the server has been getting slammed by registrations since the link has been up.. lol.. keep trying.. you'll get the registration email soon or later..

Quote
Personally, I would have preferred version 9 - but you "don't look gift horses yada-yada-yada" as the saying goes.

Why do you prefer version 9 over 10? Is there no difference?

edit: up as in around the net
111  Main Area and Open Discussion / General Software Discussion / Re: Windows editors - do they have to be so bad? on: February 03, 2009, 06:30:02 AM
I don't see how [most] Windows (oh..text) editors [that you had tried] not having the features you specifically wanted are so bad. Your requirements are  not really cattered to from your findings so far .. no?

Grin




112  News and Reviews / Mini-Reviews by Members / Re: Mini-Review: Altiris SVS on: February 01, 2009, 08:46:53 PM
Any updates recently? Any new users/comments for this software virtualization app? I would like to try, but the acquisition has kinda scared the shit outta me.
113  DonationCoder.com Software / JGPaiva's Ahk Tools / Re: GridMove discussion. on: February 01, 2009, 08:36:25 PM
setup file is corrupt dude.. can you post in one central place when u rls new stuff for gridmove?

Makes it easy to keep an eye on updates, additions, new grids, etc.


114  DonationCoder.com Software / JGPaiva's Ahk Tools / Re: GridMove simple grid maker on: February 01, 2009, 08:29:39 PM
hey, I've just thought of this now.. so how about.. since I'm pretty lazy right now to make any custom grids, how about making a "GridBuilder" that can easily make some grids.. cheesy ? Where you could select regions in a window (representing the desktop), as well as set regions..


115  Main Area and Open Discussion / General Software Discussion / Re: Awesome article re: organization and notetaking on: January 29, 2009, 09:20:09 AM
wow nice find, very good read. I've had my time with thinking about good orginzation methods, etc. file hiearchirse, the use of tagging, how to categorize by, type, company name, software name, task description, etc. and have spent quite (probably too much) time worrying about how i organize my files instead of getting shit done.. so in the end i think orngazingin is overated, and people these days have too much data than needed.. any thing they really need is close by in their memory (head)..


if u wanna get too carried away with heierachy, its never gonna work, you wont be able to sort the files.. u have to put into cosideration the file type (mpg, mp3, doc, zip, jpg, etc.), weather it is actual "working data" or program setup files.

And then you have the filesystem limitations on Windows for example, if you are organinzing by file purpose



symlinks, hardlinks, etc. ofcourse on *nix, it's not much of a thing.

u also have to put into considerationm, are you catergorizng for your self? or others? very important question in terms of sorting alot of content.. are u sorthing this repository for your self for the future for easy retrieveal when you need it? or away you think some day some one might find your collection of things useful.. people organize things differently,

this is a rough draft.. will clean up later (missing parts of text). it's what ive come to find any ways while orgnazing, software, source code, backups, media, etc.
116  Main Area and Open Discussion / General Software Discussion / Re: Google Chrome -- a new browser coming (in beta) in a few hours on: January 29, 2009, 08:59:02 AM
Chrome antics: did Google reverse-engineer Windows?

Quote
A close look at Chrome's source code suggests that Google has reverse engineered Windows. The goal? Improved security, which is very laudable, but there's just one small problem: reverse engineering is expressly forbidden by the Windows EULA.

 Grin
117  Main Area and Open Discussion / Living Room / Re: Who else is sick of difficult word verifications on the web? on: December 18, 2008, 03:10:37 AM
A few interesting links:

PWNtcha - captcha decoder



I just saw "Goatse" for the first time from that link! Where's the emoticon for stabbing out my eyes?



Looks like you found the blowing out the brains one.. rofl smiley  Grin
118  Main Area and Open Discussion / Living Room / Re: How to tell if your cat is plotting to KILL you on: November 27, 2008, 10:03:44 AM
Cute.
119  Main Area and Open Discussion / Living Room / Re: Where the hell is Ralf Maximus? on: November 27, 2008, 10:01:23 AM
* mitzevo waves
120  Other Software / Developer's Corner / Re: DC loads fast. What is the secret. on: November 20, 2008, 09:12:16 AM
yeah that's true, trolls wouldn't even last a week.. and maybe the fact that DC doesn't get much of them signing up is because the main thing new people see is the "donation" part of DC, then all the calls to actions about signing up to the forum, donating, etc. and by that time they are thinkg wtf and are usually out [therefor not bothering to sign up, and make a post or 10]

that would pretty much turn away most trolls/trouble makers..

Plus I think because the website design is sorta old school .. lol

People who are into their software and coding usually reside at DC longterm because they appreciate it.
121  Other Software / Developer's Corner / Re: DC loads fast. What is the secret. on: November 20, 2008, 08:57:34 AM
Get a grip f0dder Grin
122  Other Software / Developer's Corner / Re: Best way to sync programming projects? on: October 23, 2008, 06:50:25 AM
Yeah, and once you do learn how to use SVN for code projects, web dev, etc. you might even start using it for regular files ; )
123  News and Reviews / Older Newsletters / Re: DonationCoder.com Article - One Year Report on our Experiments with Donationware on: October 22, 2008, 04:18:26 AM
Quote
Iirc we've seen one or two posts from people who couldn't remember signing up for the newsletter who thought they were being spammed,

Idiots. They probably couldn't remember parking their car in some one elses garage either.
124  Main Area and Open Discussion / General Software Discussion / Re: which Linux version for my laptop on: October 22, 2008, 04:02:09 AM
Ubuntu.. all linux newbies should start with Ubuntu.. no matter if it's for your pc, laptop, phone, etc.
125  Main Area and Open Discussion / Living Room / Re: Things your kids will never know - old school tech! on: October 21, 2008, 06:38:29 AM
They will know if you tell 'em Wink
Pages: Prev 1 2 3 4 [5] 6 7 8 9 10 ... 19 Next
DonationCoder.com | About Us
DonationCoder.com Forum | Powered by SMF
[ Page time: 0.064s | Server load: 0.2 ]