Programming :: CD/DVD Contents Are Not Auto Refreshing ?
Jun 28, 2011
When I eject CD from CDROM by pushing eject button(mounted on CDROM) it still shows CD and it's contents in nautilus file browser. If I replaced the CD it still shows contents of older CD. If I eject CD manually by file browser then there is no such issue. I know this is the kernel issue because this issue has come after updating my kernel from linux 2.6.33 to linux-netbook-2.6.35. I am using MeeGo. I want to know which kernel parameter(or module) I have to add.
A long time ago I wrote a short essay about the 'federal' 'reserve' board. I don't remember it's name or format. I think it's somewhere on my rather large hard discs (to of them divided into various partitions).I'm trying to write a command line that will find it based on a quote that is in it: "our fathers brought forth"I have tried various configurations of grep, and or combining grep with find, but I'm getting nowhere. I really don't understand the syntax of either command, or how they work together, and the examples that I can find are really no help at all.
I am trying to read the contents of a file into something else. I have a file.txt that I am working with, I want to read the file and take the data and run some commands with the data that it read. So if it read www.yahoo.com I want to be able to nslookup. Does that make sense? I have been trying to use the read command but that does not seem to work. I even was trying to read filename | > filename to see if I could even read any of the data at all. Nothing is working.
want to watch the file continoulsy for any newly written data to file.Presently i am periodically opening the file and checking for the newly updated contents.Is there something like refresing the file descriptor, since open is a system call, calling it many times may affect performance. Does the tail program opens file multiple times to check for the updated contents when used with -f option.Can some one explain or give some links on how the filedescriptors remembers its end contents while some other programs keeps updating the file.
I am in the process of writing a program that plays the game mancala. I wanted to create a function that requires the player to choose a number between one and six, should be simple right? I kept having problems, so I started testing stuff out.
Code:
#include <stdio.h> #include <stdlib.h> short move();
[code]....
I am using gcc version 4.3.2 (Debian 4.3.2-1.1). On a whim, I tried something else out; when I change the 'short' variables to 'int' , the problem seems to dissapear.... I tried changing the format string in the scanf statement from "%d" to "%u" which is listed as the appropriate string for the 'short' type, still no luck.
How can read the file /var/etc/allInOne.cfg and distribute its contents on multiple cfg files using C language. /var/etc/allInOne.cfg contain the data and the path of each text file.
The source file "/var/etc/allInOne.cfg "look like this: line1 line2 ... line10 filePath:/var/etc/file1.cfg line12 line13 ... line14 filePath:/var/etc/file2.cfg linen .. filePath:/var/etc/filen.cfg the result will be :
The expected result is: /var/etc/file1.cfg will contain line1 to line10 /var/etc/file2.cfg will contain line 12 to line13 /var/etc/filen.cfg will contain linen to linen-1
I have an Excel Spreadsheet which reports upon weekly performance. One portion of the worksheet looks at week over week increases /decreases. I've placed a number of image controls (15 in Total) next to cells which calculate week over week change. The image controls simply display an image depending on whether the value of the adjacent cell is positive or negative. So, here is my basic working IF statement:
Code:
Private Sub Worksheet_Change(ByVal UpDown As Range) If Range("J26") > 0 And IsNumeric(Range("J26").Value) Then Image1.Picture = LoadPicture("C:path oup_arrow.gif") ElseIf Range("J26") < 0 And IsNumeric(Range("J26").Value) Then
[code]....
As you can see, this is pretty simple. What I'd like to do is find a way to loop through all 15 controls and avoid having 15 IF statements run on the Worksheet_Change() event. The cells containing the week over week values are all in the same column, but not continuous. Involved cells are: ("J26", "J27", "J33", "J34", "J35", "J36", "J37", "J38", "J39", "J40", "J42", "J43", "J44", "J45", "J46")
I have Zotac MAG (read my personnal review here) with Ubuntu 10.04 freshly updated installed with vnc provided with Synaptic and XBMC. This box replaces an equivalent Win7 box.
Couldn't be happier up until some few days ago. VNC stops refreshing the screen.
Albeit it had never refreshed the screen while XBMC was running, I could quit it with keyboard shortcuts and my desktop would show and applications would "animate".
Since a few days ago, the only thing I get is the first screen, wether it's XBMC or the desktop and that's it. I need to quit and restart my vcn client to get another screen refresh.
I have tried, from my desktop, ultravnc, realvnc and tightvnc on the client side... Using many different connection options. Always with the same results.
I have looked around on this forum as well as on Google, but I am not sure where the problem comes from, thus, what to search for.
I recently upgraded from xubuntu 9.04 to 11.04, and it seems xterm is either incorrectly configured for the new desktop or not working right. After a bit of typing, xterm stops refreshing, and only the first few chars or words are shown until I manually refresh xterm (then, whatever I'd written shows up correctly).
Steps to reproduce 1. Open xterm, basic command prompt shows up 2. Type "hello, this is a test", xterm only shows "hello, th" 3. Press 'ctrl-l' or click outside the xterm window, xterm updates with full "hello, this is a test"
Already tried dpkg-reconfigure with no success.
Attached is the output from "appres XTerm" and "infocmp"
I'm having a problem with the Packman repository lately. First, I added the Packman repo using a Germany mirror link. Everything worked fine until I decided to switch the repository URL to the standard Packman one [URL] instead of a mirror.Then I started getting an error while refreshing repositories:
Code:
Error refreshing service Packman Repository (http://packman.inode.at/suse/11.3/packman.repo): Parse error: repoindex.xml[1] Document is empty
Quite frustratingly, for some reason zypper has made the Packman repo invisible and I can't see it anywhere (not in Yast Software Repositories or in the /etc/zypp/repos.d folder. Yet, it still tries to use that repository when refreshing, and obviously gives me an error in the process. how to completely remove all traces of this Packman repo from my system so I can start anew? (aside from an OS reinstall?)
I have this weird issue: from time to time (I really cant be more specific, never managed to see a pattern when the problem occurs) the content of open windows is not refreshed until the window is restored and then maximized again. In most cases it is the browser (firefox beta 9), but it is not application specific, because it happens with different applications. I am using the ubuntu 10.10 (kernel 2.6.35-24-generic-pae), compiz(0.8.6) with Nvidia drivers (260.19.06) and X (xorg-server 2:1.9.0-0ubuntu7.1).
I am having problems with my external hard drive, every time I reboot I have to get on my knees and unplug it from my computer and plug it back in for it to load. There is no power switch on it so i am looking for a way, from the terminal, to reload it.
Using "lsusb" in the terminal I can see:
I heard something about being able to restart a port by the id but can not find anywhere that says how to do this.
Also i was wondering if there is something for Ubuntu like the Perl man pages that just lists all of the commands that a person would use. That would be much preferred to having to look around the Internet every time i need a line of code. And being based on debian would it make sence to look for how to do things in debian if i cant find how to do it in Ubuntu? or will just "in Linux" work?
So I have a laptop that I installed 9.10 on recently and for a bit everything was going fine. I have done a few updates over the course of the past week and for a couple days now I have got a huge problem. I am unable to view web pages without having to refresh them over and over until it finally loads. I thought this issue was only with Firefox and I researched the issue and ended up disabling ipv6 in FF. To no avail.
Synaptic Package Manager also will not connect to the internet. It will receive the list of updates but as soon as I click install it sticks on Downloading File 1 of XX. Since it wasn't limited to Firefox and there is debate on whether ipv6 slows down connectivity, I have disabled it system wide. Also to no avail. I have confirmed this to be so with wired and wireless connections to my router.
I was trying to get my brand new xubuntu install on a Dell Latitutude get going with a kvm switch. I shut down the machine -> connected the kvm cable -> powered it back on and the keyboard/mouse work fine in the login screen, HOWEVER, I just can't get past the login screen, it keeps refreshing the screen even if my authentication is correct.
I unplugged the usb kvm cable, restarted but the problem does not go away.
I can't login to recovery mode (press esc during GRUB load), it doesn't offer any recovery options, goes straight to the login screen.
I am having some problems with finding a decent terminal program.
I am using Fluxbox, and so I don't want any DE specific terminal programs.
I have xterm by default, and have been playing with urxvt, aterm and mrxvt as well.
I originally wanted a terminal program with tabs and transparency, however tabs don't matter to me anymore and fluxbox has native support anyway. Now, just proper transparency is important to me. I understand Fluxbox can induce real transparency with xcompmgr, but this has the effect of making the entire window transparent. I am looking for a terminal that supports real transparency naively so the window bar and border will not be transparent, while the "terminal part" will be.
I'm not 100% sure, but out of these I think only urxvt fits the bill, with aterm and mrxvt only supporting pseudo transparency. Is this correct?
Second to this, and my more urgent problem, is that none of the terminals except xterm seem to fresh properly. in xterm I can do everything I can do in a real tty, I can edit with vi, use curses programs etc...no problems. However each of urxvt, mrxvt and aterm behave the same way, and do not refresh properly. If I try to edit a file in vi in any of these, I can only see maybe one or two lines of the file, and can't scroll through or anything...it's impossible to actually edit.
I also note in urxvt, mrxvt and aterm the home and end keys don't work, however they work in xterm just as they do on a tty. For example in each of the non xterm terminals pressing home just gives a tilde, which means I have to hold down the left arrow to get to the end of the line, which can be frustrating.
Obviously the other 3 terminals are are emulating a different terminal type to what xterm does...perhaps. However I have not found a way to test this. For those people using a non xterm terminal, how did you solve this?
I also had some somewhat related questions that I hope I don't need to make a separate post for(they seem so trivial but really bug me)
1. How would I press alt + enter inside a terminal? For example running wicd-curses from a terminal(Even an xterm) you need to press alt + enter to save settings, however from a terminal alt + enter has no effect. Is their any way to force this key combination?
2. I notice when starting a terminal, the shell lacks a prompt. Why do terminals start interactive shells by default, and why do interactive shells not have a prompt? Is their a way to make interactive shells inherrit the same prompt that login shells use? I use both zsh and bash. Is their any practical difference between using a login and interactive shell?
3. If I am running an X session as a normal user, and su to root in a terminal, is their any way I can start X programs as root and get them to display in the X session of my normal user? I normally get an error similar to unable to open display
3a. I just tested...I normally 'su -' out of habbit, and then I get an "unable to open display" error. I just used su, so roots profile was not loaded, and I can start X programs as root. Why does this work?
4. I was wondering if it was possible to have the titlebar of a terminal show the current command or path? Something more unique than just every window open saying urxvt or whatever.
I m mew at linux programing an working on a project that is sort of cctv cmra monitoring i m now facing problem with part of my program for displaying the received image in window and also updating it timely by closing and opening new window or refreshing the same one...........i have no idea where to start study ........system command "display" is not fulfilling the purpose... its not refreshing until window is closed manually, control to the program is not returning back without forcefully closing.
I have CentOS 5.5, Dell 2407FPW LCD and nVidia GT310 video card. For some reasons, if I maximize my browser to full screen and scroll down (or up, direction doesn't matter), it slowly scrolls. At first, I thought that it had something to do with my firefox.
Then, later on, I found that if I play video files with VideoLan in full screen mode, it is like in slow motion mode, but I have no problem to play the same video in a smaller frame. Hence, I feel that it has something to do with either the video driver or the monitor driver. I am using the Dell 2407FPW(Digital) and GT310 drivers coming with CentOS 5.5. Here is my /etc/X11/xorg.conf:
# Xorg configuration created by system-config-display Section "ServerLayout" Identifier "single head configuration" Screen 0 "Screen0" 0 0 InputDevice "Keyboard0" "CoreKeyboard" EndSection
I'm running OpenSUSE 11.4 (i586) with KDE Desktop 4.6.0 "release 6" on my IBM ThinPad X40. And I have trouble with getting new plasma widgets by internet. To be more concrete, every time I try to install new widget (first I want to view details of that), so when I'm pushing on blue button called "Details", BOOM and my plasma desktop crashes and after refreshing it generates the dump file for reporting to developers.
As this is quite an annoying bug, I've decided to report it, so I've installed all the necessary debugging tools, generated the complete bug report and sent it to KDE team. After this, I've got mail with link on KDE bug tracking system [URL] and found a lot of people being in the same trouble. So, one guy - Dario Andres (I think he's from KDE team) says: "The bug and the fix are in "libattica", may be your version of that library is not the latest. (or there wasn't a release including the fix)" and though after his comment there's a dozen of other replies with the same problem, all of them are marked as the duplicated bug and has no answer.
Well, even I know that my operating system is always up to dated, anyway I've checked that library version on my computer:
And I've double checked on the Internet and this is the latest version of this library. So, it's obvious that this BUG 261530 has not solved by this library.
I own several websites and have always developed on my local Apache server.
I am in the middle of releasing a new product on one of my sites and have been making rapid changes to the site based on feedback from customers, etc. as my product has gone live...
My local server is NOT refreshing pages. I make a change, click "refresh" in my browser and nothing happens.
I have tried clearing my browser cache and it makes no difference. Eventually (several minutes later) my changes happen.
Problem is, I need to be making these changes rapidly, and I really prefer to check my work on localhost before uploading it to a live server where I'm getting a lot of visitors right now.
This is a very recent problem as I have never had this occur before. Running 10.04.
I find it gets stuck at refreshing folder and I have to close it and re-open to get it going again. It did not use to b a problem in the past, we seem to be regressing in its usability since the early versions of ubuntu. I hope someone there knows what the problem is, otherwise have to start experimenting with other email clients, what a pain.
I am using emacs 23.1.1 on Ubuntu 9.04, kernel 2.6.28-17-generic. When I scroll up and down in a file, occasionally some of the lines are not refreshed properly. i.e. if a line with a lot of text is replaced with a line that has little text, some of the old text that used to be on the line remains (see attached screenshot,near the bottom).
I have the same problem in Kile, so it must not be a bug with either program directly (I think?). I do not have the problem with gedit.
For the record, the emacs message buffer contains the following on startup
I have this project for my operating systems class and I have put together the basic flow chart to aid me in writing the program. I know how to use pipes as a buffer to hold info. I know how to create a binary semaphore. But what I dont know is this:
How to "use a delay adjustment parameter K in the critical section to adjust the speed of the display process to show that without semaphore protection the displayed contents of the buffer are randomly interleaved."
First off, I am definitely not asking anyone to give me the solution. But I do need some guidance. So I figure there will be an if statement with two options:
1. If true, use semaphore protection to enter/exit critical section
2. If false, no semaphore protection -- this is where the contents of the buffer should be interleaved.
Now does that mean that as each child process enters the non-protected critical section, it should "sleep" for a randomized time? I mean, will this allow my output to be interleaved?
So lets say my command line looks like this:
what happens to the 100? Is it randomized using rand and srand and passed as a parameter to sleep() inside the critcal section?