Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
We don’t allow questions seeking recommendations for books, tools, software libraries, and more. You can edit the question so it can be answered with facts and citations.
Closed 6 months ago.
The community reviewed whether to reopen this question 6 months ago and left it closed:
Original close reason(s) were not resolved
Improve this question
Is there a ready-to-use program, that I can run from my web application, to convert an HTML file to an image? Preferably using Webkit, or another mature browser engine?
I tried wkhtmltoimage, but it doesn't render backgrounds correctly (while wkhtmltopd works fine). Is there one that works?
Method A
Using phantomjs
$ phantom rasterize.js http://www.google.com google.png
Download and unzip the binary archive. rasterize.js is in the example directory.
Method B
Using chrome (Tested on MacOSX, should work on other platforms)
$ alias chrome='/Applications/Google\ Chrome.app/Contents/MacOS/Google\ Chrome'
$ chrome --headless --disable-gpu --screenshot=google.png http://www.google.com
Method C
Using webkit2png (macOS only)
simply use firefox
firefox --headless --screenshot google.com
or visit here
Related
Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
We don’t allow questions seeking recommendations for books, tools, software libraries, and more. You can edit the question so it can be answered with facts and citations.
Closed 6 years ago.
Improve this question
If I define a JavaScript function like this on a React component, Sublime Text 3 will next recognize it if I search for functions with the appropriate command (cmd R on a Mac)
foo = () =>{
}
I am defining it that way because it preserves type safety in TypeScript if I do, for example
foo = (event: Event) => {
}
Is there a way to support this style syntax for Sublime Text 3 (for example, by altering a configuration file or something else)? I tried a Babel javascript plugin and it didn't help, open to any type of solution.
The latest public build, #3114, supports this functionality, so you can simply upgrade your old version.
Alternatively, you update the JavaScript package. Clone the entire sublimehq/Packages repository, then either copy or link the JavaScript directory to Sublime'sPackages` directory:
Windows Regular Install: %APPDATA%\Sublime Text 3\Packages
Windows Portable Install: InstallationFolder\Sublime Text 3\Data\Packages
OS X: ~/Library/Application Support/Sublime Text 3/Packages
Linux: ~/.config/sublime-text-3/Packages
Many changes have been made to the JavaScript language definition over the past few months, including some after Build 3114 was released, so it will be well worth the time to upgrade.
Closed. This question needs details or clarity. It is not currently accepting answers.
Want to improve this question? Add details and clarify the problem by editing this post.
Closed 7 years ago.
Improve this question
How we can use our browser as a notepad, and avoid using other tools?
It will give the flexibility to immediately take note of urls or other stuff at the same place!
Instead of using browser extensions like evernote or other tools like notepad/gedit etc, is there some way to write down notes or copy/paste contents in browser window?
This is quite interesting piece of info!
Just type the following in your browser address bar:
data:text/html, <html contenteditable>
And here you go, you are now ready to write in the window below!
Also you can mark it favourite and save as 'notepad utility' in your bookmarks!
For more info check here!
Closed. This question is off-topic. It is not currently accepting answers.
Want to improve this question? Update the question so it's on-topic for Stack Overflow.
Closed 10 years ago.
Improve this question
I just found a plugin named code completion:
https://github.com/nagaozen/gedit-plugin-codecompletion
So after I got that and I started to installed it to gedit.
After trying to add those 1 file and 1 folder to:
~/.local/share/gedit/plugins
~/.gnome2/gedit/plugins
/usr/lib/gedit/plugins
I still couldn't see any new plugin showed up in the gedit plugins list!!!
So frustrated about it.
I know this is not a programming question, but can anyone please help me with this?
Many many thanks.
This plugin was written for gedit 2, while you are probably using gedit 3 since for example Ubuntu switched to v3 with Ubuntu 11.10. This is easy to check in gedit->help->about.
Another probable problem is lack of jsonprovider. This is easily checked by running a python file containing:
import jsonprovider
print "jsonprovider was installed"
Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
We don’t allow questions seeking recommendations for books, tools, software libraries, and more. You can edit the question so it can be answered with facts and citations.
Closed 4 years ago.
Improve this question
IDEs like Eclipse, CodeBlocks and editors like Notepad++ highlights all instances of a double clicked word. I miss this feature in gedit. Of course, I can do Ctrl+k to highlight all instanced, but it is weird. Is there anyway this feature can be added to gedit by way of plugins? Are there any other editors which can do this in Linux,
I think this plugin does want you want:
git clone http://github.com/mmuell23/mmuell23.git
cp -r mmuell23/gedittools/* ~/.gnome2/gedit/plugins
Activate plug-in in gedit preferences and configure it as you wish.
Credits to https://github.com/mmuell23/mmuell23
I just blogged about writing plugins for Gedit 3 (which are not compatible with Gedit 2). If you know Python and have Gedit 3 yet, this plugin would not be that difficult. You'd want to implement the Gedit.ViewActivatable interface and utilize the search function provided with the Gedit.Document API.
Writing Plugins for Gedit 3 with Python
Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
We don’t allow questions seeking recommendations for books, tools, software libraries, and more. You can edit the question so it can be answered with facts and citations.
Closed 2 years ago.
Improve this question
Is there a command line tool that can add an icon to an existing executable file? It should be able to set the icon as the file's "main" icon that is shown in Explorer.
I don't have Visual Studio and cannot recompile the exe with custom resources containing the icon.
UPDATE: The best tool I have found since posting this question is by far the RCEDIT.exe utility that is included with WinRun4J.
Sorry, I haven't personally tried this one just yet, but because I am wanting this while bundling up an atom-shell app, I found it very interesting when https://github.com/atom/rcedit showed up in my first search for the RCEDIT utility mentioned in other answers.
One of its commands is:
$ rcedit "path-to-exe-or-dll" --set-icon "path-to-ico"
…so assuming this works, it is likely the solution I will use — my Windows build machine is already set up to fetch source using git and compile via gyp.
UPDATE: there's a pre-built executable available via https://github.com/atom/rcedit/releases/ and it works well for me on Win7 (from Git Bash/Msys shell although I'd be surprised if that makes a difference).
Resource Hacker is a free tool that allows you to modify resources in executables, and it can be scripted from the command line.
In my case, trying to add an icon using RCEdit.exe with either /A or /I switches resulted in a trimmed executable. I have a NSIS (NullSoft Installer System) - created setup that was originally 13 MiB, but after running RCEdit to add an icon to it, all of what remains of it is only a few kilobytes (close to the size of the icon), but yes the executable shows the icon.
Adding the icon using Resource Hacker worked for me. It doesn't even need an option to set the icon as default, being the only icon group resource. I used 103 as the name of the resource and 1033 as the language.
Have you tried ResourceTuner Console?