I have a laptop with dual displays attached to it. I connect with VNC for work, and would like to fullscreen that on my dual monitors and keep the laptop display separate. On Linux you can create a "separate desktop" on the laptop display, and then another one for the dual monitors. I've been...
void ReverseString(char* String)
{
String[1] = 'a';
}
Program received signal SIGSEGV, Segmentation fault.
0x000000000040094c in ReverseString (String=0x400a74 "Hello") at main.cpp:33
33 String[1] = 'a';
is this real life? I swear anything beyond RISC assembly is so...
Can someone convince me why a CPU that is pipelined would still be considered as having 1 Clock Per Instruction. Why is it based on a filled pipeline and not the 7 cycles you would need to fill it?
So there is this binary I want to edit. I want to change the x86 asm mov (%rax),%eax
to mov %rax,FFFh.
gdb told me what the opcode was for the original, and I found its location using a hex editor. But how do I obtain the opcodes for the new operation I want to replace it? Can I use nasm...
I want to reduce my windows 7 disk footprint to be as small as possible, 12gb is too much. I've googled, but I have not found any useful results. I'm willing to have upto 3gb of space being used by windows, but thats still too much. (i should of just installed windows xp, could of gotten it down...
So my domain is about to expire and I decided to go with a cheaper company. I setup the transfer, but the new company said they need a written agreement of the current domain owner to begin the process.
The thing is, all the "owner" info I have with the old company is false and made up (just...
I would to be able to access the computers in my network by its name, like editing the /etc/hosts file and adding the name and IP of the computers. Is the only way editing the host file of every computer, or can I can just use one computers host file and have others ask it for the IP address...
Built a new computer. Was working fine yesterday. I turn it on today, and the keyboard doesn't light up and the monitor does not detect a signal. Everything runs power wise, though.
So now I have the mobo laying on its cardboard box, with just the ram and CPU (onboard video). Still nothing...
I posted this in the "build your own intel/amd" thread on slickdeals, but got no response. So I'm hoping you guys can [H]elp me out! I'll just copy the post here if you don't mind. thanks.
1. Do you have a Frys or Microcenter nearby?
no
2. What is this PC going to be built for...
I just want to read ID3 tags from mp3s, but it is becoming a real pain.
I'm trying to use taglib, and I have #include </usr/local/include/taglib/tag.h>
#include </usr/local/include/taglib/fileref.h> and then comping I get g++ -c -pipe -g -gdwarf-2 -Wall -W -DQT_GUI_LIB -DQT_CORE_LIB...
the first part is I can't get an or condition to work. Suppose I have
bool done = false;
int value;
while(!done)
{
cin >> value;
if(value==1 || value==2)
done=true;
}
and I enter 1, 2, or anything at all, the loop never ends. Yet if i do
if(value>0 || value <3) the...
I was reading "Thinking in C++" and I figured even though he says you should have basic knowledge of C, I figured I can still manage. But in his examples he just starts slipping in parts without really explaining how they work, so I assume they're from C. And it's kind of hard learning when...
I have to create a lot of objects in my test class, and I can't seem to find a way to do it. So far it would have to be done as so
Object a;
private void creatorA()
{
switch (generator.nextInt(2) )
{
case 0: a = new TypeA()...
I want to get squidguard up and running, but I think squid is the problem.
I have squid setup as such
access.log is empty, and cache.log is never created.
public class Guess
{
double gOld[], gNew;
String result = "";
int i;
double a = Math.random();
Guess(double guess)
{
gOld[i]=guess;
while(Math.abs(gNew - gOld[i])>0.000000005)
{
result = result +...
the test class has
a.add("toothbrush", 3.99);
a.add ("paste", 7.79);
And in the end, I need to print everything that has been added,
toothbrush............$3.99
paste....................$7.79
I created the class with such
void add(String name, double cost)
{...
I'm running debian etch. Is there an easy way of transferring the system from one server to another? Or would I manually have to transfer the users, mysql db, config files, etc...
My hard drive randomly shuts off and spins back up. This is extremely noticeable while gaming. I get no clicks of death, and a S.M.A.R.T. test showed there are no damaged sectors.
I can't find what seems to cause this, and if there is a way of fixing it. :confused:
My current hard drive is running out of space, and I will buy a new drive. Problem is I want to expand the space of where the first hard drive is mounted, and not create a new point for the second drive. I cant to lose my data, so I can't setup a RAID0.
What can I do?
1. need to use recovery console
2. windows xp cd repair does not detect hard drive
3. Probably needs drivers. (the thing has sp2 yet still needs drivers for sata!)
4. Drivers are in floppy, yet no floppy drive.
5. Do not want to reburn xp with the drivers installed.
6. need a...
I'm doing dd-wrt + freeradius on a debian server.
testing authentication works fine
# radtest test test 127.0.0.1:1645 1645 secret
Sending Access-Request of id 82 to 127.0.0.1 port 1645
User-Name = "test"
User-Password = "test"
NAS-IP-Address = 255.255.255.255
NAS-Port = 1645...
I am looking for a free windows xp application that will allow me to take manual screenshots of the system at that point. And on reboot, it will restore to the latest, or designated, screenshot.
thanks
what command can I do view where my cdroms are at, and what my fstab line should look like?
or am I doing it right???
~$ sudo lshw -C disk
*-cdrom:0
description: DVD reader
product: DVD-ROM SD-616E
vendor: SAMSUNG
physical id: 1
bus info...
my nfs server is a debian box. my macbook is the client. i want the folders im exporting to be read/write only. So i chmod the folder 766. But finder tells me it does not have permission to access the folder. I set it to 777, (not changing the owner/group), and it works!
If I set the folder...
I have RewriteEngine on
Options +FollowSymLinks
Order allow,deny
Allow from all
RewriteCond %{SERVER_PORT} !^443$
RewriteRule ^.*$ https://%{SERVER_NAME}%{REQUEST_URI} [L,R] under my main directory /var/www. The problem is when streaming media, im...
So in order to conserve electricity, I will virtualize my computer for my desktop and server. Now for this, would it better to buy the Q6700 (3.2ghz) and have 2 cores for me, two cores for the server. Or get the Clovertown, one 2ghz quad CPU for desktop, and one CPU for server?
Don't know if...
I've tried tons of modelines, but none of them seem to work. Xorg still shows it auto-testing every modeline till it finds one that works. So, to keep it from autotesting each boot up, I just want to put the modeline it auto-selects. But I do not know what it is....
Is there a program I can run...
I am running debian etch and apache2. I believe I have apache2 setup for SSL being 'webmin' is using it. But I do not know how to set up SSL for specific directories. ex: I want to enable SSL for phpmyadmin.
thanks/
edit: nm. When following the guide, I had forgotten to remove the directory...
I need to be able to press the pwr button, have the OS start in like 20 seconds, print, then press button and shut it off. headless server of course.
Could I tweak debian as such? Disable everything except samba and CUPS... :confused:
thanks.
I am setting up wireless at my home using my WRT54g router with dd-wrt and my pfsense NAT. I have been googling and all I have found is that "hotspot" setup using freeradius chillispot and dd-wrt, but that seems to use vlan's or something, and I do not know if it works with file-sharing...
I have a couple rooms I want to setup with computer/internet access. Instead of buying a computer for each room, I was hoping to have a server with virtualization for each room. Having each room run on the server via Ethernet.
Server
/ | \
/ | \...
I have synctoy in "scheduled tasks" to run. My windows account does not have a password, and I do not wish to put one on. If AppleSoftwareUpdate is on there using system, how can I too have system as the user to run synctoy?