question_id int64 4 6.31M | answer_id int64 7 6.31M | title stringlengths 9 150 | question_body stringlengths 0 28.8k | answer_body stringlengths 60 27.2k | question_text stringlengths 40 28.9k | combined_text stringlengths 124 39.6k | tags listlengths 1 6 | question_score int64 0 26.3k | answer_score int64 0 28.8k | view_count int64 15 14M | answer_count int64 0 182 | favorite_count int64 0 32 | question_creation_date stringdate 2008-07-31 21:42:52 2011-06-10 18:12:18 | answer_creation_date stringdate 2008-07-31 22:17:57 2011-06-10 18:14:17 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
6,196,680 | 6,196,754 | How to search file over LAN in java? | How to search file in other pc connected through lan in Java? | I wouldn't even try. I would execute a task at the remote node to search locally. You will regret this from both a performance point of view and a reliability point of view. In my experience it is a major mistake for applications to deal with remote file systems in any way whatsoever. | How to search file over LAN in java? How to search file in other pc connected through lan in Java? | TITLE:
How to search file over LAN in java?
QUESTION:
How to search file in other pc connected through lan in Java?
ANSWER:
I wouldn't even try. I would execute a task at the remote node to search locally. You will regret this from both a performance point of view and a reliability point of view. In my experience it ... | [
"java"
] | 0 | 1 | 498 | 1 | 0 | 2011-06-01T05:27:59.493000 | 2011-06-01T05:37:47.410000 |
6,196,692 | 6,196,740 | Jquery Highlight Effect Not Smooth | at this url the jquery highlight effect here does not fade out smoothly as it does in the docs. How can this be fixed? Thanks. It is simple code. $(document).ready(function(){
$('#content').effect("highlight", {color:"#0101DF"}, 1000); }); | Run it when the page is completely loaded. other stuff on the page are slowing down your animation window.onload = function(){ $('#content').effect("highlight", {color:"#0101DF"}, 1000); }; | Jquery Highlight Effect Not Smooth at this url the jquery highlight effect here does not fade out smoothly as it does in the docs. How can this be fixed? Thanks. It is simple code. $(document).ready(function(){
$('#content').effect("highlight", {color:"#0101DF"}, 1000); }); | TITLE:
Jquery Highlight Effect Not Smooth
QUESTION:
at this url the jquery highlight effect here does not fade out smoothly as it does in the docs. How can this be fixed? Thanks. It is simple code. $(document).ready(function(){
$('#content').effect("highlight", {color:"#0101DF"}, 1000); });
ANSWER:
Run it when the p... | [
"jquery",
"jquery-selectors"
] | 1 | 2 | 307 | 1 | 0 | 2011-06-01T05:29:31.507000 | 2011-06-01T05:36:24.267000 |
6,196,699 | 6,197,235 | "Clustered index" and "Order by Clause" | Is there any difference between Clustered Index and Order by Clause? I have to populate the Dropdown from the Master Table and following is the query. Select Id, Name from Table Order by Name Should I use the Order by Clause Or Clustered Index for the above task? EDIT Below is the schema of the table IF NOT EXISTS (SEL... | Apples and Oranges. A clustered index is a storage option. An ORDER BY is a query option. If you need ordered results, the only way to get them is to add an ORDER BY clause to your query. Period. An index may help the query optimizer generate a more efficient plan and leverage the index as a means to satisfy the ORDER ... | "Clustered index" and "Order by Clause" Is there any difference between Clustered Index and Order by Clause? I have to populate the Dropdown from the Master Table and following is the query. Select Id, Name from Table Order by Name Should I use the Order by Clause Or Clustered Index for the above task? EDIT Below is th... | TITLE:
"Clustered index" and "Order by Clause"
QUESTION:
Is there any difference between Clustered Index and Order by Clause? I have to populate the Dropdown from the Master Table and following is the query. Select Id, Name from Table Order by Name Should I use the Order by Clause Or Clustered Index for the above task... | [
"sql-server",
"sql-server-2005",
"sql-server-2008"
] | 11 | 20 | 13,998 | 5 | 0 | 2011-06-01T05:30:41.897000 | 2011-06-01T06:41:43.777000 |
6,196,707 | 6,197,050 | Copy records of one year to another year | I have three tables, State, City, and Village. State (PK_Id,Name,Year) City (PK_Id,Name,FK_StateId) Village (PK_Id,Name,Year,FK_CityId) PK means primary key and FK is foreign key. I want to copy every state of last year to new year, and every city of last year, and every village of last year. Is it possible? How can I ... | INSERT INTO State (Name, Year) SELECT S.Name, 2011 FROM State S WHERE S.Year = 2010
INSERT INTO City (Name, FK_StateId) SELECT C.Name, S_new.PK_Id FROM City C INNER JOIN State S_old ON C.FK_StateId = S_old.PK_Id AND S_old.Year = 2010 INNER JOIN State S_new ON S_old.Name = S_new.Name AND S_new.Year = 2011
INSERT INTO ... | Copy records of one year to another year I have three tables, State, City, and Village. State (PK_Id,Name,Year) City (PK_Id,Name,FK_StateId) Village (PK_Id,Name,Year,FK_CityId) PK means primary key and FK is foreign key. I want to copy every state of last year to new year, and every city of last year, and every village... | TITLE:
Copy records of one year to another year
QUESTION:
I have three tables, State, City, and Village. State (PK_Id,Name,Year) City (PK_Id,Name,FK_StateId) Village (PK_Id,Name,Year,FK_CityId) PK means primary key and FK is foreign key. I want to copy every state of last year to new year, and every city of last year,... | [
"sql",
"sql-server",
"sql-server-2005"
] | 1 | 1 | 158 | 2 | 0 | 2011-06-01T05:32:46.487000 | 2011-06-01T06:19:22.790000 |
6,196,710 | 6,197,002 | How to make a customized menu for Delphi's WebBrowser? | Is it possible to make a customized menu for the WebBrowser control? I want to disable some existing items and add some new items. | You can do this implementing the IDocHostUIHandler.ShowContextMenu method for the TWebBrowser Component, when you override this method, the TWebBrowser control will call your customized menu, check this article How to customize the TWebBrowser user interface (part 4 of 6) to learn how override this method from delphi a... | How to make a customized menu for Delphi's WebBrowser? Is it possible to make a customized menu for the WebBrowser control? I want to disable some existing items and add some new items. | TITLE:
How to make a customized menu for Delphi's WebBrowser?
QUESTION:
Is it possible to make a customized menu for the WebBrowser control? I want to disable some existing items and add some new items.
ANSWER:
You can do this implementing the IDocHostUIHandler.ShowContextMenu method for the TWebBrowser Component, wh... | [
"delphi",
"menu",
"browser"
] | 4 | 5 | 1,769 | 1 | 0 | 2011-06-01T05:33:06.670000 | 2011-06-01T06:14:14.113000 |
6,196,711 | 6,196,735 | How to go about indexing 300,000 text files for search? | I have a static collection of over 300,000 text and html files. I want to be able to search them for words, exact phrases, and ideally regex patterns. I want the searches to be fast. I think searching for words and phrases can be done by looking up a dictionary of unique words referencing to the files that contain each... | Consider Lucene http://lucene.apache.org/java/docs/index.html | How to go about indexing 300,000 text files for search? I have a static collection of over 300,000 text and html files. I want to be able to search them for words, exact phrases, and ideally regex patterns. I want the searches to be fast. I think searching for words and phrases can be done by looking up a dictionary of... | TITLE:
How to go about indexing 300,000 text files for search?
QUESTION:
I have a static collection of over 300,000 text and html files. I want to be able to search them for words, exact phrases, and ideally regex patterns. I want the searches to be fast. I think searching for words and phrases can be done by looking ... | [
"database",
"search"
] | 2 | 4 | 1,086 | 4 | 0 | 2011-06-01T05:33:09.660000 | 2011-06-01T05:35:36.610000 |
6,196,717 | 6,203,032 | How to get a Listener in Eclipse FormPage | I am adding 3 pages inside an editor through Eclipse's FormPage. Now on selecting each page I want a listener to get fired. I tried to implement IPageListener in each page class, but none of them responded me. How to get the listener while selecting any page in eclipse FormPage? I have made a FormEditor class, public c... | When your form page is instantiated, you need to add it to something in order to get notified of page changes. In MultiPageEditorPart they use org.eclipse.jface.dialogs.IPageChangedListener. formEditor.addPageChangedListener(page); | How to get a Listener in Eclipse FormPage I am adding 3 pages inside an editor through Eclipse's FormPage. Now on selecting each page I want a listener to get fired. I tried to implement IPageListener in each page class, but none of them responded me. How to get the listener while selecting any page in eclipse FormPage... | TITLE:
How to get a Listener in Eclipse FormPage
QUESTION:
I am adding 3 pages inside an editor through Eclipse's FormPage. Now on selecting each page I want a listener to get fired. I tried to implement IPageListener in each page class, but none of them responded me. How to get the listener while selecting any page i... | [
"eclipse",
"eclipse-plugin"
] | 1 | 1 | 701 | 1 | 0 | 2011-06-01T05:33:56.123000 | 2011-06-01T14:43:31.653000 |
6,196,719 | 6,197,026 | Error when using Integer/parseInt with map in Clojure | I'm learning Clojure and am confused by the following: (vector "1");; returns ["1"]
(map vector '("1" "2" "3"));; returns (["1"] ["2"] ["3"]) However: (Integer/parseInt "1");; returns 1
(map Integer/parseInt '("1" "2" "3"));; throws error "Unable to find static field: parseInt in class java.lang.Integer" Instead, I n... | You have to wrap it in #() or (fn...). This is because Integer/parseInt is a Java method and Java methods can't be passed around. They don't implement the IFn interface. Clojure is built on Java and sometimes this leaks through, and this is one of those cases. | Error when using Integer/parseInt with map in Clojure I'm learning Clojure and am confused by the following: (vector "1");; returns ["1"]
(map vector '("1" "2" "3"));; returns (["1"] ["2"] ["3"]) However: (Integer/parseInt "1");; returns 1
(map Integer/parseInt '("1" "2" "3"));; throws error "Unable to find static fi... | TITLE:
Error when using Integer/parseInt with map in Clojure
QUESTION:
I'm learning Clojure and am confused by the following: (vector "1");; returns ["1"]
(map vector '("1" "2" "3"));; returns (["1"] ["2"] ["3"]) However: (Integer/parseInt "1");; returns 1
(map Integer/parseInt '("1" "2" "3"));; throws error "Unable... | [
"clojure",
"type-conversion"
] | 19 | 23 | 3,477 | 3 | 0 | 2011-06-01T05:34:18.460000 | 2011-06-01T06:17:27.103000 |
6,196,721 | 6,196,792 | How to code an all browser supportable HTML project? | I created a site for my company, but it does not support all browsers. Opera is supported correctly, but others are not supported. In Chrome the header table does not display correctly. In Mozilla the picture marque show few pictures only. Click here.... to view my site.... | I am not exactly sure where you got your source code from, but it's a terrible mess: http://validator.w3.org/check?uri=http%3A%2F%2Fwww.mcubicsolutions.com%2F&charset=%28detect+automatically%29&doctype=Inline&group=0 Fix it, and you should have less trouble with different browsers. Or consider using a CMS like Joomla, ... | How to code an all browser supportable HTML project? I created a site for my company, but it does not support all browsers. Opera is supported correctly, but others are not supported. In Chrome the header table does not display correctly. In Mozilla the picture marque show few pictures only. Click here.... to view my s... | TITLE:
How to code an all browser supportable HTML project?
QUESTION:
I created a site for my company, but it does not support all browsers. Opera is supported correctly, but others are not supported. In Chrome the header table does not display correctly. In Mozilla the picture marque show few pictures only. Click her... | [
"html"
] | 0 | 1 | 139 | 2 | 0 | 2011-06-01T05:34:29.880000 | 2011-06-01T05:43:40.373000 |
6,196,725 | 6,199,172 | How does the CSS Block Formatting Context work? | How does the CSS Block Formatting Context work? CSS2.1 specifications says that in a block formatting context, boxes are laid out vertically, starting at the top. This happens even if there are floated elements in the way, except if the block box established a new block formatting context. As we know, when browsers ren... | Block Formatting Contexts Floats, absolutely positioned elements, block containers (such as inline-blocks, table-cells, and table-captions) that are not block boxes, and block boxes with 'overflow' other than 'visible' (except when that value has been propagated to the viewport) establish new block formatting contexts ... | How does the CSS Block Formatting Context work? How does the CSS Block Formatting Context work? CSS2.1 specifications says that in a block formatting context, boxes are laid out vertically, starting at the top. This happens even if there are floated elements in the way, except if the block box established a new block f... | TITLE:
How does the CSS Block Formatting Context work?
QUESTION:
How does the CSS Block Formatting Context work? CSS2.1 specifications says that in a block formatting context, boxes are laid out vertically, starting at the top. This happens even if there are floated elements in the way, except if the block box establi... | [
"css"
] | 85 | 131 | 22,396 | 1 | 0 | 2011-06-01T05:35:07.327000 | 2011-06-01T09:41:27.687000 |
6,196,737 | 6,196,760 | Generating IL for .Net Platform | I’m writing a small compiler in C# and planning to generate IL instructions for.Net platform using System.Reflection.Emit. My question is, it is advisable to use System.Reflection.Emit for generating IL for production compilers. If it is not advisable to use System.Reflection.Emit for generating IL for production compi... | System.Reflection.Emit is fine for production compilers, though you may want to take a look at mono-cecil. | Generating IL for .Net Platform I’m writing a small compiler in C# and planning to generate IL instructions for.Net platform using System.Reflection.Emit. My question is, it is advisable to use System.Reflection.Emit for generating IL for production compilers. If it is not advisable to use System.Reflection.Emit for ge... | TITLE:
Generating IL for .Net Platform
QUESTION:
I’m writing a small compiler in C# and planning to generate IL instructions for.Net platform using System.Reflection.Emit. My question is, it is advisable to use System.Reflection.Emit for generating IL for production compilers. If it is not advisable to use System.Refl... | [
"c#",
"compiler-construction",
"il"
] | 5 | 8 | 2,990 | 4 | 0 | 2011-06-01T05:35:46.493000 | 2011-06-01T05:38:37.247000 |
6,196,738 | 6,198,138 | RichEdit's EM_AUTOURLDETECT message recognizes link, but I can't click it | I have a RichEdit control in a dialog box. The RichEdit control displays RTF text. EM_AUTOURLDETECT causes the RichEdit control to properly format and recognize the hyperlink. When the mouse hovers over the link, the pointer changes to a hand, but the browser doesn't launch once the link is clicked. Am I missing some k... | You can try something like this: case WM_NOTIFY: switch (((LPNMHDR)lParam)->code) { case EN_LINK: ENLINK * enLinkInfo = (ENLINK *)lParam;
if (enLinkInfo->msg == WM_LBUTTONUP) { // code which gets clicked URL using enLinkInfo->chrg and saves it in // "urlString"
ShellExecute(NULL, "open", urlString, NULL, NULL, SW_SHO... | RichEdit's EM_AUTOURLDETECT message recognizes link, but I can't click it I have a RichEdit control in a dialog box. The RichEdit control displays RTF text. EM_AUTOURLDETECT causes the RichEdit control to properly format and recognize the hyperlink. When the mouse hovers over the link, the pointer changes to a hand, bu... | TITLE:
RichEdit's EM_AUTOURLDETECT message recognizes link, but I can't click it
QUESTION:
I have a RichEdit control in a dialog box. The RichEdit control displays RTF text. EM_AUTOURLDETECT causes the RichEdit control to properly format and recognize the hyperlink. When the mouse hovers over the link, the pointer cha... | [
"c++",
"winapi",
"visual-c++",
"richedit"
] | 1 | 3 | 2,187 | 2 | 0 | 2011-06-01T05:35:55.073000 | 2011-06-01T08:12:35.737000 |
6,196,741 | 6,196,785 | How to find the number of newlines and word separated by "," in Java? | My string variable contains a String, each on a different line. How do I find the number of new lines in it, and then each word separated by a, delimiter on a particular string line? The variable content is something like below null37,Abhishek,ARS,b,ABC,Development,2011-05-30 00:00:00.0,abhishek123@cjb.net null38,Abhis... | To get the number of newlines do int newLines = myString.split("\\r?\\n").length; To get each word separated by a comma do String[] words = myString.split(","); | How to find the number of newlines and word separated by "," in Java? My string variable contains a String, each on a different line. How do I find the number of new lines in it, and then each word separated by a, delimiter on a particular string line? The variable content is something like below null37,Abhishek,ARS,b,... | TITLE:
How to find the number of newlines and word separated by "," in Java?
QUESTION:
My string variable contains a String, each on a different line. How do I find the number of new lines in it, and then each word separated by a, delimiter on a particular string line? The variable content is something like below null... | [
"java",
"groovy"
] | 0 | 4 | 421 | 4 | 0 | 2011-06-01T05:36:33.020000 | 2011-06-01T05:42:23.783000 |
6,196,746 | 6,213,078 | How to keep my test methods with proguard.cfg | For my Android instrumentation test I need a few extra entry point into my classes. Those methods are not used in the actual application. My idea was to start them all with test_ and have a general rule to exclude them from being optimized away. This is how far I got: -keepclassmembers class com.xxx.**.* { public ** te... | The solution is -keepclassmembers class com.XXX.**.* { *** test_* (...); } | How to keep my test methods with proguard.cfg For my Android instrumentation test I need a few extra entry point into my classes. Those methods are not used in the actual application. My idea was to start them all with test_ and have a general rule to exclude them from being optimized away. This is how far I got: -keep... | TITLE:
How to keep my test methods with proguard.cfg
QUESTION:
For my Android instrumentation test I need a few extra entry point into my classes. Those methods are not used in the actual application. My idea was to start them all with test_ and have a general rule to exclude them from being optimized away. This is ho... | [
"android",
"proguard"
] | 0 | 4 | 1,030 | 2 | 0 | 2011-06-01T05:37:11.897000 | 2011-06-02T10:06:58.753000 |
6,196,749 | 6,197,071 | Invalid privilege error? | Two related applications use a function in a package in several queries to return some data as CSV. The column being selected and concatenated is a CLOB field and can contain HTML, special characters, etc. The applications have few users and so are not heavily used. One is a Flex application that consumes Oracle HTTP s... | If the client applications were running "SELECT clob_to_csv(clob_col) FROM..." and it returned an invalid privilege SOMETIMES, then it is probably something the function is trying to do, rather than the select statement not having sufficient privilege to execute the function. Not quite clear on what it might do that ma... | Invalid privilege error? Two related applications use a function in a package in several queries to return some data as CSV. The column being selected and concatenated is a CLOB field and can contain HTML, special characters, etc. The applications have few users and so are not heavily used. One is a Flex application th... | TITLE:
Invalid privilege error?
QUESTION:
Two related applications use a function in a package in several queries to return some data as CSV. The column being selected and concatenated is a CLOB field and can contain HTML, special characters, etc. The applications have few users and so are not heavily used. One is a F... | [
"oracle",
"function",
"clob",
"ora-01031",
"ora-06512"
] | 1 | 1 | 866 | 1 | 0 | 2011-06-01T05:37:21.313000 | 2011-06-01T06:22:20.900000 |
6,196,752 | 6,200,045 | Inserting set of controls at runtime is extremely slow | We have a point-of-sale application and in this application we have a scrollbox container. If the seller selects a product, then a new product row is created and inserted into the scrollbox. The product row component is a frame - textboxes, buttons and labels in it. But here's a little problem by inserting this product... | TScrollBox doesn't have BeginUpdate/EndUpdate, but you can get the same effect using WM_SETREDRAW messages. I would probably avoid more heavy handed methods like LockWindowUpdate. SendMessage(ScrollBox1.Handle, WM_SETREDRAW, 0, 0); try // add controls to scrollbox // set scrollbox height finally SendMessage(ScrollBox1.... | Inserting set of controls at runtime is extremely slow We have a point-of-sale application and in this application we have a scrollbox container. If the seller selects a product, then a new product row is created and inserted into the scrollbox. The product row component is a frame - textboxes, buttons and labels in it... | TITLE:
Inserting set of controls at runtime is extremely slow
QUESTION:
We have a point-of-sale application and in this application we have a scrollbox container. If the seller selects a product, then a new product row is created and inserted into the scrollbox. The product row component is a frame - textboxes, button... | [
"delphi",
"user-interface",
"controls",
"delphi-xe"
] | 4 | 11 | 3,264 | 3 | 0 | 2011-06-01T05:37:31.600000 | 2011-06-01T10:57:17.173000 |
6,196,753 | 6,196,793 | Removing complete node from the XML stored in string type variable using C# before loading in XMLDocument | I have got the XML below, which is stored in string type variable, and I am using.NET 2.0: Now, before loading it to my XMLDocument, I want to load only those "Item" nodes which are having Title="07" and does not contain "EKTA" in the title. And the C# code to do this is given below: //Creating the object of Publicatin... | You could use LINQ to XML: var xdocument = XDocument.Parse(xml);
var nodes = xdocument.Descendants(XName.Get("Item", "http://www.tridion.com/ContentManager/5.0")).Where(arg => arg.Attribute("Title").Value.Contains("07") &&!arg.Attribute("Title").Value.Contains("EKTA")).ToList(); Or with LINQ syntax: var nodes = ( from... | Removing complete node from the XML stored in string type variable using C# before loading in XMLDocument I have got the XML below, which is stored in string type variable, and I am using.NET 2.0: Now, before loading it to my XMLDocument, I want to load only those "Item" nodes which are having Title="07" and does not c... | TITLE:
Removing complete node from the XML stored in string type variable using C# before loading in XMLDocument
QUESTION:
I have got the XML below, which is stored in string type variable, and I am using.NET 2.0: Now, before loading it to my XMLDocument, I want to load only those "Item" nodes which are having Title="... | [
"c#",
"xml",
"xpath",
".net-2.0",
"linq-to-xml"
] | 1 | 2 | 220 | 1 | 0 | 2011-06-01T05:37:38.967000 | 2011-06-01T05:43:42.503000 |
6,196,755 | 6,196,817 | Is there a cost to "const"? | Compilers can sometime exploit the fact that some 'variable' is a constant for optimization, so it's generally a good idea to use the "const" keyword when you can, but is there a tradeoff? In short, is there a situation where using "const" might actually make the code slower (even a tiny bit)? | The const keyword is used only during compile-time. After the code is compiled the variable is just an address in the memory, without any special protection. There is some difference, however - global const variables will be placed in the text segment, not the data (if initialized) or bss (if uninitialized). If the tex... | Is there a cost to "const"? Compilers can sometime exploit the fact that some 'variable' is a constant for optimization, so it's generally a good idea to use the "const" keyword when you can, but is there a tradeoff? In short, is there a situation where using "const" might actually make the code slower (even a tiny bit... | TITLE:
Is there a cost to "const"?
QUESTION:
Compilers can sometime exploit the fact that some 'variable' is a constant for optimization, so it's generally a good idea to use the "const" keyword when you can, but is there a tradeoff? In short, is there a situation where using "const" might actually make the code slowe... | [
"c",
"performance",
"optimization",
"constants"
] | 5 | 9 | 794 | 4 | 0 | 2011-06-01T05:38:09.563000 | 2011-06-01T05:46:37.687000 |
6,196,758 | 6,196,771 | Get location name by giving ZIP codes | I need to display the location and city name when a user enters a ZIP Code. How do I get the corresponding location names? | I would use a website like http://www.zipinfo.com/search/zipcode.htm and just send the zipcode to that, retrieve the input, parse for the city name, easy as that. | Get location name by giving ZIP codes I need to display the location and city name when a user enters a ZIP Code. How do I get the corresponding location names? | TITLE:
Get location name by giving ZIP codes
QUESTION:
I need to display the location and city name when a user enters a ZIP Code. How do I get the corresponding location names?
ANSWER:
I would use a website like http://www.zipinfo.com/search/zipcode.htm and just send the zipcode to that, retrieve the input, parse fo... | [
"c#",
"rss",
"weather",
"zipcode"
] | 3 | 3 | 7,599 | 6 | 0 | 2011-06-01T05:38:26.827000 | 2011-06-01T05:40:39.767000 |
6,196,761 | 6,196,823 | Problem with releasing of object | I have navigation application with 3 levels of hierarchy. My first level is tabel view controller. The nib file of this controller is "TableView". I have problem here. My code is this: RootViewController #import "RootViewController.h" #import "SubCategory.h" #import "OffersViewController.h"
@implementation RootViewCon... | Here's the problem: NSMutableArray *namesArray = [[NSMutableArray alloc] initWithCapacity:[subCategories count]]; NSMutableArray* idArray = [[NSMutableArray alloc] initWithCapacity:[subCategories count]];...
subCategoryId = [NSArray arrayWithArray:idArray]; subCategoryName = [NSArray arrayWithArray:namesArray];
[idAr... | Problem with releasing of object I have navigation application with 3 levels of hierarchy. My first level is tabel view controller. The nib file of this controller is "TableView". I have problem here. My code is this: RootViewController #import "RootViewController.h" #import "SubCategory.h" #import "OffersViewControlle... | TITLE:
Problem with releasing of object
QUESTION:
I have navigation application with 3 levels of hierarchy. My first level is tabel view controller. The nib file of this controller is "TableView". I have problem here. My code is this: RootViewController #import "RootViewController.h" #import "SubCategory.h" #import "O... | [
"iphone",
"objective-c",
"ios4",
"memory-management"
] | 0 | 1 | 394 | 2 | 0 | 2011-06-01T05:38:50.273000 | 2011-06-01T05:47:09.697000 |
6,196,764 | 6,197,310 | iphone NSDate Problem | Following code I can use for storing the value of UILabel into a string. And Value of string is store into NSDate. NSString *star = [[NSString alloc]init]; star = lbtInDate.text; NSString *end = [[NSString alloc]init]; end = lblOutDate.text; NSDateFormatter *dateFormatter1=[[NSDateFormatter alloc]init]; [dateFormatter1... | Your code is perfectly valid only the lbtInDate.text; and lblOutDate.text; respect the date format. If not your NSDate's will be null. If lblOutDate.text; is something like @"2002-12-23", your date format should be @"yyyy-MM-dd" and so on. Data Formatting Guide | iphone NSDate Problem Following code I can use for storing the value of UILabel into a string. And Value of string is store into NSDate. NSString *star = [[NSString alloc]init]; star = lbtInDate.text; NSString *end = [[NSString alloc]init]; end = lblOutDate.text; NSDateFormatter *dateFormatter1=[[NSDateFormatter alloc]... | TITLE:
iphone NSDate Problem
QUESTION:
Following code I can use for storing the value of UILabel into a string. And Value of string is store into NSDate. NSString *star = [[NSString alloc]init]; star = lbtInDate.text; NSString *end = [[NSString alloc]init]; end = lblOutDate.text; NSDateFormatter *dateFormatter1=[[NSDa... | [
"iphone",
"nsdate"
] | 0 | 1 | 182 | 1 | 0 | 2011-06-01T05:38:57.927000 | 2011-06-01T06:49:36.430000 |
6,196,767 | 6,197,105 | seek a better design suggestion for a trial-and-error mechanism in python? | See below data matrix get from sensors, just INT numbers, nothing specical. A B C D E F G H I J K 1 25 0 25 66 41 47 40 12 69 76 1 2 17 23 73 97 99 39 84 26 0 44 45 3 34 15 55 4 77 2 96 92 22 18 71 4 85 4 71 99 66 42 28 41 27 39 75 5 65 27 28 95 82 56 23 44 97 42 38 … 10 95 13 4 10 50 78 4 52 51 86 20 11 71 12 32 9 2 4... | If I understand what you're asking correctly, I probably wouldn't even venture down the Numbpy path as I don't think given your description that it's really required. Here's a sample implementation of how I might go about solving the specific issue that you presented: l = [\ {'a':25, 'b':0, 'c':25, 'd':66, 'e':41, 'f':... | seek a better design suggestion for a trial-and-error mechanism in python? See below data matrix get from sensors, just INT numbers, nothing specical. A B C D E F G H I J K 1 25 0 25 66 41 47 40 12 69 76 1 2 17 23 73 97 99 39 84 26 0 44 45 3 34 15 55 4 77 2 96 92 22 18 71 4 85 4 71 99 66 42 28 41 27 39 75 5 65 27 28 95... | TITLE:
seek a better design suggestion for a trial-and-error mechanism in python?
QUESTION:
See below data matrix get from sensors, just INT numbers, nothing specical. A B C D E F G H I J K 1 25 0 25 66 41 47 40 12 69 76 1 2 17 23 73 97 99 39 84 26 0 44 45 3 34 15 55 4 77 2 96 92 22 18 71 4 85 4 71 99 66 42 28 41 27 3... | [
"python",
"functional-programming",
"calculus"
] | 1 | 1 | 932 | 2 | 0 | 2011-06-01T05:39:41.263000 | 2011-06-01T06:26:13.857000 |
6,196,770 | 6,196,884 | datagridview export to excel | I could export data of datagridview to excel. But the actual format of datagridview was not exported i.e., font, color and space. So, is there any best way to export datagridview to excel i.e. not only data but also the look. The sample look is this: | Try CSV export private void ToCsV(DataGridView dGV, string filename) { string separator = ","; StringBuilder stOutput = new StringBuilder(); // Export titles: StringBuilder sHeaders = new StringBuilder(); for (int j = 0; j < dGV.Columns.Count; j++) { sHeaders.Append(dGV.Columns[j].HeaderText); sHeaders.Append(separator... | datagridview export to excel I could export data of datagridview to excel. But the actual format of datagridview was not exported i.e., font, color and space. So, is there any best way to export datagridview to excel i.e. not only data but also the look. The sample look is this: | TITLE:
datagridview export to excel
QUESTION:
I could export data of datagridview to excel. But the actual format of datagridview was not exported i.e., font, color and space. So, is there any best way to export datagridview to excel i.e. not only data but also the look. The sample look is this:
ANSWER:
Try CSV expor... | [
"c#"
] | 8 | 6 | 5,307 | 2 | 0 | 2011-06-01T05:39:59.087000 | 2011-06-01T05:57:02.970000 |
6,196,776 | 6,197,118 | Android: Get Installed Shortcuts | I have seen ways to make shortcuts, but I need to find a way to get a list of shortcuts installed on the phone. I want my user to be able to select one of his/her shortcuts and launch it from my application. Is there a way to do this (an API) or will I need a reflection method to call a system service? | The shortcuts are private to Launcher. There is no API, and anything you try to do will be very fragile as different launcher implementations (and versions) will have different storage structures. | Android: Get Installed Shortcuts I have seen ways to make shortcuts, but I need to find a way to get a list of shortcuts installed on the phone. I want my user to be able to select one of his/her shortcuts and launch it from my application. Is there a way to do this (an API) or will I need a reflection method to call a... | TITLE:
Android: Get Installed Shortcuts
QUESTION:
I have seen ways to make shortcuts, but I need to find a way to get a list of shortcuts installed on the phone. I want my user to be able to select one of his/her shortcuts and launch it from my application. Is there a way to do this (an API) or will I need a reflectio... | [
"android",
"shortcut",
"picker"
] | 9 | 2 | 6,974 | 4 | 0 | 2011-06-01T05:41:07.497000 | 2011-06-01T06:27:54.767000 |
6,196,791 | 6,201,265 | To concatenate the binary matrix of different size | Let Data be a non-negative matrix of of size n x 2. Now the Data matrix is divided into Data_1 of size n1 x 2 and Data_2 of size n2 x 2. A row in Data may belong Either Data_1 or Data_2 Data_1 and Data_2 Neither Data_1 nor Data_2 Corresponding to Data_1 and Data_2 matrix we have binary matrix DataIndicator1 of size n1 ... | If there are no repeated rows in any of your arrays, there is a straightforward answer using ISMEMBER: [tf1,idx1] = ismember(data,data_1,'rows'); %# find where the rows of data_1 are in data [tf2,idx2] = ismember(data,data_2,'rows'); %# find where the rows of data_2 are in data
n = size(data,1); k1 = size(dataIndicato... | To concatenate the binary matrix of different size Let Data be a non-negative matrix of of size n x 2. Now the Data matrix is divided into Data_1 of size n1 x 2 and Data_2 of size n2 x 2. A row in Data may belong Either Data_1 or Data_2 Data_1 and Data_2 Neither Data_1 nor Data_2 Corresponding to Data_1 and Data_2 matr... | TITLE:
To concatenate the binary matrix of different size
QUESTION:
Let Data be a non-negative matrix of of size n x 2. Now the Data matrix is divided into Data_1 of size n1 x 2 and Data_2 of size n2 x 2. A row in Data may belong Either Data_1 or Data_2 Data_1 and Data_2 Neither Data_1 nor Data_2 Corresponding to Data... | [
"matlab"
] | 0 | 3 | 387 | 1 | 0 | 2011-06-01T05:43:37.700000 | 2011-06-01T12:37:56.193000 |
6,196,795 | 6,196,906 | Eclipse: How to jump to last edit location in current editor? | Ctrl+Q may redirect to another editor, but I want to stay with current one but jump to place of last edit, for currently opened editor. Is it possible? Maybe some plugins could do this? | Uhm, as in, undo and then redo. That is, press Ctrl + Z, and then Ctrl + Y. | Eclipse: How to jump to last edit location in current editor? Ctrl+Q may redirect to another editor, but I want to stay with current one but jump to place of last edit, for currently opened editor. Is it possible? Maybe some plugins could do this? | TITLE:
Eclipse: How to jump to last edit location in current editor?
QUESTION:
Ctrl+Q may redirect to another editor, but I want to stay with current one but jump to place of last edit, for currently opened editor. Is it possible? Maybe some plugins could do this?
ANSWER:
Uhm, as in, undo and then redo. That is, pres... | [
"eclipse"
] | 16 | 11 | 9,130 | 3 | 0 | 2011-06-01T05:44:11.120000 | 2011-06-01T05:59:25.763000 |
6,196,800 | 6,196,863 | Error: Caused by: java.lang.IllegalArgumentException: column '_id' does not exist | the Events class package org.examples.events;
import android.app.ListActivity; import android.content.ContentValues; import android.widget.SimpleCursorAdapter; import android.database.Cursor; import android.database.sqlite.SQLiteDatabase; import android.os.Bundle; import android.widget.TextView; import static org.exam... | in Events, you have a import android.provider.BaseColumns._ID; instead of the overridden org.examples.events.Constants._ID; | Error: Caused by: java.lang.IllegalArgumentException: column '_id' does not exist the Events class package org.examples.events;
import android.app.ListActivity; import android.content.ContentValues; import android.widget.SimpleCursorAdapter; import android.database.Cursor; import android.database.sqlite.SQLiteDatabase... | TITLE:
Error: Caused by: java.lang.IllegalArgumentException: column '_id' does not exist
QUESTION:
the Events class package org.examples.events;
import android.app.ListActivity; import android.content.ContentValues; import android.widget.SimpleCursorAdapter; import android.database.Cursor; import android.database.sql... | [
"android"
] | 0 | 0 | 2,093 | 1 | 0 | 2011-06-01T05:44:48.417000 | 2011-06-01T05:53:30.177000 |
6,196,810 | 6,196,966 | Messaging app on the WP7 | I was wondering if it is possible to develop a text messaging kind of application similar to WhatsApp, but for between WP7 devices? What difficulty programming skill level am I looking at and what would be required to develop such an app? Thanks! | In general I don't think it will be really difficult to build an app like WhatsApp. (Although I only heard about the funcationality) So I will give you the information I think you should have at a minimum. In the first place you need your WP7 app, which I think should have push notifications to notify users about new m... | Messaging app on the WP7 I was wondering if it is possible to develop a text messaging kind of application similar to WhatsApp, but for between WP7 devices? What difficulty programming skill level am I looking at and what would be required to develop such an app? Thanks! | TITLE:
Messaging app on the WP7
QUESTION:
I was wondering if it is possible to develop a text messaging kind of application similar to WhatsApp, but for between WP7 devices? What difficulty programming skill level am I looking at and what would be required to develop such an app? Thanks!
ANSWER:
In general I don't th... | [
"windows-phone-7",
"instant-messaging"
] | 0 | 0 | 291 | 2 | 0 | 2011-06-01T05:46:15.283000 | 2011-06-01T06:07:55.057000 |
6,196,820 | 6,197,405 | Node takes very long time to response to the JSON request | I've implemented the chat application using node.js. The program open the connection with the client and it'll response the new message when the EventEmitter emit "recv" event. The problem is it takes very long time to response to other request when the server hold about 3 or 4 more streams. The chrome developer tool s... | Chrome supports six simultaneous connections per domain, so if those are already in use, it will have to wait for one to close. If you want to know what's going on, use a packet capture program to check the actual network traffic. | Node takes very long time to response to the JSON request I've implemented the chat application using node.js. The program open the connection with the client and it'll response the new message when the EventEmitter emit "recv" event. The problem is it takes very long time to response to other request when the server h... | TITLE:
Node takes very long time to response to the JSON request
QUESTION:
I've implemented the chat application using node.js. The program open the connection with the client and it'll response the new message when the EventEmitter emit "recv" event. The problem is it takes very long time to response to other request... | [
"node.js"
] | 1 | 3 | 1,452 | 2 | 0 | 2011-06-01T05:46:56.030000 | 2011-06-01T06:59:58.763000 |
6,196,825 | 6,196,869 | Avoid grabbing nothing from string stream | I'm working on an assembler for a very basic ISA. Currently I'm implementing parser function and I'm using a string stream to grab words from lines. Here's an example of the assembly code:; This program counts from 10 to 0.ORIG x3000 LEA R0, TEN; This instruction will be loaded into memory location x3000 LDW R1, R0, #0... | The stream's error flags only get set after the condition (such as reaching the end of the stream) has occurred. Try replacing your loop condition with: while(ss >> token) { // Push it onto the words vector words.push_back(token);
// If all we got was nothing, it's an empty line if(token == "") { code = make_tuple(EMP... | Avoid grabbing nothing from string stream I'm working on an assembler for a very basic ISA. Currently I'm implementing parser function and I'm using a string stream to grab words from lines. Here's an example of the assembly code:; This program counts from 10 to 0.ORIG x3000 LEA R0, TEN; This instruction will be loaded... | TITLE:
Avoid grabbing nothing from string stream
QUESTION:
I'm working on an assembler for a very basic ISA. Currently I'm implementing parser function and I'm using a string stream to grab words from lines. Here's an example of the assembly code:; This program counts from 10 to 0.ORIG x3000 LEA R0, TEN; This instruct... | [
"c++",
"parsing",
"string",
"stringstream"
] | 2 | 5 | 302 | 1 | 0 | 2011-06-01T05:47:23.333000 | 2011-06-01T05:54:37.357000 |
6,196,846 | 6,196,908 | Android: Animating a popup menu automatically | How can we set the timer so that after completion of an Image-view animation, a pop up menu should come from bottom automatically with out the user intervention. Help is always appreciated......! here is the code AnimationDrawable ekgframeAnimation4 = (AnimationDrawable) ekgimgview4.getBackground();
if (ekgframeAnimat... | Do a View.postDelayed call and in the Runnable call openOptionsMenu. EDIT: if your animation lasts 1000 milliseconds and there is a View with the id R.id.exampleview, then something like this: findViewById(R.id.exampleview).postDelayed(new Runnable() { public void run() { openOptionsMenu(); } }, 1000); should do it. Le... | Android: Animating a popup menu automatically How can we set the timer so that after completion of an Image-view animation, a pop up menu should come from bottom automatically with out the user intervention. Help is always appreciated......! here is the code AnimationDrawable ekgframeAnimation4 = (AnimationDrawable) ek... | TITLE:
Android: Animating a popup menu automatically
QUESTION:
How can we set the timer so that after completion of an Image-view animation, a pop up menu should come from bottom automatically with out the user intervention. Help is always appreciated......! here is the code AnimationDrawable ekgframeAnimation4 = (Ani... | [
"android",
"menu",
"popup"
] | 0 | 0 | 1,245 | 1 | 0 | 2011-06-01T05:50:47.963000 | 2011-06-01T05:59:33.393000 |
6,196,860 | 6,196,903 | Pushing Android app updates on getjar.com | I plan to publish my Android app on getjar.com. However, I am unable to see how the user would be notified of any updates. Does GetJar support app updates (i.e. would the user be notified of app updates when new versions are uploaded to getjar.com?) | No, getjar doesn't but you can notify the user in the app that the update is available to download from getjar.You can set time in your app e.g after 24hrs check the server for updates. | Pushing Android app updates on getjar.com I plan to publish my Android app on getjar.com. However, I am unable to see how the user would be notified of any updates. Does GetJar support app updates (i.e. would the user be notified of app updates when new versions are uploaded to getjar.com?) | TITLE:
Pushing Android app updates on getjar.com
QUESTION:
I plan to publish my Android app on getjar.com. However, I am unable to see how the user would be notified of any updates. Does GetJar support app updates (i.e. would the user be notified of app updates when new versions are uploaded to getjar.com?)
ANSWER:
N... | [
"android"
] | 2 | 1 | 4,866 | 2 | 0 | 2011-06-01T05:53:10.337000 | 2011-06-01T05:59:13.877000 |
6,196,870 | 6,196,909 | How to correctly implement a custom initializer for a subclassed NSManagedObject | I am wondering what the correct way is to create my own initializer of a class that is subclassing NSManagedObject. Currently I am initializing like this: -(id)initWithXML:(TBXMLElement *)videoXML { // Setup the environment for dealing with Core Data and managed objects HenryHubAppDelegate *appDelegate = [[UIApplicatio... | Just found that the NSManagedObject reference says: If you instantiate a managed object directly, you must call the designated initializer (initWithEntity:insertIntoManagedObjectContext:). | How to correctly implement a custom initializer for a subclassed NSManagedObject I am wondering what the correct way is to create my own initializer of a class that is subclassing NSManagedObject. Currently I am initializing like this: -(id)initWithXML:(TBXMLElement *)videoXML { // Setup the environment for dealing wit... | TITLE:
How to correctly implement a custom initializer for a subclassed NSManagedObject
QUESTION:
I am wondering what the correct way is to create my own initializer of a class that is subclassing NSManagedObject. Currently I am initializing like this: -(id)initWithXML:(TBXMLElement *)videoXML { // Setup the environme... | [
"iphone",
"objective-c",
"ios",
"core-data",
"nsmanagedobject"
] | 1 | 0 | 330 | 1 | 0 | 2011-06-01T05:54:43.897000 | 2011-06-01T05:59:47.467000 |
6,196,878 | 6,196,942 | Equivalent for drop table table_name cascade constraints in SQL Server | My question is that in Oracle we can use drop table table_name cascade constraints to drop a referenced table object. How can I achieve the same in SQL Server? | As I know there is not one command in MsSql, but you can use INFORMATION_SCHEMA and dynamic SQL. Something like this: DECLARE @database nvarchar(50) DECLARE @table nvarchar(50)
set @database = 'MyDatabase' set @table = 'MyTable'
DECLARE @sql nvarchar(255) WHILE EXISTS(select * from INFORMATION_SCHEMA.TABLE_CONSTRAINT... | Equivalent for drop table table_name cascade constraints in SQL Server My question is that in Oracle we can use drop table table_name cascade constraints to drop a referenced table object. How can I achieve the same in SQL Server? | TITLE:
Equivalent for drop table table_name cascade constraints in SQL Server
QUESTION:
My question is that in Oracle we can use drop table table_name cascade constraints to drop a referenced table object. How can I achieve the same in SQL Server?
ANSWER:
As I know there is not one command in MsSql, but you can use I... | [
"sql-server",
"sql-drop"
] | 0 | 0 | 5,692 | 2 | 0 | 2011-06-01T05:55:53.003000 | 2011-06-01T06:05:11.300000 |
6,196,880 | 6,197,128 | Seemingly simple ball & line collision? | I have a ball accelerating due to gravity 9.81. I also have some lines, which can be moved around and have their slopes changes by the user. How do I handle bouncing collisions between the ball and the lines to make them bounce off at the correct angle. All my collision detection works fine, I was just wondering if the... | I think you need the "normal" vector of the "surface" with which the ball collided, and then "flip" the "velocity" vector of the ball accordingly. To clarify: The "normal" of the line is a perpendicular vector to the line, of unit length. Think of it like: The line represents a plane, which would have a normal vector. ... | Seemingly simple ball & line collision? I have a ball accelerating due to gravity 9.81. I also have some lines, which can be moved around and have their slopes changes by the user. How do I handle bouncing collisions between the ball and the lines to make them bounce off at the correct angle. All my collision detection... | TITLE:
Seemingly simple ball & line collision?
QUESTION:
I have a ball accelerating due to gravity 9.81. I also have some lines, which can be moved around and have their slopes changes by the user. How do I handle bouncing collisions between the ball and the lines to make them bounce off at the correct angle. All my c... | [
"iphone",
"objective-c",
"macos",
"math",
"vector"
] | 1 | 2 | 636 | 3 | 0 | 2011-06-01T05:56:20.583000 | 2011-06-01T06:29:32.207000 |
6,196,887 | 6,197,957 | Android Chinese characters in WebView | I have a html code which I saved in home.txt file and placed it raw folder. Now I want to display the same in a WebView. I used the following code for it. homeWebview = (WebView) findViewById(R.id.homeWebview); InputStream fileStream = getResources().openRawResource(R.raw.home); int fileLen = fileStream.available();
/... | The home.txt file was not in UTF-8 encoded, I open it in notepad++ and change the encoding. Now it is showing properly. | Android Chinese characters in WebView I have a html code which I saved in home.txt file and placed it raw folder. Now I want to display the same in a WebView. I used the following code for it. homeWebview = (WebView) findViewById(R.id.homeWebview); InputStream fileStream = getResources().openRawResource(R.raw.home); in... | TITLE:
Android Chinese characters in WebView
QUESTION:
I have a html code which I saved in home.txt file and placed it raw folder. Now I want to display the same in a WebView. I used the following code for it. homeWebview = (WebView) findViewById(R.id.homeWebview); InputStream fileStream = getResources().openRawResour... | [
"android",
"character-encoding",
"webview",
"cjk"
] | 1 | 1 | 3,483 | 3 | 0 | 2011-06-01T05:57:21.800000 | 2011-06-01T07:56:21.590000 |
6,196,890 | 6,196,987 | ROR + Ruby Date From XML API | By using XML API, I got date-time as "2008-02-05T12:50:00Z". Now I wanna convert this text format into different format like "2008-02-05 12:50:00". But I am getting proper way. I have tried this one:: @a = "2008-02-05T12:50:00Z" Steps 1. @a.to_date
=> Tue, 05 Feb 2008 2. @a.to_date.strftime('%Y')
=> "2008" 3. @a.to_d... | The to_date method converts your string to a date but dates don't have hours, minutes, or seconds. You want to use DateTime: require 'date' d = DateTime.parse('2008-02-05T12:50:00Z') d.strftime('%Y-%m-%d %H:%M:%S') # 2008-02-05 12:50:00 | ROR + Ruby Date From XML API By using XML API, I got date-time as "2008-02-05T12:50:00Z". Now I wanna convert this text format into different format like "2008-02-05 12:50:00". But I am getting proper way. I have tried this one:: @a = "2008-02-05T12:50:00Z" Steps 1. @a.to_date
=> Tue, 05 Feb 2008 2. @a.to_date.strftim... | TITLE:
ROR + Ruby Date From XML API
QUESTION:
By using XML API, I got date-time as "2008-02-05T12:50:00Z". Now I wanna convert this text format into different format like "2008-02-05 12:50:00". But I am getting proper way. I have tried this one:: @a = "2008-02-05T12:50:00Z" Steps 1. @a.to_date
=> Tue, 05 Feb 2008 2. ... | [
"ruby",
"xml",
"ruby-on-rails-3",
"datetime"
] | 1 | 3 | 377 | 2 | 0 | 2011-06-01T05:57:34.317000 | 2011-06-01T06:12:29.303000 |
6,196,894 | 6,197,145 | How can I reduce the margin? | One of my views looks like this right now. Near the big 5, specifically above and below it, there is considerable margin. How can I reduce or remove this margin? The related XML code looks like this: Styles are here: | Add attribute android:includeFontPadding="false" to big TextView, it must shrinks paddings. | How can I reduce the margin? One of my views looks like this right now. Near the big 5, specifically above and below it, there is considerable margin. How can I reduce or remove this margin? The related XML code looks like this: Styles are here: | TITLE:
How can I reduce the margin?
QUESTION:
One of my views looks like this right now. Near the big 5, specifically above and below it, there is considerable margin. How can I reduce or remove this margin? The related XML code looks like this: Styles are here:
ANSWER:
Add attribute android:includeFontPadding="false... | [
"android",
"android-layout",
"android-xml"
] | 3 | 5 | 919 | 2 | 0 | 2011-06-01T05:57:53.517000 | 2011-06-01T06:31:41.117000 |
6,196,896 | 6,196,941 | Why to consider binary search running time complexity as log2N | Can someone explain me when it comes to binary search we say the running time complexity is O(log n)? I searched it in Google and got the below, "The number of times that you can halve the search space is the same as log 2 n". I know we do halve until we find the search key in the data structure, but why we have to con... | Think of it like this: If you can afford to half something m times, (i.e., you can afford to spend time proportional to m ), then how large array can you afford to search? Obviously arrays of size 2 m, right? So if you can search an array of size n = 2 m, then the time it takes is proportional to m, and solving m for n... | Why to consider binary search running time complexity as log2N Can someone explain me when it comes to binary search we say the running time complexity is O(log n)? I searched it in Google and got the below, "The number of times that you can halve the search space is the same as log 2 n". I know we do halve until we fi... | TITLE:
Why to consider binary search running time complexity as log2N
QUESTION:
Can someone explain me when it comes to binary search we say the running time complexity is O(log n)? I searched it in Google and got the below, "The number of times that you can halve the search space is the same as log 2 n". I know we do... | [
"algorithm",
"time-complexity",
"binary-search"
] | 8 | 21 | 10,603 | 3 | 0 | 2011-06-01T05:58:28.697000 | 2011-06-01T06:05:08.960000 |
6,196,905 | 6,197,459 | Prevent background from showing with jquery cycle plugin | Fairly simple, if you use the cycle plugin for jquery and create a slideshow the transition between slides allows what's beneath the slides to show. I want to avoid this and have one slide truly fade into the other rather than kind of fading into the background and then into the next slide. Is this possible? Thanks! Ex... | Place an image below them but above the page with a neutral colour that blocks out the page background in the region of the image (i.e. create it from the same mask used for the images themselves). | Prevent background from showing with jquery cycle plugin Fairly simple, if you use the cycle plugin for jquery and create a slideshow the transition between slides allows what's beneath the slides to show. I want to avoid this and have one slide truly fade into the other rather than kind of fading into the background a... | TITLE:
Prevent background from showing with jquery cycle plugin
QUESTION:
Fairly simple, if you use the cycle plugin for jquery and create a slideshow the transition between slides allows what's beneath the slides to show. I want to avoid this and have one slide truly fade into the other rather than kind of fading int... | [
"javascript",
"jquery",
"slideshow"
] | 0 | 1 | 254 | 2 | 0 | 2011-06-01T05:59:16.767000 | 2011-06-01T07:05:48.837000 |
6,196,907 | 6,196,945 | Using $.getJSON in .NET MVC 3.0 | I want to use jQuery.getJSON function in ASP.NET MVC 3.0, so I wrote the code below for test: and I have a LocationController with below method: public JsonResult GetData() { List result = new List (){1, 4, 5}; return Json(result); } But it doesn't work! The GetData method calls, but 'alert' is not shown! | You need to tell MVC to allow your JSON action to be called via GETs by changing your return to: return Json(result, JsonRequestBehavior.AllowGet); By default ( for security reasons ) they only allow Json to be requested via POSTs. | Using $.getJSON in .NET MVC 3.0 I want to use jQuery.getJSON function in ASP.NET MVC 3.0, so I wrote the code below for test: and I have a LocationController with below method: public JsonResult GetData() { List result = new List (){1, 4, 5}; return Json(result); } But it doesn't work! The GetData method calls, but 'al... | TITLE:
Using $.getJSON in .NET MVC 3.0
QUESTION:
I want to use jQuery.getJSON function in ASP.NET MVC 3.0, so I wrote the code below for test: and I have a LocationController with below method: public JsonResult GetData() { List result = new List (){1, 4, 5}; return Json(result); } But it doesn't work! The GetData met... | [
"asp.net-mvc",
"jquery"
] | 5 | 8 | 9,929 | 3 | 0 | 2011-06-01T05:59:28.980000 | 2011-06-01T06:05:41.397000 |
6,196,911 | 6,202,497 | configure JNDI lookup port jboss + EJB | I am using JSF and EJB as two separate project in my application. Below i described code used to JNDI lookup protected final Object lookup(Class className) throws NamingException {
Properties properties = new Properties(); properties.put("java.naming.factory.initial","org.jnp.interfaces.NamingContextFactory"); propert... | By default the JNDI port is 1099. If you want another port start jBoss with -Djboss.service.binding.set=ports-01. This will add 100 to every port. 1099 -> 1199 etc. | configure JNDI lookup port jboss + EJB I am using JSF and EJB as two separate project in my application. Below i described code used to JNDI lookup protected final Object lookup(Class className) throws NamingException {
Properties properties = new Properties(); properties.put("java.naming.factory.initial","org.jnp.int... | TITLE:
configure JNDI lookup port jboss + EJB
QUESTION:
I am using JSF and EJB as two separate project in my application. Below i described code used to JNDI lookup protected final Object lookup(Class className) throws NamingException {
Properties properties = new Properties(); properties.put("java.naming.factory.ini... | [
"jsf",
"jboss",
"ejb",
"jndi"
] | 0 | 2 | 5,758 | 2 | 0 | 2011-06-01T06:00:07.603000 | 2011-06-01T14:06:14.957000 |
6,196,913 | 6,196,924 | Is SQLite built into iOS? | I have created a application which uses Sqlite database. Now i wanted to deploy the application on iPhone and iPad. I wanted to know whether the Sqlite is inbuilt or not in iPhone/iPad device? | Yes, iOS includes the SQLite library. SQLite iOS includes the popular SQLite library, a lightweight yet powerful relational database engine that is easily embedded into an application. Used in countless applications across many platforms, SQLite is considered a de facto industry standard for lightweight embedded SQL da... | Is SQLite built into iOS? I have created a application which uses Sqlite database. Now i wanted to deploy the application on iPhone and iPad. I wanted to know whether the Sqlite is inbuilt or not in iPhone/iPad device? | TITLE:
Is SQLite built into iOS?
QUESTION:
I have created a application which uses Sqlite database. Now i wanted to deploy the application on iPhone and iPad. I wanted to know whether the Sqlite is inbuilt or not in iPhone/iPad device?
ANSWER:
Yes, iOS includes the SQLite library. SQLite iOS includes the popular SQLi... | [
"iphone",
"ipad",
"sqlite"
] | 2 | 3 | 1,036 | 2 | 0 | 2011-06-01T06:00:31.817000 | 2011-06-01T06:02:01.957000 |
6,196,915 | 6,197,167 | Fit Image in canvas using WPF | I have canvas with child images. Here is my XAML: I want to fit this image in canvas with this code: var fitSize = Math.Max(BigImage.ActualHeight, BigImage.ActualWidth); var targetSize = Math.Min(ImageArea.ActualHeight, ImageArea.ActualWidth); var ratio = targetSize / fitSize; ImageScaleTransform.ScaleX = ImageScaleTra... | The problem is that the Image is no longer positioned in the upper-left hand corner of the Canvas after scaling and so the translation offsets don't appear to be working. Here is a XAML-only fragment based on your question that has a red Rectangle and we've done nothing more than manually set the scale factors to one a... | Fit Image in canvas using WPF I have canvas with child images. Here is my XAML: I want to fit this image in canvas with this code: var fitSize = Math.Max(BigImage.ActualHeight, BigImage.ActualWidth); var targetSize = Math.Min(ImageArea.ActualHeight, ImageArea.ActualWidth); var ratio = targetSize / fitSize; ImageScaleTr... | TITLE:
Fit Image in canvas using WPF
QUESTION:
I have canvas with child images. Here is my XAML: I want to fit this image in canvas with this code: var fitSize = Math.Max(BigImage.ActualHeight, BigImage.ActualWidth); var targetSize = Math.Min(ImageArea.ActualHeight, ImageArea.ActualWidth); var ratio = targetSize / fit... | [
"c#",
".net",
"wpf"
] | 0 | 2 | 7,828 | 2 | 0 | 2011-06-01T06:01:03.927000 | 2011-06-01T06:33:49.753000 |
6,196,918 | 6,197,075 | Converting a Youtube Upload into Podcast | There is this youtube channel that uploads one videos per week at exactly the same time every week. Is it somewhat possible to create a python script that creates a podcast out of it. What Library should I be learning to make this thing possible or is it even possible in the first place? Thanks | Interesting. There are legal blah blah blah rights blah blah blah... but you know that already. I would think if you have a link that auto-plays on page open you could use webbrowser with PyAudio as a simple way to rip the audio from a youtube video. This would require you to play the whole thing and doesn't take into ... | Converting a Youtube Upload into Podcast There is this youtube channel that uploads one videos per week at exactly the same time every week. Is it somewhat possible to create a python script that creates a podcast out of it. What Library should I be learning to make this thing possible or is it even possible in the fir... | TITLE:
Converting a Youtube Upload into Podcast
QUESTION:
There is this youtube channel that uploads one videos per week at exactly the same time every week. Is it somewhat possible to create a python script that creates a podcast out of it. What Library should I be learning to make this thing possible or is it even p... | [
"python",
"youtube",
"podcast"
] | 2 | 2 | 410 | 2 | 0 | 2011-06-01T06:01:19.723000 | 2011-06-01T06:22:27.990000 |
6,196,939 | 6,211,144 | C# How to get Audio Decibel values with time span | how can I get Decibel values of a wav/mp3 file I have every 1 second? using any audio library that works with C#.. something like: Time: 0, DB: 0.213623 Time: 1, DB: 0.2692261 Time: 2, DB: 0.2355957 Time: 3, DB: 0.2363281 Time: 4, DB: 0.3799744 Time: 5, DB: 0.3580322 Time: 6, DB: 0.1331177 Time: 7, DB: 0.3091431 Time: ... | I found a solution from examples given in NAudio Library. since the solution I found is so big. I'm not gonna post it here. so I'm just gonna give hints in case if anybody wanted to do the same thing.. NAudioDemo application -> AudioPlayBackDemo Folder -> AudioPlayBackPanel.cs File... | C# How to get Audio Decibel values with time span how can I get Decibel values of a wav/mp3 file I have every 1 second? using any audio library that works with C#.. something like: Time: 0, DB: 0.213623 Time: 1, DB: 0.2692261 Time: 2, DB: 0.2355957 Time: 3, DB: 0.2363281 Time: 4, DB: 0.3799744 Time: 5, DB: 0.3580322 Ti... | TITLE:
C# How to get Audio Decibel values with time span
QUESTION:
how can I get Decibel values of a wav/mp3 file I have every 1 second? using any audio library that works with C#.. something like: Time: 0, DB: 0.213623 Time: 1, DB: 0.2692261 Time: 2, DB: 0.2355957 Time: 3, DB: 0.2363281 Time: 4, DB: 0.3799744 Time: 5... | [
"c#",
"audio",
"timespan",
"decibel"
] | 5 | 1 | 11,965 | 2 | 0 | 2011-06-01T06:04:00.223000 | 2011-06-02T06:19:10.103000 |
6,196,961 | 6,197,067 | .Net Class Libraries: Threading responsibility | I am working on a class library and one of the classes is responsible for retrieving an Xml file using XDocument.Load(url) from the internet. Seeing as this operation could take a few seconds to complete, it makes sense to run it on it's own thread. Who's responsibility is it to create this thread? The consumer or the ... | The best practice is to implement an async pattern. This means that if your class has a LoadXml method you also implement an LoadXmlAsync method and some kind of OnCompleted event. You can read about it here | .Net Class Libraries: Threading responsibility I am working on a class library and one of the classes is responsible for retrieving an Xml file using XDocument.Load(url) from the internet. Seeing as this operation could take a few seconds to complete, it makes sense to run it on it's own thread. Who's responsibility is... | TITLE:
.Net Class Libraries: Threading responsibility
QUESTION:
I am working on a class library and one of the classes is responsible for retrieving an Xml file using XDocument.Load(url) from the internet. Seeing as this operation could take a few seconds to complete, it makes sense to run it on it's own thread. Who's... | [
".net",
"multithreading",
"class-library",
"responsibility"
] | 0 | 5 | 159 | 2 | 0 | 2011-06-01T06:07:20.600000 | 2011-06-01T06:21:12.967000 |
6,196,970 | 6,197,086 | Reset value of dropdown list with radio button | I need to reset the value of a dropdown list with a radio button. So when a certain radio button is selected, it will reset a specific dropdown list to the default selected="selected" option. How can this be done with js and css? | Say that this is the code for your first element 1 2 3 your radio button should be something like this: The value under the onclick event needs to be replaced with the default value for your dropdown. | Reset value of dropdown list with radio button I need to reset the value of a dropdown list with a radio button. So when a certain radio button is selected, it will reset a specific dropdown list to the default selected="selected" option. How can this be done with js and css? | TITLE:
Reset value of dropdown list with radio button
QUESTION:
I need to reset the value of a dropdown list with a radio button. So when a certain radio button is selected, it will reset a specific dropdown list to the default selected="selected" option. How can this be done with js and css?
ANSWER:
Say that this is... | [
"javascript",
"html",
"css",
"drop-down-menu"
] | 1 | 0 | 4,237 | 3 | 0 | 2011-06-01T06:08:54.953000 | 2011-06-01T06:23:38.607000 |
6,196,971 | 6,197,129 | need help regarding querying xml in sql server | i have two table in sql server 2005. in one table table1 there is one column whose data type is xml where we save data in xml format. now i have another table table2 where we store few fileds name. so now i want to write query in such a on xml data which will return those fields value which are defined in table2. how t... | To read data from xml you can use like this: Select MyXmlColumn.value('(Record/DELETED/JID)[1]', 'int' ) as JID, MyXmlColumn.value('(Record/DELETED/WID)[1]', 'int' ) as WID, MyXmlColumn.value('(Record/DELETED/AccountReference)[1]', 'nvarchar(255)' ) as AccountReference from table2 [update] create a stored procedure wit... | need help regarding querying xml in sql server i have two table in sql server 2005. in one table table1 there is one column whose data type is xml where we save data in xml format. now i have another table table2 where we store few fileds name. so now i want to write query in such a on xml data which will return those ... | TITLE:
need help regarding querying xml in sql server
QUESTION:
i have two table in sql server 2005. in one table table1 there is one column whose data type is xml where we save data in xml format. now i have another table table2 where we store few fileds name. so now i want to write query in such a on xml data which ... | [
"sql",
"sql-server",
"xml",
"t-sql"
] | 0 | 1 | 195 | 1 | 0 | 2011-06-01T06:09:09.913000 | 2011-06-01T06:29:36.697000 |
6,196,973 | 6,212,956 | How to create a UITextField like MFMailComposer has? | I want to create a MFMailComposer like UITextField like when we type an email address it converted into blue round button like shape. I do not want to use Three20's MailComposer. I want to create my own.Any idea how to achieve this? or if there is already a UITextField or whatever control is out there please let me kno... | Check out TITokenFieldView - you may be able to use/adapt for your needs | How to create a UITextField like MFMailComposer has? I want to create a MFMailComposer like UITextField like when we type an email address it converted into blue round button like shape. I do not want to use Three20's MailComposer. I want to create my own.Any idea how to achieve this? or if there is already a UITextFie... | TITLE:
How to create a UITextField like MFMailComposer has?
QUESTION:
I want to create a MFMailComposer like UITextField like when we type an email address it converted into blue round button like shape. I do not want to use Three20's MailComposer. I want to create my own.Any idea how to achieve this? or if there is a... | [
"ios4",
"uitextfield",
"mfmailcomposer"
] | 5 | 5 | 1,339 | 1 | 0 | 2011-06-01T06:09:35.950000 | 2011-06-02T09:55:20.913000 |
6,196,979 | 6,196,991 | When considering git vs svn for work projects, is Mercurial best of both worlds? | Lately I've been searching for the best source control technologies for my work projects. I've been a subversion user for a while, but heard more and more about git. So I checked it out, and I very much liked the fact that it allows you to easily put your projects under source control, even offline, when you don't have... | You are missing something - git also allows you to have a central server. And github provides the same sort of facilities as bitbucket. Having said that, I think that that Mercurial is a better choice than git for someone starting out in version control, as it is somewhat easier to use, less complex and (for new users ... | When considering git vs svn for work projects, is Mercurial best of both worlds? Lately I've been searching for the best source control technologies for my work projects. I've been a subversion user for a while, but heard more and more about git. So I checked it out, and I very much liked the fact that it allows you to... | TITLE:
When considering git vs svn for work projects, is Mercurial best of both worlds?
QUESTION:
Lately I've been searching for the best source control technologies for my work projects. I've been a subversion user for a while, but heard more and more about git. So I checked it out, and I very much liked the fact tha... | [
"svn",
"git",
"version-control",
"mercurial"
] | 9 | 10 | 713 | 4 | 0 | 2011-06-01T06:11:06.463000 | 2011-06-01T06:13:06.117000 |
6,196,985 | 6,200,155 | Entity Framework One-To-One relationship | I have the following view vw_Resources -> ResourceId -> Name -> ReportsTo (maps to ResourceId) and the class public class Resource { public int ResourceId{get;set;} public string Name{get;set;} public Resource ReportsTo{get;set;} } and the DbContext public class MyContext { public DbSet Resources { get; set; } } How do... | The following mapping worked modelBuilder.Entity ().HasRequired(r => r.ReportsTo).WithMany().Map(r => r.MapKey("ReportsTo")); | Entity Framework One-To-One relationship I have the following view vw_Resources -> ResourceId -> Name -> ReportsTo (maps to ResourceId) and the class public class Resource { public int ResourceId{get;set;} public string Name{get;set;} public Resource ReportsTo{get;set;} } and the DbContext public class MyContext { publ... | TITLE:
Entity Framework One-To-One relationship
QUESTION:
I have the following view vw_Resources -> ResourceId -> Name -> ReportsTo (maps to ResourceId) and the class public class Resource { public int ResourceId{get;set;} public string Name{get;set;} public Resource ReportsTo{get;set;} } and the DbContext public clas... | [
"entity-framework-4.1",
"one-to-one"
] | 0 | 1 | 767 | 3 | 0 | 2011-06-01T06:12:10.800000 | 2011-06-01T11:06:30.980000 |
6,196,999 | 6,197,028 | How to enumerate Directories created in IsolatedStorage for windows phone | Say I have created many directories in IsolatedStorage. I wan to enumerate and display them in a listBox so that I can choose. Example: Directories Restuarants Hotels ShoppingMall.... The problem I want to solve: The ListBox will contain these. If I click Restuarant, it will get all the files stored in this directory. ... | You can use IsolatedStorageFile.GetDirectoryNames() to enumerate directories. private string[] GetLocationTypes() { using (var store = IsolatedStorageFile.GetUserStoreForApplication()) { return store.GetDirectoryNames(); }
} | How to enumerate Directories created in IsolatedStorage for windows phone Say I have created many directories in IsolatedStorage. I wan to enumerate and display them in a listBox so that I can choose. Example: Directories Restuarants Hotels ShoppingMall.... The problem I want to solve: The ListBox will contain these. I... | TITLE:
How to enumerate Directories created in IsolatedStorage for windows phone
QUESTION:
Say I have created many directories in IsolatedStorage. I wan to enumerate and display them in a listBox so that I can choose. Example: Directories Restuarants Hotels ShoppingMall.... The problem I want to solve: The ListBox wil... | [
"windows-phone-7",
"isolatedstorage"
] | 0 | 2 | 305 | 1 | 0 | 2011-06-01T06:14:02.813000 | 2011-06-01T06:17:31.597000 |
6,197,001 | 6,241,791 | How to get Network I/O and Disk I/O through JMX | I have been working on to get system mertics like CPU, Memory, Network I/O, Disk I/O using JMX. For CPU i have used function OperatingSystemMXBean.getSystemLoadAverage() and got the load of CPU. For Memory i have used functions OperatingSystemMXBean.getTotalPhysicalMemorySize() and OperatingSystemMXBean.getFreePhysical... | Most VMs (all?) do not expose that data. You would need to use a library like sigar (source is at github ), that can gather those values and then expose the return values of sigar via JMX. We are using sigar with success in http://rhq-project.org/ | How to get Network I/O and Disk I/O through JMX I have been working on to get system mertics like CPU, Memory, Network I/O, Disk I/O using JMX. For CPU i have used function OperatingSystemMXBean.getSystemLoadAverage() and got the load of CPU. For Memory i have used functions OperatingSystemMXBean.getTotalPhysicalMemory... | TITLE:
How to get Network I/O and Disk I/O through JMX
QUESTION:
I have been working on to get system mertics like CPU, Memory, Network I/O, Disk I/O using JMX. For CPU i have used function OperatingSystemMXBean.getSystemLoadAverage() and got the load of CPU. For Memory i have used functions OperatingSystemMXBean.getT... | [
"java",
"jmx"
] | 4 | 5 | 4,425 | 2 | 0 | 2011-06-01T06:14:07.380000 | 2011-06-05T08:29:29.357000 |
6,197,006 | 6,197,039 | Is it possible to make up HTML Tags? | What's stopping me from doing this: Will this work? What's going to stop it? From what I understand, the browser will find the and match the css styles based on the selector rules, and so long as you specify ALL the required rules (I'm sure there're more), what's stopping me from seeing a small red box on screen? | It's possible but won't work across all browser out of the box, though they will have some degree of support for it. If you really want to create your own subset of HTML tags you should look into creating your own DTD for it. A DTD is a document type definition which is basically a file the browsers reads to see what t... | Is it possible to make up HTML Tags? What's stopping me from doing this: Will this work? What's going to stop it? From what I understand, the browser will find the and match the css styles based on the selector rules, and so long as you specify ALL the required rules (I'm sure there're more), what's stopping me from se... | TITLE:
Is it possible to make up HTML Tags?
QUESTION:
What's stopping me from doing this: Will this work? What's going to stop it? From what I understand, the browser will find the and match the css styles based on the selector rules, and so long as you specify ALL the required rules (I'm sure there're more), what's s... | [
"html",
"css"
] | 9 | 8 | 5,903 | 5 | 0 | 2011-06-01T06:14:26.073000 | 2011-06-01T06:18:08.937000 |
6,197,024 | 6,197,049 | keeping one connection to DB or opening closing per need | I looking for a best practice in following case, with reasons why each way is better. I have one DB with about 10~20 client applications that connecting to one main DB server. There can be about 200 calls from one client to the DB per minute, in really rare cases. The application are multithreaded, about 20 threads per... | The.NET oracle provider has built-in connection-pooling capabilities. Whenever you need a DB connection, create a new one do the work and release it immediately. The connection pooling will take care of reusing connections efficiently. The best way to release the connection is through the using construct which will ens... | keeping one connection to DB or opening closing per need I looking for a best practice in following case, with reasons why each way is better. I have one DB with about 10~20 client applications that connecting to one main DB server. There can be about 200 calls from one client to the DB per minute, in really rare cases... | TITLE:
keeping one connection to DB or opening closing per need
QUESTION:
I looking for a best practice in following case, with reasons why each way is better. I have one DB with about 10~20 client applications that connecting to one main DB server. There can be about 200 calls from one client to the DB per minute, in... | [
".net",
"sql-server",
"database",
"oracle",
"sql-server-2005"
] | 3 | 3 | 556 | 3 | 0 | 2011-06-01T06:17:15.357000 | 2011-06-01T06:19:19.957000 |
6,197,042 | 6,197,060 | I need just the count of unique phone numbers in my mySql table. How do I do that? | I have a mySQL table with list of people and phone numbers. There are some repeats in these phone numbers. I don't want to remove the duplicates based on the phone numbers as a same phone number is related to more that one entity. I just want the count of unique phone numbers in the phone number column. How do I do thi... | SELECT COUNT(DISTINCT COLUMN_NAME) FROM TABLE_NAME I think this is what you are looking for?? | I need just the count of unique phone numbers in my mySql table. How do I do that? I have a mySQL table with list of people and phone numbers. There are some repeats in these phone numbers. I don't want to remove the duplicates based on the phone numbers as a same phone number is related to more that one entity. I just... | TITLE:
I need just the count of unique phone numbers in my mySql table. How do I do that?
QUESTION:
I have a mySQL table with list of people and phone numbers. There are some repeats in these phone numbers. I don't want to remove the duplicates based on the phone numbers as a same phone number is related to more that ... | [
"mysql"
] | 2 | 4 | 88 | 2 | 0 | 2011-06-01T06:18:31.090000 | 2011-06-01T06:19:58.703000 |
6,197,045 | 6,207,170 | WS in TIBCO BW or in Java | I see it is a lot faster developing a WS in TIBCO compared to coding in Java. Is it wise investment to use TIBCO as your WS Service Provider & Service Requester? Also both previous question for developing a JMS consumer & publisher. How would my Server-side Java code use/listen to the BW Process? So far I read about TI... | Using TIBCO Business Works to implement your SOAP Web Services and to invoke SOAP Web Services will certainly save you a lot of time compared to creating them in Java. Whether it's a "wise investment" really depends on the amount of development your doing. The TIBCO BW licenses are not cheap, but with a large developme... | WS in TIBCO BW or in Java I see it is a lot faster developing a WS in TIBCO compared to coding in Java. Is it wise investment to use TIBCO as your WS Service Provider & Service Requester? Also both previous question for developing a JMS consumer & publisher. How would my Server-side Java code use/listen to the BW Proce... | TITLE:
WS in TIBCO BW or in Java
QUESTION:
I see it is a lot faster developing a WS in TIBCO compared to coding in Java. Is it wise investment to use TIBCO as your WS Service Provider & Service Requester? Also both previous question for developing a JMS consumer & publisher. How would my Server-side Java code use/list... | [
"java",
"jms",
"tibco",
"eai",
"businessworks"
] | 8 | 12 | 2,461 | 1 | 0 | 2011-06-01T06:18:46.723000 | 2011-06-01T20:22:39.467000 |
6,197,059 | 6,197,117 | Partial/Extended Class or Interface When Different Assembly Present | I use a method to handle exceptions - internally it writes to a database, but when released to the web, the source code won't include the connection string necessary to write to the database. Instead it should write to a log file. Is it possible to accommodate writing to logs when Foo.Private.dll is not present, but wr... | This sounds like a potential use case for the Managed Extensibility Framework (MEF), available in.NET 4.0. | Partial/Extended Class or Interface When Different Assembly Present I use a method to handle exceptions - internally it writes to a database, but when released to the web, the source code won't include the connection string necessary to write to the database. Instead it should write to a log file. Is it possible to acc... | TITLE:
Partial/Extended Class or Interface When Different Assembly Present
QUESTION:
I use a method to handle exceptions - internally it writes to a database, but when released to the web, the source code won't include the connection string necessary to write to the database. Instead it should write to a log file. Is ... | [
"c#",
"reflection",
"partial",
"class-extensions"
] | 1 | 1 | 2,196 | 4 | 0 | 2011-06-01T06:19:57.883000 | 2011-06-01T06:27:49.743000 |
6,197,062 | 6,197,716 | How can I customize the progress bar of MPMoviePlayerController's background and behavior? | Since I'm new I can't post image yet... so I'll have to draw the picture: --------------------------------------------------------------------------- |[Done] Loading... (*) | --------------------------------------------------------------------------- | | | | | | | | | | | | | | | |--------------------------| | | | | | ... | Pragmatic iPad Programming has a sample of a custom view/viewController combo done with MPMoviePlayerController. Check the source code for chapter 8 (free download from that page). They use a video provided as a file inside the project. Btw, if the file in the video appears red in XCode, you'll have to remove it and ad... | How can I customize the progress bar of MPMoviePlayerController's background and behavior? Since I'm new I can't post image yet... so I'll have to draw the picture: --------------------------------------------------------------------------- |[Done] Loading... (*) | ------------------------------------------------------... | TITLE:
How can I customize the progress bar of MPMoviePlayerController's background and behavior?
QUESTION:
Since I'm new I can't post image yet... so I'll have to draw the picture: --------------------------------------------------------------------------- |[Done] Loading... (*) | ------------------------------------... | [
"iphone",
"cocoa-touch",
"controls",
"mpmovieplayercontroller",
"customization"
] | 3 | 3 | 4,499 | 1 | 0 | 2011-06-01T06:20:08.867000 | 2011-06-01T07:33:05.023000 |
6,197,092 | 6,197,498 | Registering events in a multipage jquery-mobile app? | I am very new to jquery-mobile. Could someone please help with the following problem regarding a multi-page app? My app has two pages, split into two different files - index2_1.html and index2_2.html given below. When I use $.mobile.changePage("index2_2.html", "slide"); to change to the second page, none of the events ... | In contrast to Pravat Maskey's answer, it's possible (and dependent on the use case also intended) to have seperate HTML files. Just imagine a huge application with lots of pages, it would be counterintuitive to load everything up front. I think the problem you are having is the placement of the JavaScript code. I woul... | Registering events in a multipage jquery-mobile app? I am very new to jquery-mobile. Could someone please help with the following problem regarding a multi-page app? My app has two pages, split into two different files - index2_1.html and index2_2.html given below. When I use $.mobile.changePage("index2_2.html", "slide... | TITLE:
Registering events in a multipage jquery-mobile app?
QUESTION:
I am very new to jquery-mobile. Could someone please help with the following problem regarding a multi-page app? My app has two pages, split into two different files - index2_1.html and index2_2.html given below. When I use $.mobile.changePage("inde... | [
"jquery-mobile"
] | 0 | 1 | 1,496 | 1 | 0 | 2011-06-01T06:24:24.990000 | 2011-06-01T07:09:59.770000 |
6,197,104 | 6,200,505 | JDO doesn't create Owned Entities in Google App Engine | Hey guys, my question is about persisting an entity in JDO. I have created a class, StoredOPDSFeed, whose members persist correctly. However, none of its member objects persist correctly. The class is as follows: @PersistenceCapable public class StorableOPDSFeed implements Serializable {
private static final long seri... | The GAE JDO documentation states that in one-to-one relationships both involved entities require a key field. http://code.google.com/appengine/docs/java/datastore/jdo/relationships.html#Owned_One_to_One_Relationships If the other entity is embedded as intended in your example, the other class (e.g. SearchDescription) r... | JDO doesn't create Owned Entities in Google App Engine Hey guys, my question is about persisting an entity in JDO. I have created a class, StoredOPDSFeed, whose members persist correctly. However, none of its member objects persist correctly. The class is as follows: @PersistenceCapable public class StorableOPDSFeed im... | TITLE:
JDO doesn't create Owned Entities in Google App Engine
QUESTION:
Hey guys, my question is about persisting an entity in JDO. I have created a class, StoredOPDSFeed, whose members persist correctly. However, none of its member objects persist correctly. The class is as follows: @PersistenceCapable public class S... | [
"google-app-engine",
"google-cloud-datastore",
"jdo"
] | 1 | 2 | 564 | 1 | 0 | 2011-06-01T06:26:09.177000 | 2011-06-01T11:38:57.643000 |
6,197,116 | 6,197,149 | how to store time in NSDate without date? | I have a timer in my app. When I click on exit buton then timer gets stop and stores value into the string in format of 01:15:55. I have an array to store this string object. What I want is, now I want to display these values by comparing to each other. So I think first I have to convert the string into the NSDate but ... | Sounds like an NSTimeInterval might be more appropriate. This is just a floating-point value indicating a number of seconds (including fractional seconds). You can manually format a value like this into whatever string format you want with some simple division and remainder math. ( NSDate will give you time intervals s... | how to store time in NSDate without date? I have a timer in my app. When I click on exit buton then timer gets stop and stores value into the string in format of 01:15:55. I have an array to store this string object. What I want is, now I want to display these values by comparing to each other. So I think first I have ... | TITLE:
how to store time in NSDate without date?
QUESTION:
I have a timer in my app. When I click on exit buton then timer gets stop and stores value into the string in format of 01:15:55. I have an array to store this string object. What I want is, now I want to display these values by comparing to each other. So I t... | [
"iphone",
"objective-c",
"nsdate"
] | 1 | 4 | 1,377 | 2 | 0 | 2011-06-01T06:27:38.807000 | 2011-06-01T06:32:00.860000 |
6,197,119 | 6,197,152 | Is it possible to disable wireless networking using the Android SDK or NDK? | Is it possible to disable wireless networking on an Android device using the Android SDK or NDK? | In order to enable / disable the WiFi state, you have to grant the following permission in the application manifest android.permission.CHANGE_WIFI_STATE You can then use the WifiManager to set enable/disable the WIFI. WifiManager wifiManager = (WifiManager)getBaseContext().getSystemService(Context.WIFI_SERVICE); wifiMa... | Is it possible to disable wireless networking using the Android SDK or NDK? Is it possible to disable wireless networking on an Android device using the Android SDK or NDK? | TITLE:
Is it possible to disable wireless networking using the Android SDK or NDK?
QUESTION:
Is it possible to disable wireless networking on an Android device using the Android SDK or NDK?
ANSWER:
In order to enable / disable the WiFi state, you have to grant the following permission in the application manifest andr... | [
"android",
"android-ndk",
"wireless",
"kiosk"
] | 3 | 4 | 2,414 | 2 | 0 | 2011-06-01T06:27:55.357000 | 2011-06-01T06:32:15.917000 |
6,197,135 | 6,197,502 | has_and_belongs_to_many relationship not associating both ways | i setup a relationship using has_and_belongs_to_many to associate users and events. Then I try this: user = User.find(1) event = Event.find(1 ) both of these are not currently associated...then I try to associate them by doing: user.events << event this action works...however, they don't associate correctly for each ot... | Is the has_and_belongs_to_many present in both models? It sounds like it is not, whereas it should be: # models/user.rb class User < ActiveRecord::Base has_and_belongs_to_many:events end
# models/event.rb class Event < ActiveRecord::Base has_and_belongs_to_many:users end | has_and_belongs_to_many relationship not associating both ways i setup a relationship using has_and_belongs_to_many to associate users and events. Then I try this: user = User.find(1) event = Event.find(1 ) both of these are not currently associated...then I try to associate them by doing: user.events << event this act... | TITLE:
has_and_belongs_to_many relationship not associating both ways
QUESTION:
i setup a relationship using has_and_belongs_to_many to associate users and events. Then I try this: user = User.find(1) event = Event.find(1 ) both of these are not currently associated...then I try to associate them by doing: user.events... | [
"ruby-on-rails",
"activerecord"
] | 0 | 1 | 306 | 2 | 0 | 2011-06-01T06:30:16.297000 | 2011-06-01T07:10:15.480000 |
6,197,142 | 6,197,168 | javascript not showing image in imgsrc | i am using javascript to change the value of img src at run time.. i am using fileupload in html to take the input from use and i want that image to be uploaded in the "Image1" image tag.. but it is not uploading the image.. i am using: function upl(obj) {
filename = obj.value; alert(filename); document.getElementById... | remove the " and than try to check. like as below function upl(obj) {
filename = obj.value; alert(filename); document.getElementById('Image1').src = filename; alert(document.getElementById('Image1').src); } | javascript not showing image in imgsrc i am using javascript to change the value of img src at run time.. i am using fileupload in html to take the input from use and i want that image to be uploaded in the "Image1" image tag.. but it is not uploading the image.. i am using: function upl(obj) {
filename = obj.value; a... | TITLE:
javascript not showing image in imgsrc
QUESTION:
i am using javascript to change the value of img src at run time.. i am using fileupload in html to take the input from use and i want that image to be uploaded in the "Image1" image tag.. but it is not uploading the image.. i am using: function upl(obj) {
filen... | [
"javascript"
] | 0 | 2 | 680 | 2 | 0 | 2011-06-01T06:31:16.847000 | 2011-06-01T06:33:58.833000 |
6,197,150 | 6,206,663 | Google Chrome window.open with name opening new window | So let say you have a page named daddy that opens a child window named testbug: daddy: Window.open bug If the user focuses on something other than the window with daddy tab and opens this page again the new daddy window opens up a new testbug child window. So now instead of having two daddy windows and one testbug wind... | The only time I see a second testbug window being opened is if I close the daddy window and then reopen it. If I focus on another window and then refresh the daddy window, the same testbug window remains open. Could you perhaps elaborate some more on which version of Chrome you are using, and your operating system? You... | Google Chrome window.open with name opening new window So let say you have a page named daddy that opens a child window named testbug: daddy: Window.open bug If the user focuses on something other than the window with daddy tab and opens this page again the new daddy window opens up a new testbug child window. So now i... | TITLE:
Google Chrome window.open with name opening new window
QUESTION:
So let say you have a page named daddy that opens a child window named testbug: daddy: Window.open bug If the user focuses on something other than the window with daddy tab and opens this page again the new daddy window opens up a new testbug chil... | [
"javascript",
"google-chrome"
] | 2 | 1 | 1,570 | 1 | 0 | 2011-06-01T06:32:05.170000 | 2011-06-01T19:37:31.187000 |
6,197,153 | 6,197,709 | Trouble with Eclipse Listener and getting the Source | In My Eclipse Project, I have a Text custom_text = new Text(....); Now I add a listener - custom_text.addKeyListener(new KeyListener(){ @Override public void keyPressed(KeyEvent event) { } @Override public void keyReleased(KeyEvent event) { System.err.println("event "+event.getSource())); } }); Anyhow, I am not getting... | IMHO you can not the name of the variable, holding the reference to your textfield. It is also not really of any use to know the name of the variable, since you can have many referencing variables. With.getSource() you get a full reference to the widget itself, so you can deal with it in any way. | Trouble with Eclipse Listener and getting the Source In My Eclipse Project, I have a Text custom_text = new Text(....); Now I add a listener - custom_text.addKeyListener(new KeyListener(){ @Override public void keyPressed(KeyEvent event) { } @Override public void keyReleased(KeyEvent event) { System.err.println("event ... | TITLE:
Trouble with Eclipse Listener and getting the Source
QUESTION:
In My Eclipse Project, I have a Text custom_text = new Text(....); Now I add a listener - custom_text.addKeyListener(new KeyListener(){ @Override public void keyPressed(KeyEvent event) { } @Override public void keyReleased(KeyEvent event) { System.e... | [
"java",
"eclipse",
"eclipse-plugin"
] | 0 | 0 | 100 | 2 | 0 | 2011-06-01T06:32:16.013000 | 2011-06-01T07:32:07.293000 |
6,197,161 | 6,215,487 | Connecting to database without running server in Apache Xindice | I am new to "Apache Xindice". I tried some examples from the internet and it worked, but I have to run the server before running my applications.This allows it to connect to the database. I don't want to run the server because my application runs locally and I don't want to disturb the user with the server. I need to c... | Hm, Apache Xindice seems to be out of date. The latest news entry was 2007. There are some currently maintained embeddable XML databases like Berkeley DB XML, eXist and Qizx XML database engine. All of them also supports XQuery as the query language. | Connecting to database without running server in Apache Xindice I am new to "Apache Xindice". I tried some examples from the internet and it worked, but I have to run the server before running my applications.This allows it to connect to the database. I don't want to run the server because my application runs locally a... | TITLE:
Connecting to database without running server in Apache Xindice
QUESTION:
I am new to "Apache Xindice". I tried some examples from the internet and it worked, but I have to run the server before running my applications.This allows it to connect to the database. I don't want to run the server because my applicat... | [
"xml",
"java",
"xml-database"
] | 0 | 1 | 167 | 1 | 0 | 2011-06-01T06:33:07.337000 | 2011-06-02T13:53:58.003000 |
6,197,162 | 6,197,266 | Connection string to connect sql server 2008 which is in another server | I use the below connection string to connect to a sqlserver 2008 located in another server. How to i connect to it from ASP using vbscript? application("database_connectionstring_internal") = "DRIVER=SQL Server;SERVER=53.90.111.22;DATABASE=crm_cos;UID=cos_user;PASSWORD=1q2w3e4r5t" Here are my server details: Database s... | I am using something like this: C# "Data Source=host's ip\\SQLEXPRESS;Initial Catalog=yourddbb;User ID=youruser;Password=yourpassword" ASP 3.0 StrConex= "" StrConex= StrConex & "Provider=SQLOLEDB.1;Password=yourpasswd;" StrConex= StrConex & "Persist Security Info=True;User ID=youruser;" StrConex= StrConex & "Initial Ca... | Connection string to connect sql server 2008 which is in another server I use the below connection string to connect to a sqlserver 2008 located in another server. How to i connect to it from ASP using vbscript? application("database_connectionstring_internal") = "DRIVER=SQL Server;SERVER=53.90.111.22;DATABASE=crm_cos;... | TITLE:
Connection string to connect sql server 2008 which is in another server
QUESTION:
I use the below connection string to connect to a sqlserver 2008 located in another server. How to i connect to it from ASP using vbscript? application("database_connectionstring_internal") = "DRIVER=SQL Server;SERVER=53.90.111.22... | [
"sql-server-2008",
"vbscript",
"asp-classic",
"connection-string"
] | 2 | 0 | 29,410 | 3 | 0 | 2011-06-01T06:33:08.867000 | 2011-06-01T06:44:49.630000 |
6,197,163 | 6,197,182 | types in object oriented programming | I'm confused about why classes are considered data types. I understand that part of them is "data", and the other part is the methods. Why are they called data types? Procedures in procedural programming languages, like C, hold one or more fundamental data types, sometimes. But they are not called data types. | Given the definition at Wikipedia: [...] a data type (or datatype) is a classification identifying one of various types of data, such as floating-point, integer, or Boolean, that determines the possible values for that type; the operations that can be done on values of that type; and the way values of that type can be ... | types in object oriented programming I'm confused about why classes are considered data types. I understand that part of them is "data", and the other part is the methods. Why are they called data types? Procedures in procedural programming languages, like C, hold one or more fundamental data types, sometimes. But they... | TITLE:
types in object oriented programming
QUESTION:
I'm confused about why classes are considered data types. I understand that part of them is "data", and the other part is the methods. Why are they called data types? Procedures in procedural programming languages, like C, hold one or more fundamental data types, s... | [
"java",
"c++",
"c",
"oop"
] | 5 | 7 | 536 | 5 | 0 | 2011-06-01T06:33:29.863000 | 2011-06-01T06:35:32.940000 |
6,197,165 | 6,197,321 | Getting a PID from a Background Process Run as Another User | Getting a background process ID is easy to do from the prompt by going: $ my_daemon & $ echo $! But what if I want to run it as a different user like: su - joe -c "/path/to/my_daemon &;" Now how can I capture the PID of my_daemon? | Succinctly - with a good deal of difficulty. You have to arrange for the su'd shell to write the child PID to a file and then pick the output. Given that it will be 'joe' creating the file and not 'dex', that adds another layer of complexity. The simplest solution is probably: su - joe -c "/path/to/my_daemon & echo \$!... | Getting a PID from a Background Process Run as Another User Getting a background process ID is easy to do from the prompt by going: $ my_daemon & $ echo $! But what if I want to run it as a different user like: su - joe -c "/path/to/my_daemon &;" Now how can I capture the PID of my_daemon? | TITLE:
Getting a PID from a Background Process Run as Another User
QUESTION:
Getting a background process ID is easy to do from the prompt by going: $ my_daemon & $ echo $! But what if I want to run it as a different user like: su - joe -c "/path/to/my_daemon &;" Now how can I capture the PID of my_daemon?
ANSWER:
Su... | [
"bash",
"pid",
"su"
] | 6 | 13 | 7,227 | 5 | 0 | 2011-06-01T06:33:35.933000 | 2011-06-01T06:51:29.530000 |
6,197,166 | 6,265,640 | Problems connecting to a basicHttpBinding endpoint with security mode="None" | Trying to create an framework 4.0 WCF basicHttp service hosted by IIS (6) that is completely unauthenticated. Once deployed, I can successfully retrive the WSDL via a browser. However whenever I try and connect to it via WCF Test Client or via a visual studio generated proxy, I'm getting "The server has rejected the cl... | Turns out that the source of the exception was from an immediate attempt to connect to a downstream tcp service. As a workaround I ended up creating a plain jane webservice wrapper which successfully connects to the downstream service fine using a domain account specified in the. Note, I've added a related question ask... | Problems connecting to a basicHttpBinding endpoint with security mode="None" Trying to create an framework 4.0 WCF basicHttp service hosted by IIS (6) that is completely unauthenticated. Once deployed, I can successfully retrive the WSDL via a browser. However whenever I try and connect to it via WCF Test Client or via... | TITLE:
Problems connecting to a basicHttpBinding endpoint with security mode="None"
QUESTION:
Trying to create an framework 4.0 WCF basicHttp service hosted by IIS (6) that is completely unauthenticated. Once deployed, I can successfully retrive the WSDL via a browser. However whenever I try and connect to it via WCF ... | [
"wcf",
"wcf-security",
"basichttpbinding"
] | 0 | 0 | 1,212 | 2 | 0 | 2011-06-01T06:33:37.680000 | 2011-06-07T13:07:53.853000 |
6,197,173 | 6,197,223 | how to fit png background image to the size of imagebutton in android sdk | i have created an image button in my xml and its background like this "button_back.xml" its working fine but my problem is that my button width is 50 and my image png width is 70. how can i fit this png to get resized to my button width automatically. Right now no matter what width i give to my button its width gets to... | I believe 9-patch is what you are looking for. Looks here: http://developer.android.com/guide/developing/tools/draw9patch.html and search for "Nine-patch" here: http://developer.android.com/guide/topics/graphics/2d-graphics.html#nine-patch Update: It might also be a good idea to scale down your images to fit the 50dip ... | how to fit png background image to the size of imagebutton in android sdk i have created an image button in my xml and its background like this "button_back.xml" its working fine but my problem is that my button width is 50 and my image png width is 70. how can i fit this png to get resized to my button width automatic... | TITLE:
how to fit png background image to the size of imagebutton in android sdk
QUESTION:
i have created an image button in my xml and its background like this "button_back.xml" its working fine but my problem is that my button width is 50 and my image png width is 70. how can i fit this png to get resized to my butt... | [
"android"
] | 4 | 2 | 14,360 | 3 | 0 | 2011-06-01T06:34:56.843000 | 2011-06-01T06:39:58.100000 |
6,197,174 | 6,202,884 | How to Transcode m4v to wmv/asf | How can I transcode a m4v http stream to a wmv/asf http stream I've tried ffmpeg but I can't seem to get the right switchs and ideas? | VLC should be up to the task. Download VLC and play with it. Use the network stream functionality, pass it through some filters, and then send it back out. After you figure out the mrl, just use PInvoke and the vlc bindings to do it programmatically. | How to Transcode m4v to wmv/asf How can I transcode a m4v http stream to a wmv/asf http stream I've tried ffmpeg but I can't seem to get the right switchs and ideas? | TITLE:
How to Transcode m4v to wmv/asf
QUESTION:
How can I transcode a m4v http stream to a wmv/asf http stream I've tried ffmpeg but I can't seem to get the right switchs and ideas?
ANSWER:
VLC should be up to the task. Download VLC and play with it. Use the network stream functionality, pass it through some filters... | [
"c#",
"ffmpeg",
"media"
] | 0 | 0 | 312 | 1 | 0 | 2011-06-01T06:34:58.610000 | 2011-06-01T14:33:30.973000 |
6,197,183 | 6,197,890 | How to reference the image used as icon for a button in Adobe Flex? | I am developing a Flex application in which I would like to simulate roughly what we get when we serach Google for images. When we pass the mouse pointer over an image, it enlarges a little bit so we can see it better and click it if we want. I know I could just use an image and increase its size via mouseOver/ mouseOu... | If your picture is enlarged only 'a little bit', you can get away with one (larger) version (just set smoothing = true on underlying Bitmap.) This also enables smooth transition from small to larger version. And hand cursor would be fine way to indicate clickableness, while very large buttons will look strange. | How to reference the image used as icon for a button in Adobe Flex? I am developing a Flex application in which I would like to simulate roughly what we get when we serach Google for images. When we pass the mouse pointer over an image, it enlarges a little bit so we can see it better and click it if we want. I know I ... | TITLE:
How to reference the image used as icon for a button in Adobe Flex?
QUESTION:
I am developing a Flex application in which I would like to simulate roughly what we get when we serach Google for images. When we pass the mouse pointer over an image, it enlarges a little bit so we can see it better and click it if ... | [
"apache-flex",
"actionscript-3",
"flash-builder"
] | 1 | 1 | 855 | 2 | 0 | 2011-06-01T06:35:45.127000 | 2011-06-01T07:49:59.483000 |
6,197,187 | 6,197,226 | FileNotFoundException even when the file is there | public StormAnalysis(){ try { fScanner = new Scanner(new File("tracks1949to2010_epa.txt")); while(fScanner.hasNextLine()){ System.out.println(fScanner.nextLine()); } } catch (FileNotFoundException e) { System.out.println("File not found. Try placing the tracks1949to2010_epa.txt in the same folder as StormAnalysis.java"... | The file isn't there. If it was it wouldn't throw the exception:-) The likely culprit is the working directory differs from what is expected (that is, the current working directory does not contain a file with that name). This can be trivially verified with using the file's absolute path and observing that it is loaded... | FileNotFoundException even when the file is there public StormAnalysis(){ try { fScanner = new Scanner(new File("tracks1949to2010_epa.txt")); while(fScanner.hasNextLine()){ System.out.println(fScanner.nextLine()); } } catch (FileNotFoundException e) { System.out.println("File not found. Try placing the tracks1949to2010... | TITLE:
FileNotFoundException even when the file is there
QUESTION:
public StormAnalysis(){ try { fScanner = new Scanner(new File("tracks1949to2010_epa.txt")); while(fScanner.hasNextLine()){ System.out.println(fScanner.nextLine()); } } catch (FileNotFoundException e) { System.out.println("File not found. Try placing th... | [
"java",
"java.util.scanner",
"filenotfoundexception"
] | 1 | 11 | 5,639 | 3 | 0 | 2011-06-01T06:36:23.040000 | 2011-06-01T06:40:30.263000 |
6,197,189 | 6,197,354 | How to write xml into a file using MarkupBuilder | I created an xml using MarkupBuilder in groovy but how do i write it into a xml file in my project dir E:\tomcat 5.5\webapps\csm\include\xml def writer = new StringWriter() def xml = new MarkupBuilder(writer) String[] splitted
xml.rows() { for(int i=0;i here println writer.toString() prints my whole xml content but i ... | Instead of using a StringWriter, use a FileWriter. Also use system property catalina.base to get the Tomcat homepath. def writer = new FileWriter(new File(System.getProperty("catalina.base") + "/webapps/csm/include/xml/yourfile.xml")) Note however that it's not the best place to save your runtime generated files. They ... | How to write xml into a file using MarkupBuilder I created an xml using MarkupBuilder in groovy but how do i write it into a xml file in my project dir E:\tomcat 5.5\webapps\csm\include\xml def writer = new StringWriter() def xml = new MarkupBuilder(writer) String[] splitted
xml.rows() { for(int i=0;i here println wri... | TITLE:
How to write xml into a file using MarkupBuilder
QUESTION:
I created an xml using MarkupBuilder in groovy but how do i write it into a xml file in my project dir E:\tomcat 5.5\webapps\csm\include\xml def writer = new StringWriter() def xml = new MarkupBuilder(writer) String[] splitted
xml.rows() { for(int i=0;... | [
"java",
"xml",
"groovy",
"markupbuilder"
] | 3 | 5 | 6,172 | 5 | 0 | 2011-06-01T06:36:30.513000 | 2011-06-01T06:54:54.540000 |
6,197,190 | 6,197,311 | How to setup a mail interceptor in rails 3.0.3? | I am using rails 3.0.3, ruby 1.9.2-p180, mail (2.2.13). I m trying to setup a mail interceptor but I am getting the following error /home/abhimanyu/Aptana_Studio_3_Workspace/delivery_health_dashboard_03/config/initializers/mailer_config.rb:16:in ` ': uninitialized constant DevelopmentMailInterceptor (NameError) How do ... | require 'development_mail_interceptor' #add this line ActionMailer::Base.register_interceptor(DevelopmentMailInterceptor) if Rails.env.development? | How to setup a mail interceptor in rails 3.0.3? I am using rails 3.0.3, ruby 1.9.2-p180, mail (2.2.13). I m trying to setup a mail interceptor but I am getting the following error /home/abhimanyu/Aptana_Studio_3_Workspace/delivery_health_dashboard_03/config/initializers/mailer_config.rb:16:in ` ': uninitialized constan... | TITLE:
How to setup a mail interceptor in rails 3.0.3?
QUESTION:
I am using rails 3.0.3, ruby 1.9.2-p180, mail (2.2.13). I m trying to setup a mail interceptor but I am getting the following error /home/abhimanyu/Aptana_Studio_3_Workspace/delivery_health_dashboard_03/config/initializers/mailer_config.rb:16:in ` ': uni... | [
"ruby",
"ruby-on-rails-3",
"actionmailer"
] | 24 | 49 | 6,711 | 2 | 0 | 2011-06-01T06:36:30.830000 | 2011-06-01T06:49:50.667000 |
6,197,192 | 6,278,433 | MovieClip in perspective | I would like to have a MovieClip that has a bit of depth. I can't use rotationX, rotationY or rotationZ because I have to use Flash CS3. The first image is what I have now, a flat movieclip. The second is what I should have. I already tried using a matrix, but that didn't work. I posed a question about it, and there so... | Is "view.render" in a enter_frame function? It worked for me with flashdevelop & Away3d 4.0: public var aSprite:Plane = new Plane(new ColorMaterial(0xFF0000)); public var cam:Camera3D = new Camera3D(); public var view:View3D = new View3D(null,cam);
public function test() { this.addChild(view);
var vec:Vector3D = new ... | MovieClip in perspective I would like to have a MovieClip that has a bit of depth. I can't use rotationX, rotationY or rotationZ because I have to use Flash CS3. The first image is what I have now, a flat movieclip. The second is what I should have. I already tried using a matrix, but that didn't work. I posed a questi... | TITLE:
MovieClip in perspective
QUESTION:
I would like to have a MovieClip that has a bit of depth. I can't use rotationX, rotationY or rotationZ because I have to use Flash CS3. The first image is what I have now, a flat movieclip. The second is what I should have. I already tried using a matrix, but that didn't work... | [
"flash",
"actionscript-3",
"away3d"
] | 0 | 2 | 438 | 1 | 0 | 2011-06-01T06:36:33.717000 | 2011-06-08T12:07:17.507000 |
6,197,197 | 6,197,281 | How can I do comparison in List of dictionaries for key values? | I have this list of dictionary below. What i want is to search for same "alias" and add their score to combine them into a single dictionary and make a cleaner list. d=[{"alias": "2133232", "score": 144}, {"alias": "u234243", "score": 34}, {"alias": "u234243", "score": 34},{"alias": "2133232", "score": 14}, {"alias": "... | from itertools import groupby from operator import itemgetter dict(((u, sum(row['score'] for row in rows)) for u, rows in groupby(sorted(d, key=itemgetter('alias')), key=itemgetter('alias')))) # {'2133232': 158, 'u234243': 416} | How can I do comparison in List of dictionaries for key values? I have this list of dictionary below. What i want is to search for same "alias" and add their score to combine them into a single dictionary and make a cleaner list. d=[{"alias": "2133232", "score": 144}, {"alias": "u234243", "score": 34}, {"alias": "u2342... | TITLE:
How can I do comparison in List of dictionaries for key values?
QUESTION:
I have this list of dictionary below. What i want is to search for same "alias" and add their score to combine them into a single dictionary and make a cleaner list. d=[{"alias": "2133232", "score": 144}, {"alias": "u234243", "score": 34}... | [
"python",
"list",
"search"
] | 2 | 1 | 95 | 3 | 0 | 2011-06-01T06:37:29.037000 | 2011-06-01T06:46:48.210000 |
6,197,198 | 6,197,759 | Dynamic views with one static xml | I have an xml file right now which has a TableLayout within a LinearLayout. Within the TableLayout are TableRows with Buttons. Within my Java code, I do a setOnClickListener for each button. The problem is I have several xml files like this which are exactly the same, except within the xml the ID and text's of the diff... | just keep one xml file (a.xml). say the ids of the two buttons be id1 and id2. use setContentView(R.layout.a);. Next declare 2 buttons say b1 and b2. set b1 = (Button) findViewById(R.id.id1) and b2 = (Button) findViewById(R.id.id2). put setOnClickListener for the buttons in the switch-case | Dynamic views with one static xml I have an xml file right now which has a TableLayout within a LinearLayout. Within the TableLayout are TableRows with Buttons. Within my Java code, I do a setOnClickListener for each button. The problem is I have several xml files like this which are exactly the same, except within the... | TITLE:
Dynamic views with one static xml
QUESTION:
I have an xml file right now which has a TableLayout within a LinearLayout. Within the TableLayout are TableRows with Buttons. Within my Java code, I do a setOnClickListener for each button. The problem is I have several xml files like this which are exactly the same,... | [
"android"
] | 1 | 1 | 624 | 3 | 0 | 2011-06-01T06:37:40.153000 | 2011-06-01T07:36:49.400000 |
6,197,201 | 6,197,322 | mysql comparing two integers from two tables | if($num>0) { echo " Table Request".$_SESSION['s1']; echo" Id Drug Quantity "; for($i=0;$i<$num;$i++) { $row=mysql_fetch_row($result); $r[$i]=$row[1]; echo " "; for($j=0;$j<$num1;$j++) { echo" $row[$j] "; } echo" "; echo" "; echo" "; $r[$i]=$row[1]; } if(isset($_POST['p'])) { foreach($_POST['p'] as $key=>$value) { if($v... | If you really want what the title says, why you don't do something like that SELECT table1.quantity AS qu1, table2.quantity AS qu2 FROM table1, table2 WHERE your_conditions; When you get the results, you can compare qu1 against qu2. But if you are looking for something different, than please be more specific with your ... | mysql comparing two integers from two tables if($num>0) { echo " Table Request".$_SESSION['s1']; echo" Id Drug Quantity "; for($i=0;$i<$num;$i++) { $row=mysql_fetch_row($result); $r[$i]=$row[1]; echo " "; for($j=0;$j<$num1;$j++) { echo" $row[$j] "; } echo" "; echo" "; echo" "; $r[$i]=$row[1]; } if(isset($_POST['p'])) {... | TITLE:
mysql comparing two integers from two tables
QUESTION:
if($num>0) { echo " Table Request".$_SESSION['s1']; echo" Id Drug Quantity "; for($i=0;$i<$num;$i++) { $row=mysql_fetch_row($result); $r[$i]=$row[1]; echo " "; for($j=0;$j<$num1;$j++) { echo" $row[$j] "; } echo" "; echo" "; echo" "; $r[$i]=$row[1]; } if(iss... | [
"php",
"mysql"
] | 0 | 0 | 1,012 | 1 | 0 | 2011-06-01T06:38:03.417000 | 2011-06-01T06:51:31.047000 |
6,197,202 | 6,197,528 | UIScrollview touches | I have an instance of UIScrollView which I'm allowing the user to zoom in/out. I've implemented a delegate to take care of this as per the docs. However, I'd like to know where the user is touching the scrollview (relative to the scrollview's superview's frame). Can I intercept this information, such as via some proper... | There is no property in scroll view which will tell you the location of the touch. You can know if it's being dragged or scrolled but you won't have the location of the touch. If you are hesitant about subclassing UIScrollView, you can look at a custom UIGestureRecognizer which will help you keep track of the current l... | UIScrollview touches I have an instance of UIScrollView which I'm allowing the user to zoom in/out. I've implemented a delegate to take care of this as per the docs. However, I'd like to know where the user is touching the scrollview (relative to the scrollview's superview's frame). Can I intercept this information, su... | TITLE:
UIScrollview touches
QUESTION:
I have an instance of UIScrollView which I'm allowing the user to zoom in/out. I've implemented a delegate to take care of this as per the docs. However, I'd like to know where the user is touching the scrollview (relative to the scrollview's superview's frame). Can I intercept th... | [
"ios",
"uiscrollview",
"touches"
] | 0 | 1 | 296 | 1 | 0 | 2011-06-01T06:38:05.963000 | 2011-06-01T07:12:44.057000 |
6,197,207 | 6,201,360 | Achieving Google Visualization chart reloads using ajax | Been looking around the web, but not found anything so far... can anyone help? I have created a simple html page that contains a list-box of values that when selected calls a seperate php script to run database query and print out a structure html page. This has been implemented using ajax calls and it results in the p... | You could achieve this using jQuery AJAX and some arrays generated by your php. This is a pretty basic but straightforward approach - you may want to look around for php client libraries that generate gviz code for you in your php if this proves to be insufficient. Here's a working example: HTML file PHP File Obvio... | Achieving Google Visualization chart reloads using ajax Been looking around the web, but not found anything so far... can anyone help? I have created a simple html page that contains a list-box of values that when selected calls a seperate php script to run database query and print out a structure html page. This has b... | TITLE:
Achieving Google Visualization chart reloads using ajax
QUESTION:
Been looking around the web, but not found anything so far... can anyone help? I have created a simple html page that contains a list-box of values that when selected calls a seperate php script to run database query and print out a structure htm... | [
"php",
"ajax",
"charts",
"google-visualization"
] | 0 | 7 | 4,888 | 1 | 0 | 2011-06-01T06:38:45.573000 | 2011-06-01T12:46:43.563000 |
6,197,210 | 6,202,619 | Umbraco - load content with Ajax | I'm new to Umbraco and only started to figure out the ins and outs of it. Anyway, I've figured out on my own the way document types, macros, templates, xslt files work and am now trying to do some other stuff. Namely I need to load a document content using an AJAX call. It's basically a panel with a menu (dynamic, whic... | Yup this is exactly the scenario that Base is used for. You can find documentation on using base here: http://our.umbraco.org/wiki/reference/umbraco-base/simple-base-samples For the consumption of base via AJAX then JQuery is the answer. http://api.jquery.com/jQuery.ajax/ Here's a hacked together example (not tested co... | Umbraco - load content with Ajax I'm new to Umbraco and only started to figure out the ins and outs of it. Anyway, I've figured out on my own the way document types, macros, templates, xslt files work and am now trying to do some other stuff. Namely I need to load a document content using an AJAX call. It's basically a... | TITLE:
Umbraco - load content with Ajax
QUESTION:
I'm new to Umbraco and only started to figure out the ins and outs of it. Anyway, I've figured out on my own the way document types, macros, templates, xslt files work and am now trying to do some other stuff. Namely I need to load a document content using an AJAX call... | [
"ajax",
"load",
"umbraco"
] | 0 | 2 | 8,335 | 3 | 0 | 2011-06-01T06:38:57.087000 | 2011-06-01T14:14:18.420000 |
6,197,216 | 6,216,440 | How to fix the page position when I resize my HTA | We are using HTAs to display detailed reporting information (about our automated tests). The HTA can become multiple page lengths. It works great for our users, but I have a usability issue: When a user has scrolled to a certain position in the report (say, teststep 42) and the user maximizes or resizes the HTA window,... | You should be able to use the scrollTop property of an element to know how far someone has scrolled down in the page. Use the onscroll event of the containing div element to record the value of that property each time scrolling occurs. Then use some sort of "after resize" event to set the scrollTop property to the last... | How to fix the page position when I resize my HTA We are using HTAs to display detailed reporting information (about our automated tests). The HTA can become multiple page lengths. It works great for our users, but I have a usability issue: When a user has scrolled to a certain position in the report (say, teststep 42)... | TITLE:
How to fix the page position when I resize my HTA
QUESTION:
We are using HTAs to display detailed reporting information (about our automated tests). The HTA can become multiple page lengths. It works great for our users, but I have a usability issue: When a user has scrolled to a certain position in the report ... | [
"javascript",
"html",
"css",
"hta"
] | 0 | 1 | 1,266 | 2 | 0 | 2011-06-01T06:39:19.240000 | 2011-06-02T15:10:27.193000 |
6,197,221 | 6,197,248 | What is the best way to call stored proc for each row? | I try to copy this set of tables to other set with the same scheme as the source. I wrote stored proc, in SQL, that receives ID from TableA and copies all tables from B-G. Now I want for each row of TalbeA to call that stored proc. I can use CURSOR or WHILE for this but, I read that CURSOR is not recommended and that W... | CURSOR / WHILE is fine in this instance - there isn't a better way to call a sproc per row. If the performance of this is likely to have an impact on the system, though, be careful when you run it. There is a better alternative if you can code it up - and that's to perform all the "copying" for the records in TableA an... | What is the best way to call stored proc for each row? I try to copy this set of tables to other set with the same scheme as the source. I wrote stored proc, in SQL, that receives ID from TableA and copies all tables from B-G. Now I want for each row of TalbeA to call that stored proc. I can use CURSOR or WHILE for thi... | TITLE:
What is the best way to call stored proc for each row?
QUESTION:
I try to copy this set of tables to other set with the same scheme as the source. I wrote stored proc, in SQL, that receives ID from TableA and copies all tables from B-G. Now I want for each row of TalbeA to call that stored proc. I can use CURSO... | [
"sql",
"sql-server",
"sql-server-2005",
"t-sql",
"sql-server-2008"
] | 2 | 2 | 217 | 2 | 0 | 2011-06-01T06:39:35.897000 | 2011-06-01T06:42:55.853000 |
6,197,225 | 6,198,275 | How to run an ant script from VC++ | Assume a Visual C++ solution that outputs several executables. These executables are meant to be run in a certain order and with certain parameters -- and for this purpose there already is an ant build.xml script. What would be a decent approach to integrating this ant script with VC++, such that the ant script will po... | I'm not sure if there is a good answer for this. Perhaps you are not asking the right questions. From C++ you can launch anything, including scripts. I'm not sure what you mean by VC++ integration. The generic answer would be: save the output locations somewhere, doesn't matter where (file, registry, environment variab... | How to run an ant script from VC++ Assume a Visual C++ solution that outputs several executables. These executables are meant to be run in a certain order and with certain parameters -- and for this purpose there already is an ant build.xml script. What would be a decent approach to integrating this ant script with VC+... | TITLE:
How to run an ant script from VC++
QUESTION:
Assume a Visual C++ solution that outputs several executables. These executables are meant to be run in a certain order and with certain parameters -- and for this purpose there already is an ant build.xml script. What would be a decent approach to integrating this a... | [
"visual-c++",
"ant",
"remote-debugging"
] | 0 | 1 | 230 | 1 | 0 | 2011-06-01T06:40:26.477000 | 2011-06-01T08:26:32.677000 |
6,197,230 | 6,197,356 | Is there a way to get image name in place of image position in setOnClickListener onClick method under grid view? | I am using grid view example. What i want to know is that is there a way to get the image name when a user clicks on a particular image? Right now we are able to get the position of the image clicked. Please help me on this. | First you can used custom gridview like listview.. imageviewname.setTag("yourimagename");
imageviewname.setOnClickListener(new OnClickListener() {
@Override public void onClick(View v) { // TODO Auto-generated method stub String imgname = v.getTag(); // toast message } }); | Is there a way to get image name in place of image position in setOnClickListener onClick method under grid view? I am using grid view example. What i want to know is that is there a way to get the image name when a user clicks on a particular image? Right now we are able to get the position of the image clicked. Pleas... | TITLE:
Is there a way to get image name in place of image position in setOnClickListener onClick method under grid view?
QUESTION:
I am using grid view example. What i want to know is that is there a way to get the image name when a user clicks on a particular image? Right now we are able to get the position of the im... | [
"android",
"android-gridview"
] | 0 | 2 | 1,055 | 1 | 0 | 2011-06-01T06:40:44.637000 | 2011-06-01T06:55:14.067000 |
6,197,236 | 6,197,461 | How to add a view to custom listview in android? | I have made custom listview in android activity which has progressbar. On top of that listview there is another progress bar which shows progress as day passes in the month. Now i want to set a bar according to the progress of the month progress bar in custom listview which has four progress bars. Please see the attach... | You should add call to removeAllViews in your getView funcion: mLinearLayout = (LinearLayout) convertView.findViewById(R.id.PuttingBar); mLinearLayout.removeAllViews(); View mView = new View(mContext); That's because LinearLayout accumulates views, and there might be multiple calls to your addView function. So you need... | How to add a view to custom listview in android? I have made custom listview in android activity which has progressbar. On top of that listview there is another progress bar which shows progress as day passes in the month. Now i want to set a bar according to the progress of the month progress bar in custom listview wh... | TITLE:
How to add a view to custom listview in android?
QUESTION:
I have made custom listview in android activity which has progressbar. On top of that listview there is another progress bar which shows progress as day passes in the month. Now i want to set a bar according to the progress of the month progress bar in ... | [
"android",
"listview",
"view",
"addition"
] | 1 | 2 | 2,535 | 1 | 0 | 2011-06-01T06:41:47.163000 | 2011-06-01T07:06:10.500000 |
6,197,244 | 6,239,272 | Google Maps - How to locate a marker in a markers array? | How can I check if a google map marker is already inside an array of markers? Even after this markersArray.push(marker); the condition (marker in markersArray) is false. | First, (marker in markersArray) is wrong since in doesn't look for elements in the array. It looks for properties. The way it worked for me was for (var i=0; i This works as long as what you need compared is only the coordinates of the markers. We use here the LatLng class'.equals operator. | Google Maps - How to locate a marker in a markers array? How can I check if a google map marker is already inside an array of markers? Even after this markersArray.push(marker); the condition (marker in markersArray) is false. | TITLE:
Google Maps - How to locate a marker in a markers array?
QUESTION:
How can I check if a google map marker is already inside an array of markers? Even after this markersArray.push(marker); the condition (marker in markersArray) is false.
ANSWER:
First, (marker in markersArray) is wrong since in doesn't look for... | [
"javascript",
"google-maps",
"google-maps-api-3",
"google-maps-markers"
] | 5 | 5 | 7,962 | 4 | 0 | 2011-06-01T06:42:43.163000 | 2011-06-04T20:42:16.750000 |
6,197,247 | 6,197,872 | How to control the handset using AT commands in java | I know that by using AT commands we can control the handset.As example unlocking screen we can give a specific AT command or moving right to the menu or left or bottom or up we can give specific AT commands. What all are the AT commands for doing this kind of control. Thank you. | List of AT commands sample java code to use AT command public void servicesDiscovered(int transID, ServiceRecord serviceRecord[]) { String url = serviceRecord[0].getConnectionURL(1, false); try { //ClientSession conn= (ClientSession)Connector.open(url); StreamConnection meineVerbindung = (StreamConnection) Connector.op... | How to control the handset using AT commands in java I know that by using AT commands we can control the handset.As example unlocking screen we can give a specific AT command or moving right to the menu or left or bottom or up we can give specific AT commands. What all are the AT commands for doing this kind of control... | TITLE:
How to control the handset using AT commands in java
QUESTION:
I know that by using AT commands we can control the handset.As example unlocking screen we can give a specific AT command or moving right to the menu or left or bottom or up we can give specific AT commands. What all are the AT commands for doing th... | [
"java",
"at-command"
] | 1 | 1 | 3,220 | 2 | 0 | 2011-06-01T06:42:46.290000 | 2011-06-01T07:48:12.790000 |
6,197,251 | 6,197,416 | Comparing hash from string against hash of local file | What I am trying to do is read from a text file where each line has the path to a file and then space for a separator and a hash that accompanies it. So I call checkVersion() and loadStrings(File f_) returns a String[], one place for each line. When I try to check the hashes however I end up with something that isn't e... | The String.getBytes() method returns the bytes that represent the character encodings for the string. It doesn't parse it into bytes that represent a number in some arbitrary radix. For example "AA".getBytes() would yield you 0x41 0x41 on windows, not 10101010b, which is what it appears you were expecting? To get that ... | Comparing hash from string against hash of local file What I am trying to do is read from a text file where each line has the path to a file and then space for a separator and a hash that accompanies it. So I call checkVersion() and loadStrings(File f_) returns a String[], one place for each line. When I try to check t... | TITLE:
Comparing hash from string against hash of local file
QUESTION:
What I am trying to do is read from a text file where each line has the path to a file and then space for a separator and a hash that accompanies it. So I call checkVersion() and loadStrings(File f_) returns a String[], one place for each line. Whe... | [
"java",
"md5"
] | 0 | 1 | 385 | 2 | 0 | 2011-06-01T06:43:07.897000 | 2011-06-01T07:00:58.457000 |
6,197,261 | 6,197,318 | Way to change icon of accessory type in UITableviewcell | I have table view which is showing list of files to download. When I tap the accessory button it will download the selected file. I want to change image of detail disclosure button. Is it possible....? And If I use Button with image in accessory view. Is there any table delegate method for this... | Answer2: You can make your own method and call that in that case. int row=indexPath.row;
UIButton *trackImageOnMap=[[UIButton alloc] initWithFrame:CGRectMake(420, 9, 40, 50)]; [trackImageOnMap setImage:[UIImage imageNamed:@"track_map_icon.png"] forState:UIControlStateNormal]; int iId=[[self.imageId objectAtIndex:row] ... | Way to change icon of accessory type in UITableviewcell I have table view which is showing list of files to download. When I tap the accessory button it will download the selected file. I want to change image of detail disclosure button. Is it possible....? And If I use Button with image in accessory view. Is there any... | TITLE:
Way to change icon of accessory type in UITableviewcell
QUESTION:
I have table view which is showing list of files to download. When I tap the accessory button it will download the selected file. I want to change image of detail disclosure button. Is it possible....? And If I use Button with image in accessory ... | [
"iphone",
"uitableview",
"accessoryview"
] | 3 | 4 | 9,369 | 3 | 0 | 2011-06-01T06:44:32.827000 | 2011-06-01T06:50:56.180000 |
6,197,264 | 6,197,682 | How can i know the source of memory increasing in my code while runing it | I know it's a stupid question, but when i run my program which contains threading, i find that the memory(VM, and Memory used) by the application in the Task manager is increasing regarding that my threads are stopped at that moment, so i wonder if there's any way to know the source of this, or just know at which line ... | You can use the CLR Profiler application to get snapshots of your memory consumption. Then you'll be able to identify the source of your issue. CLR Profiler is free and available here: http://www.microsoft.com/downloads/en/details.aspx?FamilyID=be2d842b-fdce-4600-8d32-a3cf74fda5e1 | How can i know the source of memory increasing in my code while runing it I know it's a stupid question, but when i run my program which contains threading, i find that the memory(VM, and Memory used) by the application in the Task manager is increasing regarding that my threads are stopped at that moment, so i wonder ... | TITLE:
How can i know the source of memory increasing in my code while runing it
QUESTION:
I know it's a stupid question, but when i run my program which contains threading, i find that the memory(VM, and Memory used) by the application in the Task manager is increasing regarding that my threads are stopped at that mo... | [
"c#",
"visual-studio",
"visual-studio-2008"
] | 0 | 1 | 78 | 3 | 0 | 2011-06-01T06:44:45.727000 | 2011-06-01T07:29:48.570000 |
6,197,265 | 6,203,269 | Cannot find Izpack 'src' folder | I am trying to get the source for the built in panels 'Izpack' provides..... the documentation says it should be present at /src/lib/com/izforge/izpack/panels. but the src folder is missing (not there where i installed Izpack )... can someone please tell where i can find it | I didn't quite understand your question. The download page for IzPack says: If you are interested in the source code then please have a look at the instructions for obtaining it from Git. So to get the source code, follow the instructions on this page. You will need to install Git, then you will be able to checkout sou... | Cannot find Izpack 'src' folder I am trying to get the source for the built in panels 'Izpack' provides..... the documentation says it should be present at /src/lib/com/izforge/izpack/panels. but the src folder is missing (not there where i installed Izpack )... can someone please tell where i can find it | TITLE:
Cannot find Izpack 'src' folder
QUESTION:
I am trying to get the source for the built in panels 'Izpack' provides..... the documentation says it should be present at /src/lib/com/izforge/izpack/panels. but the src folder is missing (not there where i installed Izpack )... can someone please tell where i can fin... | [
"java",
"installation",
"izpack"
] | 1 | 1 | 572 | 2 | 0 | 2011-06-01T06:44:48.893000 | 2011-06-01T14:59:02.003000 |
6,197,283 | 6,197,317 | How to get url of the form page after action? | i want to get the form url after the page has been submitted to the action page. seems like its possible in serverside: Java seeking referer but is it possible in client side javascript?! | document.referrer gives you the referring url in javascript. http://jsfiddle.net/niklasvh/GNmNQ/ | How to get url of the form page after action? i want to get the form url after the page has been submitted to the action page. seems like its possible in serverside: Java seeking referer but is it possible in client side javascript?! | TITLE:
How to get url of the form page after action?
QUESTION:
i want to get the form url after the page has been submitted to the action page. seems like its possible in serverside: Java seeking referer but is it possible in client side javascript?!
ANSWER:
document.referrer gives you the referring url in javascript... | [
"javascript",
"jquery",
"html",
"forms",
"action"
] | 0 | 0 | 576 | 1 | 0 | 2011-06-01T06:46:58.163000 | 2011-06-01T06:50:52.387000 |
6,197,289 | 6,198,988 | How to implement horizontal and vertical scroll in box2d world properly? | I have implemented horizontal scroll, but vertical scroll making trouble, and the trouble is difficult to explain. So I can scroll scene vertically, and horizontally, if that is been done from the scene's origin, i.e ccp(0,0). But when Scrolling towards X have been done, and been paused in the middle, then if i scroll ... | IF SOMEONE HAVE GOT MY QUESTION THEN HERE IS THE ANSWR FOR HIM, //NAVIGATION TOWARDS X AND Y WhenEver and how ever you want if (abs(diffX) > abs(diffY)) { CCLOG(@"yScrlFlag=%d",yScrlFlag); if(diffX > 0) { xScrlFlag=1; [self.parent runAction:[CCMoveTo actionWithDuration:round(-(-3112-self.parent.position.x)/250) positio... | How to implement horizontal and vertical scroll in box2d world properly? I have implemented horizontal scroll, but vertical scroll making trouble, and the trouble is difficult to explain. So I can scroll scene vertically, and horizontally, if that is been done from the scene's origin, i.e ccp(0,0). But when Scrolling t... | TITLE:
How to implement horizontal and vertical scroll in box2d world properly?
QUESTION:
I have implemented horizontal scroll, but vertical scroll making trouble, and the trouble is difficult to explain. So I can scroll scene vertically, and horizontally, if that is been done from the scene's origin, i.e ccp(0,0). Bu... | [
"iphone",
"cocos2d-iphone",
"box2d"
] | 0 | 0 | 469 | 1 | 0 | 2011-06-01T06:47:50.390000 | 2011-06-01T09:26:55.950000 |
6,197,290 | 6,197,439 | How to merge 2 string array in Delphi | I have 2 or more dynamic string array that fill with some huge data, i want to merge this 2 array to one array, i know i can do it with a for loop like this: var Arr1, Arr2, MergedArr: Array of string; I: Integer; begin // Arr1:= 5000000 records // Arr2:= 5000000 records
// Fill MergedArr by Arr1 MergedArr:= Arr1;
//... | You can use built-in Move function which moves a block of memory to another location. Parameters are source and target memory blocks and size of data to be moved. Because you are copying strings, source arrays must be destroyed after the merging by filling them with zeroes. Otherwise refcounts for strings will be all w... | How to merge 2 string array in Delphi I have 2 or more dynamic string array that fill with some huge data, i want to merge this 2 array to one array, i know i can do it with a for loop like this: var Arr1, Arr2, MergedArr: Array of string; I: Integer; begin // Arr1:= 5000000 records // Arr2:= 5000000 records
// Fill M... | TITLE:
How to merge 2 string array in Delphi
QUESTION:
I have 2 or more dynamic string array that fill with some huge data, i want to merge this 2 array to one array, i know i can do it with a for loop like this: var Arr1, Arr2, MergedArr: Array of string; I: Integer; begin // Arr1:= 5000000 records // Arr2:= 5000000 ... | [
"arrays",
"delphi"
] | 9 | 7 | 4,881 | 3 | 0 | 2011-06-01T06:47:52.620000 | 2011-06-01T07:03:44.760000 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.