Programming :: C++ Behavior Different On Win/ubuntu?

Jun 9, 2011

So i have this simple c++ program, which has an array of ints and a pointer to it. Then i have to change one element in the array. Problem is that on ubuntu(netbeans) it works the first time i change the element, then for the other times there is no change in the array after leaving the function.

First i thought it was a bug, but i tried the code on win(visual studio) and it worked like it should.

I don't understand what the problem is? Im not using any platform specific function(that i know of )?

View 12 Replies


ADVERTISEMENT

Programming :: Screwy/incorrect Behavior In PHP Script?

Jul 5, 2009

I have some PHP code that is supposed to invoke a bash script and it doesn't seem to be working. The basic idea is that it is pulling down an HTML file, scanning it with clamscan, and then reporting whether or not an infection is found in the source code. Not perfect but it doesn't have to be. The shell script is as follows:

Code:
#!/bin/bash
in=/tmp/foo.html

[code]....

View 2 Replies View Related

Programming :: Perl Behavior When Process Launched In `backticks` Crashes

May 11, 2011

I have a friend (really), who is the author of a Perl application that uses backticks to launch an external application. The process reads a largish set of data files, and printing largish amounts of data which is consumed by Perl. Very rarely, the external application crashes. When it does, the Perl script has been seen to hang, and the host CPU usage goes to 100%. The Perl script can be killed and the host recovers.

The question is whether this is predictable/expected behavior, and if it is, is there anything within Perl which can be used to defend against this behavior. I have already recommended the use of the open() form of reading from a child process, but I'm not sure whether that really accomplishes anything. My theory on the matter is that Perl ends up busy-waiting on the child's output, never receiving any EOF, and consuming all CPU. I cannot see how using open() changes that behavior. I am now interested in this problem so I can avoid causing similar behaviors in the future, and just because 'inquiring minds wish to know'.

EDIT: I suppose I should have added that this is on generic 32-bit Linux hosts; Perl 5.8.X

View 11 Replies View Related

Ubuntu :: Different NTFS Volume Behavior In 10.04?

May 17, 2010

Ubuntu 64 bit is installed on the hard disk with two partitions: one for Ubuntu, another is NTFS partition called Shared. Before upgrading to 10.04 Shared volume was available. To mount it, it was necessary to enter the password.After upgrading to 10.04, I see two volumes: Shared and Shared_. Places menu contains Shared item. When I click it, it opens without password, and shows /media/Shared_, with correct contents. Original Shared volume appears in the media directory:

Code:

root@alex-64:/media# ls -l
total 12
lrwxrwxrwx 1 root root 6 2010-04-21 19:49 cdrom -> cdrom0
drwxr-xr-x 2 root root 4096 2010-04-21 19:49 cdrom0
drwx------ 2 root root 4096 2010-05-09 08:25 Shared
drwx------ 1 alex alex 4096 2010-05-17 08:56 Shared_

Shared volume is empty. Can this be fixed? It is OK to work with Shared_ volume?

View 3 Replies View Related

Ubuntu :: Odd Behavior In Lucid After Boot?

Jun 3, 2010

I upgraded to Lucid from Karmic a few weeks ago. The upgrade went fine. Then I decided to move my exit, maximize, and minimize buttons to the right side. I used Ubuntu Tweak to do this. Since that time I have very odd behavior after I boot Lucid.The booted system comes up with an X for a cursor. There are no exit, maximize, and minimize buttons on my window bar. Finally, I can open a terminal, but cannot type anything in it.Sometimes I can get things back to normal by using Ubuntu Tweak to move the buttons to the left or right (depending on where they were before the boot). Sometimes I have to open System>Preferences>Appearance> and change Visual Effects from None to Normal or vice versa.I have tried metacity --replace (after getting the terminal window to allow me to type in data), but after I reboot, things are back the way they were. I have an Nvidia GeForce 7300 LE on board graphics card, and I am using the Nvidia current version driver. When things are working correctly, System Monitor shows a compiz process running but not a metacity process. Is this correct?

View 8 Replies View Related

Ubuntu Installation :: 11.04 Tried - Very Odd Screen Behavior?

Apr 12, 2011

I just tried uprgading from 10.10 on my daughter's pc to 11.04(beta) as we wanted to find out about Unity et al. I thought the upgrade went well but on reboot when the desktop comes up, it's all funky in behavior - mouse is jump, arrows don't reliably work the menus - odd background images show up in graphic blocks. Do you think I can salvage this, or should I am I stuck reloading back to 10.10?

View 1 Replies View Related

Ubuntu :: Startup Bash Script Behavior?

Feb 19, 2010

I have script that is called from a startup init script before login. It has some different behavior than if it ran from a login script. It doesn't allow to have input characters deleted on a line and doesn't allow for the break command. It's part of Live CD, I'm going to make publicly available, so I want to boot straight to into the script.

View 1 Replies View Related

Ubuntu :: Screensaver/power Saver Odd Behavior?

Apr 2, 2010

I have a screensaver set to run after 10 minutes and then the screen is set to turn off after 30 minutes, but it seems that it never consistently stays off (after the 30 minutes), and very often turns back on and runs the screensaver instead. It seems to be in an endless cycle without me doing anything to wake it. Is there any way to fix this? It's killing my power usage. Karmic, core2duo, nvidia 7600GT gfx cards using latest nvidia drivers (but also happened on 190, and I think 185)

View 2 Replies View Related

Ubuntu :: Odd Behavior From Update Manager - DeVeDe?

Apr 10, 2010

I have been having a frustrating issue with Ubuntu 9.04 on both my laptop and desktop machines for several days now. An Icon shows in the panel telling me there was a problem with updating. Attempts to update hangs on waiting for headers @ 99% but ultimately times out. I have not been able to update successfully for some time. Add to this the fact that DeVeDe will not respond. Trying to run DeVeDe from the Applications menu does nothing, running the program from the command line does nothing. Attempts to uninstall return this warning:

Code:

dpkg: error while cleaning up:
subprocess post-installation script returned error exit status 1
Errors were encountered while processing:
devede

Attempts to start Synaptic return this:

Code:

E: The package devede needs to be reinstalled, but I can't find an archive for it.
E: Internal error opening cache (1). Please report.

View 1 Replies View Related

Ubuntu :: Emulate Win + Left And Win + Right Windows 7 Behavior

Oct 11, 2010

These are 2 cool shortcuts in Windows 7:

[Windows+Left] - Dock window to the left side
[Windows+Right] - Dock window to the right side

When you press Windows + left arrow the active window occupies 50% of the screen (on the left), and when you press Windows + right arrow the active window occupies 50% of the screen on the right. I have tried to set this up with gnome on Ubuntu but have't managed it so far. I am sure this can be setup in gnome. How can it be done? In summary this splits two windows on the screen so one window occupies 50% of screen on left and the other on the right, how can this be setup and executed pronto on ubuntu?

View 7 Replies View Related

Ubuntu :: Change Behavior Of XF86AudioLowerVolume And XF86AudioRaiseVolume

Nov 18, 2010

I recently installed a new ubuntu system (10.10) as media center. I am running Gnome and xbmc on it. Until here, everything perfect!

I bought one of those cheapass media center keyboards with multimediakeys. Except for one, they all work out of the box.

My problem: When i press the volume down key, gnome lowers the volume of my mediacenter. This might be good for most users, but i have a surround receiver/amplifier (Denon AVR3310) that should handle the sound.

In fact, i am looking for this: When i press the volume up/down key, instead of changing the volume of my mediacenter, gnome should execute a script i wrote. This script sends commands to my receiver (using the serial port or the network connection) to lower/raise the volume.

Small additional question: I would like to get the one button that doesn't work yet to work. I have a 'mc' (mediacenter) button on my keyboard. I would like to make this launch xbmc. When running 'xev', i don't see any output when i press the button.

View 4 Replies View Related

Ubuntu :: XSANE Different Behavior And Resizing Of Output?

Feb 18, 2011

I have used XSANE for scanning for several years, and it has recently been giving me trouble. It resizes when I copy, and it resizes when I scan into a multipage pdf. It's not drastic, an 8.5 x 11 page gets shrunk down to about 7.5 x 10. I've installed the Gnome scanning utility to get by, but the resolution just isn't as great. I went into Synaptic and marked all the XSane packages for reinstallation and reinstalled them. However, my contrast / gamma settings remained the same, and, as you might guess, whatever is shrinking my output remained the same also.

View 1 Replies View Related

Ubuntu :: Window Behavior Changes When Adding Third Monitor

Feb 26, 2011

When I run my dual monitors with twinview on an NVidia GeForce 8400GS when I maximize a window it does it as you would expect (on one monitor) and when a pop up comes out of an application or when I bring up Synapse it appears in the center of my monitor. However, when I add a third monitor as a separate X window, the behavior of the windows on my dual screens becomes very different. It maximizes across both monitors, and Synapse opens with the center between the two monitors.Any thoughts on how to fix this or why it would change?

View 2 Replies View Related

Ubuntu :: Unity - Odd Behavior When Switching Windows

May 24, 2011

I have an odd behavior where the Unity shell looks incorrect when switching windows with 3D cover-flow like behavior. I created a video to demonstrate:

[URL]

When I run unity_support_test, all appears well:

$ /usr/lib/nux/unity_support_test -p
OpenGL vendor string: ATI Technologies Inc.
OpenGL renderer string: ATI Radeon HD 3200 Graphics

[code]....

View 3 Replies View Related

Ubuntu :: Overriding Default Behavior In Unity?

Jun 14, 2011

I constantly work on several workspaces, and whenever I open an internet browser or anything, I'd like a new instance of the program to open. The default behavior takes me to the workspace that currently has an open browser, and this page is usually already very crowded. Can I override this default behavior on Unity?

View 3 Replies View Related

Ubuntu :: Nautilus And USB Drive Weird Behavior

Jul 14, 2011

I am running Ubuntu 11.04 (Natty) with Gnome Classic (no effects) desktop. I have an external USB drive on which I have cloned my sda drive that contains my Ubuntu partition and an XP partition. Both of these partitions mount automatically. For some reason, Nautilus opens randomly on its own for each of these partitions. When this happens, two copies of Nautilus open; one for each of the partitions. I have not been able to discern any pattern for when nautilus opens. This actually began to happen in Maverick shortly before I upgraded to Natty. Any ideas on what the cause is and how I can stop this from happening?

View 4 Replies View Related

Ubuntu / Apple :: Overriding Rm's Default Behavior

Jul 16, 2011

Within the last few weeks, I've been beginning to familiarize myself with Terminal. I know within the syntax, you can add options such as -i or -v.When I enter the command rm, I want Terminal to automatically go interactive (which would be the -i option) without me having to add it to the command. Meaning, I'd rather type rm Test.doc than having to include -i like this rm -i Test.doc. This way, whenever I execute the rm command, I won't have to worry about adding the -i option because I know that Terminal will automatically ask me if I want to delete the file or not before I do.

View 5 Replies View Related

General :: /etc/rc.local Behavior Different In Ubuntu Vs. Debian?

Apr 26, 2011

A rather obscure problem, clearly our understanding here is challenged! On ubuntu (10.04 & earlier) we boot our apps under a user account from /etc/rc.local which runs under root. First the boot script installs drivers and does rooty things, then we launch the executable under the "myaccount" account:

su myaccount -c startPrg.bash (Inside is the actual /mybin/myprg &; )and the program is left running (our goal of course) BUT in debian (lenny) the exit from su terminates its child, which also seems right.

Now confused..

1) How can we spin off a child from /etc/rc.local that executes under a user account, but is not terminated when the su exits?

2) Why does the script act differently on ubuntu vs. debian?

View 1 Replies View Related

Fedora :: Where Did 'Window Behavior' Go

Nov 27, 2009

There used to be an option within the Preferences section in Gnome for 'Window Behaviour' where you could change the behaviour of windows such as roll up on double click instead of maximize and that sort of stuff.I can't seem to find it on F12 and can't find anything else that allows me to adjust those types of behaviours.

View 2 Replies View Related

Ubuntu :: Revert Notification Area To Pre-lucid Behavior?

May 4, 2010

Is it possible to revert the notification area to pre-lucid behavior? I'm not sure what the point of removing the right-click functionality was(or if it's a bug), but it's pretty horrific.

On the off-chance this is a bug, I will elaborate. Right-clicking on Kopete brings up the 'remove from panel' menu, and left-clicking on Kopete brings up what used to be seen with a right-click.

View 1 Replies View Related

Ubuntu / Apple :: F-keys Changing Behavior With Every Update?

Jun 21, 2010

I'm using ubuntu 10.04 on mbp 5.1 and change of FN/F behavior after _EVERY_ kernel update is getting really ridiculous.On update "a", I gey F-keys without FN; after upgrade to kernel "b", I get media keys by default, then again F,...I _really_ don't want to change pommed.conf after every reset (and re-reset it)

View 2 Replies View Related

Ubuntu :: Change Behavior Of Power / Login Icon?

Nov 17, 2010

I've been running Ubuntu 10.10 for four days now and love it. Is there a way to change the default behavior of the power/logoff icon on the taskbar?(not on Ubuntu now and forget what the bar is called) Instead of asking me what I want to do (power down,restart, log off, etc) I would like it to power down the PC.

View 7 Replies View Related

Ubuntu :: Osmos Videogame And A Curious Shortcut Behavior

Jan 7, 2011

I bought the Osmos game from the recent Humble Indie Bundle and I have placed the folder in /usr/games. I haven't installed it, the folder is executable as-is, but I have placed it in that address in order to be coherent with common game installations. I have created a shortcut of the executable file and placed it in the desktop.

If the game is executed through the shortcut it looks like the first screenshot, if it is executed through the original executable it looks like the second one (it works correctly). It also works correctly if the shortcut is in the same folder as the executable. This happens both with the 32 and 64 bits executables. I have a Radeon HD3870X2 and the open drivers in an Ubuntu 10.10 64 bits.

View 2 Replies View Related

Ubuntu :: Chromium Middle Click Behavior Changed?

Jan 26, 2011

I'm using chromium browser on a 9.10 desktop pc. I was trying out opera browser 11 for a while and when i switched back to chromium something strange happened. When i press middle click instead of pasting the selection like it used to, it starts page scroll (like windows). I use the daily builds ppa, and i also tried it on my netbook and a virtual machine running 10.04 and 10.10 but there were no changes there. I prefer the default behavior (middle click to paste selection) but i can't find any options for this.

View 2 Replies View Related

Ubuntu Networking :: Strange Behavior With Pings From Desktop?

Mar 9, 2011

I've been trying to use MySQL in Ubuntu but I've been having some connection issues and in trying to troubleshoot that, I observed this strange behavior with pings in Ubuntu Desktops inside our network.

- All Ubuntu Servers we have (10.10 and 8.04) behave as expected
- All Windows machines behave as expected
- All 5 Ubuntu Desktops we have, (10.10 and 9.10) exhibit the following unexpected behavior:

If they have a local ip addresses and are connected within the internal network, either to a switch or directly to a router, pings take much longer to be sent. It's not a higher lag, it's the time between each ping that increases. I have to wait for around 5 seconds for each ping, but the time in the ping reply is less than 100ms, also they're all in order so I assume it's the system delaying the sending of each ping.

If I plug a USB 3G modem directly then it works as expected again (~1 sec between each ping sent). Is this an intended feature, that depends on the network environment, or is this something I should look into more closely?

View 1 Replies View Related

Ubuntu :: Enable 'intellihide' Behavior For Xfce4 Panel?

May 18, 2011

I was wondering if anyone knew a way to enable 'intellihide' behavior for the xfce4 panel. That is, is it possible to autohide the panel only when a window is covering it, as is possible with most docks?

View 1 Replies View Related

Ubuntu Installation :: 11.04 - Unity Upgrade Inconsistent Behavior

Jun 4, 2011

I installed Ubuntu two ways, both by partitioning the hard drive and installing Ubuntu in its own partition, and also where the "run within Windows" option was available. I then upgraded both to Ubuntu 11.04. When I start Ubuntu in the "own partition" installation, Unity runs without complaint. When I start Ubuntu in the "run within Windows" installation, Unity baulks, giving an error message that I don't have some (unspecified) of the hardware it needs to run, and I am kicked back to the classic Ubuntu control screen setup. Obviously the two ways to install Ubuntu don't result in it having the same behavior. Alternately, since the version installed to "run within Windows" seems to do no such thing, and also gobbled up almost all the free space in my Windows-7 partition without prior warning, any clue how to uninstall that version cleanly?

View 1 Replies View Related

Ubuntu Servers :: Sudden Change In Server Behavior

Jul 4, 2011

I have been running two Ubuntu 10.10 servers for some time now. My main server is 10.111.1.65 and backup server is 10.111.66. The main server is to host my website and ssh remote access (Key auth). The backup server pulls via ssh key auth what is in my /var/www (among other folders) to the backup home dir (encrypted). For some reason today I checked the uptime and it was 7 hours on both servers. All my other computers on the same power supply have a uptime of over a month. For some reason I now cant access backup via ssh from main's key (I could before) and I can not get to the home dir, see below:

Code:
carlos@UbuntuSvrDell2400:~$ sh "Access-Your-Private-Data.desktop"
Access-Your-Private-Data.desktop: 1: [Desktop: not found

[code]...

View 3 Replies View Related

Debian Installation :: Odd NIC Behavior On Install?

Sep 10, 2010

Using a Realtek 8111/8168b Revision 1 NIC on a desktop comp, it's being detected by Lenny, Squeeze, and Gentoo (09/02/2010) installers (all are AMD64 distro's being run on a dual core intel processor), the r8169 driver is being loaded automatically on all of them. However, at the moment the NIC is detected during the net-installs, it goes dead until power has been cut. The switch doesn't register it as being active, nor do any of the activity lights on the motherboard register it as being active.In Gentoo's setup I can run an ifconfig and see the NIC as eth0 as it should be, I can ping the loopback as well as a statically assigned IP address. However pinging anything else in the LAN results in timeouts, and anything outside of the LAN results in hosts not found.

View 7 Replies View Related

Fedora :: Odd Widget And Desktop Behavior?

Jan 22, 2011

I'm running KDE on Fedora 13 and was trying to alter some display settings so that the windows wouldn't maximize when dragged to the edge of the screen. I did that, but at one point "Kwin" crashed, and now there's some odd things happening.

1. I get the "drag me" palm when I'm mousing over the desktop and if I click, I can drag the background around as if it were a window.

2. My "maximize" "minimize" and "close" buttons don't work.

3. It appears nothing in the titlebar of windows works: can't drag them, can't shade or do anything "clickable" -- close, min, max, nothing works.

I tried returning the settings to their original state but it didn't help.I tried restarting the computer too, and that didn't help. I'm guessing something crashed and a setting got hard set that shouldn't be. I'm also guessing that if I rename a .kde/something folder it will reset to defaults. What .kde folder should I play with?

View 1 Replies View Related







Copyrights 2005-15 www.BigResource.com, All rights reserved