How to hide the debug bar in Contao - contao

The debug bar is causing problems with Javascript (including Moo Tools which uses the $, while we use JQuery).
How can the debug bar be disabled, but the debug mode left on.

Use the following setting:
$GLOBALS['TL_CONFIG']['hideDebugBar'] = true;

You can turn it off in "System -> Settings -> Global configuration -> Checkbox Enable debug"

Related

Vaadin 11 - how to set productionMode in application.yml

I have been trying many solutions:
app.vaadin.productionMode: "true"
app.vaadin.productionMode: true
vaadin.servlet.productionMode: true
But nothing is working, I always get this msg in console:
===========================================================
Vaadin is running in DEBUG MODE.
Add productionMode=true to web.xml to disable debug features.
===========================================================
What is the good way of going production mode with spring boot (in a yml file)?
This is the correct property name, which enables production mode on Vaadin 10 (and 11):
vaadin.productionMode: true

Enabling Theme in Open edx

I have installed Open Edx and its working fine, but now I am trying to enable theme through Comprehensive theme option in lms.env.json.
As I turn ENABLE_COMPREHENSIVE_THEME: -> true the 500 INTERNAL SERVER ERROR is triggered.
Any idea what could be the missing node or problem.
For the LMS, you edit /edx/app/edxapp/lms.env.json
to set
"ENABLE_COMPREHENSIVE_THEMING": true ,
For Studio, you edit /edx/app/edxapp/cms.env.json
to set
"ENABLE_COMPREHENSIVE_THEMING": true ,
For the E-commerce service, you edit /edx/etc/ecommerce.yml
to set
ENABLE_COMPREHENSIVE_THEMING: true ,
Check documentation link :
http://edx.readthedocs.io/projects/edx-installing-configuring-and-running/en/latest/configuration/changing_appearance/theming/enable_themes.html

Is there a keyboard shortcut to restart the current console in cmder?

It seems like there is with ConEmu https://conemu.github.io/en/KeyboardShortcuts.html "Win+~" but a way to restart the current console in cmder would be great.
Cheers
Go to Settings - Main - Keys & Macro
Then select "Recreate active console" from the list and set hotkey for it.
This action will show a dialog with three buttons: Restart, Terminate, Cancel. Restart is a default button and you can choose it by just pressing ENTER key.
According to the current help of cmder:
Recreate(<Action>[,<Confirm>[,<AsAdmin>]]), alias "Create"
- Create new tab or restart existing one
Action: 0 - create tab, 1 - restart tab, 2 - create window
Confirm: 1 - show ‘Create new console’ dialog, 0 - don't show
AsAdmin: 1 - start elevated tab
Open Settings - Keys & Macros - Select Macros from dropdown - use one of the unused Macro places (input macro into GUI Macro)
Example:
Recreate(1, 0, 1)
Restart Tab - do not show confirmation window - start as admin

Xcode 8, iOS 10 - "Starting WebFilter logging for process"

WF: === Starting WebFilter logging for process Test
2016-09-30 08:56:45.458007 Test[616:142557] WF: _userSettingsForUser mobile: {
filterBlacklist = (
);
filterWhitelist = (
);
restrictWeb = 1;
useContentFilter = 0;
useContentFilterOverrides = 0;
whitelistEnabled = 0;
}
2016-09-30 08:56:45.458437 Test[616:142557] WF: _WebFilterIsActive returning: NO
I am receiving this warning in my debugger in xcode 8, iOS-10, when I using UIWebView Delegate methods to load something. I didn't find any documentation in Apple website about this web filter Active/De-active mode. Though it's not causing any problem in my existing webView functionality even I am running some javascript function in my webView did finished method. But still curious to know more about this new feature.
Any suggestion about this feature will be appreciate.
According to Apple, the "Content Security Policy(CSP)" which support in Safari 10 has been enhanced by including version 2.0 of the standard. It seems that this feature includes in iOS 10 as well.
For more information please look here about the CSP levels: https://content-security-policy.com
OR
Check the site with Chrome Developer Tools and you will find most likely a warning like Mixed Content: The page at '...' as loaded over HTTPS, but requested an insecure resource '...'. This content should also be served over HTTPS.
And If you want to remove the message on the XCode's console then, please find the below steps.
Select Product => Scheme => Edit Scheme or use shortcut : CMD + <
Select the Run option from left side.
On Environment Variables section, add the variable OS_ACTIVITY_MODE = disable
For more information please find the below GIF representation.
Note : While debug the code in device, please unchecked this option as the NSLog statement do not show in the console.
May be it is printing system log. Check that once and try this
1- From Xcode menu open: Product > Scheme > Edit Scheme
2- On your Environment Variables set OS_ACTIVITY_MODE = disable
its very simple to solve you have to follow the below process.
1)goto MenuBar and find product menu->Scheme->Edit Scheme->its comes up with pops ->where you select "Run" and then select "Arguments"->then Environment Variables-> after this click on "+" button and there fore put this "OS_ACTIVITY_MODE = disable"
after that this error will gone.

Xcode 7 UI Testing target locale and region settings

I'm trying to set the language and the region of my UI Testing target, and unfortunately it doesn't seem to work.
I've tried both ways, first:
Product | Scheme | Edit Scheme
Run | Options
Application Language: French
Application Region: France
Test | Arguments
Use the Run action's arguments and environment variables: Checked
And I try this other way:
Product | Scheme | Edit Scheme
Test | Arguments
Use the Run action's arguments and environment variables: Unchecked
Arguments passed at launch:
-AppleLanguages (French)
-AppleLocale fr_FR
Each way resulting in the UI Testing still happening in English. Moreover, when I hit the record button, it runs in French...
So if I do something wrong, I would be happy to know!
Thanks in advance!
I have figured it out. I set the locale settings in the launchArguments for testing temporary in Xcode.
override func setUp() {
super.setUp()
// Put setup code here. This method is called before the invocation of each test method in the class.
// In UI tests it is usually best to stop immediately when a failure occurs.
continueAfterFailure = false
app = XCUIApplication()
app.launchArguments = [
"-inUITest",
"-AppleLanguages",
"(de)",
"-AppleLocale",
"de_DE"
]
For CI I use fastlane from Felix Krause and get localized screenshots with snapshot.
Try changing the specs on the simulator. It worked for me every time.
On Simulator:
Settings > General > Language & Region > iPhone Language --> change here

Resources