- Pet Behaviorists Explain Why Your Cat Loves to Sit on Your Laptop
- Keep your cat distracted.
- Provide a heated rest area.
- Or an extra-comfy lounge spot.
- Don’t give your cat attention when she’s on your laptop.
- Reward your cat for finding a new spot.
- Is there replacement for cat on Windows
- 11 Answers 11
- Companion Animal Psychology
- The Cat at the Window
- Windows as enrichment for cats
- How long do cats spend looking out of windows?
- How to make windows interesting for your cat
- Catios and playtents for cats
- Windows as enrichment
- Полезные трюки при работе с netcat
- Практические примеры
- Проверка наличия открытого TCP-порта 12345
- Сканирование TCP-портов с помощью netcat:
- Сканирование UDP-портов.
- Отправка UDP-пакета
- Прием данных на UDP-порту и вывод принятых данных
- Netcact в роли простейшего веб-сервера.
- Чат между узлами
- Реверс-шелл
- S.E.A.T | Sit Anywhere!
- Sitting Down
- Default Method:
- Only If Sneaking Method:
- S.E.A.T Adjustment Mode
- 👀 Look-Around/Rotation:
- 🔄 Scroll Up/Down:
- ⌛ Wait/Stop Scrolling:
- 🎠 Sitting On Entities
- 🧲 Physics
- Menu Options:
- 🧲 Use Physics
- 🔒 Rotation Lock:
- 🦿 Only If Sneaking:
- 🦘 Bounce Off Floors:
- 👇 Only Sit Down:
- 🤕 Fall Damage:
- 🛑 Block Inventory:
- 🥶 Freeze Ride On Adjust:
- 🔔 Show Prompts:
- 🔧 NEW Seated Adjustment:
- 🏇 NEW Sit On Mobs:
- 🚧 NEW Adjustment Limits:
- 🚮 Uninstalling
- 5 Update Logs
- 📃 Change-log
Pet Behaviorists Explain Why Your Cat Loves to Sit on Your Laptop
It has something to do with their so called «thermoneutral zone.»
Ask any cat parent and they’ll probably say the same: Their feline friends love to sit on their laptops, especially when they’re busy at work on them. «Many cats really like the attention and just being close to their people,» says certified cat behavior consultant Marilyn Krieger of The Cat Coach. So, while in some cases cats exhibit this behavior because they want your attention, experts say there also appears to be a biological reason they like to sit on your lapto. «A cat’s thermoneutral zone—otherwise known as the temperature range in which they don’t have to generate heat to stay warm or expend energy to cool off—is between 86 to 100 degrees Fahrenheit,» says certified cat behavior consultant Marci Koski of Feline Behavior Solutions. «Cats like things a lot warmer than humans, and to get that extra warmth, they enjoy sitting on things like heat vents, carpet warmed by the sun, and laptops!»
Looking for some easy ways to keep your cat happy, warm, and off of your laptop? We asked our feline behavior experts for advice, and here’s what they had to say.
Keep your cat distracted.
If it’s attention your cat is after when you’re working on your laptop, our experts suggest entertaining them with toys or treats elsewhere. «Try having a good workout session with an interactive wand toy (Da Bird is my favorite) followed by a snack or small meal,» Koski says. «This will initiate the hunt-eat-groom-sleep sequence, and give you some time after the play session to work without interruption.»
Provide a heated rest area.
Since cats are naturally drawn to things that provide them with warmth, like laptops, Koski recommends supplying them with an alternative heated rest area near your desk. «If your cat is looking for something warm, try placing a heated cat bed nearby so that your cat can stay warm while still being within your reach for petting opportunities,» she says.
Or an extra-comfy lounge spot.
If your cat isn’t a fan of heated beds, then consider carving out another comfortable spot nearby where they can hang out while you work. «Provide your cat with an alternative, comfortable spot—such as a cat tree, shelf, or some comfy pillows on a reachable surface—to hang out on that is at least as desirable, if not more, than the laptop,» Krieger says. «Make sure to place it next to the cat person, so he or she can easily pet the cat and give them attention.»
Don’t give your cat attention when she’s on your laptop.
Like it or not, every time you pet, talk, or even pick up your cat to remove her from your laptop, Krieger says you might be making matters worse. «Don’t inadvertently reinforce the laptop sitting behavior by giving her attention when she’s on it,» she says. «Clicker training is a very effective technique for training cats to hang out on the alternative, acceptable spots instead of on places that are off limits.»
«And since it’s common for owners to pet or even pickup their cat to move them from their laptops, they’re actually reinforcing the behavior by giving them attention.»
Reward your cat for finding a new spot.
«It’s important to never punish your cat for sitting on your laptop,» Koski says. «The best thing to do is to reward your cat for going to an alternative spot, by calling them over to the area and giving them a treat when they come (or anytime they go to that area on their own). Gradually, they’ll start gravitating to that spot instead of your laptop.»
Is there replacement for cat on Windows
I need to join two binary files with a *.bat script on Windows.
How can I achieve that?
11 Answers 11
Windows type command works similarly to UNIX cat .
Example 1:
is equivalent of:
Example 2:
This command will merge all the vcards into one.
You can use copy /b like this:
If you have control over the machine where you’re doing your work, I highly recommend installing GnuWin32. Just «Download All» and let the wget program retrieve all the packages. You will then have access to cat, grep, find, gzip, tar, less, and hundreds of others.
GnuWin32 is one of the first things I install on a new Windows box.
600 kB exe incorporating
30 Unix utilities. The only difference is that one should use «busybox cat» command instead of simple «cat» – Fr0sT Jan 10 ’14 at 13:59
Shameless PowerShell plug (because I think the learning curve is a pain, so teaching something at any opportunity can help)
Note that type is an alias for Get-Content, so if you like it better, you can write:
Just use the dos copy command with multiple source files and one destination file.
You might need the /B option for binary files
In Windows 10’s Redstone 1 release, the Windows added a real Linux subsystem for the NTOS kernel. I think originally it was intended to support Android apps, and maybe docker type scenarios. Microsoft partnered with Canonical and added an actual native bash shell. Also, you can use the apt package manager to get many Ubuntu packages. For example, you can do apt-get gcc to install the GCC tool chain as you would on a Linux box.
If such a thing existed while I was in university, I think I could have done most of my Unix programming assignments in the native Windows bash shell.
If you simply want to append text to the end of existing file, you can use the >> pipe. ex:
If you have to use a batch script and have python installed here is a polygot answer in batch and python:
If saved as join.bat usage would be:
Thanks too this answer for the inspiration.
I try to rejoin tar archive which has been splitted in a Linux server.
Companion Animal Psychology
By award-winning author Zazie Todd, PhD. Happy cats. Happy dogs. Thanks to science.
The Cat at the Window
Photo: Diane N. Ennis / Shutterstock |
By Zazie Todd, PhD
I think all cats like windows. Even outdoors cats will still spend time sitting on a window ledge, watching the world outside. For indoor cats, windows become even more important. Since cats that live exclusively indoors can easily become bored or frustrated, it is important to provide environmental enrichment for them.
Windows as enrichment for cats
In a review of enrichment practices, Sarah Ellis (2009) says that windows with an interesting view provide important visual enrichment for cats. Of course, it’s what the cat finds interesting that counts. It’s possible that being unable to reach or interact with things on the other side of the window could cause frustration.
As with any enrichment practice, you have to take the cat’s perspective.
How long do cats spend looking out of windows?
Some cats seem to spend a lot of time by the window, while others don’t so much. In a survey of 577 cats by Melissa Shyan-Norwalt, caregivers reported that their cats spent less than five hours a day at the window, with the median time reported as two hours. So on average, pet cats spend 2 hours a day at the window.
This doesn’t surprise me, since even an indoor cat will have other activities to keep her busy: napping, grooming, playing with toys, sitting on someone’s lap or next to them on the settee while they watch tv, interacting with fellow cats and any other pets in the home, and so on. I was surprised to read that almost 16% of the cats were reported as spending more than five hours a day looking out of the window.
This study also asked what the cats did at the window. The most common activity was watching birds, small wildlife or foliage. Reported less often, but still common, were watching other cats, people, vehicles and insects.
This is useful information since it helps us work out what will provide visual enrichment, from the cats’ point of view; it suggests that they would prefer a green outlook that is attractive to birds and other wildlife.
How to make windows interesting for your cat
There are several ways you can make windows more interesting for your cat. If you feed the birds in winter, you could position a bird table in sight of the window so the cat can watch birds coming to feed. A bird bath would also encourage birds to come. Hummingbird feeders placed appropriately could also give your cat something interesting to watch.
In summer, if there is a window close to an outside light, you could put the outside light on at dusk and leave the curtains open for a while. The cat can watch the moths and other insects that are attracted to the light. My cats love this and one of them will even come to find me if I have forgotten to turn the light on for him. He leaps up at the window trying to catch insects on the other side, so it’s a great game for him and gives him some exercise as well.
Another idea is to make sure that cats have a choice of windows, or to let them use a window ledge that is high up, since cats like to be in an elevated position. And if the window can be safely left open, the cat can enjoy the scents that drift in on the breeze — cats have amazing noses.
Catios and playtents for cats
Windows as enrichment
Does your cat spend much time at the window? What does your cat like to watch
Zazie Todd, PhD, is the author of Wag: The Science of Making Your Dog Happy . She is the founder of the popular blog Companion Animal Psychology, where she writes about everything from training methods to the human-canine relationship. She also writes a column for Psychology Today and has received the prestigious Captain Haggerty Award for Best Training Article in 2017. Todd lives in Maple Ridge, BC, with her husband and two cats.
Полезные трюки при работе с netcat
В данной статье я рассмотрю популярную сетевую утилиту netcat и полезные трюки при работе с ней.
Netcat — утилита Unix, позволяющая устанавливать соединения TCP и UDP, принимать оттуда данные и передавать их. Несмотря на свою полезность и простоту, многие не знают способы ее применения и незаслуженно обходят ее стороной.
С помощью данной утилиты можно производить некоторые этапы при проведении тестирования на проникновение. Это может быть полезно, когда на атакованной машине отсутствуют (или привлекут внимание) установленные пакеты, есть ограничения (например IoT/Embedded устройства) и т.д.
Что можно сделать с помощью netcat:
- Сканировать порты;
- Перенаправлять порты;
- Производить сбор баннеров сервисов;
- Слушать порт (биндить для обратного соединения);
- Скачивать и закачивать файлы;
- Выводить содержимое raw HTTP;
- Создать мини-чат.
Вообще с помощью netcat можно заменить часть unix утилит, поэтому этот инструмент можно считать неким комбайном для выполнения тех или иных задач.
Практические примеры
Во многих случаях при необходимости проверки того или иного хоста используют телнет, либо собственные сервисные службы для выявления хоста или баннера. Как нам может помочь netcat:
Проверка наличия открытого TCP-порта 12345
nc: connect to 192.168.1.100 12345 (tcp) failed: Connection refused
Connection to 192.168.1.100 22 port [tcp/ssh] succeeded!
SSH-2.0-OpenSSH
Сканирование TCP-портов с помощью netcat:
При таком сканировании не будет соединение с портом, а только вывод успешного соединения:
nc: connectx to 192.168.1.100 port 20 (tcp) failed: Connection refused
nc: connectx to 192.168.1.100 port 21 (tcp) failed: Connection refused
found 0 associations
found 1 connections:
1: flags=82
outif en0
src 192.168.1.100 port 50168
dst 192.168.1.100 port 22
rank info not available
TCP aux info available
Connection to 192.168.1.100 port 22 [tcp/*] succeeded!
nc: connectx to 192.168.1.100 port 23 (tcp) failed: Connection refused
nc: connectx to 192.168.1.100 port 24 (tcp) failed: Connection refused
Сканирование UDP-портов.
Для сканирования UDP портов с помощью nmap необходимы root привилегии. Если их нет — в этом случае нам тоже может помочь утилита netcat:
Connection to 192.168.1.100 port 5555 [udp/*] succeeded!
Отправка UDP-пакета
Это может быть полезно при взаимодействии с сетевыми устройствами.
Прием данных на UDP-порту и вывод принятых данных
После первого сообщения вывод будет остановлен. Если необходимо принять несколько сообщений, то необходимо использовать while true:
Передача файлов. С помощью netcat можно как получать файлы, так и передавать на удаленный хост:
Netcact в роли простейшего веб-сервера.
Netcat может выполнять роль простейшего веб-сервера для отображения html странички.
C помощью браузера по адресу: http://хост netcat:8888/index.html. Для использования стандартного порта веб-сервера под номером 80 вам придется запустить nc c root привелегиями:
Чат между узлами
На первом узле (192.168.1.100):
После выполнения команд все символы, введенные в окно терминала на любом из узлов появятся в окне терминала другого узла.
Реверс-шелл
С помощью netcat можно организовать удобный реверс-шелл:
Теперь можно соединиться с удаленного узла:
Не стоит опускать руки, если нет тех или иных инструментов, зачастую довольно громоздких, иногда задачу можно решить подручными средствами.
S.E.A.T | Sit Anywhere!
- 8,120 views, 55 today
- 2,567 downloads, 20 today
Xmas Labs S.E.A.T Pack
The Sitting Enabled Anywhere Technology (S.E.A.T) pack is the ultimate sitting solution for Vanilla Minecraft!
It lets you sit anywhere in your world and comes with cool features like sitting physics!
- ✅ Sit on (almost) any block/entity in the game, including other players
- ✅ Intuitive mouse-based controls — no need for complex commands
- ✅ Fine-tune your sitting position to make it look just right
- ✅ Reacts to world physics letting players fall, bounce, slide, etc while seated
- ✅ In-pack menu that lets you customize and configure pack features to your liking
- ✅ Works in both singleplayer and multiplayer worlds
- ✅ Carefully coded to prevent conflicts with other datapacks/mods, especially those made by me
⚠ IMPORTANT!
To install this pack, you need to first extract the zip file and then copy its contents to your datapacks folder. It won’t work if directly placed in your world.
🟡 You must copy both C.O.R.E and S.E.A.T folders to your datapacks folder.
The Co-Ordinated Runtime Environment (C.O.R.E) is included in the downloaded ZIP file and it holds commands shared between my packs. You need it to run the S.E.A.T pack.
🟡 If installing for the first time, or after a previous un-installation, you will have to reload twice .
If installed and loaded correctly, you should see both packs show up as advancements in your Advancements Tab (Press L key to open) .
Sitting Down
There are two ways to sit using this pack:
Default Method:
- Stand in front of (or on top of) the block you want to sit on
- Turn around and face away from the block
- Look straight down and Right-Click (USE button / MOUSE 2)
Only If Sneaking Method:
- Stand in front of (or on top of) of the block you want to sit on
- Turn around and face away from the block
- Look straight down and
3.1. Hold Left Shift (SNEAK button) for a second or two
3.2. Release Left Shift (SNEAK button) & quickly press Right Click (USE button)
You can switch to your preferred method using the pack menu
S.E.A.T Adjustment Mode
This lets you fine-tune your sitting position after sitting.
It’s the Minecraft equivalent to scooting over.
To enter S.E.A.T Adjustment Mode :
- Look straight down while seated and you should see a prompt telling you to scroll up/down (if prompts are enabled).
- Scroll up/down rapidly on your mouse-wheel/hotbar
Once you’ve entered S.E.A.T Adjustment Mode , you have 3 basic controls :
👀 Look-Around/Rotation:
This sets the direction you want to adjust your seat in.
🔄 Scroll Up/Down:
Moves your seat either forward or backward along the axis/direction you’re currently facing.
⌛ Wait/Stop Scrolling:
If you stop scrolling for a while (about 7 seconds), the seat locks in your adjustment and exits S.E.A.T Adjustment Mode .
If Rotation Lock is enabled in the pack menu, the direction you’re looking in when exiting S.E.A.T Adjustment Mode is locked in as your sitting rotation.
This also works when sitting on mobs and entities but is really difficult to do because they don’t sit still during adjustment. If this annoys you, enable the Freeze Rides on Adjust option in the pack menu to temporarily freeze entities you’re sitting on during adjustment.
🎠 Sitting On Entities
This pack lets you sit on almost every mob/entity in the game including other players, armor stands and mobs that can fly.
To sit on an entity, all you have to do is sit on them from above (or fall on them while seated). Be careful doing this in Survival Mode as the mob you’re sitting on could get you killed. For instance, you could be sitting on a cat that suddenly decides to run into a 1-block high passage, suffocating you inside the block above. Also, sitting on hostile mobs is generally a bad idea, though in a few cases, it’s possible to get away with it.
You cannot sit on underwater mobs due to a technical limitation in Minecraft that dismounts you if you’re underwater (or under-lava).
You should be able to go everywhere the mob goes. This is even true for endermen teleports.
Some mobs behaviors can be frustrating though. For instance, ghasts tend to bounce away from you making them very difficult to sit on (but possible). Ender Dragons are almost impossible to sit on in Survival mode due to their speed and flying maneuvers. Vexes travel through blocks suffocating you in the process. Several mobs turn and try to face you while you’re sitting on them, which ends up looking strange.
When Rotation Lock is enabled in the pack menu, you tend to rotate with the entity you’re sitting on (unless you’re in S.E.A.T Adjustment Mode ). This usually isn’t apparent visually, unless the entity makes a drastic rotation.
Please note that sitting on an entity isn’t the same as riding them since you can’t directly control their movement. However, you can now do things like share a ride with other players (they can join you as passengers).
🧲 Physics
If Physics is enabled, you will respond to world physics while seated. You could be pushed around by world mechanics like water, gravity, explosions, pistons, etc. How smoothly this runs depends on the performance of your world/server.
Please do not enable this in a Hardcore world! This feature is the sole cause behind 99% of this pack’s bugs. It works most of the time, but during those rare moments when it doesn’t work, you might find yourself being launched into outer-space or phasing through blocks.
I spent days patching all known physics bugs, but I’m sure there are a few that went under my radar. It’s impossible to find some of these unless you try every possible block or entity interaction in the game. So, if you want to stay safe, here’s a general rule of thumb — DO NOT SIT IN WEIRD SPOTS.
There’s an in-built Global menu you can open in your chat (requires OP) by running the following command:
/function x_seat:menu
NEW! You can also trigger a Player-menu that works without OP permissions. Use the following command:
/trigger S.E.A.T This menu controls separate settings for each player. You can also block or force-enable features for all Player-menus using the Global menu.
This menu lets you toggle different pack settings to suit your experience. Turning off things like physics might improve performance and stability, especially on servers. Each option comes with a description you can view by hovering over it with your mouse.
You can navigate to different pages using the page arrows at the bottom, or clear the menu using the Close Menu button.
⚠ Changes you make in this menu get applied to everyone in your world/server.
Menu Options:
🧲 Use Physics
This feature makes you responsive to world physics while seated. Keep it ON if you want to fall, bounce, slide, etc while sitting. Turn it OFF to improve performance and avoid glitches.
🔒 Rotation Lock:
Turn ON to lock S.E.A.T rotation. Makes seated movement look more natural, especially when riding mobs, but restricts your freedom of rotation. Also causes a bug where your inventory will auto-close if sitting on an entity that rotates. This setting is ignored in S.E.A.T Adjustment Mode .
🦿 Only If Sneaking:
Makes sitting slightly more complicated. If ON, players need to sneak for a bit while looking down, then release sneak and right-click to sit. Takes some getting used to, but stops you from unintentionally sitting on things. Also, sneaking before sitting is slightly more realistic.
🦘 Bounce Off Floors:
By default, falling on bouncy surfaces looks strange as the player seems to bounce mid-air. Turning this ON will fix that but might cause the bounce to look less realistic.
👇 Only Sit Down:
By default, S.E.A.T tries to seat you on any sittable surface directly behind you. If it doesn’t find any, it seats you on/in whatever block you’re standing on/in. Turning this ON forces S.E.A.T to only use the block you’re standing on/in.
🤕 Fall Damage:
Keep this ON to apply fall damage to seated players when falling. No reason to turn this OFF unless you’re playing it super safe.
🛑 Block Inventory:
Prevents players from accessing their inventory while seated. This ‘feature’ only exists to hide the non-functional inventory GUI added by S.E.A.T components. Turning this OFF will allow seated inventory access but might break immersion.
🥶 Freeze Ride On Adjust:
Turning this ON will temporarily disable AI in the entity/mob you’re sitting on while in S.E.A.T Adjustment Mode . This makes adjustment much easier but may cause issues with the mob/entity you’re sitting on, since this resets their state.
🔔 Show Prompts:
Turn this OFF to disable sitting instruction prompts. This might make things difficult for players new to the pack.
🔧 NEW Seated Adjustment:
Turn ON to enable access to S .E.A.T Adjustment Mode . Once seated, scroll while looking down to start adjusting.
🏇 NEW Sit On Mobs:
Keep this ON to sit on mobs. This might prevent you from sitting in some spots that are too close to mobs.
🚧 NEW Adjustment Limits:
Turning this ON prevents you from adjusting too far away from your initial position. This keeps you from using S.E.A.T Adjustment Mode to fly or move through walls.
🚮 Uninstalling
If you want to disable this pack 💔, you should first run the uninstaller function using the following command:
/function x_seat:uninstall
This will remove all traces of the S.E.A.T pack, including any changes made to your world. If you’re not using any other Xmas Labs packs, you should uninstall the C.O.R.E pack as well, using the following command:
/function x_core:uninstall
Uninstalling the C.O.R.E pack will also automatically remove the S.E.A.T pack or any other packs that depend on it. If done correctly, you will no longer see the pack(s) in your Advancements tab.
Once you’ve uninstalled the pack(s), you can safely remove the datapack(s) from your world folder. If you don’t remove them, they will re-install themselves the next time you load/reload your world.
Q: Why is nothing working?
A: Stay calm. If you don’t see any prompts while looking down, this usually means the pack hasn’t loaded correctly. One way to check this is using your Advancements tab (Press L key to open). If the pack loaded correctly, it should show up there. If it didn’t load correctly, or if something’s not working, try reloading your world. If you have cheats enabled, use the ‘/reload’ command or re-open your world. If that doesn’t fix it, try using the ‘/datapack list’ command to see if the packs were installed correctly. If they’re not listed, you probably copied them into the wrong folder, or else the packs aren’t compatible with your version of Minecraft.
Q: Does Right-Click to sit not work sometimes?
A: Yes, sometimes there’s a bug where right-clicking doesn’t seat you even if the prompt shows up. When that happens, just look/move around a tiny bit and try again.
Q: Do the scrolling controls for S.E.A.T adjustment not work sometimes?
A: The scrolling controls work by tracking the movement of the selected slot on your hotbar. If you scroll too quickly, the selection wraps around and confuses the function. To avoid this, just slow down your scrolling to 1 or 2 slots at a time.
Q: Why can’t I sit on entity/mob X?
A: You need to be directly above the entity/mob’s hitbox to sit on them. Just try falling on top of them while seated. You can’t sit on anything inside water or lava. Also, I’ve disabled sitting on things like item-drops and xp orbs, as they resulted in a lot of issues during testing.
Q: Can I sit underwater?
A: No. There’s a technical limitation/feature in Minecraft that dismounts you if you’re riding stuff underwater.
Q: Why do I get hurt while sitting or getting up?
A: This can happen if you’re trying to sit in a cramped or hard-to-access location. Try disabling different S.E.A.T menu options, such as Use Physics and Fall Damage . If that doesn’t work, you’re outta luck.
Q: Why is this so buggy?
A: I feel you, really I do. I’ve spent nearly a month getting this to where it’s at, but there’s only so much you can do with Minecraft commands. If you want something more reliable, there are plenty of mods out there that do the same thing in a straight-forward manner. With datapacks however, you have to rely on invisible llamas and sleeping foxes to implement stuff like this. This makes them fun to develop but it’s almost impossible to get a perfect solution.
That sums up everything you need to know about the S.E.A.T pack.
Thank you once again for checking it out. I hope you enjoy it!
Credit | Made using mcscript, a compiler for Minecraft datapacks. Learn more @ https://mcscript.stevertus.com/ |
Compatibility | Minecraft 1.16 |
to | Minecraft 1.17 Snapshot |
Tags |