Programming :: Print Out "old Workspace" Since OverwriteWorkspaceEnv Equals "no" - Nothing Changed

Jul 12, 2010

[code]...

This is what prints out: no new workspace. why the script is printing out "new workspace", when overwriteWorkspaceEnv is equal to "no". Shouldn't it print out "old workspace", since overwriteWorkspaceEnv equals "no"? I tried changing the else to an elif with $overwriteWorkspaceEnv="no" as the argument and nothing changed.

View 4 Replies


ADVERTISEMENT

Ubuntu :: Workspace Switcher Changed After Hooking Laptop Up To HDTV?

Oct 1, 2010

I'm having a really odd problem with my workspace switcher. First off, I keep 5 workspaces all in one row.

My problems: When I use the keyboard shortcuts Ctrl + Alt + Left or Ctrl + Alt + Right I can switch workspaces just fine, however I have a xbindkeys install set up to detect specific keypresses from my Logitech MX Revolution and spit out those very shortcuts, and they aren't working. When using the keyboard shortcuts to switch workspaces there's a new look to the visual aid that pops up in the middle of the screen. It's much boxier and ugly looking, and I'd like to get it back to the way it was before, with the larger boxes with rounded edges and no text. This started last night when I plugged my laptop into my Panasonic HDTV via S-Video. Can anyone tell me how to uninstall the workspace switcher component and reinstall it? I'm fairly new to Ubuntu and just want the default settings back. I'm running 10.04 btw.

View 1 Replies View Related

Ubuntu :: Changed From Mint - Now Can't Print

Apr 22, 2010

Desktop PC Dual boot XP/Linux Mint Laptop was Dual boot Vista/Linux Mint.

Changed my Laptop set up from dual boot Vista/Linux Mint 8 to Vista/Ubuntu 9.10.

I have two printers one of which (Canon BJC300) is physically connected to the Desktop PC. The other is netorked through a wireless router. Worked find with Samba/Cups in Linux Mint. Can't get it to work with Ubuntu. (Linux Mint is based on Ubuntu).

Desktop PC Name is "pcname"
Desktop PC Workgroup is "pcworkgroup"
Printer Name is "Canon BJC 3000"
Not really but they'll do for the demo.

Set up printer in Ubuntu smb://pcworkgroup/pcname/Canon BJC 3000

Appears to accept it that but doesn't print. Times out with 'printer unaccessible'.

Where do I need to concentrate my efforts?

Are there some permissions I've overlooked. I haven't altered anything on the Desktop PC.

View 9 Replies View Related

Ubuntu :: Applications Jump From Their Workspace To The Current Workspace

Jul 20, 2011

I believe I may have found a bug in Unity. Under the right circumstances an application will jump from the workspace where I left them to my current workspace. This is most noticeable with VirtualBox. I built an Ubuntu 11.04 virtual machine so that I could test out new packages before I push them out to the rest of my machines. But the window for the virtual machine constantly appears in my current workspace. It may take a few minutes, or 30 minutes, but it will happen.

I can kind of understand it if a new window appears, but at least with VirtualBox, this happens on a running virtual machine seemingly randomly.

View 1 Replies View Related

Ubuntu :: Way To Setup Each Workspace To Have Different Icons On Each Workspace

Nov 13, 2010

Running Ubuntu 10.04 64bit.Is there a way to setup each workspace to have different icons on each workspace. Example:

Workspace 1 = Internet icon stuff (IM, Browsers, Etc...)
Workspace 2 = Multimedia icons (Video Editors, Music Clients)

View 2 Replies View Related

Ubuntu :: Workspace Rows Without Workspace Switcher?

Mar 31, 2011

Is there any way to have workspaces on multiple rows without the workspace switcher added to a panel? I have limited screen space so i want to try and remove any unnecessary items. I have tried using a drawer, but the workspace application is not loaded until the drawer is opened once. Also note I am not running compiz as the computer is a netbook.

View 2 Replies View Related

Programming :: Users Who Have Never Changed Their Password From /etc/sha

May 17, 2011

I need to create a script that returns a list of the users who have never changed their password from /etc/shadow.

As I know on linux there is a command "chage" used for find last password change. Any idea about solaris command?

View 1 Replies View Related

Programming :: Value Gets Changed When Passed To A Function In C++

Jun 10, 2010

Why do I see different values of character 'a', in main() and in functionA() in the following C++ code?

Code:
#include <stdio.h>
#include <string.h>
#include <iostream>
using namespace std;

[Code]....

View 7 Replies View Related

General :: Mouse Single-click Equals Double-click - Can't Select The Entire URL By Clicking

Apr 13, 2011

when i click my mouse on something, it sometimes registers as two clicks. it doesn't happen all the time, but frequently enough to be annoying. for example, when i click a videos video to pause it, it often opens into fullscreen (which you normally click twice to do). also, in the url bar of chromium, i can't select the entire url by clicking. i now need to use ctrl+a. that's also because when i try to select the url, the highlight randomly disappears.

if i have multiple windows open, my click on the first "x" of the top-most window also closes the next window. i'm on linux mint 10. it's not really important, but it drives me crazy sometimes when my mouse doesn't work the way i want it to.

View 3 Replies View Related

Programming :: Pyqt3 How Fast Can A TextLabel Be Changed?

Mar 12, 2010

I want to read values from a text file about 2 times a second and update a textLabel with those values but it only inputs the values with the last value from the text file? I tried the same thing with an LCDNumber but it only updated every 10 value changes? After each change do I need to clear the textLabel or refresh the window? For testing the print z and print x in the code prints the values correctly.Heres my code:

Code:
def Timer(self):
import time

[code]...

View 2 Replies View Related

Programming :: Script To Evaluate If A Passwd File Has Changed

Apr 6, 2010

creating a script which evaluates whether or not the passwd file has changed.

View 4 Replies View Related

Programming : Find Out Files That Are Changed Less Than 10 Hours With Grep Command?

Mar 20, 2010

Getting the list of files in the root directory that have changed less than 10 hours earlier, using grep, but without the directories.

View 1 Replies View Related

Programming :: Print NaN Using The Awk?

Jun 24, 2010

I want to print NaN value in a file containing of 3600 rows and 7 columns.The illustration of output file which I want to is as follows :

NaN NaN NaN NaN NaN NaN NaN (the first row)
NaN .... NaN
.
.
.
NaN .... NaN (the 3600 rows)

I tried to use below command

awk 'BEGIN {for(i = 1; i <= 3600; i++); printf "%s", "NaN", $1" "$2" "$3" "$4" "$5" "$6" "$7}' > output

Unfortunately, I couldn't get what I want to.

View 6 Replies View Related

Programming :: Shell Script To Copy Newly Changed Files With Rsync?

Apr 20, 2010

I've got quite a decent rsync script setup, however I'd like to invoke it whenever there's change to a file. My initial idea was to use find, however this has two major flaws - the first being my particular unix veriant cant understand -print0 which means this doesn't work, the second is that I'm not 100% sure how to put variables into quotation marks so ls can understand the target:

Code:

for i in `find /shares/ -mtime -1 -print`; do ls -ltr $i;done

View 14 Replies View Related

Programming :: Why The Thread Stack Size Cannot Be Changed When Calling In A Dynamic Library

Jan 5, 2011

Why the thread stack size can not be changed after calling pthread_attr_setstacksize & pthread_create in a dynamic library? Detail: I write a file thread_factory.c and plan to build it and produce a dynamic library (libthread_factory.so) In the thread_factory.c , there is a routine

[Code]....

And after this, there is application, it will call fct_thread_create(STACK_SIZE_256KB), and then call pthread_attr_getstacksize(), but the stack size return always be a fixed value 0xa01000. (I tried this on Fedora12) But if I build the application source code with the file thread_factory.c directly, the stack size return is right as my expect. I checked the source code of glibc about the routine pthread_create() as below:

[Code]....

View 7 Replies View Related

Programming :: Print A Value To A File ?

Apr 12, 2010

I have this code:

How can I print &FARAchieved to a file? Or, printing the whole bioReturn would be fine too.

View 8 Replies View Related

Programming :: Print Everything After $date?

Feb 21, 2010

Say I have a line like such:

Code:
today 2010 Feb 21 test10, 12AM

How would I print everything AFTER "2010 Feb 21 "?

What I thought to do so far is to set a variable to the format used in the string like so:

Code:
date="$(date +%Y %b %e)"

So I know I have to use either awk, sed, or perhaps bash substrings to work with the variable $date, but as to how, I'm drawing a blank.

View 5 Replies View Related

Programming :: Print Variable Value In Awk?

May 16, 2011

problem statement:

pattern_search="Exam Name"
sed -n "/$pattern_search/,/hello/"p tmp5 | awk '{if ( $4 != 0 && $4 ~ /[0-9]+.*[0-9]*/ ) print "$pattern_search" " " $0 }'

"tmp5" is a file. this is printing output as

$pattern_search value1

i.e value of $pattern_search is not getting substituted. i am expecting output as

Exam Name value1

View 3 Replies View Related

Programming :: Create A Script That Returns A List Of The Users Who Have Never Changed Their Password From /etc/shadow

May 17, 2011

I need to create a script that returns a list of the users who have never changed their password from /etc/shadow. As I know on linux there is a command "chage" used for find last password change.

View 2 Replies View Related

Programming :: Put All The HTML In A Print Statement?

Sep 14, 2010

I have a site which will have, for example, a login system where people have to enter their usernames and passwords, depending on which they'll be let in to the site. So, in code, I've got a line like:

if ($_POST['password'] == $password) {
then do whatever
}
else { print "Wrong password" ; )

My problem is, this "Wrong password" printing is just a solitary line, not keeping with the colours and style of the site, and it looks very bad. I want to ideally, output some HTML, which will have a picture, and print the "Wrong password" in the font and colours I desire. Do I have to put all the HTML in a print statement, and then deal with the nightmare of escaping all the quote marks in it with a ""? Or is there a cleaner method to the whole thing? Maybe something like this -

if ($_POST['password'] == $password) {
then do whatever
}

[code]....

View 4 Replies View Related

Programming :: How To Tell Java To Print 20 When Value Is In That Range

Jul 28, 2011

I've just started programming at my university and I'm finding it a bit hard to get started. I've been given this for homework.Given 2 integers, a and b, print their sum. However, sums in the range 10..19 inclusive, are forbidden, so in that case just print 20The problem I'm having is that i don't know how to tell java to print 20 when the value is in that range.

View 14 Replies View Related

Programming :: PHP To Direct LPT Port Print?

May 31, 2011

Any one using php program to direct lpt port print command, now i am creating one programe for mini shope that system having citizen CT-S4000 model.

View 2 Replies View Related

Programming :: Print All ASCII Characters In C#?

Mar 9, 2011

i want to print all ASCII characters kind of like a table, but i really don't have an idea of how to do it, i don't know if there is a built-in method or something to accomplish this, if not

View 2 Replies View Related

Programming :: Print Command Monitoring ?

Aug 17, 2010

I am trying to write a program that monitors when an lp or basically any sort of print command is issued. If a print command is detected I want to pause that job and ask the user if he / she wants to continue.

This program would run in the background all the time so it can't sit and eat up a lot of cpu. I tried a simple while loop that continuously monitored "ps" and that obviously boosted my cpu to 100%.

View 1 Replies View Related

Programming :: Print File Name In BASH

Feb 26, 2009

I want to write a script that returns me name of the files that begin with the specified characters. like

Script out should be

View 3 Replies View Related

Programming :: Print Out Network Interfaces

Feb 3, 2010

how do i combine these two lines to output all network interfaces on my machine?

View 1 Replies View Related

Programming :: Doesn't Print Anything Trying To Run Awk Code

May 22, 2011

I am just trying to run the following piece of awk code. But it doesn't print anything. where I am doing wrong?

[code]...

View 5 Replies View Related

Programming :: Supposed To Print Shapes

Oct 10, 2010

I've been working on it for over 20 hours and I'm stuck. It asks the user for input and then prints a shape of a certain length.

View 4 Replies View Related

Programming :: Difference Between PHP Echo() And Print()?

Dec 1, 2010

What's the difference between PHP echo() and PHP print(), especially in the execution time?

View 6 Replies View Related

General :: LVM Partitions Are Equals To OS Partitions?

May 26, 2011

When we install a linux OS, we've an option to create partitions. In my laptop I've create partition for /opt, /home, / and /tmp. Are these partitions the same type of partitions as the partitions created by LVM?

View 1 Replies View Related







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