Upgrading a system with /home on a different physical drive

I plan to set up my computer so that the operating system is on an SSD, while the /home directory is on an HDD. I know how to install Ubuntu so that the system will be as I want it to be. When I eventually upgrade the operating system (say from Ubuntu 19.10 to 20.04), is there a way to just update the operating system without overwriting the /home directory?

What do I use as an alternative to Domain-Driven Design, if I cannot define a Competitive-Advantage area of my system to apply it?

From all I read and watch, Domain-Driven Design (DDD), is a costly and time-consuming endeavor. In fact, everyone I have seen, including Eric Evans and Greg Young, say, don’t use DDD except where you have a “Competitive Advantage.” To find that advantage it kind of drops off into various discussions of business and T-Shirts. That’s fine. I understand that’s a business decision, not necessarily DDD proper, though DDD helps identify it.

What does a company do with the non-Competitive aspects of their system that they simply cannot buy off-the-shelf software for?

For example, an inventory program. Lots of companies have inventory programs. Most of them have the same features. It’s marketing that separates most of them and reputation. For DDD, I don’t know these all have any Competitive Advantage.

Where does DDD fit into these scenarios? I’d really like to use DDD because I like its principles, but I am finding it makes little sense, at least for me, given the caveats of the proponents.

So, I am right back where I started with other design methodologies (not that they are bad.) And, I use the word “methodologies” loosely because DDD is more about principles, as so many “methods” are. I can only take principles here (Ubiquitous language and so on), but not much else.

What do I use as an alternative to Domain-Driven Design, if I cannot define a Competitive-Advantage area of my system to apply it? Should I use DDD anyway? Doesn’t seem like it.

What I really don’t get is when does someone not use an analyst or the like to understand a business. How else would the developers know what to write? That’s not DDD; that’s just common sense.

Not asking about tactics here, but rather strategy (as some I have read word it.)

Example from Vaughn Vernon, https://vaughnvernon.co/?p=879

Speaking about the Entity Framework and DDD, “Just allow Entity Framework to map entities and get back to what will make a difference in this competitive world: your market-distinguishing application.”

It seems like DDD is not for 90% of the world, only the Magic Quadrant.

To have different set of rules to proceed flight booking in Flight booking system using C# [on hold]

I am new to C# and working on Flight booking service assignment. Need to implement an additional logic along with below default rules. Used If-else-if statement, but need to improve the code. Could anyone please help?

Additional Requirement : Need to keep below default rules but also have an option to choose a different set where they relax the requirement for the revenue generated exceeding the cost only if the amount of airline employees aboard is greater than the minimum percentage of passengers required. They want the option to switch between these rules sets. They have indicated they might want more rule sets in the future.

Default rules are : 1) The revenue generated from the flight must exceed the cost of the flight
2) The number of passengers cannot exceed the amount of seats on the plane
3)The aircraft must have a minimum percentage of passengers booked for that route

have used IF-ELSE IF- ELSE statement to check above rules, but need to know better way to write the logic. Please help

Document management system for asp.net application

I have a requirement. One application is developed in asp.net. In that application we have a file upload control is there. As of now if you upload any file by using file upload control that files will be saved into the file system. Now the client wants document management system in share point instead of file system. But UI is not changed(UI designed in ASP.Net). How we can achive this without change the UI in asp.net and how the files will be saved into the document management system instead of file system. Pl z help me on this issues.

How to handle or design review system with pagination?

In typical online review system if any user give review on specific post or others thing, then when that user view that post his review show first. The perfect example of this is Google Play Store. If i give review to any app, than when i go to that app my review show first.

Now i want to implement review system in my app. I implemented it successfully but now I’m little bit confused to showing that to the users. I want to show current user review first if that user give any review to that post as I mentioned before. I can simply do that if I fetch all the data at a time by doing filter for current user but as I’m using pagination and don’t getting all the data at a time so I can’t do that because theres no guaranty that the current user data will exists in that page.

So the way i think to solve the problem is below:

For first page call I can make two call to database one for to get only current user review data and second to get all review data by paging. Then if current user review data exists I will add this data to the beginning of all data. But there has one problem, as I’m calling current user review data separately still my main call which getting all review data may exist that current user review data. It means current user review data maybe duplicates. So, to prevent duplicates data I can exclude current user data from all data call but that will put an extra load to the sever as it will check every data and then will skip current user data if exits.

So I’m looking for an efficient way to show users review by doing pagination, where first review will be current user review if it exists. How can I do that?

How do ships, without a communications system, relay information?

I was looking through the Dark Matter supplement (for 5th Edition D&D, by Mage Hand Press) to find out what the fewest-in-common ship systems were, when I noticed that all fighter-class ships (excepting the Lakshayan Ashigaru Frame) lacked a communications system.

Does this mean that fighter ships cannot communicate with its allies, even other fighter ships? I have been looking through the book and, to my knowledge, it does not seem fighter ships can, barring an external (on the pilot) setup of comm sets and relay stations.

PS. I realize posting this question here is very much a shot in the dark, considering I couldn’t even tag it properly, but I could not find any discussion of the supplement elsewhere. Please comment if you do know of a dedicated forum!

PS2. Here are some links to the supplement:

  • Kickstarter (with free sample .pdf in description): https://www.kickstarter.com/projects/magehandpress/dark-matter-2

  • Mage Hand Press store page: https://store.magehandpress.com/products/dark-matter-alpha

Disabling system sounds and alerts without disabling application notification sounds

Is there a way to disable all alerts without disabling notifications for certain apps? For instance, every time I adjust the volume with the keyboard it plays an annoying bing sound, and the only way I know to disable it is to mute System Sounds in settings. This is fine except muting System Sounds mutes the notification sound that plays whenever my thunderbird inbox receives a new message. System Sounds

CSOM, GroupBy, specific ViewFields and system fields

From my SP library, I would need to retrieve a list of meetingID grouped by MeetingID. I tried several attempts with CAML but it didn’t work:

CamlQuery query = new CamlQuery();                     query.ViewXml = @"<View>                                           <Query>                                             <Where>                                                     <And>                                                                                         <And>                                                     <Eq>                                                         <FieldRef Name='FSObjType'/>                                                          <Value Type='Counter'>0</Value>                                                     </Eq>                                                     <Geq>                                                         <FieldRef Name='Modified'/>                                                         <Value IncludeTimeValue = 'TRUE' Type = 'DateTime'>2016-01-01T15:55:52Z</Value>                                                                </Geq>                                                   </And>                                                 <IsNotNull>                                                     <FieldRef Name='Title' />                                                                                               </IsNotNull>                                             </And>                                         </Where>                                                                                <GroupBy Collapse='True'>                                             <FieldRef Name='MeetingID' />                                         </GroupBy>                                                                                 <OrderBy>                                             <FieldRef Name='DocID' />                                                                                </OrderBy>                                     </Query>                                      <ViewFields>                                         <FieldRef Name='MeetingID'/>                                     </ViewFields>                                  </View>";                      ListItemCollection items = list.GetItems(query);                     cc.Load(items, o => o.Include(p => p["MeetingID"]));                     cc.ExecuteQuery(); 

Considering that the CAML is returning the MeetingID and plenty of system fields, I had to use the Include syntax. However,on my 1500 items in SP, none of them have been grouped (I should have only 50 unique MeetingID). Again probably related to the system fields which prevent the grouping to occur…

I also tried:

cc.Load(items, o => o.Include(p => p["MeetingID"]).GroupBy(g=>g["MeetingID"])); 

But this one return an error…

I also tried to see if a property similar to ViewFieldsOnly exist in CSOM but it doesn’t seem to be the case.

Your help will be appreciated

System directories not owned by root after preseed install 18.04.2

I have an issue where there are no files owned by root after an unattended install using preseed on Ubuntu 18.04.2. I discovered this when I could not use sudo. Upon investigation, I found that /usr, /lib and /home were owned by 1001:1001, not root, and the same for any files or sub-directories. This wasn’t a problem in the past, so I’m a bit mystified. Please see my preseed file below:

  # Localization d-i debian-installer/locale             string  en_US.UTF-8 d-i debian-installer/language           string  en d-i debian-installer/country            string US  # Keyboard layout d-i console-setup/ask_detect            boolean false d-i keyboard-configuration/layoutcode   string  us d-i keyboard-configuration/charmap      select  UTF-8 d-i keyboard-configuration/layout       string English (US)   ### Network configuration d-i netcfg/choose_interface             select auto d-i netcfg/use_autoconfig               boolean true d-i netcfg/get_domain                   string cg.chrysler.com  ### Mirror settings d-i mirror/country                      string  manual d-i mirror/http/hostname                string  us.archive.ubuntu.com d-i mirror/http/directory               string  /ubuntu d-i mirror/http/proxy                   string   d-i proxy                               string   d-i mirror/protocol                     string  http  ### Account setup d-i passwd/user-fullname                string ictadmin d-i passwd/username                     string ictadmin d-i passwd/user-password                password chrysler1 d-i passwd/user-password-again          password chrysler1 d-i user-setup/encrypt-home             boolean false  ### Clock and time zone setup - TS verified ntp server  d-i clock-setup/utc                     boolean true d-i time/zone                           string  America/Detroit d-i clock-setup/ntp                     boolean false d-i clock-setup/ntp-server             string  ntp.example.com   # Automatically detect device name of install disk d-i partman/early_command   string      debconf-set partman-auto/disk /dev/"$  (fdisk -l |grep -i linux | awk '{print $  1}' | cut -d / -f 3 |sed 's/p[0-9]$  //p' |head -n1)"  ### Partitioning and disk encryption d-i partman-auto/method                 string  crypto d-i partman-crypto/passphrase             password  d-i partman-crypto/passphrase-again       password   d-i partman-lvm/purge_lv_from_device    boolean true d-i partman-lvm/device_remove_lvm       boolean true d-i partman-md/device_remove_md         boolean true d-i partman-lvm/confirm                boolean true d-i partman-lvm/confirm_nooverwrite    boolean true d-i partman-auto/choose_recipe          select  atomic  d-i partman-partitioning/confirm_write_new_label boolean true d-i partman/choose_partition            select finish d-i partman/confirm                     boolean true d-i partman-lvm/confirm_nooverwrite    boolean true  ### Package selection tasksel tasksel/first                   multiselect ubuntu-desktop ubiquity    ubiquity/keep-installed string icedtea6-plugin openoffice.org # Enable extras.ubuntu.com. d-i apt-setup/extras    boolean true d-i pkgsel/include/install-recommends   boolean true  ### Boot loader installation d-i grub-installer/only_debian          boolean true##  TO DO:  Resolve how to create more file systems ##  Need to have OS separated from data d-i grub-installer/with_other_os        boolean true    ### Copy and install some extra stuff  ### When ubiquity/success_command is invoked /target is mounted  ubiquity ubiquity/success_command       string \    in-target apt purge gdm3 ; \    in-target apt update ; \    in-target apt-get -y install net-tools libwebkitgtk-3.0 terminator gdm3 ; \    in-target hostname `echo "ubn"$  (lshw | grep -m 1 serial | awk '{print tolower ($  2)}')` ; \    hostname > /target/etc/hostname ; \    sed -i "2s/.*/127.0.1.1\t$  (cat /target/etc/hostname)/" /target/etc/hosts  ubiquity ubiquity/use_nonfree   boolean true ubiquity ubiquity/reboot   boolean  true 

How to check if a new username is a system user?

I want to create a script that change a username. I want to check if the user is not a system user. My idea is to check /etc/passwd and pick only users with an ID between 1000 and 60000 and users that have a /home directory like

 user:x:1005:1021::/home/user:/bin/sh 

My grep command for now is like

   egrep -E '1[0-9]{3}.*/home' /etc/passwd  

As you can see, it doesn’t match my [1000-60000] pattern nor the name