Print server cups installation notes

CUP installation notes Introduction to CUP CUPS is an open source printing service from Apple inc. You can deploy it in your LAN, connect the printer to the server, and other workstations can access the printer through the LAN. Official website: http://www.cups.org/index.html Github page: https://github.com/apple/cups CUPS supports printing service sharing within the LAN, eliminating the need for cumbersome printer sharing settings, and can also connect old printers to the LAN. It also supports mac os, linux, windows, Android and ios air print; ...

Notes on installing Panabit Professional Edition on public cloud

Notes on installing Panabit Professional Edition on public cloud Release date: Dec 22,2022 Th . Panabit Version: R0.00[TANG(Datang)r3], Build date 20221031.132102 [Linux 3.10] Author: Duke Hsu This note records the process of installing panabit using a single network card lightweight cloud server. Preparation cloud server Operating system: Centos 7.6 x64 Configuration: 2C 8G 1 eth Panabit material Panabit one-click upload cloud server tool (including installation and decompression GUI.exe) Panabit Professional Edition Linux installation package (LPanabitOEM_WUDAIr1_20201125_Linux3.tar.gz) Cloud server IP address and password The cloud server needs to open the SSH port and service ...

Batch processing skips graphics card driver version detection

Because some games will detect the graphics card driver version when running, if it is not the latest version, it needs to be updated. Sometimes it is too troublesome. Simply use batch processing to change the file name to skip the graphics card driver version detection. The examples below are based on Windows operating systems. Tips: Save the following command as a batch (bat) format file to execute under Windows. ...

TCP port connectivity detection tool-tcping

Introduction to TCPING tcping is an open source network detection tool written in C++ by American Mr. Eli Fulkerson; you can download the executable file or download the source code and compile it yourself. Offical website: https://download.elifulkerson.com/files/tcping/0.39/ Tcping is similar to ping and is also a tool used to detect network connectivity. Different from ping, tcping can check the port. For more usage, please execute it in the program? Come check it out. ...

C# Classes and Objects

What is Classes in C#? Objects Access Modifiers https://learn.microsoft.com/en-us/dotnet/csharp/language-reference/keywords/access-modifiers https://www.cnblogs.com/xinaixia/p/5775471.html Code using System; //class declaration public class Car { //instance 6 variables String name; String color; String transmission; String bodytype; int seat; int year; //constructor declaration of class public Car(String name, String color, String transmission, String bodytype, int seat, int year) { this.name = name; this.color = color; this.transmission = transmission; this.bodytype = bodytype; this.seat = seat; this.year = year; } //property 6 public String getName() { return name; } public String getColor() { return color; } public String getTransmission() { return transmission; } public String getType() { return bodytype; } public int getSeat() { return seat; } public int getYear() { return year; } //method public String ToString() { return ("This is Car detail- CarName:" + this.getName() + "\n Color :" + this.getColor() + "\n Transmission: " + this.getTransmission() + "\n Body type: " + this.getType() + "\n Seat : " + this.getSeat() + "\n Year: " + this.getYear())+"\n ================="; } //main method public static void Main(string[] args) { // 5 object Car Toyota = new Car("Toyota Rush", "Silver", "Auto", "SUV", 7, 2020); Car Bmw = new Car("BMX X1", "Silver", "Auto", "SUV", 7, 2022); Car Honda = new Car("Accord", "Black", "Auto", "Sedan", 4, 2016); Car Tesla = new Car("Tesla S", "Red", "Auto", "Sedan", 4, 2017); Car Mazda = new Car("Mazda 929 Legato", "White", "Manual", "Sedan", 4, 1980); //output Console.WriteLine(Toyota.ToString()); Console.WriteLine(Bmw.ToString()); Console.WriteLine(Honda.ToString()); Console.WriteLine(Tesla.ToString()); Console.WriteLine(Mazda.ToString()); Console.WriteLine("==============\n Thank you !"); //out put date and time DateTime now = DateTime.Now; Console.WriteLine("Print date: " + now); Console.ReadLine(); } }

C# Find the value of an element using the index

IDEA User input data Convert to index Using index number fund element vaule Output element vaule Screenshot Code using System; namespace array2d { public class array2d { public static void Main(string[] args) { //initilizing arrays string[,] platenumber = new string[5,3] { {"ZJI163","USA1008","PHA101"}, {"PJ130108", "USA1006","JAP118" }, {"MAX168", "USA1002" ,"TWD120"}, { "AZZ9756", "USA1005","KOR119" }, {"NAS1223","USA109","DDT886"} }; //wait for user input,convert to int Console.WriteLine("Welcome use DK parking system!\n Solt: 0-4 \n floor: 0-2"); Console.WriteLine("Plz type slot: "); int solt = Convert.ToInt32(Console.ReadLine()); Console.WriteLine("Plz type floor: "); int floor = Convert.ToInt32(Console.ReadLine()); // decision the length of the element if (solt < 5 && floor < 3) { string car = platenumber[solt, floor]; Console.WriteLine("Found platenumber is :" + car); } else { Console.WriteLine("\nThe value you entered does not exist"); } Console.WriteLine("Thank you !"); Console.ReadLine(); } } }

C# Multidimensional Arrays

C# Multidimensional Arrays As discussed in the previous chapter, Arrays in C# will support multi-dimensional arrays. In c#, a multidimensional array is an array that contains more than one dimension to represent the elements in a tabular format like rows and columns. In c#, multidimensional arrays can support either two or three-dimensional series. To create multi-dimensional arrays, we need to use a comma (,) separator inside the square brackets. C# Multi-Dimensional Array Declaration In c#, Multidimensional Arrays can be declared by specifying the data type of elements followed by the square brackets [] with comma (,) separator. The following are examples of creating two or three-dimensional arrays in the c# programming language. ...

C# String Contains Assessment

Question: Create a complete C# program that will simulate a log-in process. If the username and password are both correct the program will display “Log-in Successful”, otherwise it will display “Invalid Log-in details” FlowChart: C# Logical Operators: Code Answer: using System; namespace Module6 { class module6 { static void Main(string[] args) { string emailid, password; //use readline get user input Console.WriteLine("Plz enter u Emaill address :"); emailid = Console.ReadLine(); Console.WriteLine("Plz enter u Password"); password = Console.ReadLine(); //use if else to decision input data contains value if (emailid.Contains("ydsgsdg@dsadas.edu.ph") && (password.Contains("d123456"))) { Console.WriteLine("Your Log-in Was Successful!"); } else { Console.WriteLine("Invalid Log-in details"); } Console.ReadLine(); } } } Reference C# Logical Operators with Examples https://www.tutlane.com/tutorial/csharp/csharp-logical-operators-with-examples ...

Simple extraction of blob video resources

This blog post records how to simply extract the video source address from a web page. The reason is that there is an Assessment in the STS course where you need to watch a video to answer questions. Youtube has no resources and the webpage is inconvenient to operate. I want to put it into VLC to play it. software environment Chrome browser VLC opens the network link (video source address M3U8) Windows 10 Operation steps ...

Make a calculartor in c sharp

Create an new windwos forms project. Design Size. Add panel. design panel color,size,style. Add button. calculartor button and oper button. Coding button function. Declaring variables double fstNum,secNum; string oper;Identify button function btnCE private void btnCE_Click(object sender, EventArgs e) { textDisplay.Text = "0"; string f, s; f = Convert.ToString(fstNum); s = Convert.ToString(secNum); f = ""; s = ""; }backspace private void backspace_Click(object sender, EventArgs e) { if (textDisplay.Text.Length > 0) { textDisplay.Text = textDisplay.Text.Remove(textDisplay.Text.Length - 1, 1); } if (textDisplay.Text == "") { textDisplay.Text = "0"; } }btn9 private void btn9_Click(object sender, EventArgs e) { if (textDisplay.Text == "0") { textDisplay.Text = "9"; } else { textDisplay.Text = textDisplay.Text + "9"; } }btnAdd private void btnAdd_Click(object sender, EventArgs e) { fstNum = double.Parse(textDisplay.Text); oper = "+"; textDisplay.Text = ""; }btnPM ...

JumpServer open source bastion machine installation record

Cloud server configuration CPU 2 cores - Memory 4GB - System disk 60GB Centos7.6 Install docker #/bin/bash sudo yum install -y yum-utils sudo yum-config-manager --add-repo https://download.docker.com/linux/centos/docker-ce.repo sudo yum-config-manager --enable docker-ce-nightly sudo yum install docker-ce docker-ce-cli containerd.io systemctl start docker #启动容器 systemctl enable docker #开机自启 sudo curl -L "https://github.com/docker/compose/releases/download/1.29.2/docker-compose-$(uname -s)-$(uname -m)" -o /usr/local/bin/docker-compose sudo chmod +x /usr/local/bin/docker-compose sudo ln -s /usr/local/bin/docker-compose /usr/bin/docker-compose docker --version docker-compose --versionInstall Jumpserver curl -sSL https://github.com/jumpserver/jumpserver/releases/download/v2.21.2/quick_start.sh | bashAfter the installation is completed, you can access the HOST address to log in, manage and configure assets.

Intel UHD 630 Driver for Windows 7

Intel UHD 630 Driver for Windows 7 CPU: Intel® Core™ i7-8700 Video: Intel UHD 630 OS: Windows 7 64-bit Driver Download https://www.biostar.com.tw/app/en/event/H310_windowstool/win7_8th_i3_i5_Driver_2.0.rar Thanks https://www.sevenforums.com/drivers/424720-intel-uhd-630-driver-windows-7-a.html https://www.intel.com/content/www/us/en/download/18799/28436/intel-graphics-driver-for-windows-15-45.html

Solution to Steam client being unable to log in

[Steam no longer provides CM servers in mainland China] CM (Connection Manager) servers are used for Steam account login authentication, friend online status, chat and game invitations, etc. Currently, the server list obtained by Steam no longer contains servers in mainland China. Since steam no longer provides CM servers in mainland China, it is extremely difficult to log in to steam during the peak evening hours on weekends. This article is written to record the process and solution of dealing with this problem, hoping to help everyone; ...

Google Chrome parameter list

Preface In developing web projects, a browser is essential, and the browser’s startup parameters can help us achieve many functions. Common parameters Please refer to the table below for common parameters. Serial number Parameters Description 1 –allow-outdated-plugins Do not disable expired plugins. 2 –allow-running-insecure-content By default, https pages do not allow javascript/css/plug-ins to be referenced from http links. Adding this parameter will allow these contents. 3 –allow-scripting-gallery Allow extension scripts to take effect in the official application center. By default, these scripts are blocked for security reasons. 4 –disable-desktop-notifications Disable desktop notifications. Desktop notifications are enabled by default in Windows. 5 –disable-file-system Disable the FileSystem API. 6 –disable-preconnect Disable TCP/IP preconnect. 7 –disable-remote-fonts Turn off remote font support. Fonts in SVG are not affected by this parameter. 8 –disable-web-security Does not comply with the same origin policy. 9 –disk-cache-dir Set cache at the given path. 10 –disk-cache-size Set the upper limit of cache size in bytes. 11 –dns-prefetch-disable Disable DNS prefetching. 12 –enable-print-preview Enable print preview. 13 –extensions-update-frequency Set extensions automatic update frequency in seconds. 14 –incognito Let the browser start directly in incognito mode. 15 –keep-alive-for-test Keep the browser process alive after the last tab is closed. (In a sense, the hot start speed can be improved, but you’d better have sufficient memory) 16 –kiosk Enable kiosk mode. (a browsing mode similar to full screen) 17 –lang Use the specified language. 18 –no-displaying-insecure-content By default, https pages allow images/fonts/frames to be referenced from http links. Adding this parameter will block this content. 19 –no-referrers Do not send Http-Referer header. 20 –no-startup-window Do not create a window during startup. 21 –proxy-server Use the given proxy server. This parameter is only valid for http and https. 22 –start-maximized Maximized at startup. 23 –single-process Run Chromium in single-process mode. (The browser will give an unsafe warning when starting). 24 –user-agent Use the given User-Agent string. 25 –process-per-tab Use a separate process for each tab. 26 –process-per-site Use a separate process per site. 27 –in-process-plugins Plugins do not enable separate processes. 28 –disable-popup-blocking Disable popup blocking. 29 –disable-javascript Disable JavaScript. 30 –disable-java Disable Java. 31 –disable-plugins Disable plugins. 32 –disable-images Disable images. More parameters Due to the limited level, the following table is an online translation. To learn more, you can learn more about the basic parameters and search for relevant information. ...

Cloud server installation ikuai routing

Server configuration Mirror: Ubuntu 18.04 64-bit CPU: 1 core Memory: 2G Bandwidth: 2mbps Total system disk capacity: 20GB Total data disk capacity: 0GB Installation steps View cloud server network configuration cat /etc/network/interfaces or netstat -rn Download the ISO installation package **x32-bit ** wge thttps://www.ikuai8.com/download.php?n=/3.x/iso/iKuai8_x32_3.5.11_Build202112031159.iso -O ikuai8.iso x64-bit wget https://www.ikuai8.com/download.php?n=/3.x/iso/iKuai8_x64_3.5.11_Build202112031159.iso -O ikuai8.iso Mount ISO image sudo mount ikuai8.iso /mnt Copy ISO image boot file sudo cp -rpf /mnt/boot / Restart the server sudo reboot ...

Notes related to creating symbolic links in Windows 10

Why create symbolic links Some games cannot recognize Chinese paths Need to load from third-party game library to official game library Save time and improve efficiency Use Linkexe link Configuration file description [Count] ;文件个数 FileCount=1 [PathInfo] ;SourceFile源文件相对于本exe所在目录 DriveLetter映射目标路径 SourceFile0=Battle.net DriveLetter0=C:\ProgramData\ ;注意序号默认从0开始,如果设置非0会报错无法正常运行Note: This program is not public, this configuration file is only for recording Create symbolic links using Powershell script To be updated and improved New-Item -ItemType SymbolicLink -Path "Symbolic\Link\Path" -Target "New\Target\For\Link" -Force ...

搜尋文章

輸入標題、分類或文章內容

Plz typing to search for articles.