Questions

WCF Http to Tcp Proxy

I have a number of WCF services on my internal network which are hosted by IIS 6 using the basicHttpBinding. There are several existing applications which use these services by using the dynamic proxy "CreateChannel()" method. I'm building a mobile application which runs outside of our ...

ZSH Prompt/RPrompt Conflict

I currently have my ZSH PROMPT variable set up as: PROMPT=$'[%{\e[0;32m%}%n@%m:%~%{\e[0m%}]> and my RPROMPT variable as: RPROMPT=$'[%{\e[0;32m%}%T\e[0m%}]' The effect I'm working for is to make the brackets and ">" white (using Terminal text-color settings) and everything inside o ...

Test Suite for testing scorm 2004

Is there any tool like Reload Player for 1.2 to test my scorm 2004 course. I know there exists ADL and SCORM Test Track ADL : Takes a lot of time for installation Test Track: Take a lot of time uploading course when the file size is huge. I am looking @ repeated testing and would prefer ...

Visual C# 2008. CRUD Example using Dataset, DataRow with an Access Mdb

I'm using Visual Studio C# 2008 I've created (visually) a dataset that points to a mdb file (Access 2007) This DataSet is called "EstacionarDataSet" EstacionarDataSet ed = new EstacionarDataSet(); DataRow newRow = ed.Tables[0].NewRow(); newRow["patente"] = tb_Patente.Text; newRow["numer ...

problem with mutating tables

I want to create trigger which will be fired after insert into some table, let`s say user. In this trigger I want to select some records from table user, besides this one I insert to table, but then I receive error about mutating table. Is it possible to get records from this table? ...

ways to add invisible components into JPanel?

I need to add some invisible component into a JPanel to avoid the issues with grid bag lay out.Which is the best way to add these kind of invisible components? ...

jQuery block moving

I wanna move a div block to the top, so I coded like this: CSS part: .movingPart{ margin-top:80px; } jQuery part: $(document).ready(function() { $('#btn').click(function() { $('.movingPart').animate({ "margin-top":'0px' }); }); }); it works perfectly in chro ...

C++ STL unordered_map problems and doubts

after some years in Java and C# now I'm back to C++. Of course my programming style is influenced by those languages and I tend to feel the need of a special component that I used massively: the HASH MAP. In STL there is the hash_map, that GCC says it's deprecated and I should use unorde ...

R statistical package: wrapping GOFrame objects

I'm trying to generate GOFrame objects to generate a gene ontology mapping in R for unsupported organisms (see http://www.bioconductor.org/packages/release/bioc/vignettes/GOstats/inst/doc/GOstatsForUnsupportedOrganisms.pdf). However, following the instructions literally doesn't help me. ...

Spring Security Custom freemarker form

I'm currently working on a project were we use freemarker as a template language. Instead of using the defualt login form I have created a custom controller and a custom freemarker view which goes along with that controller Code: @Controller public class LoginController { private stati ...

Generating C# class file from XML Schema

I want to parse a complex XML schema file and export to a C# file. Do I need take use System.XML.Schema namespace? ...

How do I make use of serialized data from MySQL?

How can I extract the serialized values of a string stored in MySQL? The values look something like this: a:{s1:./... }. What is this? ...

Interfacing Between C# And Excel?

I am using C# interop to call a macro from C#. This works fine. However I am passing in an argument which the macro populates in the event of an error. app.Run(macroName, errrObj, Type.Missing, Type.Missing, Type.Missing, ........); Is there any way to get C# to actually read the ...

How do I isolate debugging just to the current running project in visual studio?

I have just created a virtual directory and placed my app's files into it ready to allow some users to test. The problem is when I then go to my visual studio project (which uses a different virtual directory when running and seperate code location) I get debug errors randomly appearin ...

Delete holes in a Polygon

I have a polygon determined by an Array of Points. This polygon is crossing itself making some holes in the polygon itself. My questions is: How can I omit this holes and just get the exterior points of the polygon? Or what will be the same and probably easier: Which Algorithm for che ...

Logic for a file compare

I trying to write a programm for file compare. For example: file1 1 2 3 4 5 file2 1 2 @ 3 4 5 If I do it line by line, I get: 1 == 1; 2 == 2; 3 != @; 4 != 3; 5 != 4; != 5; But, the truth is that the only difference between the files is @. I want get something like this: 1 = ...

oauth and userid

i am very confused, once i get the access token from google to access user contacts, how do I associate that user with that token again in the future? many thanks ...

How can I place element to position with Silverlight?

I want to draw rectangle to position what I get from startPoint, but now it places my rectangle to middle of PictureCanvas, when I want to put it in startPoint position private void DragSelectComponent_SelectionEnd(DragSelectEventArgs e) { Output.Text = "Start: " + e.StartPoint.ToSt ...

iPhone Navigation Bar button, using custom image, done with Interface Builder

iPhone application, which has two buttons -right side- of Navigation Bar title. I want to do this completely using Interface Builder and have had some limited success. The current problem is with buttons using custom image. All built-in images are ok, e.g. Info Light or Add Contact. Cust ...

Calculating variance with large numbers

I haven't really used variance calculation that much, and I don't know quite what to expect. Actually I'm not too good with math at all. I have a an array of 1000000 random numeric values in the range 0-10000. The array could grow even larger, so I use 64 bit int for sum. I have tried ...

What CSS could I use for Curved list item effect onhover?

I want to put a 3d curved look in a list item I have whenever you hover on a list item at my sidebar . How would I do this with css? EDIT:: I have a list in a side bar. When I hover over a link I would like it to appear as if it is written on the curved surface of a cylinder ...

How to correctly use ResultSet with h:dataTable

The problem is, that after displaying the ResultSet with <h:dataTable>, the connection is left open. If I close it, it closes the ResultSet too. I'm thinking about copying the ResultSet data into some HashMap/ArrayList combo. Is there a good way to deal with this problem? ...

substituting an Excel worksheet for an Access database

Sorry in advance for the rookie-ness you are about to hear..... I have VB application that uses an Access DB, call the database: db_1. For reasons best left unsaid, I have to substitute an Excel worksheet for db_1 - as far as the VB application is concerned. I hope to populate this n ...

<%= autocompletes to <%@ Assembly= in Visual Studio

Using Visual Studio 2008 with the asp.net MVC framework. In partial views, if I try typing "<%=" to print out some data from the model, it autocompletes the "<%" to "<%@ Assembly" (tagiing my "=" on the end). Very annoying and I'm nearly sure it didn't used to, but can't think ...

Array to nested hash

I have array of objects. I want to write method wich i will use such as this: group(array, :category, :month, year) and will return me a Hash such as this: { 'some category => { '2009' => { '01' => [objects], '02 => [objects2]code } } } This should work simm ...

Does MySQL InnoDB always require an index for each foreign key constraint?

I am using phpMyAdmin. In order to set up a foreign key constraint with InnoDB (under the "Relation View" link on the Structure tab) it appears that I need to add an index for the field to which I want to add the restraint. This obviously has an impact on performance of inserts/updates o ...

DataSet and Primary Key with multiple columns

How Can I use Find method in DataSet that has Primary Key make of 3 Columns? dadSample.SelectCommand = New SqlCommand("SELECT * FROM StockBalance", conxMain) dadSample.FillSchema(dsSample, SchemaType.Source, "StockBalance") dadSample.Fill(dsSample, "Stock") ...

downcasting in php5

I've realized that there's no downcasting in php5. Is there a common pattern to achieve it? ...

Better way to call superclass method in ExtJS

All the ExtJS documentation and examples I have read suggest calling superclass methods like this: MyApp.MyPanel = Ext.extend(Ext.Panel, { initComponent: function() { // do something MyPanel specific here... MyApp.MyPanel.superclass.initComponent.call(this); } }); I have b ...

giving a dataGridView cell a background image in C#

I want to give the row headers and column headers a custom background from an image using the .net component DataGridView. Is it possible to even do this? And if so, how? I use Visual Studio 2008, windows application, C#. ...

Hot Tags