I am trying to find a way to pull Node Pointers out of the model, for use in other areas of the program. The solution is probably simple but I haven't had any luck finding it.
Model for a QTreeView:
Code:
class testModel : public QAbstractItemModel { public: testModel(); ~testModel();
I have a script in Linux that generates a report on my Linux machine. I would like to know if there is anyway I can write a script to pull this report automatically from my Linux machine into my windows machine. Both Linux and Windows machines are on the same network
I have to pull certificate from multiple computers which are on network and store it in a single fie or each file belong to a particular computer.I am using certutil -store to import the certificate.
I am trying to figure out a way to pull http links out of text files and then output the results in a log. The text files are in folders like this inside a source directory.
I have a file (.tmpfile) and inside it is a string which i only know part of, the rest being a random group of characters... I would like to know how to pull the whole string out of the file and into a variable.
Whenever i click on an icon in the Places pull down menu (except Computer, Network, Connect To Server and Search For Files) nothing happens except I get Ktorrent popping up and claiming it cant open the selected Drive or Folder because it is not a valid torrent file. Which is fair enough, 'cos its not a torrent. Its the entry for my Desktop in a pull down menu in my O/S, and it does this even when I haven't been near Ktorrent in the previous hundred clicks of the mouse, or if Ktorrent is not running. If i un-install Ktorrent, the error message changed, but the correct windows did not open when asked from the Places pull down, and the error returns when its re installed- well, tried it once, in a very basic fashion through the software center.
I think the problem has been caused by two containing folders of torrent data files that have become stuck as entrys in the Pllaces menu- cack handed off me folks, was playing with new mouse settings as I was playing with new mouse settings. Problem may also be something to do with the problems I have been having with Ktorrent- it refuses to accept torrent files unless through a magnet link, bringing up the same "parse error- not valid torrent file" error message as comes up from the Places menu, only of course citing the torrent i just tried, when I know for sure the file is valid and operational because Transmission has no problem with it.I really hope someone can help me fix this, as formatting and re-installing will be a real ball ache, as I'm a new user who's spent the last week learning and starting the customization process, and I was just getting to think about backing it all up.System is Ubuntu 10.10 64 bit, Pentium quad core, one 250Gb system drive and another larger drive called storage that appears under Media path both SATA2, no DVD drive as connector is in the post.
This is (I'm sure) a silly question, but when reading the guide for custom kernel [url] it mentions I need to use yumdownloader to pull the source as an RPM.
How exactly do I find mirrors etc for this (and where do I configure it)?
I've already got the source locally along with the patches I want to use, and want to try this the 'fedora' way. I'd normally just use make/make modules etc, but I've never tried it via RPM.
I know of terminating a command with & and then moving it into the background by pressing Ctrl-Z and then bg [pid], and I also know of nohup. But say you started a process that turned out to take much longer than one expected, is there a way of pulling, so to speak, this process from another terminal screen into the background so that even if I log off from the server the process would continue?
I have a pretty good understanding of what is in the package mgt rep and how to pull software out and install. BTW this is the greatest software install tool ever created.But really my question is about software for UBUNTU that is not in the rep. Has anyone compiled a list and/or reviews of the software that is out there. I'm looking for companies that actively writing software for Linux and in particular UBUNTU and what kind of products they have.
I have a gziped dd image backup of my entire hda drive (osx and ext4 partitions) that I created with the following command: dd if=/dev/sda |gzip > image032810.gz Can I mount this image file to pull off individual files from individual partitions?
I have 2 files to compare and then print out information that match a certain pattern. I know basic scripting and was heading down the path of merging the 2 files together but this is the wrong approach. Would really appreciate a script that can do what is required:
file 1 contains dates, times and ID's: 2010-10-28 10:42 5939697357 2010-10-28 11:56 5919543491
Posting this one in Software rather than Networking as it appears to be a Rancid/CVS/Diff issue rather than anything relating directly to Networking. Trying to pull config diffs from HP Procurve switches. Latest versions of Tcl, Expect, diff stat, and 2.3.5 Rancid. Getting random characters changes and white space changes seen as diffs. Things like ";password manager <removed>" in one config showing up in the next chrons run as "c5# ord manager". This generates a new email every time.
Since we have these going directly into our ticketing system for change control, these pile up over time and need to be parsed out from actual config changes. I've tried various diff switches in the control_rancid. Current command string in the control_rancid file is "cvs -f diff -TwbB -U 4 -ko | sed -e '/^RCS file: /d' -e/^--- /d' -e '/^+++/d' -e 's/^([-+])/1 /' >$TMP.dff" I've also tried looking in the hrancid, hlogin, and htlogin files for more hints that might be scrambling my diffs, but no luck. Here's a sample of what shows up in the ticket queue.
I would like to know if it is possible to push or pull all Windows printers (about 1000) to Redhat Advanced Server? I know normally Samba comes into play, but there i can only make connection to 1 printer at the time. Also, I must then add the printers from the Windows Print Cluster by hand. Considering the huge amount of work AND the manageable aspects ( you will then have the printers on two servers), this is not an option.
So, can I connect from the RedHat server directly to the Windows Print cluster, or, if not, at least load all printers in the CUPS configuration at once? Then I have at least connection. It's a Windows 2003 R2 print cluster with RedHat 5.3 Advanced Server. Eventually the RedHat environment will be a cluster.
I have a pull-down corner on both of my gnome-panels. If I hover my mouse over it, i even get the resize cursor, but you can't actually resize the panel. I'm also seeing them on my screenlets. See the shot below:
The pull-down corners are in the red boxes. It's very clear in the top box on the gnome-panel; it's a little harder to see in the bottom one on the weather screenlet, but it's there. I have a bottom gnome-panel, too, and it's on that one, as well. I just recently noticed them, but I'm not sure where they came from. Does anyone know how to get rid of them? It's not really causing any problems. It just bothers me because I'm a bit of a perfectionist. I've tried searching the web and the forums for a solution but I'm having a hard time finding anything because I don't know the official name for that design element.
I have a workstation with Fedora 13. This workstation is used for very long remote processes. Recently it has been shutdown accidentally by a user and has caused the loss of some of these processes. As such, for precautionary reasons, I have decided to remove these options from all our workstations so that only the super user can initiate reboots or shutdowns.
In previous versions I was able to do this by using gdmsetup and unchecking the Show Action Menu option. This also added the SystemMenu=false flag under [greeter] in the /etc/gdm/custom.conf file. This was under RedHat EL5. However in Fedora 13 neither of these methods work. Gdmsetup no longer exists and adding that flag to the custom.conf file does not work. I rebooted after editting the file and the shutdown option still appears at login.
Often, and esp after adding something with apt-get or Synaptics I find Firefox will lose the ability to display either pull down menus or a menu from a mouse's right button.
I've been doing some initial searches for a bug report on Launchpad (but it is unclear if it is being used to actively track bugs vs some other place).
My 'hit it with a hammer' approach to a fix, at least to this point, is to reinstall from the local store or cache, the application;
Synaptic Status Filter Firefox (in the Quick Search field) Mark the existing Firefox for Reinstallation
No files get downloaded, but a restart of Firefox and 'tada'; menus return.
I've been running an overnight cron job for months on my servers which tells me what apt-get dist-upgrade wants to do.
This morning I was faced with it wanting to install 115 new packages including many (if not all - I can't face checking, e.g. firefox) which are entirely pointless on a server with no gui.
apt-get upgrade wants to do the sensible (in my mind) thing.
To save anyone asking, I've been using dist-upgrade because upgrade wouldn't report on pending kernel upgrades and, until I spotted that, I was due kernel upgrades for quite a while before I realised.
I presume this is caused by an over-enthusiastic depends or recommends somewhere but does anyone actually know?
Off to work now but I'll look further this evening so any pointers before then gratefully received.
All ok again now, the bug with language pack dependencies has been fixed - [URL]
LM-Sensors can't seem to pull any info on the temp sensors for my new MSI H61M-P21(B3) mobo. Is MSI just not Linux friendly? Or could it possibly be that there really are no temp sensors on this board? I must be missing something simple here
Recently our houses internet usage has skyrocketed and i'm trying to keep an eye on it using bandwidthd (installed on the server). It installed fine and counts traffic fine, the problem is we have a server that hosts our music/movies/etc and when people pull music off the server it skews their bandwidth usage. I'm looking for a way to exclude all traffic on the local network and only count internet traffic. This is the filtering part of the config file
I have a Lenovo Thinkpad T520 laptop with Nvidia NVS 4200m Graphics card. I installed Ubuntu 11.04.
Before I installed Ubuntu 11.04 I had went to my bios and disabled Nvidia Optiums and changed the graphics to Discrete Graphics. Then inserted my Ubuntu 11.04 CD and installed.
With this I had gotten unity to work. However when I pull the power cable from the laptop my screen freezes. Also if press "FN"+ Home or END to change the brightness of the screen my screen freezes and no longer able to move the mouse or press anything on keyboard.
Did anyone ever run into this problem and or fix this issue? I can get the graphics working properly with Ubuntu 11.04 with Unity with a Nvidia NVS 4200m graphics card.
I left a friend playing with my PC and after she was done there are several extra folders now included at the bottom of the pull down places menu. How do I remove these again?