I'm a great fan of extensions in C#. See also this previous [snippet](https://www.daniweb.com/software-development/csharp/code/467292/squaring-an-integer-with-extensions). Extensions are really simple to use. Start with adding a static class containing static methods. Note the special use of the keyword `this` in the Times extension method. The next code snip is how you could use this extension, eliminating the use of the for.

Member Avatar
Member Avatar
+0 forum 7

when dealing with files, is it possible to write or read any file extensions e.g. .docx, .pdf e.t.c.?

Member Avatar
Member Avatar
+0 forum 2

For many years I was a loyal Firefox follower, and although impressed by the innovative technology of Chrome when it first came out, I didn't take it seriously. However, over the last twelve months Chrome and me have become quite inseparable. Wherever I am and whatever device I am using, Chrome is there along with my favourites and passwords, no matter what computer, tablet, or phone. (I only have one phone, but I think you catch my drift) In the time I've been using it I've come across various extensions (plugins) that have made my research and writing via the …

Member Avatar
Member Avatar
+0 forum 2

helo friends i have a new site i wana to set their ONPAGE for SEO working can u help me which are changes i have to do in for make SEO friendly site and how?

Member Avatar
Member Avatar
+4 forum 11

What is the PHP extension to connect to mysql? I have installed them using wamp sever and they are not connecting because they dont have the extensions, where can I get the extension?

Member Avatar
Member Avatar
+0 forum 4

how can i load the browser extensions into my website?

Member Avatar
Member Avatar
+0 forum 2

Hi i have a directory containg about 300 files with different extensions like : .txt, .php, .html,etc.. and i have tried this code but it displays a files list instead of only thier extentions [CODE]string[] filePaths = Directory.GetFiles(@"c:\tmp]");[/CODE] so what i need to do is to display all the files extensions in that folder ***Thank you***

Member Avatar
Member Avatar
+0 forum 3

can we generate a MAC for a text file in javax.crypto and generate a MAC stored in a String variable??????????????

Member Avatar
+0 forum 0

Hey, anybody know if there is a DLL available for Image Magick that I can put in the /ext directory and use Image Magick without having to install the Image Magick software? Thanks.

Member Avatar
Member Avatar
+0 forum 6

Hi, It is possible to remove (expire) cross subdomain cookies using javascript? For example, Facebook.com creates these cookies in the ".facebook.com" domain:[IMG]http://www.datermine.com/img/MStandaloneImage/full/agpkYXRlcnJtaW5lchgLEhBNU3RhbmRhbG9uZUltYWdlGIn9DQw/[/IMG] I'm creating a chrome extension with a content script that can run javascript within a page in the browser, typically in the 'www' subdomain and I'd like to be able to expire them using javascript. Of note: + I'm able to retrieve them via the document.cookie object + I'm able to create and expire cookies on the [url]www.facebook.com[/url] domain Thanks, George

Member Avatar
+0 forum 0

Hi! I'm trying to use the opencv bindings of Python. I tried the following code: [CODE]from opencv.highgui import * from opencv.cv import * cam = 'cam' cvNamedWindow(cam) cap = cvCreateCameraCapture(0) while cvWaitKey(1) != 27: img=cvQueryFrame(cap) cvShowImage(cam,img)[/CODE] Although the window seems to open fine, I cannot see any image. I just get a window without any image -> as if there is no image stored in variable 'img' On checking the 'img' variable (using cvSaveImage('test.jpg',img)), I found that the img file was ok (the stoed file was correct). Any idea what is causing the problem?

Member Avatar
Member Avatar
+0 forum 5

Hi! I am trying to convert my c/c++ code into a python module. The code captures an image which it then runs some algorithms upon. For a start, I am trying to write a code that just captures an image. I am using opencv for the image capture (in the c/c++ code). In the compiling options, I compile the file with the opencv functions using the following options: [QUOTE]g++ -g -fpic -c image.cpp -o image.o -lm `pkg-config --cflags --libs opencv` -I /u sr/include/python2.6/ -I /usr/local/include[/QUOTE] However, when I create the .so file (with all the .o files), I get the …

Member Avatar
+0 forum 0

Hi! I'm trying to build a Python extension with C/C++. I'm following the steps given in the documentation [URL="http://docs.python.org/extending/extending.html"]here[/URL]. I've followed the steps mentioned and written my first code. However, I have no clue on how to compile the project! I do not know how to create the .pyd file from the C code I have. I'm trying to figure out the arguments to be given to gcc (or g++), but all my attempts have been unsuccessful. I first created the object file with the following command: [QUOTE]~$ gcc -c -fpic -I /usr/include/python2.6/ spamify.c[/QUOTE] Which created the object file for …

Member Avatar
Member Avatar
+0 forum 2

Are there different SQL extensions? What are the extensions for Data Mining and Warehousing?

Member Avatar
Member Avatar
+0 forum 1

The End.