Random Thoughts Thread 004

Discussion in 'Random Thoughts' started by AceK, Dec 11, 2015.

  1. Moonglow181

    Moonglow181 Lifetime Supporter Lifetime Supporter

    Messages:
    16,175
    Likes Received:
    4,927
    What's buggin ya?
    Don't let it because then it bugs me....:p
     
  2. AceK

    AceK Scientia Potentia Est

    Messages:
    7,824
    Likes Received:
    961
    Description of compile time error:

    fileutils.cpp: In function ‘char* create_filename(char*, char*)’:
    fileutils.cpp:23:43: error: ‘strlen’ was not declared in this scope
    filename = (char *) malloc (strlen (name) + strlen (ext) + 2);
    ^
    Makefile:436: recipe for target 'fileutils.o' failed


    And this was the fix:
    Code:
    //
    // C++ Implementation: fileutils
    //
    // Description:
    //
    //
    // Author: Lorenzo Bettini <http://www.lorenzobettini.it>, (C) 2004
    //
    // Copyright: See COPYING file that comes with this distribution
    //
    //
    
    #include <stdio.h>
    #include <stdlib.h>
    #include <string.h>  // fix for compile time error, no declaration of strlen in this scope
    
    #include "fileutils.h"
    
    char *
    create_filename (char *name, char *ext)
    {
      char *filename ;
    
      filename = (char *) malloc (strlen (name) + strlen (ext) + 2);
      /* 2 = 1 for the . and one for the '\0' */
      if (! filename)
        {
          fprintf (stderr, "Error in memory allocation! %s %d\n",
                   __FILE__, __LINE__);
          abort ();
        }
    
      sprintf (filename, "%s.%s", name, ext);
    
      return filename ;
    }
    
    ofstream *
    open_fstream (const char *filename)
    {
      ofstream *fstream = new ofstream (filename);
    
      if ( ! (*fstream) )
        {
          fprintf( stderr, "Error creating %s\n", filename ) ;
          abort() ;
        }
    
      return fstream;
    }
    
     
  3. Piaf

    Piaf Senior Member

    Messages:
    272
    Likes Received:
    0
    hello, it's me
     
  4. Tyrsonswood

    Tyrsonswood Senior Moment Lifetime Supporter

    Messages:
    34,216
    Likes Received:
    26,332
  5. AceK

    AceK Scientia Potentia Est

    Messages:
    7,824
    Likes Received:
    961
    I have a headache ... :/
     
  6. Asmodean

    Asmodean Slo motion rider

    Messages:
    50,551
    Likes Received:
    10,140
    Enjoyed the holidays? :)
     
  7. AceK

    AceK Scientia Potentia Est

    Messages:
    7,824
    Likes Received:
    961
    RE: "the holidays"

    I mostly enjoyed the holidays and got to see family I don't get to see very often. Consumed probably too much alcohol. Otherwise IMO the holidays kinda suck, because to me it's as if the world is broken for several weeks. I did get some clothes for xmas though from some family members. When I was a child I used to hate getting clothes for Christmas, but I was very thankful, as most of my wardrobe is several years old and worn out ...
     
  8. Asmodean

    Asmodean Slo motion rider

    Messages:
    50,551
    Likes Received:
    10,140
    I celebrated the holidays in moderation, but i enjoyed them a lot myself (and I didn't even need too much alcohol for that) :p
     
  9. AceK

    AceK Scientia Potentia Est

    Messages:
    7,824
    Likes Received:
    961
    I wouldn't have needed it either, but I kept being offered drinks that I didn't ask for, so how can I say no ....?
     
  10. Asmodean

    Asmodean Slo motion rider

    Messages:
    50,551
    Likes Received:
    10,140
    I felt like i needed it in the past too when I was celebrating new years eve every year in the same lame town bar/club with all kinds of people that you get bored with after a sentence or 2.
     
  11. AceK

    AceK Scientia Potentia Est

    Messages:
    7,824
    Likes Received:
    961
    I hate Microsoft, I also hate most ISPs
     
  12. NoxiousGas

    NoxiousGas Old Fart

    Messages:
    8,382
    Likes Received:
    2,389
    you certain about that, Dell and other brands have offered various flavors of linux for quite some time now.

    http://pilot.search.dell.com/linux

    they are not promoted as much as the MS mainstream products, but they are available and if you custom order a system you can request it instead of a MS product.

    the primary reason you didn't see linux flavors being offered prior to the last decade or so is because for the average user it was unapproachable, BUT ever since the anti-trust case in the '90's you have been able to custom order boxes with other OS's or blank. (I will admit my experience may be different as I/we did not go through the "normal" channels for ordering as we were a certified Dell re-seller)
    It has only been because of the development of more robust and user friendly iterations of linux that has brought it up to being a competitor to MS.
    But the big brands stopped all that sneaky proprietary shit a long time ago.

    But I do remember at the height of the "Netscape vs IE" war that you could NOT install Netscape on a Win 95 machine and that was by design and one of the things MS got reamed over in court.
     
  13. AceK

    AceK Scientia Potentia Est

    Messages:
    7,824
    Likes Received:
    961
    Yes, well it depends on the exact model (not just vendor), and various vendors such as Dell and HP offer "developer" models, often preinstalled with linux, but I still have no idea what kind of firmware they are implementing in these models. I have a thread in "Computers and the Internet" where I as well as others have discussed this. Older models are less tyrannical, newer models from certain vendors that ship with Windows 10 are implementing this evil tyranny. Of course I don't know about every single laptop model, manufactures won't provide detailed technical documention on their hardware, so the only way to determine these details is to purchase the laptop and poke and peek around, or ask someone who has purchased a particular model. Basically "consumer" grade hardware is becoming garbage these days ... they treat their "consumers" like shit, and think we are all a herd of sheep with the exact same use case for a computer.

    I will also link to a reddit thread that I started about this topic (and feel free to click my reddit username and look at my other threads.

    Worth a read: https://www.reddit.com/r/linux/comments/3y6vrt/looking_for_good_options_for_foss_laptop/
     
  14. Moonglow181

    Moonglow181 Lifetime Supporter Lifetime Supporter

    Messages:
    16,175
    Likes Received:
    4,927
    Why do you hate microsoft and most ISP's....?
     
  15. Piaf

    Piaf Senior Member

    Messages:
    272
    Likes Received:
    0
    Yes. I spent Christmas in Madrid, and New Years in Zürich, and now I'm back home.
    I did manage to get a bit sick, and I thought my head was going to explode during my flight home, but it was well worth it.
     
    1 person likes this.
  16. AceK

    AceK Scientia Potentia Est

    Messages:
    7,824
    Likes Received:
    961
    Because ISPs think that their consumers are idiots (and treat us like cretins), and set them up with very insecure equipment that's very easy to exploit and full of potential vulnerabilities. Does you're ISPs email servers use secure AUTH, is the encryption "broken" or incorrectly implemented? Might wanna check ... . Microsoft is tyranny, they want everyone to do things one way, which is their way and think that the "consumers" are a bunch of sheep and all use computers in the same way. Read the reddit thread I posted a few posts above (#113) if you wanna know more about how I really feel about this kind of thing (and the OP of that thread's other threads ... have a guess who the OP of that reddit thread might be *wink* ;) ), or some of my threads in the Computers and the Internet forum on this site.

    FOSS FTW!
     
  17. hotwater

    hotwater Senior Member Lifetime Supporter

    Messages:
    50,596
    Likes Received:
    38,984
    Took 3 weeks off from work during the holidays but didn’t really do much.. It was nice just puttering around the house, visiting relatives in the area, and going to a few movies like The Hateful Eight and Star Wars.

    Nice but nothing special.


    Hotwater
     
  18. Moonglow181

    Moonglow181 Lifetime Supporter Lifetime Supporter

    Messages:
    16,175
    Likes Received:
    4,927
    Star Wars is special....:)
     
  19. hotwater

    hotwater Senior Member Lifetime Supporter

    Messages:
    50,596
    Likes Received:
    38,984
    It was great but I still like The Empire Strikes Back a little better :)


    Hotwater
     
    1 person likes this.
  20. AceK

    AceK Scientia Potentia Est

    Messages:
    7,824
    Likes Received:
    961
    Return of the Jedi is my favorite, especially at the end where Anakin Skywalker is standing next to Obi Wan ... its remarkable how much he resembles Anakin in the prequels, released decades later.
     

Share This Page

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice