How do I stop vs code terminal from opening while writing code - css

I installed live sass compiler in vs code. No matter what I write inside scss file, the terminal keeps opening (watch the attached video for better understanding of the problem) Please suggest a way of running the compiler in background "SILENTLY".. Ah looks like I cannot add video here so I'm adding an image

settings > extensions > live sass compiler > show output window on
Set setting to warning or error. You can also use none if you want.

In the case of Sass live compiler vscode extension
Open Preferences -> Settings
Search Sass live compiler extension from the left column under Extensions category.
Then search Settings: Show Output Window On setting and set it to none from the dropdown.
It will fix your problem.

if you meant to say that your terminal is frequently opening while your coding in your vs code because of live server
install nodejs and npm install -g live-server
then open the windows terminal and cd into the directory of your project files
and then type live-server and hit enter
ik this is not the best answer and there might be a setting on vscode that can help you but this should work too

That is not the terminal, that is the output window, it displays all the extensions and their live logs. See picture. You cannot disable the outputs of the extensions unless you uninstall that specific extension.
If you don't want constant parsing results select a different window like problems or the actual terminal

Actually this was output window which kept opening to log the errors. My problem was solved by unchecking an option which (I am not sure) was under SAAS settings (dont remember exactly and also cant find again but somehow it got solved >>> Sorry I have low memory :)

You can use this instruction:
"liveSassCompile.settings.showOutputWindowOn": "None"
Just copy it to settings.json file of your Extension Live SASS compiler

Related

By default, the server runs a writing document instead of the browser

I tried to change the run through the folder without success.
'jupyter notebook --generate-config'
I signed up and changed the target address and still when I register in CMD jupyter notebook I ran a writing document
Suggestions for a solution please?
The problem was solved, the default file for html beats was assigned to the writer.
All that had to be done was:
My Computer> Properties> Search Bar: Set Default Apps> Search Explorer> In html extension redefine Explorer.
Hope I helped those who also encountered this stupid problem, long before they got into the core of Jupiter's code

Iexpress.exe Unable to open report file even when ran as administrator

I'm creating a Iexpress package, and no matter what on the final step it pops up the message "Unable to open report file" and stops. I am searching Iexpress.exe and right clicking, then choosing "Run As Administrator" to start it. The problem persists.
I had this error running as my account (domain admin) not specifically telling it to run as administrator, removed spaces then re-ran working fine under Windows 10 1809 you shouldn't need to change to a different application to create .EXE files using IEXPRESS this is working fine under Window 10.
The way to fix this problem:
Go to the folder where your files you want to be in the package are
Go to the top bar (Where it says where you are on your drive), and type iexpress
Do the creation as normal, but the names you give the installer shouldn't have any spaces.
I did it this way without admin permissions.
I ended up moving on to Inno Setup Compiler. Turns out Iexpress isn't supported anymore. I recommend Inno to anyone making their own programs.
This happens when SourceFilesX or TargetName paths in the directive (i.e. the files you've added from the wizard) contain spaces. And while the issue with the TargetName can be fixed with adding double quotes the only workaround I've found about the source files is to put them in a folder path that not contains spaces.

Less not compiling in Webstorm 7

I have an issue with LESS File watcher in Webstorm, doesn't want to compile into CSS.
I tried every possible websearch and advice during the last two days with no results.
Nodejs is installed correctly I believe, Path is set in the Enviroment variables (without the "\" at the end)
less module is installed as global (I used "npm install -g less")
path to C:\Users\myName\AppData\Roaming\npm is set too
File Watcher was prompt automatically in Webstorm so I just clicked "add file watcher".
After this it looks like Webstorm is actually trying to create the css file (with every change I can see the message "Executing LESS task" at the bottom), but doesn't create it.
I tried reinstall nodejs twice (I am using Windows 7 x64, Webstorm 7.0.1), I tried changing less compiler to this one (http://plugins.jetbrains.com/plugin/?idea&pluginId=7177) and this one (https://github.com/acdvorak/intellij-lessc-plugin), I tried different settings for all of them (Track only root files, create output file from stdout). I tried every possible combination and restarted my computer I don't know how many times in between... The css file is never created and I get this issue:
non_object_property_loadError: Cannot read property 'splice' of undefined in PathToMyWebsite\style.less on line null, column 0:
I tried different projects, even the ones that worked before and I get the same error message so I am positive my .less file is ok.
What did I miss? Maybe it is just a stupid rookie mistake but I just don't know where am I going wrong. Any help is much appreciated.
Please keep in mind that I am not a professional programmer, I am comfortable only with html/css so if I need to change something in code please be as specific as possible, thank you.

Programmatically creating PDF from webpage

I have my resume online in an html page (www.mysite.com/resume.html). Every time I need a PDF version of it, I use Google Chrome's print dialog to save it as a PDF, which uses my print CSS stylesheet.
I want to be able to navigate to www.mysite.com/resume.pdf to always have an up to date PDF version without having to go through Google Chrome manually. Is there a way to programmatically and automatically create a resume.pdf from resume html? If I can write a script that runs once every 24 hours or something like that, that would be good.
PhantomJS is perfect for this. It invokes an instance of WebKit from the command line which can then be used to output to file such as PDF.
PhantomJS:
http://phantomjs.org/
Specific instructions for exporting screen output to a file:
http://phantomjs.org/screen-capture.html
e.g.:
phantomjs rasterize.js 'http://www.example.com/resume.html' resume.pdf
Chrome has started headless program.
With that, we can create a pdf. e.g. for windows navigate your commandline to
C:\Users\{{your_username}}\AppData\Local\Google\Chrome SxS\Application>
Then hit the command:
chrome --headless --print-to-pdf="d:\\{{path and file name}}.pdf" https://google.com
If you are looking to do this server-side via PHP might I recommend the Browsershot library which leverages the Puppeteer (NodeJS package) and Chrome / Chromium headless browser?
It works really well. Way easier to install and get going than wkhtmltopdf (which is another option that doesn't rely on a NodeJS package nor the Chrome/Chromium headless browser. Personally, I recommend Browsershot solution since wkhtmltopdf has some issues depending on the type of server (Linux distro and version) you're running. That is, the only reliable way to install wkhtmltopdf that I've found is to download and compile from source on the server that you're running and not through a package manager).
Also, if you happen to be needing a solution specifically while working on a Laravel project then there's a wrapper library for Browsershot available.
Check out this tutorial to get started.

XCode open file at error line for custom build script

I Apologize if this question has already been asked. i can't seem to find it anywhere if it has.
I have a custom build script use to syntax check some php files and upload them to a server, and this is executed as a part of the build process. since this script is used to parse inline php statements (embedded in objective c blocks using macros) it's fairly critical this script happens on each build. the actual execution is working fine, i'd just also like to be able to open a particular file when there is an error, and locate the cursor in the approximate location.
i have found that since xcode is configured on my system to open .php files by default (not sure if that's the norm or if i did it manually at some point), using
open filename.php
in a shell script opens the file.
i'd like to be able to specify the line number too.
eg something along the lines of
open filename.php --args --jump-to-line 1234
(--args is a switch for "open" meaning pass the arguments on to Xcode)
any ideas?
You can use the xed command. Only works for Xcode 3 though, not other editors. For Xcode 4, try this
See man xed

Resources