topbanner_forum
  *

avatar image

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

Login with username, password and session length
  • Wednesday December 17, 2025, 3:27 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
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...?
8277
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. :(
8278
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.
8279
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?
8280
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).
8281
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?
8282
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?
8283
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.
8284
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.
8285
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.
8286
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...
8287
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.
8288
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.
8289
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.
8290
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?
8291
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?
8292
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
8293
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.
8294
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...  :-\
8295
Living Room / Re: When you make your 100'th Post
« Last post by wraith808 on May 05, 2011, 12:42 PM »
masu100.png

Masu makes 400
8296
Living Room / Re: Congratz to the US Military Forces!
« Last post by wraith808 on May 05, 2011, 10:02 AM »
Interesting quote about the celebration aspect from someone I really respect:
"No, there's no moral justification for the celebration. But no enlightened reason for the fear we felt, either. If the fear was comprehensible, so is the joy. We're only human."
8297
General Software Discussion / Re: Delicious' new home..
« Last post by wraith808 on May 04, 2011, 10:24 PM »
^ Looks interesting.  I'd not heard of pinboard before.
8298
Living Room / Re: Congratz to the US Military Forces!
« Last post by wraith808 on May 04, 2011, 02:00 PM »
Yeh, "congratz" for murdering an unarmed old man after ten years of pointless bombing. Idiots.
BTW, has anyone here mentioned yet that al-Quaeda was an US-American guerilla troop initially?

It's not as cut and dried as that.  This has been hashed and re-hashed... can't we just all get along?
8299
Fineprint and PdfFactory are two for me.

I'd also add to the characteristics bulletproof.  There are a couple of other apps that I use that are simple in their implementation, but I don't list them because they have issues.
8300
Living Room / Re: Congratz to the US Military Forces!
« Last post by wraith808 on May 04, 2011, 12:47 PM »
^ The slow revelation of information- especially the fact that he was unarmed- then does say that this scenario might have played out.  Especially after search for so long, and finding him in such an open location.  But that's just a conspiracy theory...
Pages: prev1 ... 327 328 329 330 331 [332] 333 334 335 336 337 ... 404next