## keyboard shortcuts – How to move to certain symbol in the next line?

Let’s take a couple of lines:

``````asdkgjas;fwewgdsgflk : wthtklsjflasd
djfghkdjfgndfgdfg : wreteqw'(erlw
``````

How could I move right away to the next line so that the cursor would appear after `:` (regardless of it’s previous position on the previous line)?
If not possible to do it right away the with minimum actions.
I don’t have certain preference about text editor, it can be any.

## Errant line spacing issue with new Docs, ignoring ‘Add space after paragraph’ on page break

New documents have suddenly started exhibiting strange behaviour, and I cannot for the life of me figure it out. The main symptom is that on the page break, there is no gap between paragraphs. This is very annoying because at a glance, it makes it seem part of the previous paragraph, particularly if the text happens to align near the end of the page. However, upon closer testing and inspection, there is also a very slightly different line spacing between paragraphs, as it now fits 28 lines instead of 27.

Line Space Present

Line Space Missing

Comparison

(Turn off Print Mode once you get into the document and scroll down to the page break)

I have been through every setting I can find. It’s not custom spacing, those are identical, it’s not the header or footer, it’s not the page size, it’s not the margins, it’s not the style, it’s not the text itself (copy+pasted from one doc to the other, even copied out and inspected the HTML output). There seems to be no reason for this. And yet, the desired style persists if I make a copy of an existing document – which I can do, it’s just annoying – which suggests it is some property of the document somewhere. It’s the same if I create the doc on desktop or through the app, and I’ve also tried setting the default styles via updating the Normal style and then setting it to the default. Completely clearing all styles still leaves a difference between the documents.

Comparing the two (otherwise identical) docs shows a change “Format page: background colour, bottom margin, left margin, right margin, size, top margin” includes the difference, although all those settings are identical.

Also reported here.

## 18.04 – Output device is not listed in the settings, it is set by default to “line out”

I’m new to Ubuntu and the sound issue is giving me headaches. I’m using headphones however when I check the sound settings nothing is listed

screenshot

I found a solution to this a week ago by installing pulse audio volume control and I selected headphones in output devices. However, when I do that, the sound is distorted and it cuts out the whole time. The sound is similar to that of a worn-out record.

I tried restarting the computer but then it defaults to line out again!

By the way I use windows in the same computer and it works fine so I don’t think it’s a hardware issue.

oh and this hasn’t been always like that, I used to have no problems with audio (maybe some update ruined it?)

sudo apt-get remove –purge pulseaudio

sudo apt-get remove –purge alsa-base

and reinstalled. I also tried

I’m using ubuntu 18.04

## command line – Stop ActivityManager killing background Termux processes

I’ve been trying to run a ssh and a http server on my non-rooted Android phone using Termux.

I’ve installed Termux:Boot and termux-services to run them.

The server processes run for a while after I release the wakelock but are then killed by the system:

``````09-23 13:25:21.592  4450  5008 I ActivityManager: KPU : put (com.termux) : 15433 K
09-23 13:25:21.592  4450  5008 I ActivityManager: Killing 25360:com.termux/u0a171 (adj 904): DHA:empty #17
``````

I tried disabling the app power monitor (Setting -> Device maintenance -> Battery) but it doesn’t seem to make any difference.

Save rooting the phone, or keeping a wakelock in place, is there any way I can stop the ActivityManager killing my processes?

Setup: Samsung Galaxy A5 with stock-rom
(Android 8 / Samsung Experience 9)

## Restore BIP39 mnemonic in Electrum using command line and custom derivation path?

How would I restore a bitcoin wallet using the Electrum command line on Linux with a BIP39 mnemonic and custom derivation path?

I need to use m/0′ for legacy and m/1′ for native segwit?

I cannot find anything in the documentation about BIP39 mnemonics or using a custom derivation path without using the GUI interface of Electrum.

Thanks!

## xcode – softwareupdate shows 2 updates for Command Line Tools – get rid of one entry

I am on macOS Catalina 10.15.6 (19G2021) and `softwareupdate` as well as graphical “Softwareupdate” in “System settings” show two updates for Command Line Tools:

``````\$ softwareupdate --list
Software Update Tool

Finding available software
Software Update found the following new or updated software:
* Label: Command Line Tools beta 5 for Xcode-12.0
Title: Command Line Tools beta 5 for Xcode, Version: 12.0, Size: 442912K, Recommended: YES,
* Label: Safari14.0CatalinaAuto-14.0
Title: Safari, Version: 14.0, Size: 65417K, Recommended: YES,
* Label: Command Line Tools for Xcode-12.0
Title: Command Line Tools for Xcode, Version: 12.0, Size: 429595K, Recommended: YES,
``````

`beta 5` was proposed to me for a couple of weeks now, but I did not want to install it.
Why did I end up with `beta 5` and how do I get rid of the duplicate here?

## geometry – Three circles have their centers on the same line and have radii \$a\$,\$b\$ and \$c\$ (where \$a

Three circles have their centers on the same line and have radii $$a$$,$$b$$ and $$c$$ (where $$a).The circle with radius $$b$$ touches the other two circles but circles with radii $$a$$ and $$c$$ do not touch each other.Prove that $$b^2=ac$$.

I solved it with good deal of calculations. Is there an elementary way to do this problem

## Yes, it is possible but…

The number of ways you can go about it is limited to somehow seeing through magical darkness like by getting Truesight.

Or by picking up 2 levels of Warlock for the Devil’s Sight Eldritch Invocation, in order for you to see through magical darkness up to 120 feet.

Or by any means like the 6th-level Divination Spell True Seeing, or a Gem of Seeing (page 172 of the DMG) also does the trick, or you can homebrew a magic item that serves this purpose.

What is important is that you can see the area of magical darkness/dim light created, all others might still see it as magical darkness, that doesn’t matter.

However, the bottom line is that both of these features were not meant to provide a mini-portal for the monk to Shadow Step through because Shadow Step, by its wording:

At 6th level, you gain the ability to step from one shadow into another. When you are in an area of dim light or darkness, as a Bonus Action you can teleport up to 60 feet to an unoccupied space you can see that is also in dim light or darkness…

Emphasis on shadow here, we can see that the intent was for the Monk to step through shadows, not magical darkness. I know this sounds silly but if we look at the next emphasis, “you can see”, it affirms this intent by limiting the area a Monk can step through to an area he can see. Hence, these two were not meant to be used in-tandem due to its incompatible properties. However, there are many uses for Darkness and Shadow Step alone in themselves. Darkness can be used to Blind enemies, causing them to have Disadvantage on Attack Rolls. One clever trick is also to use Darkness to cover a room’s light source like a single torch, Darkness negates that source and engulfs the whole room in natural darkness, giving any creature with Darkvision advantage. Shadow Step can enable the Monk to avoid stepping into a brightly-lit portion of a room (and thereby avoid being seen) by teleporting to a dimly-lit portion.

Don’t misunderstand me, stepping through magical darkness can be done but you’ll have to work for it

## python – Joining lines together into a single line

I’ve been working on a GDscript to draw isolines (contours). I’m using the Meandering Triangles algorithm from https://blog.bruce-hill.com/meandering-triangles, and it works pretty well! The problem is I don’t know how to do Step 4, which is where all the little individual lines that make up the contour lines are joined together, so that I have a set of points describing an entire isoline which I can then drop into a `Line2D.points`.

Bruce wrote his code in Python, which I’ve yet to learn, and I just don’t quite get how the joining works under the hood. That is, I understand the principle—find a segment which touches the current segment, and join them together, then do it again and again—but I don’t understand how the code makes that happen. And thus I haven’t been able figure out how to make it work in GDscript, let alone do so performantly. I feel like I really should do this, as the current implementation (where all the lines are still their own `Line2D` nodes creates 3,000-5,000 such nodes. Turning those into, say, a couple dozen `Line2D`s really feels like a good idea.

Below is the code the generates the several thousand tiny lines; apologies if I wrote awful code (looking at you, `var offset`) but I’m only two weeks into GDscript and, as I said, no weeks into Python. `cols` and `rows` are defined earlier in the script, and are at present in the 50-100 range.
Any help will be greatly appreciated!

``````func contourDraw(isorange = Vector3(0,0,0), xmin = 0, xmax = cols, ymin = 0, ymax = rows):
var triangles = ()
for x in range(xmin, xmax - 1):
for y in range(ymin, ymax - 1):
triangles.append((Vector2(x,y), Vector2(x+1,y), Vector2(x,y+1)))
triangles.append((Vector2(x+1,y), Vector2(x,y+1), Vector2(x+1,y+1)))

var contour_segments = ()
for triangle in triangles:
for isocheck in range(isorange.x, floor(isorange.y /isorange.z)):
var isoline = isocheck * isorange.z
var below = ()
var above = ()
for vertex in triangle:
if matrix(vertex.x)(vertex.y).strength < isoline: below.append(vertex)
if matrix(vertex.x)(vertex.y).strength >= isoline: above.append(vertex)
if below.size() == 0 or above.size() == 0:
continue

var minority = above if above.size() < below.size() else below
var majority = above if above.size() > below.size() else below

var contour_points = ()
var crossed_edges = ((minority(0), majority(0)), (minority(0), majority(1)))

for triangle_edge in crossed_edges:
var offset = ( ( isoline - matrix(triangle_edge(1).x)(triangle_edge(1).y).strength ) / ( matrix(triangle_edge(0).x)(triangle_edge(0).y).strength - matrix(triangle_edge(1).x)(triangle_edge(1).y).strength ) )
var crossing_point = Vector2(
(offset * triangle_edge(0)(0)) + ((1 - offset) * triangle_edge(1)(0)),
(offset * triangle_edge(0)(1)) + ((1 - offset) * triangle_edge(1)(1))
)
contour_points.append(crossing_point * grid_space)
contour_segments.append(contour_points)

var counter = 0
for segment in contour_segments:
var line = Line2D.new()
line.default_color = Color.from_hsv(0.58,0.5,0.5)
line.width = 1
line.antialiased = true
line.points = segment