I want to know how much CPU time spent on CODE_BLOCK. Since the process executing CODE_BLOCK may be preempted during execution, this CPU time may not be equal to the (wall-clock) time elapsed from the beginning of CODE_BLOCK to the end of it.
I usually develop python code with emacs, emacs being in python code. On my desktop a version is installed and/or configured that way, so I easily can choose a region in the code and simply click on a menu option to comment out this block of code (i.e. at the begin of each line in the selected code two '##' are put). That is very convenient.
However, on my Laptop, running F12 and emacs 23.1.1, this menu option is missing! I searched within google and found the hint that by pressing 'C-c #' I also can comment out a selected region. But on my emacs it says: 'C-c # is undefined'. Am I missing something? Anyone any idea how to fix/install/update/solve this problem, so I can easily choose a couple of python lines and comment them out?
can I change the ECC code for a block of a file stored on a flash drive by any means ? of a file stored on a HDD (though I don't think there would be a difference between the two)Maybe , through some hardware interrupts or anything like that?Also if possible I need the solution to be in C/C++.
I have a permissions question that I'm sure has a simple answer but one I can't find. When saving files through SSH using kate or kwrite, the permissions always reset to 644 when I want them to stay at 666/777. When using notepad (not sure what this is, it's just in my right click contex menu under "open with...") the permissions persisted after I saved. Permissions also persist with kate and kwrite on my local machine.
Is this something I need to configure on the server? Using Opensuse 11.2, kde 4.3, kwrite 4.3.1-5.6.3, kate 4.3.1-3.7
I need to change attributes in my /etc/fstab file.
I cant change my fstab file because apparently Kwrite only crashes when accessed by Konsole in SU mode.
I type this input/output:
linux-mg28:/home/me # kdesu kwrite /etc/fstab kdesu(13370): Session bus not found KCrash: Application 'kdesu' crashing... sock_file=/root/.kde4/socket-linux-mg28/kdeinit4__0
[Code]....
I have a dual XP/suse11.3 system. I even removed my old Suse along with all its partitions, leaving only the NTFS XP, re-downloaded the 11.3 ISO image, burned a new fresh install disk and reinstalled 11.3. I updated the software in YaST.
I still can't modify my fstab file. But I can locate the file in Dolphin and click it to open in a Kwrite window. Read only of course.
I need to search it backwards for "notable line" strings AND the first numeric string preceding that line. I've discovered that it's easy to search backwards by tac file | grep pattern, but how to tell grep to continue searching from where the pattern was found? In short, I want to make the output of the example above into this:
Code:
Or I must use another tool, like awk or sed? If so, how do I do so?
I'm trying to use sed to search and replace backwards. The problem is that I have a shell script that is required to put commas into big numbers. For example
9999999 as 9,999,999
I've tried a few things, but none seem to work:
Code:
$ echo 9999999 | sed -e 's/([0-9]{3})/,1/g' ,999,9999 $ echo 9999999 | sed -e 's/([0-9]{3})$/1,/g' -e 's/([0-9]{3})/1,/g' 999,999,9, $ echo 9999999 | sed -e 's/([0-9]{3})$/1,/g' -e 's/([0-9]{3})/,1/g'
[ode]....
It would be much easier if I could search backwards! For example Bash parameter substitution style:
I am running a LAMP system with CentOS 5.4.The clock just automatically shifted backwards by 19 hours and 30 minutes crippling some of my reports and probably damaging something else along the way.The router supplying IP to this server is a DD-WRT and shows proper time.By the way what does that mean? time drifted by that 33.667 ms?
Just installed F15 using preupgrade (from F14) and now, every time I reboot, time jumps backwards 4 hours. If I reboot twice in a row without correcting the time, time will be off by 8 hours. Time zone is set correctly (Eastern Time). "Synchronize date and time over the network" is unchecked.
Since the difference between GMT and Eastern time is 4 hours, there appears to be some confusion over that but I can't find anything in the "Date & Time" app relative to that to try to play with to see if I can correct this. II do remember a similar issue many releases ago but I can't remember how it was dealt with.
I want to scroll back 10000+ lines in text mode linux terminal. As there is an unlimit option in gnome-terminal, so I guess if this is also possible in text mode?
Dovecot is setup to run on each startup but each time I restart my system, I find that it is not running(killed), when I check my logs it says time moved backwards for x seconds. Essentially, I'm having this problem, [url] what is the solution in ubuntu so that dovecot would not be killed on startup? currently I have to put /etc/init.d/dovecot restart into rc.local to restart it again...
I can't input Japanese charactersn KWriteough the input works in all other applications as far as I know). Does anyone have an idea what the cause might be, or what I should be looking at?The point is not that can't see the characters (but e.g. gibberish instead), but that the characters that I type in the input bar are not transfered into KWrite upon commit.
In krusader (root mode), I want to edit a plain text file that can only be edited as su. When clicking on the file opened kwrite before, now I get this krusader error message: "KDEInit couldn't launch 'usr/bin/kwrite' OK"
Why is this happening? What's wrong? I've found that this problem begins on the second try to open the file-- for the first time clicking on it, kwrite opens it for editing but not on tries following the first one made in the same computer session. Rebooting fixes the problem but only for the first new opening of the file.
After upgrading to KDE4.7 I would get the error message, "A KDE text-editor component could not be found. Please check your KDE installation.", when I clicked on text files. The all knowing Google provided no answer so I am leaving my solution here in case others are as unfortunate.
For some reason kdelibs3-32bit is pulled in when I upgraded to kde 4.7, removing it fixed the problem.
Let me begin by saying that I'm a "casual user" of my computer (I'm a retiree who uses her 'machine' for email, looking up mostly useless info, & pretending to be a writer). However, migraines from beating my head on the keyboard in frustration over Windows eccentricities led me straight to Linux. Linux blows windows out of the water, IMO.
Except for Media Players. I have tried every one in Ubuntu's software catalog. Rhythmbox is the only one that works, & it doesn't work correctly. I use my computer as my primary music source, & have saved nearly 200 albums/CDs to it. I transferred my collection to a memory stick, then tried to transfer it to Ubuntu. Rhythmbox 'accepted' most but not all albums, but none of the downloaded music, & lists the songs in each album backwards. When I open an album, sometimes Rhythmbox plays them backwards, sometimes (rarely) 'frontwards', but usually, jumps around, plays a few of the numbers, then stops. Occasionally, it goes through the collection, playing one song from each collection.
I was able to transfer the entire collection to 'Listen' media player, but it doesn't actually play anything, & I never even got that far with any other player. I have a two year-old HP Compaq Presario desktop w/ 500GB, (300 to Ubuntu & the rest to The Dreaded Windows for some stuff I can't run on Linux). I began with running Ubuntu 10.04 on 'wubi', then installed it from a CD I burned from the Ubuntu site. Someone suggested I had screwed something up during downloading, so I got 10.04 on a CD (w/ "Ubuntu for Non-Geeks"), but had the same media player problems. Last month I upgraded to 10.10, but still have the same problems.
I am working on a English (US) KDE installation of opensuse 11.2 with a US keyboard and I have some troubles to configure my system in order to work on some French documents using Kate, Kwrite or Eclipse.
For instance, when I save the content of this link [url] on my hard-drive and open the file in Kate, Kwrite or Eclipse, all accentuated characters are displayed as black lozenge signs with a ? inside. What should I fix in my configuration to have those characters show correctly?
A related but maybe slightly different situation is the following: In Eclipse, when I use a French keyboard layout in Eclipse (using the shortcut Ctrl + Alt + K after setup in Configure Desktop > Regional & Language), I can type and display accentuated characters correctly. However, as soon as I spell check my document (I believe Eclipse use aspell for that), all the words containing the accentuated characters that I typed are shown as being wrong. Eclipse suggests some corrections that show up with black lozenge signs with a ? inside...
I have Ubuntu 9.10 installed on my laptop.For editing some text files we can use "vi'and "gedit" editor, but not "kwrite".Is it possible to have kwrite working in Ubuntu or it is for other distributions?
Problem that may require several tools available on Fedora. I don't know if its possible or not.
Given: Surveillance video box based on Fedora & Zoneminder. Internet connection is via a private 10.x.x.x network connection to the local phone company/ISP. That's the only connection available and they are the only ISP in the area. The ISP uses NAT to ultimately provide a routeable IP address, but that only works on outbound initiated traffic.
Problem: How can someone out on the Internet hit this box? i.e Is there any way to rig a method that will ultimately allow a connection initiated from the Internet to see the surveillance video that this box has stored via an http session?
I thought of one idea but don't have the tools to implement it. User sends an email to a server out on the Net somewhere. Surveillance box retrieves mail ever minute. The mail contains the users IP address. Surveillance box sends an outbound packet to that IP address to get NAT functional. The users box then uses that address to hit the box on the private network. The snag with this is that NAT is specific to ports, and I have no sway over the ISP's NAT capability.
Is there any way to push an http session outbound to the waiting end user? i.e. initiate a push of http traffic from the private box to the end user?
I have just dual booted ubuntu 10.04 onto my computer with windows 7 and so far i cannot get my shift key to work on my 64-bit computer. all my other keys work except for that key. could someone please tell me how to fix this little problem.
dell 1545 laptop. when shift is held the system doesn't register the input, ie no caps or symbols, but it does work for compiz shortcuts. capslock works for letters but not symbols.
When I open the nautilus and press shift+down key i cannot select icons. Similarly, if i open some text editor (gedit) if i press shift+down key, i cannot select text. Shift+up left and right keys are normal. Only shift+down key is having problem.
One of the very few things I miss from Windows is that when you press LeftShift+Del the delete key acts like the backspace key, in other words you can use Del to delete forwards and LeftShift+Del to delete backwards.
I've been reading man pages such as xmodmap and used xev to get keycodes but I can't work out how to map LeftShift+Del to Backspace.
Since F12 I've big troubles with my left shift key.
I've Fedora running on 3 hosts. 2 desktops and 1 laptop. Only on one of the desktops I've these troubles.
If I press the left shift key sometimes shift gets locked. If it's locked, no key can unlock it. Not the left, not the right shift, nor any other key... and I tried them all meanwhile;-)
It's a real shift lock, not a caps lock. After a (random?) time it releases itself without any user interaction. Releasetime varies between 1 and many seconds.
So, only waiting helps. I already followed the wiki entries for debugging keyboard (input-dev) issues. Watching the output of evtest shows exactly the same output for the usual case and the lock case. They both look like this... code...
I got home from work today and my laptop was being strange. normally when left for a while the screen locks so you have to enter your password to use it. when i came to it the screen was black, like normal, only there was no login box just the mouse curser, that i could move about. so i did the ctrl alt f1 thing and logged in then rebooted. booted up all ok but neither of my shift buttons work. they work in the main login when i first turn it on but after im logged in they do nothing. i tried selecting mutiple items with shift and that doesnt work either. i aint changed any settings or owt like that. does anyone know whats up with it and how i can fix it'questionmark' im using 10.04 on a dell inspiron 1525 laptop. when i log in as a guest the shift buttons work fine. what is it that i have thats stopping them from working 'questionmark'