I am writing a client chat server program in java. The chat server is already written. I created the interface and I connected to the chat server. The server keeps sending protocol messages to whom ever is connected, also it keeps sending specific protocol every 10 sec to check if user is still online.My problem is when I connect from my interface to the chat server, the program gets stuck, I can not press any other button because after connection my program keeps receiving commands from server(I have a method to keep reading after connection). How can I keep track of messages sent from server and not get stuck i.e press other buttons or type in the interface?
Bear in mind that LIBS can be variable, I mean I need to drop any duplicate and only retain the last one of each different entry. And we must keep the order as is, I must not sort out them.
What I would like to do is, with a right click, have the menu give me the option to run srm, which is a "secure remove" program. I picked this one as it requires not only a file name, but some other options. I've run into no support adding things to menus. When I updated one of the Debian versions, I lost the shutdown option from the name menu that used to be there. It was suggested that I right click and pick that option to restore it, but I get the same as the left button on that menu.
I want to extract all the common entries in the given 3 columns(fields) in the file using awk::can somebody tell me how it can be done in awk...the file is::
I'm getting duplicate entries in mysql database when submitting a new item from a form. I initially loaded the database via IMPORT function in phpMyAdmin. This is my input form:
I have a huge (over 10 gb) file with a list of IP's each followed by a corresponding number like this:
Code:
12.32.34.23 10 143.32.34.543 11 232.32.45.65 12 54.23.5.232 13 143.32.34.43 14 and so on..
I'm trying to sort this file numerically and weed out any duplicate IP addresses. How do I do this on bash? I have come up with this but obviously it does'nt work.
What I want to do is from a file having block like
<event> 8 3 0.2685416E-02 2 -1 0 21 -1 0
[code]...
The first line after the "<event>" is its process-id, so I would like to have at the end a summary of how many "event" block I have for each type, ie how many
6 1 0.2685416E-02
or how many
7 2 0.2685416E-02
etc etc
I do not know in advance how many different-kind of block I will have, so it has to be a bit smart to scan the file, and make an new "summary" info for each unique type I was using something like
I am working on Red Hat Linux since last six months and learning it steps by steps. like configurating ftp server,NSF ,DNS and then email server. I want to learn squid server but technically before going into it what you suggest me that may I first learn to configure Linux as a router,Firewall machine or do IP masquerading on a server. Because all these things are directly or indirectly involve in squid.So guide me because going to start squid i may understand Linux IP table ,how to add entries in it,how to delete entries ,I think you understand my point which i want to ask for guidence.
I just tried to install mythvideo 0.22 from the packman repository and Yast tell me it requires python-imdb. Havent been able to track down an rpm for opensuse 11.2 x86_64. Is there any way to request that this rpm be built?
How would i do a hexdump in Ubuntu for the first track of a HDD? I am looking for a winhex-esque output if that makes sense. The first track has 63 sectors, each 512 bytes long. I tried
dd if=/dev/sda bs=1 count=512 | hexdump -C
but that only gave me what appears to be the MBR, or first sector of the HDD.
I am playing a DVD with multiple copies of it's content on the disc. I am wanting to use VLC to try and find out which of the tracks is the right one for when I rip. How to do this?
I have something crashing my system. It might be the random screensaver setting as it was an issue in 11.0 although I have not see it be an issue in 11.2. Previously I though my computer was shutting itself down and because of that I started this thread: opensuse 11.2 shutting down - openSUSE Forums
but now I know the issue is crashing it seems like I should start a separate thread as it's a completely different question. I guess I need to learn how to determine what caused a crash after I reboot a crashed system. So, other than blindly combing logs of which there are dozens, is there a smart methodical way to determine what is crashing a system after a restart? -- when you are not around to see what the cause is as it happens.
The track pad on a Macbook Pro 8.3 is hypersensitive and interprets the lightest touch as a click. Even brushing the track pad with the sleeve of my shirt counts as a click. How do I decrease the sensitivity of the track pad?
Last day i have faced an attack on Apache/2.2.14 (Ubuntu).A user shoots 53 hits within 20 seconds from same IP and as a result db connections to MySQL increased.
a.) Is there any way in Apache to block these type of requests
b.) how can we trace when this type of attack happened to Apache.
Also I have noticed an entry in Apache error log during attack period
At my office we are having a samba sever, staff will access their respective folder from their Windows XP systems. I wish to track all user access activity like file creation, modification, deletion and etc. I tried smbstatus -v, from the output I am not able to guess what the user done. I am giving some of the results I get please help me or you can suggest best way to get access log.
Samba version 3.0.25b-0.el5.4 PID Username Group Machine 14721 govind govind tsl-019 (10.0.2.64) 4832 chandra chandra trivent-9b92c9c (10.0.2.106) Service pid machine Connected at
I have no problem with resolving dependencies on my own, but when I uninstall a programm, how could I keep track of the dependencies, thus remove them?
Is there a possibility to store this information in the /var/log/packages files, or better yet, is it possible to include the dependencies in the the .tgz's, so a 'removepkg' would get rid of them as well?
I'm trying to track down some dependencies for truecrypt,
libwx_baseu-2.8.so.0 is needed by truecrypt-6.3a-1.el5.i386 libwx_baseu-2.8.so.0(WXU_2.8) is needed by truecrypt-6.3a-1.el5.i386 libwx_gtk2u_adv-2.8.so.0 is needed by truecrypt-6.3a-1.el5.i386 libwx_gtk2u_adv-2.8.so.0(WXU_2.8) is needed by truecrypt-6.3a-1.el5.i386
Is there any way to track packaging progress of Plasma 5 in Debian? I periodically check [URL] .... and [URL] .... debian.org for something related, but it doesn't give any idea how far Plasma 5 is from landing in Debian (unstable / testing). Is there some easy way to track this?
Amarok stops after each track when playing playlist from magnatune.This is not happend if I play local music.Has someone a solution to this ?My Setup Amarok 2.3.2-4 - Fedora 14 64bit
i recently bought a Coby netbook, and the track pad doesn't work at all if i'm using linux, (i currently have fedora 15, and gnome 3.0.1) it works fine with windows. and also, the keyboard sometimes glitches and my typing would look like.does anyone have any idea on how to fix these problems? i would like to just find a .rpm or something with the drivers or whatever (I have always hated using tar balls)
I'm using the default media player 'Banshee', and when I select multiple tracks to edit bulk information, ie Album Name or Genre, it's only changing the track I right click on, regardless of multiple being selected.Is this the default action for Banshee, and if so, is there a way to change multiple track information at once.
It seems that some of the functions I used almost daily in Amarok 1 are not to be found (at least by me) in Amarok 2. After a thread without a solution on how to play Random tracks, here is a new one.
In Amarok 1 I used to place a track (e.g. sitting in a download directory) in the playlist (by clicking on it). A right click on it in the play list revealed a few options. Two of them:
. copy track to collection. . move track to collection
Both are gone in Amarok 2 and I could not find a replacement.
Btw when I right click on an item in the collection list (at left) there is still the Reorganize file(s) that is very much the 'collection internal' equivalent.
As I suppose that it is possible to add to the local collection, who knows how to do it?
Possible Duplicate: time tracking application on linux Every Linux time-tracking application I've seen assumes you're tracking time for projects, perhaps to create invoices later for your clients. This is not what I'm looking for. Rather, I just want some insight into how I spend my time on my computer. I'd like to waste less time on my computer, and spend my time on more productive tasks. The first step to improving anything is to measure it. But I can't be bothered or remember to click on some icon and switch "projects" every time I change from my terminal to browsing ....., or something like that. I want the time I spend on different applications tracked automatically.