How can I convert a shell script into a Perl script?
I have a 10k line shell script and want to convert it into Perl. Is there any tool is doing that, or is there any way to do that?
In shell scripts, what is the difference between $@ and $* ?
Which one is the preferred way to get the script arguments ?
Are there differences between the different shell interpreters about this ?
I need to be able to execute a shell command through LaTeX [*] and have the resulting output available for use later on in the form of a LaTeX 'variable' (e.g., via a subsequent \newcommand command). If necessary a temporary file could be used to hold the output, although I would like to avoid this. I have been able to use
\immediate\write18
to invoke a bash command before, but this was only used to write to a temporary file.
[*] I realise that the -shell-escape flag must be set for this to be allowed
Hi all,
I'd like to determine the environment's current codepage at runtime from a Unix shell script. What's the most reliable way of doing this?
I'm looking into parsing environment variable $LC_ALL, but it isn't always set to a useful value, and its format seems to vary (can be <locale, or <locale.<code page, or <locale.<code page@<modifier etc...).
Is there a better way? I'm essentially after a shell equivalent of what I'd get if I called nl_langinfo(CODESET) from C.
I've downloaded a set of Adobe CS4 replacement icons, and I'd like to change the Adobe applications/document icons I have to use this new set. Is there an easy and efficient way I can do this?
Moricons.dll has plenty of icons for crufty old dos apps like Foxpro. Are there any DLL icon collections with a nicer set of images that are also free to use?
Edit
I ended up just making my own dll with the icons I needed.
I would like some of my preferences to have icons, like the Settings app.
I guess one way of doing this would be to copy all the relevant code and resources from the Settings app, but it seems like overkill for a couple of icons.
Also I don't like the idea of having to duplicate the code and resources in each project that requires settings icons.
Has anyone solved this already with a simpler or resource-free approach?
Today I installed Visual Studio 2010 Ultimate - RTM.
One item that I noticed that is different is that files listed in the Solution Explorer window not longer display the source control icons beside each file (the lock, unlocked, plus sign for new files, etc.).
Is there a setting that I am overlooking to display these icons?
I have setup Visual Studio 2010 to use my source control client correctly (SourceGear Vault), and it does appear to be working OK -- I'm just used to seeing the little icons by each file.
Anyone out there experiencing this problem? Is there something I can do to get the icons back?
So I have a simple Apache with MySql I am developing a PHP app. I have Users Table in my DB. I vant to let them store Icons.
My question Is what's the best way of attaching such data as icons (100-250kb's) to DB - Is it beter to store them Inside DB or store them as File and some how attaching links to icons into DB. What's the best way? Are there any classes that automate this process (of attaching such data to DB)?
After some installing, tweaking, ... the IBus icon is missing at startup, although it's working fine:
$ ps -ef | grep [i]bus
quanta 1918 1890 0 09:54 ? 00:00:01 /usr/bin/ibus-daemon --xim
quanta 1946 1918 0 09:54 ? 00:00:00 /usr/lib/i386-linux-gnu/ibus/ibus-gconf
quanta 1948 1918 0 09:54 ? 00:00:00 /usr/bin/python /usr/share/ibus/ui/gtk/main.py
quanta 1951 1 0 09:54 ? 00:00:00 /usr/lib/i386-linux-gnu/ibus/ibus-x11 --kill-daemon
quanta 1987 1918 0 09:54 ? 00:00:00 /usr/lib/ibus-unikey/ibus-engine-unikey --ibus
I can make it appear by restarting the ibus-daemon:
$ ibus-daemon -x -r -d
I also have tried to add the IBus to the System tray whitelist but nothing changes.
How can I troubleshoot this issue?
I am using the Mate Desktop Environment v-1.4.1 and having a Mate-Menu applet in the bottom panel: Shutdown [ICON] Applications Places System. See screenshot below.
Is there any way to change or remove the [ICON] on the left of the Applications menu?
Where does Mate take this from? I noticed the inon changes when using different icon-themes but I don't understand how to customize only this single icon.
I did set up last year Faience-Ocre as my Icon Theme and Adwaita Cupertino L Unity as my Windows Theme (the GTK+ thme was unchanged to Adwaita (default)). It has worked perfectly well until 3 days ago when starting my PC I saw the Ubuntu default showing up for Windows & Icon Theme. I noticed that at start-up the disk access LED is not lit up continuously as before but at moment stops reading for a few seconds (up to 15 s) then complete the disk reading process. When all was working well this LED would lit up continuously.
Another thing is that GNOME applications are as well not working well as previously Nautilus and Gedit now don't use the global menu in the system bar but a local window menu.
Nautilus - Nemo before the incident
Nautilus - Nemo now ...
I did open dconf to check the desktop settings in org-gnome-desktop-wm-preferences and everything is looking good. When I change the settings in the app Advanced Settings in the Theme folder I see the respective value changing in dconf. However, there is no change on my desktop.
It looks like it's crippled and GNOME related.
[Update 1]: I have the same defect as referenced @
ubuntu theme suddenly changed to default and it's not coming back!
instead of my GTK theme I get a classic, Windows-95-like grayish theme ...
However one of the solution mentionned:
http://www.webupd8.org/2011/06/fix-ubuntu-linux-mint-theme-changing-to.html
is not working at all, even for 20 s up to 60 s delay.
When I plug my Garmin Nuvi 265 GPS device into my computer via a USB cable, it mounts as a drive with a blue triangle icon instead of the default gray hard drive icon. HOW does Nautilus know how to do this? After much laborious searching, I found that the icon info is stored in ~/.gconf/apps/nautilus/desktop-metadata/GARMIN@46@volume/gconf.xml -- but only when a custom icon is selected.
So
Where is this blue icon file?
Why does Nautilus use it instead of the plain drive icon?
Is there a way to have give each of my drives a custom icon -- so that when I stick in my various flash drives, they have a distinctive icon (i.e. a 'favicon.ico' file on root or such?)
Using Gnome 2.30.2 on Ubuntu 10.04.
I want to change file icons of some specific file types like- .html, .css etc.
I have tried using "File Type Editor (assogiate)" which is not working. I have also tried using "Gnome Tweak Tool" using icon themes. But that also does not worked properly (Though I can change folder icons , dash menu icons but not file icons).
Please suggest me a way so that I can change file icons properly. I have read some of the articles saying about some mime type changes. I could not get proper guide from any of those articles. If there is such a way then please write in detail.
Many Many Thanks in Advance :)
I wrote an application indicator that displays information about my monthly network consumption.
I do not want it to have an icon next to the text I display.
How do I write an application indicator without an icon?
The code I use to initialize my indicator is:
self.indicator = appindicator.Indicator.new("VooMeter", "network", appindicator.IndicatorCategory.SYSTEM_SERVICES)
Reading the documentation I can not find the value to put instead of "network"
I've just installed Ubuntu 12.04.1, and it seems that i have some issues with the launcher: if i hover the mouse on an icon, it shows an horizontal line instead of the icon's name. if i hover it again, then it will show me the correctly displayed name, in label and all. The thing is pretty annoying. First hover no label (just that line), second hover, label.
Video drivers are installed ! Any thoughts?
Thank you
I have a Sony Vaio VGN-210CE laptop, and its battery does not report the drain rate properly. In 11.10 and earlier, the battery icon would update with the percentage, not the estimated time. In 12.04 and 12.10, it estimates by time, which is always some very low value because the estimated drain rate is 700W. I currently have 89% in my battery but the icon is red and empty. If there is an application I should install, or a setting I should change, please let me know.
Thanks!
I noticed a screenshot that included this icon in the sidebar, does anyone know what it's from? It looks cool!
Looks vaguely reminiscient of Chrome but different enough that it could be a coincidence. I've tried putting it into a google image search but without any luck.
Original source was this Ubuntu help page on unity launchers. which includes the original, larger screenshot.
For context, it's not important, I'm just curious.
I know how to change an icon this way.
What I'm looking for is an equivalent to changing the icon for an application in the launcher, i. e. the Home folder, via
gedit ~/.local/share/applications/nautilus-home.desktop
That way you can set an icon type, which is helpful when you later want to change the icon set resp. theme or when you want the best resolution for each size of the icon.
So, I know how I can do this for applications in the launcher - but how can I realize this for icon folders in Nautilus? (In which file these settings are stored and editable whith i. e. Gedit?)
After installing Lubuntu 12.10, I decided to install IDLE 3 (from the official Ubuntu repository), but something unexpected happened, its icon gets bigger then the LxPanel and all the another aplications icos, the same happens at the menu when I select it from Menu Programming IDLE 3
Check the image:
Note: Wasn't possible to take a printscreen from IDLE at the Menu because the printscreen action ignore the menu when it is opened.
Knowing that I'd like to know how to change the icon of an application? Or better, if possible, how to resize this specific icon to normal size?
I'm not a big fan of the Software Center icon (apparently I'm not the only one: http://www.omgubuntu.co.uk/2011/09/software-centre-icon-proposal).
Is there a way change it?
The answers to this related question doesn't make it clear whether there is:
How to change the Dash icon in the Unity Launcher?
As far as I can see the Software Center icon isn't in nautilus /usr/share/unity/5/ so where could it be?
I'm using empathy for the first few weeks now on Ubuntu 12.10.
I can't find any symbols indicating a contact has the ability to do a video chat or voice chat...
Though I can see a "Mobile" symbol which say "Online from a mobile or Phone device".
PS: I can see a video call, Audio call option enables when I right click on a particular contact.
I don't see any option to configure anything like that.
OS : Ubuntu 12.10
Gnome 3.6.1 (PPA)
Empathy : 3.6.0.3
I have installed spotify on Ubuntu 13.04 and have locked the icon on the launcher. But when I exit the program fully or even restart and use that icon to open spotify, a new icon is created or a different icon is generated with a ? on it.
It is a clean install of Ubuntu 13.04 so was wondering if this is a known bug or if there was a way of making sure it just doesn't created a duplicate icon?
N.B it has not happened as of yet to any other program I have installed (Chrome & Steam)