Paste an image on clipboard to Emacs Org mode file without saving it

The exact functionality you want isn’t currently implemented, but I would be skeptical of saving lots of images into a research log if your opinion is that you “definitely don’t want to save them.” Anyways, the functionality you desire has been expressed in the org-mode mailing list a couple of times in recent years – … Read more

view.getDrawingCache() is deprecated in Android API 28

Two ways to get bitmap of view Using Canvas Using Pixel Api Canvas Java Bitmap getBitmapFromView(View view) { Bitmap bitmap = Bitmap.createBitmap( view.getWidth(), view.getHeight(), Bitmap.Config.ARGB_8888 ); Canvas canvas = new Canvas(bitmap); view.draw(canvas); return bitmap; } Bitmap getBitmapFromView(View view,int defaultColor) { Bitmap bitmap = Bitmap.createBitmap( view.getWidth(), view.getHeight(), Bitmap.Config.ARGB_8888 ); Canvas canvas = new Canvas(bitmap); canvas.drawColor(defaultColor); view.draw(canvas); … Read more

How to take a screenshot of the current widget – Flutter

I tried and found the solution, import ‘package:flutter/material.dart’; import ‘dart:async’; import ‘dart:typed_data’; import ‘dart:ui’ as ui; import ‘package:flutter/material.dart’; import ‘package:flutter/rendering.dart’; import ‘package:flutter/services.dart’; import ‘package:path_provider/path_provider.dart’; import ‘dart:io’; void main() => runApp(new MyApp()); class MyApp extends StatelessWidget { // This widget is the root of your application. @override Widget build(BuildContext context) { return new MaterialApp( title: ‘Flutter … Read more

Android take screen shot programmatically

Here you go…I used this: View v = view.getRootView(); v.setDrawingCacheEnabled(true); Bitmap b = v.getDrawingCache(); String extr = Environment.getExternalStorageDirectory().toString(); File myPath = new File(extr, getString(R.string.free_tiket)+”.jpg”); FileOutputStream fos = null; try { fos = new FileOutputStream(myPath); b.compress(Bitmap.CompressFormat.JPEG, 100, fos); fos.flush(); fos.close(); MediaStore.Images.Media.insertImage( getContentResolver(), b, “Screen”, “screen”); } catch (FileNotFoundException e) { // TODO Auto-generated catch block e.printStackTrace(); … Read more

Netbeans Shortcut to Open File

Updated I’m fairly certain you are referring to the “Quick File Chooser” plugin. As someone else points out, though, there are several other candidates. I list them below… The Quick File Chooser Plugin: By default CTRL–SHIFT–O opens the Open Project dialog, and once the plugin is installed, you will get the dialog pictured here automatically: … Read more

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