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.
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.
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.
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.
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.
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.
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:
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
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:
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.
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 }
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.
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
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%.
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?