Need help with a work around

I need to take the ‘Office’ display of the ‘Created By’ column and display the first 5 digits of it so that my flows can run a conditional check on it. The reason is that Microsoft flows has all the ‘Created By’ dynamic contents besides ‘Office’.

I figured simple enough I’ll just do a calculated column on the SharePoint list. Then I find out that ‘Created By’ cannot be used in calculated columns.

So I figured I’ll have my PowerApp write the Users ‘Office’ as a default to a field when submitting a form and calculate it off that column. Unfortunately PowerApps only has User().FullName, Email, and Image.

I have pretty much exhausted the options for a workaround that my knowledge will allow. Hopefully someone might have some ideas.

Document root change help

I am using Magento 2.3.1 Open Source. I installed it from the .zip file in the public_html folder (I didn’t know any better at the time) in my account at my web host, running on Apache.

I did the Magento Security Scan on my website, and it showed the following problem-

Your Web server is configured to run Magento from %MAGENTO_ROOT% directory. It is recommended to set %MAGENTO_ROOT%/pub as a Web server root directory.

In response I found my way to this page, which had instructions to fix the problem, but they seem to only apply to installations that are not on shared web hosting plans.

I tried to find the files that contain the document root url through SSH-ing into the shared server just in case, but since I don’t have root access it didn’t show.

I contacted my hosting provider twice to change the document root for me through /var/cpanel/userdata/username/, but since there is a language barrier, they told me that that was beyond their expertise, or something like that.

My site is run under https, of course, if that helps any.

I am not too security savvy with Magento, so what I want to know is, if I use the .htaccess commands below to change the document root, would they alone make my Magento installation in public_html secure?-

RewriteEngine on RewriteBase /  RewriteCond %{REQUEST_URI} !^/pub/  RewriteCond %{HTTP_HOST} ^(www\.)?example\.  RewriteRule ^(.*)$   /pub/$  1 [L] 

Do I need to move/copy any Magento files from public_html to public_html/pub if I use the .htaccess commmands above, if so, which files?

If I leave the Magento files in public_html and use the rewrite commands, will that be a security problem?

Do I need to change any settings in the Magento Admin after using the rewrite commands?

Thank you very much.

Need to rank my website (HELP!)

I would like to rank my website and create new post and rank them with good keywords from my niche.
The problem is I don't know how to insert the keywords and what method to use to rank them and make it visible to search engines.

There are any idea on how to do it? Anyone have good method?

Thanks in advance.

Advertise Products or Site, Blog Posts for Quality Backlinks From Get Do Help

Get Do Help Worldwide is basically dedicated portal for poor and needy people worldwide. Here any one can request for help and any one can help needy and poor people by donate money or by donate things.

We are managing Blog and News also at Get Do Help. Multiple and about all types of category available. Our main point is "Help" for example in business topic can be "Business Ideas for beginner". We can accept all types of unique contents but topic…

Advertise Products or Site, Blog Posts for Quality Backlinks From Get Do Help

Help with divide and conquer problem

I have the following problem of recurrences and divide-and-conquer Consider the algorithm, called StoogeSort in honor of the immortals Moe, Curly and Larry. The swap operation $ (x,y)$ exchanges the values ​​of $ x$ and $ y$ .

Algorithm StoogeSort: procedure StoogeSort(A[0...n −1])     if n = 2 ∧ A[0] > A[1] then         swap(A[0], A[1])     else if n > 2 then         m = ceil(2n/3)         StoogeSort(A[0...m−1])         StoogeSort(A[n−m ...n−1])         StoogeSort(A[0...m−1])     end end 

The problem demands the following:

  • Show that the algorithm correctly orders the array A of n elements.
  • Would it work correctly if we replaced ceil($ \frac{2n}{3}$ ) with floor($ \frac{2n}{3}$ )? Justify your answer.
  • Give a recurrence for the number of comparisons between elements of A that StoogeSort performs with n elements.
  • Solve the recurrence for the number of comparisons. (Hint: skip functions ceil and functions floors, solve exactly the result.)
  • Show that you execute at most $ {n}\choose{2} $ swap operations. (Hint: How many comparisons are required to locate the element in position k if it is at Start?)

I intuit that item two works changing ceil by floor so if the length of the arrangement is odd it does not matter if I take the larger half at the beginning or after the middle of the arrangement but how do I show this?.

I have the following help: For the first bullet, use induction: It is easy to see it works for 1 or 2 items. Prove that if it works for $ n−1$ or fewer items, then it also works for n items. For the 3rd & 4th bullets, $ c_1=0,c_2=1$ and $ c_n=3c_m$ . For the final bullet, show that any pair of items is never swapped more than once.

How should I interpret the help for bullets 4 and 5?. Thanks in advance.

Help designing a product model with vast amount of properties

I’ve been asked how to re-design a legacy system by a relative for a company that builds custom chairs. On their website you can customize your chair in about 30 permutations : chair type, material, if wood what kind, color, height, leg type, etc..

They have been working for years with a system that creates a ~40 character encoded string that represents the chair and use that string as the product code (like a long SKU). It will look like M01MA24C04L02… For Model #01, Material #24 Color #04, leg type #02, etc…

This string is used also in client’s application and a bit everywhere to represent a chair. You can enter the string on their web app and it will re-create you the chair configuration.

The problem now is that they want to refactor this because they are about to add more options and more will come in the future. We are talking about 40-50 permutations and obviously the encoded string will just get bigger and inconsistent in length with old data. Personnel and stores type this “product code” when they want to see what the what the client ordered with all the configurations and it’s getting too long for them to type.

I’ve been asked how I would go about a problem like that but I’m still recently graduated in computer engineering and don’t have much architecture experience yet. I was looking at EAV model but I’m uncertain.

For now I just suggested that they stop using that string as a SKU because it breaks every stores whenever they do a migration of what that code represents, and I suggested that instead of giving the encoded string to the client when they make the order to give them a confirmation number that maps to this code. But they would still like to have a “product code” that represents the product and that is likely to change in the future.

I googled around but I have no experience with stuff like that. I’m not looking for a full solution just an idea of where to look for problems like that mainly for my self interest.

Need help designing a full-screen (laptop) notification viewable at a glance from ~5-7 feet away

I have software I’m working on in which a user has to scan a full pallet’s-worth of various items of hardware for inventory-taking purposes (think of a wooden pallet in a warehouse laden with stacks of computer towers of various form factors, for example, with 50 towers per pallet) using a (possibly wireless) hand-held barcode scanner, a barcode sticker represents the unique instance of the item on which the sticker was placed.

The idea is that the person, using a barcode scanner connected to a laptop with my software open, can scan each item on the pallet at their own rhythm without having to move the laptop (which would be impractical). This means the user will themselves need to physically move about to accomplish the task and may not be able to see the screen immediately or up-close as they move about, scanning items.

I have (so far) envisioned a notification system which would notify the user via aural cues based on the state of the scanned item as it’s safe to assume they aren’t looking at the screen when scanning an item. A visual notification of sorts is of course important if they scan an item and can see the screen, however, and that’s where I’m having a bit of trouble.

The below mockup is what would be displayed for each notification which would appear for maybe 1-2 seconds before returning to the software’s default view of information which is effectively the list of all items in the pallet (read from a csv file generated by the management system), categorized and sorted with summarized tallies of scanned items, by brand and model. This default view however is too dense for viewing from a distance, so I’m having difficulty deciding on:

  • Should I display only one notification at a time, full screen? If so, how should I handle scans of items occurring before notification(s) of the previous item(s) disappear(s), keeping in mind that I’d like for the most recent notification displayed on screen to always be relative to the user’s most recent scan such that the information shown is always accurate if all the user does is glance at the screen when they scan an item.
  • Alternatively, I could allow 2, maybe 3 notifications at once on screen (each occupying half or a third of it), so long as everything is still readable at a glance from ~5-7 feet away, but then how do I handle new notifications in this case, if previous ones are still on screen? Shift them up the screen (so they’re in newest-oldest/top-bottom order), prematurely removing the oldest notification, or let notifications time out normally and always occupy the “slots” as they’re available?
  • Allow the notification window (containing the notifications) to be shown manually/such that the notifications or the window containing them, never disappear(s), so that the notifications can be scrolled through (for example) if the user hears an aural warning sound/notification, but that then would mean a lot of scrolling… Not sure about this one.

The states I’m tracking are of the scans themselves, of items as follows:
Okay (the item exists in the list and has been scanned only once).
Orphan (the item doesn’t exist in the list and has been scanned only once).
Duplicate (the item exists in the list and has been scanned more than once).
Duplicate orphan (the item doesn’t exist in the list and has been scanned more than once).

I can’t track a lack of barcode sticker as said sticker is what’s needed to track state in this part of the process which is essentially validation of the information provided at the previous step; manual data entry of hardware into the system, as well as attaching barcode stickers. Note that I don’t have direct access to the database itself, which is why I have to list “Orphan” for orphaned items instead of displaying the actual pallet to which the scanned item belongs.


download bmml source – Wireframes created with Balsamiq Mockups

Thank you very much, in advance, for your help, and apologies for the length of this post! Feel free to offer advice, alternative mockups or ideas, or comment on my proposed mockup which represents a single scan-notification as well, as I’d like to offer as much information as I can with what little space I have (given that it needs to be visible and understandable at a glance from a distance).