Ubuntu: How to add Systray notification icon using an ruby app? - ruby

I would like to create a ruby app which will install a notification icon in ubuntu systray (just like Skype, DropBox etc).
What would be the exact instructions to accomplish this? Pointers (or links) would be good too, to help me get started. I have no clue when it comes to ubuntu app programming.

I think the answer depends on what desktop you are using. For both gnome and unity, libappindicator seems to work. Maybe this will help you using it in ruby. You might need to configure unity to allow your application to use the systray, though.

Related

Is there any way to be notified when an app is uninstalled from macOS using a Cocoa app?

I want my app to react when some other system app is uninstalled (not when mine is). Is there any intended Cocoa approach to this? If not, is there a reliable, if not intended, way to do this?
I do have a list of the most interesting ones to observe so a solution that is limited to a specific other app is fine, but a general solution would be great. Language is also not too much of an issue; Objective-C and Swift are the easiest, but if it must be scripted, that's fine, too.
I tried to find this out myself but my Google-fu failed me.
Mac applications aren't really "installed" like on some other systems. They're just bundles, which the user can run from anywhere.
If you have a specific .app filename to observe, you could set up an NSMetadataQuery to watch for changes to it, and receive a notification when the user moves it to the trash.
You could use -[NSWorkspace URLForApplicationWithBundleIdentifier:]. Or LSCopyApplicationURLsForBundleIdentifier in the case of multiple versions with the same bundle id. But it would be a pulling like implementation not a notification based one.
The bundle identifier could also be used with the NSMetadataQuery via kMDItemCFBundleIdentifier predicate.

Where can you find the control panel for xampp in mac?

This seems like a very basic question, but I can't seem to find a straightforward answer online after searching for very long.
I am using xampp, but can't seem to find the control panel.
The only application I have is manager-osx
Is there something missing in my download? Or is there a procedure to run the control panel?
Thank you very much!
Yeah, thanks #Jon's answer helped me out in the end, indirectly.
They should make a cross platform with Electron, it's 2018 already! :).
But you can pick the Manage Servers tab and have similar functionality on MAC:
I find it most annoying that the Xampp manager doesn't have XAMPP in the name, but is vaguely called 'manager-osx'. This way you can't quickly find it through OS X's Spotlight search. The names comes across as a bit of egocentric of the developers thinking they've made only manager application. But yeah; it's freeware...
I looked up the question on the apache forum for mac and it appears there the interface you're looking for is only available on Windows.
MANAGER-OSX LAUNCH THE CONTROL PANEL IN MAC OSX
XAMPP V7.2.0-0
ROUTE: aplications/XAMMP/xampfiles/manager-osx
Please refer to the screenshot below
There is no Control panel as much as Windows. you have to go to the route. usually its Finder > Applications > (find your Xampp Folder) > Expand the folder. that's the current way and its helped me with android studios

Create a windows application using osx

I have a project to do (an app relied to a DB, used to display and modify data, basically CRUD). The application will run on windows, but I don't have any windows computer (and don't want to buy one) so I will develop on OS X.
So, my question is which language should I use ? I know a bit (but really a bit) in Ruby and Java. I'm a good C# developer, but without windows and VS, it won't be really useful.
My priorities are : a simple GUI toolkit, and a simple packaging/distribution system, because my client isn't good in IT. If I could have fun during development it would be a plus (and I say this because I think Ruby is funnier) but it's not a priority.
So, any programming language/UI toolkit simple to deploy and to use on OS X who could run on Windows ?
Thank you !
IT kind of depends on your app really. you could make it a web app if you want nice GUI and with easy html css and there is alot precoded for you. hosting on some web service with basic mysql or any other database shouldnt be an issue costs wise and your client can just open the browser and it runs, if he has internet connection available where he needs the app to work. anyway it runs everywhere and since yo know java... thats what i would.
depends on your app really.
Most people that need to do this just get a VM running Windows, and run Visual Studio from there.

How to implement spotlight like search in Windows?

I need to enable the users to do a livesearch of the contents of a folder from my app. On OS X, I can do it by using the Spotlight APIs which have been exposed. Is there a way in which I can do it on Windows? Does Windows Search SDK help me accomplish this? As far as I know, Windows doesn't index the files until the user explicitly gives permission. So does that mean I've to index the files myself? Are there any open source libraries which do this? How can I go about implementing my own library? Too many questions, I know. I appreciate answers to any of them.
Search SDK is good, but can be switched off by user.
Also try Googel Desktop - do the same thing, but also expects user action on installing it.
Ok. I decided to go with CLucene because I found it more reliable, easier to use and to have a much more active community than Windows Search. And of course I can use it on both Windows and Mac.
Take a look at Xapain. CLucene development seems to have stagnated.

Windows installer to install browser-extensions

I'm trying to create an installer for windows (and potentially mac) that can install a browser extension for chrome, firefox, and for IE, and I'm totally stuck. Primarily I live in web-development land and I don't even really know where to start. This installer might eventually also include something like a bing toolbar for a kickback to us on a per-install basis. I'm hoping for something that doesn't require us to learn how to author a windows installer, but if that is unavoidable what are some good services / apps we could use?
Any help, would be GREATLY appreciated.
Firefox: https://developer.mozilla.org/en/Adding_Extensions_using_the_Windows_Registry
Chrome: http://code.google.com/chrome/extensions/external_extensions.html#registry
The WiX toolkit and community may be a good place to start wrt IE.
I presume that you are imagining something like LastPass's installer
For Windows there is probably not much you can do to avoid using Windows Installer, therefore I recommend that you take a look at Wix, which is an open source toolset from Microsoft for generating installers that will shield you from a lot of problems.
I don't have any first hand experience with installing browser plugins but I am guessing that installing your plugins isn't all that different from installing a regular program - you need to place a bunch of files and set some registry keys and so on. What registry keys and so on should be documented by the browser developer (and you probably already know this since you have done your plugins).
Unfortunately, I cannot help you when it comes to the Mac.

Resources