importing image on canvas html5

var img = new Image(); img.src = '/images/backdrop.jpg'; ctx.drawImage(img,0,0); I wanted to load an image from local disk on to canvas using dialog box mechanism rather than the path directly...

How to check if Location Services are enabled?

I'm developing an app on Android OS. I don't know how to check if Location Services are enabled or not. I need a method that returns "true" if they are enabled and "false" if not (so in the last...

JDialog fixed height

Possible Duplicate: JDialog allow user to only change width of the dialog I have a JDialog that I would like the width to be resizable, but the height not. This is my current...

Open/Save File Dialog That Works with Windows 64-bit

My open/save dialog box that used to work on windows XP no longer works on my Windows 7 64-bit. I have heard that 'MSComDlg.CommonDialog' is not compatible with 64-bit. Here is my old code: ' Sub...

Android close dialog after 5 seconds?

I'm working on an accesibility app. When the user wants to leave the app I show a dialog where he has to confirm he wants to leave, if he doesn't confirm after 5 seconds the dialog should close...

Datepicker: How to popup datepicker when click on edittext

I want to show datepicker popup window. I have found some examples but i am not getting it properly. I have one edittext and i want that when i click on edittext the datepicker dialog should popup...

Runtime Error 49, Bad DLL calling convention

Q. Excel keeps throwing the following error, whenever my addin is loaded (Runtime Error 49, Bad DLL calling convention) The dialog starts to pop up everytime with no indication of where the error...

Trying to create a registration form and insert the values into a database

I tried to create Registration form for survey application with 3 fields. there are Gender, Agegroup, mobile. I used Radiogroup activity for Gender selection. I used spinner activity for Age-group...

Leaflet map not showing properly in bootstrap 3.0 modal

i have a big problem. i want to open a leaflet map in a modal. but the map is not showing properly. the tiles are not loading. here is the script: http://bootply.com/98730 <a href="#myModal"...

Detect back button but don't dismiss dialogfragment

I have a dialogfragment for a floating dialog which includes a special keyboard that pops up when a user presses inside an EditText field (the normal IME is stopped from being displayed). I would...

Set file path for input type="file"

Can we set the file path in javascript for <input name="pictureUL" type="file" value="upload" onChange="this.form.submit()"/> without opening the select file dialog box? I have 2 buttons SCAN...

ckeditor not loading on element generated via ajax call?

I am using custom form and generating form elements with ajax call but textarea is not loaded with ckeditor. Here is my code: ajax code: jQuery.ajax({ type: "POST", url:...

How can I use an access token for accesing Visual Studio Team Services (was Visual Studio Online) from inside Visual Studio Code?

I'm trying to use the Git client inside Visual Studio Code. I have my Git repository on Team Services. In the Team Services site, I've created a "personal access token". When I try to pull from...

How to Enable WiX Projects in Visual Studio 2017

In Visual Studio 2017's New Project dialog, there is no entry for Windows Installer XML (WiX). Is it possible to enable WiX projects in Visual Studio 2017?

Android Studio wireless ADB error (10061)

It seems that wireless ADB has more and more issues each time I update Android Studio. Using 2.1.1, I'm now unable to connect to my tablet using the command: adb connect <ip addr> It results in...

Email address is not verified (AWS SES)

I want to use Amazon's Simple Email Service to send emails. I verified my domain as well as the email address I want to send from. For both it says verified. Now when I use the Send Test Email...

MS Access 2013 VBA auto cancels OutputTo (Error 2501)

I am trying to configure a function that will automatically generate a folder of pdfs for a user based on the user inputting the report type they want and a file path they want to save. Some...

How to download the screenshot automatically by using html2Canvas

I have a canvas which shows a graph and I'm trying to take a screenshot of the canvas using html2canvas() with the code below : <div class="chartContainer" id="chart1"></div> <div...

Change the text color of one of the buttons in DatePickerDialog?

I have a date picker dialog whose theme is this <style name="DatePickerTheme" parent="Theme.AppCompat.Light.Dialog"> <item name="colorAccent">@color/that_blue_color</item> </style> I made...

How to change the style of a ListPreference popup dialog?

I am trying to change the style of the popup dialog of a ListPreference like I saw in this answer. For example I want a different background colour for the dialog. So far I tried to apply my...

GoogleAuthIOException when trying to get files list in appDataFolder

I'm trying to save app database to the Apps folder on Google Drive. I'm using Drive v3 API. A few months ago all working fine and data successfully saving to user appData folder. But for now, I'm...

Why READ_PHONE_STATE permission asked "make and manage phone call"?

For getting the IMEI i using from this code: TelephonyManager tm = (TelephonyManager) context.getSystemService(Context.TELEPHONY_SERVICE); if (ActivityCompat.checkSelfPermission(this,...

How to handle "outside" click on Dialog (Modal) with material-ui

My box closes when clicking outside of the box making me lose all the input. I want my box to close only when clicking on the cancel button. I am not sure what is making it close when clicking...

Save outlook email to my internal drive as .msg file

I'm trying to save Outlook emails into my H:Drive. I want it as a run a script rule but I can't get it to work. There are no attachments involved and all I need it is to save it as a .msg file....

VScode remote connection error: The process tried to write to a nonexistent pipe

I use vscode with remote-ssh to connect my server, after configuring, I want to connect my host, but it failed, the dialog box display:"could not establish connection to XX, The process tried to...

AlertDialog Context Dependency Injection Issue

My application is written in Kotlin and I'm using Koin for injection. I have a class which is used for displaying dialogs and that requires context to be passed in. The file looks like this: class...

dotnet dev-certs certificate not trusted

I am working through Adam Freeman's book "Pro ASP.Net Core 3". I have gotten to the introduction to https. He instructs us to use Powershell and run the commands "dotnet dev-certs https --clean"...

How to request and check permissions in Flutter

I am using a various plugin to get user data, contact, photos and camera when the user clicks Don't allow, The application goes silent. I want to show the user the ask permission dialog when the...

Android - onRequestPermissionsResult() is deprecated. Are there any alternatives?

I tried to implement request permissions for writing and reading from storage. Everything worked good but today Android showed me that the method onRequestPermissionsResult(...) is deprecated....

Event-Driven Serial Port Read MFC

I am trying to implement an event-driven serial receive in my MFC dialog application. I am using this class for access to the Win32 APIs dealing with serial ports. I want to be notified whenever...