Python flask read image
https://github.com/heanuea/Mnist-Digit-Reader-
Ocr
https://github.com/progwiz/Line-And-Word-Segmentation-of-Documents
programmingnotes
Friday, 6 September 2019
Thursday, 16 February 2017
Security
<location path="upload" allowOverride="false"> <system.webServer> <handlers accessPolicy="Read" /> </system.webServer> </location>
http://www.hanselman.com/blog/BackToBasicsWhenAllowingUserUploadsDontAllowUploadsToExecuteCode.aspx
Friday, 3 February 2017
Mobile Development
Xamarin.Forms
Sample App (https://github.com/xamarinhq/app-evolve)
Splash Screen (click)
Animated gif http://stackoverflow.com/questions/25808010/xamarin-forms-custom-loading-gif-as-activity-indicator
Android Custom renderer for tabbed page (forum)
xamarin-forms-tab-badge (GitHub)
Xamarin plugins (GitHub)
Xamarin programmatically change page http://www.patridgedev.com/2015/03/07/xamarin-forms-switching-tabbedpage-tabs-programmatically/
Sample App (https://github.com/xamarinhq/app-evolve)
Splash Screen (click)
Animated gif http://stackoverflow.com/questions/25808010/xamarin-forms-custom-loading-gif-as-activity-indicator
Android Custom renderer for tabbed page (forum)
xamarin-forms-tab-badge (GitHub)
Xamarin plugins (GitHub)
Xamarin programmatically change page http://www.patridgedev.com/2015/03/07/xamarin-forms-switching-tabbedpage-tabs-programmatically/
Friday, 20 May 2016
XPO Snippets
Session s = new Session();
s.ConnectionString = "Data Source=(local);Initial Catalog=NORTHWND;Integrated Security=True";
int i = Convert.ToInt32(s.ExecuteScalar("select count(*) from products where UnitPrice>@price AND ProductName LIKE @prodName", new string[] { "@price","@prodName" }, new object[] { 10,"A%" }));
MessageBox.Show(i.ToString());
s.ExecuteNonQuery("UPDATE Products SET ProductName='a_'+ProductName WHERE UnitPrice>@price AND ProductName LIKE 'A%'", new string[] { "@price" }, new object[] { 10 });
SelectedData sd = s.ExecuteQuery("select * from products where UnitPrice>@price AND ProductName LIKE 'A%'", new string[] { "@price" }, new object[] { 10 });
MessageBox.Show(sd.ResultSet[0].Rows[0].Values[1].ToString());
s.ConnectionString = "Data Source=(local);Initial Catalog=NORTHWND;Integrated Security=True";
int i = Convert.ToInt32(s.ExecuteScalar("select count(*) from products where UnitPrice>@price AND ProductName LIKE @prodName", new string[] { "@price","@prodName" }, new object[] { 10,"A%" }));
MessageBox.Show(i.ToString());
s.ExecuteNonQuery("UPDATE Products SET ProductName='a_'+ProductName WHERE UnitPrice>@price AND ProductName LIKE 'A%'", new string[] { "@price" }, new object[] { 10 });
SelectedData sd = s.ExecuteQuery("select * from products where UnitPrice>@price AND ProductName LIKE 'A%'", new string[] { "@price" }, new object[] { 10 });
MessageBox.Show(sd.ResultSet[0].Rows[0].Values[1].ToString());
Tuesday, 15 March 2016
C# Code Snippets
Return number only from text
Or can use this:
http://www.codeproject.com/Articles/12170/FileHelpers-v-Delimited-CSV-or-Fixed-Data-Impor
private string GetNumbers(string input) { return new string(input.Where(c => char.IsDigit(c)).ToArray()); }Read CSV file
static List ReadCSV(string filename) { return File.ReadLines(filename) //.Skip(1) .Where(s => s != "") .Select(s => s.Split(new[] { ',' })) .Select(a => new Result { OrgFN = a[0], NewFN = a[2], Barcode = a[1] }) .ToList(); }
Or can use this:
http://www.codeproject.com/Articles/12170/FileHelpers-v-Delimited-CSV-or-Fixed-Data-Impor
Monday, 14 March 2016
Saturday, 12 March 2016
Install Mono and MonoDevelop
Add additional package repositories. First add the Mono Project GPG signing key by typing in the (remote or local) command prompt
Then type
Once added, we need to execute the sudo apt-get update and sudo apt-get upgrade commands again. Cool, now we are finally ready to install Mono: enter
When prompted hit enter or Y to confirm the installation of the complete Mono framework. Give it some time to complete, it takes like 5 minutes.
Link
sudo apt-key adv --keyserver keyserver.ubuntu.com --recv-keys 3FA7E0328081BFF6A14DA29AA6A19B38D3D831EF
Then type
echo "deb http://download.mono-project.com/repo/debian wheezy main" | sudo tee /etc/apt/sources.list.d/mono-xamarin.listfor the first repository. Now enter
echo "deb http://download.mono-project.com/repo/debian wheezy-apache24-compat main" | sudo tee -a /etc/apt/sources.list.d/mono-xamarin.listfor the second repository.
Once added, we need to execute the sudo apt-get update and sudo apt-get upgrade commands again. Cool, now we are finally ready to install Mono: enter
sudo apt-get install mono-complete
When prompted hit enter or Y to confirm the installation of the complete Mono framework. Give it some time to complete, it takes like 5 minutes.
Link
Subscribe to:
Posts (Atom)