I have a toplevel window that I want to place depending on another toplevel window. I use gtk_window_move(widget, x, y); At startup this function is called several times and y is changed ones from 412 to 413 and x is always 0(checked with gdb in netbeans). The window gets placed at x=10 and y=400 or so. If I do not use variables but pure ints for x and y it gets placed correctly even if its the same values. I suspect that my window manager notice this change of y and place the widget for me. Is this correct and how do I tell the WM not to do so?
This change of y is due to window size is just a local size and not the correct one as in X. Can i force uppdates from X to the local cache?
I need help getting this bourne shell script working properly. This script I found online while reading some tutorials on getting a caching name server running, which is supposed to update the rootserver hints file.
The below case statement always returns that the hints file has failed. Even though when I check the file it looks normal and I can see the NOERROR status in the returned header.
Code: dig (at)e.root-servers.net . ns >root.hints.new 2> errors case `cat root.hints.new` in *NOERROR*) # It worked
I need to compare two lists, and if a line exists in file 1, delete it from file 2. Here is what I am using, and it works on samples of a few hundred lines, but I have to get it to work faster on 50k lines. Has taken 7 hours so far and still no results.
result2 is master list, result1 is new list where i want every line to be completely unique--not in result2.
grep -vf result2.txt result1.txt | sed 's/ .*//' > diffs.txt
When I move a window from one workspace to another, the window position relative to the workspace does not stay the same. It ends up being lower by what appears to be the height of the top panel bar. It's as if the position is calculated by adding the panel bar height, without having first subtracted the panel bar height in the current workspace to make it consistent.
I don't know what have I done, but when I switch a window, the cursor always moves to the middle of the window I've just switched to. How can I disable it?
1) What is the window effect called that adjusts all open windows into a viewable position while darkening the backgrounds?2) Is there a source or an already made list of packages ready so I can install it on a different operating system? I'm sticking with F14 as my main Desktop Os, however, would like to use this on a Live USB with Archbang Linux.
I just moved from the netbook remix of Ubuntu to the normal version... I really didn't like the desktop layout of UNR. One feature I did like, though, was that every time a window was maximized, the title bar was integrated into part of the top panel... which saved a lot of space on this tiny little screen. Is there a nice way to get that feature on the normal version of Ubuntu?
when i move a window around on my desktop its splited up into two where the bottom half sluggishly follows the top half i.e. the top half of the window is leading as i move the window around the desktop rather than moving around smoothly(i.e. moving the say vlc around without the window splitting[moving it around as one]. this issue also persist in fire fox where when i scroll down a web page, the page is split in two where one half of the webpage overlaps the other dependant whether i scroll up or down.
my computers configuration is: 64bt UBUntu 10.04 MSI 870A FUZION...... AMD phenom II x6 ATI HD 4550(XFX)
I noticed that while Compiz has every keyboard shortcut imaginable for moving windows between desktops, there's no shortcut for moving a window to a specific display when using dual monitors.
So far, I've found the best method is to use the command line automation tool: xdotool - [url]
Here's what I did:Test out the xdotool in a new terminal window using this command Code:
This should move your terminal window 100 pixels in from the top left of the leftmost display.
Find out the top-left coordinates of your rightmost display by using the Nvidia X Server Settings tool in Main menu > Administration or via the terminal:
Code:
Go to X Server Display Configuration and click the rightmost Display in the layout section. Its position offset should be displayed in the position field. Make a note of these two numbers.
Create a script to move your window, either to the leftmost screen or the rightmost screen, using this code or similar:
Code:
Remember, the number at the end is an argument that denotes the display (1 for left, 2 for right). Assign a keyboard shortcut to your custom shortcut. Repeat for the right display. Now when you press the keyboard shortcut, the active window should be moved to either the left or right display!
If I have Dolphin up and running, I will activate a folder, hit Enter, and nothing happens unless my mouse is moving around the screen.I may have Chromium Browser or Firefox running with another app, and when I use Alt-Tab to switch tasks, the app selector window will not appear unless I'm moving the cursor. And once I have chosen the app to switch to, it will not actually make the switch unless the cursor is in motion across the screen.I am running Kubuntu 10.04, KDE 4.4.2
In (Gnome) Ubuntu there is a keyboard shortcut Ctrl+Alt+Shift+(Up|Down|Left|Right) that allows the user to quickly move a window from one workspace to another. I've been looking for a similar way to accomplish this in (KDE) Kubuntu. I know that you can right-click on a window in the Task Manager and use "To Desktop" to move a window, but I'm just curious if the same thing can be accomplished with the keyboard.
I am using Fedora11/Gnome and I frequently use several windows for input. I would like to focus on a window just by moving the mouse over it (but not pop up). However, I can not find anywhere to set up this option.
Yes im refering to Windows Degrade and how over time windows just running will degrade and start causing errors. DLLs go missing and bizzare things. Ive seen wierd things happen on a windows machine that is dedicated to one function. Well to my point, recently I have been having many linux issues, not like normal or anything throughout the years I have experimented with linux though.
1)entering fullscreen on VMware crashes linux sometimes (no Ctrl+Alt or Ctrl+Alt+F2 ect) 2)using a different monitor haults the virtual machine while other monitors do not (I have 4) 3)Java apps freeze and require moving the window offscreen (below the screen) to redraw 4)general linux freezing 5)glitch with xinerama that repeatedly teleports mouse between two monitors causing the system to be unusable (no Ctrl+Alt+F2 or anything either)
At first I thought they were all related to VMware but they may not be. I run VMware everyday for my slingbox and light EXE-ing when wine isnt an option. So I may not be asking for fixes to all these problems but whats going on? Ive seen linux installs last years and believed linux to not degrade.
I dual booted Karmic on my old laptop. I just received my new machine, Envy 17 with a 160 GB SSD and a 640 GB hard drive with Windows 7 pre-installed. I want to multiboot Windows, Maverick and the CAElinux distro, on the SSD I am thinking. I am in the process of searching the forums in regards to partitioning strategies and hints to smooth the installs.
works fine at moving all files anywhere below the current directory to the current directory.
My question is can it be modified so it only moves all the files up one directory layer? Otherwise I shall have to cd 100 or so times and run it in each directory i want to compress...
I imagine the directory below which the file is stored is in the % somewhere it is just a case of extracting it and applying it to the mv command, yes?
I am trying to set up a webpager that contains a background of the skylouds uperimposedin the center will be an image of an airplane with a transparent background.I want the sky to scroll continuously to the left behind the airplane. I am having problems with the background not being visible, not moving as expected, the airplane not being visible, and just disappointment in general.I think the background of a div will not be visible if there are no internal contents because it will be sized to zero. So I introduced another transparent image to force the size of the main div. Still no joy.Here is my code. Note that I don't have my timers set up yet, just a button to test background movement.
I have a bash script that is tracking ERROR connections (running in a cron every 15 minutes), sometimes the errors are true and are not connecting. But most of the time, the disconnects/reconnects are between 30 seconds are sending out false positives. I am looking for a time comparison code to pick out the 30 second disconnects and know that this is and "ok" error. Here is a section of the log with timestamps, errors, etc.
Tue 2010-06-01 22:01:30 ERROR [DataBufferSendService] 172.31.0.1:8016 caught exception: [NetworkAPI] Exception: [SocketStream] socket error Tue 2010-06-01 22:01:32 ERROR [DataBufferSendService] 172.31.0.2:8016 caught exception: [NetworkAPI] Exception: [SocketStream] socket error Tue 2010-06-01 22:02:00 INFO [Client] 172.31.0.1:8016 connecting to 172.31.0.1 on port 8016 Tue 2010-06-01 22:02:02 INFO [Client] 172.31.0.2:8016 connecting to 172.31.0.2 on port 8016
Edit: Oops. Sorry if this is in the wrong forum. I meant to post it in the general forums, yet somehow it ended up here. It kind of fits here as well I guess. I am currently trying to move my career forward and am not having much luck. So I've come to see if any of you can offer some fresh advice to help me out.
Let me tell you first where I stand in my career to give you an idea of where I'm starting from. I am currently 26 years old and have recently graduated with a bachelors of computer science from university. I would call myself an average student, nothing special, nor anything horrible. Out of university this landed me an ok job as a PHP developer. However I dont want to stagnate in this position scripting junk all day and not ever challenge myself. not to mention i could certainly rant for a while on the things that fall short at my current position (read: being banned from object oriented programming because the boss cant understand it)
I'd like to find a job that (1) challenges me just the right amount to help me learn and grow but not get overwhelmed in a language I enjoy (hopefully such as C/C++/Java or the like)
(2) is at a company with at least some software design process implemented (agile,xp,etc)and if that is to much to ask, then I'd at least like to move in that direction. So that is what I am looking towards and I would love any advice on how to achieve that. Maybe some of you were in my position 5 or 10 years ago and could shed some light on the subject. I've scoured the internet for job postings that offer what I am looking for, but they are really hard to find. The postings are usually looking for senior or intermediate level programmers with at least 5+ years of experience, or looking for web development script monkeys to make "The next big facebook app" (the job I already have)
I've also considered attending conferences and such, but have never really been, and wouldn't know what to do, or where to even find out about them (I used to see postings every now and then at university, but now I live in a small town.)
I have installed fedora 11, now i want to install touch driver for my dell 15 laptop. when i m moving cursur its moving but when i m clcking on touch pad to open anything its not opening, to open i have 2 select any file then i have to click touchpad keys.
I have no Bash skills but Im badly in need of a script to move the first 20,000 or whatever number of files from a directory containing over 200,000 files to a new directory. The problem is that I cant access the directory because its so large so I want to break it into chunks, but keep the files in order if possible. If you know of a script to meet my needs, please post it. Otherwise Ill post my fumblings with Bash until I find the right way to fix my problem.
I am using Cent OS 5.5 and i want configure DNS, but while configuring bind i am getting below error.
#/etc/init.d/named restart Stopping named: [ OK ] Starting named: Error in named configuration: /etc/named.conf:57: open: /etc/named.root.hints: file not found[FAILED]
I like the buttons on the left. I'm running 10.04 & I know how to move them. The problem is that changing themes will move them back right. OK, if the new theme has them on the right that's OK. But going back to the other theme doesn't change them back. They don't seem to be controlled by the theme, or I'm just not doing it right.
I'm starting bash shell script and I'm looping without any solution.
I'm trying to find some files under a folder hierarchy and in case of errors moving these files to a destination folder under the same hierarchy recreating this hierarchy if not exists.
Finding all ._* files under /src and moving them to /dest recreating folder1 or the others which contains ._* files but without moving files which does not correspond to the pattern.
Code:
I tried find command and I'am getting all needed files
Code:
But I don't know how to use the output to get the parent folder of files which are found to
1- create folder with mkdir -p /dest/folder1 or /dest/folder1/folder4
2- move found files from /src/... to /dest/... with rm command
I'm working on a find command as this trying to do all in the same line but ... little lost
I have limited experience in terminal, but let me first explain what I am trying to do to see if there is some easier way to do it. Basically I want to change the skin in aMSN. I downloaded the new skin but am unable to unzip or move it without /root permissions. I don't know how to acquire this without being in terminal. So I figured there had to be some way to go into the terminal and use it to move the unzipped folder from the desktop to the aMSN skins folder.
I am having trouble writing an Xlib application that displays a window. The most frustrating thing is that I've written applications like this before, and never had any problems. For some reason I cannot get this program to work properly. I'm running KDE and when I launch the program, a "button" for the application will appear on the application panel, however, no window will display. It is possible to right click on the panel button and select the Close item which will successfully close the window.
The following is source code that when built will exhibit the behaviour described above code...
Unfortunatelly since i have no background at all about GUI programming, i dont know even the keyword for that i want to generate a pop up window from my program (written in C) which show a message and an OK button. in my opinion, maybe i should use directly the Xlib library and not the GTK or QT library for example so the program can work almost on every linux system. A code snippet/hint for the pop-up window then?