Posts

java - Unable to access my boolean list -

So I have this list & lt; & Gt; Includes Boolean Areas: Stable list & lt; Boolean [] & gt; myList = new arreelist & lt; & Gt; (); And I add to this list: Boolean [mybooleanArray = new boolean [8]; So now when I take my list with () loop, using it: myList.get (i); There is something like this in my output console: [z @ 65e7c41f but I want to do a lot in Theoj objects too I am How can I do this? As the organs do not override the methods from the object class, you get the default string representation That is: getClass () GetName () + '@' + integer.tocestring (hash code ()) If you want to print the content of an array, you can use it. {boolean [arr: myList] {System.out.println (Arrays.toString (arr)) for ; } I do not know what you are doing with your boolean array with your list , but know that your Small surprises can be passed: public class test (static list & lt; Boolean [] & gt; myList = new arreelis...

Insert php date("Y-m-d") directly into SQL query -

I am currently running a SQL query to count the results from tomorrow I am trying to shorten my code and I am thinking that if there is a method, then I can include the following command ... Date ("YMD", strotome ('1 day')); directly into my query? Currently I am specifying this variable and then I am putting such variables ... $ yesterday = date ("Y-M-D", strotome ('-1 day')); Select COUNT as my (*) and count my_table WHERE value from 'd01' and the date '% $'% ' You can use the mysql function to work as JOB date = date (DATE_SUB (NOW), INTERVAL 1 day) More explanation here mysql> Select DATE_SUB (NOW (), INTERVAL 1 day); + --------- ------------------------ + | DATE_SUB (NOW (), INTERVAL 1 day) | + ------------ --------------------- + 2014-04-20 07:27:01 | + --------------- ------------------ + 1 line set (0.03 seconds) mysql> Select DATE (DATE_SUB (NOW (), INTERVAL 1 day)); + -------------------...

php - XML Parsing error -

I am trying to parse the XML file, but am getting the parsing error. Code :: $ xmlUrl = 'products.xml'; $ xmlStr = file_get_contents ($ xmlUrl); $ xmlObj = simplexml_load_string ($ xmlStr); XML file :: I am getting the error due to this tag See a simpleXML object and a conversion for output, see the code below. See your "products.xml" file for the correct UTF-8 encoding type. & lt ;? Php $ xml = & lt; & Lt; & Lt; XML & lt ;? XML version = "1.0" encoding = "UTF-8"? & Gt; & Lt; Results & gt; & Lt; orderlist & gt; & Lt; order_no & gt; 123,123 & lt; / order_no & gt; & Lt; Date & gt; & Lt; / Date & gt; & Lt; client_name & gt; NAP & amp; Donut shop & lt; / client_name & gt; & Lt; Region & gt; 54 & lt; / Region & gt; & Lt; / Orderlist & gt; & Lt; / Results & gt; Xml; $ xml = str_replace (array ("...

php - List all Posts under heading in wp_list_pages menu -

I am currently using default page navigation (wp_list_pages) with WordPress, and I have used my home page as "home" and My blog is called "Events" on one page but I want to list 10 most recent posts under the "Events" child. I tried to hack it in using the code, but it dropped the content at all places and deleted tags: add_filter ('wp_list_pages', 'Add_forum_link'); Function add_forum_link ($ output) {$ output. = '& Lt; Li & gt; & Lt; A href = "#" & gt; Blogs & lt; / A & gt; & Lt; Ul & gt; '; Query_posts ('showposts = 10'); While (is_paus ()) {the_post (); $ Output = '& Lt; Li & gt; & Lt; a href = "'. the_permalink ()." & Gt; 'the_title ().' & Lt; / A & gt; & Lt; / li & gt; '; } $ Output. = '& Lt; / Ul & gt; & Lt; / Li & gt; '; $ Echo output; } In addition to this it was included in cre...

C# Windows application: connection string to connect to remote sql server 2008 using windows authentication -

I am developing a windows form application using C #. I want to connect to SQL Server 2008 which is in the server using Windows authentication. Can anyone please provide me the connection string? Note: The domain is created in my server. Remote Access is enabled for SQL Server The TCP / IP port is also enabled. Please help me. I've been struggling for it since 3 days. server = myServerAddress; Database = myDataBase; Trusted_Connection = true;

android - WebView cannot load webpage inside -

I want to load the webpage inside the piece, but there is some problem. 1. Without override isOverrideUrl loading method, the website default browser is open with Chrome. 2. When Override shouldOverrideUrl loading , nothing happens, only new blank activity is created, this is my onCreateView method piece class @Override is inside the public view preview (LayoutInflater inflater, ViewGroup container, bundled saved instance) {View resultView = inflater.inflate (R. Layout Container, Container, False) ; If (getArguments ()! = Null) {string URL = getArguments (). getString (KEY_URL); WebView productDetailView = (WebView) Results View.findViewById (R.id.webView); productDetailView.setWebViewClient (new WebViewClient () {public boolean should override URL loading (webview view, string url) {return super.shouldOverrideUrl loading (see, url);}}); ProductDetailView.loadUrl (url); } View return results; } targetSdkVersion is 19 and added INTERNET is the same as the pe...

wpf - Accessing elements inside a DataTemplate in a TabItem -

Ok , I have a problem with a function that I get and XML file: & lt; TabItem X: name = "itemControls" height = "50" margin = "0" verticalAlignment = "top" HorizontalContentAlignment = "muscles" VerticalContentAlignment = "muscles" padding = "6.1" & gt; & Lt; TabItem.HeaderTemplate & gt; & Lt; DataTemplate & gt; & Lt; StackPanel Orientation = "Horizontal" & gt; & Lt; Image x: name = "icon kb" width = "25" height = "25" extension = "fill" /> & Lt; / StackPanel & gt; & Lt; / DataTemplate & gt; & Lt; /TabItem.HeaderTemplate> & Lt; / TabItem & gt; So, I tried to edit the source of the iconKB image with the following syntax: TreeHelper.FindVisualChildByName (of image) (itemControls, "iconKB "). Source = New Bitmap Image (New Yuri ("Pack: // application:, / Resources / Ic...