Welcome Guest.   Make a donation to an author on the site July 22, 2014, 10:57: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.
 
Your Support Funds this Site: View the Supporter Yearbook.
   
  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 ... 125 126 127 128 129 [130] 131 132 133 134 135 ... 190 Next
3226  Main Area and Open Discussion / General Software Discussion / Re: Should MS open up Windows Update to 3rd parties? on: February 08, 2011, 11:26:46 AM
I've still got several stacks of CDs from the MSDN subscription stacked around my office that I haven't had time to deal with...and we went digital delivery 2 years ago...

I can still get anything I need is short order, and locally store (.iso) copies of things I use often. It works out great...and takes up no space at all!
3227  Main Area and Open Discussion / General Software Discussion / Re: Should MS open up Windows Update to 3rd parties? on: February 07, 2011, 06:13:12 PM
+1  Thmbsup
3228  Main Area and Open Discussion / Living Room / Re: Death Threats in an Odd Turnabout on: February 07, 2011, 01:22:19 PM
Gotta love lawyers...

Oh and indeed we do ... I like mine best boiled in oil...

 cheesy
3229  Main Area and Open Discussion / Living Room / Re: which is more important, system ram or video ram? on: February 07, 2011, 06:55:22 AM
So the question is do I adjust the video ram to 64 meg or 32 meg (only other options)? I would to help it out as much as possible.  they only use it to do email, internet, photos of the grandkids.  Nothing intensive.
I understand your thinking on dropping the shared video memory size, but... I'd be inclined to wonder then why 512 isn't enough. The extra 64/96MB "gained" isn't really going to help them if they have some bloated crapwear (like AOL) gobbling up resources (which got answered while I was typing).

The resource balancing act could end up costing them more in the long run than just letting them get a new machine with current hardware that is up to the task of handling the current bloatwear.
3230  Main Area and Open Discussion / Living Room / Re: Death Threats in an Odd Turnabout on: February 07, 2011, 06:31:10 AM
They're out to ruin people's lives, and got their own lives ruined... fair enough, even if I don't approve of death threats.

+1 Compared to the type of threats these people typically make... death is a kindness.
3231  Main Area and Open Discussion / Living Room / Re: What would Cody's music sound like? on: February 05, 2011, 03:36:15 PM
Reminds me of an circa 1990's american sit-com introduction (not unlike Seinfeld or similar)...or could even be used in porn tbh lmao...

I don't know about a sit-com, but either a cop show, or a porno would be a good fit.

It's definitely cool ... Only thing I play is the radio. Wink
3232  Other Software / Developer's Corner / Re: PHP on: February 05, 2011, 03:29:14 PM
PHP is a server side scripting language. if you only want to change a value (as apposed to submitting the entire form) you'd need to store the value in a hidden input field and then update it with a client side scripting language (typically Java Script).
3233  Main Area and Open Discussion / General Software Discussion / Re: WHS 2011 ("Vail") Release Candidate now available for download. on: February 05, 2011, 10:58:56 AM
I may need to scare-up some hardware to test that on - curious lad that I am...
3234  Main Area and Open Discussion / General Software Discussion / Re: New (Feb 1 2011) "Starter" Editions of Delphi and C++ Builder on: February 05, 2011, 09:03:09 AM
What I would like to see though is for them to make it completely free (or super cheap, say $29) for people not making software to sell.

My first compiler/IDE was Borland's C++ v4.52 which I purchased at Staples for $10. Sometime after that a friend gave me a copy of BC Builder (the first one I think), and I pirated a copy of BC Builder 3 but it really didn't give me what I was after...results wise - smallest .exe I could create and run portably was like 500+k. ...Which is why I jumped ship in favor of MSVC++.

Anyhow, point being, price is definitely a factor...especially if one is not entirely committed (which I wasn't back then).
3235  Main Area and Open Discussion / General Software Discussion / Re: How to create a shortcut for the "wireless network connection" in Windows XP? on: February 05, 2011, 08:51:42 AM
If you throw some more code out there I can take a look. I've got some experience hunting nasty bugs involving Windows, memory structures and the likes: Cautomaton exposed me to tons of weirdness from MS and other application 'vendors' when I wrote it. Sad

Thanks, actually I'd already posted the code in its entirety earlier when I (had only tested it on x64) thought it was working. It's back aways in this thread  here the part that is throwing blanks at me is on line 46 of that code. I was then (incorrectly) assuming that the buffer passed to the function 3 posts up had content, which it didn't, which explains why incrementing the pointer to it went ...Badly.

Which makes my current nemesis the empty/corrupt/borked buffer on line 46.
3236  Main Area and Open Discussion / General Software Discussion / Re: How to create a shortcut for the "wireless network connection" in Windows XP? on: February 04, 2011, 07:53:16 PM
...Nevermind, I hadn't backed up far enough. Apparently it's the MIB_IFROW structure that is tossing out garbage... Who'da Thunk...

pMibIfRow->wszName is both extremely critical (e.g. the point of the function)...and complete trash (buffer content wise).

Shit...  Sad
3237  Main Area and Open Discussion / General Software Discussion / Re: How to create a shortcut for the "wireless network connection" in Windows XP? on: February 04, 2011, 06:25:38 PM
So for a (lack of) progress report...

At this point I have it working, or at least it appears to be...With one minor exception. It crashes on XP x86. Runs fine on Win7 x64 and Server 2k3 x64, but crashes on (the target platform) XP x86... *Sigh*

I've narrowed it down to a specific function and line of code, but I've not a clue why/what's wrong with it:
Formatted for C++ with the GeSHI Syntax Highlighter [copy or print]
  1. //================================================================================================
  2. //-------------+++--> Strip \DEVICE\TCPIP_ Off of wszName to Get the Adapter's GUID For Comparison:
  3. void StripOutGUID(WCHAR *szGUID, WCHAR *wszName) { //---------------------------------------+++-->
  4. WCHAR *p; // Walk the string to find the GUID opening '{' character. Sure There
  5. // Are Easier Ways to do This ... But This Way I Avoid Language Issues.
  6.  
  7.  p = wszName;
  8.  while(*p != L'{') *p++;
  9.  
  10. //  wsprintf(szGUID, L"%s", p);                 // ALL of These Work, but Crash on XP...?!?
  11. //  StringCbPrintf(szGUID, GEN_BUFF, L"%s", p); // ALL of These Work, but Crash on XP...?!?
  12.  StringCbCopy(szGUID, GEN_BUFF, p);            // ALL of These Work, but Crash on XP...?!?
  13. }

Suggestions appreciated. smiley
3238  Other Software / Developer's Corner / Re: Need Advice on MySQL Server Tuning on: February 03, 2011, 02:59:06 PM
Besides what was already mentioned...

* If EXPLAIN shows it's using filesort, you might want to increase your sort buffer sizes.
* If you have some queries that repeat alot, enable query cacheing... it will turn those queries into lightning smiley

Now that is the type of answer I was looking for. smiley

Query caching probably won't net much as there are only about 20 (sporatic use) users... But the sort buffer strikes me as the sort of thing that could have an impact on a large report query. Are there any rules of thumb (keep in multiples of X kind of stuff) for buffer sizes?
3239  Main Area and Open Discussion / General Software Discussion / Re: How to create a shortcut for the "wireless network connection" in Windows XP? on: February 03, 2011, 02:11:58 PM
The Wireless Connection Manager has always been in XP (from day one) ... It is only the WiFi API that gives programmers an easier way to futz with it that is new.

Windows 2000 ... Now that was a 3rd party nightmare PITA when it came time to Wirelessly connect.
3240  Other Software / Developer's Corner / Re: Need Advice on MySQL Server Tuning on: February 03, 2011, 02:05:51 PM
Here's the thing... I run one of the problem child queries that I selected for testing purposes while watching Task Manager to see what impact it has on the server's resource usage. While the query is running the server is just chuffing along showing absolutely no sign of a strain.
Does "Task Manager" imply MySQL is running on a Windows server?

Yes.

If that's the case, how old is the MySQL version?

v5.1

Iirc, there was recently something about a new version of MySQL that fixed some Windows performance issues - I was shocked to read the announcement, since it revealed that the Win version had essentially used a "BigLock" and only in 2010 been fixed to use more fine-grained locking. In other words, for years and years and years, whoever were responsible for the Windows port should really have been shot, or at least have had a great big flogging.

Don't have a link to the article (wouldn't be surprised if it was on osdev, or perhaps slashdot), but here's a graph showing the consequences of the 5.5 release.

Holy Shit!

The charts shown are only for the transactional InnoDB (These are basic MyISAM stuff), but either way its got to be an option worth exploring. Maybe I'll give that a shot this weekend.
3241  Main Area and Open Discussion / General Software Discussion / Re: How to create a shortcut for the "wireless network connection" in Windows XP? on: February 03, 2011, 01:57:01 PM
It's the distinction we're both tripping over from opposite ends. You're looking at it correctly as it is available after SP2. And I'm looking at it (a bit darkly) because it's available to XP only after SP2. I hate mid-year changes (side effect of being a mechanic).

So if somebody does a fresh install, the program isn't going to run until after they get SP2 installed - Which is why I (in a split hairs fashion) said it isn't available in XP. It's not that it didn't run, as I never tested it...It's just that as soon as I saw the conditional SP2 requirement I (started thinking NT4) decided not to open that can of worms.


<Short Answer> ...You ain't nutz, I am.  cheesy
3242  Main Area and Open Discussion / General Software Discussion / Re: How to create a shortcut for the "wireless network connection" in Windows XP? on: February 03, 2011, 07:14:11 AM
It's really just different levels of the same thing. The original code used a registry key to enumerate the physical adapters on the machine (and was right on the edge of Quick-N-Dirty). On my dev machine it found 1 Physical Adapter.

The code above is the much more detailed Network Interface list, which is where the more detailed state & status info is kept. On my dev machine it found (roughly) 20 Network Interfaces.

 The nested if's around the for(...) loop are narrowing the list down to less than a dozen items that can/will then be compared (GUID-to-GUID) to the Physical Adapters list to eliminate the disabled adapters from the Drop-Down menu.

From a (Windows) programming standpoint, these kind of shenanigans are normal... Wink

Note: Granted using the WiFi API 4wd mentioned above would have been a more elegant solution (simpler code & faster to pound out), however it also doesn't run on (isn't available in) Windows XP ... Which is (after all) or target platform.
3243  Other Software / Developer's Corner / Re: Need Advice on MySQL Server Tuning on: February 03, 2011, 06:48:43 AM
For indexing in MySQL, you might be surprised at just how much extra performance you can get by indexing fields that you would not normally index. I was working on a largish database and started experimenting with performance there -- additional indexing helped a fair bit.

Actually no, I manage to figure that one out a few years back ... Now I index everything, as it really does make a big difference.



Sounds like a tough nut to crack.

Is it just that the query itself takes a long time? With no resource issues... Bottleneck in there?

Have you tried a query profiler?

Given the scale of what it's being asked to do, sure... It's bound to take a while. It does not however (IMO) need to take that long... smiley

Here's the thing... I run one of the problem child queries that I selected for testing purposes while watching Task Manager to see what impact it has on the server's resource usage. While the query is running the server is just chuffing along showing absolutely no sign of a strain.

I know I originally set the thing up conservatively (Instance Configuration Wizard using Developer Machine settings), because I hadn't decided if I could trust it back then. But... Now I gotta give it a bit more freedom to gobble resources because it occasionally needs them. ...Badly...

And that's where the "fun" starts, because there are a ton of different memory caches/buffers/settings which I really need adjust...but  not screw-up.
3244  Main Area and Open Discussion / General Software Discussion / Re: How to create a shortcut for the "wireless network connection" in Windows XP? on: February 02, 2011, 07:03:54 PM
Okay, nothing real exciting at this point. But I did figure out how to get the adapter status so we can weed out the inactive ones.

I started with some MSDN example code, and beat on it until it started doing what I wanted. Now I just gotta figure out how to combine it with the rest of the project.

While I plan on releasing the code with the finished program, here's is the adapter bit I've been working for the last few days (Which is a bit embarrassing when I thing about it); everything needed to compile & run is below:
Formatted for C++ with the GeSHI Syntax Highlighter [copy or print]
  1. // GetIfEntry.cpp : Defines the entry point for the console application.
  2. //=============== Created by Stoic Joker: Tuesday, 02/01/2011 @ 6:23:11pm
  3. #include "stdafx.h" //--------------------------------------------+++-->
  4.  
  5. //================================================================================================
  6. //-------------+++--> Strip \DEVICE\TCPIP_ Off of wszName to Get the Adapter's GUID For Comparison:
  7. void StripOutGUID(WCHAR *szGUID, WCHAR *wszName) { //---------------------------------------+++-->
  8. WCHAR *p; // Walk the string to find the GUID opening '{' character. Sure There
  9. int i=0; // Are Easier Ways to do This ... But This Way I Avoid Language Issues.
  10.  
  11.  p = wszName;
  12.  while(*p != '{') {
  13.  *p++; i++;
  14.  }
  15.  
  16.  wsprintf(szGUID, L"%s", p);
  17. }
  18. //================================================================================================
  19. //------------------------+++--> Get Lst of Network Interfaces Available on Machine for Comparison:
  20. BOOL GetAdapters(WCHAR *szTarg) { //-----------( Much of This is From the MSDN )------------+++-->
  21. PMIB_IFTABLE ifTable; // Declare and initialize variables.
  22. PMIB_IFROW pMibIfRow;
  23. DWORD dwSize = 0;
  24. DWORD dwRetVal = 0;
  25.  
  26.  // Allocate memory for our pointers.
  27.  ifTable = (MIB_IFTABLE*) malloc(sizeof(MIB_IFTABLE));
  28.  pMibIfRow = (MIB_IFROW*) malloc(sizeof(MIB_IFROW));
  29.  
  30.   // Before calling GetIfEntry, we call GetIfTable to make sure there are entries to get.
  31.  // So... First, make an initial call to GetIfTable to get the necessary size into dwSize
  32.  if(GetIfTable(ifTable, &dwSize, 0) == ERROR_INSUFFICIENT_BUFFER) {
  33.  GlobalFree(ifTable);
  34.  ifTable = (MIB_IFTABLE *) malloc (dwSize);
  35.  }
  36.  // Then make a second call to GetIfTable to get the actual data we want.
  37.  if((dwRetVal = GetIfTable(ifTable, &dwSize, 0)) == NO_ERROR) {
  38.  if(ifTable->dwNumEntries > 0) {
  39.  for(UINT i=1; i<= ifTable->dwNumEntries; i++) {
  40. pMibIfRow->dwIndex = i;
  41.  if((dwRetVal = GetIfEntry(pMibIfRow)) == NO_ERROR) {
  42.  if(pMibIfRow->dwType == MIB_IF_TYPE_ETHERNET &&
  43.  pMibIfRow->dwAdminStatus == MIB_IF_ADMIN_STATUS_UP) {
  44.  WCHAR szGUID[GEN_BUFF] = {0};
  45.  printf("\tDescription: %s\n", pMibIfRow->bDescr);
  46.  printf("\twszName: %S\n", pMibIfRow->wszName);
  47.  StripOutGUID(szGUID, pMibIfRow->wszName);
  48.  if(wcscmp(szGUID, szTarg) == MATCH) {
  49.  printf("\tGUID: %S <--+++--> MATCHES REQUESTED ACTIVE TARGET ADAPTER!!!\n", szGUID);
  50.  }else{
  51.  printf("\tGUID: %S <-+-> Is Active, But Not the One We're After.\n", szGUID);
  52.  }
  53.  printf("\tReceived %d, Sent %d\n", pMibIfRow->dwInOctets, pMibIfRow->dwOutOctets);
  54.  printf("\t\tNext...\n\n");
  55.  }
  56.  }
  57.  }
  58.  }
  59.  GlobalFree(ifTable);
  60.  return TRUE;
  61.  }
  62. return FALSE;
  63. }
  64. //================================================================================================
  65. //--------------------------------------//---------------------------+++--> Console Program Main():
  66. int _tmain(int argc, _TCHAR* argv[]) { //---------------------------------------------------+++-->
  67.  if(argc < 2) {
  68.  printf("\n\n\tERROR: No GUID Specified, Exiting!\n\n");
  69.  return 0;
  70.  }else{
  71.  printf("\n\n\tSearching for GUID: %S\n\n", argv[1]);
  72.  }
  73.  if(!GetAdapters(argv[1])) printf("\tGetIfTable failed.\n");
  74. return 0;
  75. }
  76.  
  77. // ============================================= STDAFX.H <-> Header File Below This Line!
  78. // stdafx.h : include file for standard system include files,
  79. // or project specific include files that are used frequently, but
  80. // are changed infrequently
  81. //
  82.  
  83. #pragma once
  84.  
  85. #ifndef _WIN32_WINNT // Allow use of features specific to Windows XP or later.                  
  86. #define _WIN32_WINNT 0x0501 // Change this to the appropriate value to target other versions of Windows.
  87. #endif
  88.  
  89. #define GEN_BUFF   128
  90. #define MATCH 0
  91.  
  92. #include <stdio.h>
  93. #include <tchar.h>
  94.  
  95. // TODO: reference additional headers your program requires here
  96. #include <Windows.h>   //--+++--> Also Required by GetIfEntry():
  97. #include <Iphlpapi.h> //---+++--> Required by GetIfEntry():
  98. #pragma comment(lib, "Iphlpapi.lib") //-++-> ^See Above^:

...Crap, I just realized that int i doesn't actually do a damn thing... *Sigh*
3245  Main Area and Open Discussion / Living Room / Re: Google's overweening conceit (anti-Eric Schmidt rant) on: February 02, 2011, 05:45:34 PM
I'm always worried when people start thinking that since they (supposedly) know better than me, they have the right to take away my freedom to choose and make decisions for me, for my own good.

Even if they're right, I should still have the freedom to make a bad choice and suffer the consequences.
Damn Straight!

Oh Yeah, and I loved the Wall*E connection...  Thmbsup
3246  Other Software / Developer's Corner / Re: Need Advice on MySQL Server Tuning on: February 02, 2011, 03:03:09 PM
You have to determine where most of the report work is being done... the client PC or the server.  Maybe put the SQL as a stored procedure on the server and have the client PC call that rather than doing the SQL reporting stuff on the client PC.

The only thing done client side is Click OK and view. Client connects with a TCP/IP session, spits in query, gets results, and displays. Queries are all structured so that the returned results set can be dropped straight into a ListView control for application use (or are stuffed into a table via either .asp or .php). The only "processing" done client side is input validation ... Which takes about 4ms, and is done prior to query being sent (No used borked queries aloud...).
3247  Main Area and Open Discussion / Living Room / Re: *URGENT* Patch IE security flaw (31 January 2011) on: February 02, 2011, 02:53:39 PM
My concern would be users of sites like Twitter, where shortened links are routinely used and you don't really know where they are going. Could one of these specially crafted links be shortened and then posted on Twitter with a catchy headline promising news about current events or other attractive content?

Now, that is an interesting question... While I'd be inclined to say no - exploit should have no effect if sent to the wrong page processor - I'm not entirely sure. But I've always had an aversion stubby links.

NPR had a talk with the head engineer (or some such title) at bit.ly.  She said that there was inbuilt protection against this, using a combination of whitelists/blacklists and heuristics... if a link is questionable (it's not in either of these lists) it goes to a list to be manually checked... but they only have 20 people *total* so there is a window where a potentially malicious link is waiting to be checked and in the wild.

Oh great, we're screwed...  cheesy
3248  Other Software / Developer's Corner / Re: Need Advice on MySQL Server Tuning on: February 02, 2011, 10:45:11 AM
@Renegade - Just for the record, I designed and wrote the entire system...From the db, to the UI ... So the shooting option is out... Wink

But to be fair:
I seldom use joins.
all the critical stuff is indexed.
and I haven't a clue what denormalizing is/does. ...And I suspect it's rather unlikely that I've already done it by accident.

------------------

Anyhow, here's the thing... While I could, with agonizing care, try restructuring the report queries. I'm not entirely convinced that that will truly give me net effect I'm looking. I say this because of the following reasons:

  • as I mentioned before 99% of the time everything runs just fine
  • Sometimes a large query really is just that: 5,000+ clients, Several thousand items (seasoned with pricing/quantity info that gets tallied & totaled on multiple levels), data set is for the last many years... (Yada yada) Wink
  • It is only the large reports (that should be CPU hogging, yet are not) that are taking time to run
  • The server the queries are run against never shows more that 20% (per core) usage during the query.
  • There are no hardware based reasons (tons of memory available, no disk contention, etc.) for it to take that long.
  • I know that I used the conservative resource settings back when I originally deployed the rig.

So... I'm looking for more of a "Let Loose the Reins!" type of solution so the MySQL server service can have have a better crack at the CPU's "time". I just don't want to over do it because there are a few other things the box does/needs to be handling also.
3249  Main Area and Open Discussion / Living Room / Re: Google's overweening conceit (anti-Eric Schmidt rant) on: February 02, 2011, 10:12:04 AM
I am so much more than any of the technologies I choose to employ.

Why can't  "I'm a Mac" and "I'm a PC" understand that?  undecided

I feel like a number,
I'm not a number,
I feel like a number,
Damnit I'm a man...

(you know the song)
3250  Main Area and Open Discussion / Living Room / Re: Unable to compete with the Kindle, Apple wants a cut of ebook sales on: February 02, 2011, 10:08:04 AM
I wonder how long Apple can keep this up.  They make good stuff, but it's only a matter of time before they have to let go of their closed system little by little.  Their userbase is growing a lot, and they are going to be asking for this and that, which means more options and capabilities are going to be demanded.  And Apple will have to satisfy them somehow.  If they want to keep this success they have going on, they have to let it go a little.

Quite to the contrary... I think Apple should clamp down as tightly as they can on their little nut. That way there wont be any chance of them falling of while they ride it straight to hell.

...Afterwhich we can all be free of their foolish money-grubbing nonsense. smiley
Pages: Prev 1 ... 125 126 127 128 129 [130] 131 132 133 134 135 ... 190 Next
DonationCoder.com | About Us
DonationCoder.com Forum | Powered by SMF
[ Page time: 0.108s | Server load: 0.08 ]