topbanner_forum
  *

avatar image

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

Login with username, password and session length
  • Saturday September 19, 2026, 12:45 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 ... 327 328 329 330 331 [332] 333 334 335 336 337 ... 404next
8276
You could also use encryption, and get it from a file if you want to use FTP.

Code: C# [Select]
  1. using System;
  2. using System.Security.Cryptography;
  3. using System.Text;
  4.  
  5. namespace Coderz808
  6. {
  7.     public static class EnDeCrypter
  8.     {
  9.         // Set this to some personalized crypto key
  10.         private const string cryptoKey = "someSortOfCryptoKey";
  11.  
  12.         // The Initialization Vector for the DES encryption routine (choose 8 personalized bytes)
  13.         private static readonly byte[] IV =
  14.             new byte[8] { 140, 103, 145, 2, 10, 176, 173, 9 };
  15.  
  16.         /// <summary>
  17.         /// Encrypts provided string parameter
  18.         /// </summary>
  19.         internal static string Encrypt(string s)
  20.         {
  21.             if (s == null || s.Length == 0) return string.Empty;
  22.  
  23.             string result = string.Empty;
  24.  
  25.             try
  26.             {
  27.                 byte[] buffer = Encoding.ASCII.GetBytes(s);
  28.  
  29.                 TripleDESCryptoServiceProvider des =
  30.                     new TripleDESCryptoServiceProvider();
  31.  
  32.                 MD5CryptoServiceProvider MD5 =
  33.                     new MD5CryptoServiceProvider();
  34.  
  35.                 des.Key =
  36.                     MD5.ComputeHash(ASCIIEncoding.ASCII.GetBytes(cryptoKey));
  37.  
  38.                 des.IV = IV;
  39.                 result = Convert.ToBase64String(
  40.                     des.CreateEncryptor().TransformFinalBlock(
  41.                         buffer, 0, buffer.Length));
  42.             }
  43.             catch
  44.             {
  45.                 throw;
  46.             }
  47.  
  48.             return result;
  49.         }
  50.  
  51.         /// <summary>
  52.         /// Decrypts provided string parameter
  53.         /// </summary>
  54.         internal static string Decrypt(string s)
  55.         {
  56.             if (s == null || s.Length == 0) return string.Empty;
  57.  
  58.             string result = string.Empty;
  59.  
  60.             try
  61.             {
  62.                 byte[] buffer = Convert.FromBase64String(s);
  63.  
  64.                 TripleDESCryptoServiceProvider des =
  65.                     new TripleDESCryptoServiceProvider();
  66.  
  67.                 MD5CryptoServiceProvider MD5 =
  68.                     new MD5CryptoServiceProvider();
  69.  
  70.                 des.Key =
  71.                     MD5.ComputeHash(ASCIIEncoding.ASCII.GetBytes(cryptoKey));
  72.  
  73.                 des.IV = IV;
  74.  
  75.                 result = Encoding.ASCII.GetString(
  76.                     des.CreateDecryptor().TransformFinalBlock(
  77.                     buffer, 0, buffer.Length));
  78.             }
  79.             catch
  80.             {
  81.                 throw;
  82.             }
  83.  
  84.             return result;
  85.         }
  86.     }    
  87. }
8277
Living Room / Re: need recommendation for an onlne computer store
« Last post by wraith808 on May 14, 2011, 09:05 AM »
Looking for some recommendations for a quality place to purchase computers, parts, etc., here in the United States.  I am familiar with Newegg and Tiger Direct, but was looking for other places that have quality products, good sales dept.
Another vote for Amazon, and I also use Newegg.  The reason for those two is the shipping, which might help you out.  Especially if you get Amazon Prime.  You can get free two day shipping, and upgrade to 1 day for $3.99 a part.  And they pay return shipping if it's their fault (missed shipping date, or defective item), which most other places (including newegg) don't.  Not something to be overlooked when doing this.

I was just thinking about expanding my horizons as a school tech to the public sector and was looking for a good place to get hooked up with.  I realize that on price alone, i probably cannot compete with Walmart but alot of people are telling me they want service more than price.  Sooooo, maybe its time that I jumped on the band wagon!

Not to discourage you- but to give you an idea of something to watch out for.  I tried something similar to supplement my income at one time, and the two biggest problems I had were:
1. People only meaning "they want service more than price" until they got the invoice, and
2. People expecting way more than anyone would give them for 10x the price
3. People view any additions to the cost of doing business as you trying to jack up the price

My worst case...
I built a computer for a family member who needed something to get on the net and do basic word processing.  Priced a couple of options, laying out the advantages/disadvantages of each- and they picked the lowest cost options- just wanted a computer to get on the net.  First complaint- it won't play my son's games!  Second complaint was that it was getting slower and slower.  So I went over to check it out, and they had a pretty bad virus infection- multiple viruses, botted, you name it it was there.  I checked the AV, and it wasn't running... I thought a virus might have disabled it, but I asked anyway, and they said they had to turn it off to install a game, and had forgotten to re-enable it.  I told them it was a virus, and it would take a lot of time to clean up- or I could re-install, but either one was going to have a cost associated with it. but they didn't want to pay, and were quite mad that I'd sold them a computer, but now they had no computer to use.
8278
Living Room / Re: Farewell Skype ...
« Last post by wraith808 on May 10, 2011, 07:55 PM »
Take Windows Defender as an example - they bought up another anti-spyware product and made a complete hash of it.
-Carol Haynes (May 10, 2011, 05:16 PM)

I don't think that's entirely accurate.  Isn't MSE based on Windows Defender?  And to be sure, MSE is decent enough AV that I run it and nothing else.
8279
Living Room / Re: Farewell Skype ...
« Last post by wraith808 on May 10, 2011, 02:32 PM »
Since the Linux version received about as much attention as I give beetles in Mongolia, MS taking it over is simply more un-good news. :-\

On a side note, what is it with independent services getting bought up by big conglomerates?
I understand the dynamics, but isn't there anybody who refuses to sell out?
Or is that simply the name of the game?  :mad:


I think it is easy to say "I will not sell out"....until you see a check or cash sitting in front of you. Then, it becomes a whole new story.

Also, there's the fact that if I don't sell out someone will... and they'll have a check, and I'll have a whole new set of headaches from the new 800lb gorilla in the field...
8280
I haven't posted the last couple of weeks, so I'm including a bit extra into this one... an analysis of a couple of projects and why they work (or don't) to give ideas for posting your own.

So what do you need for a successful project on Kickstarter?

1. The project goal must make sense

Kickstarter can be a bit like the .com era, and I think that people have that in mind when they look at projects.  You have to have a firm grasp of your project in mind, and how much it costs.  Though a high goal is not unreasonable, there needs to be some justification for it from a product standpoint, or people might get the idea that you're trying to cash in on the kickstarter idea, rather than create an actual product or fulfill some need.

2. Every contribution must be rewarded

This goes along with point 1, but is more geared towards the emotional side of the argument.  With financial times the way that they are, even parting with $20 or $30 is quite a bit to a lot of people.  Why should they contribute?  What will they get for their contribution?  And will it even make a difference?  These very basic questions need to be answered for the potential donator in your description- think of it as a prospectus.

3. Give solid information on your project

Again dovetailing into the two proceeding points, but also complementing them is the distribution of information about the project from a larger perspective.  Presentation is everything, and this is the one chance to get donators fired up about the project.  And not with an over-deluge of information, but with precisely targeted bits.  A concise, well worded description of what the project is, and what is to be accomplished is a definite must.  Pictures help even more towards that.  And video that much more.

Some good projects:

Kamakura
kamakura.png
Goal$2500
End Date2011-06-14
Project Creator(s)Dyad Games
LocationDelaware, OH
DescriptionThough the video is an interview, the lighting is very well done, with well done subtitles, and actual views of the product, and talk of concrete examples.  It is informative without being 'talky'.  There are also videos offsite about how to play the game, and information about the game play.  The $2500 goal seems both reachable, and reasonable for this type of game, and the rewards are adequately tiered for contribution that would entice someone to donate.  In addition, the company has a website and a definite presence, lending to their sense of stability to deliver a product once the money is in hand.


Startup Fever
startupfever.png
Goal$10111
End Date2011-05-04
Project Creator(s)Louis Perrochon, Meetpoint LLC
LocationMountain View, CA
DescriptionThe video is very well done, and shows a product in hand, and the information provided makes this definitely seem like one of the more stable of projects- through the prototyping/testing stage and ready for production.  Though the goal is a bit high, it does seem reasonable for what is shown, and indeed, the project has already blown past this.

And some bad ones:

Epic Conquest
epicconquest.png
Goal$1500
End Date2011-07-04
Project Creator(s)Alexander Van Dorpe
LocationWindsor Heights, IA
DescriptionThis starts to go wrong when you look at the presentation.  There is no video, and the only media on the page is hand drawn (and not in a good way).  The ideas seem lofty- very much more than the price tag would seem to be able to deliver. And then there is the fact that because of fear of being scooped on his idea, he doles out only bits of the actual project implementation.  Not something that inspires me to donate.


Natural Spotlection
naturalspotlection.png
Goal$25000
End Date2011-07-30
Project Creator(s)Ethan
LocationSalt Lake City, UT
DescriptionEthan does a lot well- he communicates the idea, and has a video presentation.  But then it goes wrong- he doesn't have a game designed; just an idea and mechanics.  And the video presentation is just him talking- not a catchy hook for investors.  He does have many reward tiers, but the final goal is very much lofty compared to the information that he gives, and seems quite out of touch with the idea, and hard to reach in the given timeframe.  I wish him luck, but I'd not donate to it based on his site.
8281
Developer's Corner / Re: Database for a Desktop?
« Last post by wraith808 on May 09, 2011, 09:28 AM »
Unfortunately, unless the 'much less' is $300 or less, I'll have to do without.  The perils of full time employment vs contracting.  When I was contracting, money wasn't really an object for development tools.  Now, doing it on the side, it's a lot bigger obstacle, unfortunately.
8282
Developer's Corner / Re: Database for a Desktop?
« Last post by wraith808 on May 09, 2011, 08:22 AM »
That being said, VistaDB is WAAAAAYYYYY better than SQLite... There's no comparison. Broken skateboard and space shuttle.

At $1295 for a license, I should hope so...?
8283
Developer's Corner / Re: Pointers to nullable types (C#)
« Last post by wraith808 on May 08, 2011, 09:38 PM »
IntPtr doesn't help, eh?

Unfortunately not. :(
8284
Developer's Corner / Re: Pointers to nullable types (C#)
« Last post by wraith808 on May 08, 2011, 06:27 AM »
@wraith808: That all makes perfectly good sense.

so again, why is it special?
A few more thoughts:
  • They (MS) explicitly don't want you to do this
  • You could exchange the int? by Int32 and get a pointer to that

That wouldn't work in this case.  It needs to be nullable to be able to store the database value, and the idea is to do a bulk memory copy, mapping the memory locations of the values over the memory locations of the structure.  And yeah, I think at this point that MS just explicitly made this impossible.
8285
Developer's Corner / Re: Keeping the UI Responsive - What Would You Do?
« Last post by wraith808 on May 07, 2011, 10:04 PM »
I don't think I articulated that well enough and I think I even confused it more above.

Here's the problem again...

The networking code needs to be spun off in a thread or background worker, yes, but the time it takes can be very very low, and low enough that a notification window won't fully display before it needs to be ripped down again.

So I need some mechanism that will quickly alert users that an operation is taking place. It should offer the chance to cancel as well.

Ah.  I understand the problem more now.  How does your main UI look?  Is it possible that in the statusbar (or some other similarly always on type of area) you could put the notification and the possibility to cancel?  And optionally dim the main window when the event occurs?
8286
Developer's Corner / Re: Keeping the UI Responsive - What Would You Do?
« Last post by wraith808 on May 07, 2011, 08:53 PM »
Another vote for the thread idea.  I try not to do any sort of work on the UI thread except in the simplest of cases (or in cases where it would make the app quite complicated).
8287
Developer's Corner / Re: Pointers to nullable types (C#)
« Last post by wraith808 on May 07, 2011, 08:47 PM »
I've done no research on the subject, though I've done some stuff, including nullable types, in C#. But not in this direction. Nevertheless...

I kind of assume you read this msdn subject explaining nullable types?
It states:
T can be any value type including struct; it cannot be a reference type

This makes me suspect the actual implementation is something handled at compile-time, so pointers for getting at it won't exist during runtime?

Nothing so esoteric.  A nullable type is a struct, and using reference types as fields in structs is A Bad Idea.

When you have a struct that contains a reference type and you copy an instance of the struct, the reference type inside isn't "deep" copied, because it is simply a reference (pointer) to a memory location containing the actual class. So if you copy a struct that contains class instances, the copy will be referencing the same instances as the original.

So I think that's why nullable types can't be reference types- and it would be pointless in any case, since any reference type is already nullable.

Thanks for the links also, but neither one of those explains why you can't get a pointer to System.Nullable.  It's implemented as a struct (as they point out in the links) so why is it special?  As I said, if I create a struct that has the exact same format as System.Nullable, I can get a pointer to it... so again, why is it special?
8288
Developer's Corner / Pointers to nullable types (C#)
« Last post by wraith808 on May 07, 2011, 08:43 AM »
I found something out that was pretty strange. 

I have an object that's based off the IEditableObject interface.  It maps to certain db fields- I'm trying to abstract the data layer from the application so that it can be replaced; we have a legacy system that we're going to try to get rid of down the line, so this is a first step in that direction.  I was going to do a bulk memory copy based on the memory location of each field in the object, but by necessity, since some of the fields are nullable, we use nullable types to represent those fields, i.e. int? instead of int. 

Going further, i realized that a nullable type is just a struct with a value and a bool for isnull, which makes sense, but I never thought of it that way.  So I was going to have to get pointers to the fields to get the memory locations- but you can't get a pointer to a nullable type.  I created a struct that was the exact same format as the nullable type, and was able to get a pointer to that...so I don't understand the logic behind this...

Thoughts?
8289
It seems to me that using the right language, with the right programmer, and making careful decisions in your architecture, etc., can yield results that balance productivity with performance.

This.  I remember my most used class from college was "Organization of Programming Languages".  It was a senior level course purposed only with showing how much more languages are alike than different.  And the final project was to code a decently complicated project in a month in a language that was randomly assigned from languages that we didn't know.  A lot easier than it sounds; it wasn't my best work architecturally, but that wasn't the point.  His position was that we limit ourselves in what we can do by limiting our language choice.  Realistically, you have to specialize to get ahead.  But if you can bring something to the table other than what you specialize in, you definitely have a leg up on someone who only knows the one language.
8290
Developer's Corner / Re: Database for a Desktop?
« Last post by wraith808 on May 07, 2011, 08:26 AM »
Looking at SQLite, have you investigated the SQLite endorsed ADO.Net provider?

I especially like the headline message on the site:
This is a fork of the popular ADO.NET 2.0 adaptor for SQLite known as System.Data.SQLite. The originator of System.Data.SQLite, Robert Simpson, is aware of this fork, has expressed his approval, and has commit privileges on the new Fossil repository. The SQLite development team intends to maintain System.Data.SQLite moving forward.
(Emphasis added)

I wanted to try that... but the last time I installed it, it borked my vs installation.  I found the problem in a source file that they changed, but that was quite troubling and not something I wanted to experience again.
8291
Post New Requests Here / Re: IDEA: PC game launcher/organizer/frontend
« Last post by wraith808 on May 07, 2011, 08:23 AM »
Games explorer notices eight of them
Problem here is that games have to register with Games Explorer, during install usually, to be noticed by GE, so it's not directly GE's 'fault', IMHO :o

Exactly.  And there are ways around that.
8292
Nobody ever frees sc nor sc2. Should I have used using() on this so Dispose() gets called automatically? Maybe. Or maybe not. This pattern works just fine for temporary 'local' types like arrays and the sort.

Woop de wooping wah wah, the GC helps me out by taking the worry of free()ing things away. But now nobody knows WHEN it happens exactly. And there is the pain of garbage collectors running and slowing down your app as a result unless they are very well optimized. Most of the time, it makes no difference.

I actually like the fact that GC takes care of a lot of that, since freeing the memory has nothing to do with compacting the memory, which GC takes care of also.  And the costs of doing this are not insignificant.  If the item hasn't survived GC once it passes from scope, it's very unlikely that it will be around in any case.  The only real thing that you have to remember if the object is not IDisposable is to manage your references to the object to make sure that there is not any unused reference keeping the object around past gen1.  There are cases where this is more of an issue, but I find them few and far between to compare to the advantages of not having to deal with that.  And if you want more control, there's always unmanaged code...
8293
General Software Discussion / Re: Delicious' new home..
« Last post by wraith808 on May 06, 2011, 08:39 AM »
p.s. was this there yesterday? Pinboard is charging $9.33 for new accounts?

Yes, it was.  It's a set one time sign-up fee, that increases as they increase the number of users.  I actually like it as (1) it helps to keep the spambots away, and (2) they are already to a limited extent monetizing each user.  It's actually the reason I'm thinking about joining.
8294
Post New Requests Here / Re: IDEA: PC game launcher/organizer/frontend
« Last post by wraith808 on May 06, 2011, 06:58 AM »
Sorry, I guess I'm so familiar with apps like this that I forget not everyone else is :)

It should be stand-alone, self-contained and portable. ZIP distribution, relative paths, and all the rest.

It should be based around some sort of database where all information is stored - something that can be backed up, and maybe even manually edited if mass changes need to be made.

The GUI should be tripartite, taking the form of FOLDER TREE - DETAILS LIST - SCREENSHOTS. Tree doesn't really need custom icons like QuickPlay has, but it should offer folders for each of the default columns in the details view (name, date, publisher, distributer, genre, rating, playcount, etc), along with the ability to create custom folders based on user-defined queries.

The details list should offer an icon column (preferrably 32x32 rather than just 16x16), followed by all preset and any custom data fields present. Columns should be moveable and sortable. In-line editing of data would be nice.

A "new game" dialog should let users easly add a new executable, and to designate any command line switches and/or helper apps to launch with the game. By default it will choose the EXE's icon, but users should be able to choose an alternative icon if desired. Ideally most data would be scraped from MobyGames - I'm sure their API is published someplace. DOSBox Game Launcher even pulls screenshots from there, it's very handy!

The screenshot window simply displays all images in the directory associated with the selected game.

This is pretty much the minimum - though the MobyGames scraping is just an added perk. Later could come things like local links to files such as manuals, walkthroughs and maps, mounting of CD images for launching game backups, GUI customizations, and more.

I'm probably asking for a lot - oh how I wish I knew how to write this app myself!



Unless anyone else wants to take this, I'll see what I can put together.  I'll probably do it iteratively, i.e. get the basics done and continue from there.
8295
Post New Requests Here / Re: IDEA: PC game launcher/organizer/frontend
« Last post by wraith808 on May 06, 2011, 06:06 AM »
Well, I just use Steam as my game launcher. Even for non-Steam games. But that probably won't be useful for games that require DOSBox.

I use XFire for my game launcher, although I'm currently also playing the Raptr, which is quite similar.

I didn't suggest that either b/c if he wasn't satisfied with the game explorer, he definitely wouldn't be satisfied with steam or xfire or raptr.  They have even *less* customization options.
8296
Post New Requests Here / Re: IDEA: PC game launcher/organizer/frontend
« Last post by wraith808 on May 05, 2011, 09:20 PM »
Some of what you say is true... while some you can actually do with Game Explorer.  But I guess the basic thing is that you are not satisfied with it.  But my questions were more about what you actually want?  You name a few things... but what you want seems more than just a few basic things, but more of a full fledged game management/launcher system... and no matter what is done, it won't have everything that you want.  If QuickPlay does what you want, but just not for PC games- what are the features that it has that you'd want (1) at a bare minimum to start and (2) overall?
8297
Post New Requests Here / Re: PC game launcher/organizer/frontend
« Last post by wraith808 on May 05, 2011, 07:47 PM »
There's a lot hidden in the interface.

1. You can customize the columns.  Change the view to details, and right click on the columns at the top.  You can select what columns show.
2. You can filter the games.  The search in the upper right hand corner applies to only the games.  Type in what you would filter on, and as you type, the view is filtered.
3. Custom icons are supported with the game explorer in the article I linked, along with adding new games with command line switches and other applications.
4. You can also change the grouping by right clicking on a game and changing the grouping.

I can post a little tutorial/how to if it's not obvious when you take a second look.  I guess this is the reason I'm asking- all of what you asked for (other than perhaps the interface- they have a preview rather than the tree view, but windows interfaces are getting away from that) is available, so I'm trying to figure out what isn't?
8298
Post New Requests Here / Re: PC game launcher/organizer/frontend
« Last post by wraith808 on May 05, 2011, 07:32 PM »
Are you on Vista or Windows 7?  If so, there's already the games explorer, and a few apps that integrate with that to make it more user friendly and editable.  Would one of these work for you?  And if not, why?  (Just trying to get a feel for what's missing/that you would like to change)

http://windows7theme...explorer-editor.html
8299
Weekly Special Through May 12
Cinco de Mayo is always a great reason to celebrate! This May 5, we'd like to congratulate a few Manning authors and celebrate by offering you 40% off any book at manning.com all week--ebook, pbook, or MEAP.

Save 40% on any purchase. Enter m540a in Promotional Code box when you check out at manning.com.
8300
Living Room / Re: Congratz to the US Military Forces!
« Last post by wraith808 on May 05, 2011, 12:45 PM »
Human does not refer to humanity these days, right?

Now you're just arguing to argue...  :-\
Pages: prev1 ... 327 328 329 330 331 [332] 333 334 335 336 337 ... 404next