MosaicFuneral 812 Nearly a Posting Virtuoso

Break it down.

Obviously four structs contained in an array or vector.

You'll need to open each file, skip the first junk line, parse each line into your struct, then cross reference and display the info as needed.

http://www.cplusplus.com/doc/tutorial/structures/
http://www.cplusplus.com/reference/vector/vector/vector/
http://www.cplusplus.com/reference/fstream/ifstream/?kw=ifstream
http://www.cplusplus.com/reference/iostream/cout/?kw=cout

That site should be your go to bible. You should be able to pratically copy paste most of the info from that site in the example snippets and get what you need. Because you need very little.

MosaicFuneral 812 Nearly a Posting Virtuoso

Haven't programmed in a long time. Last project was a GCODE pathway generator I wrote several years back. My compiler is obviously several years out of date.
Uses time(), itoa(), rand(). Current standard compliant compilers should have , , , and to_string() in suppliment to those more deprecated functions.

This is a very simple, high speed method of generatinga alot of randomized junk data onto your drive. Make sure you have about 300MB of RAM available for the overhead. An older non-SSD might croak.

Useful for making old files unrecoverable by overwriting the old space on a drive. Doesn't go about overwriting any file tables, partitions, etc. Only where the file system allows it to dump the files by defualt. So it's fairly safe, since you're not completely rewriting the disk.

MosaicFuneral 812 Nearly a Posting Virtuoso

I haven't been on here in a few years and I'm so lost now. Not even sure how I wound up in the Community Center, other than out of luck.

Edit: Are we going to get another one of those animated tutorial videos again? I kinda miss that guy out of Nostalgia.

MosaicFuneral 812 Nearly a Posting Virtuoso

I don't understand the point you are trying to make.

Just intjecting with some crude humor, as this thread is just one of the many I've been in or a conversation I've had several times this week. Kind-of getting tired of it is all.

MosaicFuneral 812 Nearly a Posting Virtuoso

Perhaps we should ban my gun. It commits genocide in the realm of billions each time its fired.

MosaicFuneral 812 Nearly a Posting Virtuoso
MosaicFuneral 812 Nearly a Posting Virtuoso

Get my rocks off.

MosaicFuneral 812 Nearly a Posting Virtuoso

I was refering to the topic post.

MosaicFuneral 812 Nearly a Posting Virtuoso

Maybe you should translate it over to C and submit it here: http://www.ioccc.org/index.html

MosaicFuneral 812 Nearly a Posting Virtuoso

Just you.

MosaicFuneral 812 Nearly a Posting Virtuoso

If I post a code snippet to DaniWeb, what ownership of the content do I retain and what do you obtain? As well, can I license code for usage with something like zlib?

I have a number of snippets from libraries I've written, but I remeber reading somewhere that all content on DW is copyright DW, and I assume that would inheritably be submitted content as well. That's why I rarely post snippets.

MosaicFuneral 812 Nearly a Posting Virtuoso

Think I'd rather have the new Kel-Tec dual tube magazine shotgun, with a custom reciever for 1.75" shells.

MosaicFuneral 812 Nearly a Posting Virtuoso

Wasn't aware of stuff like CGIC or FastCGI. Might make development a viable option for a C guy like me.

MosaicFuneral 812 Nearly a Posting Virtuoso

Rabble, rabble, rabble, rabble, rabble.

MosaicFuneral 812 Nearly a Posting Virtuoso

They are all violent -- do something useful with your life instead of wasting it on stupid games.

On a daily basis, how often do you use the phrase "get off my lawn", "back in my day", or "young wippersnapper"?

jbennet commented: Epi +0
MosaicFuneral 812 Nearly a Posting Virtuoso
MosaicFuneral 812 Nearly a Posting Virtuoso

Was listening to Autopsy's Mental Funeral album and needed a new e-mail account, might have been dealing with some art stylized with mosaics around the time too.

MosaicFuneral 812 Nearly a Posting Virtuoso

Started with QBasic, had fun, but hated it at the same time. It was when I went to C that it all kind of made sense and I could make practical tools and not just speaker beeps and pixelated screens. Java would be good too with all the libraries that you can have fun with, out of the box.

But I suppose there's VisualBasic, it's what some schools try to teach. I hate it and think it's twelve times more frustrating than assembly(that's my opinion obviously), but you can play with all the IDE tools and make fancy GUIs and tools right off the bat with no programming experience, and that's why they teach it.

MosaicFuneral 812 Nearly a Posting Virtuoso

Download a screen recorder and run DOSbox fullscreen.

MosaicFuneral 812 Nearly a Posting Virtuoso

The thing is better than one of the Athlon desktops I'm still running in the living room for the family and a hell of a lot better than the old Pentium Pro laptop I was developing on a couple years ago(eight year old PDAs are better than that). So I guess you could note that hardware constrains probably aren't an issue.

What sort of apps are you developing?

MosaicFuneral 812 Nearly a Posting Virtuoso

One shameless bump before I let this die and get on with a dozen other programs.

MosaicFuneral 812 Nearly a Posting Virtuoso

Here: http://msdn.microsoft.com/en-us/library/windows/desktop/ms682022(v=VS.85).aspx

Disregard the first example and scroll down to see proper handling of a Windows console.

MosaicFuneral 812 Nearly a Posting Virtuoso
Azmah commented: Awesome Link! +3
MosaicFuneral 812 Nearly a Posting Virtuoso

Well you'd need to post some code to get a better diagnosis.

MosaicFuneral 812 Nearly a Posting Virtuoso

As the title says - it's reporting, "The specified service does not exist as an installed service."

I'm running this as an administrator and have a successful ALL_ACCESS handle to the SCM.

At some earlier points I did have some trouble with the narrow to wide conversion. I believe that's been resolved.

There was a little trouble parsing the string at first, it doesn't seem to be wrong anymore and all the values in the debugger seem to be correct.

I can't figure weather I'm completely screwing a step up, or if it needs some sort of special elevated privileges or something(doubt it).

struct service_t
{
    SC_HANDLE scService;
    wstring   name;
    bool      valid;
};

bool Services::Init()
{
    /*some unused login stuff commented out*/

    scHandle = OpenSCManager(NULL, NULL, /*SC_MANAGER_CONNECT*/SC_MANAGER_ALL_ACCESS);
    if(!scHandle) {
      log.Error(L"OpenSCManger() failed. ");
      return(false); }

    bSuccessful = true;
    return(true);
}

bool Services::PopulateTable()
{
    HANDLE    hFile;
    string    buffer;
    wstring   wsb; /*wide string buffer*/
    wchar_t   file[MAX_PATH];
    DWORD     file_sz, read = 0, required;
    size_t    pos = 0;
    service_t tmp;

    /*opening and reading a file that list all service names into buffer*/

    required = MultiByteToWideChar(CP_UTF8, 0, &buffer[0], (int)buffer.size(), NULL, 0);
    wsb.resize(required, 0);
    if(!MultiByteToWideChar(CP_UTF8, 0, &buffer[0], (int)buffer.size(), &wsb[0], required))
      log.Error(L"MB2WC() failed. ");
     buffer.clear();

     while(pos != string::npos) {
       pos = wsb.find_first_of(L'\n');
       if(pos != string::npos)
	 pos++;
       tmp.name = wsb.substr(0, pos);
       wsb.erase(0, (pos));
       if(pos != string::npos) {
	 pos--;
	 tmp.name[pos] = L'\0'; }
       if(tmp.name.size() > 0)
         service_table.push_back(tmp);
    }

    return(true);
}

bool Services::Pause()
{
    SERVICE_STATUS stat;

    if(!bSuccessful)
      return(false);

    for(size_t i = 0; i < service_table.size(); i++) …
MosaicFuneral 812 Nearly a Posting Virtuoso
MosaicFuneral 812 Nearly a Posting Virtuoso

Múm - Oh, How the Boats Drift

Of course I've listened to the famous bathroom recording version, but I've been checking out some of the other live versions and it's amazing what they do.

MosaicFuneral 812 Nearly a Posting Virtuoso

Yes, I do know how to read those watches.

MosaicFuneral 812 Nearly a Posting Virtuoso

Then lets just pray that he was stupid enough not to know how to build an elementary grade explosive or sub-machine gun(so easy to assemble with a trip to the hardware store that it's disturbing).

MosaicFuneral 812 Nearly a Posting Virtuoso

What is your OS's buffer set to and have you tried this with other browsers or even a word processor?

MosaicFuneral 812 Nearly a Posting Virtuoso

Sounds like you may have overloaded a keyboard buffer.

MosaicFuneral 812 Nearly a Posting Virtuoso

Electric Armories and Technology Developments for Public and Private Solutions for Today and Tomorrow, Now

EATDPPSTTN

MosaicFuneral 812 Nearly a Posting Virtuoso

10-12 QBasic, looked around at other languages. Started C\C++ around 13-14, got decent by 16, started writing things like assemblers, mutators, byte code catalyst, disassemblers, etc. at 17, but kind-of stopped doing any real coding around then. So I haven't done any serious programming in a couple years(other than novelty code and a Java game), did start revising and documenting projects around Winter semester, but I had other none programming related projects to deal with.

MosaicFuneral 812 Nearly a Posting Virtuoso

Don't really program anymore and I'll tell you why.

Put on some breakcore, tech death, stoner sludge, random piano pieces, or whatever has a heavy rapid groove.
Within first hour douse yourself in a pot coffee. Pop some DMAA, BZP, MDPV, whatever's legal and available.
On days when you feel like shit:
Have another pot of coffee. Have some DXM or something as a nasty you feel(assuming it leaves you lucid enough to even touch keyboard), maybe a 40oz.
Chain smoke outside in the rain with your coffee.

MosaicFuneral 812 Nearly a Posting Virtuoso
push %ebp
mov  %ebp, %esp
xor  %eax, %eax
leave
ret

Free rep.

cwarn23 commented: Thanks :) +0
MosaicFuneral 812 Nearly a Posting Virtuoso

http://www.urbandictionary.com/define.php?term=psh

And by the way, if you can figure this out:

01010101
10001001 11100101
00110001 11000000
11001001
11000011

Free rep. Here's a cheat sheet: http://ref.x86asm.net/coder32.html

MosaicFuneral 812 Nearly a Posting Virtuoso

a language where you could type just hexadecimals

Psh, did it in binary.

MosaicFuneral 812 Nearly a Posting Virtuoso

Punch cards and assembly, what's that - some new fangled wizardry?

01010101
10001001 11100101
00110011 11000000
11001001
11000011
MosaicFuneral 812 Nearly a Posting Virtuoso

Upside-down can of dust off and a thrown together electromagnet.

happygeek commented: nice! :) +0
MosaicFuneral 812 Nearly a Posting Virtuoso

Well happy birthday, and thanks for the website.

MosaicFuneral 812 Nearly a Posting Virtuoso

One is the same as the other, but with an extra set of limbs.

MosaicFuneral 812 Nearly a Posting Virtuoso

I'd ask if you're new here, but it says you've been here since '07.

Anyway, probably best to avoid calling it hacking. Perhaps something more PC, like "System Security Analysis".

Rather than focusing on the language, things to know:
http://en.wikipedia.org/wiki/Portable_Executable
http://en.wikipedia.org/wiki/NTFS
http://en.wikipedia.org/wiki/Internet_socket
http://msdn.microsoft.com/en-us/library/ee663300%28v=VS.85%29.aspx
http://ref.x86asm.net/
http://en.wikipedia.org/wiki/Boot_sector

MosaicFuneral 812 Nearly a Posting Virtuoso

I think this about sums things up:

MosaicFuneral 812 Nearly a Posting Virtuoso

Not any faster than C reaches over death's threshold, which is something I probably will not see in my lifetime.

MosaicFuneral 812 Nearly a Posting Virtuoso

Java seems to be a parasite that lives inside other things I maybe use.
It thrives on the ubiquitous scare tactic "Load my latest version or you will be even LESS protected than now"

ACHIEVEMENT UNLOCKED: Sounding like a paranoid conspiracy theorist.

If Sun never patched security holes, then applications that send sensitive information(such as banking info) would be at risk through exploits.

If you really don't use Java for anything, like gaming or development tools, then whatever; Delete it.

MosaicFuneral 812 Nearly a Posting Virtuoso

Well did he specify usage and give you an example of a this ambiguous pseudo-code, on the assignment or any time during the quarter?

"It's soo unfair, I should have gotten a perfect score =/ "

I read that in the voice of a pouting eight year old girl.

ChrisHunter commented: good comment +0
MosaicFuneral 812 Nearly a Posting Virtuoso
MosaicFuneral 812 Nearly a Posting Virtuoso

Okay, what's your input and output method? Do you want to go more along the lines of a slide ruler with slides or wheels, or maybe a very large complex mechanical system made out of origami pieces?

Or do you mean making electric components out of paper and graphite? You can make resistors by etching a current path with a pencil on thick paper and putting two leds on the ends or create a variable resister with a paper clip. I've heard of people making capacitors out of old books and some foil. Transistors are a whole different game requiring you to dope material.

MosaicFuneral 812 Nearly a Posting Virtuoso

Just watched a South Park Episode about Facebook, it was hilarious :) Here is the link. Personally I have a facebook account but never visited it. I played farmville at my mom's account xD before and all her friends were inviting me to there farms, then I put up a sign to not trespass and I will not visit there farms so they got mad.

I'd stick with the official site: http://www.southparkstudios.com/

MosaicFuneral 812 Nearly a Posting Virtuoso

Don't think I'm ever on Facebook long enough to effect much else.

Now YouTube and Reddit...

katmai539 commented: Same goes for me and youtube. +0