topbanner_forum
  *

avatar image

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

Login with username, password and session length
  • Saturday November 15, 2025, 8:26 am
  • 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 ... 11 12 13 14 15 [16] 17 18 19 20 21 ... 46next
376
I don't know, perhaps John Gruber has a point in saying that Windows 8 comes from their desire to try to have the same interface on all devices in the hope that that interface will be Windows. But phones and desktop computers are not the same, and are not used for the same things, so the same interface will not work.
377
DC Gamer Club / Re: My Initial Impressions of The Elder Scrolls Online
« Last post by Jibz on February 16, 2014, 02:08 PM »
Did they lift the NDA?

Edit: Seems so: http://elderscrollso...-beta-nda-has-lifted

:Thmbsup:
378
Living Room / Re: What Google Plus is all about
« Last post by Jibz on February 15, 2014, 01:41 PM »
Google Plus, the company’s social network, is like a ghost town

First sentence being false makes me not want to read the rest. I have only ~200 friends and member of a handful of communities and there is lots going on.

My personal experience is also that there is a lot going on. So much in fact, I should probably turn down the volume of some of my circles, because I can't keep up.

I think if you include the rest of the paragraph, he perhaps does make some sense:

Google Plus, the company’s social network, is like a ghost town. Want to see your old roommate’s baby or post your vacation status? Chances are, you’ll use Facebook instead.

The thing is, I find these kind of facebook updates (which is all I am seing on facebook) to be horrible. On G+ I have found new and engaging people and content, on facebook I have found duckface selfies and "Took the kids to socker practice" posts.

But I know a lot of people are interested in the stuff that facebook offers them, and those people will stick to it, and to them G+ could seem like a "ghost town", in the sense that their family and friends aren't there (yet).
379
Coding Snacks / Re: Binary Search Tree help
« Last post by Jibz on February 13, 2014, 03:40 AM »
A static variable should work as well, you just have to remember that it is initialized at program start, so you will need some way to reset it between uses.

You could also pass and return an int that contains the total number of integers printed so far.

But this being C++, perhaps a better solution would be to create a little helper class, which wraps an ostream, and then pass it to your function. This way, you have removed the details of how the numbers are printed from the traversal, and you can reuse it if you have to print the tree in some other order as well.

Spoiler
Disclaimer: this was written rather quickly, might not work as intended ;D

Code: C++ [Select]
  1. class NumberPrinter {
  2.         std::ostream &to;
  3.         const int lim;
  4.         int num;
  5.  
  6. public:
  7.         NumberPrinter(std::ostream &to, int lim) : to(to), lim(lim), num(0) { ; }
  8.  
  9.         void reset() { num = 0; }
  10.  
  11.         void print_number(int n)
  12.         {
  13.                 to << std::setw(6) << std::right << n;
  14.  
  15.                 if (++num == lim) {
  16.                         to << std::endl;
  17.                         num = 0;
  18.                 }
  19.         }
  20.  
  21.         void finish()
  22.         {
  23.                 if (num > 0) {
  24.                         to << std::endl;
  25.                         num = 0;
  26.                 }
  27.         }
  28. };
  29.  
  30. // for convenience
  31. NumberPrinter &operator<<(NumberPrinter &np, int i)
  32. {
  33.         np.print_number(i);
  34.         return np;
  35. }
  36.  
  37. // your traversal function
  38. void inOrderDisplay(bstNode *nodeToDisplay, NumberPrinter &np)
  39. {
  40.         if (nodeToDisplay == NULL) return;
  41.         inOrderDisplay(nodeToDisplay->left, np);
  42.         np << nodeToDisplay->integer;
  43.         inOrderDisplay(nodeToDisplay->right, np);      
  44. }
  45.  
  46. // print 10 numbers per line to cout
  47. NumberPrinter np(std::cout, 10);
  48. inOrderDisplay(root, np);
  49. np.finish();

380
General Software Discussion / Re: hubiC, DropBox like service with interesting pricing
« Last post by Jibz on February 09, 2014, 02:31 AM »
Redundant storage does not provide privacy, but secure data does not only mean private data.

Also, it could be a plus to some people that the servers are not located in the US.

I don't know if this one is going to be useful, but for unimportant data, 25 GB of free storage is welcome.
381
General Software Discussion / Re: hubiC, DropBox like service with interesting pricing
« Last post by Jibz on February 07, 2014, 09:46 AM »
Don't think so, but you can save the PDF and then upload it to Google Translate.
382
General Software Discussion / hubiC, DropBox like service with interesting pricing
« Last post by Jibz on February 07, 2014, 05:09 AM »
Via HN, hubiC is what looks like a DropBox like service at a fraction of the cost.

I hope some competition in this market will bring the prices down :Thmbsup:.
383
General Software Discussion / Re: Malwarebytes is moving away from lifetime licenses
« Last post by Jibz on February 06, 2014, 09:03 AM »
Maybe uninstall/reinstall is needed?

Looks like it, plus some rebooting, if you read for instance this forum post:

https://forums.malwa....php?showtopic=63720
384
General Software Discussion / Re: Malwarebytes is moving away from lifetime licenses
« Last post by Jibz on February 06, 2014, 02:36 AM »
Thank you for the heads up indeed :Thmbsup:.

And I agree, this is a nice way to handle it (unlike some we've seen recently).
385
Developer's Corner / Re: Koding.com and the great 100TB giveaway
« Last post by Jibz on January 31, 2014, 08:34 AM »
Not quite sure what I am going to use it for, but I signed up and gave one of you some extra space anyway ;D.
386
Developer's Corner / Re: The Descent to C - introduction to C from a HLL perspective
« Last post by Jibz on January 29, 2014, 08:51 AM »
The author, Simon Tatham, is the guy who wrote the PuTTY SSH client, btw.
387
Developer's Corner / The Descent to C - introduction to C from a HLL perspective
« Last post by Jibz on January 29, 2014, 07:49 AM »
I think this is an excellent introduction to what makes C different than most modern high level languages:

http://www.chiark.gr.../~sgtatham/cdescent/

This article attempts to give a sort of ‘orientation tour’ for people whose previous programming background is in high (ish) level languages such as Java or Python, and who now find that they need or want to learn C.

C is quite different, at a fundamental level, from languages like Java and Python. However, well-known books on C (such as the venerable Kernighan & Ritchie) tend to have been written before Java and Python changed everyone's expectations of a programming language, so they might well not stop to explain the fundamental differences in outlook before getting into the nitty-gritty language details. Someone with experience of higher-level languages might therefore suffer a certain amount of culture shock when picking up such a book. My aim is to help prevent that, by warning about the culture shocks in advance.

This article will not actually teach C: I'll show the occasional code snippet for illustration and explain as much as I need to make my points, but I won't explain the language syntax or semantics in any complete or organised way. Instead, my aim is to give an idea of how you should expect C to differ from languages you previously knew about, so that when you do pick up an actual C book, you won't be distracted from the details by the fundamental weirdness.
388
And while we're at it, be warned that SugarSync will become a paid only service on February 8, 2014.  If you have been using their free service, you have until then to move your data elsewhere or either pay for it or lose it.   Ransomware?

Interesting. I was about to make a post because I had a free SugarSync account, which I had not used much.

So I apparently forgot to log in to it in the past three months, and received what I first thought was a friendly reminder that I had to log in to keep my account, but turned out to be "pay or we delete your account", without much attempt to SugerCoat it:

Your Account Will Be Deleted

Hello,

You have not used your SugarSync account in over three months. SugarSync periodically deletes accounts that have been inactive for 3 months. To save your data from deletion, please take one of the following actions in the next 7 days:

  • Upgrade to an annual plan and never worry about account expiration again.
  • Remove your data from SugarSync by following these directions.
389
Living Room / Re: Hard Drive Brand Reliability Data
« Last post by Jibz on January 22, 2014, 04:14 AM »
Even if their use is a special case to some extent, I think a failure rate of over 10% is bad.
390
General Software Discussion / Re: Easy remote access to my home pc?
« Last post by Jibz on January 21, 2014, 09:59 AM »
LogMeIn is apparently shutting down the free service as well.
391
General Software Discussion / Re: How to repair zip files?
« Last post by Jibz on January 15, 2014, 05:25 AM »
This zip format does not contain any recovery data I am afraid. The best you can hope for, is being able to decompress files skipping the parts that are corrupted.

If the data record that lists the files is intact, you can try 7-Zip or Info-ZIP UnZip, which both do not mind continuing after a corrupt file.

If not, you will probably need some tool to repair it. WinRAR has some support for reconstructing, and searching for 'zip repair' gives some hits that might work as well (Zip Repair as mentioned by tomos might be worth a shot).
392
N.A.N.Y. 2014 / Re: N.A.N.Y. 2014 - New Apps for the New Year - Welcome Thread
« Last post by Jibz on January 03, 2014, 06:53 AM »
I count 39 apps for this year's NANY.

Quick, someone travel back in time and release one more app! ;D
393
N.A.N.Y. 2014 / Re: NANY 2014 Roundup Prep
« Last post by Jibz on January 02, 2014, 03:00 PM »
Sounds like a good idea, I added a couple of videos for my "entry" :Thmbsup:.
394
N.A.N.Y. 2014 / Re: N.A.N.Y. 2014 Special: gaioNiBBLES, old DOS game
« Last post by Jibz on January 02, 2014, 02:55 PM »
Here is a short video of single player:



And a two player game (where my son does a fine job of blocking me ;D):

395
General Software Discussion / Re: Free version of XYplorer is back
« Last post by Jibz on January 02, 2014, 01:03 PM »
According to that list, the free version does not support making coffee, so that rules it out for me sadly. Glad I have a lifetime license, so my coffee is secured ;D.
396
Found Deals and Discounts / Re: You Need a Budget 4 - 75% off (Steam version)
« Last post by Jibz on January 01, 2014, 02:57 PM »
Looks like it's 75% off again today, Jan 1st.
397
Living Room / Re: HAPPY NEW YEAR TO ALL OF DONATIONCODER - 2014!
« Last post by Jibz on January 01, 2014, 04:38 AM »
Happy new year folks :-*
398
General Software Discussion / Re: myWOT uninstall
« Last post by Jibz on December 17, 2013, 02:54 AM »
As for #2, i do think WOT can be gamed, and probably *is* being gamed -- though not nearly as much as most of the damn internet services we use every day.  every major successfull (and trying to be successful) internet service is gamed to high heaven, both from inside the company -- to fakely inflate the apparent popularity, and by external people who pay to have fake accounts and content and upvotes and likes, etc.  It's the nature of our current system that such gaming takes place and has become a solid business model.  it sucks.  It's fair to complain when companies encourage this or don't do much about it.  I don't know enough about WOT to judge them on this.

Like most things in the real world, WOT involves competing interests. The interests of most users would be to get reliable information about the safety and reliability of a website. The users who have gained more prestige in the system OTOH have an interest in being more equal than all the other animals. And of course WOT's owner gains most if the breadth and depth of site rankings grows exponentially since that's what makes it useful - or not.

WOT is one of those things that work great in theory, but has some problems in practice because humans are, well, human.

Take for instance one of my sites, which has been a home for some of my software projects over the past ten years. If you google the site with WOT installed, you see a yellow circle warning you that the site is not trustworthy, not safe for children, and contains "hate, discrimination". All of this is based on a grand total of two ratings.

If you have enough people rating a site, then the numbers should even out the people who may have a special interest. Not only the ones who are somehow affiliated with (or paid by) a site or it's competitors, but also the people who rate sites with little or no effort to actually check their claims, in order to increase their rating score on WOT.

To some degree, I can understand if some companies were tempted to try to balance out such bogus ratings.

That being said, I have found WOT to be helpful in many cases, but I think it is important to check the scorecards to see what a given rating is based on.
399
N.A.N.Y. 2014 / Re: N.A.N.Y. 2014 Special: gaioNiBBLES, old DOS game
« Last post by Jibz on December 17, 2013, 01:58 AM »
I found "slow speed" harder because the "tail" seemed to grow far faster somehow.

I "just ran it"; there was no music.

I tried running it directly on a 32-bit WinXP box here, and it was kind of hard to control because the sync between the graphics and the keyboard were off. And the music won't work, since it requires something AdLib compatible like an old SoundBlaster card. DOSBox emulates the SB16 and the graphics vsync works.

But it's cute! Do you feel like making any mods to the code? I would appreciate a "laser lock mode".

It sounds like a good idea, but I am afraid it would take a while to figure out how the code works again, and even longer to remember all the 16-bit DOS programming details. It would probably be easier to rewrite it in Windows -- who knows, maybe next year :P.

P.s. the font use is hysterical! 15 years ago did you think that was Da Kewlness? Heh it's like my chess nany app, it showed the tail end of my adoration of the Matrix etc. Ah, I miss the Old Days when computing was fun!

Hahaha, yes, I probably thought that was pretty cool back then. Also, it was one of those "my friend is making a nibbles game, well I am going to throw together an even better one, with networking!" late night coding things :-*.
400
N.A.N.Y. 2014 / N.A.N.Y. 2014 Special: gaioNiBBLES, old DOS game
« Last post by Jibz on December 16, 2013, 10:42 AM »
New Apps for the New Year. Out with the old in with the new. New, new, new, all this focus on new >:(.

As a counterweight (and because I didn't manage to come up with a good idea for this year, but don't tell mouser), I decided to release this little DOS 16-bit game, which I wrote roughly 15 years ago! ;D

gnib.png

It's a fairly simple clone of the classic Nibbles game. It features two-player and deathmatch modes, AdLib music, and (broken) IPX networking.

gnib_play.png

I thought the source was lost in a computer upgrade at some point, but I recently found a CD with a backup that contained this game, among other relics :-[.

In order to assemble the game itself you will need TASM. The level and music data files can be assembled with NASM.

To run the game, I recommend using DOSBox. If you are on 32-bit Windows, you might be able to run the executable directly, but the graphics and sound will most likely be off compared to the result you would get with DOSBox.
Pages: prev1 ... 11 12 13 14 15 [16] 17 18 19 20 21 ... 46next