Friday, 15 March 2013

osx - remotely access linux folder through mac finder -


I am trying to see if there is a way to mount my Linux folder through my mac. I am using Mac OS X and using Red Hat 5.5 on my Linux.

My main purpose is to use my files locally on my Linux box on my Mac.

Easiest way : That is, if you already have one Setup on SSH server's Linux box (super easy for setup), use it like SCP client. When connected, make sure to select the SFTP (SSH File Transfer Protocol) and then use the login credentials of your Linux box.

Preferred method : Connect to Linux box and that part from the Mac using the Go -> "Connect to Server" option in the OSX File menu. SBB in the website field: // [Linux box IP] / [share name] /.

Now, none of these methods will work on other networks (from a remote) until you install the Linux box outside the world, a dynamic DNS set up and your router to your own By using something on the port-forwarding lines in the box.


sqlite - Building Sqlite3 with R*Tree on OSX -


I'm trying to make SQLite R * Tree module on OSX. Some of my Mekfail relevant parts here

  Sifelaji = -Ol -DSQLITE_ENABLE_RTREE = L = Sfaeljis -dielel -lpthread ################# # ################################################### #########% .o:% .c GCC-C $ (CFLAGS) $ & lt; -O $ @ # SQLite3 shell for shell for administrative purposes: shell c. Sqlite3.o gcc $ (Sfaeljis) -A Selkaut shell. C sqlite3.o  

However, R tree is still not available in my homebrew and sqlite3 using R Has a copy of The tree works fine on it though, I'm not sure what is wrong when I create the integration


c# - How to bind a collection of nested dictionaries to a TreeView? -


My Nested Dictionary is a collection of objects. The following structure appears in each dictionary:

  [Title] - & gt; String [Child] - & gt; Dictionary & lt; String, Object & gt; | | [Title] - & gt; String [Child] - & gt; Dictionary & lt; String, Object & gt; | | ....  

And so on, the last element of each 'path' which does not have only [title] entry (no child).

With the Xaml below, the complete collection is shown with each node, but I do not get any exception, in which there are no node leaves.

It seems, how can I say this, as if I am seeing a level ahead of bounding the current level but my tree view shows the element before the entire collection. What's wrong

  & lt; TreeView ItemsSource = "{Binding Item}" & gt; & Lt; TreeView.ItemTemplate & gt; & Lt; Hierarchical data items source = "{binding [hair]}" & gt; & Lt; StackPanel Orientation = "Horizontal" & gt; & Lt; Image width = "12" height = "14" source = "{static resource items_ico}" stretch = "uniform" /> & Lt; Label content = "{binding [name]}" tooltip = "{binding [name]}" tooltip service. Placement = "Top" /> & Lt; / StackPanel & gt; & Lt; / HierarchicalDataTemplate & gt; & Lt; /TreeView.ItemTemplate> & Lt; / TreeView & gt;  

Edit: Sorry. The first post was incomplete (slipped on the return key)


multithreading - Java threads and synchronized -


इस सवाल का पहले से ही एक उत्तर है: < / P>

  • 2 जवाब

क्या कोई मेरी मदद कर सकता है मुसीबत? मैं जावा थ्रेड्स का उपयोग कर निम्न आउटपुट को प्रिंट करना चाहता हूं।

  * + - * + - * + - * + - * + - * + - * + - * + - * + - * + - (150 बार)  

मैंने निम्नलिखित कोड लिखा है मुझे पता है कि यह पूरी तरह से सही नहीं है, लेकिन मुझे आपकी मदद की आवश्यकता है।

  पैकेज प्रिंट सिंबॉल्स; पब्लिक क्लास प्रिंट टेस्टड्रिवर {सार्वजनिक स्थिर शून्य मुख्य (स्ट्रिंग [] आर्ग्स) {PrintTestDriver ड्राइवर = नया प्रिंटटस्टड्रिवर (); driver.test (); } सार्वजनिक सिंक्रनाइज़ किए गए शून्य परीक्षण () {MyPrinter myPrinter = नया MyPrinter (); MyPrintThread एक = नया MyPrintThread ("*", myPrinter); MyPrintThread b = नया MyPrintThread ("+", myPrinter); MyPrintThread c = नया MyPrintThread ("-", myPrinter); शुरुआत(); b.start (); c.start (); }} पैकेज प्रिंट सिंबॉल्स; सार्वजनिक वर्ग MyPrintThread थ्रेड का विस्तार {स्ट्रिंग का नाम; MyPrinter प्रिंट; सार्वजनिक MyPrintThread (स्ट्रिंग का नाम, माइपरिंटर प्रिंट) {this.name = name; यह। प्रिंट = प्रिंट; } सार्वजनिक शून्य रन () {print.printname (नाम); }} पैकेज प्रिंट सिंबॉल्स; सार्वजनिक वर्ग MyPrinter {सार्वजनिक MyPrinter () {}; सार्वजनिक सिंक्रनाइज़ किए गए शून्य प्रिंटनाम (स्ट्रिंग नाम) {for (int i = 0; i & lt; 10; i ++) {System.out.print (name); कोशिश {प्रतीक्षा (); } पकड़ (बाधित ईक्सेप्शन ई) {// TODO ऑटो-जेनरेट कैच ब्लॉक e.printStackTrace (); } सूचित करेंसभी (); }}  

एक वेरिएबल है जो ट्रैक करता है कि कौन सा धागा अगले जाने वाला है। जब कोई धागा जागता है (अधिसूचित होने के कारण) यह जांचता है कि क्या यह धागा की बारी है यदि नहीं, तो फिर से ब्लॉक करें। यदि हां, तो अपने चरित्र को मुद्रित करें, यह बताएं कि कौन सा धागा आगे जाता है, अन्य धागे को सूचित करें और फिर से ब्लॉक करें।


c# - Asp.Net Response class and Write Method -


When I create a simple webform example, I write the code below to display the data on the web page.

Response Write ("Hello World");

There is general syntax in CSRAP

Create an object such as the classname objectName = New classname ()

and the column name-MethodName ();

There is no object creation for static classes and we can call the name of the classname. MethodName ();

How is the reaction in this context. Do () work? I know that there is a way to write () my question is what is the response here.

Is this a stable class? Or object (this should not be true)?

I am trying to understand that it is a static class, but it is a sealed class. This is an example, and it is inherited, a seal classname. How is it possible to call? ()?

from the base class (pages).


php - SQL special text escaping -


I want to include the following four lines in a database:

[Sources ] Prices (6, 'ar', '@ # Ido @ / 60 * @ # Órabér @ * @ # Torzítás @'); [Sources] values ​​(7, 'Ido', 'Ceil (((@ # Összhossz @ / 1000) / @ ~ Előtolás @) * 100) / 100 + Ceil ((@ # Lyukszám @ * @ ~ Lyuk. Ido Putting in @ / 60 + @ # Anyagtényező @ * @ # Lyukszám @) * 100) / 100 '); [Sources] values ​​(8, 'Önköltség', '(@! Áramár / H @ + @! Csarnokbér / H @ + @! Munkás órabér @ + @! Szervízköltség @ + @ ~ GAZ fogy. @ * @ # Vágógáz Putting in AR @ 3 * @! N2 (m3) @) / (@ ~ alotolus @ 60) '); [Sources] Insert values ​​(9, Lyukoncoltseg 'Lemjhwast @. @');

It was exported from a SQLite database, and I want to insert them into the SQL database server Vamp. Can anyone help me, how to avoid these strings?

The arnold

WAMP in MySQL, so I Let < / Em> You are asking how to do those INSERTs on the MySQL database.

Get rid of brackets around the table name.

Setting the character set encoding in the source (probably UTF8) bytes:

  ⚈ (Excluded) mysql interface: mysql_set_charset ('UTF8'); (Assuming PHP 5.2.3 and MySQL 5.0.7) Note: "mysql_" interface is deprecated ⚈ MyScillie interface: mysqli_set_charset ('utf8') function. Mysqli_set_charset ⚈ View PDO interface: Set the charset attribute of the PDO DSN  

nginx - Do I need a SSL certificate for a domain if it redirects? -


If www.abc.com is redirected to abc.com, do I want to www.abc.com Need to get an SSL certificate?

I am asking because I am renewing the SSL certificates for my business and will have to buy new certificates for the www domain and if it is unnecessary then do not want to spend the extra cost.

More specifically, my weight balance layer is NGINX and www.abc.com has been rewritten in https://abc.com/ {params}

. Thank you.

Normally the www standard is included in the certificate. If not, you will have to buy * (Star) certificate.