rubberman 1,355 Nearly a Posting Virtuoso Featured Poster

It sounds like you are compiling something that has to talk directly to hardware, hence the firmware indication. Are you sure you have the appropriate hardware for this tool? Also, what is it supposed to do?

rubberman 1,355 Nearly a Posting Virtuoso Featured Poster

Versionitis? I think that Win7 and Win8 are using very different protocols to communicate with the TV, giving you the effects you are experiencing. Obviously, Win8 can understand the TV, but not vice-versa. I don't know if the TV has the ability to update to Win8 support remotely or not. If not, then you will be stuck using Win7 for now.

rubberman 1,355 Nearly a Posting Virtuoso Featured Poster

This likely has to do with how the specific Linux distribution you are using has programmed the keyboard. Obviously, Deepin Linux has programmed it correctly. You will need to reprogram the keyboard mappings accordingly for other distributions.

rubberman 1,355 Nearly a Posting Virtuoso Featured Poster

If the /home and the unallocated space are contiguous, you can use fdisk to resize the /home partition, and then use resize2fs to increase the file system size. Do bear in mind that you will need to be sure you are not using any files on that partition when you do (or bad things may occur - but not necessarily).

rubberman 1,355 Nearly a Posting Virtuoso Featured Poster

The maximum disc size depends upon (to some extent) the file system that is using it. In any case I think that 2TB is about the smallest maximum size (kind of an oxymoron that) supported. Modern partition table formats can handle larger devices (such as 3tb discs and larger RAID/LVM arrays), as can file systems such as btrfs and such for Linux. Not sure about Windows. I think NTFS may be limited (but I may be incorrect in this) to 2TB as well.

rubberman 1,355 Nearly a Posting Virtuoso Featured Poster

Your dhcp is via Meraki - as in Cisco's Meraki routers? You have one physically on-site?

rubberman 1,355 Nearly a Posting Virtuoso Featured Poster

Your image is too fuzzy to read.

rubberman 1,355 Nearly a Posting Virtuoso Featured Poster

Not likely possible, except possibly with fastest (most expensive) devices. Discs cannot physically write this fast. With appropriate cache on-disc, you can write small amounts to the disc at those rates, but the buffer cache will saturate quickly and the throughput will drop to the raw data write speed of the disc, which depends upon the rotational speed of the drive, number of heads, and such. My high-end 7200rpm drives can sustain a bit over 60MBps in write speed. If you have 15K drives with more heads, then 120-150MBps sustained may be possible, but the OS (disc drivers) will have to handle it as well, which also gets into the I/O channel speeds. IE, it isn't just a disc issue, but an entire system issue.

rubberman 1,355 Nearly a Posting Virtuoso Featured Poster

3 days eh? Good luck! How long have you had this assignment?

So, the three issues are:

  1. Confidentiality (no snooping)
  2. Integrity (someone cannot compromise the thread)
  3. Authentication (you are you, and I am not you, but you can determine who I am)

So, you get to figure out how to implement this in C or C++ (I vote for C++).

rubberman 1,355 Nearly a Posting Virtuoso Featured Poster

Also, try booting into safe mode, and run some industrial-strength virus/malware scanners on the system. It does seem like you have been pwnd, and it is likely some sort of "ransom-ware". Can you boot the system and run your web browser?

rubberman 1,355 Nearly a Posting Virtuoso Featured Poster

Take or send it in for repair. It appears to be a hardware problem - the auto-restart is a good indicator of this.

rubberman 1,355 Nearly a Posting Virtuoso Featured Poster

Is this where your PC is using your cell phone's data connection? If so, then tethering works for one PC. For others you need to use the phone as a WiFi access point, or "hot spot" in other terms. If you can tether to the phone, then it should be able to become a hot spot, though bear in mind that usually for phones (such as my Android phone), there is a limit like 4-5 connections. I have used mine for this purpose on numerous occasions, as well as tethering.

However, if you want to physically tether it to one PC, and let others access the connection via either wireless or physical connections, more work is involved, such as setting up a router, a WiFi access point (if you want wireless connections), etc. So, until we know exactly what you are trying to do (your post wasn't clear enough), then this is the best advice I can provide.

rubberman 1,355 Nearly a Posting Virtuoso Featured Poster

Time to make an appointment with the Apple "gurus" at your local Apple Store...

rubberman 1,355 Nearly a Posting Virtuoso Featured Poster

I don't see any fork() calls in your code, which is how you would create multiple subserviant processes (parent create two processes). Those are not threads, but seperate processes that are created by the root process.

rubberman 1,355 Nearly a Posting Virtuoso Featured Poster

This is exactly why we try to enforce some consistent formats on dates, such as MMDDYYYY, DDMMYYYY, MMDDYY, DDMMYY, etc. As long as the format is agreed upon, then this isn't a major issue, but some systems use YYYYMMDD, or YYMMDD so the dates are properly sortable.

rubberman 1,355 Nearly a Posting Virtuoso Featured Poster

What do YOU mean by IQ samples? What exactly are you trying to get out of this device?

rubberman 1,355 Nearly a Posting Virtuoso Featured Poster

You can program C in C++, but not the other way around. Read what JorgeM said...

rubberman 1,355 Nearly a Posting Virtuoso Featured Poster

Go to Google's Android development web site, download/install the android emulator, learn Java (Android's Dalvik is java with a different compiler/virtual-machine), and get some Java programming books. There are tonnes on Amazon.

rubberman 1,355 Nearly a Posting Virtuoso Featured Poster

My guess would be that the Amazon DRM (Digital Rights Management software) is not supported by Ubuntu 14.04 or your version of Flash.

rubberman 1,355 Nearly a Posting Virtuoso Featured Poster

Sorry, but we don't do your homework for you. First, you don't mention the programming language you are going to use - even if only pseudo-code or ANL if this is an abstract exercise. Second, you don't show any of your work for us to help correct and/or critique.

rubberman 1,355 Nearly a Posting Virtuoso Featured Poster

So, you post a bunch of code and fail to say anything about what your specific problem may be... So, what IS your problem?

rubberman 1,355 Nearly a Posting Virtuoso Featured Poster

You aren't giving much information here. Which version of VLC? How did you install it? Does it start but generate an error? If you start it from a command line, what output do you get (some errors likely).

rubberman 1,355 Nearly a Posting Virtuoso Featured Poster

You need to contact your school systems administrator(s). There is nothing more we can help you with here.

rubberman 1,355 Nearly a Posting Virtuoso Featured Poster

To quote the title of one of the pre-eminent tomes of computer science by Niklaus Wirth, "Data Structures + Algorithms = Programs".

Anyway, since you are going to take a course in object-oriented programming, it is time to learn UML modeling. There are tonnes of resources on the Internet to help get you started.

rubberman 1,355 Nearly a Posting Virtuoso Featured Poster

We do NOT do your homework for you! pyTony's link may help, but we won't provide a solution to this problem. If you make an effort to solve it on your own and post the code with which you are having difficulties, then we may help you by pointing out your errors, and making suggestions.

rubberman 1,355 Nearly a Posting Virtuoso Featured Poster

Honestly, I have to agree with Hiroshe. If the result of the insert operation of z,x,z into the second position of x,y,z is to result in a set, then the results should be x,z,y - anything else is a list, not a set. Sets do NOT have duplicates.

rubberman 1,355 Nearly a Posting Virtuoso Featured Poster

VOB files are mpeg2 DVD files. As the others have said, VLC will have no problems with these. Note that most DVDs have multiple 1GB VOB files associated with a single video, so you will probably want to highlight all the VOBs in a set and drop those on VLC directly. That way, you will get the entire video displayed without breaks. Alternatively, if the video is a full DVD image (VIDEO_VS directory), then open the directory that VIDEO_DS is contained in with VLC, and you will get the entire DVD, menus and all.

rubberman 1,355 Nearly a Posting Virtuoso Featured Poster

JorgeM is spot on, in my opinion. 1. Back up your data. 2. Install a clean Win7 image. 3. Run Linux or other operating systems in a virtual machine with Win7 as the host. #3 is what I do, using VirtualBox (free). Most of my work-related development work is on Linux, so I run a CentOS (RHEL) 6.5 image in a VBox virtual machine, and other operating systems as needed. Win7 is used for business-related cruf.

Mya:) commented: :) +0
rubberman 1,355 Nearly a Posting Virtuoso Featured Poster

This is why we store backups offline. If they are connected to the computer, then corruption (accidental or deliberate) can occur. For my backups, I keep a bunch of 2TB hard drives that I can stick into an eSata docking bay, backup my stuff, unmount the drive, and take it offline. It is then inaccessible by other stuff, including malware. I do this with my system drive as well. I have been able to restore my system to a known good state that way after getting pwnd or some other catastrophic event has occurred. IE, backup system drive, backup data, take backup drive offline. Make data system and data backups on a regular basis. When you have to restore the system and data, you may lose a bit of work, but mostly you will be intact.

rubberman 1,355 Nearly a Posting Virtuoso Featured Poster

That looks pretty correct. You do need an enum to define indexes into grades such as LAB, PASS_FAIL_EXAM, FINAL_EXAM, etc. At least it looks like that's what you need.

rubberman 1,355 Nearly a Posting Virtuoso Featured Poster

Just listing the components isn't helpful. When you turn it on, does ANYTHING work, such as fans and such? Have you verified that you plugged the power supply into the correct headers/plugs? If it doesn't even turn on the power supply fan, have you checked if the power supply circuit breaker / fuse hasn't tripped / blown?

I have built a lot of systems from components, but many people have problems doing so because they don't utilize due dilligence in making sure that all the i's are dotted and t's are crossed properly.

rubberman 1,355 Nearly a Posting Virtuoso Featured Poster

Please post the error messages here.

rubberman 1,355 Nearly a Posting Virtuoso Featured Poster

From the Linux select() manpage:

"Those listed in readfds will be watched to see if characters become available for reading (more precisely, to see if a read will not block; in particular, a file descriptor is also ready on end-of-file)."

This has bit me in the past (and recently as well). The only solution is to do a non-blocking read to see if you really get some data.

Anyway, asking people to analyize almost 300 lines of code is not really useful - there is too much to miss unless one has a LOT of time to spend on reviewing it in detail. :-)

rubberman 1,355 Nearly a Posting Virtuoso Featured Poster

I have used powers-of-2 to reallocate array sizes very successfully for years. IE, when I need to add an element to an array, and the array is full, then I allocate twice the current size of the array, using the C-function realloc(), and reset the maxsize variable, then add the new member to the array, incrementing the currsize variable. That minimizes the number of allocations required, and using realloc() means that I don't need to copy the data as a separate step or manually delete the old array - usually the compiler+hardware can optimize this operation better than I can.

This only breaks down when you get to REALLY large arrays, and in 30+ years I haven't run into that problem except on small (16-bit or smaller) embedded systems.

FWIW, do start with a power-of-2 for the size of the initial array. IE, if you need to handle 20 elements, then allocate a 32 element array (2^5 elements). When you are about to add the 33'd element, you realloc() for 2^6 (64) elements.

Linked lists are another problem entirely... :-)

rubberman 1,355 Nearly a Posting Virtuoso Featured Poster

What AD says is correct; however, if the file is small enough to fit into memory, then you can read the file into an array of char pointers (one per line), modify the appropriate line, and then write the data back to the file (truncating the file if the output is smaller than the input). On modern systems, this will work nicely (and more efficiently than the temp file solution) for files up to about 1GB in size. Bigger than that, go the temp file route.

rubberman 1,355 Nearly a Posting Virtuoso Featured Poster

If you mean UML diagram, then get Sparx Enterprise Architect and use its reverse engineering capabilities to convert code to UML.

rubberman 1,355 Nearly a Posting Virtuoso Featured Poster

Most probably it means that the program has a memory access error. If you wrote the program, or have the source code, then run it in the debugger. If you didn't/don't, then report the problem to the developer.

rubberman 1,355 Nearly a Posting Virtuoso Featured Poster

OpenVMS is a virtual machine manager that uses the host OS services for this stuff (usually). As for the differences, that is very difficult to say. Contact OpenVMS for more information - provided they want to give it to you. If it is "open", then the source should be available for your perusal and analysis...

Also, note that OSX is basically BSD Unix, which is ALSO open source. Apple adds their UI cruft and some additional software, but the memory management functionality should be pretty standard.

rubberman 1,355 Nearly a Posting Virtuoso Featured Poster

@Himanshu
Downpost? Probably because you were asking for help with school/homework/testing stuff and hadn't prepared yourself, likely by things like "reading the book" or participating in class assignments.

rubberman 1,355 Nearly a Posting Virtuoso Featured Poster

That is the source code. You need the GNU C/C++ compiler suite at the least (plus probably cmake as well) which are packages you need to install from the Ubuntu aptitude repository. In any case, installing the binaries from standard repositories (the link that pritaeas provide tells how to do that) is a better option unless you are really experienced with installation of open source packages on Linux from source code.

FYI, 5.6.17 is the latest "stable" MySQL version. There are some subtle, but important, differences from the 5.1 versions that most sites run.

rubberman 1,355 Nearly a Posting Virtuoso Featured Poster

First, you aren't providing enough information. Second what did you do to install/configure it? Finally, please post configuration information here for us to look at. Just stating "I have a problem" isn't too useful...

rubberman 1,355 Nearly a Posting Virtuoso Featured Poster

C++ == C with classes.

The key here are "classes" - this is a critical part of object-oriented programming (OOP). OOP allows much better modelling of real-world constructs than do "traditional" functional programming constructs do. An object is an instance of a class, which contains member data (values specific to the instance), and methods to operate on the instance and its members. Here is a "trivial" example:

struct date {
    unsigned year;
    unsigned month;
    unsigned day;
};

class person {
private:
    // Member variables here.
    std::string m_name;
    std::string m_address;
    date m_dob; // Date of birth.
public:
    person();   // Declaration of a person - implemented in person.cpp
    person( unsigned DOByear, unsigned DOBmonth, unsigned DOBday )
    { setDOB(DOByear, DOBmonth, DOBday); }
    person( const person& cpy ); // copy constructor (make clone) - see above.
    person& operator=(const person& rhs); // Makes one person a clone of another.

    void setDOB( unsigned year, unsigned month, unsigned day ) // Sets date of birth
    { m_dob.year = year; m_dob.monnth = month; m_dob.day = day; }
    std::string getDOB(); // Returns date-of-birth as a string in YYYY/MM/DD format.
};

This is a very simple (and not really great) example of using C++ to writing OOP code.

rubberman 1,355 Nearly a Posting Virtuoso Featured Poster

Decomposed (first example ONLY):

ab := a*b
4c := 4*c

Using precidence:

2-d/m-n := 2 - (d/m) -n

Then key question is do the '^' operators in ab^4c^2-d/m-n mean XOR or power operations? They can be either. The results are radically (sic) different!

In any case, I think this is a really poorly stated expression. The professor should be seriously criticized for it... :-(

rubberman 1,355 Nearly a Posting Virtuoso Featured Poster

Nathan is basically correct. GUID's (Globally Unique IDentifiers) are difficult - I know because I have written code that generates them that are used world-wide in manufacturing systems. The main difference between what I developed and others is that you can determine the class of an object from the GUID, and use that to create either a new instance of that class, or duplicate / recompose an instance (constructing a true, new duplicate from serialized data).

So, you either need an algorithm that can generate GUARANTEED unique numbers on any number of running systems, or (big bottleneck here) they have to get a new number from a "master" server. The main problem with that is what happens when the master dies, and another server has to take over? How do you keep them sync'd? Seems simple, but is NOT - and is a major problem in computer science.

rubberman 1,355 Nearly a Posting Virtuoso Featured Poster

The random() function is a system function that returns a long int. You have declared that your random() function returns an int, and this is the cause of the compiler complaint. FWIW, long int random() is declared in <stdlib.h>.

rubberman 1,355 Nearly a Posting Virtuoso Featured Poster

My guess is that the underlying code that handles the "heavy lifting" is C++, and the UI stuff is C#. Why C# when they are also using Qt (multi-platform GUI API's) is beyond me. Totally unnecessary IMO.

rubberman 1,355 Nearly a Posting Virtuoso Featured Poster

Agree 100% with both Mike2K and SaintAce. VLC can play just about any media type, including stuff that Windows Media Player just barfs on... I run it in both Windows and Linux.

rubberman 1,355 Nearly a Posting Virtuoso Featured Poster

Why are you trying to update yum? It isn't necessary.

rubberman 1,355 Nearly a Posting Virtuoso Featured Poster

Are you sure it isn't DRM-encumbered? It may be encrypted on the box, so that you can't just download it and play with other stuff...

In any case, the current version of ffmpeg should be able to transcode .ts files to others. Do you have ffmpeg installed on your system? If not, download and install it.

There are examples in the ffmpeg manpage that show how it can be done.

rubberman 1,355 Nearly a Posting Virtuoso Featured Poster

I'm not sure it is Win7 compatible. From the MS website requirements for VSP 9: Windows 2000 Service Pack 3, Windows Server 2003, Windows XP