Programming :: Copying Data To Clipboard Using OSF/Motif, C++, And XRT Table?
Dec 23, 2010
I am working on an application in Motif and C++, which uses an XRT Table. With the XRT Table being an infrequently used product, it is hard to find good documentation on it, and one area in particular is sorely lacking... a good explanation on how to copy text from the table to the clipboard used by other X11 applications. I've come across an example application that demonstrates how to copy text to the clipboard, but I cannot seem to merge that knowledge with what I'm provided with the XRT Table API. Does anyone have any knowledge in using the XRT Table, and in particular, with copying selected fields within the table to the clipboard?
View 3 Replies
ADVERTISEMENT
Jul 26, 2013
How do you set up a command just to copy a file's full path name (%F) onto the clipboard?(I can't seem to get this without copying the contents of the file.)
View 2 Replies
View Related
May 30, 2011
I'm trying to write a GUI text encryption application. I wrote the encryption system in a No GUI application like this::
[Code]...
Now I'm trying to write a GUI version, using the same algorithm. Here goes a rough image of my main window code. If you scroll down you'll observe a coloured part. As you see, the text in the first textbox gets copied into clipboard. That is the part where my encryption system should encrypt the data in the clipboard, and copy it again, and later on the new data will be pasted. How am I supposed to write that? If I have to use another signal, what is the receiver of that signal?
[Code]...
View 5 Replies
View Related
Jul 18, 2011
I am writing a program and I need to be able to grab data from web pages.The data I am looking for is on wiki pages with basic tables.A simple example would be like grabbing all of the episode data from a TV show of something similar.
View 5 Replies
View Related
Oct 18, 2010
I've got lines of data in the following format:
space1=number of times error has occured
space2=IP address
space3=Error
I've set this out nicely with printf and made it email me, the problem is - it's not entirely clear what each column/space is and the IP and occurances can sometimes seem confusing. Is there any (easy) way to output this into an ascii like table? There will always be 5 occurances, and the format will always be the same
View 1 Replies
View Related
May 6, 2010
(1)There should be a command to send content to clipboard instead of 36 buffers available in vi just like ':set paste' allows pasting from clipboard inside vi using ctrl+shift+v in insert mode.(Currently I select area using mouse & right click then copy )
2)Let us say I have sentence "I am young" I want to arrange the words in this line in alphabetical order so that I get 'am I young'. First I thought replacing space by in sentence.Then !#j then type sort -n where # represents number of words.Then #J to join the filteredlines.It works but now I have file with hundreds of sentence of varying length.If I make a macro how will it know the number of words?
View 9 Replies
View Related
Nov 19, 2008
I have this program:
#! /usr/bin/perl
use DBI ;
use strict ;
[code]....
and I get this error simply running the program from the command line: DBD::mysql::st execute failed: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '' at line 1 at ./submit.cgi line 24.
is this the right syntax to use, both, for this line:
my (@param) = $cgi->param("firstname","lastname","type") ;
as well as this one:
$sth=$dbh->prepare ("SELECT firstname,lastname,type FROM dts WHERE firstname LIKE $param[0] AND lastname LIKE $param[1] and type LIKE $param[2]" );
or should there be quotes around the $param[0] or something? (also is it $param[0] or $param(0)?)
View 1 Replies
View Related
Feb 7, 2011
I have a problem with arrays in awk. What i want is to take some data from a file (ssh log) and print it to a html table. I have managed to print some stuff (user logged in and how many times they have logged in) What i want more is to take all the ip that each user logged in from and print it in a row next to the username and times (in the code i typed blabbla where i want the ip to be shown. How do you think i should approch that, multidimensional arrys maybe?
Code:
View 14 Replies
View Related
May 4, 2010
Seeking a decent Perl or Bash script or hack used to copy data from a CD/DVD to local or even remote hard drive/storage.
View 7 Replies
View Related
Jul 26, 2011
We have an application which allows user to perform Drag and Drop operations. The problem we are facing now is the application crash. System works fine for some time and allows user to perform many drag drops successfully. But after running for some time and user perform a drag and drop the system crashes.Following stack trace we are getting while system crashes.
XtDispatchEvent [Event.c]
RemoveAllPMgr [libXm.so.3]
XtCallCallbackList [Callback.c]
[code]....
View 1 Replies
View Related
Nov 5, 2010
I need to copy partition table for sda, I have 3 primary partitions and 1 extended partition on sda. I understand that fdisk cant copy extended partition table and I need to use sfdisk.
Correct me if I am wrong -
1. For primary partitions
Code:
dd if=sda-mbr.bin of=/dev/sdX bs=1 count=64 skip=446 seek=446
2. For extended partition
Code:
sfdisk -d /dev/sda2 > backup-sdX.sf
Where it will store the files after backing them up. I tried SUSE 11.2 DVD, it has back up partition table utility under repairs-advanced options but it suggests saving partition table to floppy. Why it doesnt offer to save it on a removable medium or to CD.
View 3 Replies
View Related
Feb 9, 2011
I'm running a program called Synergy+ to let my keyboard and mouse control multiple computers. One of Synergy+'s features is that clipboard (copy-paste) data is able to be shared, as in copy on one machine, paste onto another. I would like this functionality removed but Synergy+ has no way to disable it. I'm looking for any ideas to block clipboard data from being transferred. Is there a way to block a program from accessing the machine's clipboard data?
View 5 Replies
View Related
Nov 16, 2010
we had a CENTOS 5.5 x86_64 machine with 8ered with MySQL 5.0.91-community.Currently we had a very high number of Created_tmp_disk_tables (31k in 4,5 hours!!!).I've read suggestion that we need to increase tmp_table_size, and we've set tmp_table_size to 64M, but this drupal modul's query still cause mysql create tmp table on disk
Code:
SELECT DISTINCT node.nid AS nid,
comments.subject AS comments_subject,
[code]...
View 4 Replies
View Related
Mar 18, 2011
I'd like to have a Linux machine run what Windows users typically call a clipboard as a network service on my small LAN (about 10 machines). More specifically I am looking to have Linux run the clipboard service centrally in the LAN with both Windows and *nix machines able to connect to it as opposed to the peer-to-peer sync model that I am seeing in almost all of the applications I've discovered thus far.
View 2 Replies
View Related
Aug 28, 2010
I having a hard time figuring out why this code works in an interactive ipython shell, but it gives a blank clipboard when run in a bash terminal.
Code:
#! /usr/bin/python2.6
#
[code]...
View 1 Replies
View Related
Jan 24, 2010
How I send clipboard to festival or what is wrong here? #!/bin/bash
text='xclip -selection clipboard -o'
echo '(voice_nitech_us_awb_arctic_hts) (SayText "$text")' | festival
Says only "dollar text" to me. Just this works, but I want other script with different voice: #!/bin/bash
xclip -selection clipboard -o | festival --tts Voice changed here: echo '(voice_nitech_us_awb_arctic_hts) (SayText "say this please")' | festival
View 3 Replies
View Related
Apr 27, 2010
had trouble viewing partition table using fdisk, now realised i just cudnt view the whole table from Rescue terminal, please remove this thread, i can't find how ))
View 1 Replies
View Related
Dec 10, 2010
For some reason I am unable to view my database tables for my Wiki & I can't understand what I am doing wrong or what I'm missing. I know for sure there's table data on my 'wiki' database but for some reason I don't know how to list it.
Code:
psql (8.4.5)
Type "help" for help.
[code]....
View 1 Replies
View Related
Jul 6, 2009
When a user logs into my webmail application, it creates entries in a table on MySQL called "identities" which works great however once the user is deleted fro Linux with the "userdel -r" command, the data still sits in MySQL. My question is how I can I remove the table data from old users? It appears as show below:
[code].....
View 1 Replies
View Related
Jun 23, 2010
I have Western Digital 1 TB external HDD. I had slackware 13 and it could copy data to it with speed around 30 MB/s (copy from machine to HDD) and it was cool. It's usb 2.0 as KInfoCenter says. But now in fedora 13, it's like 1 MB/s or even less (KInfoCenter still says usb 2.0). Any special mount option to set in fuseblk to speed it up? I mean something like blksize or like that?
Code:
/dev/sdc1 on /media/My Book type fuseblk (rw,nosuid,nodev,allow_other,blksize=4096)
View 4 Replies
View Related
Apr 6, 2010
Is there any windows equivalent tools (like tera copy, Fast copy in windows) for linux for fast copying data from one location to other?
View 1 Replies
View Related
Feb 18, 2010
I have tried a few packages but cannot find an easy intuitive interface for editing tables in a mySQL database. I just need to simply edit the table field data, import and export multiple rows, and filter the table data so only the rows are returned based on a string that I search for. The tables I edit have several thousand rows and some up to 30,000. I do not know how to write queries and it seems all these packages require that you know how to write sql queries to do what I need to do. On the mac I used Sequel Pro, which is dead easy to use and is mostly point and click to do all the above. Since my mySQL experience is very limited, I really need something simple like this.
I have tried:
MySQL Workbench
Navicat (lite version)
MySQL Query Browser
how to do what I need to do with the above packages.
View 7 Replies
View Related
Apr 13, 2010
I'm having a slight dilemma on reading data from a text file and outputting it into a table then displaying it. Basically I'm writing a shell script that takes information from text files then outputs the data into a table with 4 headings. The extracting of the data is fine, but creating a table i'm having problems with. My code extracts the data outputs the string to another file which works fineThe text file looks like this
mr smith 1 purchase oct 2007
mrs smith 2 purchase nov 2006
i want it to look like this
[code]....
View 7 Replies
View Related
Mar 27, 2009
I was putting the cover back on my Antec p180b, and I guess it got stuck and gave it a hard bump (pretty much broke the cover). As a result, one of my hard drives, a Seagate Barracuda ST3750640AS, got messed up or something. All the other hard drives are fine. It's in an LVM with another hard drive, so now I can't boot up into my computer. So I booted into the installation CD:
Code:
# find /dev/sd[a-c][1-3]
/dev/sda1
/dev/sda2
[code]....
This led me to believe the partition was messed up. So I ran cfdisk, and it said something about a missing partition table or something. Additionally, instead of showing the single partition on it, it displays, from my recollection, Pri*Log. To my knowledge, this is the only problem with the hard drive. So now I need to either somehow create or restore the partition table without overwriting the data. Or get a new hard drive, and some how recover the data (LVM, partitions, and all).
View 4 Replies
View Related
Dec 10, 2009
I'm trying to find out which application will copy DVD discs (video and data) in raw mode. Something that works for DVDs like cdrdao works for CDs. I tried using cdrdao but it errors out because the DVD disc is too big for it. I tried looking at Brasero but I can't tell if it offers a raw option. I see that Brasero lets you copy a DVD to a RAW image, then burn the RAW image back to a DVD-R. If Brasero uses RAW mode to do a direct copy, this would essentially do the same thing, but I can't tell if that is what it does. But, I think this will work.
View 3 Replies
View Related
May 20, 2010
Well, when I copy large amount of data the other applications than Nautilus freezes until the copy is done...
So, what can I do? Because when backuping some data this is really annoying =/
View 6 Replies
View Related
Jan 22, 2010
resuming the any running process like yes a,vim a,copying data etc) via any terminalkill fg,bg at some instances kill -STOP pid,kill -CONT pid .
View 2 Replies
View Related
Jan 25, 2010
Problem : centos 5.3 hangs while remotely copying data onto this server.
I have A centos 5.3 x86 Version installed on Xeon Quad core , running on 8 GB DDR2 RAM, RAID 1 confgured on SATA drives. this was old installation copy and It has many more things running on it.Therfore, I can't just reinstall it.
I have setup SAMBA PDC + ldap on it. I encounter that system hangs when I copy data into this server from LAN computers.
My troubleshooting steps :
1. I have checked for network issue , My network works fine when I transfer data between other LAN compuers.
2. Even I have tried confguring seprate LAN....
3. I thought their might be some problem with my SAMBA configuration, therefore I did data transfer from sftp .
View 3 Replies
View Related
Jan 12, 2010
I have 8.04 running mdadm raid 1. I selected the wrong drive in gparted and managed to hose my partition tables.
View 7 Replies
View Related
Jan 27, 2010
I erased my partition table. Can anyone recommend a good method of reconstructing it? And if this is impossible, can anyone recommend a good method of data recovery? I had an ntfs partition with windows 7 and a larger ext3 partition that ran Debian.
I'm running Test-disk on the SystemRescueCD at the moment (cross your fingers).
View 1 Replies
View Related