Monday, December 23, 2013
Loading an image from a url with MonoTouch
Loading an image from a url with MonoTouch on the iPhone
To load an image into a UITableViewCell use the code below to load image from url.NSUrl nsUrl = new NSUrl(weburl);
NSData imgdata = NSData.FromUrl(nsUrl);
var myImage = new UIImage(imgata);
cell.ImageView.Image= myImage;
http://adnankhan12.wordpress.com/2012/12/08/loading-an-image-from-a-url-with-monotouch/
java.lang.UnsatisfiedLinkError: Couldn’t load mono: findLibrary returned null
Some times you will see this error message “java.lang.UnsatisfiedLinkError: Couldn’t load mono: findLibrary returned null” after you deploy your android app.
The reason for this is that when you publish your app you have selected supported ABIs armeabi-v7a, armeabi and x86 and if user install your app on ARMv6 device it gives this error.
There is no workaround that I have found in Mono Develop to stop this error.
Just fyi!
The reason for this is that when you publish your app you have selected supported ABIs armeabi-v7a, armeabi and x86 and if user install your app on ARMv6 device it gives this error.
There is no workaround that I have found in Mono Develop to stop this error.
Just fyi!
Configure your Amazon EC2 Windows Firewall to access Amazon SES Email Service
You will need to open windows firewall port on your EC2 machine.
1. Right click on my computer and select Manage
2. Expand to “Windows Firewall with Advanced Security”
3. Click on “Outbound Rules”
4. On the right side click on “New Rules”
5. Window will for “New Outbound Rule Wizard”
6. Select Port & Click Next
7. Next Enter Port for SES Amaozn: 25, 587, 2587
8 . Click Next
9. Name your AmazonSES_SMTP
10. Click OK
Note: Before you test make sure you also have configured your EC2 Security Group setting to open above ports: 25, 587, 2587
That’s All!
1. Right click on my computer and select Manage
2. Expand to “Windows Firewall with Advanced Security”
3. Click on “Outbound Rules”
4. On the right side click on “New Rules”
5. Window will for “New Outbound Rule Wizard”
6. Select Port & Click Next
7. Next Enter Port for SES Amaozn: 25, 587, 2587
8 . Click Next
9. Name your AmazonSES_SMTP
10. Click OK
Note: Before you test make sure you also have configured your EC2 Security Group setting to open above ports: 25, 587, 2587
That’s All!
How to add primary key constraint on oracle table
This is how you will add primary key constrain on exiting oracle table.
ALTER TABLE MY_TABLE_NAME ADD (CONSTRAINT PK_MY_TABLE_NAME PRIMARY KEY (COLUMN1, COLUMN2));
Note: MY_TABLE_NAME is your some table name. PK_MY_TABLE_NAME can you your pk_somename.
ALTER TABLE MY_TABLE_NAME ADD (CONSTRAINT PK_MY_TABLE_NAME PRIMARY KEY (COLUMN1, COLUMN2));
Note: MY_TABLE_NAME is your some table name. PK_MY_TABLE_NAME can you your pk_somename.
Sunday, May 6, 2012
Error Message for JavaScript CurvyObject Warning Pop Up Box – Fixed
This error comes up when using CurvyCorners in IE8 and 7:
curvyObject warning:
zero-width box with no accountable parent
tag: NAV
id: nav-main
class: row rounded
Parent tag: DIV
Parent class: container
To fix it I had to put in my javascript:
var curvyCornersVerbose = false;
Sunday, May 15, 2011
Windows Azure Instance Aborted/Busy - Error
After deploying my service to windows azure my service was simply looping through the standard busy loop with no end in sight.
I resolved that issue by going to: AzureLocalStorageTraceListener.vb
change file name: ".svclog" file.
replace with your project name for example. MyWinAzure1.svclog.
change in both places New() and GetLogDirectory() function.
I resolved that issue by going to: AzureLocalStorageTraceListener.vb
change file name: ".svclog" file.
replace with your project name for example. MyWinAzure1.svclog.
change in both places New() and GetLogDirectory() function.
Tuesday, January 25, 2011
Amazon S3 EZ Upload .NET Component by NetFix, LLC
NetFix EZ S3 Upload is .NET dll component that developers can use to upload files on Amazon S3 account. Easy to integrate into your existing web projects or windows projects. Just add reference to project and call UploadToAmazonS3 method. Your files will get uploaded to your Amazon S3 account. Also you can delete file by calling DeleteToAmazonS3 method.
Click Here to Download: http://www.netfixllc.com/OurProducts/NetFixEZS3Upload.aspx
Supported Platform: Vista 32 bits, Windows XP, Windows Server 2003/2008, .NET Framework 2.0,3.0,3.5 and 4
Click here to watch demo.
Click Here for: How to add NetFix EZ S3 Upload into your web application.
Click Here to Download: http://www.netfixllc.com/OurProducts/NetFixEZS3Upload.aspx
Supported Platform: Vista 32 bits, Windows XP, Windows Server 2003/2008, .NET Framework 2.0,3.0,3.5 and 4
Click here to watch demo.
Click Here for: How to add NetFix EZ S3 Upload into your web application.
Wednesday, December 29, 2010
YouTube EZ Upload .NET Component
NetFix EZ YouTube Upload is .NET dll component that developer can use to upload videos on YouTube.Com. Easy to integrate into your existing web projects. Just add reference to project and call YouTubeUpload method. Your video will get transfer to your YouTube account. Click here to watch video.
This sample source code package will be sent to your on your purchased email address.
Supported Platform: Vista 32 bits, Windows XP, Windows Server 2003/2008, .NET Framework 2.0,3.0,3.5 and 4.0

Click Here to Purchase & Download.
Click Here for: How to add NetFix EZ YouTube Upload into your web application.
This sample source code package will be sent to your on your purchased email address.
Supported Platform: Vista 32 bits, Windows XP, Windows Server 2003/2008, .NET Framework 2.0,3.0,3.5 and 4.0
Click Here to Purchase & Download.
Click Here for: How to add NetFix EZ YouTube Upload into your web application.
Thursday, December 23, 2010
How to enable SQL Dependency on SQL 2008 Server for .NET Website Caching
How to enable SQL Dependency on SQL 2008 Server for .NET Website Caching
I am unable to put the code on blogget.com don't know why.
So please visit: my blog on word press for complete blog post.
In your web.config make sure have tag declared as shown below:
Then run these commands using your command prompt:
To Enable Sql Dependency:
aspnet_regsql.exe -S localhost -E -d pubs -t authors -et
or if this doesn't work then try this:
aspnet_regsql.exe -S localhost -U your_db_username -P your_db_password -d pubs -t authors -et
or if you want to allow to whole database then try this:
aspnet_regsql.exe -S localhost -U your_db_username -P your_db_password -d pubs -ed
To Disable Sql Dependency:
aspnet_regsql.exe -S localhost -E -d pubs -t authors -dt
or if this doesn't work then try this:
aspnet_regsql.exe -S localhost -U your_db_username -P your_db_password -d pubs -t authors -dt
or if you want to allow to whole database then try this:
aspnet_regsql.exe -S localhost -U your_db_username -P your_db_password -d pubs -dt
Than just add the output cache in your asp.net page or contols (.aspx or .asmx) pages.
<outputCache enableOutputCache ="true" duration = "1000" varByParam="None">
Hope this helps!
Saturday, November 13, 2010
Friday, September 17, 2010
Checked one checkbox at a time in vb.net
Checked one checkbox at a time in vb.net
1. Add JQuery library into your page under header section.
2. Add checkboxes in body of your page
3. Add script at the end of the page after the body tag
script type ="text/javascript" language ="javascript"
(document).ready(function cbox1() {
//var var_name = $('#CheckBox1').attr('checked');
//var var_name = $('#CheckBox2').attr('unchecked');
$('#CheckBox1').attr('checked', true);
$('#CheckBox2').attr('checked', false);
});
$(document).ready(function cbox2() {
//var var_name = $('#CheckBox1').attr('unchecked');
//var var_name = $('#CheckBox3').attr('checked');
$('#CheckBox1').attr('checked', false);
$('#CheckBox2').attr('checked', true);
});
That's it!
1. Add JQuery library into your page under header section.
2. Add checkboxes in body of your page
3. Add script at the end of the page after the body tag
script type ="text/javascript" language ="javascript"
(document).ready(function cbox1() {
//var var_name = $('#CheckBox1').attr('checked');
//var var_name = $('#CheckBox2').attr('unchecked');
$('#CheckBox1').attr('checked', true);
$('#CheckBox2').attr('checked', false);
});
$(document).ready(function cbox2() {
//var var_name = $('#CheckBox1').attr('unchecked');
//var var_name = $('#CheckBox3').attr('checked');
$('#CheckBox1').attr('checked', false);
$('#CheckBox2').attr('checked', true);
});
That's it!
Wednesday, July 7, 2010
Wednesday, June 23, 2010
Oracle Tip: Close your Ref Cursor in PL/SQL
Hello Everyone,
There is a way in Oracle that you can close your Ref Cursor in PL/SQL store procedure and still able to retain the value into .NET application. This way you don’t leave unclosed cursor on server side.
------------------------------
Sample Code -- Start
------------------------------
PROCEDURE test(crs_out_cursor out sys_refcursor) AS
crs_error_local sys_refcursor;
mydata sys_refcursor;
rr emp%rowtype;
BEGIN
open crs_error_local for
select * from emp_table;
crs_out_cursor := crs_error_local;
loop
fetch mydata into rr;
exit when mydata%notfound;
end loop;
close crs_error_local;
crs_out_cursor := mydata;
----------------------------------------------------------------------------
--EXCEPITION HANDLER
----------------------------------------------------------------------------
EXCEPTION
when others
then
END test;
-----------------------------
Sample Code -- End
-----------------------------
Enjoy the tip!
There is a way in Oracle that you can close your Ref Cursor in PL/SQL store procedure and still able to retain the value into .NET application. This way you don’t leave unclosed cursor on server side.
------------------------------
Sample Code -- Start
------------------------------
PROCEDURE test(crs_out_cursor out sys_refcursor) AS
crs_error_local sys_refcursor;
mydata sys_refcursor;
rr emp%rowtype;
BEGIN
open crs_error_local for
select * from emp_table;
crs_out_cursor := crs_error_local;
loop
fetch mydata into rr;
exit when mydata%notfound;
end loop;
close crs_error_local;
crs_out_cursor := mydata;
----------------------------------------------------------------------------
--EXCEPITION HANDLER
----------------------------------------------------------------------------
EXCEPTION
when others
then
END test;
-----------------------------
Sample Code -- End
-----------------------------
Enjoy the tip!
Monday, June 21, 2010
Creating XMLHTTPRequestObject - For all Browsers
funciton getXMLHTTPRequest(){
var request = false;
if (window.XMLHTTPRequest){
request = new XMLHTTPRequest();
}else {
if(window.ActiveXObject){
try{
request = new ActiveXObject("Msml2.XMLHTTP");
} catch(err1){
try{
request = [ic:ccc]new ActiveXObject("Microsoft.XMLHTTP");
}catch(err2){
request = false;
}
}
}
}
return request;
Thursday, June 10, 2010
Just link my blog with Amazon :)
Hello Everyone...
Please don't forget to visit Amazon links on my blog. Thank You for visiting my blog. I will be posting more useful information.
Bye!
Subscribe to:
Posts (Atom)