## [ Buying & Selling ] Open Question : BOUGHT A USED CAR FROM AUTONATION TWO DAYS AGO AND HAS MOTOR mount ISSUES, should I return for my money back or fix?

I bought a car two days ago checked it with my husband. After a few days driving I realized there is a vibration that keeps bothering me. The motor mounts ended up being the problem. I spent so much money on the deposit for the car that it’s hard for me to fix it at this point. The car has a 5-day money back guarantee. I have mixed feelings, should I fix it for \$ 500 if the car is worth \$ 10,000 based on the inspection. I paid \$ 8,900 but I feel like the dealer should have taken care of it. FYI it’s in FL, the car is a Lexus RX 330 old model 2004. Dealer said I should have purchased the warranty if I wanted them to fix it. But they didn t disclose the information on the motor mounts that was stated in the INSPECTION DOCS I found later in the hood of the car from August of this year. They did not fix them because of the cost. Can they sell a car like that without letting you know? I feel very shady about this whole situation… I have a mechanic who will fix the 3 motor mounts for \$ 300 but I put so much money into the deposit and insurance… dont know if its worth it Dealer said they will not fix it because I did not purchase the warranty but dont they have to disclose any major issues? Also, they have a 5 day money back guarantee so Im thinking thats my only option. The mechanic saw the rest of the car and said everything else is good. Brakes are new and compressor and valves look new, no leaks.

## [ Buying & Selling ] Open Question : BOUGHT A USED CAR FROM AUTONATION TWO DAYS AGO AND HAS MOTOR mount ISSUES, should I return for my money back or fix?

I bought a car two days ago checked it with my husband. After a few days driving I realized there is a vibration that keeps bothering me. The motor mounts ended up being the problem. I spent so much money on the deposit for the car that it’s hard for me to fix it at this point. The car has a 5-day money back guarantee. I have mixed feelings, should I fix it for \$ 500 if the car is worth \$ 10,000 based on the inspection. I paid \$ 8,900 but I feel like the dealer should have taken care of it. FYI it’s in FL, the car is a Lexus RX 330 old model 2004. Dealer said I should have purchased the warranty if I wanted them to fix it. But they didn t disclose the information on the motor mounts that was stated in the INSPECTION DOCS I found later in the hood of the car from August of this year. They did not fix them because of the cost. Can they sell a car like that without letting you know? I feel very shady about this whole situation… I have a mechanic who will fix the 3 motor mounts for \$ 300 but I put so much money into the deposit and insurance… dont know if its worth it Dealer said they will not fix it because I did not purchase the warranty but dont they have to disclose any major issues? Also, they have a 5 day money back guarantee so Im thinking thats my only option. The mechanic saw the rest of the car and said everything else is good. Brakes are new and compressor and valves look new, no leaks.

## Turing Machine to return all prime numbers

My task is to design Turing Machine that ignores its input and returns all the prime numbers. I have some basic idea how to do that but I am not completely sure whether my approach is correct or not.

So no matter what the input is, we should ignore it. I think it would be sufficient to add another tape with cells $$1^*,2,\dots,n$$. Now, I would use Sieve of Eratosthenes algorithm as follows:

1. Move a head to the right until the head encounters an unmarked symbol.
2. Mark the symbol with a star and write it down to another write-only tape representing the output, i.e. the symbol is a prime number.
3. Now, for $$n$$ being prime, I am supposed to mark every $$n$$-th symbol with a star. I am not sure how to do it.
4. Reset.

For the third step, I think I should utilize another marking mechanism to denote a gap between the beginning and the prime resolved in that round. Then, I would be moving that “window” and whenever the beginning of the “window” would reach the prime, I would mark the symbol at the end of the “window” with a star. Not sure how to express this formally.

## Query Builder KQL return only items/folders at top level

I’m using content search webparts with cross-site publishing in an on-prem SP2013 site. I’ve got a result source that is limited to a specific library using Query text:

``{searchTerms?} (contentclass:sts_listitem OR IsDocument:True) SPSiteUrl:https://sites.sp.kp.org/teams/lscsp-cat10 ListId:0cd3f39e-61e4-456e-a149-85cb79292589 ``

That retrieves all items from the list — which includes individual documents, folders, and document sets. I want to only retrieve items at the first level of the library. Only documents and folders at the top level, not documents inside folders or document sets.

I’ve been looking through these tutorials on KQL and find lots of ways to limit to the parent of a term set.

I did find the managed property ParentLink and am using something like this:

``ParentLink:'https://<site>/<library name>/Forms/AllItems.aspx' ``

Which does work because the parent link for anything in a folder will be different. But that seems pretty much like a bad hack.

Is there an official way using KQL to tell a CSWP “Only contents of this folder, don’t look in nested folders.”?

## Recursividad en nasm error en el return Segmentation fault (core dumped)

Este es el codigo para fibonacci el codigo funciona bien y da el resultado esperado, el error está en que al terminar la recursion, necesito limpiar los llamados que hice a la funcion, pero cuando coloco el ret se cae el programa, sé que el error es ahí. Quizas el error sea la manera en que lo coloque pero no he podido encontrar otra forma de hacerlo y no lo veo mal: la idea es que al final el programa solo tiene en la pila la direccion de los calls a fibonacci entonces coloque el ret despues de la etiqueta de fin para que al hacer el primer ret y se devuelva a la posicion despues del call por gravedad vuelva al ret de nuevo y asi hasta que limpie la pila.

``SECTION  .data msg:      db "Ingrese el numero a calcular(1-9)?: " len:      equ \$   - msg     SECTION .bss count:    resw 1 result:   resb 1     SECTION .text       GLOBAL _start _start:   mov edx, len   mov ecx, msg   mov ebx, 1   mov eax, 4     int 80h    mov ecx, count   xor ebx, ebx   mov eax, 3   int 80h    xor ecx, ecx   mov cx, [count]   and cx, 0fh    mov ax, 1   mov bx, 1 fibonacci:    push bx   push ax    cmp cx, 1   je final    pop ax   pop bx     mov dx, ax    push dx    add ax, bx    dec cx   pop bx    call fibonacci  final:   ret    xor ebx, ebx  mov eax, 1  int 80h ``

## Return the smallest subset of an array whose elements sum to at least given value

Suppose we are given an array `A[1..n]` and a value `C`.

Does there exist an algorithm with linear expected run time that can produce an array that is the smallest subset of `A[1..n]` whose elements sum to at least `C`?

## How to parse JSON to return null as default if complex object empty/null/undefined?

Using HTTP Request to get SP item, having trouble parsing JSON to return anything for null object.

Can return null for an empty string column as shown below, how to do so for a more complex object like a lookup if no value selected?

``{ "type": "object", "properties": {     "Area": {         "type": "object",         "properties": {             "Id": {                 "type": "integer"             }         }     },     "Package": {         "type": ["string","null"]     } } ``

If object doesn’t exist in JSON output, can’t run logic against it (if null do this, else do that)

## If a user clicks an action link from w/in a modal and is then taken to a separate page, do they return to that open modal after completing the action?

I’m designing an internal tool that enables my coworkers to curate post-op care plans for orthopedic patients on our platform (basically sending educational content to users at specific intervals).

I’m running into a challenge with one of the main flows, which is adding exercise videos to a care plans. Right now, on the main care plan page, you click an “Add Exercise” CTA that opens up a modal (shown here) where the user is able to multi-select the exercises to be added. Cool.

BUT a dictated requirement was that the user should also be able to create a totally new exercise from the same modal (see arrow). This makes sense in terms of supporting the user’s workflow, but I’m stuck on the ensuing flow; like, I know that clicking “Create New Exercise” will flip the user over to the “Create New Exercise” page where they can build that content – but after the user creates the new exercise and clicks save, what does the user return to? Do they return to the original page with the still-open modal that now has a little “Exercise Created” confirmation message?

I honestly think this supports the user’s goals best, but is it strange/bad ux that the user comes back to the original page and the original modal is still open? Am I missing another, better, interaction entirely?

Thanks everyone, eager to hear what you think!

## Why does Get-SPDatabase not return SharePoint Configuration Database

After migrating all the SharePoint 2013 databases to a new SQL server (2012) as per Microsoft documentation at how to change database in farms, can’t retrieve the SharePoint configuration database using Get-SPDatabase command even though other databases like content databases and service databases are returning in the result. Have tried with the ServerInstance, but no success. It seems that the default database (webpplication.parent.DefaultDatabase) is not set to the configuration database. But not sure how to set it now. Any ideas? The Admin account and farm account have required permissions to the SQL server roles and databases.

Also, config db is not returning with the exact database name and SQL SQL alias

``    Get-SPDatabase -ServerInstance SQLAliasDEV | ? {\$  _.Name -eq 'SharePoint_Config_SearchFarm'}   ``

Another symptom is that browsing certain page in the central admin such as “Manage servers in this farm (FarmServers.aspx)” is throwing Object reference not set error. The underline error is pointing to connection string.

System.NullReferenceException: Object reference not set to an instance of an object. at Microsoft.SharePoint.ApplicationPages.FarmServersPage.get_ConfigurationDatabaseServer() at ASP._admin_farmservers_aspx.__Render__control6(HtmlTextWriter __w, Control parameterContainer) at System.Web.UI.Control.RenderChildrenInternal(HtmlTextWriter writer, ICollection children) at System.Web.UI.Control.RenderControlInternal(HtmlTextWriter writer, ControlAdapter adapter) at System.Web.UI.Control.RenderChildrenInternal(HtmlTextWriter writer, ICollection children) at Microsoft.SharePoint.WebControls.AjaxDelta.RenderChildren(HtmlTextWriter output) at System.Web.UI.WebControls.WebControl.RenderContents(HtmlTextWriter writer) at System.Web.UI.WebControls.WebControl.Render(HtmlTe…

I’ve verified the web config files as well as the registry key for the Configuration database, but all look good. What other places the connection string might be stored at?

Thanks – Matiur Rahman

## Should a retail web-site always return the same items for identical searches made by different users?

We supply a large number of products for purchase through our web-site. There is a new initiative to apply a third-party AI product to hijack searches to return products based on both the search term and predictions from browsing history and other people’s search history with successfully processed sales. If I now search for a keyword, I will get a different set of products returned than if someone else searches for the same thing. If I pass an URL of my search to a friend to compare the products, we will have different lists, so cannot discuss. The list, I find, changes day-to-day, on my own machine due to the AI’s suggestions.

Is this a design “no-no”?

Should the AI be solely used for recommendations and not for the core search results?

Is there any guideline to cite that makes suggestions on this?

I have also put this on: Software Recommendations