Change Photo
Mohammed Johns

Answers by Mohammed Johns

Drawing a 20x20 pixel greyscale image?

Maybe shell out to ImageMagick to create a 400x400 greyscale image: convert -size 400x400 xc:gray image.bmp and then start MS Paint (Wi...

Trying to insert a digital signature line in a docx file?

This code contains a function AddSiganture() which searches for a ContentControl with tag "topsoft", and adds a SignatureLine to it. More ...

python stacked bar chart using categorical data?

print(df) Output: A B C D 1 CL0 CL1 CL2 CL0 2 CL2 CL1 CL1 CL3 3 CL3 CL2 CL0 CL1 Using .apply() counts = df...

Error: Registry key 'Software\JavaSoft\Java Runtime Environment'\CurrentVersion'? [duplicate]?

On my Windows 7 machine, it was solved by doing the following: In the START menu type "regedit" to open the Registry (be careful doing t...

Json object to Parquet format using Java without converting to AVRO(Without using Spark, Hive, Pig,Impala)?

To convert JSON data files to Parquet, you need some in-memory representation. Parquet doesn't have its own set of Java objects; instead, ...

How do you virus scan a file being uploaded to your java webapp as it streams? [closed]?

Check out Clamv ( http://www.clamav.net/ ) It is a open source anti-virus, and you can scan a stream. So you do not need to save the file ...

PuTTY Shortcuts to Minimize, Maximize, Restore, and Move the Window?

Never mind, there's a setting for that. Window -> Behavior -> (System Menu Appears on Alt+SPACE checkbox) ...

Dropdown using javascript onchange?

Something like this should do the trick <select id="leave" onchange="leaveChange()"> <option value="5">Get Married</opti...

Calling JavaScript Function From CodeBehind?

You may try this : Page.ClientScript.RegisterStartupScript(this.GetType(),"CallMyFunction","MyFunction()",true); ...