Introduce the parameter transfer problem with one problem.
Public static void main (string [] ARGs ){Int x = 1;Int [] Y = new int [10];M (x, y );System. Out. println ("X is" + x );System. Out. println ("Y [0] is" + Y [0]);}Public static void M (INT number, int [] numbers ){Number = 1001;Numbers [0] = 5555;}ResultX is 1Y [0] Is 5555Why does the X value not change to Y [0 ]?
Change Java to language parameter passing
Java programming language only supp
/rules as administrator. d/51-android.rules file to enable the host to detect the device and add the device ID to the file, for example, 18d1. If it is a USB device, use the lsusb command to view the ID of the USB device that is currently connected to the host.
Subsystem = "USB", sysfs {idvendor} = "18d1", mode = "0666"
Save and exit.
Run the following command:
$ Chmod A + R/etc/udev/rules. d/51-android.rules
Note: We recommend that you change the configuration and then restart the host system.
- $offset";7 }
The result is as follows:
1 Five #1 is at position - 4 2 Five #2 is at position - 143 Five #3 is at position - 244 Five #4 is at position - 34
9. PHP split stringUse the explode function.Example:
1 $rawPhoneNumber = "800-555-5555";2 $phoneChunks = explode("-", $rawPhoneNumber);3 echo "Raw Phone Number = $rawPhoneNumber ";4 echo "First chunk = $phoneChunks[0]";5 echo "Second chunk = $
;title;
Echo $books->classname;
also supports Hasone hasmany Manyhasmany Mode Association
and Path_info also supports
Testframework.php?controller=defaultaction=index
Testframework.php/default/index
You can use Apache rewrite to remove testframework.php files
Post some tutorials below
This one miniature frame
The MVC approach can be implemented
Support Path_info Mode
Control action under the router directory
/default/index
Call the router directory under the defaultRouter.class.php file
Ca
second is the mobile phone.Note: the root user is used to start the ADB server and execute the ADB command. Otherwise, "No permissions" appears"ADB get-serialno Print Device serial numberADB version: list the version numbers of ADB.The output of adb get-state is usually offline | bootloader | deviceAdb help view all commands supported by adbView adb version serial numberAdb logcat prints logs to the screenAdb bugreport print dumpsys, dumpstate and logcat data to the screenAdb jdwp view availabl
I forgot my data line at the company. I found a way to debug the android program using wifi and wrote down the backup.
1. First, let the android phone listen to the specified port:This step requires the use of shell, so there must be a terminal simulator on the mobile phone, but there are a lot of online, just find one, in turn into the following lines:?
1234
su// Obtain the root permissionsetprop service.adb.tcp.port 5555// Set the listen
mount -n -t proc none /proc
umount /initrd
mount -n -o remount,rw /
mount -n -o remount,rw -t proc none /proc
ifconfig lo 127.0.0.1
7. Edit the etc/fstab file
The content is as follows:
/dev/sda2 / ext2 defaults 1 1
none /proc proc defaults 0 0
Application Example
Here is an example of transferring files. Run:
$ tar cf - win98 | nc -l -p
writable ).
Adb shell
Cd system/app
Rm *. apk
21. Get administrator permissions:
Adb root
22. Start Activity:
Adb shell am start-n package name/package name + class name (-n class name,-a action,-d date,-m MIME-TYPE,-c category, -e ).
23. Release Port:
You can set any port number as the request port from the host to the simulator or device. For example:Adb forward tcp: 5555 tcp: 8000
24. copy a file:
You can copy files to or from a device,Copy a file
/dev/input/event0 0 0 0
Debugging considerations
When debugging applications that use USB peripherals and host features, you are likely to connect your USB hardware to your Android device, this will prevent you from establishing an adb connection to the Android device through USB. You can still access adb through the network. Connect to adb through network:
Connect the Android device to your computer through USB.
Enter adb tcpip 5555 in the comman
the array elements: System. Console. writeline ( " Array elements are: " ); For ( Int I = 0 ; I {System. Console. Write (thearray [I] + " " );}
// keep the console window open in debug mode. system. console. writeline ( " press any key to exit. "); system. console. readkey (); }/* output: array elements are:
1 2 3 4 5*/
Ref example: Initialize the array thearray In the caller (main method) and useRefThe parameter is passed to the fillarray method. Update some arr
Customer.CompanyName;foreach (var Customer in CompanyNames){ Console.WriteLine(Customer);}
InsertTo execute SQL insert, you only need to add an object to the object model you have created, and then call submitchanges for datacontext.In the following example, a new customer and information about the customer are added to the MERs table by using insertonsubmit.
NorthwindDataContext db = new NorthwindDataContext(); Customers NewCustomer = new Customers(); NewCustomer.CompanyName = "SomeC
take two consecutive ports from 5555 to 5585. The odd port is responsible for connecting to ADB, and the even port is responsible for connecting to the console. The server scans the odd ports between 5555 and 5585 to find the simulator or device instance and establishes a connection with the found port.
Once the server is connected to all simulators or devices, you can use the ADB command to control and
, including devices such as console, tty1, tty2, tty3sda, sda1, sda2, hda, HDB, and hda1.
6. Edit etc/init. d/RCS
The content is as follows:
#!/bin/sh
PATH=/sbin:/bin
export PATH
mount -n -t proc none /proc
umount /initrd
mount -n -o remount,rw /
mount -n -o remount,rw -t proc none /proc
ifconfig lo 127.0.0.1
7. Edit the etc/fstab file
The content is as follows:
specified as your favorite
Don't forget to set it to support fxp on the client. Otherwise, I tried it several times and thought the server was not set up. In fact, the client was not set.
By default, ProFTP does not support root login. We can set it to allow root users to log on to FTP. However, we recommend that you do not allow root users to log on to FTP. The settings are as follows:
Rootlogin on
How to disable an address from accessing ftpFor example, you can disable hosts in the 10.1.1
The android debugging system is a customer service system that consists of three components:
A client that runs on the computer you use to develop programs. You can use the ADB command on the shell to start the client. Other Android tools such as ADT plug-in and ddms can also generate ADB clients.
The server that runs as the background process on the machine you use for sending. The server is responsible for managing the communication between the client and the ADB daemon running on the simu
(seconds) (idle 2 minutes)
Accept_timeout = 60 (seconds) (disconnect the client one minute later)
Connect_timeout = 60 (seconds) (disconnect again after 1 minute)
Local_max_rate = 50000 (bite) (Local User transfer rate: 50 K)
Anon_max_rate = 30000 (bite) (anonymous user transfer rate: 30 K)
Pasv_min_port = 50000 (change the client's data connection port
Pasv_max_port = 60000 between and)
Max_clients = 200 (maximum number of Ftp connections)
Max_per_ip = 4 (maximum number of connections per IP)
the Queuedevice class to achieve the same effect.In my example, I put Router-dealer in the server process, dealer and server communication is county, interactive diagram as follows:TCP inproc InProc connect ________________ Connect client I- ------------|router--------dealer| -----------Server-side ——————---------Queuedevice client code is as follows:Static voidMain (string[] args) { stringServerAddress ="tcp://localhost:5555"; //ZMQ Conte
Start Remote NodeThe Hub and node we are currently launching are on a single host. To start node on another host, you must meet the following requirements:? 1) between the local hub host and the remote node host can ping each other.? 2) The remote host must have a browser and driver to run the script (e.g., Chrome browser and Chromedriver.exe driver)? 3) The remote host must have a Java environment installed? 4) The remote host must have selenium server installedThe procedure is as follows:1) St
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.