same

Can i use just the mono's system data on windows?

I have a Windows WinForms app that communicates with linux's mono remoting. Is it possible that i get the mono's system.data.dll and use it on windows instead of .net's built-in. I wanted to use remotingformat of binary type, and ensure that both ends can serialize/deserialize it properly. ...

PHP - extract() type

Hello, PHP's extract() function can take on one of several extract_types. But what's the difference between extr_prefix_same and extr_prefix_if_exists? The manual makes it sound like, in either case, new variables will be prefixed if the variable name already exists. Thanks! ...

Shell script to find out if two files from a list of files are created on the same day

Hi I would like to find out using a korn shell script if two files from a list of files are created on the same day. I need to check the current file against the previous file in the list to see if they are created on the same day. Can someone please help? ...

Using different versions of DLL in one application

I have a Silverlight Class Library that is being used by both Silverlight application and a regular C# WCF Service. The Silverlight application calls the WCF service to read/write some data. They both use the common library to manipulate the data being passed. Everything compiles fine, but when we run the application, the webservice t...

Deleting smaller sized dupes of files

I'm trying to locate files with the same name and delete all of the smaller sized copies, leaving only the largest. For example: test.jpg = 2kb, test.jpg=9kb, test.jpg=5kb. The 2kb and 5kb files would get deleted, leaving just the 9kb. I've tried a couple of GUI programs to do this and they were no help, as you had to delete everything m...

HttpHandler accessing same session

I'm using a HttpHandler to upload an image asynchronously and need access to the SAME session as the rest of the application. I'm using IRequiresSessionState and can read and write to the session fine, but existing session values from the application that should be available aren't and so on. Is this possible? Thanks Dave ...

Find values from Xml who have same Element Name

I have following xml which same child element (Filed) and I want to get value from each Child element. Sameple XML <root xmlns=""> <books cat="F1" ISBN="01F187597" genre="Programming"> <Field name="Title" val="XML" /> <Field name="Publish Date" val="20010424" /> <Field name="Price" val="43.00" /> </books>...

jqgrid 2 grid on same row, 1x left, 1x right

Hello! How can I make on a html page, 2 jqgrids, on same row, 1x left and 1x right ? on default came one on top, one bottom. Thanks ...

two jquery plugins use the same function name, can somehow i use them both?

I have two jQuery plugins that use the same function name (bind), can i somehow use those two plugins together? ...

Identical Class Member Names and Function Argument Names in C++

I have a simple object that holds some [public] data. I want to keep my interface clean, so I don't want to pre-/post- fix anything to the names of the publically accessible variables nor to the names of my function arguments. That said, I ended up doing something like this: template<typename T> struct Foo { explicit Foo(T x) : x(x)...

Django - two projects using same database?

Hi, I'm working on my honor society's website, and I'm wondering if (1.) can two websites (Django projects) point to the same database, and (2.) if that's good practice. Background info: Currently there's only one website, and the users for it are for only for members. For our industry relations part (which we are developing now), we w...

Same origin policy javascript

Hi, I'm writing an NPAPI plugin that injects a script with a src located at my server. After the injection, my plugin tries to call a function in the script. But this doesnt seem to work. I think the reason is the same origin policy, but im not sure how to overcome it. The call to the function works if i inject the script code complete...

Action Parameter POST .. An item with the same key has already been added.

Hi Everyone! I have a little problem in ASP.NET MVC 2 FrameWork 4... Let me explain : I have one class that contains other classes like ... IndexViewData -­­> MemberViewData -> UserViewData public class IndexViewData : Manager { public MemberViewData member { get; set; } .... public class MemberViewData : Manager { publi...

Return to same view from two different action methods.

Hi, i have a quick search and advance search pages, both are controlled by search controller, i have 2 action methods quick(...) and advanced (....) in my controller. Both pages have sumbit buttons and they are calling two different action method "qucikresults(...)" and "advancedresults(....)".when both method executes they return produ...

two controllers with same params

i have 2 actions public ActionResult FilesAdd(int id) { FillParentMenuDDL(id); return View(); } [HttpPost] public ActionResult FilesAdd(int id) { //some logic... FillParentMenuDDL(id); return View(); } but it is error because of same parameters, but i need only one param...

php - Can I integrate functions with same content, different names?

I have a couple of functions inside a class that essentially do the same thing: public function fn_a(){ return __FUNCTION__; } public function fn_b(){ return __FUNCTION__; } public function fn_c(){ return __FUNCTION__; } I need those functions to remain in their current names so I intentionally did not do: pub...

PHP: Sum list of values

My page should shown information like this: No. Customer Bank_Name Amount --------------------------- 1. AAA Bank A 100 2. BBB Bank B 200 3. CCC Bank A 500 4. DDD Bank C 150 ---------------------------- Total 950 How to sum amount as shown below: Summary No.Bank_Name...

Multiple sockets receiving same packet

I have a C++ program written with Winsock that has multiple blocking sockets operating in multiple threads. They are all waiting at recvfrom(), and when I send a packet to one of them, they all get the packet. Here is how they are declared: _sock = socket(AF_INET, SOCK_RAW, IPPROTO_UDP); if (_sock == INVALID_SOCKET) { _error = WSAG...

mySql - updating by comparig rows in same table

Hi, I want to update a column by comparing each row to all other rows in the table but I cant figure out how to distinguish the column names in the row being updated with the rows being searched through. Here's a simplified example... people: +--------+-----+----------------+ | name | age | nameClosestAge | +--------+----...

fill 2 form one field in common with c#

I need to fill two forms in the same website, my issue are the field because they have the same name, e.g. the password field in both form is pass, so how can i fill both? the code to fill fields I'm using is this: WebBrowser1.Document.GetElementById("pass").SetAttribute("value", stringpassword); thanks ...