How do I make a Mac Terminal pop-up/alert? Applescript?

Use osascript. For example: osascript -e ‘tell app “Finder” to display dialog “Hello World”‘ Replacing “Finder” with whatever app you desire. Note if that app is backgrounded, the dialog will appear in the background too. To always show in the foreground, use “System Events” as the app: osascript -e ‘tell app “System Events” to display … Read more

Bootstrap Alert Auto Close

For a smooth slide-up:- $(“#success-alert”).fadeTo(2000, 500).slideUp(500, function(){ $(“#success-alert”).slideUp(500); }); $(document).ready(function() { $(“#success-alert”).hide(); $(“#myWish”).click(function showAlert() { $(“#success-alert”).fadeTo(2000, 500).slideUp(500, function() { $(“#success-alert”).slideUp(500); }); }); }); <link rel=”stylesheet” href=”https://stackpath.bootstrapcdn.com/bootstrap/4.3.1/css/bootstrap.min.css” integrity=”sha384-ggOyR0iXCbMQv3Xipma34MD+dH/1fQ784/j6cY/iJTQUOhcWr7x9JvoRxT2MZw1T” crossorigin=”anonymous”> <div class=”product-options”> <a id=”myWish” href=”javascript:;” class=”btn btn-mini”>Add to Wishlist </a> <a href=”” class=”btn btn-mini”> Purchase </a> </div> <div class=”alert alert-success” id=”success-alert”> <button type=”button” class=”close” data-dismiss=”alert”>x</button> <strong>Success! </strong> … Read more

How to change theme for AlertDialog

In Dialog.java (Android src) a ContextThemeWrapper is used. So you could copy the idea and do something like: AlertDialog.Builder builder = new AlertDialog.Builder(new ContextThemeWrapper(this, R.style.AlertDialogCustom)); And then style it like you want: <?xml version=”1.0″ encoding=”utf-8″?> <resources> <style name=”AlertDialogCustom” parent=”@android:style/Theme.Dialog”> <item name=”android:textColor”>#00FF00</item> <item name=”android:typeface”>monospace</item> <item name=”android:textSize”>10sp</item> </style> </resources>

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