Coding 4 Fun

bubblemessengerSecurity

Nov 5, 2013 (3 years and 10 months ago)

160 views

Coding 4 Fun

Shoban Kumar


http://
www.codegeeks.net | www.dotnetcurry.com


http://twitter.com/shobankr


Why code for fun?

2

Twitter

GMail

GTalk

Facebook

Bing

Some More Stuff..

3

Twitter

API


REST API


oAuth


Libraries


Yedda

Twitter Library
:
http://devblog.yedda.com/index.php/twitter
-
c
-
library
/


Twitteroo

Core API
:
http://rareedge.com/twitteroo/blog
/


TweetSharp

:
http://tweetsharp.com
/


LINQ
to Twitter
:
http://linqtotwitter.codeplex.com
/


4

Twitter

Public Timeline :


http
://
twitter.com/statuses/public_timeline.
format

(
xml,
json
,
rss
,
atom
)


User Timeline :


http://
twitter.com/statuses/user_timeline.
format (
xml,
json
,
rss
, atom
)


HTTP
Method(s):


GET


Response :

<?xml version="1.0" encoding="UTF
-
8"?>

<statuses>


<status>

<
created_at
>Tue Apr 07 22:52:51 +0000 2009</
created_at
>

<id>1472669360</id>

<text>At least I can get your
humor

through tweets. RT @
abdur
: I don't mean this in a bad way,
but genetically speaking your a cul
-
de
-
sac.</text>

<source>&
lt;a

href
="http://www.tweetdeck.com/">TweetDeck&lt;/a></source>

……..

5

Emails


POP 3


IMAP


Others


RSS Feed :
https://
mail.google.com/mail/feed/atom



6

Example
? :


UserName

=
UserName

+ "@gmail.com"

Dim mail As
MailMessage

= New
MailMessage


mail.From

= New
MailAddress
(
UserName
)

mail.To.Add
(New
MailAddress
(
UserName
))

mail.Subject

= Subject

mail.Body

= "<html><body>This is a Test Email</body></html>"


mail.IsBodyHtml

= True


Dim client As
SmtpClient

= New
SmtpClient
("smtp.gmail.com", 587)

client.EnableSsl

= True

client.Credentials

= New
System.Net.NetworkCredential
(
UserName
,
Password
)



client.Send
(mail)

7

GTalk

XMPP Protocol :


Extensible
Messaging and Presence
Protocol

Libraries :


agsXMPP

:
http://
www.ag
-
software.de/index.php?page=agsxmpp
-
sdk



Jabber
-
net
:
http://code.google.com/p/jabber
-
net
/




8

Developer Home Page :


http
://www.facebook.com/developers
/



Libraries


Facebook Developer Toolkit :

http://facebooktoolkit.codeplex.com
/


.NET Facebook
API Client :

http://facebook.codeplex.com
/


Facebook.net :
http://facebooknet.codeplex.com
/


Sample Apps?


Photato

:

http
://
www.armchairware.com


FlitterBook

:
http://
blogs.msdn.com/coding4fun/attachment/2854939.ashx






9

Translator Home Page:

http
://
msdn.microsoft.com/en
-
us/library/dd576287.aspx


Services


HTTP Service


AJAX Service


SOAP Service


Requirements?


AppID

:

http://
www.bing.com/developer


Example :
6CE9C85A41571C050C379F60DA173D286384E0F2





10

Example
? :


string
strTranslatedText

= null;


TranslatorService.LanguageServiceClient

client =
new _








TranslatorService.LanguageServiceClient
();


client
= new
TranslatorService.LanguageServiceClient
();


strTranslatedText

=
client.Translate
("
your App ID
",
txtTraslateFrom.Text
, "", "en");


txtTranslatedText.Text

=
strTranslatedText
;

11

Visual Studio Tips & Tricks

12

Have emails sent to a folder

<system.net>





<
mailSettings
>









<
smtp

deliveryMethod
="
SpecifiedPickupDirectory
">













<
specifiedPickupDirectory

pickupDirectoryLocation
="c:
\
Temp
\
" />









</
smtp
>





</
mailSettings
>

</system.net>

13

app_offline.htm

ASP.NET
2.0+ will shut
-
down the application and stop normal processing any
new incoming requests for that application, showing only the contents of
the app_offline.htm file
for all new requests
.

14

Go To Definition

Click an identifier (class name, variable, etc) then hit F12 for

"
Go To Definition
".


Then
you can use
Ctrl +
-

[control minus] to jump back to where you were.


15

You can drag code to the
ToolBox
!


16

Free
image library

C:
\
Program Files
\
Microsoft Visual Studio 9.0
\
Common7
\
VS2008ImageLibrary

17

Line numbers in Editor

Tools
-
> Options
-
> Text Editor
-
> All Languages
-
> General


Check
Line numbers

18

view code that is covered by the IntelliSense
pop
-
up

Press and hold
Ctrl
key

19

Useful .net applications

Reflector

Class browser, analyzer, decompiler for .NET


http://www.red
-
gate.com/products/reflector/



20

Useful .net applications

Expresso

Regular expression development tool


http://www.ultrapico.com/Expresso.htm

21

Useful .net applications

LINQPad

LINQPad is also a great way to learn LINQ: it comes preloaded with 200
examples from the book, C# 3.0 in a Nutshell.


http://www.linqpad.net/

22

Useful .net applications

Fiddler

Fiddler is a Web Debugging Proxy which logs all HTTP(S) traffic between your
computer and the Internet.


http://www.fiddler2.com/fiddler2/

23

Useful .net Plug
-
ins

ReSharper

instant solutions for found errors, over 30 advanced code
refactorings
,
superior unit testing tools, handy navigation and search features, single
-
click code formatting and cleanup, automatic code generation and
templates, and a lot more productivity features for C#, VB.NET, ASP.NET,
XML, and XAML


http://www.jetbrains.com/resharper/

24

Useful .net applications

Visual Studio Theme generator







http://frickinsweet.com/tools/Theme.mvc.aspx

25

Useful .net Plug
-
ins

PDFsharp

PDFsharp

is the Open Source library that easily creates PDF documents from
any .NET language.


http://pdfsharp.com/PDFsharp/

26

Useful .net Plug
-
ins

Krypton Toolkit

Free Windows Forms Controls







http://www.componentfactory.com/free
-
windows
-
forms
-
controls.php

27

Useful .net Plug
-
ins

Flickr.Net

API Library

The
Flickr.Net

API is a
.Net

Library for accessing the
Flickr

API. Written entirely
in C# it can be accessed from with any
.Net

language


http://flickrnet.codeplex.com/

28

Useful .net Plug
-
ins

ReCaptcha

The
reCAPTCHA

ASP.NET Library provides a simple way to place a CAPTCHA on
your ASP.NET website, helping you stop bots from abusing it.


http://recaptcha.net/plugins/aspnet/

29

Start VS without Splash Screen

from
cmd

line, run
devenv.exe /
nosplash


I
t loads Visual Studio 2008 slightly faster because there’s no pause for you to
read the splash screen.

30

VS in Full Screen

You can quickly toggle into Full Screen mode by pressing

Shift + Alt + Enter.

31

change the default browser used in VS 2005


Right click on a .
aspx

page in your solution explorer


Select the "browse with" context menu option


In the dialog you can select or add a browser. If you want Firefox in the list,
click "add" and point to the firefox.exe filename


Click the "Set as Default" but
ton to make this the default browser when
you run any page on the site.

32

Thank you!!!!

Shoban Kumar

shobankr@gmail.com

www.codegeeks.net

http://twitter.com/shobankr


33