VSCode Integrated Terminal Doesn’t Load .bashrc or .bash_profile

Simply add shell arguments to the VsCode settings.json file. Paths to the settings.json file are as follows: Windows: C:\Users\<username>\AppData\Roaming\Code\User\settings.json` Linux: $HOME/.config/Code/User/settings.json Mac: $HOME/Library/Application\ Support/Code/User/settings.json Add one of the following: “terminal.integrated.shellArgs.windows”: [“-l”], “terminal.integrated.shellArgs.linux”: [“-l”], “terminal.integrated.shellArgs.osx”: [“-l”], This will launch your shell of choice with the login argument. This will thus execute any user profile that is … Read more

Error: Module not specified (IntelliJ IDEA)

This is because the className value which you are passing as argument for forName(String className) method is not found or doesn’t exists, or you a re passing the wrong value as the class name. Here is also a link which could help you. 1. https://docs.oracle.com/javase/7/docs/api/java/lang/ClassNotFoundException.html 2. https://docs.oracle.com/javase/7/docs/api/java/lang/Class.html#forName(java.lang.String) Update Module not specified According to the snapshot … Read more

How to open Visual Studio Code’s ‘settings.json’ file?

To open the User settings: Open the command palette (either with F1 or Ctrl+Shift+P) Type “open settings” You are presented with a few options¹, choose Open User Settings (JSON) This image was taken in the VS Code online editor Which, from the manual and depending on platform, is one of: Windows %APPDATA%\Code\User\settings.json² macOS $HOME/Library/Application\ Support/Code/User/settings.json … Read more

MySQL too long varchar truncation/error setting

You can disable STRICT_TRANS_TABLES and STRICT_ALL_TABLES. This allows the automatic truncation of the inserted string. Quote from MySQL Documentation. Strict mode controls how MySQL handles invalid or missing values in data-change statements such as INSERT or UPDATE. A value can be invalid for several reasons. For example, it might have the wrong data type for … Read more

Detecting user settings for Background App Refresh in iOS 7

this is what you are looking for. if ([[UIApplication sharedApplication] backgroundRefreshStatus] == UIBackgroundRefreshStatusAvailable) { NSLog(@”Background updates are available for the app.”); }else if([[UIApplication sharedApplication] backgroundRefreshStatus] == UIBackgroundRefreshStatusDenied) { NSLog(@”The user explicitly disabled background behavior for this app or for the whole system.”); }else if([[UIApplication sharedApplication] backgroundRefreshStatus] == UIBackgroundRefreshStatusRestricted) { NSLog(@”Background updates are unavailable and the … Read more

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)