Set default theme in Cloud9 to be monokai - cloud9-ide

I installed cloud9 in a ubuntu machine and I am trying to change the default theme of it.
In this file, plugins-client/ext.themes/themes.js, I changed from
defaultTheme : "ace/theme/textmate", //Default Theme
to
defaultTheme : "ace/theme/monokai", //Default Theme
But it doesn't work.

The place you change is right, at least it worked for me.
"plugins-client/ext.themes/themes.js"
But I had to refresh browser session for it to work.
Close the browser and open again to trigger another session.
And, of course, restart the server node.

Related

How to reset theme to default in hyper terminal

I've installed a new theme in hyper and now it looks like this. What can I do to fix it? hyper_img
Thank you.
Per the Github, try deleting your config file at ~/Library/Application Support/Hyper/.hyper.js. This should reset your customizations (including the theme).
If you want to customize the theme yourself, check out the question How can I change the theme of my Hyper Terminal?
You could also just run hyper uninstall <theme-name> in the hyper app.

Refresh favicon in bookmarks (Firefox)

Few days ago, I've changed the favicon of my website: it works well when I open the website:
My website is also in my bookmarks, but it shows the old favicon:
I already had a look here, but answers did not solved my problem.
The solution is probably very simple, but I have not found anything so far.
Thanks!
There is a solution that works on every browser:
go to www.yourwebsiteurl.com/favicon.ico (works for localhost as well)
force refresh (Ctrl+F5 for most browsers, or manually)
restart the browser
In Firefox 56 on Windows I was able to refresh just a specific bookmark favicon as follows:
Install sqlite-tools from https://www.sqlite.org/download.html
Quit Firefox (close all open Firefox windows).
At the command line, change into your profile directory. Mine was at %AppData%\Mozilla\Firefox\Profiles\<profilename>.default.
Open the favicon.sqlite database using sqlite3:
sqlite3 favicons.sqlite
Find the favicon(s) you want to remove:
select * from moz_icons where icon_url like '%search_term_goes_here%';
Delete them:
delete from moz_icons where icon_url like '%search_term_goes_here%';
Exit.
.exit
Start Firefox and visit the relevant pages. The favicon will be refreshed when you do this.
It's a bit hacky, but try changing the bookmark properties from http to https or vice versa, then clicking the bookmark. If you changed from http to https, just leave it after that. If you changed from https to http, change it back.
Windows
Go to C:\Users\ *your profile* \AppData\Roaming\Mozilla\Firefox\Profiles\ *random name*.default-*random #*
Delete file: favicons.sqlite
All bookmark favicons will be set to default and will refresh when your revisit the sites.
Tested on version 66.0.1 (64-bit) & 72.0.2 (64-bit)
I had the same issue and in my case, it worked by adding a slash after the url so the browser loads the page from ground up again.
https://www.example.com//
After clicking on the bookmark, the icon was updated immediately.
The solution is from here (See method 2)
MAC OS
The favicon.ico format is pretty archaic now. Any solution to hack/trash/refesh a .ico file is rather pointless when the file may be a PNG. The head element of a page should tell you e.g. for a Drupal page <link rel="icon" href="/sites/default/files/YOUR-ICON.png" type="image/png" />
These Bookmark/History image files are so stubbornly cached, that on MacOS the best solution for me (because I'm comfortable with refreshing ALL icons again over time) is to quit Firefox, then trash the favicons.sqlite file found at
~USERHOMEFOLDER/Library/Application Support/Firefox/Profiles/XXXXXXXX.default/favicons.sqlite
The file will be regenerated when you reopen FF. Tabula rasa.
Press Ctrl + F5. This forces a page refresh while clearing the cache. Also, try deleting the bookmark and recreate it. The image is probably cached in different places for the bookmark and the tab. If that doesn't work, try the favicon addon here I also found this code for refreshing it. Paste it into your dev console:
var fS = Components.classes["#mozilla.org/browser/favicon-service;1"]
.getService(Components.interfaces.nsIFaviconService);
fS.expireAllFavicons();

How to configure phpStorm (with XAMPP and Xdebug) to display/render the web page in the browser when In RUN it

GOAL: I'm trying to view the .php page I've edited and "run" the php page.
FYI to avoid conflicts with Skype, I reset the port for XAMPP from 80 to 8080
UPDATED: SYMPTOMS
When I click on RUN I just get the html/php of the page displayed with "result 0"
If i manually browse to the page (//localhost:8080//phpStorm/php_test.php) it runs correctly on the server displaying correctly in the browser.
If I Debug that works correctly too (I had to install Xdebug and configure the php ) (lthough it doesn't automatically display and render the page in the browser.
If I Run the page then it does not load the browser.
I installed xampp (although had to set it to use port 8080 b/c of a port conflict) and it works fine.
BUT I can't figure out what configuration to use in phpStorm.
Here's a Screencast of the problem
WHAT I TRIED
I followed the instructions at the page below and it still doesn't work. I get the same results as above or (if I modify the configuration) phpStorm launches the browser and tries to display my .php page as if it were in the httdoc\ directory. (The Help file made it seem like phpStorm was supposed to copy the file to that directory, but it's not.
http://confluence.jetbrains.com/display/PhpStorm/Installing+and+Configuring+XAMPP+with+PhpStorm+IDE

Updating Firefox addon jsm module code without browser restart

I am developing a Firefox addon that is loaded from a directory instead of an xpi, Firefox extension proxy file. The extension is based on jsm modules.
Is there a way to update those modules to reflect the code changes. The only way to do it now is to close and restart the browser but that its not a sane way to develop anything.
Tried to:
Components.utils.unload('resource://myextension/mymodule.jsm');
Components.utils.import('resource://myextension/mymodule.jsm');
but changes are not made.
Got the answer from Victor Porof. In order to make this work you need to clear first the cache:
var obs = Cc["#mozilla.org/observer-service;1"].getService(Ci.nsIObserverService);
obs.notifyObservers(null, "startupcache-invalidate", null);
Hope this helps anyone

Facebook like button not showing after installing new theme?

I added a like button extension,it is perfectly fine as it was showing in the default theme but it is not showing anymore after installing a new theme.
can anyone tell me the reason please..?
I am using magento 1.6.
You should probably move the template files of your plugin to the directory of the new extension.
Move them from /app/design/frontend/default/default/template/ to /app/design/frontend/newtheme/default/template/ ...

Resources