X is a good number if after rotating each digit individually by 180 degrees, we get a valid number that is different from X. Each digit must be rotated-we cannot choose to leave it alone.
A number is valid if each digit remains a digit after rotation. 0, 1, and 8 rotate to themselves; 2 and 5 rotate to each other; 6 and 9 rotate to each other, and the rest of the numbers do not rotate to any other number and become invalid.
Now given a positive number N, how many numbers X from 1 to n are good?
X is a good number if after rotating each digit individually by the degrees, we get a valid number that's different from X. A number is valid if each digit remains A digit after rotation. 0, 1, and 8 rotate to themselves; 2 and 5 rotate to all other;
You need to ensure that the IPsec Policy Agent service has been automatically started by the random machine, and the IPsec Policy Agent Startup Mode has been changed to automatic in Computer Management Service.
600An internal error occurred. Restart
Recently, I checked the running status of the WSUS server and found that two computers are still in the "not reported" status. Because these two computers are far away from each other, therefore, the information cannot be seen from the log file, and the log on the WSUS server is too complex, so it gives up. However, this problem also occurs on a computer in my house two days ago. So I checked windowsupdate. log in the windows directory and found the following error during update Detection:
Date
Set Set: is a set of unordered, non-repeatable collectionsCreation of 1.setse={"ww3", 23432,"name"}# Create an empty collection Se1=set ()2. Convert to a collectionli=[23,56,23,44]se=set (li)print(se)# output: {56, 44, 23} Common methods of 3.setAdd (self, *args, **kwargs): adds an element to the collection, and if the collection already has this element, it is not added for long# element not added in collection case se={23,54,11,788}se.addprint(se)# output: {one,
System Environment: Virtual Machine Fedoralive131, ls/dev/fb *. Check that no/dev/fb0 device file is created by default. 2. After searching for information, add the fb0 device: modify/boot/grub/menu. lst adds vga = 788 at the end of the kernel startup parameter. Note: No lilo exists in Fedora13. Therefore, you need to modify the kernel startup parameter to set vga in case 7 in grub.
System Environment: Virtual Machine Fedora live 13
1. Check that no/d
PGCMX shows the maximum amount of memory used for PermPGC 12800.0 PGC is the current newly generated perm memory footprintPC 12800.0 pc Yes but front perm memory consumptionYGC 164FGC 6Jstat-gcnew Information for Pid:new objects[Email protected] bin]# jstat-gcnew 25917s0c s1c s0u s1u TT MTT DSS EC EU YGC YGCT64.0 64.0 47.4 0.0 2 15 32.0 704.0 145.7 168 0.254Jstat-gcnewcapacity information of Pid:new objects and their consumption[Email protected] bin]# jstat-gcnewcapacity 25917NGCMN ngcmx NGC s0
, repeat the above steps to make the final tftp path form the following structure.
/Var/lib/tftpboot/ubuntu-installer/amd64
/Var/lib/tftpboot/ubuntu-installer/i386
3. In the next step, run the following command to add the Ubuntu 14.10 and Ubuntu 14.04 menu labels to the default configuration file of the PXE Server.
Important: I cannot demonstrate operations on two Ubuntu versions at the same time. for demonstration purposes, I added the Ubuntu 14.04 menu label to the PXE Server. The followin
process is quite long. Let's say it has to run for half an hour!
More than n ko files will be generated after completion.
# Make modules_install # install these ko files
Make install later. As a result, some lines are added to my file and I have deleted them.
Use your own configuration file, as shown below:
# Grub. conf generated by anaconda
#
# Note that you do not have to rerun grub after making changes to this file
# NOTICE: You do not have a/boot partition. This means that
# All kernel an
) grub> boot2. Use vmlinuz and HD. two RDZ files for installation (grub for DOS is not required, and grub is used by GNU): grub> kernel (hd0, 0) /vmlinuz ramdisk_size = 128000 root =/dev/ram3automatic = method: disk ACPI = ht vga = 788 grub> initrd (hd0, 0)/HD. rdzgrub> note that a long line of kernel is not truncated into two lines. Note that the above commands assume that these files are located in the root directory (hd0, 0). If you have different
, where the "Netstat-ano" parameter represents a digital display of all active TCP connections and TCP, UDP ports on which the computer is listening and displays the corresponding process ID PID number; "Findstr 1140" indicates a TCP connection that finds a process pid of "1140" and a TCP, UDP port listening condition (in practical applications, you need to replace the PID number you just noted or copied here for 1140). When you press the "Enter" key, the port number that the process opens is di
Modify the resolution of Linux text (command line) mode
In my system text mode, the default resolution is 800*600. when I use lynx to browse the webpage, I feel that the font is too large. if I want to adjust the resolution in this mode, I will go to google, the discovery is actually very simple.
Go to the/boot/grub/directory, and you will see a file named menu. lst in it. use vim to open it and you will see the following content:
# Grub. conf generated by anaconda## Note that you do not have to
the process is "1332" and the listening status of TCP and UDP ports (in actual application, replace the PID you just noted down or copied with 1332 ). Press enter to display the port number opened by the process. For example:
We can clearly see that all the ports opened by the process whose PID is "1332". If no prompt is returned at this time, it means that the process has not enabled any ports.
2. Check the process by port number Enter the "netstat-ano" command in the Command Pro
, set the TTY resolution to (800x600x65536)
cat /etc/GRUB.conf# GRUB.conf generated by anaconda## Note that you do not have to rerun GRUB after making changes to this file# NOTICE: You have a /boot partition. This means that# all kernel and initrd paths are relative to /boot/, eg.# root (hd0,0)# kernel /vmlinuz-version ro root=/dev/sda3# initrd /initrd-version.img#boot=/dev/sdadefault=0timeout=5splashimage=(hd0,0)/GRUB/splash.xpm.gzhiddenmenutitle Red Hat Enterprise Linux AS (2.6.9-22.E
=788Initrd/boot/initrd.img-2.6.17-10-genericQuietSavedefaultBootIn kernel this line, in the back to join VGA=XXX,XXX I used is 788, the comparison table below, 788 is 800x600 resolution, 645536 color display, generally use this on the line.vga=771 (800x600x256)vga=788 (800x600x645536)vga=773 (1024x768x256)vga=791 (1024x768x65536)And then save the exitReboot reboo
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.