topbanner_forum
  *

avatar image

Welcome, Guest. Please login or register.
Did you miss your activation email?

Login with username, password and session length
  • Monday November 10, 2025, 6:29 pm
  • Proudly celebrating 15+ years online.
  • Donate now to become a lifetime supporting member of the site and get a non-expiring license key for all of our programs.
  • donate

Recent Posts

Pages: prev1 ... 6 7 8 9 10 [11] 12 13 14 15 16 ... 53next
251
Living Room / Re: Infectious Greed: Dishwashers, and How Google Eats Its Own Tail
« Last post by housetier on December 20, 2009, 04:56 AM »
Well when you are looking for reviews you have to add "site:donationcoder.com" otherwise you won't get any honest results :)

I too have come to rely less on google for finding stuff. Rather, I use it to help me remember things. I remember a phrase and a site name, and giving that to google usually yields the desired url.

I do not trust online reviews anymore. For purchases I rely on real people I know personally. This is apparently a wide-spread problem. The other day I came across a unique webshop that seems to dissuade its customers from purchasing more:
Customers who did not buy this product also did not buy these products


It is a parody of course and imho it only emphasizes the importance of "Try before you trust". The less you know people the more truth is to that saying.

Other recommendation systems such as StumbleUpon, where I select who has an influence on recommendations could work better, but I have not enough experience yet. I fear these can be gamed just like amazon reviews.
252
The award could only go to a company that does not try to sell "security". They should be honest about what their product really does: attempt to lessen the likelihood of catching a worm, virus, or whatever. When they "guarantee 100% security" they are making fools of their customers.

But if they do educate their customers and try to raise their awareness about those "dangers" without resorting to panicking them, I think that should have a positive impact on the uhm awardiness(?).
253
General Software Discussion / Re: Anyone have any tips for ASCII formatting?
« Last post by housetier on December 19, 2009, 12:51 PM »
I think I see it now. And with the other mark ups you could color code the entries.

Well we finally have that sorted :) Now about the parser: do you have python installed on your PC?
254
General Software Discussion / Re: Anyone have any tips for ASCII formatting?
« Last post by housetier on December 19, 2009, 06:44 AM »
Still: How would the parser know which items to add to the generated TOC?
255
Living Room / Re: bookmarklet javascript - modfication help
« Last post by housetier on December 18, 2009, 12:46 PM »
I think they indeed have to written on one line. Prettying up made the code easier to read and change. Afterwards it has to be 'translated' into one line again I believe.

Since I have never used or changed a bookmarklet, I do not know for sure. It might be worth to try the big version...
256
ah now it is much clearer to me as well.

very good!
257
There is a comment now that says we force people to sign up. I wanted to rebut it but couldn't find the right words to explain how it works. All my attempts sounded too harsh...
258
Living Room / Re: bookmarklet javascript - modfication help
« Last post by housetier on December 17, 2009, 11:40 PM »
While I didn't answer your question I at least made it look pretty. Others might have it easier now to change the script. :)


Code: Javascript [Select]
  1. var auto = {
  2.     names: 'Steve Buscemi Catherine Keener Dermot Mulroney Danielle Zerneck James LeGros Rica Martens Peter Dinklage Kevin Corrigan Hilary Gilford Robert Wightman Tom Jarmusch Michael Griffiths Matthew Grace Ryan Bowker Francesca DiMauro',
  3.  
  4.     blurb: 'phpBB is a free, open source Internet community application, with outstanding discussion forums and membership management. Written in the PHP scripting language, and making use of the popular MySQL database, phpBB is a standard among web hosting companies throughout the world, and is one of the most widely-used bulletin board packages in the world. phpBB short-circuits the need for you to be a web development master in order to create and manage massive online communities',
  5.  
  6.     password: 'secret',
  7.  
  8.     fillerup: function() {
  9.         var all_inputs = document.getElementsByTagName('input');
  10.         var all_selects = document.getElementsByTagName('select');
  11.         var all_textareas = document.getElementsByTagName('textarea');
  12.  
  13.         for (var i = 0, max = all_selects.length; i < max; i++) {
  14.             var sel = all_selects;
  15.             if (sel.selectedIndex != -1&& sel.options[sel.selectedIndex].value) {
  16.                 continue;
  17.             }
  18.  
  19.             var howmany = 1;
  20.             if (sel.type == 'select-multiple') {
  21.                 var howmany = 1 + this.getRand(sel.options.length - 1);
  22.             }
  23.  
  24.             for (var j = 0; j < howmany; j++) {
  25.                 var index = this.getRand(sel.options.length - 1);
  26.                 sel.options[index].selected = 'selected';
  27.             }
  28.         }
  29.  
  30.         for (var i = 0, max = all_textareas.length; i < max; i++) {
  31.             var ta = all_textareas;
  32.             if (!ta.value) {
  33.                 ta.value = this.getRandomString(10)+ '\n\n'+ this.getRandomString(10);
  34.             }
  35.         }
  36.  
  37.         for (var i = 0, max = all_inputs.length; i < max; i++) {
  38.             var inp = all_inputs;
  39.             var type = inp.getAttribute('type');
  40.  
  41.             if (!type) {
  42.                 type = 'text';
  43.             }
  44.  
  45.             if (type == 'checkbox') {
  46.                 inp.setAttribute('checked', 'checked');
  47.             }
  48.  
  49.             if (type == 'radio') {
  50.                 var to_update = true;
  51.                 var name = inp.name;
  52.                 var input_array = inp.form.elements[inp.name];
  53.  
  54.                 for (var j = 0; j < input_array.length; j++) {
  55.                     if (input_array[j].checked) {
  56.                         to_update = false;
  57.                         continue;
  58.                     }
  59.                 }
  60.  
  61.                 if (to_update) {
  62.                     var index = this.getRand(input_array.length - 1);
  63.                     input_array[index].setAttribute('checked', 'checked');
  64.                 }
  65.             }
  66.  
  67.             if (type == 'password') {
  68.                 if (!inp.value) {
  69.                     inp.value = this.getPassword();
  70.                 }
  71.             }
  72.  
  73.             if (type == 'text') {
  74.                 if (!inp.value) {
  75.                     if (inp.name.indexOf('name') != -1) {
  76.                         inp.value = this.getRandomName() + ' ' + this.getRandomName();
  77.                     }
  78.                     else if (inp.name.indexOf('email') != -1) {
  79.                         inp.value = this.getRandomString(1) + '@example.org';
  80.                     }
  81.                     else {
  82.                         inp.value = this.getRandomString(1);
  83.                     }
  84.                 }
  85.             }
  86.         }
  87.     },
  88.  
  89.     getRandomString: function (how_many_words) {
  90.         if (!how_many_words) {
  91.             how_many_words = 5;
  92.         }
  93.  
  94.         if (!this.words) {
  95.             this.words = this.blurb.split(' ');
  96.         }
  97.  
  98.         var retval = '';
  99.  
  100.         for (var i = 0; i < how_many_words; i++) {
  101.             retval += this.words[this.getRand(this.words.length) - 1];
  102.             retval += (i < how_many_words - 1) ? ' ' : '';
  103.         }
  104.  
  105.         return retval;
  106.     },
  107.  
  108.     getRandomName: function () {
  109.         if (!this.split_names) {
  110.             this.split_names = this.names.split(' ');
  111.         }
  112.  
  113.         return this.split_names[this.getRand(this.split_names.length) - 1];
  114.     },
  115.  
  116.     getPassword: function () {
  117.         if (!this.password) {
  118.             this.password = 'secret';
  119.         }
  120.  
  121.         return this.password;
  122.     },
  123.  
  124.     getRand: function (count) {
  125.         return Math.round(count * Math.random());
  126.     }
  127. };
  128.  
  129. auto.fillerup()
259
General Software Discussion / Re: Anyone have any tips for ASCII formatting?
« Last post by housetier on December 17, 2009, 10:53 PM »
That looks doable. How would you mark items that should be listed in the TOC?
260
I just bought the Christmas Pack!

Even though I already purchased Machinarium before, it is still a very good deal. Especially when you consider they don't put DRM or any registration scheme in their games. They seem to treat their customers as such and not as potential criminals...

Anyway, this is a nice christmas present for myself :)
261
I like Machinarium, even though I have been stuck at that board game for ever now. It's the first game in over 10 years I actually bought.
262
General Software Discussion / Re: Anyone have any tips for ASCII formatting?
« Last post by housetier on December 13, 2009, 06:19 PM »
The markup could be whatever, there is no standard. And since a programmer would most likely program this parser from scratch, she/he could come up with whatever markup language (WML?) is suitable.
263
General Software Discussion / Re: Anyone have any tips for ASCII formatting?
« Last post by housetier on December 12, 2009, 12:01 PM »
The TOC in the output file can easily be generated from the input file (that is the file which you edit). However, I consider updating the TOC in the same file that you are editing difficult without any sort of mark up.
264
Yay for newsletter!
265
General Software Discussion / Re: Best Python IDE
« Last post by housetier on December 09, 2009, 10:26 AM »
The only commercial IDE that ever really delivered was Together from TogetherSoft. After they were bought by the JBuilder producers (forgot which name they had back then; it was changing frequently), it disappeared from my radar and hasn't popped up anywhere ever since.

I have had to work with JBuilder, VisualStudio and find them "too much": there is too much visual noise around my code to concentrate well. That soured my experience with commercial IDEs somewhat. However the problem also applies to free IDEs such as Netbeans or Eclipse.

Some of these are really great for refactoring though.
266
What matters most for me is the friendliness here. AFAIK donationcoder.com is the only tech-inclined online community that hasn't deteriorated into a troll cave after three years and I-don't-know-how-many members.

It just is pleasant to write posts.
267
N.A.N.Y. 2010 / Re: NANY 2010 - Prize Graphics
« Last post by housetier on December 08, 2009, 09:32 AM »
 ;D ;D ;D

This is fantastic, all the birds flock together for NANY2010!
268
General Software Discussion / Re: Anyone have any tips for ASCII formatting?
« Last post by housetier on December 07, 2009, 10:17 PM »
Would a seperate program work, that parses your text file and inserts the generated TOC at a specified location in the file? You know, like a really simple template engine>

                                  Paul's Notes

{{{TOC}}}

Entry 1
    Dear diary and so forth

    blah

Entry 2
    and then...


would become

                                  Paul's Notes
{{{TOC}}}
    Table of Contents
        Entry 1
        Entry 2
{{{/TOC}}}

Entry 1
    Dear diary and so forth

    blah

Entry 2
    and then...


Such a parser should be easy to program, but would need to be run after adding or removing entries.

Does the TOC have to be inserted in-place in the same file or is it acceptable to generate an output file --which is not supposed to be edited but only read-- from the original file?
269
Back then I liked Profit.
270
General Software Discussion / Re: Anyone have any tips for ASCII formatting?
« Last post by housetier on December 07, 2009, 01:07 PM »
The friend has responded and suggested to use org-mode and muse with emacs.

He further suggests to look into the emacs wiki.

Hope it helps! :)
271
Low German needs subtitles too for the others. But you rarely get to hear it these days, it's a dying language...

I have seen German subs for heavy swiss (Schwyzerdüütsch) accents too.
272
General Software Discussion / Re: Best Python IDE
« Last post by housetier on December 07, 2009, 03:06 AM »
If people don't need a "big IDE", but want something to help them code in python, there is bpython. It features a completion system similar to IntelliSense, which is quite neat. However, I haven't used bpython much myself, so I can't say how stable it is, or if there are annoyances.

I haven't used PIDA lately, because I couldn't get it to start. So for me it's back to vim and its sessions feature, which is all I need for now. I don't do much refactoring or gui stuff (yet)...
273
Living Room / Re: Tech News Hiatus
« Last post by housetier on December 07, 2009, 02:30 AM »
Interested readers could and should just go over your previous posts and go to the sources, then add the sites' feeds to their feed reader.

That way they won't miss as as much, at the price of having to digest much more than before.

People will miss the intelligent filtering for notably that you have provided...
274
General Software Discussion / Re: help needed: IE7 won't go online!
« Last post by housetier on December 06, 2009, 10:26 AM »
I agree with Carol. Isn't there a setting for "direct connection" or something along those lines.

DSL may sound like broadband, but the above screenshots look like configuring a dial-up connection.

275
General Software Discussion / Re: Anyone have any tips for ASCII formatting?
« Last post by housetier on December 06, 2009, 06:29 AM »
There are several markup languages that use ascii input to generate various outputs: markdown, asciidoc, textile. However, none of these generate a TOC in the ascii document itself. They are just markup languages like html or that dreaded [[wiki markup]] and need further processing to look pretty.

I wonder if an outliner thingie like The Vim Outliner (TVO) can help you organize things. Although it seems the site is a little old. According to the snippet on google result, TVO has automatic generation of TOC. But you need to know your way around vim for TVO to be useful.

I'll ask a friend for a solution with emacs; it seems to me emacs would be able to do this sort of ascii-based word processing.
Pages: prev1 ... 6 7 8 9 10 [11] 12 13 14 15 16 ... 53next