PDA

View Full Version : UI: Incorrect tooltips



mftech
01-28-2012, 12:39 AM
Using VB 2.0 latest update.
In Vortexbox Configuration Page
The tooltip (second icon from the top) mention Squeezebox Server, should be Logitech Media Server

Macross
01-31-2012, 02:51 PM
You could name it to peanut butter jelly time if you want. All you have to do is edit the configuration file. It will be overwritten when you update.

divreg
02-04-2012, 11:42 PM
Here's a quick command to do just that ;)


sed -i 's/Squeezebox Server/Logitech Media Server/g' /var/www/html/libs/vortexbox_smarty.php

Ron Olsen
02-05-2012, 12:20 AM
Here's a quick command to do just that ;)


sed -i 's/Squeezebox Server/Logitech Media Server/g' /var/www/html/libs/vortexbox_smarty.php

Sweet! I love what Unix has given us. sed is a great tool to have in your arsenal.

Here's a good tutorial: http://www.grymoire.com/Unix/Sed.html

I suggest reading this tutorial if you don't understand what the above command means, and you want to learn something useful about Linux.

Tunes
02-05-2012, 02:27 PM
Sweet! I love what Unix has given us. sed is a great tool to have in your arsenal.

Here's a good tutorial: http://www.grymoire.com/Unix/Sed.html

I suggest reading this tutorial if you don't understand what the above command means, and you want to learn something useful about Linux.

Ron,

Thanks for highlighting the availability of sed.

I have avoided making changes to my VBA, or as Andrew calls them, "hacks," because I could not figure a reliable way to remember and re-incorporate those hacks after an update.

I read the beginning of the tutorial you recommended. Do I get the potential of sed correctly; that if a change is applied to VB files via sed commands and those sed commands are saved and re-applied after updates the changes will be re-applied relatively automatically?

Ron Olsen
02-05-2012, 05:32 PM
Ron,

Thanks for highlighting the availability of sed.

I have avoided making changes to my VBA, or as Andrew calls them, "hacks," because I could not figure a reliable way to remember and re-incorporate those hacks after an update.

I read the beginning of the tutorial you recommended. Do I get the potential of sed correctly; that if a change is applied to VB files via sed commands and those sed commands are saved and re-applied after updates the changes will be re-applied relatively automatically?

Yes. sed is great for use in non-interactive scripts. It's an alternative to using a text editor like nano or vi to modify text files. Learn the basics of substitute, insert, and delete and you should be able to convert actions done with nano into sed scripts.

It's also good to save a copy of a file you modified. If the update did not change the official version of the file, you can just copy your changed file back in. The diff command can help. After an update, diff your changed file with the official file. If all you see are your changes, you can copy your changed file over the official file to restore your changes. If there are other changes, then using a sed script (or nano) to restore your changes is better.

The main package updates that will overwrite changes are vortexbox and vb-GUI:
Any changes to files in /opt/vortexbox will be overwritten on a vortexbox rpm update.
Any changes to files in /var/www/html will be overwritten on a vb-GUI rpm update.