Outdated package version error even though manually updated it

Question: I am building a GNOME project. When I run autogen.sh it gives me error about outdated gettext.
nidhi@nidhi:~/gnome-calendar$ ./autogen.sh
autoreconf: Entering directory .
autoreconf: running: autopoint --force
autopoint: *** The AM_GNU_GETTEXT_VERSION declaration in your configure.ac
               file requires the infrastructure from gettext-0.19.8 but this version
               is older. Please upgrade to gettext-0.19.8 or newer.
autopoint: *** Stop.
autoreconf: autopoint failed with exit status: 1

I have upgraded this package manually since I use Ubuntu 16.04.
nidhi@nidhi:~/gnome-calendar$ dpkg -s gettext
Package: gettext
Status: install ok installed
Priority: optional
Section: devel
Installed-Size: 4236
Maintainer: Ubuntu Developers <email@example.com>
Architecture: amd64
Multi-Arch: foreign
Version: 0.19.8.1-1ubuntu2
Depends: libc6 (>= 2.17), libcroco3 (>= 0.6.2), libgomp1 (>= 4.9), libtinfo5 (>= 6), libunistring0, libxml2 (>= 2.9.1), gettext-base, dpkg (>= 1.15.4) | install-info
Recommends: curl | wget | lynx-cur
Suggests: gettext-doc, autopoint, libasprintf-dev, libgettextpo-dev
Breaks: autopoint (<= 0.17-11)

Why is it giving this outdated error?
Answer: Updating autopoint solves the problem.
Comment: I'm glad you solved the issue yourself. I recommend to [edit] this answer to expand it with specific details about how to do this. (See also [How do I write a good answer?](/help/how-to-answer) for general advice about what sorts of answers are considered most valuable on Ask Ubuntu.)
Answer: Just update gettext to the latest version. To update it manually, download and install gettext from https://ftp.gnu.org/gnu/gettext/.
Comment: Welcome to Ask Ubuntu! I recommend to [edit] this answer to expand it with specific details about how to do this. (See also [How do I write a good answer?](/help/how-to-answer) for general advice about what sorts of answers are considered most valuable on Ask Ubuntu.)
Answer: I'm seeing this error when I try to run ./autogen in this repo: https://github.com/libyal/libfsapfs
libfsapfs$ ./autogen.sh
autopoint: *** The AM_GNU_GETTEXT_VERSION declaration in your configure.ac
               file requires the infrastructure from gettext-0.21 but this version
               is older. Please upgrade to gettext-0.21 or newer.
autopoint: *** Stop.
autoreconf: autopoint failed with exit status: 1

Apparently I need to update gettext.
Tested on Ubuntu 20.04.
sudo apt install gettext installs only version 0.19.8.1-10build1. So, we will need to manually update it.
From: https://www.gnu.org/software/gnulib/manual/html_node/gettextize-and-autopoint.html

If you get an error message like *** error: gettext infrastructure mismatch: using a Makefile.in.in from gettext version ... but the Autoconf macros are from gettext version ..., it means that a new GNU gettext release was made, and its Autoconf macros were integrated into Gnulib and now mismatch the po/ infrastructure. In this case, fetch and install the new GNU gettext release and run gettextize followed by gnulib-tool.

How to update gettext:
# check your current version. I see `gettext (GNU gettext-runtime) 0.19.8.1`
gettext --version

Go here: https://www.gnu.org/software/gettext/ --> "Downloading" section --> find the latest download URL right there. It will be used below:
wget https://ftp.gnu.org/pub/gnu/gettext/gettext-0.21.1.tar.gz
tar -xf gettext-0.21.1.tar.gz
cd gettext-0.21.1
time ./configure
time make  # took my computer about 4 minutes
sudo make install
. ~/.profile

# check your version to make sure it updated! I now see
# `gettext (GNU gettext-runtime) 0.21.1`
gettext --version

Note: if testing gettext --version in a different terminal from the one you built gettext in, run . ~/.profile in that different terminal first, or close and reopen it, to make the new version of gettext accessible.


InDesign: how to prepare book for perfect binding

Question: I am designing a perfect bound book, I understand that the pages will all be single, so they can easily be in different paper (colour, weight etc), but I can't figure out how I can tell the printer which page will go where, should I send separate pdfs and then tell them the exact order?
Comment: You should really ask the printer. Beware that this probably will affect the price, since it's a lot more trouble to print certain pages on certain kinds of paper than just doing all the pages in one go.
Answer: Typically perfect bound uses 8-page "saddle stitch style" signatures that are then stacked, so you could bundle them as individual files of 8-pages each.
I have never done any real work with production binding (just some home projects and intro stuff) as I rely on the production staff's know-how. You can insert individual sheets and have i.e. non-multiples of 4 but I think that if the binding is just stacks of paper glued at the end, they fall out. For my BS home stuff this happens (I don't mind), but for good work, the signatures are usually clamped and ground down. Presumably, this roughs the paper and provides a better surface for the glue. Someone with more direct experience in this regard can speak to that.
I do an "ad book" that often has 2 special colors, and I bundle them as 3 individual books named using the paper color. Note that the colored pages are either contiguous or are not running pages and can be inserted randomly inside the signature without editorial issues, and the book is folded and stapled.
However: if your book is using a arbitrary random color paper on every even page, then you probably want to speak directly with the production people to work out a way to communicate how you want it. Usually you get the sales person to set up a meeting with the three of you. It really is crucial to get the person who is actually in charge of the production of the piece. The sales department will not be able to handle it properly.
If it were me, I would also provide a paper dummy of what the finished product is supposed to look like, at least for page ordering. I would bring something of this nature to the preliminary meeting and say "this is a dummy of what I am thinking, with random color order, weights etc. what is the best way to submit a file so that your production staff understands how to put it together?"


Can I use Google Sheets to Automatically Update Font Styling, Size, Color, etc.?

Question: I have been creating a contact list in Google Sheets to continually add and update names, emails, organizations, etc. for work. I am often copying and pasting this information from other sources as to avoid typoes. I know I can paste as special, though at times I am copying and pasting a handful of entries and this would take more time than I would like. Is there any way to have a script automatically change the font styling of a cell (size, bold, background, typeface, etc.) if it doesn't match the default?
Answer: You can use macro that records your desired font, size, cell color etc. It's a script that don't need coding. You may check more info on this link
Found in: Tools > Macros > Record Macro
Answer: If I understand your question correctly, you don't need a script at all.
You can use Shift-Ctrl-V instead of Ctrl-V to match the target styling. I do this all the time. As long as you're comfortable with keyboard shortcuts, it's significantly faster than doing Edit > Paste special > ... - in fact, just as fast as regular Ctrl-V :)
You can also paste stuff in however you normally do, and then use Ctrl-\ to undo all formatting (at which point it'll just be plain Arial 10pt, or whatever), and then bulk change afterwards, once you've cleaned up the text -- at first glance this option doesn't really answer your question, but I've found that in some cases the first "cleaning-up" of data after it's been pasted in can be easier to do with a bare bones look.


Sparse Representation vs Dense Representation

Question: The one of the benefits of ReLUs is sparsity. Sparsity arises when a≤0 (a = wX+b). The more such units that exist in a layer the more sparse the resulting representation. Sigmoids on the other hand are always likely to generate some non-zero value resulting in dense representations. Sparse representations seem to be more beneficial than dense representations.
Is it true that sparse representation is more beneficial that dense representation, especially for Neural Networks?
Answer: Sparse representations are not always better than Dense, though they do have an upper hand. In terms of various inputs being handled (varying amount of information), without a sparse prior we shall be trying to learn same size fit for all representation, that may be inadequate. Here dense representations will have lesser degrees of freedom, resulting in non-linear relationship. Overall our representation mathematically needs to mimic the topology of underlying manifold. But in how many scenarios can we have sparse representation, is the bigger question/problem, where we we have sufficient uncorrupted identities. Approaches like SLR dictionary decomposition come in handy in such scenarios.


iOS 15: Websocket inside WKWebView issue

Question: In our app we are reliant on a web socket inside a WKWebview. In previous releases this web socket worked well. In the iOS 15 betas though this web socket behaves differently: it connects to our server successfully but once the client tries to send any data through it the web socket throws an error and closes with a non descriptive error:

The operation couldn't be completed. (kNWErrorDomainPOSIX error 54 -
Connection reset by peer)

Looking into the system log the deepest error I can make out is:

nw_protocol_boringssl_error(1772) [C12.1.1:2][0x102e0d540] Lower
protocol stack error post TLS handshake. [54: ]

A test web socket to another server seems to be working.
I also notices that a MitM proxy like Charles no longer shows web socket connections in the iOS 15 beta. This just indicates that something might have changed.
Because the communication via this socket is very important for the functionality of our app I must know what the issue is. I tried adding ATS exceptions for the URL of the socket to no avail.
Maybe this is a temporary bug in iOS 15 that will be fixed until its released? Or maybe anyone has experienced this kind of error in the past?
Answer: It seems that the issue is related with websocket compression on IOS 15 (permessage deflate). Disabling the compression for ios 15 devices on the server side helped.
This is obviously not a solution, but only a quick fix (if you have an access to the server). Here is a discussion on the same topic.


Can you remember? vs Do you remember?

Question: What are the differences (if they exist) in meaning between the two questions?
Answer: "Do you remember" is mostlty used when referring to spontaneous memories, very often with nostalgic overtones. For instance "Darling, do remember that little hotel we stayed in by Lake Como? Wasn't it romantic? or "Mum, do you remember Dad getting his fish and chips grabbed by that seagull?"
"Can you remember?" is more often used for specific pieces of information which require concious recall. For instance "Can you remember what we did with the suitcases?" or "Can you remember the way to work out the circumference of a circle?"
The two forms are sometimes combined as in "Darling, do you remember that romantic little hotel near Lake Como? Can you remember what it was called?"
These aren't hard and fast rules, either form can be used for either purpose but there is a definite tendency to use them in the way I've indicated.
Answer: Can you remember suggests that you are not sure of what you are asking.
For example:
"Joe, can you remember if we shut the doors?"
In that sentence, the person asking is not sure if he shut the doors.
On the contrary, Do you remember suggests that you know what you are saying, but want to find out if the other person knows about it.
For example:
"Joe, do you remember that we shut the doors?"
In that sentence, the person asking knows that he shut the doors, but he wants to know if Joe remembers, perhaps to prove a point.

Can you remember? vs Do you remember?


What is the main difference between making a query using Manager.raw() method and connection.cursor() method?

Question: I need to know which one is faster and why, and I also need to know the cases for each one.
I try them both but I can't find the difference.
Answer: The main difference between using the Manager.raw() method and the connection.cursor() method for making queries is that the Manager.raw() method is used to directly execute queries on the database, while the connection.cursor() method is used to create a cursor object which can be used to iterate over the results of a query.
In terms of speed, the Manager.raw() method is generally faster because it does not require the overhead associated with creating and managing a cursor object. However, the connection.cursor() method is more flexible and allows for more precise control over the iteration of the query results.
The Manager.raw() method should be used when you need to execute a query quickly and do not need to iterate over the results. The connection.cursor() method should be used when you need to iterate over the query results, or need more precise control over the iteration.


What are some applications of virtual vector bundles?

Question: K-theory gives a nice way to define vector bundles that don't actually exist. For example, given a singular variety $Y$ embedded into a smooth variety $X$ we can define the virtual normal bundle as
$$
[N_{Y/X} ]:= [T_Y|_X] - [T_X]
$$
This is useful for studying characteristic classes of singular spaces. What are other examples of virtual bundles and their applications?
Comment: Fredholm index and orientability of moduli spaces.
Comment: @ChrisGerig Would you like to expand this comment into an answer with examples?
Answer: This shows up when trying to orient moduli spaces of objects, using the Fredholm index. In slightly more fancy language (for googling buzzwords), we try to equip a moduli space of objects (such as solutions to some PDE) with an orientation sheaf, using Quillen's construction of the determinant line bundle of a family of Fredholm operators. When you're in the right setup: you take your solution, look at the linearization of the PDE around that solution, and form its determinant line bundle, which has a $\mathbb{Z}/2\mathbb{Z}$ choice of orientation.
Here is a possibly simple example, which ultimately gives a homology orientation for the Seiberg-Witten invariants on a closed Riemannian 4-manifold $X$. Consider the (Fredholm) operator on differential forms $$\delta=d^\ast+d^+:\Omega^1(X)\to \Omega^0(X)\oplus\Omega^2_+(X)$$
Form the "determinant line bundle" $\text{det}(\delta)=\text{ker}(\delta)-\text{coker}(\delta)$ and look to orient this virtual bundle. If we can deform $\delta$ to a $\mathbb{C}$-linear operator $\delta_\ast$ that would be awesome, because $\text{det}(\delta_\ast)$ has a canonical orientation (it's built from $\mathbb{C}$-vector spaces). So a deformation $\delta_t$ from $\delta_0=\delta$ to $\delta_1=\delta_\ast$ (through Fredholm operators) induces an element $\text{det}(\delta_t)$ in the K-theory of the interval $[0,1]$. So this element is trivial and orientable, and as a result, an orientation associated with $\delta_\ast$ (which we know is $+1$) defines an orientation associated with $\delta$.
Comment: I assume that the orientation sheaf that you get here is just the usual one from Verdier duality? As in a shift of the dualizing complex $t^! R$ for whatever ring of coefficients $R$ you want to use, and $t$ the terminal map to a one-point space.
Comment: I (un)fortunately don't know that language, I only know the basics from Bredon's *Sheaf Theory*.
Answer: I don't really think of virtual vector bundles as negative vector bundles. One can prove that if $E$ and $F$ are vector bundles, that the $K$-theory classes $[E]=[F]$ if and only if $E\oplus \mathbb R^l\cong F\oplus \mathbb R^l$. Moreover, any $K$ theory class is of the form $[E]-[\mathbb R^l]$ for some $l$. Hence the $K$-theory classes are exactly the stable equivalence class of a vector bundle, possible shifted by dimension.
An explicit description of all vector bundles over a compact space is usually too hard, however the $K$-theory can sometimes be computed. This tells us exactly what the vector bundles are up to stable equivalence.
As Chris Gerig alludes to, the $K$-theory of a compact space is related to Fredholm operators by the Atiyah-Jänich theorem. Namely $K(X)\cong[X,\mathrm{F}(\mathbb H)]$, i.e. the $K$-theory groups can be seen as homotopy classes of maps into the Fredholm operators $F(\mathbb H)$. Elliptic PDE's define a map into the Fredholm operators, and this gives information on possible solution sets of the PDE.


Sitecore 10.0.1 Unversioned Images not rendering across languages

Question: I created an image in Media library using Sitecore Unversioned Media Template.
After addign image in say En, if I add a diffrent image for Spanish and come back and check English image, it shows the Spanish one. Similarly all language versions of the image field is showing the same last updated language image.
Answer: That's the whole point of Unversioned media items. Unversioned means that there are no separate language versions. It's one shared.
If you set one in English, it will be same for any other language. If you change something in Spanish, it will be applied to all languages, including English.
If you want language specific media items, use Versioned template.
It's a bit confusing as when it comes to fields it's Shared checkbox which states whether field should have only single value shared for all languages, and Unversioned field checkbox has another meaning. Naming Unversioned for media items suggests something else. But still, this is how it works.
Comment: CMS isuue is fixed. But in the site, only En version images are showing even in other languages.
Comment: How are links to images rendered? Can you create another question showing the code used for generation of image links (or which SXA component you use), what it the url which is rendered, what are response cookies of image response (which site does it use and language)?
Comment: Okay. There is not much code written for it. Just fetching the image item from sitecore and showing it
Comment: You can read here about embedding language in media link: https://doc.sitecore.com/xp/en/developers/100/sitecore-experience-manager/build-item-and-media-urls.html
Comment: Thanks. So just changing the template to versioned, has fixed the issue it seems. But this image alone is highly caching that it just shows En image alone.


Powershell Active Directory Cmdlets: Quest or Microsoft

Question: Is there any reason to choose Quest's Active Directory cmdlets over Microsoft's at this point?  I haven't come across anything that isn't doable with Microsoft's ActiveDirectory module yet, but I'm genuinely curious why Quest's are hanging around.  I realize they were quicker on the draw in bringing something bit more usable to the public, but that advantage has since passed.  Nonetheless, I still see innumerable references to the Quest cmdlets that make me thing I'm missing something.  Perhaps people just don't want to rewrite their already functioning scripts, which is also understandable.
Answer: Simply; inertia.
Two things:

The effect that you're seeing.  People do a google search on how to do something, and the Quest cmdlets are used.  They download and work with them, not knowing there's an alternative.
Smaller install base of Windows 2008 R2 (a domain controller must be on R2 for AD Web Services to use the Microsoft cmdlets), so not everyone can use the Microsoft tools.
Comment: Actually, Windows Server 2008 R2 isn't even required.  You can run the Active Directory Management Gateway Service on any Windows 2003/2008 domain controller which gives you 99.99% of the functionality of Active Directory Web Services.  I don't have a Windows 2008 DC and I've been using this for a long time.  So apparently it's just inertia.
Answer: I didn't even know that Microsoft had any AD cmdlets until this thread. Every time you search for "add user" scripts or whatever only the Quest stuff comes up as Shane has pointed out.
Thanks for bringing this to my attention and I guess it'll take a while for the MS stuff to climb the google search results. Until then, Powershell newbies like me will keep getting directed to Quest.
Answer: We use the Quest AD cmdlets because we exclusively run 2003 servers and xp workstations still. Although, as you mentioned, you can run the gateway service on a 2003 domain controller, you still can only run the MS cmdlets from a NT 6.1 client (Win7/2008r2).
Comment: That's an important clarification.  Good catch!


Fuzz Testing for Solidity Smart Contract

Question: I'm deeply involved in smart contract security, and I'm currently exploring the world of fuzz testing for Solidity smart contracts. Fuzz testing seems to hold significant promise for identifying vulnerabilities, but I'm interested in learning from those with experience in this area.
What are the best tools and frameworks available for fuzz testing Solidity contracts? Are there any recent developments or updates in this space that auditors should be aware of?
Are there any specific contract types or functions that are more susceptible to fuzzing?
Answer: Foundry and Echidna are the two main fuzz testing tools I know of. There's also been research and development with Symbolic Execution, essentially a way to mathematically determine branches in your code when fuzzing rather than using totally random input. Echidna uses symbolic execution. Technically, I think you would classify Symbolic Execution and fuzz testing as different things, but they definitely are used for the same purpose.
https://book.getfoundry.sh/forge/fuzz-testing
https://github.com/crytic/echidna
https://security.stackexchange.com/questions/196860/fuzzing-versus-symbolic-execution-whats-the-difference
Some more tools: https://www.alchemy.com/best/fuzzing-tools


Expansion of a ket-physical interpretation of coefficients

Question: Consider I have a state represented by the Ket:
$$|\psi\rangle=\sum_i a_i |\phi_i\rangle$$
What are the physical interpretations of the coefficients $a_i$? My guess is that $|a_k|^2$ represents the probability that the 'paritcle' is in the state $  |\phi_k\rangle$ is this right? If so does it only hold for orthonormal basis or any basis?
Comment: *"My guess is that $|a_k|^2$ represents the probability that the 'particle' is in the state $  |\phi_k\rangle$ is this right?"* If the state is being described by the ket $|\psi\rangle$, it cannot be described also by $|\phi_k\rangle$ at the same time. One has to choose one.
Answer: The coefficients $a_k$ quantity the projection of the state $|\psi\rangle$ onto the $k^\mathrm{th}$ basis state. So if you measure in that basis you would expect $|a_k|^2$ of the time to measure state $|\phi_k\rangle$. If you change the basis you will need to recalculate the projection coefficients.
If you are in a non-orthogonal basis the projections are not unique.
If it is not a normalized basis you must normalize the coefficients to get the correct probabilities.
You should always try to work in a orthonormal basis.
Answer: It's convention to normalize the wave function, but this is purely something done to make calculations easier. States multiplied by a c number(complex number) are completely equivalent.
This is why we choose to normalize states (magnitude 1). It makes the calculations for things like the transitions probability between states easier. If you include your constant your just have to divide by the norm anyways in this kind of calculation, which is equivalent to having a normalized state to begin with.


How am I supposed to locate the planets Uranus and Neptune with a 70 mm f/5.7 refractor?

Question: I can locate all of the planets other than Uranus and Neptune. This is mainly because they are very dim and I live where there is just enough light pollution so that I can't spot them. I have a Gysker 70mm telescope and a camera able to take detailed pictures of most of the planets. The only problem I have run into is the fact that I can't always locate what I  am looking for. How do I locate Uranus and Neptune? How can I tell them apart from other stars that might look similar to a deep blue sphere?
Comment: Right now both are on the wrong side of the sun, so you can't see them.  Wait six months!
Comment: Why do people keep downvoting me for no reason? I'm looking for comments and answers. Please don't downvote.
Comment: Under high enoug magnification, they will have an obvious visible size.  You can use astrometry.net to plate solve the image to see if you're in the right area.
Comment: This turned out to be helpful. Thank you.
Answer: Right now you won't.  Both are on the "wrong" side of the sun and so not easily observable from Earth. At the moment (early 2020s) they are in the constellation of Aries and Pices which are visible in the northern hemisphere fall.
Both Uranus and Neptune are below naked eye visibility. To photograph them you need to use software (such as stellarium) or a star chart and an ephemeris to predict their position, then you can print out a finder chart and use that to locate the planet.
Be aware, that with your kind of equipment you have an absolute limit of of about 2 arcsecond resolution. Uranus has a maximum size of 3.7 arcseconds (perhaps just enough to present as a very small disc) and Neptune has a size of 2.2 arcseconds (it will appear starlike)
You can confirm that you have located the planet by observing it on several nights. The planet will notably move across the background of stars if viewed over a few weeks.
You can use astrometry.net to identify stars in your photographs, and so distinguish planets from stars.
Comment: "The planet will notably move across the background of stars if viewed over a few weeks." Hence the name "planet" (*planḗtēs*, "wanderer").


SQL 2005 Permission Precedence

Question: Very simple question -
I have two database roles (Basic, Admin).  Say I explicitly deny the Basic role from deleting from table A and grant that to the Admin role.  If I am a user who is in both roles, can I delete from table A?
Answer: Never a simple answer...
For a direct DELETE, a user in both roles won't be able to DELETEDENY always has precedence when permissions are checked
For indirect via a stored procedure, the permissions may not be checked if both table and proc have the same owner. So both GRANT and DENY will be ignored. This is called "ownership chaining"
Personally, I don't really use DENY. Here's why:
In your case, you only need to GRANT DELETE to the Admin role. The Basic role needs neither DENY nor GRANT (but run REVOKE DELETE to remove the Basic DELETE permission)

The lack of a DELETE permission (by REVOKE) means a DELETE will fail for a Basic only user. DENY isn't needed to prevent this.
An Admin user (whether in both roles or not) has a GRANT so the DELETE will succeed. No DENY to block them
Answer: If you're the dbo (or aliased to dbo) or sa (which is implicit dbo on all databases), then you automatically have all permissions. Otherwise, a DENY anywhere on the permissions chain overrides any GRANT.
I'm not 100% certain on this, but I think if you have a user in two roles, it will apply all the granted permissions from the roles, then layer any DENY over the top.
Comment: If I had to use DENY, I'd have a special role for this to separate GRANT and DENY because of the precedence issue
Comment: I can't think of many use cases for DENY instead of REVOKE, personally. Using DENY is effectively saying "okay since you're in this role, you're NEVER going to have access to object X, no matter what other roles you have".
Comment: yep, same here.

SQL 2005 Permission Precedence


Difference between "without" and "with no"

Question: What is the difference between the usage of without and with no? For example, without sound and with no sound.
Comment: And what is the difference between "it was no easy task persuading her,"and " it was not an easy task persuading her."?
Comment: I think the difference is the same there is between "it was no easy task persuading her," and " it was not an easy task persuading her."
Comment: Negation can either attach to "with", giving "without", or to "any", giving "no".  In dialects allowing multiple expression of negation, negation can attach to both, giving "without no".
Comment: "without" can also be used as the opposite of "within", i.e. to mean outside. This usage is somewhat archaic, though.
Answer: There's no difference in meaning between "without xxx" and "with no xxx", but the former is far more common. For example, "walked with no haste" gets only 3 hits in Google Books, whereas "walked without haste" gets 5310 (an extreme example, but the preference is always there).
The other main difference in usage is we tend to avoid "with no xxx" with gerunds (verb +ing). (Note how "with no caring" virtually "flatlines" on this graph).
Answer: I would say that the "no x" formulation is a more emphatic expression of "without x". "Without" expresses the importance of x in a negative fashion, while the "no x" expresses it affirmatively...the former expresses (merely) that x should not be present, while the latter expresses the positive absence of the existence of x.
Overall, it's pretty subtle.
Comment: Thanks a lot :) What do you mean by "the positive absence of the existence of x"?
Comment: It's the difference between "he's not here" and "he's absent".
Comment: Chris, are you a linguist? If yes, can you recommend me anything to read on this topic?
Comment: Nope, just an enthusiast. I seem to remember something along these lines in "The Language Instinct" by Steven Pinker, though I can't recall where, precisely.
Answer: Although there is very little difference in the OPs particular example, there is, in fact, a very significant difference!
There is little difference between 'without water', and 'with no water'. Without and with are both prepositions. When we are using 'without X' to mean there was no X at all, there is little difference in meaning between this and 'with no X'.
However, we cannot always use 'with no student', to replace for example 'without a student'. Sometimes we can use a to mean a specific item that is being thought of by the listener but is not identifiable to the listener. For example, if we were on a coach tour and Bob hadn't boarded and the coach left without him, then we could say:

We realised we'd left without a student.

but we could not say:

We realised we'd left with no student(s).

This would mean there were no students on the bus.
Really this is not quite the same thing grammatically as in the 'without sound', 'with no sound' example. We have replaced a with no as well as replacing without with with. The word no is a determiner. Determiners are words like a, the, some, any, this, that.
We actually cannot replace without with with no if the noun phrase already has a determiner:

without the book
*with no the book
without some help
*with no some help

The meaning of the phrase will also change if there is a number in determiner function:

without two friends
with no two friends.

The reason that this doesn't matter in the Original Poster's example, is that sound is being used as a non-count mass noun, and so doesn't need a determiner in the first phrase.
Hope this is helpful!
Answer: Mayhap others will have other differences, but I only can point out one difference in usage.
In the following sentence:

He achieved this with no mean effort.

"Without" would have a different meaning. "With no" here has the meaning that the fellow put a lot of effort. "Without" couldn't have been used here.
That's the only difference I could point out.
Comment: Interesting :) But don't you think that in this sentence "no mean" is an expression in which these two words go together and it doesn't mean a negation?
Answer: With no is the common usage in American English.
Americans say, "I want water with no ice" rather than without ice, though both mean the same thing.
Answer: I'm probably wrong but with to me suggest an addition to something. Hence to me it is coffee with sugar or coffee without sugar although coffee with no sugar might be widely used and accepted but it still seems wrong to me.
p.s. I'm not a native speaker although I do speak it like a native.
Comment: This doesn't really answer the question. The question is asking for substantive differences in meaning between, say, "coffee without sugar" and "coffee with no sugar", not for personal opinions about which seems best.
Comment: It "seems wrong to you"? You mean it seems like something not widely used and accepted?
Answer: I believe that in the sense of 'without sound' it could mean many things. without gives the option of their previously being sound. 'with no sound' doesn't give that option at all.
Answer: As a computer engineer, speaking of a function, I may say "with two arguments", "with one argument", "with no argument". Mind that "without argument" may be better. And "with zero argument" could work as well. But when there's no argument, I think "with (no argument)".
Overall, I'd say that it's idiomatic. FumbleFingers is right about "without" being more common, and "Araucaria - Not here any more." is right about "with no" not always working, but sometimes "with no" is the very n-gram you want. Notice in the chart bellow how "with no idea" has switched place with "without an idea" over the last two centuries.
Answer: I'm a dutch man myself and I was wondering if "with no" was a grammar fault in American english. I see it quite often and am amazed. In my native language it is considered improper use of our language.
It seems to include something first and then right away exclude it. The proper way to formulate it, translated to English, would be "without."
Example: "Dad can I go outside with no jacket." (This would be considered wrong.)
Example: "Dad can I go outside without a jacket." (This would be considered right.)
Comment: \**I've been through the desert on a horse without a name.* —America
Comment: It may be improper in Dutch, but nowhere is it improper in English.


What to keep in mind when playing at high frets?

Question: When playing a melody or soloing around the top frets, 12-15, on electric guitar, is there anything specific to keep in mind? I'd guess the strings are more sensitive to accidental bending, and of course the fret spaces are smaller. Is there anything more I should be aware of?
Answer:
The action is likely to be higher in this area of the fretboard, which may slightly affect your fretting action
The tone of the notes for a given picking position will be mellower, because the lower harmonics will be excited relatively more
the speaking lengths of the strings will be thicker relative to their length, so the harmonic structure will be less "ideal" (the sound will have component frequencies that are further away from being integer multiples of the fundamental).
left hand muting is often easier, as the same light touch will damp the string faster
Comment: @Anna The sound will have component frequencies that are further away from being integer multiples of the fundamental. (Note that this isn't non-ideal in the sense of being 'bad', just in the sense of not adhering to the expected behaviour). This might make lower strings sound slightly more clangy and 'bell-like'.


Disabling print and selection in Flexpaper HTML5

Question: I want to know how to disable  print and selection in Adaptive UI of Flexpaper, specially HTML5 version. I have different types of users in my website, some of them can print and select text in the PDF, others can only print, and another group can just read (not print, not selection). How can i do this in Adaptive UI in HTML5 version?
Answer: You can refer this link: http://flexpaper.devaldi.com/docs_parameters.jsp. It has got all solutions to your problem. You can configure the viewer to show or hide certain tools by passing appropriate values in jquery while initializing the viewer.
Answer: It seems that disabling print option is available in the licensed readonly versions of the product


What is the path to upload an image in javafx

Question: new to java here.
I have a java project in netbeans 12.2 using javafx and I want to load an image from a resources folder into a javafx image object.
I have the following code:
Image image = new Image( "/resources/splash.jpg", 32, 32, false, true )

But I am getting the following error:

java.lang.IllegalArgumentException: Invalid URL or resource not found

So I think the path I'm trying to use is incorrect, can someone please help me find the correct path? My folder structure is as bellow
Answer: Try
Image image = new Image("resources/splash.jpg", 32, 32, false, true)


How do I create a Android app using geofence in which when the user reaches the destination it automatically get rewards without doing anything?

Question: I thought of sending location based push notification which when clicked give the person points https://documentation.onesignal.com/docs/location-triggered-event in that case if notification were cleared the person will not get reward, how can i give the person reward automatically when he reaches the destination.
Answer: Android's LocationManager allows your app to register for Proximity Alerts.  When the device enters a geographic location of interest (as defined by your app), your app will be notified via an intent sent to a BroadcastReceiver in your app.
Details: https://developer.android.com/reference/android/location/LocationManager.html#addProximityAlert(double,%20double,%20float,%20long,%20android.app.PendingIntent)
Answer: Another alternative you can use is this, https://developer.android.com/training/location/geofencing . Note that it has a 100 geofence limit.


Changing license of personal GitHub repository

Question: I know you can't take someone else's code and change it from GPL to MIT, but if you are the only contributor to a repository can you freely switch it from GPL to MIT?
Answer: If you published code once under GPL, that version of your code is GPL code, that is nothing you can change again. Someone else (in fact, thousands of people) could have made a copy, that copy is under GPL, the GPL text is part of the code, and you cannot enforce anybody to change his copies "just because you wish to".
However, if you create and publish a new version of the code, you can change your license to whatever your want for that newer version. That is true even if the only effective code change is the license itself. IANAL, but as long as you are the one and only copyright holder (which I assume, since you wrote you are the only contributor), you can do with your code and the usage rights you grant to others whatever you want.
Comment: @semicolon: you probably did not get my point. This has **nothing** to do with the way you publish your files to the world, if you use a repository, an ftp server, a bunch of cdroms, or print your source code in written form to a T shirt. If you are the copyright holder, you can do what your want with the code. The only thing you can not to is to tell people: you took a copy of my former GPL licensed code (and maybe forked it still under GPL, as required), now please change the license of that version afterwards.
Comment: "However, if you create and publish a new version of the code."

Does a commit count as creating and publishing a new version of the code, or do I explicitly have to create a new repository with the same code except for the license change? Because I would prefer not having to do that.


Brake lever compatibility

Question: Is a V-brake lever (specifically the Avid Speed Dial 5) compatible with a side-pull road brake (specifically the Colnago X brake)? The bike is being converted from track bar (bar-end brake levers) to flat bar.
Answer: In general, V brake levers are not compatible with sidepull brakes because of different mechanical advantage. Avid Speed Dials have adjustable mechanical advantage, so you might be able to adjust them for sidepulls.
Answer: You shouldn't, but it might work. V-brake levers work for mountain disc brakes and v-brakes. Everything else needs a short pull lever.
As in the answer to this question, some people claim Avid brakes have enough adjustment to make it work. The better solution is to buy a standard pull brake lever (look for one marked for cantilever brakes for example), or use a travel agent with the V-brake (long pull) levers.

Brake lever compatibility


SQL Server 2012 ALTER Index Job failing

Question: We setup ALTER Index job with Ola's maintenance solution, the job is failing with below error, the job is failing with locking,
Comment: That is no small index.  I would experiment doing a REBUILD of an index of that size with different MAXDOP options to achieve faster results.  As for why, you can setup a blocked process Extended Events session to capture the why.  https://www.sqlskills.com/blogs/erin/capture-blocking-information-with-extended-events-and-the-blocked-process-report/. Here is another good resource for Blocked process XE https://www.brentozar.com/archive/2014/03/extended-events-doesnt-hard/
Comment: Some information on the index would be helpful.  Is it clustered? Unique? Is there a clustered index on the table? How many fields in the index? Also, is this table actively being written to as the rebuild happens? How long are locks held on the indexes in this table (either this index OR the clustered index, if any). Finally, try it with LOB Compaction OFF, and see if you need to reorg first, then do it again with compaction.
Answer: Here are a few possible solutions to your problem:
Option 1: Don't rebuild that index
That's a 30 GB index you have there.  What measurable performance problem are you trying to solve by rebuilding it?  Especially at 5% fragmentation, this seems like an incredibly expensive operation (in terms of system resources and locking) for very little gain.
You can read some very well-founded opinions on why you might want to give up on the index rebuild here:

Stop Worrying About SQL Server Fragmentation
Good Reasons to Rebuild or Reorganize Indexes
Video: Why Defragmenting Your Indexes Isn't Helping

This is far and away your best, and EASIEST, option.  This is the home run.  Do this.
Option 2: Rebuild online
Index rebuilds require a SCH-M lock.  If you add WITH (ONLINE = ON) to your ALTER INDEX command, that lock will be deferred until the very end of the rebuild operation, which might increase the potential that whatever is preventing your maintenance task from completing has released its locks.
Option 3: Identify the blocking query
This is probably the most work of the options.  You can run sp_WhoIsActive while the ALTER INDEX command is running, and it should show you what else is running, and specifically it will show you what other session is blocking the ALTER INDEX command from acquiring its lock.  At that point, you have a bunch of options to deal with the problem:

reschedule your index maintenance so it's not running at the same time as the blocking query
re-work your blocking query so that it takes less locks / different locks / holds locks for less time (you could post another question with execution plan details if you need help with that)
reschedule the blocking query so that it is not running during the period when you do index maintenance

SQL Server 2012 ALTER Index Job failing


multiple calls to web service with flex/AMF?

Question: I'm using flex & AMF to make a web service call.
When the application loads I'm calling to 4 operations from the same service.
as far as I know flex should start to render the UI once it gets the result.
But in my case I can see in the fiddler that all the calls to the operations are using the same HTTP request. This means that the flex is waiting to the response from all operations.
I was wondering if there is something I can do to split the calls ?
Thanks
Answer: Yes of course. Do the next service call in your result method of your responder.


What language features are useful for fast-prototyping?

Question: What languages features are known for being useful for fast prototyping of projects before starting the actual code?
Answer: I suggest to look into model-driven engineering. Several tools provide you with quick one-click prototyping out of high level (graphical) models.
For instance, WebRatio lets you design Business processes or User interface models and generates a running web application for you. It is based on BPMN and WebML graphical notations.
[Disclaimer: I'm with Politecnico di Milano and WebRatio, and among the inventors of WebML]


Have I ruined my brew before I even begin?

Question: I've a question. Have I ruined my brew?
I sterilised everything as normal. Got my 2 litres of boiling water and added the contents of my coopers Australian pale ale to it mixed it up with the spoon. Filled the fermentation bucket up to the 22.5L level. Seen it was at 25°c and pitched the yeast. Then had a sudden realisation what I'd missed. Forgot to add the brewing sugar. So I quickly opened my coopers beer enhancer 2 and added it on top of the yeast. Gave it a stir to break the sugar up. And sealed it up. What I'm wondering is because I pitched the yeast before adding the brewing sugar will it affect it in anyway? Because I added the sugar after I'd filled the bucket the total volume went up to 23.5L too. Also because I did it in a stupid order I had to take my o.g reading with the yeast pitched so will this effect anything?
Please help I made a right mess of this one.
Thanks James.
Answer: Absolutely nothing wrong with what you did.
Answer: The biggest consequence of what you did is to add an extra liter of water. Your finished beer will be slightly lighter. For example, if it was to be 4.5% Alcohol by Volume, it might be 4.1-4.2% ABV instead. You probably won't notice the difference.


can you replace Tektro M280 pad adjuster bolt only?

Question: I totally stripped the adjuster bolt on my rear caliper, it had a hex head, now it's round and doesn't turn anymore. Do you know if it's possible to replace the pad adjuster bolt only without replacing the entire caliper?
I couldn't find that part online.
Answer: If you can extract that bolt and measure it, then identifying a replacement would be easier.
However when I tried to remove an adjuster from a different brand of caliper, it was locked in during manufacturing and couldn't be disassembled without unbending some retainer clips.
In the end I upgraded from a mechanical caliper to a low-end shimano hydraulic for relatively low cost.

Another temporary fix might be to use a hacksaw or dremel to cut a slot across the whole bolthead, and use a very large flathead screwdriver to adjust the bolt position.  It's up to you whether this is acceptable.

Do consider this is part of your braking system, which is an area where function is critical and compromise can have consequences.
Consider an all-new replacement caliper if the bolt doesn't come out easily.

Update there's no chance you're going to find a replacement in a hardware store because its not a bolt; instead it is some kind of pancake head.
I expect it also has 2 or more spring-loaded ball bearings on the sides that push out into those recesses.
On the positive side, if you can grab the current one, it should come out without damage.  Perhaps use an oversized torx bit and hammer into the hole as a sacrificial driver.
Comment: @SandroAntonucci having ridden an ebike with a failed cutoff switch, I don't recommend it (the manufacturer tethered the cable too tidily, so using the brake lever's barrel adjuster strained the plastic switch body until it broke, leaving the switch dangling). That was probably the same brake as you've got, but I haven't seen that bike for a few years now
Comment: Considering how critical it is and cheap to replace I don't think any diy work will be worth it. It was expected since I couldn't find it any replacement part.
Comment: the only issue is that I have a hub motor and I would like to keep the motor cut off system
Comment: @SandroAntonucci Oh okay that's an added wrinkle.  Changing lever will loose the sensor/switch that controls motor cutoff.   It may be possible to replace this brake with hydraulic and leave the other brake as mechanical, but this is getting outside my knowledge.  Googling suggests there are hydraulic levers with cutoff switches, and there are also inline-sensors that do the same job, eg https://www.converted.co.nz/product/brake-cut-off-sensor-hydraulic/  but I can't speak with experience.
Comment: On both the similar designs I've dealt with, the adjuster screw was retained by a plastic clip that also acted as an adjusting knob until it failed. That came off quite easily, allowing access to the real metal adjuster, which could then be backed out
Comment: BTW the thread looks to be something like M20x1, and it's effectively a grubscrew. Bet much a custom part
Comment: I'll replace the caliper :)
Comment: @SandroAntonucci  I went for the lowest spec shimano hydraulic pre-bled brake and lever combo.  It was dead simple to install, superior braking and both sides move rather than being a single sided brake.   Highly recommended especially for the price.  I think it was MT-200 set.
Answer: That looks like another BB5 copy (or almost, as it uses different pads). I've failed to find replacements for Promax's BB5 clone or Avid's original - but the thread is the same on both of those.
Stripping the head of this part seems like a common failure mode - they're aluminium and prone to binding and getting mucky. If you got a replacement (whether Tektro or one of the brands I mentioned) a little anti seize grease on the threads is a good idea. I clean and regrease mine when I change pads at home.
The fact that they're made of aluminium also means the trick of cutting a slot for a screwdriver is easy - but you're quite likely to tear it with the screwdriver. I suggest taking the pads out and applying penetrating oil (chain oil will do if you don't have anything lighter, but wait a few hours with the bike lying so gravity pulls it in).
Answer: Thanks to a reddit user I was able to find the part, I haven't purchased it since I replaced the caliper already but it is possible. This is the link https://tektro-usa.com/product/md-m280-pad-adjuster-spring-and-ball-bearing/


Creating DEM from topography map in QGIS

Question: For my geology diploma project I need to create  DEM from topography map my professor gave me to use as a base map. The map is georeferenced. My idea was to draw lines over the izolines of the map, then specify thair elevation and then create DEM. Equidistance of the izolines is 10m. I don't know how to do it or is it even possible in QGIS.
Comment: are your contours actual data or an image of an old map? are you asking how to trace the contours or how to convert contours to a DEM?
Comment: My contours are image of an old map, I want to trace contours over the izolines of the old map. After i do that I think I can make DEM using those contours. Thank you.
Answer: It can be done in QGIS.  It's called digitising when you're drawing over a scanned map (image, or raster in GIS terminology).
Check this handy, simple yet accurate tutorial Digitizing Map Data and come back if you run into more questions.


What are some reliable, high-quality resources for studying a piece of music?

Question: In order to assimilate a piece of music more fully, I would first study the score, play it, hear it and observe it by myself. However, I would then desire to consult a high-quality resource that would give me deeper insight into the music. Two composers I am very interested in, Schoenberg and Stockhausen, both published writings on music, which are rich and rewarding. But what about Beethoven, and Bach? Are there any excellent writings on music that will help me to appreciate the music more deeply, in the way that a literary critic and analyst can bring to light hidden structures and ideas in a book that fascinates us (history of the author being sometimes noteworthy but secondary)? Are there any canonical, distinguished music critics or analysts? Someone who understands music as deeply as composers do themselves.
Comment: If you are willing to apply the use of your space bar to the question then I bet you will be more likely to get a response. It is pretty hard to read as is.
Answer: I believe you are looking for the discipline of musicology.
Start with the New Grove Dictionary of Music and Musicians, and then follow the bibliographies from there. Also, ask a reference librarian how to search for academic journal articles and books in musicology. In the Library of Congress labeling system, these books are in the ML category, literature on music.
One recent book on Beethoven that is highly regarded is "Beethoven Hero" by Scott Burnham. On Bach you might try "Bach and the Meanings of Counterpoint" by David Yearsley. There are thousands more books and articles on these composers.


Alpha for each layer

Question: How can I set a script  that applies an alpha channel for each layer in the PSD file? An action makes it for one layer only. I`d like to have an ability to automate it for a bunch of layers.
Comment: What? Alpha is automatic if the background is transparent... Control+Shift+E = merge all (visible) layers. What are you asking?
Answer: What you probably want is a Photoshop Script instead which can allow you to apply an action to layers. Since you have an already recorded action you could use xtools to convert the action to a script. You might also have a look at their forums to see if your need has already been addressed with somebody elses' script.

Alpha for each layer


What is this white stuff on my cactus and how do I get rid of it?

Question: What is this white stuff on my cactus and how do I get rid of it?
Comment: Are these tiny bugs?
Answer: These could be tiny bugs called scale insects (Hemiptera).

More information here: https://www.missouribotanicalgarden.org/gardens-gardening/your-garden/help-for-the-home-gardener/advice-tips-resources/pests-and-problems/insects/mealybugs/insect-pests-of-cacti-and-succulents.aspx
Answer: The plant may have been weakened for two possible reasons. One being a poor genetic constitution and the other may be insufficient lighting. I suspect the latter may have contributed, since you have put your cactus on the windowsill. Is this plant variegated or did it become paler after the onset of infestation?
Unfortunately, Opuntias (and the Opuntioid family in general) are susceptible to pests. One reason being

Opuntioids also lack fiber caps to their phloem bundles, which in other cacti protect against sucking insects and stiffen developing internodes.[5]

Source: https://en.wikipedia.org/wiki/Opuntioideae
From my experience with Opuntias, they normally grow well, but once an infestation begins it speeds-up and is hard to get rid of. I had the same problem with Opuntia Vestita, which grew outside. Possibly the hairy O. Vestita needed more direct sunlight hours that what I could offer?
Saving this plant means administering systemic insecticides and rubbing alcohol until it can grow new healthy shoots and no longer needs clean-up. Preventive measures may be growing them in full sun or intense grow-light. A better alternative would be to grow a new plant, not before cleaning up the area.


Virus - by-pass with binairies repackaging

Question: Why don't « hackers » (or more accurately, « virus maker ») just do repackaging over their malware to by-pass antivirus software? Because it resolves the issue of the virus signature (kind of hash), doesn't it ?
How can anti-virus software detect these kinds of easy modifications?
Comment: Anti-viruses also insert hooks into lots of system level function calls.  If they detect abnormal application behavior they flag the process as malware.
Answer: File hashes are by far not the most helpful method of detecting malware (unlike a couple of decades ago). Today, malware recognition (and sometimes classification) is heavily based on real-time heuristical analysis of its operations. This analysis deals with lots of data, which mostly consists of the system calls performed by the application, and their order. The system calls are tracked via a technique called hooking.
Of course, other things are taken into account. For example, most malware authors out there fail dramatically with their packers and cryptors, making it obvious that a file was, well, packed/crypted. And some just use well-known packers/cryptors that generate files which are easily recognized by antiviruses.
Answer: They do, you can lookup Metamorphic code(http://en.wikipedia.org/wiki/Metamorphic_code) and Polymorphic code(http://en.wikipedia.org/wiki/Polymorphic_code). They are techniques to make malware harder to detect by changing the code each time it's executed.
Most AV-products rely on hashes, the other way to detect malware is by using heuristic scanning where they look at how the software behaves, this is however not perfected and can give a lot of false positives.


Kingsport Bill and Lyndon

Question: I have the achievement "To Catch A Thief" and I've been reading that the only way to get the "Kingsport Bill" lore is to speak to Lyndon about his origins and it will give it to me the lore. Obviously I have discussed his origins as I have the achievement, why didn't I get the Bill?
Answer: You need to talk "Lyndon's Origins" when he is not your current merc. So.. you hire ench or templar, then talk with him.

Kingsport Bill and Lyndon


New line in MapInfo SQL Select

Question: Is there a character I need to use to state a new line in the MapInfo SQL Select box (e.g like ; in SQL Management Studio) or is this not possible. The highlighted (yellow) area is where the new line begins.
Comment: btw, I think you are missing either AND or OR where you have highlighted it with yellow
Comment: Hi Pete, I'm not sure if I explained this properly but where the gap is I want it to be a 'new' query, aka so each query would be returned as a new line in the selection table
Comment: I don't follow. Normally each record in the result will be a record in the input table. Or each record can be a grouped set of values from the input table. Can you explain a bit more what you are trying to do?
Comment: I am trying to build a massive query to return the average of a column between certain values. I have now realised I have WAY too many queries to run (~29,000) so I have cheated a little and populated a csv with the query as each line: http://i.imgur.com/8RhjvT5.png then using MapBasic I have it run the query for each row in the table and append the results to a new table: http://i.imgur.com/e6JKtTW.png
Comment: Using something other than MapInfo to perform these SQL queries would probably be much more efficient but I had to find a way that involved the current skills I have, I think asking for some SQL training from my employer next is a must
Comment: Alan, that's not cheating - that's getting things done :-) I would probably have ended up doing the same or similar thing. One recommendation is to use the "NoSelect" keyword in queries like these where you don't need the result highlighted or selected into the Selection. MIght even speed up the query a bit
Answer: You can use Ctrl + Enter to insert new lines in the fields to make it easier to read the query in the dialog
Answer: Not an expert, but try one of these:
https://stackoverflow.com/questions/1085662/new-line-in-sql-query
Explanation:
http://blog.sqlauthority.com/2009/07/01/sql-server-difference-between-line-feed-n-and-carriage-return-r-t-sql-new-line-char/

New line in MapInfo SQL Select


Force vs momentum concept

Question: Force is a push or pull right. If we have more force that means that we push harder. Now I if we have more momentum, what does it mean? Since momentum is the quantity of motion that means that we have more motion. But, what does it mean to have more motion. Do you move faster? If so, then why isnt momentum and velocity the same?
Answer:
Momentum is the quantity of motion.

Word soup. You can stir them around all you like, but those words won't expain anything. The language of physics is math.
$\vec{p}=m\vec{v}$
The momentum of a particle in classical mechanics, $\vec{p}$, is equal to its mass, $m$, times its velocity, $\vec{v}$.

why isnt momentum and velocity the same?

Because $m\vec{v}$ is not the same as $\vec{v}$.

what does it mean to have more [momentum]?

Momentum is interesting because it obeys a conservation law. If you add up the momenta of all of the particles in a system, that total will never change as the state of the system evolves, so long as no force from outside of the system is applied to any of the particles.
You can use that fact (and some mathematical reasoning) to make accurate predictions about how a system (e.g., our Solar system) will evolve over time.

https://en.wikipedia.org/wiki/Momentum
Comment: Maybe it will help the OP to point out that F=dp/dt=ma
Answer: The simple explanation i can think of is that momentum describe how hard is it to stop that object. The more momentum an object have, the harder it is to stop.
Momentum is not only about velocity, but also mass, it's stated in the definition of memontum
$$\vec{p}=m\vec{v}$$
for example, compare a small ball with a mass of $5$ g and a big boulder with a mass of $5000$ kg, both are moving at $2$ m/s. You can see that of course it is harder to stop the boulder, even though they both are moving at $2$ m/s. So in this sense, momentum is very different from just velocity.
The more momentum an object has, the harder it is to stop, i.e. it either needs more force to stop, or it will take longer to stop. We can see that from the relation between force and momentum
$$\vec{F} = \frac{d\vec{P}}{dt}\\
\int \vec{F} dt = \int\vec{dP}$$
to make it simpler we can consider simple case where the force is constant, so that
$$\vec{F} \Delta t = \Delta\vec{P}$$
you can see that for bigger $\Delta{P}$, we either need bigger $\vec{F}$ (greater force) or bigger $\Delta t$ (longer time)
Answer: I believe your answer lies in this simple relation between momentum and force:
Although momentum is also a property of an object in motion, it does not simply mean to have "more motion" and is not the same as velocity. Momentum can be related to force in a simple derivation.
F= ma
v= vi+at
assume vi=0;
F= m.v/t
Think of the case where an object with a velocity v collides with a stationary object. The stationary object may start to move. However, this means that a force must have acted on that object. This force is equal to the change in momentum of that object over the time over which the force has acted. Thus, momentum can explain the origin of this force by using a property of the motion described by m times v over t.  In other words, the mass,time and velocity are the "essential" properties used to describe this force, so you cannot use just to velocity or just the kinetic energy.

Force vs momentum concept


Opening OpenOffice.org documents is slow on Windows 2003 server

Question: While trying to open/access OpenOffice documents on Windows 2003 server it gives a very slow response, while accessing the same document using Microsoft Office 2007 it opens up instantly.
The version of OpenOffice installed on Windows 2003 server is 3.2. I have even tried saving the document in OpenDocument format (.odf) itself, but even then it is slow.
This happens generally when opening the documents with OpenOffice Calc.
Is there any settings that an be tweaked to make it open up faster?
Comment: I have posted the same on serverfault hence I am deleting this.
Comment: Open office is just slow to start. I think it's an architecture thing (Java vs Native Code).
Comment: I assume this is a terminal server?
Comment: Yes it is a Terminal server.
Answer: One of the option is go to tools > options > Click on Memory. Decrease the number of objects in cache for inserted objects.
Answer: MS Office is started at boot time, so it is already loaded and running, even if you are not using it.  That is why it appears to start instantly.  Open Office on the other hand, only uses system resources when you are using it, but the tradeoff is that you need to give it a chance to start up.
Once Open Office is open on one document, does it take a long time to open another one, or is it as quick as MS Office?
Comment: I did try removing the same from the startup but the behaviour is the same. As checked on the task manager there is a process soffice.bin which cnsumes lot of memory.
Answer: Do you have Java Runtime Environment installed in your Windows 2003 Server machine? If not, install it and then enter Open Office settings (start > execute > soffice > tools > options) and in Java section point to Java installation.
Try also to see if some optimized server settings, like some related services that would be disabled, are affecting OpenOffice performance or if in Performance Settings (win+break > advanced > performance > settings > advanced) the use of the computer is optimized to programs or to backgound services/system cache). Change something and retry using OpenOffice.
Comment: To download JRE: http://www.java.com/inc/BrowserRedirect1.jsp?locale=en


Norse like mapping software with input

Question: I am looking for a software similar to the Norse attack map to give a visual representation of software deployments. Preferably, this software will take time and location as input and display an arrow, line, ping, etc. to a location on a U.S. map.
Answer: Python has a plethora of charting tools including the capability of plotting to maps:

matplotlib + mpl_toolkits.basemap - Offline on your local machine, requires some learning to code python, if you can't already, but the examples in the gallery are a good starting point and only a few lines each.
plot.ly - Online, includes a grid, spreadsheet like, interface as well as APIs for python, R, MATLAB & JavaScript and interfaces to Excel, Scada, Julia, etc. but the map type charts are only avialble with the Pro, charged for, subscription.
bokeh - Both online and on your machine, recently added geo data mapping so still a work in progress to some extent. Requires python coding but less than matplotlib and has a number of very good and compact examples.

It is also well worth taking a look at QGIS which allows you to produce maps from various data sources, in multiple layers, including adding your own data in point or line layers without having to know any programming.
Plot.ly has a free plan, which excludes the mapping, and a number of paid plans which I personally consider reasonably priced.
All of the other tools are free, gratis & open source.
All of the tools are available to work on multiple platforms including Windows, Linux & OS-X.
Comment: No offense, Steve, but what if the OP can't code?
Comment: @Mawg plot.ly has an excel like interface option as well as a python API but the mapping options are a pro only feature answer extended to address.

Norse like mapping software with input


Does CHT=CHT have a geometric isomerism because of tritium atoms?

Question: Is the radioisotope of hydrogen considered as a new atom? Can you detect it with an H NMR?
Comment: Just to address what the answers don't answer - yes, you should be able to pick this up the 1H or 3H NMR as the couplings are different in these two different species.
Answer: Yes isotopes can induce geometric isomerism.  You can induce chirality by using different isotopes of atoms; the molecule $\ce{CHDClF}$ is chiral with the deuterium atom (you do not need radioactivity) while ordinarily $\ce{CH_2ClF}$ is not.  Chirality won't work for ethylene (that molecule is still planar and thus mirror-symmetric about its own plane no matter what iostopes are used for any atoms), but cis-trans isomerism with two deuterium atoms still can work.
Comment: Neutrons are made up of quarks which are charged, so can interact with electromagnetic radiation.  Differences in number of neutrons can thus show up as rotation of polarized light.
Comment: So compounds like $\ce{CHDTCl}$ rotate the plane-polarized light or in other words show optical activity. Could you please tell whether my conclusion from your answer is correct, as I think optical activity (due to difference in the counter-rotating circularly polarizing light) is because of chemical properties (attributed to valence electrons, spatial orientation, etc.,) and not physical properties (like different atomic masses of isotopes) ?
Answer: Actually we define geometric isomerism to just differ between compounds. As the cis and trans forms of that compound are different they will have geometric isomerism.


How to Route URLs in Play 2.0 so They're Indifferent to an Ending Slash

Question: Can I capture the following two routes in a single line?
GET     /game                    controllers.Main.app.gamelist
GET     /game/                   controllers.Main.app.gamelist

Comment: There is a solution on Play 2.x posted here: http://stackoverflow.com/a/13196239/422288
Answer: This is currently not supported and a ticket has been submitted to the issue tracker. There is also a discussion regarding this (including some workarounds) on Google Groups.
Hopefully this will be implemented in some smart way soon.
Comment: I marked you correct, however if this gets solved we should probably update your answer at a later date.
Answer: If you are using playframework 1.x then it is:
GET /game/? controllers.Main.app.gamelist

Comment: Thanks, I'm using version 2, whoops forgot to add 2.0 to the title.
Answer: Whilst this doesn't seem to be supported at the moment, it can be achieved by overriding onRouteRequest in Global.scala
We're doing it like this:
import play.api._
import play.api.mvc.{Handler, RequestHeader, Action, Controller}

object TrailingSlashRedirector extends Controller {
  def redirect(request: RequestHeader) = Action {
    Redirect(request.path.dropRight(1), request.queryString, 301)
  }
}

object Global extends GlobalSettings {

  override def onRouteRequest(request: RequestHeader): Option[Handler] = {

    val EndsWithASlash= """/(.*)/$""".r

    request.path match {
      case EndsWithASlash(_) => Some(TrailingSlashRedirector.redirect(request))
      case _ => super.onRouteRequest(request)
    }

  }

}

Answer: (Might be late for Jacob, but someone might find this useful)
I had this problem as well, here's my workaround:
I put at the END of my routes the following line (this way, it matches urls that didn't match anything else)
GET  /*path  controllers.Application.appendSlash(path: String)

And here's my Application.appendSlash:
public static Result appendSlash(String path) {
char ending = path.charAt(path.length() -1 );
if (ending != '/')
    return redirect('/' + path + '/');
else
    return notFound();
}

You may want to add your 404 Not Found view as a paramer to notFound()
Hope this helps
Davide
EDIT: Just one thing: this will work for common browser navigation (if someone types the url but forgets the trailing '/'), but it will NOT work with ajax or otherways automated requests: for that you will anyway have to type the complete url.
Answer: Another possibility is to put this into your Global-Object:
If a route with a trailing slash is not found it tries one with the trailing slash removed.
The routes file just has route without trailing slashes...
@Override
public Result onHandlerNotFound(Http.RequestHeader requestHeader) {
    if (hasTrailingSlash(requestHeader.path())) {
        return Action.redirect(removeLastChar(requestHeader.path()));
    }
    return super.onHandlerNotFound(requestHeader);
}

private static String removeLastChar(String value) {
    return value.substring(0, value.length() - 1);
}

private static boolean hasTrailingSlash(String value) {
    return value != null && value.endsWith("/");
}

Answer: Here's the solution I've found
import play.api.mvc.RequestHeader

import play.api.Play.current

class NormalizedRequest(request: RequestHeader) extends RequestHeader {

  val headers = request.headers
  val queryString = request.queryString
  val remoteAddress = request.remoteAddress
  val method = request.method

  val path = request.path.stripSuffix("/")
  val uri = path + {
    if(request.rawQueryString == "") ""
    else "?" + request.rawQueryString
  }
}

object NormalizedRequest {
  def apply(request: RequestHeader) = new NormalizedRequest(request)
}

ans then I use it like this in Global.scala
override def onRouteRequest(request: RequestHeader): Option[Handler] = {
  super.onRouteRequest(NormalizedRequest(request))
}

And here's a similar question: play framework2: remove trailing slash from urls


How do I access the root folder of the phone's internal storage using the PC?

Question: How can I access my internal phone storage on PC? I mean the root storage, the path. So that I could put back the lost app on the system storage.
Answer: You might want to take a closer look into adb, which gives you a command shell directly on the device. Using adb, you could do the following:
# copy your file to the device
adb push my.apk /data/local/my.apk
# open a shell on the device, and become root
adb shell
su
# now check where and how your /system partition is mounted, and make it writeable
mount | grep system
> /dev/block/stl12 /system ext4 ro,relatime,barrier=1,data=ordered 0 0
mount -o rw,remount /dev/block/stl12 /system
# copy your .apk file to the system apps
cp /data/local/my.apk /system/app
# remount /system back to read-only
mount -o ro,remount /dev/block/stl12 /system

In above example, you need of course to replace my.apk with the correct name. Same applies to the mount data: The line starting with > is just an example, which might (and most likely will) not match your device. So carefully check the output of mount | grep system to use the correct values here.
If you don't have ADB installed yet, please follow the information given in the adb tag-wiki, which also points to installation instructions and more.


Why condensation nuclei is required for condensation and formation of clouds?

Question: Why condensation nuclei is required for condensation and formation of clouds?
What is the physics behind it?
Can you please explain it intuitively?
Thank you.
Answer: Suppose we form a sphere of ice with radius $r$ from water vapour in a cloud. Then the mass of the ice will be $\tfrac43\pi r^3 \rho$ and if the associated latent heat for the process is $L$ the enthalpy change of the water will be:
$$ \Delta H_1 = -\tfrac43\pi r^3 \rho L \tag{1} $$
where $\Delta H$ is negative because this is an exothermic process. However the formation of a drop creates a surface with an area $4\pi r^2$ and this area has an associated surface energy $\gamma$ joules per square metre. That means to form the sphere we have to supply an enthalpy:
$$ \Delta H_2 = +4 \pi r^2 \gamma \tag{2} $$
where this time $\Delta H$ is positive because we have to supply energy to create the surface. Incidentally the surface energy $\gamma$ is the same as the surface tension in liquids. All interfaces, air-liquid, air-solid and liquid-solid, have an interfacial energy that is the same physical property as the surface tension.
Anyhow the total enthalpy change is just the sum of these two enthalpies:
$$ \Delta H = 4 \pi r^2 \gamma - \tfrac43\pi r^3 \rho L \tag{3} $$
and as a rough guide the sphere of ice will form only if the total enthalpy change is negative. This isn't quite true as I'm ignoring the entropy change, but it is a useful first approximation. If we write equation (3) as:
$$ \Delta H = 4 \pi r^2 (\gamma - \tfrac13 r \rho L) $$
then $\Delta H$ will be negative only if the bracket is less than zero:
$$ \gamma - \tfrac13 r \rho L < 0 $$
or:
$$ r_c > \frac{3\gamma}{\rho L} \tag{4} $$
where $r_c$ is the critical radius for nucleation. For radii less than $r_c$ it is energetically unfavourable to form the sphere of ice and it would simply evaporate again.
The problem is that if we are growing our ice sphere from nothing the radius starts out at zero and since that is smaller than $r_c$ the sphere would just evaporate instead of growing. This is an example of a nucleation barrier. The sphere needs to reach a certain size before it can grow, but it cannot reach that size without growing.
And this is where the nuclei come in. A nucleus like a dust particle provides a surface that ice can grow on without having to start from nothing, and that evades the constraint in equation (4), though I confess I am unsure exactly how the nucleation works.
Comment: There's much commonality with [this answer](https://physics.stackexchange.com/a/615870/146039), perhaps enough to consider the question a duplicate.
Comment: @Chemomechanics And indeed [this from eight years ago](https://physics.stackexchange.com/questions/105256/why-does-soda-fizz-when-it-meets-ice/105307#105307). However I didn't think any existing questions were close enough to close this as a duplicate.
Comment: Your answer is the best I have read to date on the nucleation question, thanks for providing it. -NN
Answer: To address the only question remaining in the wake of John Rennie's excellent exposition, my understanding of the physics of "seeded nucleation" is as follows:
Let's take a dust grain in a water vapor-laden parcel of air as an example. The formation of condensed water droplets is inhibited by the Young-La Place energy barrier described above by John. Now, enter the dust particle as a nucleation seed.
If the dust particle is composed of something that is wetted by water, then there will be a tendency for water vapor molecules that impinge upon it to stick and over time the particle's surface will become fully populated with water molecules. At this point the dust particle stops looking like dust to other water molecules; instead it looks like a glob of water molecules that have already condensed, and to which more molecules can then get stuck- and the condensation process is thus "seeded" by the presence of dust in the air.
Note that this process relies again on surface-energy arguments, just as in John's description.


Services Views module no longer maintaines. What are my options?

Question: My site relies heavily on the Services and Services Views modules. The Services Views module is no longer being maintained and it has a security vulnerability in it. Could someone help me either identify what the security vulnerability is. Or point me to a decent alternative module?
Comment: There are 3 issues from people offering to maintain the module. The Drupal community does a great job of recognizing needs to be filled in my opinion. The only thing to do is to step up to maintain the module as a developer or sponsor as a company. This is one of the ways of contributing back. That said there are *three* issues already of people looking to maintain the module so the security issue will probably be resolved. Since the security vulnerability is not divulged (sometimes it usually is) it may be fairly significant so you need to analyze the risk of what func. it provides
Answer: The Views Datasource's sub module called Views JSON is what I would recommend: https://www.drupal.org/project/views_datasource
It's very similar to Services Views, except you just create a "JSON Data Document" Page Display for your View, and specify a Path at which the View can be accessed.


is that fine to install ubuntu 20.04 LTS amd in intel?

Question: i have window 10 64 bit intel processor. and i want to install ubnutu 20.04 LTS amd 64 bit processor. will it create any problem in the performance of the PC?
Answer: If you're referring to the "amd64" in the ISO file name (ubuntu-20.04.1-desktop-amd64.iso), this means the CPU architecture of your CPU. Modern AMD and Intel CPUs all support the amd64 architecture. There are other architectures, but they're niche, and you would probably know if you had a CPU with one of those niche architectures because you would have bought the CPU with a particular goal in mind. Most CPUs that people buy for workstations, gaming PCs, etc., use amd64 architecture.
Answer: A long time ago AMD came out with 64 bit CPUs.  Intel came out with them after.  Ubuntu tagged the new versions as amd64 and has not changed since then, even when Intel had 64 bit CPUs also.  AMD64 is for amd and intel CPUs.


standard errors when bootstrap is not possible. delta method?

Question: I run standard fixed effects regressions on a panel of aggregate firm level data (variables like average value added, average labor).
I use the fixed effects that I estimate to simulate firm level data and apply the Simulated Method of Moments to estimate another parameter.
How can I compute the standard errors of such parameter?
Since I'm using estimated parameters (with an error term) to generate firm level data, the natural way should be bootstrap. However, I cannot "re-build" the starting panel because (with subsamples of firms).
Is the delta method a possible way to compute the standard errors in my case?
thank you!
Answer: You should be able to bootstrap data which has a panel structure.. Why exactly can you not "re-build" or, to stay in bootstrapping terms, "re-sample" the data and re-estimate the coefficients and generate a distribution for your coefficient of interest?
Comment: Thank you for your reply. Basically I start from a panel of aggregate firm data and I compute several FE. Then I use these estimates to simulate firm level data and compute a parameter using Method of Simulated Moments. If I'm not wrong, in order to be able to bootrstrap I should re-create a panel of aggregate firm data and re-compute the FE and re-apply the MSM, but I cannot do that because I cannot build a new panel because i don't have the initial firm level data.
Comment: Aha, well I suppose you should ask yourself where the source of uncertainty around your parameter estimate would come from. Is it from simulating firms based on your FE's or something else? If it is the first, then I don't see a problem in re-sampling your initial panel and re-calculating the MSM in a Monte Carlo style.. Alternatively, you could re-sample from your simulated firm data as well, which would not capture uncertainty in the FE, but more so in the second part of your approach.


How can I remove contacts from a phone without removing them from my Google account?

Question: I have a 2nd phone (LG Stylo 6) that I will only use for some specific things & do not want all my contacts on it.  I hadn't realized sync was on when I entered my email. I shut sync off but when I go to remove contacts on the Stylo 6 I get a message "This contact will be removed from Google Contacts & all your synced devices."
I don't want to remove the contact from my Google contacts, I just want to remove it from this particular phone. Is this possible? Or do I have to come up with a new email for this phone so my Google contacts aren't effected?
Answer: This is not a good answer, but it's how I ended up doing it:
Settings > Accounts > Google > select account > Disable contacts sync
Then delete all the contacts by clicking selecting one for example and then on the three dots and select all -> delete.
Disclaimer -> do not sync the contacts again.
If you want to then you will have to go back to an older version by using the web view contacts.google.com


Converting Primary to Logical Partitions

Question: I am dual booting Ubuntu on Windows 8, and during the install, I get no option to install alongside Windows 8. A previous question gave me the information that I needed to make my partitioned drive for Ubuntu a logical drive before it can be used in Ubuntu. The person who answered gave me a link to a program that you had to pay for.
Is there any way that I can change my primary partition to a logical partition without paying for a software? I am stuck on this final step in installing Ubuntu!!
Please be specific, I am new to Linux based software.
Comment: Could you boot using live CD, run `sudo fdisk -l` in terminal, then post its output. This will help to get answers.
Comment: Did you install Windows 8 in BIOS with MBR partitioning? Or is it pre-installed? If pre-installed you have gpt partitioning and gpt does not have primary nor logical. Just one type that is in effect primary but not limited to 4 prmary like MBR(msdos). Post this. sudo parted -l
Answer: You need to make some free space out of Windows 8 for Linux.
For this, in Windows 8, go to Disk Management tool.
In the Disk Management tool:
Right click on the drive and select shrink volume.
You must leave the free space.
Now, you go to Control Panel ---- Hardware and Sound --- Power Options --- System Settings --- Choose what the power buttons do --- Uncheck the Turn on fast startup box.
You will have to choose boot from USB option from within Windows itself, pressing shift key while clicking on Restart.
Reboot and in Bios options, You must disable: Secure boot in UEFI.
Plug in the USB, the Ubuntu Live USB and boot the system from it.
Once you have booted, you will be presented with option to try or install Ubuntu. Click on install.
In Installation Type. Choose Something else.
You shall use the free space to create Root /, Swap, and Home /home, partitions.
Select the free space and click on the + sign.
Once you are ready with Root, Swap and Home, click on Install Now
Answer: Also You don't need to convert your partition to logical(That was me!!) just delete your partition(Warning: be careful all your data in this partition will be deleted) and make it as unallocated space then try to boot Ubuntu from CD/USB and follow screen instructions. If you select unallocated space partition during installation Ubuntu automatically converts that to logical.
free trial verstion of that software.
good luck.
Answer: Download Gparted (it is free) and burn it on a CD (of USB). This CD is bootable.  Boot with this CD,and you can change your whole drive system.  download at http://gparted.org/


If orbot is on but orweb doesnt connect are my other apps still secure?

Question: Im having trouble connecting to orweb even though my orbot says im connected to tor am i still secure? I also wanted to know if orbot secures other apps i have downloaded on my android phone
Answer: Orweb is only concerned with the browser part, If orbot is on make sure that you've selected the 'Apps' option to pass the applications traffic through tor. From the additional setting you can manually select the applications list. And yes root is only needed if you want transparent proxy.
Answer: I wouldn't trust other apps to be safe just because you are using Orbot. you should be able to select the Check Browser option in Orbot to see if Orweb is working through Orbot but if you want to stay safe don't go thinking your other apps are safe because they are probably not.
un-install Orbot, orweb etc and get the latest stable version and install that then try again.
Answer: Make sure your device has been rooted and you have checked the app you want to protect using orbot that's enough final check make sure your orbot is running and having a key symbol at the top left corner of your device.
Comment: How does rooting the device help? Please elaborate on what benefits this may give to answer the question.


Light with 2 4-way switches and 1 3-way switch

Question: I'm a home DIYer and have some familiarity with electrical work. I recently bought a home and am replacing the switches. In the upstairs hallway, there are 3 switches that control one light. After researching online, I learned that this should be handled with two 3-way switches and one 4-way switch. However, it looks like my setup has one 3-way switch and two 4-way switches (see pictures). The house was built in 1985 and am fairly confident there is not a fourth switch. Can anyone explain why this was setup this way or what I have wrong?
Comment: Maybe there was once a fourth switch? Any blank wall plates around?
Comment: Can you post photos of the insides of the light fixture box?
Comment: 4th switch.  That is absolutely clear.  By the way, this is conduit where the installer has a choice of 8 different hot colors... and what you see is *exactly* how I wire 3/4 ways, except I use 2 yellow instead of 2 orange.  Same concept though.
Comment: @DoxyLover was correct. I found the mystery fourth switch on another side of the house. Thanks for making me reconsider my assumptions!
Answer: A 4 way can be used as a 3 way, you just have to connect travelers to common colored screws, and attach the common wire (the hot or switch leg) to one of the other screws leaving its matching screw empty.
But seeing all terminals have wires this does seem unlikely. It would mean a fourth wire is uselessly connected to the switch and goes to the light unused or that it was routed to another junction box where another switch was intended but not installed.
You could test by removing one wire at a time from 4 ways looking for the wire that has no effect. Permanently insulate that wire and connect the wire it travels with to the common on the new 3-way. (If you do later find a mystery hidden three way it will act like a kill switch, only allowing the other switches to function when it is in the closed position.)
Comment: Indeed, "pernamently insulate" is proper, for unused wires. Don't leave mystery wires that are possibly live unconnected. Preferably insulate it on both sides, but I suppose that's part of the issue here!
Answer: In the comments, I suggested that there may have previously been a 4th switch and to look for a blank switch plate somewhere.
The answer was that there was actually a 4th switch (2nd 3-way) elsewhere in the house.


What should next week's topic be?

Question: Currently it's either Geocaching or Navigation (related?).  However, I'm open to ideas.  Reply below and vote please :)
Answer: For some us, the camping season is finished this year. A good topic could be how to properly store the summer equipment (boat, camping, hiking etc...)

What should next week's topic be?


Open access to a particular user for a particular field of a particular record

Question: A profile doesn't have access to any of the 5( Let's say A,B,C,D,E) fields in the object, however I have to allow a user in the profile to edit field A, that too for certain records.
Is it possible? How should I achieve this?
Answer: Its a two step process.

Create a Permission set to provide access to those Fields and assign that permission to that user
Use manual sharing to share such specific records with your user.

Now the user has access to records as well as permission to view/edit those fields.
Answer: Follow the below steps:-
PS: the OWD is set to Private for that object then we can restrict him from viewing all records:
<code>1. Create a permission set "Access A" : under "Object Settings" permission for object --> give permission to field "A" under Field Permission. Also give "Read, Create, Edit, Delete" permission for Object Permissions.
2. Assign the particular user with permission set "Access A".
3. Go to each account and click the button sharing to give access. Where click on Add button to select the user from available list.
</code>


New client unable to connect to stand-alone Landscape server

Question: I just setup a local standalone landscape on premises server on Ubuntu Server 16.04.3 LTS named landscape. It is Landscape On Premises release 17.03. I added the IP Addr for landscape to my client's hosts file.
The first time I tried configuring a client I got the SSL error because of the self signed certificate, so I copied the certificate locally and added it to the client.conf file. Now when I run the configuration command
sudo landscape-config --computer-title "node-1" --account-name standalone  --url https://landscape/message-system --ping-url http://landscape/ping --ssl-public-key /etc/landscape/landscape-server-ca.crt

It gets all the way to the "request registration" step, and then after about a minute returns with the error:

We were unable to contact the server.
  Your internet connection may be down. The landscape client will continue to try and contact the server periodically.

I can ping landscape by name, and wget against those URLs pulls down a response. I've restarted both the client and the server. I've tried this from two different clients on the local network, and both give the same error. The pending computers link on the Landscape server shows no pending computers.
I looked in the broker.log and found the following error:
2018-01-28 22:36:10,281 INFO     [MainThread] Starting urgent message exchange with https://landscape/message-system.
2018-01-28 22:36:10,304 ERROR    [PoolThread-twisted.internet.reactor-0] Error contacting the server at https://landscape/message-system.
Traceback (most recent call last):
  File "/usr/lib/python2.7/dist-packages/landscape/broker/transport.py", line 71, in exchange message_api)
  File "/usr/lib/python2.7/dist-packages/landscape/broker/transport.py", line 45, in _curl headers=headers, cainfo=self._pubkey, curl=curl))
  File "/usr/lib/python2.7/dist-packages/landscape/lib/fetch.py", line 113, in fetch
raise PyCurlError(e.args[0], e.args[1])
PyCurlError: Error 77:
2018-01-28 22:36:10,305 INFO     [MainThread] Message exchange failed.

Am I missing something in my landscape configuration, or is it something wrong with my network settings? I'd like to get Landscape configured. Thanks!
Answer: I had copied the servers /etc/ssl/certs/landscape_server_ca.crt locally without renaming it. The solution was to rename it to server.pem
Here is the solution in script form
sudo scp cluster@landscape:/etc/ssl/certs/landscape_server_ca.crt /etc/landscape/server.pem
sudo echo "ssl_public_key = /etc/landscape/server.pem" >> /etc/landscape/client.conf
sudo landscape-config --computer-title "node-0" --account-name standalone  --url https://landscape/message-system --ping-url http://landscape/ping --ssl-public-key /etc/landscape/server.pem

And that did the trick.


cement cracked around mailbox

Question: I cemented my mailbox to hold it steady but the cement cracked and now it is wobbly.  Does anyone know why that happened?  I probably need to dig the concrete out and replace it with new concrete and gravel. I didn't put in gravel the first time. But,of course,I am looking for an easier way.
I need to shore it up. Any ideas?
Comment: You haven't told us enough about the project to expect reliable answers. Depth, width, pole size, concrete mix, water ratio, etc. are all relevant. Please edit to help us help you.
Comment: simple answer: concrete cracks. FYI, you can now get an expanding foam product for setting fence posts that might work perfectly for this task.
Answer: To determine why the footing broke some more information on the footing such as hole depth, diameter, climate as well as what your cement mix was would be helpful.
My best guess as to why the cement cracked would be that it was not mixed correctly, or simply not enough cement to hold the mail box.
I would not recommend trying to shore it up, in my experience that is always more trouble than it is worth. Your best bet is likely to dig it out and put in new concrete. You said you are looking for a simply solution so take a look at Quikrete or something similar depending on where you are and what you can get. The premixed Quikrete stuff is dead easy just add water and fill the hole.
I like to overbuild so I would make sure the hole is 3+ feet deep, minimum 8 inches diameter and I would set a 4x4 to hold the mail box.
Comment: An 8" round hole around a 4x4 leaves barely 2" of concrete. That's not nearly enough to prevent stress cracking. I'd want the top portion of the base to be at least twice that thickness around the post.

cement cracked around mailbox


Is Microsoft.AnalysisServices.Tabular nuget package free or not?

Question: I want to use nuget package with three .dll libraries https://www.nuget.org/packages/Microsoft.AnalysisServices.Tabular/13.0.2150.2. It seems to be just additional pack to .net framework and doesn't seem to be under any special license.  But there is no any information about it. Google didn't help at all. Does anybody know its license? Not very sure 'Contact owners' will help me in the near future.
Comment: See also: [What can I assume if a publicly published project has no license?](https://opensource.stackexchange.com/questions/1720/what-can-i-assume-if-a-publicly-published-project-has-no-license)
Comment: Does this answer your question? [What can I assume if a publicly published project has no license?](https://opensource.stackexchange.com/questions/1720/what-can-i-assume-if-a-publicly-published-project-has-no-license)
Answer: I recommend to avoid it.
If you download the package manually you can check that no License available in the whole package and no references to it. So for me, this is an Unlicensed case.
Also, you can check more information about the maintainer in the Github profile.
Comment: Where did you saw that Microsoft is the author? This package isn't signed by Microsoft. Signed NuGet packages has a blue icon after the package title like these two: [NuGetAnalysisSrvs](https://www.nuget.org/profiles/NuGetAnalysisSrvs).

Also, check the [Microsoft.AnalysisServices.retail.amd64](https://www.nuget.org/packages/Microsoft.AnalysisServices.retail.amd64/) package. Contains the `dll`'s that you need.
Comment: thank you for the package, it helped!
Comment: Thanks, unfortunately I cannot, because I need this MS API :( The reason why I hope there is all is ok with license because it is something official from Microsoft, there is a lot official documentation about .ddl-s, for example https://docs.microsoft.com/en-us/bi-reference/tom/introduction-to-the-tabular-object-model-tom-in-analysis-services-amo
Comment: + mainteiner is some person we don't know, but Author(s) is Microsoft. But I don't know what is the difference.


Make the iPhone "recents" album more recent

Question: The "Recents" folder in my iPhone seems to contain every photo I've ever taken, not strictly 'recent' ones. Where is the setting that determines how far back in time this folder goes to stay in recent vs. getting moved into "All Photos?"
Comment: Comments are not for extended discussion; this conversation has been [moved to chat](https://chat.stackexchange.com/rooms/113236/discussion-on-question-by-mittenchops-make-the-iphone-recents-album-more-recen).
Answer: The Recents album is a generated view of all photos and videos by each's date added to the library.
This is in contrast to the All Photos view which is always in date captured order.
For example, if someone uses AirDrop to send you a photo they took on their phone, the photo will appear at the bottom of Recents but in the right date position for when it was taken in All Photos.
This cannot be customised. Usually, use the All Photos view, unless you're specifically looking for media by when it was transferred.