5,331 Posted Topics

Member Avatar for Seba Sama

Exactly what Moschops said. Here is a proper implementation, but still pretty useless... :-) void* aFunction(int* pToInt) { cout << "something" << endl; return (void*)pToInt; } void f_voidFct() { void *(*voidPtr)(int *); voidPtr=aFunction; // here I get the error int a=5, *ptr_a=&a; void* p = voidPtr(ptr_a); // p should have …

Member Avatar for Seba Sama
0
225
Member Avatar for emorjon2

Jason, I know what you mean, though I do some of my best work at stupid o'clock, after a couple of shots of good scotch. My head hits the keyboard, and it finishes the task for me! :-)

Member Avatar for mike_2000_17
0
568
Member Avatar for aluya
Member Avatar for DamianFox

I think the problem is that the tasks are running as threads, hence simultaneously. Rather than as runnables they should just be normal functions with a wait at the end of them. Since they are running inside another thread, it should not interfer with other processes/threads running in the environment.

Member Avatar for DamianFox
0
2K
Member Avatar for sevichu
Member Avatar for ArashVenus

The extern keyword declares that a variable or function is implemented elsewhere, likely in another translation unit (source file). The static keyword is another beast, and depends upon whether it is declared such in a header or in a source file. If in a source file, then that is a …

Member Avatar for Ancient Dragon
0
230
Member Avatar for Stuugie

This shows that your computer is trying to boot from the network. Go into the BIOS and disable PXE (network) booting.

Member Avatar for Stuugie
0
286
Member Avatar for Igjarvi

You may also have to blacklist the default nouveau driver. To do that, edit the file /etc/modprobe.d/blacklist.conf and add the line: blacklist nouveau

Member Avatar for rubberman
0
191
Member Avatar for PriteshP23

Look for the command "split". The man page tells you exactly how to do what you want, and it will do it all at once.

Member Avatar for rubberman
0
258
Member Avatar for vizz

Some VPN services are quite efficient, using hardware engines that have specialized chips to decode/encode the data on their end. The only encoding/decoding in software is going to be on your desktop end of the tunnel. I use VPN connections for work daily and the speed is pretty decent. It …

Member Avatar for rubberman
0
2K
Member Avatar for Limiter

Actually, that doesn't create new variables, but simply sets the value of an array member.

Member Avatar for yawaramin
0
327
Member Avatar for PGKroeger

Since you are running Windows 8 on a UEFI secure-boot enabled system, have you enabled secure boot? If so, have you registered the Windows 8 key with the UEFI BIOS?

Member Avatar for powerade661
0
288
Member Avatar for hammadparvez007

Assuming both systems (AMD and Intel) use the same type of RAM SIMMS, and using the AMD RAM in the Intel system exhibits this malfunction, then it is likely a RAM problem. Are you using 2, or 4 SIMMS? In any case, try leaving out one of the SIMMS (in …

Member Avatar for babyelepante
0
234
Member Avatar for Alibi Ghazi

Huh?? Do you want to elaborate on this? The algorithm is embedded in the function, but naturally matlab doesn't provide source for you. Have you tried Googling this yet? :-) BTW, we don't do your homework for you. Work it out, and post the code here. We will then be …

Member Avatar for phorce
0
143
Member Avatar for twince.kumargarg

Since you say that it also was a problem with other versions of Windows it is likely a hardware or bios problem. Try updating the bios first.

Member Avatar for Deep Modi
0
158
Member Avatar for doushka6300

The terms of use for these forums is that we don't do your homework for you. Make a reasonable attempt and we will try to help you understand where you went wrong, but YOU have to start the process.

Member Avatar for doushka6300
0
123
Member Avatar for tallman kinene

It should be noted that VPNs are also utilized for anonymizing services such as Tor.

Member Avatar for Rose Ab
0
233
Member Avatar for nagabharan

You use software development processes to build any software, including display (GUI) applications. You need to do some serious reading before you go any further, especially in this day and age of security exploits and malware. One good text on software engineering/development (very dated, but still a good foundational text) …

Member Avatar for KushMishra
0
327
Member Avatar for Lisa3103

Good exercise! Get started, and then we may help you. We don't do your homework for you. Think about the problem. Your professor has already broken the work down into manageable chunks. Look at each first in isolation, and then as a gestalt of all the parts. Thats how real …

Member Avatar for Lisa3103
0
162
Member Avatar for Debroh

Was the ink you purchased from the printer manufacturer? Also, what is the make/model of your printer? Some manufacturers these days are embedding chips into their ink cartridges in order to block other ink manufacturers from selling product for their printers - so if you get an aftermarket product, it …

Member Avatar for rubberman
0
107
Member Avatar for mallo

Pick your poison! Both are hot topics these days, though web security is probably hotter. However, do bear in mind that if you do present a paper at such a conference, you better know your subject!

Member Avatar for rubberman
0
74
Member Avatar for mattyd

Have you tried one of the other php mysql libraries, such as the mysqli class? I have had good results with that connecting to remote servers. Here is some code, the class I use to connect with mysql servers from my php applications: <?php // php_flag register_globals on // Some …

Member Avatar for rubberman
0
209
Member Avatar for M. Ranjitha

Just one line of each, or lots? It could be the display card, but it could also be the internal controller hardware of the display, or even the video cable! I am assuming here that the monitor is not the display of a laptop? Here is the workflow to determine …

Member Avatar for rubberman
0
80
Member Avatar for kannan1234

Thanks - we like to think so! After all, in the mobile phones and services division (just bought by Microsoft), we have 32000 employees focussed on just that! :-)

Member Avatar for rubberman
0
39
Member Avatar for Waseemaburakia

So, what's your problem? In any case, you need to guard against values of r < 1 as well, returning 0 in such a case.

Member Avatar for fonzali
0
217
Member Avatar for hilarious.mwaringa

Internet connections can be via WiFi, cable (via some sort of hard-wired link, such as a modem, DSL, or other media), BlueTooth (to a device that can act as a modem), or a LAN that has internet access.

Member Avatar for DhayaCse
0
154
Member Avatar for bryann

I don't know about Astra32, but if it is looking at the smart interface of the SSD, then it is probably correct. SMART is a tool on most all current drives that monitors in real-time the behavior of the drive, including disk read errors, sector remapping, temperature, etc. On my …

Member Avatar for bryann
0
178
Member Avatar for signal121

Please explain exactly what you mean by "bad signals". In any case, it is probably a case of bad hardware (cell phone transceivers) in which case it will require a visit to the warranty repair center.

Member Avatar for happygeek
0
103
Member Avatar for anuran

If it is still under warranty, take the disk drive out and send it in for repair/replacement. The OS on the drive is likely ok, hence the advice to keep the drive, otherwise they will replace that also, and you will lose all of your data. Dell hase (in the …

Member Avatar for rubberman
0
223
Member Avatar for mixelplik

Well, you could always fall back on the old C standard fprintf() format strings. Sometimes it is a lot easier than C++ output manipulators, though if your class is trying to teach you C++ output manipulators then that may not be an option... :-)

Member Avatar for mixelplik
0
206
Member Avatar for cuivenion

Have you connected with your Apple "Gurus" about this issue? It certainly isn't normal behavior, though I don't know a lot of people who use dual displays with their macbook laptops. I use dual displays on my Windows 7 laptop (Lenovo) and it doesn't seem to affect the cpu temperature …

Member Avatar for cuivenion
0
319
Member Avatar for pelle12

You can't use nedit in a console terminal either, but it is a great editor! I use it for almost all of my programming since it has syntax support for most computer languages out there, including c, c++, bash, php, java, make, et al. And yes, text editor preferences tend …

Member Avatar for mike_2000_17
0
378
Member Avatar for soulikalei

As per Dani's post - this is an english only forum, though I do speak/read/write spanish, so here is my answer in English... :-) Usa el servicio traductor de Google si necicitas. Sony systems are infamous for being totally proprietary - getting stuff to work is sometimes a real pain …

Member Avatar for rubberman
0
95
Member Avatar for Ju

I have had drive failures due to the PC board (controller) on the drive failing, and this was possible, but it is unlikely. You would need to purchase an identical drive and swap the circuit boards to see if that works. If not, then you are SOL for recovering the …

Member Avatar for rubberman
0
140
Member Avatar for Frank15

If you know C++, php is pretty simple, and can include HTML code quite nicely. That said, I have encountered some pretty significant php bugs in dealing with HTTP conversations, one of which (dealing with transmitting "chunked" data and URL encoding) required some php code updates. I have posted these …

Member Avatar for kindo
0
324
Member Avatar for ComeAsUR
Member Avatar for mussdroid
0
85
Member Avatar for gbirdman.burton
Member Avatar for rubberman
0
64
Member Avatar for abousetta

We don't do your homework for you. Please make an effort to solve this and then post your code. At that point we may help you with problems you may encounter, but until you try to solve it yourself...

Member Avatar for rubberman
0
149
Member Avatar for sassy_94

Any reason why you are using C for this? It isn't simple to do in C. I would recommend that you get the Mozilla Firefox 2.x code base (written in C/C++) and study how they do it. Also, I am doing much of what you are, but am using PHP …

Member Avatar for rubberman
0
276
Member Avatar for myclass

All the above are true provided that the application is written in Java using the Android Dalvik virtual machine, which most Android applications are.

Member Avatar for rubberman
0
161
Member Avatar for anar.bataa

What Moschops said. Here is pseudo-code that you can use with C++ (or other programming language) to do this as well. 1. Open file 2. while not at end-of-file 3. read line 4. search for string (use strstr() in C/C++ for this). 5. if found in #4, increment counter. 6. …

Member Avatar for rubberman
0
213
Member Avatar for Nimerion

Bit-wise comparison != numerical comparison. In a your comparison it is only looking to see if the fourth bit is set.. For -8 the top bit is set for the negative, as is the fourth bit, hence your problem. For a bit comparison of two numbers do this: if ((a&b) …

Member Avatar for Nimerion
0
374
Member Avatar for NewHeart42108

You may need to modify the PHP file to directly write to the desired file.

Member Avatar for L7Sqr
0
195
Member Avatar for prakash2813

Low power can easily damage electronic components including the drive controller. You may be SOL. In the future as mentioned you should invest in a UPS to avoid that possibility.

Member Avatar for rubberman
0
364
Member Avatar for Erika_2

If you really cannot recall your password, then you may be SOL, especially considering the tighter security of these systems. My advice is to boot a Live Linux CD/USB/DVD drive (if the secure boot allows you to), copy your necessary data to a backup USB device, and then wipe/restore your …

Member Avatar for Deep Modi
2
431
Member Avatar for kent.johnstone_1

What sepp2k said is quite correct, but difficult to understand for noobs. Here is possibly a more understandable example: int anInt = 5; int* ptrToAnInt = &anInt; anInt += 2; printf("anInt and ptrToAnInt == %d (%d)\n", anInt, *ptrToAnInt); This should result in the output "anInt and ptrToAnInt == 7 (7)". …

Member Avatar for kent.johnstone_1
0
423
Member Avatar for BEAU_1

Bypass the system? Assuming the system doesn't have a BIOS/UEFA security password (or other security) set, including full-disc encryption, then you can boot a live CD/DVD and mount the file systems on the hard drives. If you didn't know this already, then you are an idiot and should leave well-enough …

Member Avatar for aluya
0
98
Member Avatar for moerpheus

What distribution/version of Linux are you running? In any case, you will need to fully reinstall the xorg and gnome software, or install kde, xfce, et al and try running one of those first. Finally, when you try to run startx manually, what errors are you getting? Please post them …

Member Avatar for moerpheus
0
189
Member Avatar for CJMW

The simplest is a character substitution algorithm, sometimes called the "Caesor Cypher". Anyway, read Bruce Schneier's "Applied Cryptography". Here is a link to another text (free) that Schneier has provided and recommends: http://cacr.uwaterloo.ca/hac/index.html

Member Avatar for meta.quota
0
273
Member Avatar for heftytest

Actually, for this pseudo code (pseudo code is NOT standardized), I think it is the dimension of an array. IE, the C code for `DIM EmpName = 1` would likely be `const char* EmpName[1];` Since I don't have your professor's definition to be sure, this would be my best guess.

Member Avatar for rubberman
0
230

The End.