Posts

java - NoClassDefFoundError when running Facebook official example -

Sorry I'm new, stackoverflow does not allow me to post image and link ... I try to use official Android SDK () I install SDK and try to run an example First of all, it failed on "build" This can not be found in the Facebook SDK, so I follow the steps found in the SDK page. Add dependencies to the Facebook Android SDK library on your app: From the File menu, select "Properties" Once the project properties are In the "Library" section below, click "Add ..." and select the Facebook SDK project Open the Android section, more info See for I check the link at # 4, it's a Mac OS X version Ex It displays the ips, which is the library segment, but on my Vista PC, with the Eclipse 3.5.2, there is no library section in it ... - - I try to add the Facebook SDK to the Java Build Path. Now it can "build" on both the emulator and the device. However, once it started, this accident shows the logcat: Error / And...

html - ASP.NET Dynamically creating HTMLTableColumns (headers) -

Is it possible that the HTML table column (& lt; th> & lt; / th>) is dynamic with names Make the form. UI.HtmlControls? Try this: HtmlTable table1 = new HtmlTable () ; // Set the formatting-related property of the table Table 1. Board = 1; Table 1 Cell padding = 3; Table 1 Cell spacing = 3; Table 1 Border = "red"; // Start adding content to the table HtmlTableRow; HtmlTableCell cell; For (int i = 1; i & lt; = 5; i ++) {// Create a new row and set its background color = new HtmlTableRow (); Line.bugger = (i% 2 == 0 "light": "lightsen"); For (int j = 1; j & lt; = 4; j ++) {// Create a cell and set its text cell = new HtmlTableCell (); Cell.InnerHtml = "line:" + i.ToString () + " cell:" + j.ToString (); // add cell to existing row row.Cells.Add (cell); } // Add the row to the table. Table1.Rows.Add (line); } // Add the page to this.Controls.Add (table1);

c# - ReflectionTypeLoadException for Microsoft.Web.Administration running Test Project in VS2010 -

We have recently upgraded our VS2008 projects to VS2010 Our code base is still targeting the 3.5 version , But I'm sure most of you will know that the test project should be upgraded to framework version 4.0. We have a special test that does not work yet that the testing project is targeting 4.0 framework. It tests all the test codes which are doing some type of reflection. Through some debugging I managed to reduce the problem. The following code for any reason in the upgraded test project: AppDomain.CurrentDomain.GetAssemblies (); A reference will be returned for "Microsoft.VisualStudio.Enterprise.AspNetHelper". If I call GetTypes () on this assembly again, then it says that this "Microsoft.Web.Administration" assembly loads does not make. So I think there are some types in Microsoft. Visual Studio Enterprise. Aspen Heller ", which is in other kind of context in Microsoft or has some context, web administration.I have read something ...

iphone 4 has a GPS antenna yes or no? -

Does anyone confirm that without the WiFi or 3G connection, can the iPhone 4 coordinate with GPS? On my iphone 4 i tested and i do not think to work. On my iPad, I tested and without WiFi or 3G, I got the blue dot running on the map. Yes, but it can take up to 5 minutes to get the coordinates.

.net - How can I see the SQL call to the Db done by NHibernate? -

How can I see the SQL call generated and passed to DB by NHibernate? File Hibernate.cfg.xml to me this line: & lt; Property Name = "Show_Sex" & gt; Wrong & lt; / Property & gt; Any ideas? Thank you Did you specify the "show_sql" Have tried to set on / code>?

SQL date format bind variable -

Can someone please tell me what is wrong with this SQL query? Select USERNAME, CallerID from DateCreated, CREDTYPE, USAGETYPE, OPERATIONID, TXNID, arwfissuanceauditlog where in OPERATIONID (2104,2107) and DateCreated & gt; = 'TO_DATE (' 2010/06/21 ',' yyyy / MM / dd HH24: MI: SS ')' and Detrett & Lt; 'TO_DATE (' 2010/08/03 ',' yyyy / MM / dd HH24: MI: SS ')' When I ran into SQL Developer I got this message unknown command bind variable "MI" has not been declared I am speaking from Java like this Try {stmt = conn.createStatement (); Results = stmt.executeQuery (queryToExecute); } Hold (SQLException e) {CredChangeReportSVC.DEFAULTLOGGER.error ("Exception occurred when executing query:" + queryToExecute, e); } I received this message in the log Error 03 August 2010 14: 51: - 06, 939 query while executing an exception: "USERNAME's selection CallerID to OPERATIONID (2104,2107) and D...

mod rewrite - mod_rewrite for PHP's "lang?=" for more than one page? -

I am currently using code follwoing in my .htaccess file RewriteEngine On RewriteBase / #Redirect Language Rev.Rule ^^ (N | SES | zh \ -tw | zh \ -cn) /? $ Index.php? Lang = $ 1 [L] With that code, every time I type, type / n at the end of the URL, > /? Redirects to Lang = en (loads the contents of English from the PHP array): For example: Example / N example /? Lang = en But I have a thank.php page and obviously only after the index.php work for the page. > For both of index.php and thanks.php page The most straight-forward path is just to do this: RewriteRule ^ (en | es | zh \ -tw | zh \ CN) / $ Index Php? Lang = $ 1 [L] RewriteRule ^ thanks / (en | es | zh \ -tw | zh \ -cn) /? Thanks $ php? Lang = $ 1 [L] If you want to make it more general, you have the option of white-listing files, such as: Rewrite $ 1 ^ (thanks) / $ [or] rewrite index ^ (index) $ RewriteRule ^ (./)? (En | es | zh \ -tw | zh \ -cn) /? $% 1.php? Lang = $ 2 [L] ...