New wordpress engine has a feature called toolbar and its shown in the top of our blog page. What ridiculous is there’s no built-in function to disable this toolbar for being shown to all our users, which mean the users have to manually disable it in their profile page. Fortunately we can use this snippet to disable this toolbar.
Add this snippet to your theme functions.php file
add_filter( 'show_admin_bar' , 'my_function_admin_bar');
web.py is a web framework for Python that is as simple as it is powerful. web.py is in the public domain; you can use it for whatever purpose with absolutely no restrictions.
I was building a simple application with this library and need this run as a background service.
python /opt/server.py 8080 2>/dev/null &
I was having problem on executing an exe file from vbs, the problem was the exe path has space between it. For example “C:\Program Files\test\my app.exe”.
The vbs will returns an error which says file not found for that path. This is happened because after the space, the vbs will treat the entire command after the space as arguments.
To fix it we can use multiple quote like this.
wscript.run """C:\Program Files\test\my app.exe"""
Use 3 quote.
What if we want to use arguments in our command?
wscript.run """C:\Program Files\test\my app.exe"" /command args"
Sometime we will need to execute an exe file from our vbs, so here’s the snippet.
Set wsShell = WScript.CreateObject("WScript.shell")