←February→
Sun |
Mon |
Tue |
Wed |
Thu |
Fri |
Sat |
|
|
|
|
|
|
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
14 |
15 |
16 |
17 |
18 |
19 |
20 |
21 |
22 |
23 |
24 |
25 |
26 |
27 |
28 |
|
| ←2025→Months |
Jan |
Feb | Mar |
Apr |
May |
Jun |
Jul |
Aug |
Sep |
Oct |
Nov |
Dec |
|
Mon, Jan 27, 2025 10:06 pm
Transferring files over an RDP connection
If you are connected to a remote Microsoft Windows system from another
Windows system via the
Remote Desktop
Protocol (RDP) using the Microsoft terminal services client provided by
Microsoft with its Windows operating systems, mstsc.exe, you can copy and
paste files from one system to the other as you would from one directory
to another on one of the systems. E.g., if I want to copy a file from a
remote Windows 11 system to my local Windows 11 system, I can select it in the
Windows
File Explorer
on the remote system and then switch back to my local system
and go to the directory where I want to place it using the File Explorer
on that system and then hit
Ctrl-V, i.e, the
Ctrl and
V keys, to paste the file into that directory. You can use the same
technique to copy a directory, i.e., you can right click on the directory and
choose "copy" and then switch to the other system and navigate in the File
Explorer to where you wish to copy the directory and then and use the paste
function, e.g.
Ctrl-V to copy
I don't know how well the technique may work on very large files or
directories, e.g., ones that are multiple gigabytes, but I've found it works
well at least for those several megabytes in size. I also have not tested what
happens if you try another copy and paste operation before the first one
has completed.
Related:
-
Transferring Files Via the Remote Desktop
Date: March 13, 2010
[/os/windows/software/remote-control/rdp]
permanent link
Sun, Oct 20, 2024 10:30 pm
Dryer not drying
I put a bunch of sheets, pillowcases, and other laundry in the dryer
around midday and set the dryer to dry for an hour, but when I opened the dryer
to remove the items in the evening, the items were still wet, though my
wife told me she had restarted the dryer twice during the day. A few months
ago when we had a similar problem with clothes not drying even after
several cycles in the dryer, when I looked in the vent outside, I saw a
clump of lint was blocking the vent. When I removed it, the dryer
then performed as expected. I had looked in the vent a month ago, but had
not seen any lint blocking the opening, but I went out again with a flashlight,
since it was nighttime, and peered into the opening. Though the dryer was
running, I could not detect much air coming out of the duct. With the
flashlight, I could see what appeared to be a clump of lint near a bend in the
tube leading to the vent opening. I had a hard time getting my arm far
enough into the duct to pull out the clump of lint, but I was eventually
able to get it out. When I did so, I suddenly felt a great deal of hot
air coming out of the vent. So if your dryer isn't drying as well as you
would expect, check the lint filter and the outside vent. Fixing the problem
might be as simple as removing lint lodged in the vent. If there is no
blockage visible, you might have to pull the dryer further away from a
wall and remove any ducting/tube leading from the dryer to the outside
to check it, but there may be a no-cost solution to the problem. I didn't
think the problem with our dryer could be a faulty moisture sensor, since
I had set the dryer for a timed drying period, which normally would be
enough to dry a load of laundry.
I've also ordered a flexible
drain snake (drain clog remover) one can use for cleaning
sinks to make it easier to remove lint. I'm hoping I can feed it into the vent
opening and pull out lint, if a similar clog occurs.
[/home]
permanent link
Sat, Oct 05, 2024 10:51 pm
Resizing an image with CSS
If you want to resize an image on a webpage, e.g., to have it display as
a smaller image on a webpage than it would based on the image's dimensions,
you can edit the image with a graphics editing application to create
a smaller version of the image or you can use
Cascading Stylesheets
(CSS). If you wished to apply the reduction in size to just one image
on the page, you could apply a style directly to the IMG tag for that
image. E.g., if
image1 is
663 pixels wide by 307 pixels high, and you wanted to have the image
displayed as 75% of that size, you could use <img src="image1.jpg"
alt="Image 1" style="transform: scale(0.75)"> to have it display as
an image 75% of the actual dimensions of the image. E.g.:
Image 1 at full scale
Image 1 at 75% scale
Note: The image above is a photo of
Robert H. Goddard
with an A-series rocket circa 1935
Related articles:
Automatically resizing an image for mobile devices
[/network/web/html/css]
permanent link
Thu, Oct 03, 2024 10:32 pm
Starting the Windows Media Player (WMP) from a command prompt
If you wish to start the
Windows Media
Player (WMP) application from a
command-line
interface (CLI), such as a command prompt window, you can
do so by entering the command
"%ProgramFiles(x86)%\Windows Media
Player\wmplayer.exe"
at a command prompt window (be sure to enclose the
command within double quotes since there are spaces in the
directory path). You might wish to do so if you are logged into
one user account, but wish to open a movie or music file that is
not accesible from the currently logged in user account. If you
wished to run the program from an administrator account, you can
open a command prompt window as
an administrator or you can open a unprivileged command prompt window from
the currently logged in account and then use the
runas /user
command e.g.,
runas /user:username
"%ProgramFiles(x86)%\Windows Media Player\wmplayer.exe"
where
username is the account name for the account from which you wish
to run the program. E.g.,
runas /user:jane "%ProgramFiles(x86)%\Windows
Media Player\wmplayer.exe"
to run the Windows Media Player with Jane's
account privileges. If you need to run the command from a
Windows domain
account, you can use
runas /user:domainname\username
"%ProgramFiles(x86)%\Windows Media Player\wmplayer.exe"
where
domainname is the name of the domain and
username is the
name of the domain user account. Once the Windows Media Player app
is open, you can then hit the
Ctrl-O
keys (the Ctrl
and the letter "O" key) simultaneously to open a window where you can then
browse for audiovisual files in directories to which the other user
account has access.
[/os/windows/software/audio-video/WMP]
permanent link
Wed, Sep 25, 2024 10:17 pm
Viewing network connections on a Microsoft Windows system by protocol
If you just wish to see
TCP ports in use on a Microsoft Windows system,
you can issue the
netstat -a -p TCP
command at a command prompt.
The
-a
parameter specifies all connections and listening
ports should be displayed while the
-p
parameter can be
used to select a
protocol from TCP,
UDP, TCPv6, or UDPv6. If used with the
-s
option to display per-protocol statistics, the protocol
argument may be any of:
IP,
IPv6,
ICMP, ICMPv6, TCP, TCPv6, UDP, or
UDPv6. If you only wish to view IPv6 TCP ports in use,
you can use
netstat -a -p TCPv6
. If you only wish to
see currently established connections, you can
pipe the output of
the
netstat
command to the
find
command. E.g.,
netstat -a -p TCP | find "ESTABLISHED"
. Or, if you wished to
see all of the TCP ports on which the system was listening for a connection,
you could use
netstat -a -p TCP | find "LISTENING"
. If you
wanted to see connections to a particular port, e.g., 22, for Secure
Shell (SSH) connections, you could use
netstat -a | find ":ssh"
, which would show the IP addresses of the remote systems connected
via SSH, or
netstat -a | find ":https"
for
HTTPS connections to web sites. If you wished to see host names rather than IP addresses, you could
add the
-f
option, which displays a
Fully Qualified Domain Name
(FQDN) instead of an IP address for a remote system. E.g.,
netstat -a -f | find ":https"
. Since SSH, HTTP, and HTTPS
use TCP rather than UDP transmissions, you don't need to add the
-p
parameter.
[/os/windows/network]
permanent link
Tue, Sep 24, 2024 8:53 pm
Extracting files from a .jar file with the jar command
If you have a
JAR ("Java archive") file and wish to extract the files contained within
it from a
command-line interface (CLI) on a Microsoft Windows system,
you can do so by
opening a command
prompt window and using the
jar xf filename.jar
command,
where
filename.jar is the relevant .jar file, if you have
the
Java
Development Kit (JDK) installed on the system — the JDK software
can be downloaded for free from Oracle's
Java Downloads
page.
Minecraft uses
.jar files for mods and if you wish to view the models (.json files), textures
(.png files) within a JAR file used by Minecraft, you can use the
jar xf filename.jar
command to see those. If you
copy the .jar file to a directory where you wish to extract its contents
and then run the command from the directory in which the .jar file is located,
you should see a directory named assets
appear beneath which you
can find blockstates
, lang
, models
, and
textures
subdirectories.
The .json files files, such as those you may see in a models/block
subdirectory are
JavaScript Object Notation (JSON)
files, which you can view or edit in a text editor, such as the
Windows Notepad
application. The .png files, which you may see in a textures
subdirectory are Portable Network Graphics (PNG) files, which you can
view or edit in graphics applications such as
Microsoft Paint
on Microsoft Windows systems. You can also use a tool such as
Blockbench to work with the
JSON model files and PNG images.
[/os/windows/software/games/minecraft]
permanent link
Mon, Sep 23, 2024 7:54 pm
Changing the name of a Cisco switch
To change the name of a Cisco network switch, you can use
the command hostname newHostname
where
newHostname is the new name you wish to apply to the switch. To
make the change permanent so the new name is still in place after a reboot,
you can follow the command with the write memory
command.
Switch>
Switch>enable
Password:
Switch#configure terminal
Enter configuration commands, one per line. End with CNTL/Z.
Switch(config)#hostname Styx
Styx(config)#end
Styx#
*Sep 23 01:14:23.917: %SYS-5-CONFIG_I: Configured from console by console
Styx#write memory
Building configuration...
[OK]
Styx#
[/hardware/network/switch/cisco]
permanent link
Sun, Sep 22, 2024 9:50 pm
Changing the default gateway address on a Cisco switch
For a Cisco network switch, to change the
default gateway
address, i.e., to specify the IP address of a router that the switch will
use, enter privileged EXEC mode with the enable
command, then
enter configuration mode with the command configure terminal
and then set the default gateway address with the command ip
default-gateway gatewayIPAddress
where gatewayIPAddress
is the address for the router you wish the switch to use. Then exit
configuration mode with the end
command. To make the change
permanent, so that it will persist after a reboot of the switch, enter
the command write memory
.
Switch>enable
Password:
Switch#configure terminal
Enter configuration commands, one per line. End with CNTL/Z.
Switch(config)#ip default-gateway 192.168.1.1
Switch(config)#end
Sep 23 01:26:53.415: %SYS-5-CONFIG_I: Configured from console by console
Switch#write memory
Building configuration...
[OK]
Switch#
You can view the default gateway address with the command
show ip default-gateway
.
Switch>show ip default-gateway
192.168.1.1
Switch>
[/hardware/network/switch/cisco]
permanent link
Mon, Sep 09, 2024 3:07 pm
SolarWinds TFTP Server for Microsoft Windows Systems
If you need a system running a Microsoft Windows operating system to
function as a
Trivial
File Transfer Protocol (TFTP) server, one free solution is the
SolarWinds TFTP
server program available from the company's website at
TFTP
Server. After installation of the software, if you open the
application, you will see that the TFTP service is started and listening
for data on
User Datagram Protocol (UDP) port 69.
If you open a
command prompt window and issue
the command netstat -anp udp
and
pipe the output
into the find
, you should also see the system is listening
on all network interfaces, i.e., 0.0.0.0, on UDP port 69.
C:\Users\Public\Downloads>netstat -anp udp | find "0.0.0.0:69"
UDP 0.0.0.0:69 *:*
C:\Users\Public\Downloads>
The installation program also installs a TFTP service, which is
set to run automatically when Windows boots; you can see information
on the service if you open Services and scroll through the list of
services on the system — you can open a Services window by
typing services.msc
at a command prompt window and hitting
Enter.
[ More Info ]
[/network/tftp]
permanent link
Sun, Sep 08, 2024 8:34 pm
Deleting all lines that don't begin with specific text in vim
In the
vim
text editor, if I want to remove every line in a file that does not contain
the word "FALL" in capital letters, I can use
:v/FALL/d
, i.e.,
type the colon key and then
v
, which works
like the
grep command
grep -v
to select only lines in a file that don't contain a
specified text
string.
The particular text on which you wish vim to searh is preceded and followed by
the
slash
delimiter with a
d
at the end to specify you wish those lines
not containing the text, e.g., FALL in this case, to be deleted. If I want to
delete only those lines that begin with FALL, I can use
:v/^FALL/d
as the
caret specifies that the text should occur at
the beginning of lines (a dollar sign, $, would indicate I wanted to select
only lines where the text was found at the end of the line). Note:
you can also use
:g!/^FALL/d
to achieve the same end —
without the exclamation mark after the global
command
, all
lines containing FALL would be deleted, but as the exclamation mark
represents "not", all lines not containing FALL at the beginning of the line
are deleted.
[/editors/vi]
permanent link
Privacy Policy
Contact