from

How to be notified when a UIView detached from its superView?

It seems that the UIView has not methods like "didRemoveFromSuperview" or "willRemoveFromSuperview".Then,How to listen to the event when a UIView removed from its superView?I should use KVO? thanks in advance! ...

Modify Style from GWT

I executed but only FF and chrome moves the textarea 0px from top and 0px from left but in IE textarea is in default position. Here is my code: public class MyGWT implements EntryPoint { TextArea ta= TextArea.wrap(DOM.getElementById("t")); public void onModuleLoad() { ta.getElement().setAttribute("style", "position:absolu...

Dynamically Modify CSS from GWT

for example I have a css in test.css given below. .test { top:100px; } how can i increment top property from GWT ? ...

SSIS Import from Excel - dates in 21-Jun-10 format get inserted as NULL?

I have an SSIS import package that is bringing data into a SQL 2005 database. One of the columns has the date in the following format (dd-mmm-yy) and always gets inserted into the database as NULL. I've tried the destination column as smalldatetime, NVARCHAR, VARCHAR, and always comes in as NULL. I know if edit the column on the sheet...

I'm trying to remove empty items in listbox in C#

So i want to remove empty items in listbox like whitespace so Far I have this code. But the compiler is giving me an error for (int i = 0; i < listBox2.Items.Count; i++) { if (listBox2.Items[i].ToString = " "){//ERROR* listBox2.Items.RemoveAt(i); } } *Cannot convert method group 'ToString' to non-delegate type 'bool'. ...

import statement mess in python

I want to have a number of files imported in a general python file and then include that file when I need the imported modules in the current module. This of course will lead to errors and re-imports if using the from x import y, however when using the "normal" import statement I end up with long instruction statements, for example: x =...

Should I separate data from Facade Class?

I'm making a "back-end" engine of HomeCAD. I have a facade class that do many things. But should I separate data (like array of object) from that class? Many thanks ...

Opening a Jquery Dialog in the main window from iframe

Hello! I've been trying this for all day... I've a form in a iframe and this contains jquery validate for the form validation. I just want that when the data is invalid, the jquery dialog appears in the main page, appears in top.document. this is my code on iframe: $("#dialog-message", top.document).dialog({ ...

getting music player control in lock screen like Pandora app in iphone.

Hi. iphone Pandora app(in ios-4) supports controlling the audio from the lock screen like play,pause,next and prev. How to get the music player control action from the lock screen. can any one give me an idea about getting the actions of these control to native application from lock screen like pandora app. ...

SQL Update Using From

I know this is a contrived example so please do not jump all over me for the uselessness of the code. This is an issue in more complex chunk of code but I wanted to isolate the I am having. The error I am getting is 'SQL Error: ORA-00933: SQL command not properly ended'. Any ideas? I am using SQL Developer by the way. Once again...this...

How to hide kewwindow from view .

Hi, I am trying to hide UIWindow from view controller , NSArray *windows = [[UIApplication sharedApplication] windows]; if ([windows count] > 1) { UIWindow *moviePlayerWindow = [[UIApplication sharedApplication] keyWindow]; [moviePlayerWindow addSubview:CustomButton]; } But come back to view controller i am not able to h...

Flowplayer: Play an mp3 from a URL that doesn't end in .mp3

Hi, I'm pretty new to flowplayer and have been trying to get it to play an mp3 where the URL doesn't end with .mp3 but streams mp3 correctly. Could someone please give me some direction? This is how my code looks currently: flowplayer( "player", "flowplayer-3.2.2.swf", { plugins: { ...

SQLite - table order in FROM clause affects query plan, why? (no explicit joins here)

Question to SQLite database engine. I have fairly complex question, which finds path in directed graph between two sets of known nodes, with exactly one node between (to be precise, path in public transport routes, but it has graph representation). Now something unexpected - there are no explicit JOINs in question (only conditions in WH...

ok button in record Form plugin in extjs

how to get the updated records,i am overriding the on Ok function to save changes in form. 1.i just override the on ok function,but not able to get modified record.Ext.override(Ext.ux.grid.RecordForm , { onOK:function() { updateRecord1(); } }); function updateRecord1() {//alert('record'); var records =store.getModified...

Running c++ from Java problem

Hi Guys I need to compile and run a c++ program from java. I am using Process a = Runtime.getRuntime().exec ("g++ -g function.cpp -o function"); Process b = Runtime.getRuntime().exec ("./function"); the problem is that the output I get from the c++ program is not correct but If I compile and run it myself in the command line it works ...

Need to remove duplicates values from array during foreach

Hey All, Just wondering if you can help me out. I have a column with rows of tags. In each row i have each tag separated with a comma and space. for example: BMW M5, Leather Seats, 24 Inch Wheels, etc. What i need to do is loop through the array, explode it, and then print the values to the page. So far I have been able to do it; how...

MS Access query with dynamic from statements

Ok this is vexing me. I have a query I created with an in statement in the from clause. What I am looking to do is have a global variable populate that from statement. Example Select * Form query1 in <Global Variable filename> What is going on is I link to a file that has hundreds of linked table and queries in it. My database only ha...

PHP mail can't set from address

Though i have set the from address in header it again shows my server info as from address. [email protected] What is a possible solution? Here is my code <?php //Requests $name= $_REQUEST["name"]; $email= $_REQUEST["email"]; $phone = $_REQUEST["phone"]; $msg= $_REQUEST["message"]; //$to $to = '[email protected]';...

Drag And Drop from Java Swing Application to Windows Explorer

Hi, I have question about Drag And Drop in Java. I was able to to implement drag and drop files from Windows Explorer to Swing application. Now I need to oposite direction. I have JTable which contains Column with object type File. I just need to detect which file (files) are dragged and where in Windows Explorer. Thanks in advance. ...

getting large content while XML parsing

Hi all, I am parsing a xml file, in that i have one tag like content, in this tag there is large content more than 3000 characters, i have taken NSSring to set data and get data methods. when i print that content, it is not displaying anything, how can i get the data from xml. thank you Psudheer ...