Somehow whenever I'm playing any game on Steam (any game, including WoWs, Satisfactory, and Cities Skylines) if i have the game focused (i'm in game), somehow my machine is lowering my audio for my browser and also lowering iTunes. I've also noticed that when in game the itunes music and browser has less EQ. i.e. Little to no bass.
I have currently disabled the communications under Control Panel -> Sound -> Communications -> Disabled
I'm also running VoiceMeeter, however this issue was happening prior to the installation of that software, so I'm assuming that this is either a Windows issue or a Steam issue. I've looked and found numerous articles and other answers on forums, however they are all about 6 years old, and no solution is applicable here as the information contained within is outdated.
Is anyone else having these issues, or knows whats going on?
I recently moved from Australia to the US and have perched a US WiiU. To access my digital-Australian games I'd need to change the region on my account from Australia to USA but, I'm worried that I might loose stuff. Especially considering I would have to cancel my Nintendo Online subscription to do so. Will I actually loose anything? Games, Save data ect.?
Since a certain patch - I cannot determine which one, like 6 months ago - I began experiencing an issue where my client is stuck on a "Game in progress..." screen for a minute after I finish a game. I tried:
reinstalling LoL
reinstalling LoL to a brand new SSD
moving my TEMP/TMP directories to said SSD
killing the LeagueOfLegends.exe process after game
this seemed to have an effect as opposed to the other tries: The client returns to the post-game screen immediately, but is extremely slow - graphs load slowly, returning to the party screen (Play again) works, but my friends do not see me as connected, after the minute passes (during which no actions are viable) a lot of screens blink and then the party screen opens again and everything works
letting the client close during a game
this just causes it to open immediately and then proceed with "Game in progress..." as before.
Pls, help me. So you know the thingy under the crosshair in Minecraft? My brothers' friend played on my pc and he changed the settings so the bar under the crosshair isn't there anymore but instead it isn't a bar and it is a sword that charges but it is NEXT to my HOTBAR. TYSM if you help me. (soz if this is too long)
I wanted to see if we can change the biome on my world. For example, if it was a super flat plains, can I make it a snowy biome after building in the world?
I wanted to know some of the strongest characters for the Paladins. I have also google it and found a tier list paladins-tier-list but it's totally useless. Can anybody guide me to the strongest characters. I can select for the game.
I am trying to write a minecraft mod after my favorite pet, gerbils (cute small desert rodents), so i started to learn how to make a mod using fabric (i used the official fabric website and Suited Llama's tutorials). I created an item without any major problems, but as soon as i tried to implement an entity, i ran upon a big problem.
Problem
The tutorial is outdated, the classes definitions arent the same and im a little bit lost since i dont know what i can do and what i cant.
Question
Is there any valid tutorial for mc 1.17+ out here yet? And if, where can i find them?
I'm playing No Man's Sky on PC (via Steam), and I've noticed that when I start my game on a hazardous planet, the "weather effects" on the viewscreen seem to persist even when I leave the planet. Is there a way to disable the weather effects entirely? I don't find it adds very much to the ambience on hazardous planets, beyond making it even more difficult to see than usual. (By weather effects I mean the "frost" that builds up on the edges of glacial planets, or the yellow toxic film that builds up on toxic planets. etc.)
As an example, I started today's session in a base that I have on a glacial moon. Afterwards I left and went to the anomaly to talk to Polo. As you can see from the screenshot below, the "frosting" on the edges of my viewscreen are still present even though I'm in the perfectly climate-controlled anomaly. :(
I've been playing Wii Tennis, and while its a fun experience, it's rather boring seeing the same CPU over and over.
This occurs when I'm at the【PR✪】level, or 1000 skill points. Anyways, after that I just see the same CPU again. It's Elisa and this other girl I can't really remember.
Are there any other CPU besides them that I can play against? I'd rather do this without using a new Mii.
my friend has spawned in 9000 water buckets right next to me and the game crashed, so i was wondering if it was possible to remove items from the ground not in the server
I' playing on a modded Minecraft server with my friends, and there are many extreme hills biomes. On top of one of these mountains (around Y-180), there were a lot of monsters spawning around me. But, when I enter a cave below the mountain and I'm below Y-10, nothing spawns in the caves, due to all those monsters that are still loaded on the mountain. Is there any way to fix this?
I am at the final part of dying light - the following. I have rejected Mother's request for sacrifice and fighting her. But she is too fast and furious in the last phase - in seconds, I am dead. Especially, when she screams, my health goes to zero fast. Is there a specific strategy to beat her in last phase of battle?
So, I'm using Mojang's guide as well as a YouTube video to help me set up this server; I've been told that in the start.txt file, you can set up how much memory is used during/after startup by pasting Java -Xms512M -Xmx3.5G -jar server.jar (I changed the original minecraft_server.jar to just server.jar as that's what mine's labeled). It ran the 1.16.4 version of Minecraft, but I'm not sure why it keeps issuing a Can't keep up! Is the server overloaded? Running [x]ms or [y] ticks behind error/warning.
I just want to be able to play on my own on this sever, nevermind having others try and join (one step at a time). If anyone could help me out, or point me to a post that clearly points out that I'm having an issue someone has already had before, that would be great/
If there's also a comprehensive guide on how to setup Vanilla servers (I know a bit about computers, so it's okay if it's not for beginners) I'd greatly appreciate it.
I'm trying to make a fire ability for something I'm making that will summon falling fire blocks, and I'm having issues with the fire disapearing.
I'm using /summon minecraft:falling_block ~ ~ ~ {BlockState:{Name:"minecraft:fire"},Time:1} and it doesn't seem to work. It still disapears regarless of the Time:1 tag.
I have used this method of spawning fire many times in the past, and it confuses me why it doesn't work anymore. I've checked for errors a fair amount of times and even loaded up old worlds (in 1.13) and copied the command (and while in 1.13 on the old worlds it worked but still doesn't work on new worlds).
So I was playing on one of my mod packs (1.12.2 if this helps), and had been bitten by a vampire and had turned, everything was normal until then. As in, when I turned I got an infinite poison effect, and I cannot get rid of it, at all. Milk buckets don't work neither does the /effect @p clear command. Even the /kill command does nothing, it just comes back. I have no clue how to get rid of it since this has never happened before and there is nothing about it anywhere I can find. I mean you can see how an infinite poison effect can be annoying when you are trying to play in survival.
I just downloaded the game and finished the tutorials and played my first match (I think this first match is the last part of the tutorial).
Then, a white message appeared taking most of screen space. I'm not sure if it's supposed to be an ad, or if I received a reward, or it's an information message. But it's totally white blank.
I clicked on the (X) button to hide it. It goes then appears again.
So I know there are similar questions on Google, but they had something to do with their Nvidia driver, which I don't have or any way to get it (I'm just a kid, I don't have enough knowledge to go through my PC stats and get an Nvidia driver or whatnot).
I did try the reducing lag methods (such as going into Roblox studio and turning off frame manager and changing the render distance to a lower resolution), but I still get stuttering frames, just barely-noticeable but gameplay-changing amounts of lag and just overall server lagging (pressing a key and the function of the key happening about a second later, people teleporting and such).
This isn't my PC problem - my 2 PCs had no problem running Roblox about 2 days ago, then one day I turned on my wireless PC and it just seems to have lag. I thought this may be just it being wireless and tried my wired one, but that had the exact same problem. I also tried disabling my antivirus on my big PC, which did seem to get rid of a tiny bit of lag but still lagging the same way nonetheless. Others seem to not have this problem, re-installing or restarting the PC doesn't work, and Roblox didn't update until today (which still lags). This is extremely frustrating, any help will be appreciated.
I have created a mob farm which I want to be able to turn into an XP farm at the switch of a button. Basically a multitude of mobs spawn at the top, fall down, and die. I want to add a dispenser that dispenses water so I can catch the mobs and kill them for the XP instead of their drops. However, creepers start to self-destruct as soon as I start hitting them through my half-slabs. I've tried using different combinations of slabs, stairs, fences, etc, but the creepers keep blowing up my mobs. Is there any way to stop this? I can draw a diagram of the XP farm if it would help.
Most of the customisation items for characters are locked away in the Krypt mode, which requires you to spend coins to open boxes that contain random items. The boxes with the better items are much more expensive than the others and drain resources quickly.
What's the quickest/most efficient way to grind for the coins required to open a bunch of chests for the best chance at getting the items you want?
Note: The in-game store lets you purchase specific items, but it's only about 5 at a time and they're on a rotation that takes many real-world hours to rotate. It's not a viable solution to the problem of getting the items you actually want.
When I want to invite my friends over the internet into my LAN world in Minecraft, I need to set my router to forward the port specified by Minecraft. As Mincraft picks a different port each time I open my world over LAN, I have to edit my router settings every time I want to start a multiplayer LAN session over the internet. Instead, I would like to set the router to the range of port numbers that Minecraft picks from.
What is the range of ports that Minecraft uses for LAN worlds?
So far, after four sessions, I have had ports between 49525 and 50852. I play the Java edition, if that makes any difference.
Alternatively:
The port range must be coded into the Minecraft code. What file(s) would I look at to find it?
While I was farming for Alamaric Sniper and Ghost Dancer souls, I had something happen where it looked like a Sniper was going to give me a soul, but I didn't actually get one. Instead, this red magic circle-looking thing was left behind in the air for a few seconds, along with a pair of wings. Eventually, the wings disappeared, and the circle expanded and faded away.
I only had 7 Sniper souls at the time, so it wasn't that I was maxed out. I've tried researching it myself, but searches about "magic circle" tend to lead to Magic Seals, and searches about souls not dropping tend to lead to complaints about drop rates, so I haven't had any luck. If it matters, I'm playing on DeSmuME 0.9.7.
Is this an actual part of the game, or just a glitch of some sort?
In response to the Arc Demon suggestion: I've found a Dawn of Sorrow Arc Demon sprite sheet on this site. While they also use red magic circles, the designs aren't very similar, so I'm afraid that can't be it. Among other things, this circle has a star in the center, while the Arc Demon one does not.
I am making a security system to protect something very important in my room. Its the ink in printer. I have many enermies and they have done black magic on me so I am tring to fight the black magic by making holy water and taking ruqyah baths with it see the links below for information on:
The black magic allows these people to probe in my mind. So there is no point using for example corded locks. These people will go to all lenghths to contaminate this ink so it does not work, My mother is on their side and has the key to my room. Althogth these people want to contaminate this ink badly they also do not want to get caught at it or for me to no they have done it.
So i decided i will set up a motion camera in my room, that will allow me to see when motion is detected in my room. As my mother will simple turn her wifi off. so i decided to get a moblie phone to make a wifi hotspot in my room to connect to my phone.
Now the problem is that everything works on 2.4 ghz. I think from the internet, its better to buy and andoid moblie than iphone to get a 2.4 ghz wifi, my question is will any of these mobiles do the job:
My second probelm is that this phone that make my 2.4 ghz internet in my room need to connect to my iphone 5s. I think this shoud be okay as its sending it to my e-mail account.
This is the plan i have but if you can think of a better security system i would like to know. Bear in mind these people can read my mind and are many people and are very driven to stop me for example if i get a pad lock and lock my printer in my suit case which i will also do, they will simple pick the lock.
If I'd like to go to sleep with sound playing on my iPhone but have it turn off at a certain time during the night, or after a certain duration, how would I accomplish that?
Is there a way to retrieve a list of applications running per Space/Desktop in MacOs Big Sur (11.4)? Ideally, I'd like to save the state of apps running in a chosen space and be able to reopen them later in a single space.
Is it possible (using Apple Script or XCode)? Where to look for Spaces-related data? Any advice is highly appreciated.
I have a screenshot of a web UI and I wish to blur the parts that are not relevant to the point being demonstrated, is there a way to blur / pixelate part of an image using Mac Preview?
Note: the top ranking google result offers a highly substandard solution resulting in an obtrusive rectangle in place of the parts you want blurred - this is really not the same as subtle blurring that obscures information with minimal aesthetic interference with the look of the image.
Sometimes when I start to use MacBook its cpu speed limit stays at 20% despite the low temperature. I use the app "HOT" to monitor it. Sometimes even when temperature is 60 Celsius cpu speed limit stays at 20%. Only after a reboot it gets to 100%. Or it takes a very very long time.It might be inactivity of half a day or a day. But cannot predict when it will be reset. Is there any reason for this? Or is is it a hardware fault. I have tried clean install of OS. NVRAM SCM ..etc all the resets. But issue stays the same. I have asked the same question here as well.
If you search for a file in Spotlight and command-click the file you expect the finder to activate and show that file. Instead, the Finder activates but only shows my home folder.
Same thing in Terminal:
open /Users/myHome/Documents/aa/ab
will activate the Finder but with a window on /Users/myHome/. Same thing with any open file: if you command-click on the file name on top of the file window you can select any folder on its path to have it open in Finder. Instead, the finder opens /Users/myHome/.
Same thing with several applications that tell the Finder to reveal a file (not all apps: Music will correctly reveal track in Finder).
I have tried rebuilding the Spotlight index, checking the disk with Disk Utility, reinstalling Big Sur 11.4 but that does not fix the issue.
I'm currently running iPadOS 14.6 and I don't understand how Files app integration with cloud storages works.
I have Yandex.Disk application (think of it as Google Drive alternative) which does have its own "Offline" section, so I can download some files and access them locally without internet connection.
I also have Yandex.Disk visible in stock Files app and I can download files from there. The issue is that I have no idea how to delete files which were cached in Files app.
For example: when I open Files app and download some 1 Gb file from Yandex.Disk opened in Files, I do see that Yandex.Disk cache was increased in 1 Gb (System Settings -> Storage), however there is no "Delete" option in Files since it shows Yandex.Disk mounted as "Read-only". For now the only way I see to clear that cache is to completely delete the app and re-install it.
I've got a bunch of open windows in Firefox and somehow two of them (this one included which is the most recent one I've opened) are isolated into their own group. The other 8 or so windows will cycle through when I hit the command-~ key, but this window and the other window in its group never come up and I have to use the mouse and Window menu to select one of those windows. After I select one of the windows in that other group, the command-~ key will cycle through just those two windows and ignores the other 8 windows. Are those different desktop spaces? How can I get all the windows to be in one group?
(I'm talking about browser windows only here. Each window might have any number of tabs in it, but that doesn't seem to be relevant.)
In order to remove another audio device from my Mac, I deleted the HAL folder from Library/Audio/Plug-Ins/ (This is the advice I got from a quick google search, I don't understand the mechanics of it at all)
It removed the device I wanted to remove but now my Galaxy buds are not working. They connect to the bluetooth successfully for a few seconds and then disconnect automatically. Even when they are connected, the headphones do not show up in the list of Output devices.
What visual cue is available to show that Safari 14.1's tab bar is scrollable?
I understand that I can scroll it when there are too many tabs to fit. Other than trying to scroll it and looking to see whether or not it scrolls, how can I tell whether it is scrollable?
In some cases, the last visible tab may be partially covered, so that's a tiny cue. In other cases, if the windows size is "just wrong", all visible tabs are fully rendered.
Is there a cue I'm missing? Is there a cue I can enable? Is there an extension that would provide a cue?
Came across a wifi log today titled wifi-01-06-2021__(the date it was created). I have never seen one of this type before, and I am pretty confused about the first few lines of it:
SC: <airport[237]> scInitInterface for device en0 <airport[237]> _bsdDriver_init: registration for monitoring bssSteeringRequest event Info: <airport[237]> psCallback: powerSource = AC Power Info: <airport[237]> psCallback: set powersave disabled on en0 Roam: <airport[237]> _initInterface: AirPort Interface <en0> <6> P2P: <airport[237]> CreateVirtualInterface: Attempting to create AWDL interface for en0 with MAC address *omitted* (attemptNumber = 0) P2P: <airport[237]> CreateVirtualInterface: Created AWDL interface awdl0 with address *omitted* for en0 Offload: <airport[237]> _openIpAddressMonitoringSockets: Monitoring IP address changes on en0 <airport[237]> _initLocaleManager: Started locale manager <airport[237]> _initInterface: Failed to query current SSID (Operation not supported) <airport[237]> CoreCapture preference: 0 <airport[237]> finished with CoreCapture preferences
I know AWDL is the Apple Wireless Direct Link, and is used for peer-to-peer, and en0 is my wifi. What I don't understand is what it means by creating a virtual interface, or the MAC address that I have omitted.
Bluetooth and all sharing are disabled, and when this happened, wifi was disabled to. I wasn't connected to a network. The MAC address in question doesn't seem to match anything I can find on my Mac, or on my network, though that should be irrelevant given I wasn't connected to it.
Is this just a random MAC address my Mac is generating using MAC randomisation, or what is it?
But the problem, even after those two changes I can see kernal_task is more than 500% and I'm not able to use Macbook pro at all.
Previously it was once or twice an occurrence, now it is happening every time I connect to an external monitor.
Activity Monitor
I have also taken a spin-dump ( 5MB ) and system diagnostics ( 200+ MB ). So I dunno how to share this here. Let me know if any of you need it for analysis.
My Mac show disk full and realized that I can use only 100 GB (Out of 500 GB). I checked Storage and realized that there are a lot of space for "Other Volume in Container".
So I check diskutil list in terminal and found below
I know APFS Volume disk1s5 and disk1s6 but I am not sure what is disk1s1. It is not visualized it in DiskUtil also. Does someone know how to increase available volume? Or how to delete that disk1s1 volume?
Below is the command result from "diskutil apfs list"
I used to be able to download all of the songs in a playlist from iCloud at once in Music, but the download button is no longer showing in the playlist title area it used to. It does show next to individual songs that haven't been downloaded, however selecting all and right-clicking now longer shows a download button in the context menu either. The only way I have found to download more than one is to go to the album, and the download button shows in the album title area.
Any ideas on how to re-enable the download button? Is this a bug?
Note: it does not seem to make a difference if the playlist only contains content I have purchased, uploaded with iTunes Match, or added to my library from Apple Music.
I'm looking for an extensions (or built in feature?) of Safari that does the same as Multi-Containers for Firefox. I need different users/containers to separate private browsing from different works contexts.
I recently bought a new MacBook Pro, and set up Mac Mail with my Gmail accounts. At first, when the mail was being imported, the labels for my emails listed in the list preview section of the Inbox / message browser appeared. Then, Mac ran an update for 10.15 (Catalina), and all of the labels for my emails listed in the list preview section of the Inbox / message browser disappeared.
I've ensured that the 'Show in IMAP' checkbox is ticked next to all of the labels I wish to see as folders in Apple Mail. It shows the mailbox but not the labels for the messages listed in the list preview section of the Inbox / message browser.
Any ideas on how to fix this? I've contacted Apple support, but they haven't provided any guidance.
All my Apple devices are fairly new and apart from Lightning cables, all my peripherals are now USB-C.
But for photo editing I still like to use my 2015 27" iMac that was heavily upgraded. Now this iMac only has two Thunderbolt 2 ports and, obviously, no USB-C ports. I would like to add a hub to my iMac that allows me to use USB-C devices, like hard drives that are mostly just USB 2 or USB 3 anyway. A single USB-C port would be enough. At the moment I keep a spare set of USB-A to whatever cables around but it's getting increasingly annoying.
Is there a Thunderbolt 2 dock that would have a USB-C port or a way for me to use something like Satechis USB-C hub on my Thunderbolt 2 iMac? It does not need to be a Thunderbolt 3 port or support PD, all of which would require an active component.
Using Google Chrome on Windows, I am trying to download or copy + paste all of my files to an external hard drive so I can delete them afterwards and downgrade my iCloud drive subscription to something cheaper. I have tried to find a way but I can't seem to find a way to grab them all at once. It also wont let me download the file folders individually either. I also tried opening the iCloud folder on my computer and clicking the little cloud with the down arrow but it takes super long and hangs up my internet so I can't do anything else with it for hours.
The only way I could find to do this is to download the document files without the folders meaning I would essentially need to re-create the folder layout on my external, download the document files and then move them to the external drive which would be a pain and really slow.
Does anyone know of a way to do this a faster way? Or a way to back up iCloud so I can get to the files that way?
I have a fleet of 7 macbook pro's running mac osx 10.10, 10.11, and 10.12, and 3 mac pro's running mac os 10.13 ("high sierra"). On all systems, I have set it to never sleep the system or display. Oddly, that doesn't suffice, so I also use caffeinate to prevent sleep. On the 10.13 systems, though, the display still goes to sleep, no matter what I try. This affects two things:
my opengl tests hang
"osascript -e 'tell app "System Events" to restart'" hangs
Since only the display is asleep, I can still ssh in and look around.
I currently run my script under caffeinate -dsiu -t 31536000, and when it hangs, evidently I've still got all the proper assertions going:
$ pmset -g assertionslog 2017-11-20 19:34:27 -0800 : Showing all currently held IOKit power assertions Assertion status system-wide: BackgroundTask 0 ApplePushServiceTask 0 UserIsActive 1 PreventUserIdleDisplaySleep 1 PreventSystemSleep 1 ExternalMedia 0 PreventUserIdleSystemSleep 1 NetworkClientActive 1
Executing another caffeinate -u wakes the display up and puts it into DevicePowerState 4 for 15 or so seconds, then it goes back to sleep and DevicePowerState 1, even if I give a longer timeout with -t. I've also tried repeating the -t argument after each assertion (in case the confusing manpage meant that).
To rescue "osascript -e 'tell app "System Events" to restart'", I have to issue "caffeinate -u". "caffeinate -d" or "caffeinate -i" are not sufficient.
I guess I should use lldb to get a backtrace from a hung opengl test, figure out what API it's hung on, and then create a minimal app that sets the appropriate power management assertion, sleeps a bit, then calls the hanging API. I'll try to do that when I get a chance.
To work around it, I currently have this in a background script:
while true do caffeinate -ud sleep 10 done
but that's not enough; CurrentPowerState dips down to 1 frequently on all systems (though I think only the 10.13 systems actually sleep the display and hang my tests).
Has anyone else run into this? Any suggestions how I can diagnose this further?
In a Mac OS X native textfields, misspelled and typo'd words are underlined with a red squiggle.
Is there a standard keyboard shortcut that will correct a mispelling by selecting the most-likely correction?
This should work in all native textfields. The solution should not be limited to a single app.
It's already possible to Right Click a misspelled word. I'd like a keyboard shortcut to bring up a similar feature, so that I don't have to manually Right Click each word individually.
The feature could correct each word, one-by-one, allowing you to select each correction. Or, it could use the best guess for all misspelled words in the document.
I am looking for a control / app for sound output control which has function that allows me to have selective sound output for any app that plays sound or music.
Examples:
I am playing music in iTunes and I want it use my AirPort Output for the sound. The rest of sound / voice / music from my MacBook can use the internal speak or headset to play it.
At the same time, I can play my Spotify on my living room AirPort, my iTunes to my bedroom and watch YouTube on my MacBook.
Every time I delete it from the desktop, I get the same file ".DS_store" created after some time. Is there a reason why this happens ? And can I permanently stop it from being created ?
The three and a half decades between 1969 and 2003 is a long time. Going by the historical trend curve in number of Unix sites during that period, probably somewhere upwards of fifty million man-years have been plowed into Unix development worldwide.
That's 1.47 million man-year goes into Unix development during that period. It means 1.47 million developers worked on Unix system yearly.
Personally I find the number a bit hard to believe. Or am I understanding the number in the wrong way?
I wanted to swap from CentOS to Openmediavault. I had a RAID1 with mdadm in place and wanted to split it again into two separate disks. The Guide (Similar to ArchWiki) told me to do the following:
I'm working on a system with multiple NVIDIA GPUs. I would like disable / make-disappear one of my GPUs, but not the others; without rebooting; and so that I can later re-enable it.
Is this possible?
Notes:
Assume I have root (though a non-root solution for users which have permissions for the device files is even better).
In case it matters, the distribution is either SLES 12 or SLES 15, and - don't ask me why :-(
Somehow I think there must be a one-liner to apply a simple mapping on the command line. In this case the keys in JSON will (as usual) provide context, ensuring that we don't foolishly replace strings that shouldn't.
I'm using RSYNC to do periodic backups of my data into an external hard disk formatted in EXT4. I'm using the "hard link option", thus files that haven't changed from the previous backup are just hard linked instead of fully copied, which reduces the used disk space.
To guarantee that a power cut, a system hang, or other problem during backups doesn't pose a problem, I first do the backup into a temporary folder, run a SYNC to flush the disk cache, rename the temporary folder to the definitive name, and run another SYNC. This way I can guarantee that all the data is in the disk before committing the backup.
The point is that now I want to use a NAS, but I can't order a SYNC command (to flush the remote cache), neither through SFTP, nor NFS, which means that a problem in the middle of a backup can leave it in an intermediate state (like a file with only part of the data).
My question is: setting my NAS in "data=journal" mode would guarantee that there won't be incorrect data if I suffer a power loss, as long as I first do the backup in a temporary folder and then, after that, I rename it to the definitive name? Do other filesystems (like BTRFS or ReiserFS) have that mode and should it be set like in EXT4? And, of course, which NAS can you recommend me that allows to enable that mode?
I have a script that does some in file sed replacements/additions like:
sed -i 's/MY_VAR = 1000/MY_VAR = 1000\nMY_VAR2 = 500/' file.txt
which works fine but this is part of a fairly large script and someone may either ^C the first run and re-run this or just re-run it N-times back-to-back which will result in something like
which might not be expected. So my question is: what's the best way to avoid this? I came up with something like:
if [ ! -f file.txt~copy ] then cp file.txt file.txt~copy sed -i 's/MY_VAR = 1000/MY_VAR = 1000\nMY_VAR2 = 500/' file.txt fi
which should work fine but I was wondering if there's a better/recommended way to go about it? The above could obviously be problematic if your files are significantly large and you may just want to touch a copy file for protection instead.
Since null safety is quite fashionable in several modern languages (and justifiably so), it is perhaps fitting to suppose that the question as asked above was incomplete. It's necessary to know how to handle the absence of a value.
That may well be what we want. We could add a second step in the pipeline (watching out not to exclude "null"), but it's cleaner if jq itself excludes nulls. Just writing select(.a != null) does the trick, but introduces a {} level. What is the right way to discard nulls from within jq?
I've reverted to an older kernel after discovering that OpenZFS does not have currently have DKMS packages for the latest 5.12 release of Fedora 33 after a yum update.
I used Koji with the search term Kernel to download and install the necessary dependencies to revert to the latest 5.11 kernel, rebooted into it, and rebuilt ZFS without issue.
But while removing packages from the newer kernel I found that only kernel-headers for 5.12.9-200 was still installed (kernel-headers-5.12.9-200.fc33.x86_64 specifically).
I then realized that the packages listed by Koji for the packages I'd selected for 5.11 did not include kernel-headers and I had neglected to revert this before rebuilding ZFS.
Everything appears to be running correctly but have I inadvertently put my system or ZFS into a dangerously undefined state as a result?
The packages annobin, boost-devel, perl-ExtUtils-CBuilder, and zfs all depend on kernel headers and I am most worried about zfs.
I plan to install the correct kernel headers and rebuild these packages but wanted to ask here first for advice.
Also, why is kernel-headers not listed on the Koji page for the selected kernel? Because headers do not always track with the actual kernel release, I had to manually locate the last release for 5.11 which was 5.11.20-200. I would have preferred if this information was linked directly by Koji with the other kernel packages as tracking it manually is subject to error.
I want to forward a Socks5 proxy using SSH with password authentication inside a Docker container. YES, I know that SSH keys would be better. But since it's not my own server, I'm not able to use keys, they just offer user/password authentication. autossh seems to be the right tool for this job, so I used it with sshpass in my entrypoint shellscript:
Both approaches doesn't work. Since my ISP does a reconnect every 24 hours, it's annoying to restart the container every day by hand. I couldn't figure out yet why at the last approach in the loop can' handle the reconnect properly
I have Prime OS and Windows 10 alongside Linux Manjaro. I was using Prime OS nearly 2 hours. Then, I turned off my laptop for 30-60 minutes. Then, I turned my laptop on and I was using Windows 10 for 1 hours. After working on Windows 10, I had thought to work in Linux Manjaro. So, I turned my laptop off. Unfortunately, It was taking too much time to turn off my laptop that's why I had turned my laptop off by power button. Again, Windows 10 was automatically opening (without showing grub). So, I had again turned my laptop off by power button again. When I turned my laptop on and clicked on Linux Manjaro, I saw the following screen.
error: file `/boot/vmlinuz-5.10-x86_64' not found. error: you need to load the kernel first. Press any key to continue..._
I think that I can't access Manjaro's file from Windows or, Prime OS (I am not sure). How can I turn on Manjaro?
I downloaded the newest RHEL 8 ISO (9 GB) and created a bootable USB with a dd command in CentOS 7.9. But it would not boot at system startup. I tried it with 2 different USBs but to no avail.
Secondly I tried the Rufus software on Windows. It said that there is some kind of "Lock" on the ISO image from the creators, so it, (Rufus), also used the dd option to create the USB. The result is the same; it will not boot to start the installation process.
dd if=rhel-8.4-x86_64-dvd of=/dev/sdd1 command was used.
where tool is arbitrary and ssh is a wrapper or some ssh-like-contraption that allows the above to work. With regular ssh it doesn't work.
I used sudo here but it's just an example of a command that requires tty. I'd like a general solution, not specific to sudo.
Research: the cause
With regular ssh it doesn't work because:
sudo needs tty to ask for password (or to work at all), so I need ssh -t; actually in this case I need ssh -tt.
On the other hand ssh -tt will make sudo read the password from binary_input. I want to provide the password via my local tty. Even if sudo is configured to work without password or if I inject the password to the binary_input, ssh -tt will make sudo and tool read from the remote tty and write output and errors and prompts to the remote tty. Not only I won't be able to tell the output and the errors/prompts apart locally. All the streams will be processed by the remote tty and this will mangle binary data.
Research: comparison to commands that work
This local command is the reference point. Let's assume it successfully processes some binary data:
This question cares about stdout only. The existing answer (from the author of the question) advises sudo -S which consumes stdin. I don't really want to alter my binary_input. And I would appreciate a solution not specific to sudo.
This concentrates on passing Ctrl+c and the background is GNU parallel. A workaround that only makes Ctrl+c work without a remote tty is not enough for me.
This is a good start (especially this answer, I think). However here I want to emphasize the need for tty. I want a solution that automates things and allows me to use remote sudo (or whatever) as if it was local.
requires-tty is a placeholder for code that requires a tty but processes binary data from its stdin to its stdout. It seems I need ssh -tt, otherwise requires-tty will not work; and at the same time I mustn't use ssh -tt, otherwise the binary data will be mangled. How to solve this problem in a convenient way?
requires-tty can be sudo … but I don't want a solution specific to sudo.
I imagine the ideal(?) solution will be a script/tool that replaces ssh in the above invocation and just works. It should(?) connect the remote stdin, stdout and stderr each to its local counterpart, and the remote tty to the local tty.
If it's possible, I prefer a client-side solution that does not require any server-side companion program.
I have a computer with a Linux distribution installed on partitions in drive /dev/sda. I also have another physical drive, /dev/sdb.
I want to install Linux to the second physical drive - to later run either on the same computer or another one. I know the planned hardware configuration of the target machine, and I have an installer for my new Linux distribution (say on a third drive, /dev/sdc, or in an ISO I can mount etc.)
Can I perform the installation without rebooting? That is, other than in the usual way of booting from an installation medium?
If this question is too general, then - can I do so with Debian Buster/Devuan Beowulf?
Note: You may make any reasonable assumption about the system, but please state it explicitly.
I want to configure 1 shared folder /home/host/shared and put symlinks to other shared items in that shared directory to make them accessible by the guest machine like /home/host/shared/d1 --> /home/host/a_linked_dir. This is so that I can modify the files & directories as I use the VM without having to change the config in Virtualbox and so that multiple VMs can easily be configured to use a single shared folder. However, putting s symlink /home/guest/shared/link --> /home/host/shared/f1 doesn't allow the guest machine to access the linked directory and instead just points to a target non-existent on the guest machine.
Is there a way to use symlinks between the host & guest VMs in Virtualbox?
I am trying to compile the 5.4 kernel with the latest stable PREEMPT_RT patch (5.4.28-rt19) but for some reason can't select the Fully Preemptible Kernel (RT) option inside make nconfig/menconfig.
I've compiled the 4.19 rt patch before, and it was as simple as copying the current config (/boot/config-4.18-xxx) to the new .config, and the option would show. Now I only see:
But it never shows. I just went ahead and compiled it with CONFIG_PREEMPT_RT_FULL=y (which is overwritten before when saving the make nconfig), but it seems it's still not the fully preemptive kernel that is installed.
I have a shell script that failed to finish last week; it was a failed "cd" command and it exits if it fails.
The script is a bash shell script for configuring new Debian installs. Here is the full script: debianConfigAswome.sh. The script is run as root so it has full access to the file-system.
Can you please list all the reasons a script would not be able to successfully execute a cd command and what to do to avoid the error?
I have this external USB HDD that I've installed Lubuntu 16.04 and Windows 10 on as a dual boot. They are portable installations that I can take around with me and use on a variety of computers and have all my apps and configurations with me. It's a real installation of Lubuntu, not a persistent live USB. Windows 10 was done through WinToUSB.
Can I use Clonezilla to make a backup of this drive? And if I then restore that image to another drive, will that second drive also be bootable in the same way?
I'm running apache in a linux environment. I've to serve files whose directory structure have "/." in it. Now, apache by default won't allow files with /. To remove the constraint, I've included the following entry in httpd conf.
<DirectoryMatch "^.|/."> Order allow,deny Allow from all </DirectoryMatch>
But,this opens up all hidden directories under apache root. I'm trying to use a directory pattern so that it'll only allow files under this directory. For e.g. the directory path always start with /content/. The occurrence of /. can be anywhere. For e.g.
As you can see, I'm trying to create a pattern where the rule would allow directories starting with "/content" and can having "/." in its path. Just wondering if it's possible to have a rule like this in option.
I am trying to have two containers, running on two RPI, act as a site-to-site VPN between Network 1 and Network 2.
With the setup below, I am able to ping from within the container each other network:
from docker container 1 I can ping an address 192.168.1.1
from docker container 2 I can ping the address 192.168.10.1
But if I try to ping 192.168.1.1 from the System1 host (192.168.10.100) I have errors (see below image to visualize what I am trying to do).
I understand I have to add a static route on system1 host (192.168.10.100) to direct the traffic for 192.168.1.0/24 through the wireguard container (172.17.0.5), thus I run:
$i p route add 192.168.1.0/24 via 172.17.0.5 $ ip route default via 192.168.10.1 dev eth0 proto dhcp src 192.168.10.100 metric 100 172.17.0.0/16 dev docker0 proto kernel scope link src 172.17.0.1 172.18.0.0/16 dev br-e19a4f1b7646 proto kernel scope link src 172.18.0.1 linkdown 172.19.0.0/16 dev br-19684dacea29 proto kernel scope link src 172.19.0.1 172.20.0.0/16 dev br-446863cf7cef proto kernel scope link src 172.20.0.1 172.21.0.0/16 dev br-6800ed9b4dd6 proto kernel scope link src 172.21.0.1 linkdown 172.22.0.0/16 dev br-8f8f439a7a28 proto kernel scope link src 172.22.0.1 linkdown 192.168.1.0/24 via 172.17.0.5 dev docker0 192.168.10.0/24 dev eth0 proto kernel scope link src 192.168.10.100 192.168.10.1 dev eth0 proto dhcp scope link src 192.168.10.100 metric 100
but the ping to 192.168.1.1 still fails.
by running tcpdump on the container 2 I see that some packets are indeed reaching the container :
root@936de7c0d7eb:/# tcpdump -n -i any tcpdump: verbose output suppressed, use -v or -vv for full protocol decode listening on any, link-type LINUX_SLL (Linux cooked), capture size 262144 bytes 10:11:19.885845 IP [publicIPsystem1].56200 > 172.17.0.6.56100: UDP, length 128 10:11:30.440764 IP 172.17.0.6.56100 > [publicIPsystem1].56200: UDP, length 32 10:11:35.480625 ARP, Request who-has 172.17.0.1 tell 172.17.0.6, length 28 10:11:35.480755 ARP, Reply 172.17.0.1 is-at 02:42:24:e5:ac:38, length 28
so I guess it is not a routing problem on system 1.
Our OV 2.17.0 on premises (Ubuntu 18 server) works well for a while (a day or two), then stop working. I can create a new session, etc using REST, but any attempt to join newly created session failed with the server event "unable to create media pipeline for session XXX". Restart the server helps. Then it works for another 2 days and everything repeats.
I also see that all old sessions stay in memory (I have 10-11 sessions after the crash), although it's obvious that at that moment no connections were made to them for hours. I expected based on the another thread in this forum, that old sessions should be auto-destroyed. Not sure if that connected to the issue I'm facing.
Please find the logs of both Kurento and OpenVidu here.
Logs were recorded after the moment when server was failed for a while, before the restart.
I am looking to connect to 4 location p,q,r,s. I a ntrying to find the set of locations where I should connect to (isp or pop) to minimize latency . Is it lower latency to connect to a tier 1 network which would connect to 4 ip p,p,r,s ? Is there a lower latency path to connect p,q,r,s through a tier 2 network ? how do I find this?
I have a Knative installed with Istio as networking layer (without injection) The kubernetes cluster is using Istio ingress gateway as default ingress. Most Knative service's routing are managed automatically by Knative & Istio.
However I am trying to run a nifi native kubernetes services on the same cluster, how do I setup the ingress configuration on Istio ingress gateway for the services. Any reference to share?
Or is it possible to setup 2 ingress (1 Istio, 1 nginx) in the cluster, and have the native k8 service uses the nginx ingress?
I'm doing that cause istio is quite new to me and Knative abstracted the Istio networking element when deploying knative services but not the native k8 services.
Note that this question is not about how to do chroot or make an account SFTP only. The question is about whether there are specific ways for a sysadmin to check if a chrooted and SFTP-only account is correctly set.
Usually I do chroot or SFTP-only settings following some online resources such as this one: https://wiki.archlinux.org/title/SFTP_chroot. But the issue is, unlike simply changing an option from No to Yes in a configuration file, I need to complete multiple steps to finish the chroot or SFTP-only settings. Since this is such a fundamentally important security setting, I am always thinking: Is my configuration correct? Do I miss something minor but critical?
Currently what I am doing to verify the correctness is very simple:
To validate an account is SFTP-only, I just try to login as a normal user and see if I can see a This service allows sftp connections only. message and get rejected.
To validate an account is properly chrooted, I login as an SFTP user and check if I can switch to a directory which the account is not supposed to get in (usually I just double-click many many times the .. item at the top of a file list on an SFTP client's GUI).
Are these two things the only things a sysadmin needs to do to be 100% sure that the settings are correct?
There is a line to set User-Agent header because OSM requires it and I need compatibility with a client that doesn't send a user agent string. However, when nginx sets this header, approximately 10% of requests fail (nginx returns 502 to client), and my nginx error log fills up with this:
2021/06/13 14:37:49 [error] 67240#87020: *71 connect() failed (10060: A connection attempt failed because the connected party did not properly respond after a period of time, or established connection failed because connected host has failed to respond) while connecting to upstream, client: 127.0.0.1, server: server, request: "GET /16/64153/41313.png HTTP/1.1", upstream: "https://151.101.166.217:443/16/64153/41313.png", host: "localhost:480"
Without the proxy_set_header, everything is fine. The requests in this case are all being made from chrome, so the User-Agent as seen by the OSM servers should be the same in both cases. nginx version is 1.19.10 (windows). What am I doing wrong?
I installed iRedMail which would install amavis and spamassassin. When I test sending and receiving email, I have an error in the /var/log/mail.log, I see this line of error:
postfix/amavis/smtp[14582]: connect to 127.0.0.1[127.0.0.1]:10026: Connection refused
when I run this line: $sudo amavisd-new debug I see at the end of the output:
files are in the config directory.\nAt a minimum, v320.pre loads the Check plugin which is required. Jun 12 11:58:25.764 mail.example.com /usr/sbin/amavisd-new[20040]: sd_notify (no socket): STOPPING=1\nSTATUS=TROUBLE in pre_loop_hook: Timeout::_run: check: no loaded plugin implements 'check_main': cannot scan!\nCheck that the necessary '.pre' files are in the config directory.\nAt a minimum, v320.pre loads the Check plugin which is required. Jun 12 11:58:25.764 mail.example.com /usr/sbin/amavisd-new[20040]: (!)_DIE: Suicide () TROUBLE in pre_loop_hook: Timeout::_run: check: no loaded plugin implements 'check_main': cannot scan!\nCheck that the necessary '.pre' files are in the config directory.\nAt a minimum, v320.pre loads the Check plugin which is required. Suicide () TROUBLE in pre_loop_hook: Timeout::_run: check: no loaded plugin implements 'check_main': cannot scan! Check that the necessary '.pre' files are in the config directory. At a minimum, v320.pre loads the Check plugin which is required.
This is also the output of $spamassassin --lint -D:
Timeout::_run: check: no loaded plugin implements 'check_main': cannot scan! Check that the necessary '.pre' files are in the config directory. At a minimum, v320.pre loads the Check plugin which is required
I looked up in the /etc/mail/spamassassin directory and I can't see any '.pre' files in it. I also searched for v320.pre file using this: $sudo find / -iname v320.pre with no result.
If I disbale the amavis using: $sudo nano /etc/amavis/conf.d/50-user and changing these two lines:
and then restarting the service: $sudo systemctl restart amavis and then processing the mail queue: $postqueue -f the mail server would work perfectly fine! So it is obvious that I should put some '.pre' files in the /etc/mail/spamassassin directory. I found out that there are some '.pre' files in this url: https://apache.googlesource.com/spamassassin/+/trunk/rules My question is: Is it safe to download these files and put them in my directory? Or in general where can I find '.pre' files or generate them?
I'm working on an embedded system which will act as a server, the problem is the environment where it will run is so aggressive and it will suffer abrupt power interruptions. So I'm planning to mount the root filesystem as fake-writable using OverlayFS. The idea comes from RaspberryPi, where the devs have a mechanism to enable/disable the mounting of rootfs as OverlayFS (as you can see it can be enabled by using raspi-config script)
My question is ... would this help to protect the physical device from corruption? Or even the filesystem itself? My idea is to extend the life of the physical device and I think I can do this avoiding write operations, but the system cannot be purely read-only because some programs need to see the FS as writable, that's why I'm thinking in OverlayFS.
What do you think? Do you have some other idea on how to tackle this problem? Thank you all.
I have only one network policy in my cluster in prod namespace that allows only ingress rules. The network plugin is weave-net. No rules are configured for Egress so I am expecting egress traffic will be blocked. But until I restart the network daemon-set pods the rule has no effect. I know by best practices I should have default ingress and egress rules. But I want to understand the reason of this behavior. Is this step always required to restart the network-plugin pods?
Name: test-network-policy Namespace: prod Created on: 2021-06-06 10:16:50 +0000 UTC Labels: <none> Annotations: <none> Spec: PodSelector: run=prod-nginx Allowing ingress traffic: To Port: <any> (traffic allowed to all ports) From: <any> (traffic not restricted by source) Allowing egress traffic: <none> (Selected pods are isolated for egress connectivity) Policy Types: Ingress, Egress
3. Testing egress traffic to nginx server (This is unexpected to my understanding)
Note: 10.39.0.5 is the IP of the nginx server running in 'test' namespace
Command : kubectl -n prod exec -it prod-nginx -- curl http://10.39.0.5 | grep successfully #egress Response: <p>If you see this page, the nginx web server is successfully installed and
4. Restarted the weave-net pods
5. Retesting egress connection to same nginx server (expected)
Note: 10.39.0.5 is the IP of the nginx server running in 'test' namespace
here is the image of the topologyhttps://mega.nz/file/xWpXmC5K#fchoMl5TjGyfIJTTpxMgiOqUdw5qERxtGAUj0XTg2HI Here is my file of my cisco packet tracer project where I configured routers, PCs Ip addresses, masks, exit gateways but I still can't ping from PC to the other PC where is the problem? When I tried it I succesfully pinged to the first router but when I tried to ping to the second router it was failed. here is the image of the topology
Support MC-LAG (Multichassis Link Aggregation Groups) model cisco sg550x?
can i use at the same time in stack for example: 1/1-2/1: M-LAG (LAG1) and 1/19-2/20,1/20-2/19: for stack ports in LAG2(or in stack ports LAG not needed and works automatically)
I want to buy sg550X, but dont know function support.
can look at Cisco C9300-24UX-E(M-LAG, StackWise-480)?
I've got an ikev2 tunnel up, initiated on the left from an ubuntu box with strongswan going to a cisco asa. Using ASA to ASA multiple networks work but I can not get it with strongswan.
#config setup # strictcrlpolicy=yes # uniqueids = no config setup charondebug="all" uniqueids=yes strictcrlpolicy=yes # Add connections here. conn host2 left=8.8.8.8 #Changed from real for this example leftsubnet=172.27.1.0/20 right=8.8.4.4 # changed rightsubnet=192.168.1.0/24,192.168.2.0/24 ike=aes256-sha512-modp2048s256 esp=aes256-sha512 keyingtries=0 ikelifetime=1h lifetime=8h dpddelay=30 dpdtimeout=120 dpdaction=restart authby=secret auto=add keyexchange=ikev2 type=tunnel
asa-fw1# show crypto ipsec sa peer 8.8.4.4 | include ident local ident (addr/mask/prot/port): (192.168.2.0/255.255.255.0/0/0) remote ident (addr/mask/prot/port): (172.27.1.0/255.255.240.0/0/0)
And a different tunnel between 2 ASAs:
local ident (addr/mask/prot/port): (10.1.2.0/255.255.255.252/0/0) remote ident (addr/mask/prot/port) : (192.168.10.2/255.255.255.255/0/0) local ident (addr/mask/prot/port): (192.168.1.0/255.255.255.0/0/0) remote ident (addr/mask/prot/port): (192.168.10.2/255.255.255.255/0/0) local ident (addr/mask/prot/port): (192.168.2.0/255.255.255.0/0/0) remote ident (addr/mask/prot/port): (192.168.10.2/255.255.255.255/0/0) local ident (addr/mask/prot/port): (192.168.4.0/255.255.255.0/0/0) remote ident (addr/mask/prot/port): (192.168.10.2/255.255.255.255/0/0)
I have also tried putting additional right subnets on their own, such as follows:
conn host2 left=8.8.8.8 #Changed from real for this example leftsubnet=172.27.1.0/20 right=4.4.4.4 # changed rightsubnet=192.168.1.0/24 ike=aes256-sha512-modp2048s256 esp=aes256-sha512 keyingtries=0 ikelifetime=1h lifetime=8h dpddelay=30 dpdtimeout=120 dpdaction=restart authby=secret auto=add keyexchange=ikev2 type=tunnel conn host2-2 also=host2 rightsubnet=192.168.2.0/24
src 192.168.2.0/24 dst 8.8.8.8/32 dir fwd priority 185664 tmpl src 4.4.4.4 dst 8.8.8.8 proto esp reqid 1 mode tunnel src 192.168.2.0/24 dst 8.8.8.8/32 dir in priority 185664 tmpl src 4.4.4.4 dst 8.8.8.8 proto esp reqid 1 mode tunnel src 8.8.8.8/32 dst 192.168.2.0/24 dir out priority 185664 tmpl src 8.8.8.8 dst 4.4.4.4 proto esp reqid 1 mode tunnel src 0.0.0.0/0 dst 0.0.0.0/0 socket in priority 0 src 0.0.0.0/0 dst 0.0.0.0/0 socket out priority 0 src 0.0.0.0/0 dst 0.0.0.0/0 socket in priority 0 src 0.0.0.0/0 dst 0.0.0.0/0 socket out priority 0 src ::/0 dst ::/0 socket in priority 0 src ::/0 dst ::/0 socket out priority 0 src ::/0 dst ::/0 socket in priority 0 src ::/0 dst ::/0 socket out priority 0
When using the above method, I can access 192.168.2.0 but no longer 192.168.1.0 Regardless, the xfrm policy is the same, and i can only access 192.168.2.0/24
I've tried generating traffic to the subnets without success. Can anyone help determine why I can only access ONE remote subnet on the right side?
After upgrading our development team to Windows 10 from 7, we are experiencing an issue with the ARP cache where a machine has the correct IP-MAC mapping cached, but the type is invalid due to failed connections during a power cycling of the target machine. On Windows 10, but not Windows 7, the target machine cannot be connected to until the ARP cache is cleared. I can have reproduce the issue as follows, where 10.10.10.10 is the correct IP address and 01:23:45:67:89:AB is the correct MAC address of the target machine in question:
Start with the target machine powered off, and ping it through the entire test:
ping -t 10.10.10.10
Ping is replying with "Request timed out" and the ARP cache contains, as expected
10.10.10.10 00:00:00:00:00:00 invalid
Power on the target machine. Ping starts getting replies, and the ARP cache updates to
10.10.10.10 01:23:45:67:89:AB dynamic
So far so good.
Power off target machine. Ping starts reporting "Request timed out" and the ARP cache remains
10.10.10.10 01:23:45:67:89:AB dynamic
After about 40 seconds, the ping replies with "Destination host unreachable" for one request, then returns to reporting "Request timed out", and the ARP cache changes to
10.10.10.10 01:23:45:67:89:AB invalid
Power on the target machine, and ping (and any other connection) will not find it until you clear ARP cache, or at least delete the offending entry with the correct IP-MAC mapping with invalid type.
How do I prevent the ARP cache from getting into this state, given that the target machine in the development environment does tend to require power cycling during the development process? Manually manipulating the ARP cache is not sustainable, and nobody reported this issue before moving to Windows 10.
Windows 7 functions as one would expect, which is to say, what we desire: The ARP cache goes through the same stages as above. Ping starts by replying "Destination host unreachable" before the target is powered on, as opposed to Windows 10's "Request timed out" and returns to "Destination host unreachable" continually after it is powered off, as opposed to Windows 10 only reporting that once. When the machine is powered on, the connection is immediately established and the ARP cache returns to
10.10.10.10 01:23:45:67:89:AB dynamic
without any need to clear any entries first.
The developers' specific setup is a Windows workstation connected to several Beaglebone Blacks (small ARM based embedded boards running Linux) through a simple unmanaged 8 port gigabit switch. IP addresses are assigned by reserved DHCP, and addresses are picked up successfully each time the Beaglebones are powered on. When one Windows 10 machine has the invalid ARP entry that needs deleting, other machines without the Beaglebone in the ARP cache can successfully connect to the target machine.
In Exchange Online (Office 365), I need to extract emails, from particular sending addresses, from a handful of user mailboxes, to another user mailbox folder.
There is an application in a multi-user environment that can only be open in one session on a workstation. The users move around frequently from PC to PC, leaving the application open, and the workstation locked. Disabling user switching is determinant to productivity. I need the system to force logoff any user besides the Consul session. The session ID is a variable that cannot be predicted. This is what I got so far...
@ echo off query session > c:\users\session.txt powershell -Command "Get-Content c:\users\session.txt | Where-Object {$_ -notmatch 'console'} | Set-Content c:\users\session2.txt" for /f "skip=2 tokens=2," %i in (c:\users\session2.txt) DO C:\Windows\System32\logoff.exe %i
The goal is to put this into a .bat to run at user logon so whoever is ACTUALLY using the computer can use the applicaton. Dataloss of the inactive session is no concern. Ideally, rdp-tcp and services would stay active sessions as well.
I am configuring some server on Ubuntu Server 14.04 (no GUI) and I am have the following configuration:
auto lo iface lo inet loopback ## Management network eth0 auto eth0 iface eth0 inet static address 10.0.0.11 netmask 255.255.255.0 gateway 10.0.0.1 dns-nameservers 8.8.8.8 8.8.4.4
Unfortunately, when using this configuration I can only access the LAN, any attempt to ping or access anything outside of our network fails.
If I use DHCP and just take what ever IP address the router gives me, I can access internal and external networks. For testing sake I've been attempting to use "ping google.com" to test outside connectivity.
One other note, in the router if I bind the IP to the MAC Address it appears to work just fine, but I don't want these rules to live in my router, I'd much rather they be configured on the server.
I have a problem with a RAID 10, I have 4 disks on raid. A disc has just been changed (0,3). But I can not rebuild the array. Logical device are setted as "Missing".
All commands return to me the following error
/usr/StorMan# /usr/StorMan/arcconf setstate 1 device 0 3 rdyControllers found: 1 The device specified does not exist. Command aborted.
/usr/StorMan# /usr/StorMan/arcconf getconfig 1 Controllers found: 1 ---------------------------------------------------------------------- Controller information ---------------------------------------------------------------------- Controller Status : Optimal Channel description : SAS/SATA Controller Model : Adaptec 2405 Controller Serial Number : 2D2711FE327 Physical Slot : 16 Temperature : 68 C/ 154 F (Normal) Installed memory : 128 MB Copyback : Disabled Background consistency check : Disabled Automatic Failover : Enabled Global task priority : High Performance Mode : Default/Dynamic Stayawake period : Disabled Spinup limit internal drives : 0 Spinup limit external drives : 0 Defunct disk drive count : 0 Logical devices/Failed/Degraded : 1/0/1 SSDs assigned to MaxIQ Cache pool : 0 Maximum SSDs allowed in MaxIQ Cache pool : 8 MaxIQ Read Cache Pool Size : 0.000 GB MaxIQ cache fetch rate : 0 MaxIQ Cache Read, Write Balance Factor : 3,1 NCQ status : Enabled Statistics data collection mode : Enabled -------------------------------------------------------- Controller Version Information -------------------------------------------------------- BIOS : 5.2-0 (18937) Firmware : 5.2-0 (18937) Driver : 1.1-7 (28000) Boot Flash : 5.2-0 (18937) ---------------------------------------------------------------------- Logical device information ---------------------------------------------------------------------- Logical device number 0 Logical device name : RAID level : 10 Status of logical device : Degraded Size : 3809270 MB Stripe-unit size : 256 KB Read-cache mode : Enabled MaxIQ preferred cache setting : Enabled MaxIQ cache setting : Disabled Write-cache mode : Enabled (write-back) Write-cache setting : Enabled (write-back) Partitioned : Yes Protected by Hot-Spare : No Bootable : Yes Failed stripes : Yes Power settings : Disabled -------------------------------------------------------- Logical device segment information -------------------------------------------------------- Group 0, Segment 0 : Present (0,1) W1F20KQ9 Group 0, Segment 1 : Present (0,0) Z34063KS Group 1, Segment 0 : Present (0,2) W1E2PW1C Group 1, Segment 1 : Missing ---------------------------------------------------------------------- Physical Device information ---------------------------------------------------------------------- Device #0 Device is a Hard drive State : Online Supported : Yes Transfer Speed : SATA 3.0 Gb/s Reported Channel,Device(T:L) : 0,0(0:0) Reported Location : Connector 0, Device 0 Vendor : Model : ST2000DM001-1CH1 Firmware : CC24 Serial number : Z34063KS Size : 1907729 MB Write Cache : Enabled (write-back) FRU : None S.M.A.R.T. : No S.M.A.R.T. warnings : 0 Power State : Full rpm Supported Power States : Full rpm,Powered off,Reduced rpm SSD : No MaxIQ Cache Capable : No MaxIQ Cache Assigned : No NCQ status : Enabled Device #1 Device is a Hard drive State : Online Supported : Yes Transfer Speed : SATA 3.0 Gb/s Reported Channel,Device(T:L) : 0,1(1:0) Reported Location : Connector 0, Device 1 Vendor : Model : ST2000DM001-1CH1 Firmware : CC24 Serial number : W1F20KQ9 Size : 1907729 MB Write Cache : Enabled (write-back) FRU : None S.M.A.R.T. : No S.M.A.R.T. warnings : 0 Power State : Full rpm Supported Power States : Full rpm,Powered off,Reduced rpm SSD : No MaxIQ Cache Capable : No MaxIQ Cache Assigned : No NCQ status : Enabled Device #2 Device is a Hard drive State : Online Supported : Yes Transfer Speed : SATA 3.0 Gb/s Reported Channel,Device(T:L) : 0,2(2:0) Reported Location : Connector 0, Device 2 Vendor : Model : ST2000DM001-1CH1 Firmware : CC24 Serial number : W1E2PW1C Size : 1907729 MB Write Cache : Enabled (write-back) FRU : None S.M.A.R.T. : No S.M.A.R.T. warnings : 0 Power State : Full rpm Supported Power States : Full rpm,Powered off,Reduced rpm SSD : No MaxIQ Cache Capable : No MaxIQ Cache Assigned : No NCQ status : Enabled
Without restart or modification of config, nginx is sending incomplete responses sometimes. Today, I could reproduce well, but still don't know what's wrong or how to fix.
I put a 5MB file to the site's location/alias path that nginx is configured to use. There is no php5-fpm, modules etc. only nginx for serving static files.
When testing, there is no other user accessing the server, no http access except my test requests.
The download fails and Google Chrome shows in traffic log, that there were 2 requests, although I put the http url for the download only ONCE and there was no redirect or other 2nd request initiated by myself.
Same issue at server's access.log, too:
TEST1
[14/May/2014:14:06:53 +0200] "GET /dev/test_test.m4v HTTP/1.1" 206 1 "-" "Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/32.0.1700.107 Safari/537.36"
[14/May/2014:14:06:53 +0200] "GET /dev/test_test.m4v HTTP/1.1" 200 130680 "-" "Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/32.0.1700.10
[14/May/2014:14:07:15 +0200] "GET /dev/test_test.m4v HTTP/1.1" 206 1 "-" "Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/32.0.1700.107 Safari/537.36"
[14/May/2014:14:07:15 +0200] "GET /dev/test_test.m4v HTTP/1.1" 200 114684 "-" "Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/32.0.1700.10
You can see that theere is always one request with response size=1 and another one with mixed size, but >1. However, the result in the browser is always the same. => broken response, failed download.
For making sure, it's not related to http status/response 206, I add max_ranges 0; to the config and retry -> test2.
TEST2
[14/May/2014:14:11:36 +0200] "GET /dev/test_test.m4v HTTP/1.1" 200 152460 "-" "Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/32.0.1700.107 Safari/537.36"
[14/May/2014:14:11:38 +0200] "GET /dev/test_test.m4v HTTP/1.1" 200 142296 "-" "Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/32.0.1700.107 Safari/537.36"
Same result in the browser. Always failed download/request and the size in access.log is always different, like random chunk or response size.
server status: iowait, RAM, cpu are almost idle. There is no high load or limitation.
Is this a known issue or bug or do You know how to fix this?
I am running a server with linux software raid 10. It is a dual CPU system with 64GB Ram. 2x16GB dimms related to each of the CPUs. I want to use dd to backup kvm virtual machines and run into a serious io problem. First I thought is related to the raid but it's a problem of the linux memory management. Here is an example:
Does anybody have a solution or a configuration hint? Here is also my sysctl but all values are centos defaults: http://i.stack.imgur.com/ZQBNG.jpg
Edit1
I make a other test and make a dd to disk instead /dev/null. This time also in one command without pv. So its only one process. dd if=/dev/vg_main_vms/AppServer_System of=AppServer_System bs=4M
And again I can manually resolve temporary the problem and force dropping the cache: sync; echo 3 > /proc/sys/vm/drop_caches. After that the same game starts again...
Edit2
For the local dd I can workaround with the parameter iflag=direct and oflag=direct. But this is no universal solution because there is also other file access like copy files to the local samba shares from a vm and there I cant use such parameters. There must be a tweak of the system file cache rules, because it cant be normal that you cant copy large files without such problems.
Checked only apache was listening to port 443 with lsof
Check locally and from my own PC with telnet if I could connect to 443 (to the IP of the server, not domain; trying to connect to my-site.com:443 gave me connect failed)
However, when I try to browse to https://my-site.com (obviouslly not the real domain), I get a 'Connection Refused' error. This is what Apache logs:
[Sat Jul 20 22:50:34 2013] [info] Loading certificate & private key of SSL-aware server [Sat Jul 20 22:50:34 2013] [info] Configuring server for SSL protocol [Sat Jul 20 22:50:34 2013] [info] RSA server certificate enables Server Gated Cryptography (SGC) [Sat Jul 20 22:50:34 2013] [info] [client ::1] Connection to child 0 established (server my-site.com:443) [Sat Jul 20 22:50:34 2013] [info] Seeding PRNG with 656 bytes of entropy [Sat Jul 20 22:50:34 2013] [info] [client ::1] SSL library error 1 in handshake (server my-site:443) [Sat Jul 20 22:50:34 2013] [info] SSL Library Error: 336027900 error:140760FC:SSL routines:SSL23_GET_CLIENT_HELLO:unknown protocol speaking not SSL to HTTPS port!? [Sat Jul 20 22:50:34 2013] [info] [client ::1] Connection closed to child 0 with abortive shutdown (server my-site:443)
I found many complains with same error but for different packages. However, i couldn't understand essence of this error and how to fix it. Pls. help if you have any clue about it.
It appeared first when i tried to install rsyslog.
# dpkg --configure -a Setting up rsyslog (4.6.4-2) ... insserv: warning: script 'K02ossec' missing LSB tags and overrides insserv: warning: script 'K02drwebd' missing LSB tags and overrides insserv: warning: script 'drwebd' missing LSB tags and overrides insserv: script ctasd_initd: service Parallels already provided! insserv: script ctasd_initd: service Premium already provided! insserv: script ctasd_initd: service Outgoing already provided! insserv: script ctasd_initd: service Antispam already provided! insserv: warning: script 'ctmilter_initd' missing LSB tags and overrides insserv: warning: script 'ossec' missing LSB tags and overrides insserv: There is a loop between service munin-node and ctmilter_initd if stopped insserv: loop involving service ctmilter_initd at depth 2 insserv: loop involving service munin-node at depth 1 insserv: Stopping ctmilter_initd depends on munin-node and therefore on system facility `$all' which can not be true! insserv: exiting now without changing boot order! update-rc.d: error: insserv rejected the script header dpkg: error processing rsyslog (--configure): subprocess installed post-installation script returned error exit status 1 Errors were encountered while processing: rsyslog
Posted this on stackoverflow but it seems more relevant over here... I'm doing some load testing (using jMeter) on a PHP app (it's a symfony app, if that matters). I've tested it under both apache/mod_php and nginx/php_fpm setups, and with multiple versions of php, apache, nginx, and linux and the logs are full of errors like these. I'm struggling to work out why these segfaults are occurring:
[Wed Mar 13 00:54:47 2013] [notice] child pid 18830 exit signal Bus error (7), possible coredump in /tmp/apache2-gdb-dump
[Wed Mar 13 00:54:55 2013] [notice] child pid 19016 exit signal Bus error (7), possible coredump in /tmp/apache2-gdb-dump
[Wed Mar 13 00:54:56 2013] [notice] child pid 19002 exit signal Bus error (7), possible coredump in /tmp/apache2-gdb-dump
[Wed Mar 13 00:54:58 2013] [notice] child pid 19041 exit signal Bus error (7), possible coredump in /tmp/apache2-gdb-dump
When I generate a backtrace from the core dumps I get
[New LWP 588] [Thread debugging using libthread_db enabled] Using host libthread_db library
"/lib/i386-linux-gnu/tls/i686/nosegneg/libthread_db.so.1". Core was generated by `/usr/sbin/apache2 -k start'. Program terminated with signal 7, Bus error.
0 lex_scan (zendlval=0xb6d2ce38) at /build/buildd/php5-5.4.6/Zend/zend_language_scanner.c:2260
Thread 1 (Thread 0xb7485700 (LWP 588)):
0 lex_scan (zendlval=0xb6d2ce38) at /build/buildd/php5-5.4.6/Zend/zend_language_scanner.c:2260
So perhaps it's something to do with parsing? I know little about php internals however, so am uncertain. What might be causing this?
I have a server handling several services. For the purposes of this questions, suppose one of them is mail. If mail goes down, I want to forward it to another host. My network looks like this:
So... Incoming requests are coming to the 192.168.1.5 address on eth1 on box 1. Instead of stopping there, I want to forward them over eth0 to box 2 and let that handle it.
I'm ssh'ing from my OSX laptop to an OSX server. It worked a couple of days ago. Now, when I try and connect, no text is output. My session (with -v option) looks like:
So it looks to me like I've connected, but something is wrong with the shell - it hasn't started up, or something. Could I have broken my .bash_profile? Are there other common causes of this behaviour?
I don't have root access on this box, and I'd like to be able to give the sysadmins specific things to check for if possible.
EDIT: It's actually an OSX server, not RHEL. (Confusion as it hosts a RHEL VM which I also often connect to.)
I have been sent some server logs:
... Jan 19 11:30:09 myserver sshd[2545]: in pam_sm_authenticate(): Kerberos 5 error Jan 19 11:30:09 myserver sshd[2545]: in pam_sm_authenticate(): Kerberos 5 refuses you Jan 19 11:30:09 myserver sshd[2541]: Accepted keyboard-interactive/pam for stevebennett from xx.xx.xx.xx port 65411 ssh2 Jan 19 11:30:09 myserver com.apple.SecurityServer[39]: Session 0x2114691 created Jan 19 11:30:09 myserver com.apple.SecurityServer[39]: Session 0x2114691 attributes 0x20
I'm having some trouble restarting IIS, and I took a look and see that the IIS Admin Service is in the "Starting" status. I'm not able to Start/Stop it manually. All of the context menu options for this are disabled. Any ideas?
My system settings are:
IIS7 on Windows 7 I have the following ISAPI/CGI Restrictions: ASP.NET v2.0.50727 x32/x64 ASP.NET v4.0.30319 x32/x64
I have this menu starting my laptop. As you can see, I have multiple entries for CentOS 8. But, I want to set like default, my Windows Boot Manager (on /dev/nvme01p1) entry…
I'm a new user to Linux Mint and I've had issues with the graphic driver. I updated the kernel to 5.8 which solves the problem of adjusting the brightness or being able to wake up from suspend. But now my new problem is that after waking up from suspend, the computer automatically restarts just in a few minutes. Can anyone suggest what I should do? Thanks!
while read subject; do pathproc=/projects/guo_lab/cbis/users/yang/DICA_result echo ${pathproc}/${subject}"_"weight done < /projects/guo_lab/cbis/users/yang/Fulllist_tractography.txt
I have SoftRAID setup on CentOS on my NVMe Drive (2x1TB) . Issue is I only provisioned 80GB and I now want to provision more for additional space. Can someone please help me do this. Here is output of lsblk https://pastebin.com/6jjvqD9d
Server hang while rebooting Getting below error, what is the issue? Environment is RHEL 5.4
umount2: device or resource busy umount: /usr : device is busy umount2: device or resource busy umount: /tmp : device is busy umount2: device or resource busy umount: /tmp : device is busy [FAILED] nfs: server xx.xxx.xx.xxx not responding, still trying nfs: server xx.xxx.xx.xxx not responding, still trying nfs: server xx.xxx.xx.xxx not responding, still trying nfs: server xx.xxx.xx.xxx not responding, still trying nfs: server xx.xxx.xx.xxx not responding, still trying nfs: server xx.xxx.xx.xxx not responding, still trying nfs: server xx.xxx.xx.xxx not responding, still trying
I'm on a linux environment and I'm trying to send a broadcast to my loopback. I wanted to enable broadcast for my loopback interface but I can't see to get it to show on ifconfig.
eth0 displays UP BROADCAST MULTICAST where as lo displays UP LOOPBACK RUNNING how does one enable broadcast on the loopback interface. I imagine broadcast on loopback would be using address 127.255.255.255?
Linux kernel sources are full of quirks to support multiple architectures and scenarios. This means I cannot simply copy all *.h files and use a gcc -S -save-temps trick or anything similar to get preprocessed headers.
I was wondering how can I export full full kernel-space headers from the source tree properly?
make headers_install ARCH=i386 INSTALL_HDR_PATH=... builds only user-space/API headers. This will skip for example nameidata struct
make deb-pkg builds the kernel binary AND kernel headers (I cannot build the binary for unrelated reasons)
Hello I have a question about LUKS encryption. I have used LUKS to encrypt a disk on my server but when I create a file and add content to it, and cat the file, the content is still in plain text. Even when I create a backup of the file, and put it on the non-encrypted hard drive, the data is in plain text. I'm not sure how I can say that encryption is happening. Am I missing something? Is this how LUKS is supposed to work?
/dev/sdb: UUID="d7f667ed-50a4-4324-8708-6720d390bfd2" TYPE="crypto_LUKS" [root@host1 ~]# cat /opt/my_encrypted_backup/test12 This is a test [root@host1 ~]# clear [root@host1 ~]# lsblk NAME MAJ:MIN RM SIZE RO TYPE MOUNTPOINT sda 8:0 0 8G 0 disk ├─sda1 8:1 0 1G 0 part /boot └─sda2 8:2 0 7G 0 part ├─centos-root 253:0 0 6.2G 0 lvm / └─centos-swap 253:1 0 820M 0 lvm [SWAP] sdb 8:16 0 1G 0 disk └─mybackup 253:2 0 1022M 0 crypt /opt/my_encrypted_backup sr0 11:0 1 1024M 0 rom [root@host1 ~]# [root@host1 ~]# [root@host1 ~]# blkid /dev/sdb /dev/sdb: UUID="d7f667ed-50a4-4324-8708-6720d390bfd2" TYPE="crypto_LUKS" [root@host1 ~]# [root@host1 ~]# [root@host1 ~]# cat /opt/my_encrypted_backup/test12 This is a test [root@host1 ~]# cp /opt/my_encrypted_backup/test12 / [root@host1 ~]# cat /test12 This is a test [root@host1 ~]#
I've been having issues with my eth miner, nsfminer, crashing on me when I leave it on at night. Sometimes this occurs after 2-8 hours of mining, while sometimes it doesn't occur at all. It usually exits with a message that I can't recall off the top of my head. I did some searching on my own and threw together a bash script using an until loop and was wondering if this should work in theory. Usually I would just test it on my own because that's the best way to learn, but considering I may have to wait 8 hours for a crash or it may not even crash at all for several days, I'd like to know if this script will work before I potentially lose $5-10 of profit. It seems to work just fine when I run it, but I don't know if the autorespawn works as I've yet to leave it running for long enough to see if it crashes.
until echo PASSWORD | sudo -S ./nsfminer --cu-block 256 --cu-streams 4 -P stratum+tcp://USERNAME:PWDARGS@domain:PORT; do echo "nsfminer crashed with exit code $?" >&2 sleep 1 done
I understand the security implications involved in passing a root password via a bash script, but it's the only way to get the miner to work as it requires root privileges and I have the system partitioned in a way that the installation I use for crypto mining only has mining stuff and i3 installed on it and doesn't have any passwords stored in plaintext in any files. It's otherwise a minimal ubuntu install with most of the applications stripped away. I intend in the future to perhaps go the debian stable route, or maybe start from ubuntu server which I have tried before but I just haven't had the time to get everything working with nvidia drivers being a pain and all. Thanks for any help from anyone more knowledgeable than me.
I think on most systems the network forwarding is disabled by default - so the computer cannot act as a router. I wonder, how then does networking inside of the computer work? A few examples:
hosting a website locally - when we host the site locally and try to access it locally, we have to send an HTTP request - this request needs to be forwarded back to lo interface
virtualization - virtual machines add additional virtual adapters to the computer. It is possible to communicate between various NICs - isn't that also forwarding?
What is then really disabled when network forwarding is disabled in the system?
I'm new to Linux OS distributions and I came up with a question when I had to update my Visual Studio Code today. I've searched for some solutions to update it through my terminal and every solution involved applying the command sudo apt install code. So here is my question, if I already have the application installed I can simply "install it again"?
I feel like this is a really easy question, and when I Google, I find lots of answers for part of the problem, but when I try to put them together, it doesn't work and I can't figure out why.
Here's the scenario:
I have a file with a lot of text in it.
One of those lines matches this pattern: foo = 1700;
I want to extract 1700
I want to save it into a bash script variable so I can refer to it later in the script.
I cannot get past step 3. Here's what I've tried:
sed -nE 's/^foo = //p' file | sed -nE 's/;//p'
This prints out:
1700
Great, but what if I need to trim white space or something? If I can't use */+, I wouldn't know how to do that. I learned that you can't use */+ in a substitution on another answer, so I can't figure out how to do this. I looked into the man page of grep, and I didn't see any option for groups when I search for that word. I think I know how to solve this in awk, but I've always found its regex functions to be a little clunky and for the commandline scripts to require too many escapes, so ideally that's not the only way to solve this.
Obviously something wrong!!! The /efi/EFI/centos/grubenv file does not exist and /boot/grub2/grubenv seems that is malformed.
According to this link https://bugzilla.redhat.com/show_bug.cgi?id=1435435 The physical file must be located in /efi/EFI/centos/grubenv and a symlink /boot/grub2/grubenv should be pointing to /efi/EFI/centos/grubenv.
How can I create the /efi/EFI/centos/grubenv file, without editing it directly?
And
[root@centos /]# awk -F\' '/^menuentry/ {print $2}' /boot/grub2/grub.cfg Windows Boot Manager (on /dev/nvme0n1p1) System setup [root@centos /]# [root@centos /]# awk -F\' '/^menuentry/ {print $2}' /boot/efi/EFI/centos/grub.cfg Windows Boot Manager (on /dev/nvme0n1p1) System setup [root@centos /]# [root@centos /]# grub2-mkconfig -o /boot/grub2/grub.cfg.bck Generating grub configuration file ... Found Windows Boot Manager on /dev/nvme0n1p1@/EFI/Microsoft/Boot/bootmgfw.efi Adding boot menu entry for EFI firmware configuration done [root@centos /]# [root@centos /]# awk -F\' '/^menuentry/ {print $2}' /boot/grub2/grub.cfg.bck Windows Boot Manager (on /dev/nvme0n1p1) System setup [root@centos /]#
Why are the Linux entries not appearing? I follow this link
I was trying to change the default with # grubby --args amd_iommu=on --update-kernel=/boot/vmlinuz-$(uname -r) and with grubby --args amd_iommu=on --update-kernel 2 But it does not work (using # grubby --info DEFAULT)!
I'm setting up a cron job to suspend and wake a server at certian times.
I'm using two commands. One to be run from mondays to thursdays:
rtcwake -m mem -t $(date +%s -d "08:00")
And another one to be run on fridays:
rtcwake -m mem -t $(date +%s -d "monday 08:00")
I wonder if it's possible to make this separation unnecessary. If date could understand a statement like next weekday 08:00, it'd simplify things a lot.
I wasn't able to find if this is actually possible or what syntax should I use.
I basically want to avoid my server waking up on saturdays and sundays.
QEMU allows to connect different VMs by using a virtual network based on a common multicast address by specifying -netdev socket,mcast=230.0.0.1:1234 on startup.
This way I can easily connect multiple VMs and join new VMs on the fly.
Is it possible to join that network without using QEMU? Especially is it possible to connect a docker container to that network?
I'm using two different pem keys and users. I would think this command would work but I get this error in the debug log. Here is more to it and only show the portion that is erroring. It connects to ec2-user@1.0.0.1 successfully. But errors on the 1.0.0.2:
debug1: connect_next: host 1.0.0.2 ([1.0.0.2]:22) in progress, fd=7 debug1: channel 1: new [127.0.0.1] debug1: confirm forwarded-tcpip debug1: channel 1: connected to 1.0.0.2 port 22 Host key verification failed. debug1: client_input_channel_req: channel 0 rtype exit-status reply 0 debug1: client_input_channel_req: channel 0 rtype eow@openssh.com reply 0 rsync: connection unexpectedly closed (0 bytes received so far) [sender] rsync error: error in rsync protocol data stream (code 12) at io.c(600) [sender=3.0.6] debug1: channel 0: free: client-session, nchannels 2 debug1: channel 1: free: 127.0.0.1, nchannels 1 Transferred: sent 5296, received 4736 bytes, in 0.9 seconds Bytes per second: sent 5901.2, received 5277.2 debug1: Exit status 12
i am using i3wm and guake. I always use tmux inside guake to have split functionality detach function etc is there a way to start guake by default tmux running ?
I am trying to set up a postfix configuration where (virtual) users are allowed to only send with "From:"-addresses they own. So I put reject_authenticated_sender_login_mismatch into smtpd_sender_restrictions.
Using
query = SELECT goto FROM alias WHERE address='%s' and active=1;
in my sender_login_maps.cf I can send mails with any sender address I want, even something like madeup@not_my_domain.com.
SELECT goto FROM alias WHERE address='notinthedatabaseforsure' and active=1;
I am not able to send any mails at all. So far so good. But the log says
postfix/smtps/smtpd[11683]: NOQUEUE: reject: RCPT from...: 553 5.7.1 <user@domain.com>: Sender address rejected: not owned by user user@domain.com; from=<user@domain.com> to=<user2@domain.com> proto=ESMTP helo=<[192.168.2.103]>
even if I try to send from madeup@not_my_domain.com. user@domain.com is the login name, user2@domain.com the recipient.
In a proper setup i would expect something like
postfix/smtps/smtpd[11683]: NOQUEUE: reject: RCPT from ...: 553 5.7.1 <madeup@not_my_domain.com>: Sender address rejected: not owned by user user@domain.com; from=<madeup@not_my_domain.com> to=<user2@domain.com> proto=ESMTP helo=<[192.168.2.103]>
So it looks like postfix uses the login name to search for the login name regardless of the sender address, which explains why I can send with any sender address using the query I mentioned first.
Update: I checked my sql logs and indeed, the MySQL server never sees madeup@not_my_domain.com. It only gets queries for the login address and the recipient address user2@domain.com.
Here are the smtps part from master.cf and my main.cf:
Our Linux setup doesn't have keygen configured for password less authentication. Hence I am supposed to use only EXPECT for password less authentication in a shell script.
After some research, I didn't find any solutions. So I post here.
My goal: redirected the HTTPs traffic from my custom program to BurpSuite in order to analyse the server response and debug my program.
I have Debian 4.4.3
I have two network interfaces : eth0 and tap0, I work on tap0.
I have a php program that just send an HTTPS request to a local server (tap0). My php code use CURL to send the request (curl_init(), curl_setopt() etc.)
In a debugging goal, I have thought to send my flows via BurpSuite in order to see the HTTPS requests. So:
I launch Burp that listen on all interfaces port 8080
I configure /etc/proxychains.conf and in my ProxyList there are:
I am running kali with virtualbox and my wifi receiver is a usb adapter which is Asus N10 Nano. I made the settings on virtualbox for making the vb recognize my usb wifi adapter. It works but after like 5min my internet drops. Especially during the updates. I figured it out its because the "Wifi Power Save" option is on. I turned it off and tried again. When i turned it off my wifi turned off at the same time. I tried to turn my wifi on but the Wifi Power Save option turned on itself automatically. The usb icon on bottom is like red-green. It needs to be blinking green to work correctly. If i can turn off the Wifi Power Save mod permamently hopefully its gonna be blinking green. I searched for it, I did almost everything like creating directory as /etc/pm/power.d/wireless and editing the file wireless by these commands:
#!/bin/sh /sbin/iwconfig wlan0 power off
Then i gave the permission -x for it. It didnt work. Sorry if I had mistake while I was writing this. Thanks for helping!
lspci output:
00:00.0 Host bridge: Intel Corporation 440FX - 82441FX PMC [Natoma] (rev 02) 00:01.0 ISA bridge: Intel Corporation 82371SB PIIX3 ISA [Natoma/Triton II] 00:01.1 IDE interface: Intel Corporation 82371AB/EB/MB PIIX4 IDE (rev 01) 00:02.0 VGA compatible controller: InnoTek Systemberatung GmbH VirtualBox Graphics Adapter 00:04.0 System peripheral: InnoTek Systemberatung GmbH VirtualBox Guest Service 00:05.0 Multimedia audio controller: Intel Corporation 82801AA AC'97 Audio Controller (rev 01) 00:06.0 USB controller: Apple Inc. KeyLargo/Intrepid USB 00:07.0 Bridge: Intel Corporation 82371AB/EB/MB PIIX4 ACPI (rev 08) 00:0d.0 SATA controller: Intel Corporation 82801HM/HEM (ICH8M/ICH8M-E) SATA Controller [AHCI mode] (rev 02)
It didn't work. In the end sudo depmod rtl8192cu output was: depmod: FATAL: rtl8192cu: not absolute path.
Whenever I have to execute a shell script from the web curl -s [url] | sh, I first open url in my web browser to make sure the script isn't malicious and is safe to run.
I remember seeing a command line trick that made it was possible to read the script from the command line and then confirm execution after reading the script. If I recall correctly, it looked something like curl -s [url] | something...here | sh and didn't require any software install.
Construct an example of a Banach $*$-algebra $\mathcal A$ such that for all $t\in [0,1]$, there exists a character $\chi$ on $\mathcal A$ such that $\|\chi\|=t$.
Find example of a non unital Banach $*$-algebra which has a closed two sided ideals, which is not closed under scalar multiplication. (such example does not exists in a $C^*$-algebra because $C^*$-algebra has approximate identity)
Find example (if possible) of a unital Banach $*$-algebra with a closed two sided ideals, but is not self adjoint.
Example of a unital Banach $*$-algebra $\mathcal A$ with a normal element $a$ such that there does not exists unital $*$-homomorphism from $C(\sigma(a))$ to $\mathcal A$ such that identity map goes to $a$.
These are not homework problems. Such examples don't exists for a $C^*$-algebra and I am unable to prove these in a Banach $*$-algebra.
I have a bag containing $20$ red balls and $16$ blue balls. I uniformly randomly take balls out from the bag without replacement until all balls of both colors have been removed. If the probability that the last ball I took was red can be represented as $\frac{p}{q}$, where $p$ and $q$ are coprime positive integers. Find $p+q$
My solution: as the last ball is red, that means we have drawn $19$ red balls and $16$ blue balls so far. The total no of ways of doing it is $35 \choose19$. Now total no of ways of drawing all the balls is $36 \choose 20$. The probability is
$$\frac{35\choose19}{36\choose20}=\frac{5}{9}$$ But the answer is $\frac{4}{9}$. Can you please correct my solution?
I'm reading the section 11.1 in Serre's Linear Representations of Finite Groups.
My question is about the existence of $\varphi$ in the remark. If $\varphi$ is the function mentioned in the remark, then $\varphi=\sum\limits_{H\in X}\varphi Ind_H^G f_H=\sum\limits_{H\in X}Ind_H^G (f_H Res_H^G\varphi)=\sum\limits_{H\in X}Ind_H^G (f_H \varphi_H)$. Thus we can construct $\varphi$ as $\sum\limits_{H\in X}Ind_H^G (f_H \varphi_H)$. But how to see that the constructed $\varphi$ satisfy that $Res_H^G \varphi=\varphi_H$? I tried direct computation, but I got nowhere. Since Serre didn't give a proof, I guess the result should be obvious. Maybe I'm missing something.
Consider the Ising model on an $L \times L$ lattice with periodic boundary conditions in the east/west directions and with spins on the north boundary fixed as $+1$ and the spins on the south boundary fixed as $-1$. Then, if you fix a cold temperature $T < T_c$, as $L \to \infty$ you expect that the domain wall between the $+1$ spin cluster on the top and the $-1$ spin cluster on the bottom approaches a flat line (dimension 1), and exactly at $T = T_c$ you expect there to be some nontrivial behaviour, where you end up with the domain wall being some fractal dimension between $1$ and $2$.
This is just intuition I've gleaned from a talk I attended ~2 years ago, but I can't find any references following this line of thought. Are there any places to look to see experiments in this direction? In particular, I'm mainly curious how to rigorously define what the fractal dimension we are measuring at $T = T_c$ is in the thermodynamic limit, and what this number turns out to be.
As an example of how to formalise what I'm talking about, we can consider the box-counting dimension, and simply define the fractal dimension of the domain wall to be: $$\text{dim}_\text{box}(\text{Domain Wall}) = \lim_{\epsilon = \frac{1}{L} \to 0} \frac{\langle\text{Number of sites that the domain wall passes through}\rangle_\text{Gibbs Distribution on L x L lattice}}{\log(1/\epsilon)}$$ There might be other formulations based on the actual thermodynamic limit measure, but this isn't something I'm too familiar with
If $A$ is an $n\times n$ matrix, then ${\rm adj}(A)$ is the the $n\times n$ matrix, whose $(j,i)$-th entry is $(-1)^{i+j}$ times the determinant of a submatrix of $A$ obtained by deleting $i$-th row and $j$-th column. After introduction of ${\rm adj}(A)$, one immediately learns the most important result that $$A{\rm adj}(A)=\det(A)I.$$ Now for proof of this, one way is to proceed with the definition of $\det(A)$ by expansion along any row or column.
Are there any other proofs of this result? I was unable to find in any books.
Definite Integral Properties like $a+b-x$ (which messes up the integral symmetry)
Partial Integration by breaking integral into into $\frac{x}{\sqrt{\left(x^4+x^2+1\right)}}$
Partial Fractions which are very ugly
As per wolframAlpha, a beautiful elementary closed form exists $$ \frac{\sqrt{\left(x^4+x^2+1\right)}}{3}\left(\frac{1}{\sqrt{\left(x^2-x+1\right)}}- \frac{1}{\sqrt{\left(x^2+x+1\right)}}\right) $$
I'll be happy with solution of just definite integral, bonus points if you get closed form solution too.
A meeting has $12$ employees. Given that $8$ of the employees are women, find the probability that all the employees are women?
I just defined the two events $A : 8$ employees are female and $B :$ all employees are female. Thus, we need $P(B|A)=\frac{P(A \cap B)}{P(A)}$.
Now, we know that $P(A \cap B) = P(B)$. So, $P(B)=\frac{1}{2^{12}}$ considering equal probability of male and females. Also, $P(A)={12 \choose 8} \frac{1}{2^{12}}$. On dividing the conditional probability comes out to be $\frac{1}{{12 \choose 8}}$ but it does not match with the answer to this question. Where am I going wrong? Anyone please help!
I am new to Matlab and could use some help. I want to create a d-dimensional box and evaluate a function $f(x) = \sum_i^d x_i$ over the grid. I am encountering some issues while coding I did some reading and experimentation using $ndgrid$ from Matlab, but I think I am not using it correctly as I get a list and then I cannot evaluate it.
Basically I created $x = linespace(0,1,N)$ then I wanted to create a function that takes the dimension d and x and give me the mesh grid that I can pass to f, and get the function evaluations.
There are two equivalent way to define turning number of a immersed closed curve.
The total signed curvature of the curve dividing $2\pi$.
the number of full rotation of $2\pi$ with respect to the tangent of the curve. See Turning number meaning.
For example, according to wikipedia, we have turning number $3$ for the curve below:
Meanwhile, the turning number of a polygonal closed path is defined to be the total discrete curvature of the path dividing $2\pi$. Namely, $\dfrac{\sum_{i=1}^n(\pi-\alpha_i)}{2\pi}$, where $\alpha_i$ are the "internal angles" of the polygon. Note we define interior angles to be the angles you get when you FOLLOW the polygon (the angle could be on the exterior of the shape). Exterior angles are simply the complement of the interior ones. See Theorem 2.1, p.31.
I think the turning number of a polygonal closed path can also defined to be the number of full rotation of $2\pi$ as walking along the polygon and turning at the vertices.
For example, there are two anticlockwise full rotation of $2\pi$ and one clockwise full rotation of $2\pi$ in the left of the above figure. This gives $2(+1)+(-1)=1$ as the turning number. While there is one anticlockwise full rotation of $2\pi$ in the right of the above figure. This gives $+1$ as the turning number.
But I cannot find any references about this definition/interpretation of the discrete turning number. Did anyone have any book/paper about this interpretation?
I am working on the EMI calculator module as part of the current banking project. I find answers for calculating simple interest, EMI, and even tenure but not able to find a formula to calculate the total amount borrowed. I found the below formula to calculate what I want but that is incorrect
source: Find Loan Amount using parameters ROI and Tenure
Here are the loan details,
Monthly EMI: 32530,
Loan tenure: 5 years,
Interest: 10.90
Total loan amount: ?
What is the formula to find the total loan amount?
What i have tried,
Here is the formula i have taken from the above source,
So I want to write the sum $$\sum_{m=0}^\infty (2m+1)^{-2k-1} \sum_{r=1}^\infty (-1)^{r-1} e^{-2(2m+1)r a} $$ where $a>0$ and $k\in \mathbb{N}$, as a sum over single index which probably uses odd divisors of $(2m+1)\cdot r$.
However, I am quite confused about this method in general. I am trying to learn this concept. If anyone can help me with the logic, it will be highly appreciated.
Generally the normal equation is derived using a calculus-based approach of minimizing the least squares error. I'm trying to learn the linear algebra approach. My understanding so far is as follows:
Consider the standard linear regression problem: $Ab=y$ or $\sum_iA_{(i)}b^i=y$, where $A$ is an $m\times n$ matrix with $m>n$, and $A_{(i)}$ is the $i$-th column of $A$. Assuming $A$ to be full rank, its columns form a basis $C$ of an $n$-dimensional subspace of $\mathbb{R}^m$.
We already know the standard $\mathbb{R}^m$ basis representation of $y$ and we are trying to find its representation in the $C$ basis, such exact representation is possible to find only if $y\in\text{span}(C)$. Most likely $y$ won't lie in $\text{span}(C)$. In that case, the most natural alternative would be to find the $C$-representation of the next best thing - the projection of $y$ in $\text{span}(C)$. In other words, I need to find $$\hat b^i=\frac{\langle y,A_{(i)}\rangle}{\|A_{(i)}\|}$$ Now if only I had a matrix $\tilde A$ whose columns are the normalized versions of the columns of $A$, i.e., $\tilde A_{(i)}=A_{(i)}/\|A_{(i)}\|$, then I can just write $\hat b=\tilde A^Ty$. The question is: is it possible to get $\tilde A$ from multiplication/transpose/inverse operations performed on $A$?
Three spinners are marked with equal amounts of Red, Blue and Yellow. At a particular instance, all three are spun together. What is the probability that at least two of the spinners land on red?
The at least part is confusing me.
My attempt: So if all three lands on red the probability will be: $P(All\space red)=\frac{1}{3}\times\frac{1}{3}\times\frac{1}{3}=\frac{1}{27}$ Having at least two will have a higher probability; two of the spinners should have red and the other can have any colour: $$P(Two\space red\space and\space one\space any)=\frac{1}{3}\times\frac{1}{3}\times\frac{3}{3}=\frac{1}{9}$$
I'm working on a project where I must describe the Tsiolkovsky Rocket Equation in a short amount of time. As such, I will have to use only the vital parts of the equation and its usages.
Now, I have been researching non-stop (!) about the equation for the past week or so, and have a "sort of" grasp on what it entails. However, I am curious about what YOU all think of it. There could easily be vital points which I miss out on, which I would not want to do.
How would you reduce the rocket equation, or describe it, in just one sentence or paragraph?
(And don't worry, this isn't a text-based project. I won't plagiarize your explanations! ^^;)
I'm not sure if I should be asking this here or on the Physics stackexchange. But still, thank you all in advance! Very curious to see a paraphrased explanation of this rather large subject.
I know about the quadratic formula, and the cubic formula, so I was wondering if there were any more. My teacher said there was no such thing as a quintic formula, so I was wondering that if there was no such thing as one, why.
Is the inequality $\sqrt{(2^r + 1)(t + 1)} \leq \min(2^r, t)$ false in general?
I tried asking WolframAlpha for its solutions, it says that no solutions exist.
I also tried asking WolframAlpha for the solutions to the closely related inequality $$\sqrt{(2^r + 1)(t + 1)} \leq \max(2^r, t),$$ it gave the following solutions: $$t \geq \frac{\sqrt{2^{2r} + 3 \times {2^{r+1}} + 5} + 2^r + 1}{2}$$ and $$-1 \leq t \leq \frac{-2^r + 2^{2r} - 1}{2^r + 1}.$$
Note that the first solution is for $t > 2^r$ (and therefore, $\max(2^r, t) = t$), and that the second solution is for $t < 2^r$ (and therefore, $\max(2^r, t) = 2^r$).
Finally, here is the inequality plot for $$\sqrt{(2^r + 1)(t + 1)} \leq \max(2^r, t):$$
$$\lim_{x\to 0} \frac{\sin2x -2\sin x}{x^3}$$ I am getting two values for this limit. Can anybody please share their solution so I can cross check my answers?
I see all your answers and yes, I have tried this method. Here is the other method I was talking about
$\lim_{x\to 0} \frac{\sin2x -2\sin x}{x^3}$ Using the formula $\lim_{x\to 0} \frac{\sin x}{x} = 1$$\lim_{x\to 0} \frac{2}{x^2} - \frac{2}{x^2}$ Which gives the value 0
I'm reading Vakil's note about differential sheaf. Let $\pi:X\rightarrow Y$ be a morphism of schemes. He defines $d:\mathcal O_{X}\rightarrow \Omega_{X/Y}$ as follow.
Let $pr_1:X\times_YX\rightarrow X$ and $pr_2:X\times_YX\rightarrow X$ be projections. Then $d$ on open set $U$ is defined by $df = pr_2^*f - pr_1^*f$.
My question:
I don't understand this definition. I think if $f\in\mathcal O_X(U)$, then $pr_1^*f$ is an element of $\mathcal O_{X\times_YX}(U\times_YX)$. But why $df = pr_2^*f - pr_1^*f$ gives an element in $\Omega_{X/Y}(U)$?
How to see $d$ coincides with the Kahler differential module on affine open set? This is one of his exercises.
I try to compute $\Omega_{X/Y}(U)$ for $U = Spec(A)$. Here is my attempt: $\Omega_{X/Y}(U) = \Delta^*(\mathcal I/\mathcal I^2)(Spec(A)) = (I/I^2)\otimes_{A\otimes A}A$ from the definition of pullback where $I^\sim = \mathcal I$. But it seems like the correct thing is $\Omega_{X/Y}(U) = I/I^2$. What's wrong with my computation?
There are many online calculators for the Clebsch-Gordan coefficients of the complex spherical harmonics, and many text books on quantum mechanics include tables of Clebsch-Gordan coefficients. I wonder about Clebsch-Gordan coefficients for the real spherical harmonics. Can they be related in some way to the coefficients for the complex spherical harmonics? If not, how can they be derived?
I am working on the EMI calculator module as part of the current banking project. I find answers for calculating simple interest, EMI, and even tenure but not able to find a formula to calculate the total amount borrowed. I found the below formula to calculate what I want but that is incorrect
Problem: Let $x > 0$. Prove that $$x^{x^{x^{x^{x^x}}}} \ge \frac12 x^2 + \frac12.$$
Remark 1: The problem was posted on MSE (now closed).
Remark 2: I have a proof (see below). My proof is not nice. For example, we need to prove that $\frac{3x^2 - 3}{x^2 + 4x + 1} + \frac{12}{7} - \frac{24x^{17/12}}{7x^2 + 7} \le 0$ for all $0 < x < 1$ for which my proof is not nice.
I want to know if there are some nice proofs. Also, I want my proof reviewed for its correctness.
Any comments and solutions are welcome and appreciated.
My proof (sketch):
We split into cases:
i) $x \ge 1$:
Clearly, $x^{x^{x^{x^{x^x}}}}\ge x^x$. By Bernoulli's inequality, we have $x^x = (1 + (x - 1))^x \ge 1 + (x - 1)x = x^2 - x + 1 \ge \frac12 x^2 + \frac12$. The inequality is true.
ii) $0 < x < 1$:
It suffices to prove that $$x^{x^{x^{x^x}}}\ln x \ge \ln \frac{x^2 + 1}{2}$$ or $$x^{x^{x^{x^x}}} \le \frac{\ln \frac{x^2 + 1}{2}}{\ln x}$$ or $$x^{x^{x^x}}\ln x \le \ln \frac{\ln \frac{x^2 + 1}{2}}{\ln x}$$ or $$x^{x^{x^x}}\ge \frac{1}{\ln x}\ln \frac{\ln \frac{x^2 + 1}{2}}{\ln x}.$$
It suffices to prove that $$x^{x^{x^x}}\ge \frac{7}{12} \ge \frac{1}{\ln x}\ln \frac{\ln \frac{x^2 + 1}{2}}{\ln x}. \tag{1}$$
First, it is easy to prove that $$x^x \ge \mathrm{e}^{-1/\mathrm{e}} \ge \frac{1}{\ln x}\ln\frac{\ln\frac{7}{12}}{\ln x}.$$ Thus, the left inequality in (1) is true.
Second, let $f(x) = x^{7/12}\ln x - \ln \frac{x^2 + 1}{2}$. We have \begin{align*} f'(x) &= \frac{7}{12x^{5/12}} \left(\ln x + \frac{12}{7} - \frac{24x^{17/12}}{7x^2 + 7}\right)\\ &\le \frac{7}{12x^{5/12}} \left(\frac{3x^2 - 3}{x^2 + 4x + 1} + \frac{12}{7} - \frac{24x^{17/12}}{7x^2 + 7}\right)\\ &\le 0 \tag{2} \end{align*} where we have used $\ln x \le \frac{3x^2 - 3}{x^2 + 4x + 1}$ for all $x$ in $(0, 1]$. Also, $f(1) = 0$. Thus, $f(x) \ge 0$ for all $x$ in $(0, 1)$. Thus, the right inequality in (1) is true. Note: For the inequality $\frac{3x^2 - 3}{x^2 + 4x + 1} + \frac{12}{7} - \frac{24x^{17/12}}{7x^2 + 7} \le 0$ for all $0 < x < 1$, we let $x = y^{12}$ and it suffices to prove that $11y^{47} + \cdots + 3 \ge 0$ (a polynomial of degree $47$, a long expression) for all $0 < y < 1$.
A 100m cliff erodes by 2/7 of its height each year.
(a) What will the height of the cliff be after 10 years?
This is how I worked out the question.
100*(5/7)^10
Which is 3.46m to 2d.p.
However my teacher said that it is wrong (to the whole class and also insulted me a bit >_>) and that I didn't follow this formula.
Tn = ar^(n-1)
And that I should have done
100(5/7)^9
Which is instead 4.84m to 2d.p.
This doesn't make sense because if you used the formula and the question was
What will the height of the cliff be after 1 year?
100(5/7)^(1-1) =100(5/7)^0 =100
That doesn't make sense at all!
Am I right or is the teacher right?
ADDITIONALLY my teacher said his answer is an interpretation of the question. Is his answer a valid interpretation of this question? Or is it just incorrect mathematics?
BTW Also my teacher said my answer has no common sense and that I won't be able to do the HSC well if I keep reading questions wrong.
Can anyone show some hints to this? If $\gcd(a,b)=1$, then $a^{\phi(b)}+b^{\phi(a)}=1 \pmod{ab}$. I know that $a^{\phi(b)}=1 \pmod{b}$, and similarly, $b^{\phi(a)}=1 \pmod{a}$, but then how do I combine the work so that I get the result I need? Thanks!
If $\gcd(a,b) = 1$ and $a,b\mid x$ then $ab\mid x$.
My attempt at answering the question:
\begin{align*} x &\equiv 0 \pmod{a}\\\ &\Longrightarrow x\text{ is divisible by $a$}\\\ &\Longrightarrow x = ma\text{ for some integer $m$}\\\ \ \\\ x &\equiv 0 \pmod{b}\\\ &\Longrightarrow x\text{ is divisible by $b$}\\\ &\Longrightarrow x = mb\text{ for some integer $m$}\\\ \ \\\ x^2 &= (ma)(mb)\\\ x^2 &= (m^2)(ab)\\\ x &= \sqrt{m^2ab}\\\ x &= m\sqrt{a}\sqrt{b} \end{align*} Let $m$ be $k\sqrt{a}\sqrt{b}$. Then \begin{align*} x &= kab\\\ &\Longrightarrow x \equiv 0 \pmod{ab} \end{align*}
Is this correct, if not can someone point me in the right direction?
I've been stuck on this for quite some time and my mind's foggy because of the overthinking.
I would like to check which of these are correct:
If you or your mother need help...
If you or your mother needs help...
If you or your partner is experiencing...
If you or your partner are experiencing...
#1 and #3 sound the most "natural" to me. But according to grammar rules, when "or" is concerned, the verb in the sentence should be singular, as per the last noun. Taking this into consideration, #1 would technically be wrong.
I think the use of "you" is throwing me off. Things seem to be more straightforward when inanimate objects are concerned. For example:
If your laptop or computer shuts down without warning...
If your pillow or mattress is causing discomfort...
What is a word that means using a falsehood which can be used as a means, as a weapon to advocate for and execute something else
The politician claimed that the government budget had a deficit to defend cuts in welfare and local services like libraries and nurseries. However this deficit did not exist so the politician was being ______
Guinness adverts once claimed that guinness is good for you and will help you be alert if you're driving, studying or doing manual labour. This made it marketed as a health drink which then could be an means to sell it in gyms.
Kyle claimed that his bank account was overdrawn and that he didn't want to receive a daily overdraft fee, which then allowed him to borrow £200 which he otherwise would not of been lent the money if he had been honest about his financial situation. This lie made meant he was ________
I'm looking for two words with the following conditions:
Word A is a synonym of "success" (or is the word "success").
Word B is a synonym of "failure" (or is the word "failure").
Words A and B rhyme.
Words A and B are antonyms (note: you can probably ignore this requirement since I'm pretty sure condition 1 & 2 all but guarantee this condition.)
It might be easier to explain with a hypothetical example… imagine the English language contained the word:
Pizaster | Noun
great success
We could then have the solution "Pizaster/Disaster" since they satisfy all 4 conditions: Pizaster means success, disaster means failure, they both rhyme, they are both antonyms.
Unfortunately (or rather fortunately) I can't just add words to the English language like this, so I'm looking for an existing pair of words that actually exist.
If there's nothing that's a perfect synonym for success/failure but still captures the same essence of good/bad, I'll still accept it as an answer. Also the final solution could totally have the word "success" or "failure" in it as well (e.g. if there is already a word which means failure and rhymes with success, then we could have the solution success + this word you're thinking of)
Are "humble" and "humility" from the same root word?
If so, I found it odd that the "b" was dropped from "humility." Not sure if "humbility" looks right either, but was wondering if there's some rule dictating that the "b" would be dropped here in the spelling of "humility."
I'm writing a book, and I'm trying to describe that the girl is making faces as she's trying to remember something. I'm not quite sure how to describe that. (Seen from the point of view of another character in the book.)
So far, I've got this, but I think my sentence doesn't make sense.
She was trying to remember where she'd seen my aunt. She was making faces while thinking, which made her look so cute.
I thought about "grimaces" but that's not it, since grimace is usually in disgust or disapproval.
Recently, I was reading about something related to geography. And then, I came across the word "pockets" which actually refer to some small areas in a larger area.
But can anyone tell me, why is the word "pockets" used when referring to certain sections of places in a large area.
Is there a word for a person (or an attribute to describe a person) who habitually interprets facts and words in such a way that their interpretation proves their argument is correct while others wrong. In other words, a term for a person (or an attribute for a person) who always makes the most self-serving interpretation of the facts to benefit themselves the most.
Example of such person:
Politicians who always interpret facts to prove they are correct and to prove that the opposition are not.
In quarrels (say between two partners, not just legal quarrels, but say between husband and wife), one may keep saying that opposition's interpretations of facts are wrong and provide his / her version of interpretations (interpretations which will comforts him / proves opposition wrong and him / her correct).
The colloquial (and mostly archaic) term "television set" invokes a narrow use of set (noun). Merriam-Webster defines this as:
(22) an apparatus of electronic components assembled so as to function as a unit
(With "television set" being the only example)
The Cambridge Dictionary offers an even more narrow definition, where set has the specific meaning of "television set".
I am wondering what the etymology of this term is here, and I have a guess: I believe that because televisions--and radios before them-- were constructed principally using a set of vacuum tubes that the set is a sort of metonym.
"Radio set" is easily found as a common term in historic text back when radios were larger standalone devices, or in the context of CB or ham radio, both of which grew from vacuum-tube-based equipment.
And I observe that contra the Merriam-Webster definition, no other kind of "apparatus" I can think of gets this shorthand. We don't speak of a toaster set or a dishwasher set or a personal computer set. The only examples I know of are devices that originated with sets of vacuum tubes.
Maybe I'm overthinking this. Can anyone enlighten the tracing of etymology there? Why are (were) televisions known as television sets?
All these sentences with "as done..." format have been confused me because why not just omitted "as" in these sentences?
Mr. Miller has said he does not support a mandated federal test but does favor public reports on how college students are learning as measured through testing.
The New York Times
It seems to me that "...how college students are learning measured through testing" is enough to express the meaning of it, and it meets my perception of English grammar. Why is there an as?
With his wife he went to Mexico to sample psychedelics at their practical source, as administered by the curanderos and curanderas of the Sierra Mazateca. The New York Times - Magazine
"With his wife he went to Mexico to sample psychedelics administered by the curanderos and curanderas of the Sierra Mazateca at their practical source."Can this sentence be written like this? It seems to me it's a structure used to put clause used to moderate objective in end of the sentence, with an "as" leading the clause.
And the Transportation Department would set new vehicle mileage standards as required by Congress. The New York Times
We could've just make the sentence "...new vehicle mileage standards required by Congress". Could haven't we?
I was taught to pronounce the oo in either afternoon or noon as /u:/ ~~the oo in nook~~ until I found some native speakers pronounce the noon sounding like new-n (videos). But the AmE IPA in the dictionary labels it as /nu:n/, instead of what I thought it as /nju:n/ if it's pronounced new-n. To my surprise, the IPA of new is /nu:/ rather than /nju:/. If /u:/ is equivalent to /ju:/, so why the word moon, whose IPA is /mu:n/, is not pronounced as mew-n?
Does anyone know where "Whatcha" and/or "Didja" originate from?
Watcha: What did you? Didja: Did you?
Edit: I cannot find these words in my English Grammar books and they are not in my English dictionaries. I don't know enough about them to even ask sensible questions. I myself use them. Yet, when asked about them by a non-native English speaker, I found myself clueless as to why English dropped the word "you" for a sound that had no resemblance to the word "you".
Titan is 50% larger than Earth's moon and 80% more massive.
I struggle with the "more massive" part. I find some books do use that phrase. Is it correct, pedantically? Do you recommend using it? Do you use it oftentimes, especially if you are an astronomer?
Which one do you prefer: "more massive" or "more in mass" or just "heavier"? Any other alternative is welcome.
I sometimes proofread documents for my (Dutch) supervisor. When he refers to something that comes from the Netherlands he would, for example, write: the Netherlands windmills as opposed to the Dutch windmills. I have sometimes seen this weird form written elsewhere, but I was wondering if this is really a correct way of saying this.
The words juice, fruit, bruise, cruise, sluice, suit, pursuit, suitcase, lawsuit, nuisance, recruit, bruit are spelled with ui and pronounced with the IPA phoneme /uː/.
Full pronunciations from OED:
nuisance: Brit. /ˈnjuːsns/, U.S. /ˈn(j)us(ə)ns/ juice: Brit. /dʒuːs/, U.S. /dʒus/ cruise: Brit. /kruːz/, U.S. /kruz/ bruise: Brit. /bruːz/, U.S. /bruz/ suit: Brit. /s(j)uːt/, U.S. /sut/ recruit: Brit. /rᵻˈkruːt/, U.S. /rəˈkrut/, /riˈkrut/ fruit: Brit. /fruːt/, U.S. /frut/ sluice: Brit. /sluːs/, U.S. /slus/ bruit: Brit. /bruːt/, U.S. /brut/ (In sense 5 also) Brit. /ˈbruːi/, U.S. /ˈbrui/
The pronunciation differs from some other similar words spelled with ui like guise, disguise, guide, cuisine, suicide.
Full pronunciations from OED:
guide: Brit. /ɡʌɪd/, U.S. /ɡaɪd/ guise: Brit. /ɡʌɪz/, U.S. /ɡaɪz/ cuisine: /kwiːˈziːn/ suicide: /ˈs(j)uːɪsʌɪd/
Ruin is kind of an exception to an exception because the pronunciation is different in British English and American English:
Full pronunciations from OED:
ruin: Brit. /ˈruːɪn/, U.S. /ˈruən/, /ˈruˌɪn/
Note: There can be other similar words I might have missed and there can be dialectal/regional differences also.
When I checked the etymology of the word sluice in OED, I found this note:
The spelling with ui (compare juice) did not come into general use until the 18th century.
In fact, when you check the older (pre-1600s) spellings of the word sluice in OED, you can see that it is mostly spelled with u instead of ui. (Of course, there are other irregular spellings also). In OED, the first citation where the word is spelled with ui is from 1611. The word is written as sluice which is same as today and the citation is from Randle Cotgrave · A dictionarie of the French and English tongues · 1st edition.
In OED, the etymology of the word doesn't mention the ui spelling also (except the current Dutch word sluis):
< Old French escluse (-clusse , -clouse , etc.; modern French écluse ), = Spanish esclusa , Portuguese esclusa , late and medieval Latin exclusa (also sclusa , etc.), feminine singular of Latin exclūsus , past participle of exclūdere to shut out, exclude v. Old French is also the source of Middle Dutch sluse , sluyse , sluus (Dutch sluis , West Frisian slús ), Middle Low German sluse , sluze (Low German slüse , slüs , German schleuse ), Danish sluse , Swedish slus . For the English forms which represent the late Latin clūsa see clow n.1
You can see a similar pattern for juice, bruise and somewhat cruise also.
In OED, the first citation where juice is spelled as today is from a1626.
Etymology of juice from OED:
< French jus, < Latin jūs broth, sauce, juice of animal or plant. The β forms are normal from French; with the others compare those of duke, flute, jupe, and bruit, fruit.
OED has the note below in the etymology of cruise:
The word is thus ultimately identical with croise v. and cross v.; the current spelling with ui seems to be after Dutch; but the vowel sound is as in Spanish and Portuguese.
Although there isn't an exact pattern, the historical spelling change pattern explained above differs in the words like suit, fruit, recruit but the question and the answer might cover them also. The words in the question is mostly the ones where it has the ui spelling followed by ce and se.
After all these historical notes, what is the question?
Why was ui spelling introduced in words that used to be spelled with u and where the pronunciation is with IPA phoneme /uː/?
Why did it become more prevalent after 18th century?
Note: I know that historical "why" questions are hard to answer. English has a lot of irregularities and changes throughout the history also. There isn't an exact pattern or rule in spelling and orthography; but the spelling is mostly fixed in the traditional orthography.
The answer might be related to the English spelling reforms or how Dutch influenced the spelling of the words in these reforms or in the history.
Or is there any influential person or publication that might have affected these spellings?
Or might the spelling of the word fruit or any other word have influenced the words like juice, sluice? Fruit is an older word but it has historical spellings like frut and the first citation with fruit is from 1549 in OED.
Was there a need or a proposition of indicating longer u sound in the spelling reforms?
What is the definition of "measurable definition?" What does that mean? I have interns who are victims of verbose, academic language, and they frequently use terms that I don't think they even understand.
In an online pdf titled "A Measurable Definition of Resiliency Using 'Mission Risk' as a Metric" I read this in the abstract, "Part of the problem...lacks a clear definition that supports measurable metrics that would allow two like systems to be compared against each other."
It seems there is no such thing as a "measurable definition," rather there is a phenomenon that can be defined and measured.
This may or may not related to my previous question. In this movie (which is based on another one of Tom Wolfe's novels, The Bonfire of the Vanities), Tom Hanks plays the lead character who is an Ivy League graduate. He doesn't make much of an effort to imitate any of the Harvard, Yale, or Princeton speech patterns and tones, but he does insist on pronouncing the word "stupid" as "styoopid." Why? Where do they speak like that?
He's not trying to copy or parody the so-called Mid-Atlantic accent: one, it was already out of vogue in the 1990's, and, two, that's not how Mid-Atlantic sounds, anyway. What is he doing? What point is he trying to get across?
In linguistics, is there a term describing this phenomenon, i.e., when the syllables of two words are slurred together in the spoken language? They are not contractions. While contractions are acceptable in any register, this combination of words is very informal and hardly ever found in formal writing.
kinda (kind of)
sorta (sort of)
coulda (could have)
shoulda (should have)
lotta (lot of)
oughta (ought to)
betcha (bet you)
lemme (let me)
tseasy (it's easy)
willya (will you)
Inasmuch as English Language speakers (just like the speakers of any natural language) have a tendency to join word sounds in speech, examples abound and a complete list would be hard to produce .
I'm looking for a word or phrase describing this linguistic phenomenon as it occurs in speech.
Despite being a native Brit, I've always found it an oddity that words like "tutor", "tube", "tumour", and "duty" are pronounced as "tyutor", "tyube", "tyumour", and "duty" in British English. For me, this doesn't seem phonologically simpler/easier at all, and given that it seems to be absent in American English (possibly other forms of English too?) for these sorts of words (beginning with "tu" or "du"), I would suppose it's a somewhat recent innovation in historical linguistic terems, almost surely after the Middle English period. So that's my first question: when and where did this pronunciation originate, and as a bonus, why?
Now, there are certain words that have this "y" sound inserted even in American and other forms of English, though I can't think of any where it's inserted in the "tu" or "du" sound. e.g. "beautiful", "cute", "futile". Notably, this pronunciation seems much more natural to me in these cases, unlike in the "tu" and "du" cases. Of course, the pronunciation of these words in the original Latin (or even the intermediary French when applicable) suggests that this innovation happened within English, and most likely within England itself. (N.B. I can't think of any Anglo-Saxon words with this mode of pronunciation right now, but quite possibly there are some too.) So, my second question is: is there some clear linguistic/phonological reason why the insertion of the 'y' sound is more natural in the non-"tu"/"du" cases, and did this phenomenon originate earlier in the English language?
Are these words examples of elision? What effect do they create? If a child says them what does this suggest about their language development? Thanks for any help!!
When someone with a Received Pronunciation accent pronounces the word duke, as in The Duke of York, he doesn't pronounce it with a "hard" 'd', as one might pronounce the word duh, but a softer type 'd', which I can only spell phonetically as "dj", so as to pronounce duke somewhat like "djuke."
My question is composed of two parts:
What would a linguist call this phoneme?
What is the difference in articulation between it and a "regular" /d/?
My coworker and I have been having this discussion for a day or two...
What is the most correct way to pronounce 'new' or 'news' ?
Does it rhyme with 'few' ? or 'snooze' ?
Does 'new crew' rhyme?
I know both 'noo' and 'nyoo' are correct, but what are the origins of the two different pronunciations?
Asking around the office, it seems that 'nyoo' might have a British English origin, but I would like to know if anyone is more knowledgeable on this topic.
local locks = require "resty.lock" local function limiter() -- ngx dict local limiter = ngx.shared.limiter -- limiter lock local lock = locks:new("limiter_lock") local key = gx.var.host..ngx.var.uri -- add lock local elapsed, err =lock:lock("ngx_limiter:"..key) if not elapsed then return fail("failed to acquire the lock: ", err) end -- limit max value local limit = 5 -- current value local current =limiter:get(key) -- 限流 if current ~= nil and current + 1> limit then lock:unlock() return 0 end if current == nil then limiter:set(key, 1, 1) -- 初始化 else limiter:incr(key, 1) -- +1 end lock:unlock() return 1 end ngx.print(limiter())
local key = "limiter:" .. KEYS[1] local limit = tonumber(ARGV[1]) local expire_time = tonumber(ARGV[2]) local is_exists = redis.call("EXISTS", key) if is_exists == 1 then if redis.call("INCR", key) > limit then return 0 else return 1 end else redis.call("SET", key, 1) redis.call("EXPIRE", key, expire_time) return 1 end
单机限流
单兵作战,自生自灭,我不倒集群不倒。不依赖存储中间件,基于 local cache 就可以实现简单的本地计数限流,宏观角度观察,只要网关层负载均衡服务高可用,每个节点流量差别不大,只需要关心单个节点的流量管控就可以。
SELECT b.rank FROM ( SELECT t.id, @rownum := @rownum + 1 AS rank FROM (SELECT @rownum := 0) r, (SELECT id FROM fa_bankgy_dsxx_user ORDER BY jifen_all DESC) AS t ) AS b WHERE b.id = 29605;
表
CREATE TABLE `fa_bankgy_dsxx_user` ( `id` int(11) NOT NULL AUTO_INCREMENT, `nickname` varchar(50) COLLATE utf8mb4_unicode_ci NOT NULL, `openid` varchar(50) COLLATE utf8mb4_unicode_ci DEFAULT NULL, `avatar` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL, `realname` varchar(24) COLLATE utf8mb4_unicode_ci NOT NULL, `mobile` varchar(24) COLLATE utf8mb4_unicode_ci NOT NULL, `province` varchar(20) COLLATE utf8mb4_unicode_ci NOT NULL, `city` varchar(30) COLLATE utf8mb4_unicode_ci NOT NULL, `area` varchar(50) COLLATE utf8mb4_unicode_ci NOT NULL, `workunit` varchar(100) COLLATE utf8mb4_unicode_ci NOT NULL, `exchange_count` int(11) DEFAULT '0', `dati_count` int(11) DEFAULT '0' COMMENT '答题次数', `rank_fen` int(11) DEFAULT '0', `jifen_all` int(255) DEFAULT '0', 累计积分数量 `jifen` int(11) NOT NULL DEFAULT '0', `createtime` int(11) NOT NULL, `updatetime` int(11) NOT NULL, `deletetime` int(11) DEFAULT NULL, PRIMARY KEY (`id`), KEY `jifen_all` (`jifen_all`), KEY `openid` (`openid`), KEY `workunit` (`workunit`) ) ENGINE=MyISAM AUTO_INCREMENT=33259 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci
I have a container div with overflow: auto (this can't be removed) and within it there's another div that toggles between showing and hiding using an animation when a button is clicked. The problem is that when this div moves down it causes an overflow. Keep in mind that this div must be within the container.
I have an app with Firebase integration to connect analytics using cocoapods. It was working well without any yellow warnings for iOS 13, but when I installed the new cocoa pods for target iOS 14 and build the app I get 6 yellow warning messages
"XXXPods/GoogleUtilities/GoogleUtilities/Logger/GULLogger.m:130:20: This old-style function definition is not preceded by a prototype"
When I was looking for answers online, there are only few and pointing to Flutter. I don't have Flutter for this app and I don't think I will be needing one. Does anyone else have the same issue? How can this be silenced for iOS 14 please?
I can downgrade the pods to iOS 13 but the whole point was to update the version. Thank you for any help/direction
I am trying to add color categories to existing emails in a given outlook folder based on criterias such as email object and/or sender email address.
I found a way to do it with VBA but I would like to use python not sure if the code can easily be "translated" from VBA to python?
import win32com.client as client import win32com import pandas as pd outlook = client.Dispatch("Outlook.Application").GetNamespace('MAPI') main_account = outlook.Folders.Item(1) second_account = outlook.Folders.Items(3) df = pd.read_excel (r'C:\Python\test.xls') df_outlook_folder = df['Outlook_folder'].tolist() df_mail_object = df['Mail_object'].tolist() out_iter_folder = main_account.Folders['Inbox'].Folders['TEST'] fixed_item_count = out_iter_folder.Items.Count item_count = out_iter_folder.Items.Count if yout_iter_folder.Items.Count > 0: for i in reversed(range(0,item_count)): message = out_iter_folder.Items[i] for y,z in zip(df_mail_object,df_outlook_folder): try: if y in message.Subject: message.Move(second_account.Folders['Inbox'].Folders['TESTED'].Folders[z] except: pass item_count = out_iter_folder.Items.Count print('Nb mails sorted:',fixed_item_count - item_count)
the code above enables me to move emails based on the mail object but I am not able so far to add a feature to also change the outlook color categories
I want to find the cumulative number of shops of past 12 month. Query must return result something like
[{ date: 'Aug-2020', numShops: 100, // Total number of shops until aug-2020 }, { date: 'Sep-2020' numShops: 230, // Total number of shops until sep-2020 }, .... ]
My problem is that each size has own amount and price from a product, like each product has 1 or more size it can be one or more, how can I edit models by "for" in my html ? or any best other way?
How can I refer in VBA to a previously newly created workbook within the same macro? For example, I copy something from A2 in the active workbook, then I create a new workbook, paste there in cell B3, return to the first workbook, copy cell A3, return again to the newly created workbook and paste in in cell B4.
So, what I need is the code for this part of the sentence: "return again to the newly created workbook"
I ve got some data on Premier League players and I want to check for outliers. Boxplots show several outliers in some variables. However, I have created a function to detect them into a list, but returns an empty outlier list:
numeric_cols = [x for x in df if df[x].dtype != "object"] def outlierdetector(x): for i in x: mn = df[i].min() mx = df[i].max() iqr = stats.iqr(df[i]) outlier = [o for o in df[i] if o < mn or o > mx] print("COLUMN:", i,"\nMIN:", mn, " MAX:",mx," IQR:",iqr, "\nOutliers:", outlier, "\n\n") outlierdetector(numeric_cols)
What is wrong with the function so that it does not return outlier values? Thank you
please help, I accidentally removed a huge portion of my codes in Google Script and accidentally saved it. Is there any way I can "Undo" and I get my previous version back?
I'm trying to follow a tutorial on React(frontend) and Springboot(backend) and I face a little problem when making an http POST request with Axios on Mozilla and Chrome. I try to post some data to a REST api that I set up and save it in an H2 in-memory database. If I use an HTTP client like Postman, it works fine but when I use a web browser as a client, here are some issues :
On Chrome, when I submit the form, I don't see any trace of the triggered request in the Network tab of the console while the data is saved in the database. I also have this browser error message when I run my React client :
On Firefox, the request doesn't hit my rest controller endpoint and no data is persisted. But I get this error message
I configured my CORS, checked proxy config in package.json but I don't get what the issue is.
my http post method called from my form component when submitted
runApp() Warning: package 'shinyWidgets' was built under R version 3.6.3 Error: package or namespace load failed for 'shinyWidgets' in loadNamespace(j <- i[[1L]], c(lib.loc, .libPaths()), versionCheck = vI[[j]]): there is no package called 'bslib'
What I have are Python Scripts that listen to SQS and Process messages received from those.These are dockerized and uploaded to ECR. What the requirement is to run this docker on ECS using EC2 and Scale up/in based on the number of messages from sqs.
The issue is I am not able to run the tasks defined, I think the reason for it is the health check is not set, so I set it to CMD_SHELL, ps aux | grep "Python" || exit 1 , but of no use can anyone help me with it. Also is it possible to run Non-Web application on ECS.
If anyone has any documents please point me put to it.
Any suggestion on whether it's possible to run non-server containers on ECS would be of great help or any one has done it please let me know what should be the healtchecks
I am wondering if a lambda function located in AWS account A can be used with a CloudFront distribution located in AWS account B. When I try, i get the following error. This leads me to think that it is probably not possible. But maybe it is a permission problem.
com.amazonaws.services.cloudfront.model.InvalidLambdaFunctionAssociationException: The CloudFront distribution under account 999999888888 cannot be associated with a Lambda function under a different account: 999999666666. Function: arn:aws:lambda:us-east-1:999999666666:function:cf_test_lambda:2 (Service: AmazonCloudFront; Status Code: 400; Error Code: InvalidLambdaFunctionAssociation;
Can anyone help me with this. I have tried different ways as suggested online but still no luck and am a newbie in bash scripting. Any help would really be appreciated. Thank you
I am writing SQLite GUI client for UWP. I use Microsoft.Data.Sqlite library for SQLite API with C#. Also I use a redirection table to be able to open database within my sandbox app which is published in Microsoft Store. Redirection table replaces CreateFileW to CreateFileFromAppW calls and similar.
Problem:
User has File -> Save as feature. When user creates a new database file is created inside app local directory. Next when user saves his/her database as I need to move this file. I use StorageFile API cause I cannot use any other file API within a sandbox app. So I call:
var savePicker = new Windows.Storage.Pickers.FileSavePicker(); savePicker.SuggestedStartLocation = Windows.Storage.Pickers.PickerLocationId.DocumentsLibrary; savePicker.FileTypeChoices.Add("SQLite3 Database", new List<string>() { ".sqlite", ".db" }); savePicker.SuggestedFileName = "Database"; var file = await savePicker.PickSaveFileAsync(); if(null != file) { Windows.Storage.AccessCache.StorageApplicationPermissions.FutureAccessList.Add(file); sqliteConnection.Close(); // it is important cause if I skip this moving a file will fail var localFolder = ApplicationData.Current.LocalFolder; var currentStorageFile = await localFolder.GetFileAsync(App.UnsavedDatabaseFileName); // here I obtain StorageFile for opened database await currentStorageFile.MoveAndReplaceAsync(file); // here I move a file sqliteConnection = new SqliteConnection("Data Source=" + file.Path); sqliteConnection.Open(); // this line fails with error 14: cannot open database file }
I also tried to skip closing and reopening a connection -> then moving a file fails. If I call FileOpenPicker between await currentStorageFile.MoveAndReplaceAsync(file); and sqliteConnection = new SqliteConnection("Data Source=" + file.Path); then everything will work fine but showing file open picker right after file save picker is a very bad user experience. I know that sandboxed app gives file access permission only after user selected a file manually. But it looks like that FileSavePicker does not give me a permission just like FileOpenPicker does. I could not find any info about it.
Epilogue:
This is the app https://sqliteman.dev. Please feel free to criticize cause it is what makes my app better.
what's the fastest way of calculating every value for f given three linear input arrays x, y, and z?
Of course I can do something along the lines of,
import numpy as np x = np.linspace(-1., 1., 11) y = np.linspace(-1., 1., 11) z = np.linspace(-1., 1., 11) for xi, xx in enumerate(x): for yi, yy in enumerate(y): for zi, zz in enumerate(z): f(xi, yi, zz) = xx*yy*zz
but this is probably not the best way to do it, especially if the input arrays become larger. Is there a better way of doing it, such as with a list comprehension (but multidimensional) or any other way? Help is appreciated.
I am trying to change background video on scroll, using react-intersection-observer. When inView changes to true, useEffect must change state to sample2, and send new video to startscreen, where it's using as background video with position fixed. State is changing, but video is still the same.
While using NodeJS, the URL was localhost:3000 and while using flask, it was localhost:5000. Why are they different if both running on same browsers. What is the key difference? Are there any others in different web technologies? Can we run NodeJS on 5000 and flask on 3000?
I added a button to my collection view, but I cannot press it. I coded it so it would print something to the console as a test, but it still didn't work. The UIButton is connected to the respective class as well.
So I need to obtain correlation values between columns of the same letter. So obtain the correlation values for A1.1 and A1.2, B1.1 and B1.2, and C1.1 and C1.2 for a total of 3 correlation values.
I can do this by using the cor() function for each (eg. cor(df$A1.1, df$A1.2)), but is there a for loop I could create that could obtain the correlations for all these at once?
I am trying to make a code (Python) to delete 1 full contact (name, email and phone number) given the NAME.
The thing is, I haven't been able to delete the email and the phone number.
Try is what I tried:
def delete_someone(): Y=input("Enter the full name:") archivo=open("agenda.txt", "r") count_lineas= archivo.readlines() archivo.close() archivo1= open("agenda.txt", "w") for line in count_lineas: if line.strip("\n")!= Y: archivo1.write(line) archivo1.close()
We have cloudformation templates to deploy resources, during developing new features firstly we test on dev and then deploy to prod. But with quicksight it not so easy, there are no cloudformation templates for quicksight. We need to reacreate all reports in prod account, manually it is very hard. I found QuickSight API and create-analysis command but I don't understand how I can create analysis via this command.
Maybe someone have examples or know how to create analysis with cli?
I'm trying to run a simple test on my hybrid app with Appium + Protractor and I am unable to since I am getting following error: Failed to get sockets matching: @webview_devtools_remote_.*15239
I am using Ubuntu, and on it I have set up Appium and Protractor, tried literally every solution I have found on the internet, could not resolve the issue.
Only thing that would "remove" the error is adding following code into capabilities:
I've been doing periodic (every 24 hour) backups of my mongodb instance. This works great, and I can restore them on my staging server with no problem:
The only difference is the --db "$dbname" (where $dbname is example_staging). This doesn't work: I see the lines about preparing, then it says done, but nothing is restored.
2019-02-07T11:16:36.743+0000 the --db and --collection args should only be used when restoring from a BSON file. Other uses are deprecated and will not exist in the future; use --nsInclude instead 2019-02-07T11:16:36.772+0000 archive prelude example_prod.surveys 2019-02-07T11:16:36.773+0000 archive prelude example_prod.settings 2019-02-07T11:16:36.773+0000 archive prelude example_prod.spines 2019-02-07T11:16:36.773+0000 archive prelude example_prod.reduced_authors 2019-02-07T11:16:36.773+0000 archive prelude example_prod.delayed_backend_mongoid_jobs 2019-02-07T11:16:36.773+0000 archive prelude example_prod.email_events 2019-02-07T11:16:36.773+0000 archive prelude example_prod.authors 2019-02-07T11:16:36.774+0000 archive prelude example_prod.crowberry 2019-02-07T11:16:36.774+0000 archive prelude example_prod.bitly 2019-02-07T11:16:36.774+0000 archive prelude example_prod.mytestcollection 2019-02-07T11:16:36.774+0000 archive prelude example_prod.reviews 2019-02-07T11:16:36.774+0000 archive prelude example_prod.books 2019-02-07T11:16:36.774+0000 archive prelude example_prod.candy_events 2019-02-07T11:16:36.774+0000 archive prelude example_prod.features 2019-02-07T11:16:36.774+0000 archive prelude example_prod.elderberry 2019-02-07T11:16:36.776+0000 preparing collections to restore from 2019-02-07T11:17:02.403+0000 done
I've also tried using --tsFrom=example_prod --tsTo=example_staging, no joy.
Magnificent News: E-Techbytes >>>>> Download Now
ReplyDelete>>>>> Download Full
Magnificent News: E-Techbytes >>>>> Download LINK
>>>>> Download Now
Magnificent News: E-Techbytes >>>>> Download Full
>>>>> Download LINK 40