text:
Q: How to convert nested array keys to indexes php I have this array:
`$arr = array(
    'foo' => 'foo',
    'bar' => array(
        'baz' => 'baz',
        'candy' => 'candy',
        'vegetable' => array(
            'carrot' => 'carrot',
        ),
    ),
);

and I want to change it to this:
$arr = array(
'0' => 'foo',
'1' => array(
    '0' => 'baz',
    '1' => 'candy',
    '2' => array(
        '0' => 'carrot',
    )
),
);

I have tried array_values function but it changes only the first level,  like this:
$arr = array(
'0' => 'foo',
'1' => array(
    'baz' => 'baz',
    'candy' => 'candy',
    'vegetable' => array(
        'carrot' => 'carrot',
    )
),
);

A: Dipti code is great. I embellished it a bit:
function array_values_recursive(array $arr ) : array {
    $result = array();
    foreach ($arr as $value) {
        $result[] = is_array($value) ? array_values_recursive($value) : $value;
    }
    return $result;
}

A: Please use below function. You have to iterate loop recursive/nested loop
function array_values_recursive($arr)
{
    $arr2=[];
    foreach ($arr as $key => $value)
    {
        if(is_array($value))
        {
            $arr2[] = array_values_recursive($value);
        }else{
            $arr2[] =  $value;
        }
    }

    return $arr2;
}
print_r(array_values_recursive($arr))

This should work. Thank you

A: this is my real code :
$arr = array();
while($d = mysqli_fetch_assoc($result)) {
 $sub_data["id"] = $d["id"];
 $sub_data["date"] = $d["date"];
 $sub_data["n_trans"] = $d["n_trans"];
 $sub_data["doc"] = $d["doc"];

    if(!isset($arr[$d['date']])) {
        $arr[$d['date']] = array();
    }

    if(!isset($arr[$d['date']][$d['n_trans']])) {
        $arr[$d['date']][$d['n_trans']] = array();
    }

    array_push($arr[$d['date']][$d['n_trans']], $d['doc']);

}
       echo '<pre>';
       print_r(array_values($arr));
       echo '</pre>';
?>

here is the result of the query, I try to change the 2nd level (  [32weds] => Array ) remove the text and put an integer like (  [0] => Array ):
 Array(
    [0] => Array(
            [text] => 2018-11-01
            [nodes] => Array(
                    [32weds] => Array(
                            [text] => 32weds
                            [nodes] => Array
                                (
                                    [0] => 32.png
                                    [1] => 32 (1).png
                                )

                        )

                    [qwerty] => Array
                        (
                            [text] => qwerty
                            [nodes] => Array
                                (
                                    [0] => 5384a97ee9d6b (2).pd
                                )

                        )

                )

        )
    )

without changing the format of the array.


text:
Q: Built-in HP ProBook 430 G5 keyboard almost dead and doesn't behave as expected even after replacement keyboard has been installed? I have an HP ProBook 430 G5 (Windows 10). Suddenly, my keyboard has stopped working. No liquids, drops or any other accident happened.
Actually, 90% of the keys do not work at all and the rest of them work in a wrong way.
E.g. I press G and I get H on the screen etc.
What I have already tried, but with no luck:

*

*Delete and reinstall keyboard drivers

*Run hardware diagnostics from BIOS

*Boot from a Linux live USB and try to type some text on console

*Update BIOS

I have to note that an external USB keyboard works fine.
So, I ordered a new keyboard for my laptop and I replaced it, but I have the same problems.
Any ideas?

redpajama_set_name: RedPajamaStackExchange


text:
Q: Java regex for special URL In Java, I'm trying to write a regex to match a special kind of HTTP URL:
http://<any-string-of-1-or-more-chars>/#<any-string-of-0-or-more-chars>

So the string has 4 segments:

*

*The string literal: "http://"; then

*Any string of 1+ chars; then

*The string literal: "/#"; then

*Any string of 0+ char

Examples of "passing" strings:

*

*http://example.com/#

*http://example.com/#fizz

*http://z.example.com/#
etc. My best attempt is:
String regex = "http://*/#*";

However when I try it out:
String test = "http://example.com/#";
String regex = "http://*/#*";
if(test.matches(regex))
    System.out.println("I match!");
else
    System.err.println("I don't match!");

Where am I going wrong, and what should my regex be (and why)?

A: In regex if you want to match 1 or more any character then use .+ and for 0 or more use .*
It is better to go through a good regex tutorial like: http://regular-expressions.info
You can use this regex:
String regex = "^https?://.+?/#.*$";

A:
any-string-of-1-or-more-chars

this is .+, not *

any-string-of-0-or-more-chars

this is .*, not *


text:
Q: Discrete probability distribution calculation in Matlab I have given P(x1...n) discrete independent probability values which represent for example the possibility of happening X.
I want a universal code for the question: With which probability does happening X occur at the same time 0-n times?
For example:
Given: 3 probabilities P(A),P(B),P(C) that each car(A,B,C) parks. Question would be: With which probability would no car, one car, two cars, and three cars park?
The answer for example for two cars parking at the same time would be:
P(A,B,~C) = P(A)*P(B)*(1-P(C))
P(A,~B,C) = P(A)*(1-P(B))*P(C)
P(~A,B,C) = (1-P(A))*P(B)*P(C)
P(2 of 3) = P(A,B,~C) + P(A,~B,C) + P(~A,B,C)

I have written the code for all possibilities, but the more values I get, of course the slower it gets due to more possible combinations.
% probability: Vector with probabilities P1, P2, ... PN
% result: Vector with results as stated above.

% All possibilities:
result(1) = prod(probability);

shift_vector = zeros(anzahl_werte,1);
for i = 1:anzahl_werte
    % Shift Vector allocallization
    shift_vector(i) = 1;
    % Compute all unique permutations of the shift_vector
    mult_vectors = uperm(shift_vector);

    % Init Result Vector
    prob_vector = zeros(length(mult_vectors(:,1)), 1);

    % Calc Single Probabilities
    for k = 1:length(mult_vectors(:,1))
        prob_vector(k) = prod(abs(mult_vectors(k,:)'-probability));
    end

    % Sum of this Vector for one probability.
    result(i+1) = sum(prob_vector);
end

end

%%%%% Calculate Permutations
function p = uperm(a)
[u, ~, J] = unique(a);
p = u(up(J, length(a)));
end % uperm

function p = up(J, n)
ktab = histc(J,1:max(J));
l = n;
p = zeros(1, n);
s = 1;
for i=1:length(ktab)
    k = ktab(i);
    c = nchoosek(1:l, k);
    m = size(c,1);
    [t, ~] = find(~p.');
    t = reshape(t, [], s);
    c = t(c,:)';
    s = s*m;
    r = repmat((1:s)',[1 k]);
    q = accumarray([r(:) c(:)], i, [s n]);
    p = repmat(p, [m 1]) + q;
    l = l - k;
end
end
%%%%% Calculate Permutations End

Does anybody know a way to speed up this function? Or maybe Matlab has an implemented function for that?

I found the name of the calculation:
Poisson binomial distribution

A: How about this?
probability = [.3 .2 .4 .7];

n = numel(probability);
combs = dec2bin(0:2^n-1).'-'0'; %'// each column is a combination of n values,
%// where each value is either 0 or 1. A 1 value will represent an event
%// that happens; a 0 value will represent an event that doesn't happen.
result = NaN(1,n+1); %// preallocate
for k = 0:n; %// number of events that happen
    ind = sum(combs,1)==k; %// combinations with exactly k 1's
    result(k+1) = sum(prod(...
        bsxfun(@times, probability(:), combs(:,ind)) + ... %// events that happen
        bsxfun(@times, 1-probability(:), ~combs(:,ind)) )); %// don't happen
end


text:
Q: How to get styles of bootstrap's col and row without importing everything? I'm making a react app with styled-components and I want to create a component that will be just like using col col-x and another for row classes from bootstrap.
But my problem is that I can't find the styles for that, I searched for every .col word in the repo and couldn't find anything.
How can I make a component using styled-components that recreates bootstrap col col-x and row without importing the entire bootstrap?

A: You should be able to get it from the Bootstrap CDN https://stackpath.bootstrapcdn.com/bootstrap/4.5.0/css/bootstrap.css.

A: I usually approach this kind of issue by creating a page where I load the library I try to partially emulate and apply it to the structure that I will intend to have. I will extract CSS rules from the dev tools (after loading it in several browsers to find differences of use-cases) and create the same CSS rules into another page, having the same structure, but not using the other library, which is Bootstrap in this case. If there are non-CSS differences, that is, the way that structure is rendered is partially managed by Javascript, then I will make a list of things to achieve and try and find the code for that. In general this will reduce the list of things I have to implement to have only a few items, which tends to be doable.


text:
Q: Named mutex throws TypeInitializationException when runned as different user at the same time I have to make sure that there is only one instance of my program running at the same time. After some searching i found this SO question and followed the instructions in this answer. I created a small test application:
using System;
using System.Threading;

namespace Test
{
    class Program
    {
        static Mutex mutex = new Mutex(true, "{8F6F0AC4-B9A1-45fd-A8CF-72F04E6BDE8F}");

        static void Main(string[] args)
        {
            if (mutex.WaitOne(TimeSpan.Zero, true))
            {
                Console.ReadLine();
                mutex.ReleaseMutex();
            }
            else
            {
                Console.WriteLine("Only one instance allowed");
                Console.ReadLine();
            }
        }
    }
}

When i execute the binary for the first time everything is okay and it waits for a return to exit. When i start the application the second time it says "Only one instance allowed". So far everything works as expected. BUT when i start the application under a different user (RunAs or by switching users) it throws a TypeInitializationException. How come? Does anyone has a solution for this?
InnerException: System.UnauthorizedAccessException -> Access to the path "{8F6F0AC4-B9A1-45fd-A8CF-72F04E6BDE8F}" is denied.

A: Look at the InnerException, that tells you what went wrong.  I'd guess at a security exception.


text:
Q: What is considered as a good fit using the fraction deviance? I am using the fraction deviance given by Hastie et. al (2015),
$\mathcal{D}_{\lambda}^{2}=\frac{\mathcal{D}\mathrm{ev}_{\mathrm{null}}-\mathcal{D}\mathrm{ev}_{\lambda}}{\mathcal{D}\mathrm{ev}_{\mathrm{null}}}$
I am trying to understand what is considered as a good fit model and what is considered as a bad model fit? Is it like that or I have to use the $\mathcal{D}\mathrm{ev}_{\lambda}$ to check if my model has a good fit?
I think I am mixing the Deviance with the Fraction Deviance, can someone explain please?


text:
Q: How to open a JQ dialogue box on submit event? I have a search field. I want to show the results in a dialogue box. The search field doesn't have any button. So, what event i should call to open the dialogue box after pressing enter.
Any suggestions!
Update
For the whole project, its all HTML, JavaScript & Jquery in client side, Java is in back.
What i want to know is, under which event i have to put the dialogue box generation codes and data manipulation codes.

A: You would probably want it in the callback for whatever ajax request you're using to get information from your server.
$.get("your-script.php", function(data){
    // display data here
});

A: Have a look at the jQuery Form Plugin. It allows you make a normal form into an AJAX form, posting back without reloading the page. You get a callback when the result is return, which you can then use to populate and show the dialog box.


text:
Q: Entity Framework 6 Web Forms Guide? I'm working to make a legacy VB.NET web forms application a little more modern.  Rather than re-write the app in MVC, I'd rather keep the app in web forms, but overhaul the stringly typed database calls with a strongly typed Entity Framework model (or models). I can't find much information regarding Web Forms and EF6.  Is there a good guide out there to help?

A: I have some experience in dealing with legacy ASP .NET Web Forms apps and i can give you the following advices:
1) Create a new project that represents the bussiness layer, this is an interface that´s going to comunicate the presentation layer (Web forms) with the Data access Layer (Entity framework). Check Bussiness Access Layer
2) Create a new project that represents the data access layer. Inside the project create a model of EF using Database First approach. This tutorials will help you Entity Framework 4 and ASP .NET Web Forms and Entity Framework and ASP .NET Web Forms CRUD and this one (full code with explain) EF & Database First & Web Forms.
Every new method you migrate using this new aproach is going to the bussines layer so it doesnt affect the actual working project.
3) Create a new Unit Test project that tests every new method of the bussiness layer. I would suggest this tutorial Writing Unit Tests for the .NET Framework with the Microsoft Unit Test Framework for Managed Code
Keep in mind that this is approach will help you test the new and maintain the old working on!


text:
Q: creating jar file of maven projects with netbeans I am using netbeans to work on a project. I am using svn, so that I can commit to newer versions and revert to an older version in case I mess up. Now I want to create a jar file of this project but the build tab in the project properties does not display the packaging option, it only displays one option and that is of 'compile'.
If I create a new project (Java Application) it does show the packaging option and then I can easily create a jar file, but this maven project that I am working on does not work like this.
Please suggest me a way to create jar file out of my maven project.
Thanks,

A: Based on @yatskevich answer, you could go to your NetBeans Project Properties > Actions and add package to the Execute Goals of the following Actions:

*

*Build project

*Clean and Build project

*Build with dependencies

*Plus any other you feel should also package

I did this on NetBeans 7.2.1
PS: this will create the JAR on every change you make, so choose wisely where to add package. I don't mind it building a JAR for small projects on every build.

A: *

*Open cmd (if you are on Windows) or any shell (if you are on Linux)

*Navigate to your project directory (use cd command)

*Run mvn clean package there.

Your jar will be in <project dir>/target.

A: Include maven-assembly-plugin plugin in your .pom file. It will instruct Maven to assemble your application with all it's dependencies.
Later when you will build your Netbeans project you will see your newly builded jar with all it's dependencies.
<build>
   <sourceDirectory>src</sourceDirectory>
        <plugins>
            <plugin>
                <groupId>org.apache.maven.plugins</groupId>
                <artifactId>maven-assembly-plugin</artifactId>
                <version>2.4</version>
                <configuration>
                    <descriptorRefs>
                        <descriptorRef>jar-with-dependencies</descriptorRef>
                    </descriptorRefs>
                    <archive>
                    <manifest>
                            <mainClass>com.my.class</mainClass>
                        </manifest>
                    </archive>
                </configuration>
                <executions>
                    <execution>
                        <id>make-assembly</id>
                        <phase>package</phase>
                        <goals>
                            <goal>single</goal>
                        </goals>
                    </execution>
                </executions>
            </plugin>
        </plugins>
</build>

Check out to learn more about creating Jar file with Maven: https://javatutorial.net/create-java-jar-file-with-maven


text:
Q: Show MS office docs in browser I get a return from webservices as JSON and there is a binary file which represents a Word docx.
From there I need to show this somehow in a embeded object in the webpage, however I can't find the solution how to do this.
Found: How to build PDF file from binary string returned from a web-service using javascript
This kind of work but says missing plugin, while I have office installed on my pc.
What I try to do is similair as I do with images:
var $image = $("<img/>", {
  src: "data:" + files._type + ";base64," + files._thumb,
  id: "img_" + files.id,
  title: files.name
})

what I tried is as on the link, but get the missing plugin.
I already have the binary data on the client and can do with it what I want, but cant see it in the page, but code behind its there


text:
Q: How do I setup a Nutch Crawler on Mac OS X? I don't seem to find a credible instruction manual or guide online, can someone please guide me through the setup for a Nutch crawler on Mac OS X?

A: Do you have any particular error? Can you provide more details about what you've already done. Usually on OS X is just a matter of installing the JRE/JDK from Oracle and exporting the right JAVA_HOME variable in your bash/zsh terminal. What is the output of the command java -version in your terminal?


text:
Q: Download spacy model and get AttributeError 'NoneType' object has no attribute 'ndarray' I'm new on python spacy package.
I wanted to download model 'en_core_web_sm' and I get AttributeError.
I searched since 2 days all over the web and I couldn't fix it.
Someone can help me please ?
The code :
import spacy
nlp=spacy.load('en_core_web_sm')

The error :
n = y.shape[0]

AttributeError: 'NoneType' object has no attribute 'ndarray'

I'm using Python 3.6 on conda environment (spyder)

A: This happened to me once during development and the reason was that for some reason, my code tricked spaCy into thinking I was on GPU. On GPU, spaCy uses cupy instead of numpy – and if cupy is not installed, it defaults to None. It's likely that the code should be calling numpy.ndarray, but it's calling cupy.ndarray, i.e. None.ndarray, which results in that error.
If you've intended to run spaCy on GPU, make sure it's available and you've installed the correct dependencies for your CUDA version. If you're running spaCy on CPU, here are some things to try:

*

*Check what's installed in your environment and make sure you didn't accidentally end up with a half-broken install of cupy or something like that. Also make sure numpy is installed correctly.

*Unsatisfying answer, but often helps: uninstall spaCy and its dependencies, and reinstall the latest version, ideally in a clean virtual environment.


text:
Q: Tracking focus problem (JTabbedPane) I'd like to track the focus for all components in my Java application. I registered a method which works for most of the components, but it does not work for changing tabs. Here's the code:
FocusManager.getCurrentManager().addPropertyChangeListener(new PropertyChangeListener() {
  @Override
  public void propertyChange(PropertyChangeEvent evt) {
    System.out.println(evt.getPropertyName() + " " + evt.getNewValue());
  }
}

If I change a tab in a JTabbedPane, it will not cause a message to be printed. I suspect that this is due to the JTabbedPane focus not being changed (as clicking on a different tab may mean that it still belongs to the parent JTabbedPane).
Is there a workaround for this or does anyone know of a save method to track focus changes in Java that works also for tabs being changed?
Cheers,
Max

A: You can add a ChangeListener to the tabbed pane to listen for changes in tabs.


text:
Q: Osm map imported to Arangodb I am new to arangodb. I am going to use arangodb to perform algorithms on a road network.
I found this https://github.com/arangodb-helper/osm-2-graph?files=1
I tried to import the edges file, vertices file into arangodb using arangoimp (in json format).
But I could see only single node always. It doesn't get  expand after clicking expand button. Full network view only shows nodes, no edges.
Could you give correct steps with commands? Seems I have trapped somewhere.
I used Monaco osm map. Using arangodb 3.2 version
Edit 1:
my commands as follows
arangoimp --file V-CA.json --collection vertices --create-collection true --type json
> created:          1896 warnings/errors:  0 updated/replaced: 0
> ignored:          0

arangoimp --file E-CA.json --collection edges --create-collection true --type json --create-collection-type edge
> created:          256 warnings/errors:  0 updated/replaced: 0 ignored:
> 0

OSM to graph file conversion
python convert-pbf.py monaco.osm

Edit 2
I observed same results after using 3.3.7
I saw it shows
> 250 nodes 0 0 edges

at he botton after "Load full graph". But at the import it shows  1896 vertices. Is it showing part of vertices only?

A: The graph viewer has a default limit of 250 nodes. This can be adjusted in the properties panel (open it with a click on the hamburger icon) in the section Graph in the field Limit:

Set it to 2000, hit return and load the full graph and wait a bit.


text:
Q: Duplicate class found I have Duplicate class found error in android studio.
This error is because of below line.
implementation 'com.google.firebase:firebase-ml-vision-image-label-model:20.0.1'
My App/build.gradle file is under
plugins {
    id 'com.android.application'
}
apply plugin: 'com.android.application'
apply plugin: 'com.google.gms.google-services'

android {
    compileSdk 32

    defaultConfig {
        applicationId "com.example.midsemesterassignment"
        minSdk 19
        targetSdk 32
        versionCode 1
        versionName "1.0"

        testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
    }

    buildTypes {
        release {
            minifyEnabled false
            proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'
        }
    }
    compileOptions {
        sourceCompatibility JavaVersion.VERSION_1_8
        targetCompatibility JavaVersion.VERSION_1_8
    }
}

dependencies {

    implementation 'androidx.appcompat:appcompat:1.3.0'
    implementation 'com.google.android.material:material:1.4.0'
    implementation 'androidx.constraintlayout:constraintlayout:2.0.4'
    implementation platform('com.google.firebase:firebase-bom:29.3.0')

    implementation 'com.google.android.gms:play-services-vision:20.1.1'
    implementation 'com.google.android.gms:play-services-vision-common:19.1.1'
    implementation 'com.google.android.gms:play-services-vision-image-label:18.0.5'
    implementation 'com.google.android.gms:play-services-mlkit-text-recognition:18.0.0'
    implementation 'com.google.firebase:firebase-ml-vision:15.0.0'
    //Duplicate class error due to below import
    implementation 'com.google.firebase:firebase-ml-vision-image-label-model:20.0.1'
    implementation 'com.google.mlkit:barcode-scanning:17.0.2'
    implementation 'com.google.firebase:firebase-core:15.0.2'
    implementation 'com.google.firebase:firebase-database:20.0.4'

    testImplementation 'junit:junit:4.13.2'
    androidTestImplementation 'androidx.test.ext:junit:1.1.3'
    androidTestImplementation 'androidx.test.espresso:espresso-core:3.4.0'

}

i also used
android.enableJetifier=true
to solve it but again get this error
my gradle.properties file is under
org.gradle.jvmargs=-Xmx2048m -Dfile.encoding=UTF-8
android.useAndroidX=true
android.nonTransitiveRClass=true
android.enableJetifier=true

I am using firebase to detect object
i have a button when click on it the image object should be detected code is under
chose.setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View view) {
                Intent i= new Intent();
                i.setType("image/*");
                i.setAction(Intent.ACTION_GET_CONTENT);
                startActivityForResult(Intent.createChooser(i,"Select images"),121);
            }
        });

 @Override
    protected void onActivityResult(int requestCode, int resultCode,@Nullable Intent data){
        super.onActivityResult(requestCode,resultCode,data);
        if(requestCode==121){
            imageView.setImageURI(data.getData());

            FirebaseVisionImage image;

//            Not working due to duplicate class error and there is no solution of it
            try {

                image = FirebaseVisionImage.fromFilePath(getApplicationContext(), data.getData());
                FirebaseVisionImageLabeler labeler = FirebaseVision.getInstance()
                        .getOnDeviceImageLabeler();

                labeler.processImage(image)
                        .addOnSuccessListener(new OnSuccessListener<List<FirebaseVisionImageLabel>>() {
                            @Override
                            public void onSuccess(List<FirebaseVisionImageLabel> labels) {
                                for (FirebaseVisionImageLabel label: labels) {
                                    String text = label.getText();
                                    String entityId = label.getEntityId();
                                    float confidence = label.getConfidence();
                                    resultTv.append(text+"    "+confidence+"\n");
                                }
                            }
                        })
                        .addOnFailureListener(new OnFailureListener() {
                            @Override
                            public void onFailure(@NonNull Exception e) {
                                // Task failed with an exception
                                // ...
                            }
                        });
            } catch (IOException e) {
                e.printStackTrace();
            }
        }
}

Can someone please help me to solve this problem


text:
Q: Test proxy servers in c# I am trying to figure out how proxy server works & using Fiddler I am trying to see whether I can see the proxy server.
class Program{
static void Main(string[] args)
        {
setProxies();
}

private static void setProxies()
{
    string fullproxyaddress = "http://ec2-100-100-111-555.compute-1.amazonaws.com/OsProxy/getpage.aspx?p=";
    HttpWebRequest request = (HttpWebRequest)WebRequest.Create("www.google.com");
    request.Accept = "text/html";
    request.Headers.Set(HttpRequestHeader.AcceptLanguage, "en-US");
    request.Method = "GET";
     request.Headers.Add("Accept-Encoding", "gzip, deflate");
     Uri newUri = new Uri(fullproxyaddress);
     WebProxy myProxy = new WebProxy();
    myProxy.Address = newUri;
    request.Proxy = myProxy;
    try
         {
               string  html = new TimedWebClient { Timeout = 360000 }.DownloadString("www.google.com");
               html = HttpUtility.HtmlDecode(html);
    }catch...
    }
   }
    class TimedWebClient : WebClient
        {
            // Timeout in milliseconds, default = 600,000 msec
            public int Timeout { get; set; }
            public Encoding enc { get; set; }

            public TimedWebClient()
            {
                this.Timeout = 600000;
                this.Encoding = Encoding.UTF8;
            }

            protected override WebRequest GetWebRequest(Uri address)
            {
                var objWebRequest = base.GetWebRequest(address);
                objWebRequest.Timeout = this.Timeout;
                objWebRequest.Proxy = this.Proxy;
                return objWebRequest;
            }
        }

In the fiddler I expect to see fullproxyaddr+www.google.com when I run this. Why do I only see www.google.com in the Host and "/" in URL.
thanks
R

A: With your code the way you have it, you are not using the HttpWebRequest object that you created with your proxy information attached. You don't need it if you are going to make the request using your TimedWebClient class, but you need to make sure you set the proxy information.
Here's a working example using the Fiddler proxy. Just swap out your proxy information and it should work.
class Program
{
    static void Main(string[] args)
    {
        setProxies();
        Console.ReadLine();
    }

    private static void setProxies()
    {
        //Set our proxy information
        string fullproxyaddress = "http://localhost:8888";
        WebProxy myProxy = new WebProxy(fullproxyaddress);
        myProxy.Credentials = new NetworkCredential("1", "1");

        try
        {
            //Initialize our object using the created proxy
            //Make the request
            string html = new TimedWebClient { Timeout = 360000, Proxy = myProxy }.DownloadString("http://www.google.com");
            html = HttpUtility.HtmlDecode(html);
            Console.Write(html);
        }
        catch { Console.Write("Error!"); }
    }
}
class TimedWebClient : WebClient
{
    // Timeout in milliseconds, default = 600,000 msec
    public int Timeout { get; set; }
    public Encoding enc { get; set; }

    public TimedWebClient()
    {
        this.Timeout = 600000;
        this.Encoding = Encoding.UTF8;
    }

    protected override WebRequest GetWebRequest(Uri address)
    {
        var objWebRequest = base.GetWebRequest(address);
        objWebRequest.Timeout = this.Timeout;
        objWebRequest.Proxy = this.Proxy;
        return objWebRequest;
    }
}

As far as getting the full URL to show up in Fiddler, I'm not sure. Maybe messing around with Tools -> Fiddler Options -> Gateway could help you.


text:
Q: do-release-upgrade aborting Edit - Same thing happens attempting to upgrade to 21.10 - this is not specific to Jammy.
Not really sure why this is aborting, I can't really see the problem in the logs:
2022-03-07 23:49:02,329 INFO Using config files '['./DistUpgrade.cfg.focal', '/etc/update-manager/release-upgrades.d/ubuntu-advantage-upgrades.cfg']'
2022-03-07 23:49:02,329 INFO uname information: 'Linux sodorstation 5.15.0-18-generic #18-Ubuntu SMP Fri Jan 21 14:57:54 UTC 2022 x86_64'
2022-03-07 23:49:02,544 INFO apt version: '2.0.6'
2022-03-07 23:49:02,545 INFO python version: '3.8.10 (default, Nov 26 2021, 20:14:08)
[GCC 9.3.0]'
2022-03-07 23:49:02,547 INFO release-upgrader version '22.04.5' started
2022-03-07 23:49:02,554 INFO locale: 'en_AU' 'UTF-8'
2022-03-07 23:49:02,592 INFO screen could not be run
2022-03-07 23:49:02,625 DEBUG Using 'DistUpgradeViewText' view
2022-03-07 23:49:02,661 DEBUG enable dpkg --force-overwrite
2022-03-07 23:49:02,688 DEBUG creating statefile: '/var/log/dist-upgrade/apt-clone_system_state.tar.gz'
2022-03-07 23:49:03,652 DEBUG lsb-release: 'focal'
2022-03-07 23:49:03,652 DEBUG _pythonSymlinkCheck run
2022-03-07 23:49:03,653 DEBUG openCache()
2022-03-07 23:49:03,653 DEBUG quirks: running PreCacheOpen
2022-03-07 23:49:03,653 DEBUG running Quirks.PreCacheOpen
2022-03-07 23:49:04,152 DEBUG Comparing 5.13.0-30 with
2022-03-07 23:49:04,152 DEBUG Comparing 5.15.0-18 with 5.13.0-30
2022-03-07 23:49:04,232 DEBUG /openCache(), new cache size 66479
2022-03-07 23:49:04,233 DEBUG need_server_mode(): can not find a desktop meta package or key deps, running in server mode
2022-03-07 23:49:04,233 DEBUG checkViewDepends()
2022-03-07 23:49:04,234 DEBUG running doUpdate() (showErrors=False)
2022-03-07 23:49:04,779 DEBUG openCache()
2022-03-07 23:49:05,287 DEBUG Comparing 5.13.0-30 with
2022-03-07 23:49:05,287 DEBUG Comparing 5.15.0-18 with 5.13.0-30
2022-03-07 23:49:05,401 DEBUG /openCache(), new cache size 66479
2022-03-07 23:49:05,401 DEBUG doPostInitialUpdate
2022-03-07 23:49:05,401 DEBUG quirks: running jammyPostInitialUpdate
2022-03-07 23:49:05,401 DEBUG running Quirks.jammyPostInitialUpdate
2022-03-07 23:49:08,840 DEBUG MetaPkgs:
2022-03-07 23:49:09,822 DEBUG Foreign:
2022-03-07 23:49:09,822 DEBUG Obsolete: containerd.io docker-ce docker-ce-cli docker-ce-rootless-extras docker-scan-plugin libbind9-160 libboost-iostreams1.71.0 libcbor0.6 libdns-export1100 libdns-export1109 libdns1100 libevent-2.1-6 libffi6 libfwupdplugin1 libgdbm5 libhavege1 libhogweed4 libhogweed5 libicu60 libicu66 libip4tc0 libip6tc0 libirs160 libisc-export169 libisc169 libisccc160 libisccfg160 libisl22 libjson-c3 libjson-c4 libldap-2.4-2 libllvm10 liblvm2app2.2 liblvm2cmd2.02 liblwres160 libmpdec2 libnettle6 libnettle7 libperl5.26 libperl5.30 libplymouth4 libprocps6 libpython3.6-minimal libpython3.6-stdlib libpython3.8 libpython3.8-dev libpython3.8-minimal libpython3.8-stdlib libqrencode3 libreadline5 libreadline7 libsemanage1 libsepol1 libssl1.0.0 libtss2-esys0 libxmlb1 linux-headers-5.13.0-30-generic linux-hwe-5.13-headers-5.13.0-30 linux-image-5.13.0-30-generic linux-modules-5.13.0-30-generic linux-modules-extra-5.13.0-30-generic mariadb-client-10.3 mariadb-client-core-10.3 mariadb-server-10.3 mariadb-server-core-10.3 multiarch-support nessus nessusagent perl-modules-5.26 perl-modules-5.30 postgresql-12 postgresql-client-12 python-pip-whl python3-twisted-bin python3.6 python3.6-minimal python3.8 python3.8-dev python3.8-minimal python3.8-venv veeam veeam-release-deb veeamsnap
2022-03-07 23:49:09,822 DEBUG updateSourcesList()
2022-03-07 23:49:09,826 DEBUG rewriteSourcesList() with mirror_check
2022-03-07 23:49:09,827 DEBUG ['ubuntu-minimal', 'ubuntu-standard']
2022-03-07 23:49:09,827 DEBUG Checking pkg: ubuntu-minimal
2022-03-07 23:49:09,827 DEBUG Checking pkg: ubuntu-standard
2022-03-07 23:49:09,827 DEBUG examining: 'deb [arch=amd64] http://au.archive.ubuntu.com/ubuntu/ jammy main restricted universe multiverse'
2022-03-07 23:49:09,827 DEBUG entry 'deb [arch=amd64] http://au.archive.ubuntu.com/ubuntu/ jammy main restricted universe multiverse' is already set to new dist
2022-03-07 23:49:09,827 DEBUG examining: 'deb [arch=amd64] http://au.archive.ubuntu.com/ubuntu/ jammy-updates main restricted universe multiverse'
2022-03-07 23:49:09,827 DEBUG entry 'deb [arch=amd64] http://au.archive.ubuntu.com/ubuntu/ jammy-updates main restricted universe multiverse' is already set to new dist
2022-03-07 23:49:09,827 DEBUG examining: 'deb [arch=amd64] http://au.archive.ubuntu.com/ubuntu/ jammy-backports main restricted universe multiverse'
2022-03-07 23:49:09,828 DEBUG entry 'deb [arch=amd64] http://au.archive.ubuntu.com/ubuntu/ jammy-backports main restricted universe multiverse' is already set to new dist
2022-03-07 23:49:09,828 DEBUG examining: 'deb [arch=amd64] http://au.archive.ubuntu.com/ubuntu/ jammy-security main restricted universe multiverse'
2022-03-07 23:49:09,828 DEBUG entry 'deb [arch=amd64] http://au.archive.ubuntu.com/ubuntu/ jammy-security main restricted universe multiverse' is already set to new dist
2022-03-07 23:49:09,858 DEBUG running doUpdate() (showErrors=True)
2022-03-07 23:49:10,383 DEBUG openCache()
2022-03-07 23:49:11,554 DEBUG Comparing 5.13.0-30 with
2022-03-07 23:49:11,554 DEBUG Comparing 5.15.0-18 with 5.13.0-30
2022-03-07 23:49:11,650 DEBUG /openCache(), new cache size 66479
2022-03-07 23:49:11,651 DEBUG need_server_mode(): can not find a desktop meta package or key deps, running in server mode
2022-03-07 23:49:11,652 DEBUG quirks: running PreDistUpgradeCache
2022-03-07 23:49:11,652 DEBUG running Quirks.PreDistUpgradeCache
2022-03-07 23:49:12,257 DEBUG Installing 'libsemanage2' (priority in required set 'required' but not scheduled for install)
2022-03-07 23:49:12,257 ERROR Installing/upgrading 'libsemanage2' failed
2022-03-07 23:49:12,556 DEBUG Installing 'usrmerge' (priority in required set 'required' but not scheduled for install)
2022-03-07 23:49:12,556 ERROR Installing/upgrading 'usrmerge' failed
2022-03-07 23:49:12,586 DEBUG Running KeepInstalledSection rules
2022-03-07 23:49:13,021 DEBUG Kernel uname: '5.15.0-18-generic'
2022-03-07 23:49:13,029 DEBUG nvidiaUpdate()
2022-03-07 23:49:13,644 INFO no old nvidia driver installed, installing no new
2022-03-07 23:49:13,645 DEBUG quirks: running PostDistUpgradeCache
2022-03-07 23:49:13,645 DEBUG running Quirks.PostDistUpgradeCache
2022-03-07 23:49:13,762 DEBUG Comparing 5.13.0-30 with
2022-03-07 23:49:13,762 DEBUG Comparing 5.15.0-18 with 5.13.0-30
2022-03-07 23:49:13,904 DEBUG running installTasks
2022-03-07 23:49:14,610 DEBUG About to apply the following changes
2022-03-07 23:49:14,864 DEBUG Keep at same version: acl acpi-support acpid adduser adwaita-icon-theme alsa-topology-conf alsa-ucm-conf amd64-microcode anacron apparmor apparmor-profiles apparmor-utils apt apt-transport-https apt-utils aptitude aptitude-common base-files base-passwd bash bash-completion bcache-tools bind9-dnsutils bind9-host bind9-libs binutils binutils-common binutils-x86-64-linux-gnu borgbackup bsdmainutils bsdutils btrfs-progs build-essential busybox-initramfs busybox-static bzip2 ca-certificates chrony clamav clamav-base clamav-daemon clamav-freshclam clamdscan console-setup console-setup-linux containerd.io coreutils cpio cpp cpp-9 cpufrequtils cracklib-runtime crda cron cryptsetup cryptsetup-bin cryptsetup-initramfs cryptsetup-run curl dash db-util db5.3-util dbus dbus-user-session dbus-x11 dconf-gsettings-backend dconf-service dctrl-tools debconf debconf-i18n debianutils deborphan dialog diffutils dirmngr distro-info distro-info-data dkms dmeventd dmidecode dmsetup dns-root-data dnsmasq dnsmasq-base dnsutils docker-ce docker-ce-cli docker-ce-rootless-extras docker-scan-plugin dpkg dpkg-dev e2fsprogs efibootmgr eject ethtool fail2ban fakeroot fdisk file finalrd findutils fontconfig fontconfig-config fonts-dejavu-core fonts-liberation fuse fwupd fwupd-signed fwupdate g++ g++-9 galera-3 gawk gcc gcc-10-base gcc-11-base gcc-8-base gcc-9 gcc-9-base gconf-service gconf-service-backend gconf2-common gdisk geoip-database gettext-base gir1.2-glib-2.0 gir1.2-packagekitglib-1.0 git git-lfs git-man glib-networking glib-networking-common glib-networking-services gnupg gnupg-l10n gnupg-utils gpg gpg-agent gpg-wks-client gpg-wks-server gpgconf gpgsm gpgv grep groff-base grub-common grub-efi-amd64 grub-efi-amd64-bin grub-efi-amd64-signed grub-legacy-ec2 grub2-common gsettings-desktop-schemas gsettings-ubuntu-schemas gtk-update-icon-cache gzip haveged hdparm hicolor-icon-theme hostname htop humanity-icon-theme ieee-data im-config init init-system-helpers initramfs-tools initramfs-tools-bin initramfs-tools-core inotify-tools intel-microcode iotop iproute2 iptables iputils-ping iputils-tracepath irqbalance isc-dhcp-client isc-dhcp-common iso-codes iucode-tool iw javascript-common kbd keyboard-configuration klibc-utils kmod krb5-locales language-pack-en language-pack-en-base ldap-auth-client ldap-auth-config ldap-utils less libacl1 libaio1 libalgorithm-diff-perl libalgorithm-diff-xs-perl libalgorithm-merge-perl libapparmor1 libappindicator1 libappstream4 libapr1 libaprutil1 libapt-pkg6.0 libarchive13 libargon2-0 libargon2-1 libasan5 libasn1-8-heimdal libasound2 libasound2-data libassuan0 libatasmart4 libatk-bridge2.0-0 libatk1.0-0 libatk1.0-data libatm1 libatomic1 libatspi2.0-0 libattr1 libaudit-common libaudit1 libauthen-sasl-perl libavahi-client3 libavahi-common-data libavahi-common3 libb2-1 libbind9-160 libbinutils libblas3 libblkid1 libblockdev-crypto2 libblockdev-fs2 libblockdev-loop2 libblockdev-part-err2 libblockdev-part2 libblockdev-swap2 libblockdev-utils2 libblockdev2 libboost-iostreams1.71.0 libbrotli1 libbsd0 libburn4 libbz2-1.0 libc-bin libc-dev-bin libc-devtools libc6 libc6-dev libcairo-gobject2 libcairo2 libcap-ng0 libcap2 libcap2-bin libcbor0.6 libcc1-0 libcgi-fast-perl libcgi-pm-perl libclamav9 libcolord2 libcom-err2 libconfig-inifiles-perl libcpufreq0 libcrack2 libcrypt-dev libcrypt1 libcryptsetup12 libctf-nobfd0 libctf0 libcups2 libcurl3-gnutls libcurl4 libcwidget4 libdata-dump-perl libdatrie1 libdb5.3 libdbd-mysql-perl libdbi-perl libdbus-1-3 libdbus-glib-1-2 libdbusmenu-glib4 libdbusmenu-gtk4 libdconf1 libdebconfclient0 libdevmapper-event1.02.1 libdevmapper1.02.1 libdns-export1100 libdns-export1109 libdns1100 libdpkg-perl libdrm-amdgpu1 libdrm-common libdrm-intel1 libdrm-nouveau2 libdrm-radeon1 libdrm2 libedit2 libefiboot1 libefivar1 libelf1 libencode-locale-perl libepoxy0 liberror-perl libestr0 libev4 libevdev2 libevent-2.1-6 libevent-2.1-7 libevent-core-2.1-7 libexpat1 libexpat1-dev libext2fs2 libfakeroot libfastjson4 libfcgi-perl libfdisk1 libffi6 libffi7 libfido2-1 libfile-basedir-perl libfile-desktopentry-perl libfile-fcntllock-perl libfile-listing-perl libfile-mimeinfo-perl libfont-afm-perl libfontconfig1 libfontenc1 libfreetype6 libfribidi0 libfuse2 libfuse3-3 libfwupd2 libfwupdplugin1 libgail-common libgail18 libgcab-1.0-0 libgcc-9-dev libgcc-s1 libgconf-2-4 libgcrypt20 libgd3 libgdbm-compat4 libgdbm5 libgdbm6 libgdk-pixbuf2.0-0 libgdk-pixbuf2.0-bin libgdk-pixbuf2.0-common libgeoip1 libgetdns10 libgirepository-1.0-1 libgl1 libgl1-mesa-dri libglapi-mesa libglib2.0-0 libglib2.0-bin libglib2.0-data libglvnd0 libglx-mesa0 libglx0 libgmp10 libgnutls30 libgomp1 libgpg-error-l10n libgpg-error0 libgpgme11 libgpm2 libgraphite2-3 libgssapi-krb5-2 libgssapi3-heimdal libgstreamer1.0-0 libgtk-3-0 libgtk-3-bin libgtk-3-common libgtk2.0-0 libgtk2.0-bin libgtk2.0-common libgudev-1.0-0 libgusb2 libharfbuzz0b libhavege1 libhcrypto4-heimdal libheimbase1-heimdal libheimntlm0-heimdal libhiredis0.14 libhogweed4 libhogweed5 libhtml-form-perl libhtml-format-perl libhtml-parser-perl libhtml-tagset-perl libhtml-template-perl libhtml-tree-perl libhttp-cookies-perl libhttp-daemon-perl libhttp-date-perl libhttp-message-perl libhttp-negotiate-perl libhx509-5-heimdal libice6 libicu60 libicu66 libidn11 libidn2-0 libimagequant0 libimobiledevice6 libinotifytools0 libintl-perl libintl-xs-perl libio-html-perl libio-socket-ssl-perl libio-stringy-perl libip4tc0 libip4tc2 libip6tc0 libip6tc2 libipc-system-simple-perl libiptc0 libirs160 libisc-export1105 libisc-export169 libisc169 libisccc160 libisccfg160 libisl22 libisns0 libisoburn1 libisofs6 libitm1 libjansson4 libjbig0 libjcat1 libjemalloc2 libjpeg-turbo8 libjpeg8 libjs-jquery libjson-c3 libjson-c4 libjson-glib-1.0-0 libjson-glib-1.0-common libjte2 libk5crypto3 libkeyutils1 libklibc libkmod2 libkrb5-26-heimdal libkrb5-3 libkrb5support0 libksba8 liblcms2-2 libldap-2.4-2 libldap-common liblinear4 libllvm10 libllvm12 liblmdb0 liblocale-gettext-perl liblsan0 libltdl7 liblua5.1-0 liblua5.3-0 liblvm2app2.2 liblvm2cmd2.02 liblvm2cmd2.03 liblwp-mediatypes-perl liblwp-protocol-https-perl liblwres160 liblxc-common liblxc1 liblz4-1 liblzma5 liblzo2-2 libmagic-mgc libmagic1 libmailtools-perl libmaxminddb0 libmnl0 libmodule-find-perl libmodule-scandeps-perl libmount1 libmpc3 libmpdec2 libmpfr6 libmspack0 libmysqlclient21 libncurses5 libncurses6 libncursesw5 libncursesw6 libnet-dbus-perl libnet-http-perl libnet-smtp-ssl-perl libnet-ssleay-perl libnetfilter-conntrack3 libnettle6 libnettle7 libnewt0.52 libnfnetlink0 libnftables1 libnftnl11 libnghttp2-14 libnginx-mod-http-auth-pam libnginx-mod-http-dav-ext libnginx-mod-http-echo libnginx-mod-http-geoip libnginx-mod-http-geoip2 libnginx-mod-http-image-filter libnginx-mod-http-subs-filter libnginx-mod-http-upstream-fair libnginx-mod-http-xslt-filter libnginx-mod-mail libnginx-mod-stream libnih1 libnl-3-200 libnl-genl-3-200 libnotify-bin libnotify4 libnpth0 libnsl-dev libnsl2 libnspr4 libnss-ldap libnss-nis libnss-nisplus libnss-systemd libnss3 libnuma1 libodbc1 libp11-kit0 libpackagekit-glib2-18 libpam-cap libpam-ccreds libpam-cracklib libpam-google-authenticator libpam-ldap libpam-modules libpam-modules-bin libpam-runtime libpam-systemd libpam0g libpango-1.0-0 libpangocairo-1.0-0 libpangoft2-1.0-0 libparted-fs-resize0 libparted2 libpcap0.8 libpci3 libpciaccess0 libpcre2-8-0 libpcre3 libperl5.26 libperl5.30 libpipeline1 libpixman-1-0 libplist3 libplymouth4 libpng16-16 libpolkit-agent-1-0 libpolkit-gobject-1-0 libpopt0 libpq5 libproc-processtable-perl libprocps6 libprocps8 libproxy1v5 libpsl5 libpython2-stdlib libpython2.7 libpython2.7-minimal libpython2.7-stdlib libpython3-dev libpython3-stdlib libpython3.6-minimal libpython3.6-stdlib libpython3.8 libpython3.8-dev libpython3.8-minimal libpython3.8-stdlib libpython3.9 libpython3.9-dev libpython3.9-minimal libpython3.9-stdlib libqrencode3 libqrencode4 libquadmath0 libreadline5 libreadline7 libreadline8 librest-0.7-0 libroken18-heimdal librsvg2-2 librsvg2-common librtmp1 libsasl2-2 libsasl2-modules libsasl2-modules-db libsasl2-modules-ldap libseccomp2 libselinux1 libsemanage-common libsemanage1 libsensors-config libsensors5 libsepol1 libsepol2 libserf-1-1 libsigc++-2.0-0v5 libsigsegv2 libslang2 libsm6 libsmartcols1 libsmbios-c2 libsnappy1v5 libsodium23 libsort-naturally-perl libsoup-gnome2.4-1 libsoup2.4-1 libsqlite3-0 libss2 libssh-4 libssl-dev libssl1.0.0 libssl1.1 libssl3 libstdc++-9-dev libstdc++6 libstemmer0d libsvn1 libsystemd0 libtasn1-6 libterm-readkey-perl libtext-charwidth-perl libtext-iconv-perl libtext-wrapi18n-perl libtfm1 libthai-data libthai0 libtie-ixhash-perl libtiff5 libtimedate-perl libtinfo5 libtinfo6 libtirpc-common libtirpc-dev libtirpc3 libtry-tiny-perl libtsan0 libtss2-esys0 libubsan1 libuchardet0 libudev1 libudisks2-0 libunbound8 libunistring2 libupower-glib3 liburi-perl libusb-1.0-0 libusbmuxd6 libutempter0 libutf8proc2 libuuid1 libuv1 libvolume-key1 libvulkan1 libwayland-client0 libwayland-cursor0 libwayland-egl1 libwebp6 libwebpdemux2 libwebpmux3 libwind0-heimdal libwmf0.2-7 libwmf0.2-7-gtk libwrap0 libwww-perl libwww-robotrules-perl libx11-6 libx11-data libx11-protocol-perl libx11-xcb1 libxapian30 libxau6 libxaw7 libxcb-dri2-0 libxcb-dri3-0 libxcb-glx0 libxcb-present0 libxcb-randr0 libxcb-render0 libxcb-shape0 libxcb-shm0 libxcb-sync1 libxcb-xfixes0 libxcb1 libxcomposite1 libxcursor1 libxdamage1 libxdmcp6 libxext6 libxfixes3 libxft2 libxi6 libxinerama1 libxkbcommon0 libxkbfile1 libxml-parser-perl libxml-twig-perl libxml-xpathengine-perl libxml2 libxmlb1 libxmu6 libxmuu1 libxpm4 libxrandr2 libxrender1 libxshmfence1 libxslt1.1 libxss1 libxt6 libxtables12 libxtst6 libxv1 libxxf86dga1 libxxf86vm1 libyaml-0-2 libzstd1 linux-base linux-firmware linux-generic linux-generic-hwe-20.04 linux-headers-5.13.0-30-generic linux-headers-5.15.0-18 linux-headers-5.15.0-18-generic linux-headers-generic linux-headers-generic-hwe-20.04 linux-hwe-5.13-headers-5.13.0-30 linux-image-5.13.0-30-generic linux-image-5.15.0-18-generic linux-image-generic linux-image-generic-hwe-20.04 linux-libc-dev linux-modules-5.13.0-30-generic linux-modules-5.15.0-18-generic linux-modules-extra-5.13.0-30-generic linux-modules-extra-5.15.0-18-generic lm-sensors locales locate login logrotate logsave lsb-base lsb-release lshw lsof lua-bitop lua-cjson lua-lpeg lvm2 lynis lz4 make man-db manpages manpages-dev mariadb-client-10.3 mariadb-client-core-10.3 mariadb-common mariadb-server mariadb-server-10.3 mariadb-server-core-10.3 matrix-synapse matrix-synapse-ldap3 mawk mdadm mesa-vulkan-drivers mime-support mokutil mount mtr multiarch-support mysql-common nano ncurses-base ncurses-bin ncurses-term needrestart nessus nessusagent net-tools netbase netcat-openbsd nethogs nftables nginx-common nginx-full nmap nmap-common nodejs nscd open-iscsi openssh-client openssh-server openssh-sftp-server openssl overlayroot packagekit packagekit-tools parted passwd patch pci.ids pciutils pcmciautils perl perl-base perl-modules-5.26 perl-modules-5.30 perl-openssl-defaults pigz pinentry-curses policykit-1 postgresql postgresql-12 postgresql-client-12 postgresql-client-common postgresql-common powermgmt-base powertop procps psmisc publicsuffix python-apt-common python-pip-whl python-pkg-resources python-setuptools python2 python2-minimal python2.7 python2.7-minimal python3 python3-apparmor python3-apt python3-asn1crypto python3-attr python3-automat python3-bcrypt python3-bleach python3-bs4 python3-canonicaljson python3-certifi python3-cffi-backend python3-chardet python3-click python3-colorama python3-constantly python3-cryptography python3-daemonize python3-dbus python3-decorator python3-dev python3-distro-info python3-distupgrade python3-distutils python3-frozendict python3-gi python3-hamcrest python3-html5lib python3-httplib2 python3-hyperlink python3-idna python3-importlib-metadata python3-incremental python3-jinja2 python3-jsonschema python3-ldap3 python3-lib2to3 python3-libapparmor python3-llfuse python3-lxml python3-markupsafe python3-minimal python3-more-itertools python3-msgpack python3-nacl python3-netaddr python3-olefile python3-openssl python3-pam python3-phonenumbers python3-pil python3-pip python3-pkg-resources python3-prometheus-client python3-psycopg2 python3-pyasn1 python3-pyasn1-modules python3-pyinotify python3-pymacaroons python3-pyrsistent python3-requests python3-requests-unixsocket python3-serial python3-service-identity python3-setuptools python3-signedjson python3-simplejson python3-six python3-software-properties python3-sortedcontainers python3-soupsieve python3-systemd python3-treq python3-twisted python3-twisted-bin python3-typing-extensions python3-unpaddedbase64 python3-update-manager python3-urllib3 python3-venv python3-webencodings python3-wheel python3-yaml python3-zipp python3-zope.interface python3.6 python3.6-minimal python3.8 python3.8-dev python3.8-minimal python3.8-venv python3.9 python3.9-dev python3.9-minimal rar rclone readline-common redis-server redis-tools rpcsvc-proto rsync rsyslog sasl2-bin sbsigntool secureboot-db sed sensible-utils shared-mime-info shim-signed slapd slirp4netns snapd socat software-properties-common sqlite3 squashfs-tools ssl-cert stubby subversion sudo sysstat systemd systemd-sysv sysvinit-utils tar tcpdump thermald thin-provisioning-tools time tmux tpm-udev tzdata ubuntu-advantage-tools ubuntu-keyring ubuntu-mono ubuntu-release-upgrader-core ucf udev udisks2 uidmap unattended-upgrades unzip update-manager-core upower usb.ids usbmuxd usbutils util-linux uuid-runtime veeam veeam-release-deb veeamsnap wamerican wget whiptail whois wireless-regdb wondershaper x11-common x11-utils x11-xserver-utils xauth xdg-utils xkb-data xorriso xz-utils zerofree zip zlib1g zlib1g-dev zstd
2022-03-07 23:49:14,864 DEBUG Upgradable, but held- back:
2022-03-07 23:49:14,864 DEBUG Remove:
2022-03-07 23:49:14,864 DEBUG Install:
2022-03-07 23:49:14,864 DEBUG Upgrade:
2022-03-07 23:49:14,869 DEBUG apt btrfs snapshots supported: False
2022-03-07 23:49:14,870 DEBUG cache aufs_rw_dir: /tmp/
2022-03-07 23:49:14,870 DEBUG Free space on /: 47908925440
2022-03-07 23:49:14,870 DEBUG Dir /usr mounted on /
2022-03-07 23:49:14,870 DEBUG Dir /var mounted on /
2022-03-07 23:49:14,870 DEBUG Free space on /boot: 126469120
2022-03-07 23:49:14,870 DEBUG Dir /var/cache/apt/archives mounted on /
2022-03-07 23:49:14,870 DEBUG Dir /tmp mounted on /
2022-03-07 23:49:14,870 DEBUG Dir /home mounted on /
2022-03-07 23:49:14,870 DEBUG Dir /tmp mounted on /
2022-03-07 23:49:14,870 DEBUG fs_free contains: '{'/': <DistUpgrade.DistUpgradeCache.MyCache.checkFreeSpace.<locals>.FreeSpace object at 0x7feded096ac0>, '/usr': <DistUpgrade.DistUpgradeCache.MyCache.checkFreeSpace.<locals>.FreeSpace object at 0x7feded096ac0>, '/var': <DistUpgrade.DistUpgradeCache.MyCache.checkFreeSpace.<locals>.FreeSpace object at 0x7feded096ac0>, '/boot': <DistUpgrade.DistUpgradeCache.MyCache.checkFreeSpace.<locals>.FreeSpace object at 0x7feded096e50>, '/var/cache/apt/archives': <DistUpgrade.DistUpgradeCache.MyCache.checkFreeSpace.<locals>.FreeSpace object at 0x7feded096ac0>, '/tmp': <DistUpgrade.DistUpgradeCache.MyCache.checkFreeSpace.<locals>.FreeSpace object at 0x7feded096ac0>, '/home': <DistUpgrade.DistUpgradeCache.MyCache.checkFreeSpace.<locals>.FreeSpace object at 0x7feded096ac0>}'
2022-03-07 23:49:15,114 DEBUG dir '/var/cache/apt/archives' needs '0' of '<DistUpgrade.DistUpgradeCache.MyCache.checkFreeSpace.<locals>.FreeSpace object at 0x7feded096ac0>' (47908925440.000000)
2022-03-07 23:49:15,114 DEBUG dir '/usr' needs '0' of '<DistUpgrade.DistUpgradeCache.MyCache.checkFreeSpace.<locals>.FreeSpace object at 0x7feded096ac0>' (47908925440.000000)
2022-03-07 23:49:15,114 DEBUG dir '/var' needs '0' of '<DistUpgrade.DistUpgradeCache.MyCache.checkFreeSpace.<locals>.FreeSpace object at 0x7feded096ac0>' (47908925440.000000)
2022-03-07 23:49:15,114 DEBUG dir '/usr' needs '52428800' of '<DistUpgrade.DistUpgradeCache.MyCache.checkFreeSpace.<locals>.FreeSpace object at 0x7feded096ac0>' (47908925440.000000)
2022-03-07 23:49:15,114 DEBUG dir '/boot' needs '96588247.35' of '<DistUpgrade.DistUpgradeCache.MyCache.checkFreeSpace.<locals>.FreeSpace object at 0x7feded096e50>' (126469120.000000)
2022-03-07 23:49:15,114 DEBUG dir '/tmp' needs '5242880' of '<DistUpgrade.DistUpgradeCache.MyCache.checkFreeSpace.<locals>.FreeSpace object at 0x7feded096ac0>' (47856496640.000000)
2022-03-07 23:49:15,114 DEBUG dir '/' needs '10485760' of '<DistUpgrade.DistUpgradeCache.MyCache.checkFreeSpace.<locals>.FreeSpace object at 0x7feded096ac0>' (47851253760.000000)
2022-03-07 23:49:15,114 DEBUG dir '/tmp' needs '0.0' of '<DistUpgrade.DistUpgradeCache.MyCache.checkFreeSpace.<locals>.FreeSpace object at 0x7feded096ac0>' (47840768000.000000)
2022-03-07 23:49:15,114 DEBUG dir '/usr' needs '0.0' of '<DistUpgrade.DistUpgradeCache.MyCache.checkFreeSpace.<locals>.FreeSpace object at 0x7feded096ac0>' (47840768000.000000)
2022-03-07 23:49:15,115 DEBUG Found writable ESP /dev/sdb2 /boot/efi vfat rw,relatime,fmask=0077,dmask=0077,codepage=437,iocharset=iso8859-1,shortname=mixed,errors=remount-ro 0 0
2022-03-07 23:49:15,116 DEBUG demoted: 'libasn1-8-heimdal libgssapi3-heimdal libhcrypto4-heimdal libheimbase1-heimdal libheimntlm0-heimdal libhx509-5-heimdal libidn11 libkrb5-26-heimdal libroken18-heimdal libwind0-heimdal'
2022-03-07 23:49:15,117 DEBUG found components: {'jammy': {'universe', 'multiverse', 'main', 'restricted'}, 'jammy-updates': {'universe', 'multiverse', 'main', 'restricted'}, 'jammy-security': {'universe', 'multiverse', 'main', 'restricted'}}
2022-03-07 23:49:15,117 DEBUG abort called
2022-03-07 23:49:15,117 DEBUG openCache()
2022-03-07 23:49:16,320 DEBUG Comparing 5.13.0-30 with
2022-03-07 23:49:16,320 DEBUG Comparing 5.15.0-18 with 5.13.0-30
2022-03-07 23:49:16,391 DEBUG /openCache(), new cache size 66479


text:
Q: reactor-netty trailerHeaders not working with body in HttpServerResponse reactor-netty trailerHeaders not working with body in HttpServerResponse. If send called trailers not passed to client.
If send not called trailers pass to client.
Simple server with send method
DisposableServer server =
                HttpServer.create()
                        .port(8083)
                        .protocol(HttpProtocol.H2C)
                        .handle((request, response) -> {
                            return response
                                    .status(200)
                                    .header(HttpHeaderNames.TRAILER, "grpc-status")
                                    .chunkedTransfer(true)
                                    .trailerHeaders(s -> {
                                        s.add("grpc-status", "0");
                                    })
                                    .sendString(Mono.just("d"));
                        })
                        .bindNow();

        server.onDispose()
                .block();

Do request to server
curl -X POST http://localhost:8083/api.Ping/GetPing  --http2-prior-knowledge -H 'Content-Type: application/grpc' --data-binary "@myfile.dat"  -v
....
> content-length: 48
>
* We are completely uploaded and fine
* Connection state changed (MAX_CONCURRENT_STREAMS == 4294967295)!
< HTTP/2 200
< trailer: grpc-status
< content-length: 1
<
* Connection #0 to host localhost left intact
d

Threis no trailerHeaders.
And if I disable sendString:
    public static void server() {
        DisposableServer server =
                HttpServer.create()
                        .port(8083)
                        .protocol(HttpProtocol.H2C)
                        .handle((request, response) -> {
                            return response
                                    .status(200)
                                    .header(HttpHeaderNames.TRAILER, "grpc-status")
                                    .chunkedTransfer(true)
                                    .trailerHeaders(s -> {
                                        s.add("grpc-status", "0");
                                    });
//                                    .sendString(Mono.just("d"));
                        })
                        .bindNow();

        server.onDispose()
                .block();
    }

trailerHeaders appear
> content-length: 48
>
* We are completely uploaded and fine
* Connection state changed (MAX_CONCURRENT_STREAMS == 4294967295)!
< HTTP/2 200
< trailer: grpc-status
<
< grpc-status: 0
* Connection #0 to host localhost left intact

A: Mono.just("d") and Flux.just("d") are considered as something that defines completely the message and are not considered chunked. I slightly modified your example and it shows that the trailing headers work as expected when we use Flux.just("1", "2", ...) basically more than one element which is considered chunked message.
DisposableServer server =
            HttpServer.create()
                    .port(8083)
                    .protocol(HttpProtocol.H2C)
                    .handle((request, response) -> {
                        return response
                                .status(200)
                                .header(HttpHeaderNames.TRAILER, "grpc-status")
                                .chunkedTransfer(true)
                                .trailerHeaders(s -> {
                                    s.add("grpc-status", "0");
                                })
                                .sendString(Flux.just("d1", "d2"));
                    })
                    .bindNow();

    server.onDispose()
            .block();


text:
Q: application insights instrumental key when move to new subscription? I'm moving application insight recourses to a new subscription in azure. Question is will instrumental key and Connection String change when moving?
/Martin

A: Briefly - Application Insights Instrumental key and Connection String will be the same
Azure Application Insights can be moved to another Subscription.
https://learn.microsoft.com/en-us/azure/azure-resource-manager/management/move-support-resources#microsoftinsights

A: Moving resource only changes resource ID, while instrument key and connection string are not related to it, so it won't change.

But before you move to new subscription, you also need to check the details, see this doc.


text:
Q: convert elements after xml to array I have an XML with products and I converted it to Array from XML using this function http://www.bin-co.com/php/scripts/xml2array/
I have a problem when I have only one attribute in XML file and I'm trying to convert first array into multidimensional.
[attributes] => Array
    (
        [attribute] => Array
            (
                [name] => 44
                [quantity] => 1
                [availability] => 1
            )

    )

to
    [attributes] => Array
        (
            [attribute] => Array
                (
                    [0] => Array
                        (
                            [name] => 40
                            [quantity] => 1
                            [availability] => 1
                        )
                )
        )

I need a multidimensional array for a loop
foreach($products["attributes"]["attribute"] as $attr) {
    echo $attr["name"]
}

XML
<?xml version="1.0" encoding="UTF-8"?>
<products>
    <product>
        <id>1006</id>
        <sku>360116 05</sku>
        <attributes>
            <attribute>
                <name>44</name>
                <quantity>1</quantity>
                <availability>1</availability>
            </attribute>
        </attributes>
    </product>
    <product>
        <id>2501</id>
        <sku>AQ4040</sku>
        <attributes>
            <attribute>
                <name>42.5</name>
                <quantity>13</quantity>
                <availability>2</availability>
            </attribute>
            <attribute>
                <name>44</name>
                <quantity>18</quantity>
                <availability>2</availability>
            </attribute>
        </attributes>
    </product>
</products>

A: May b you get some solution from here http://us1.php.net/xml_parse_into_struct didn't try but hope it will help. Refer Example #3 parsemoldb.php on it, similar to your function file.

A: If you need to get at the items in this sort of structure, it could be simpler to use SimpleXML.  The following code access the data very simply.
<?php
error_reporting ( E_ALL );
ini_set ( 'display_errors', 1 );

$xmlText = <<< XML
<?xml version="1.0" encoding="UTF-8"?>
<products>
    <product>
        <id>1006</id>
        <sku>360116 05</sku>
        <attributes>
            <attribute>
                <name>44</name>
                <quantity>1</quantity>
                <availability>1</availability>
            </attribute>
        </attributes>
    </product>
    <product>
        <id>2501</id>
        <sku>AQ4040</sku>
        <attributes>
            <attribute>
                <name>42.5</name>
                <quantity>13</quantity>
                <availability>2</availability>
            </attribute>
            <attribute>
                <name>44</name>
                <quantity>18</quantity>
                <availability>2</availability>
            </attribute>
        </attributes>
    </product>
</products>
XML;

$doc = simplexml_load_string($xmlText);

foreach ( $doc->product as $product)   {
   echo "Product id=".$product->id.",";
   foreach ( $product->attributes->attribute as $attribute){
       echo "name:".$attribute->name.",";
   }
   echo "\n";
}

echo "Complete";

The output of which is...
Product id=1006,name:44,
Product id=2501,name:42.5,name:44,
Complete

When loaded using simple_xml_ you can then access sub-elements as though they are attributes of the element above, so $product->attributes->attribute uses each product and then picks out the attributes element and then each attribute element within that.
To load from a file, use simplexml_load_file().

A: I think this is what you might be looking for:
foreach($products["attributes"] as $product) {
    foreach($product["attribute"] as $attr) {
        echo $attr["name"]
    }
}


text:
Q: Attaching a process to a debug session: javaw.exe is not shown followed the steps mentioned in the following thread,
Attaching a process to a debug session: empty process list
Now I am able to get the process list. But Process list is missing "javaw.exe" which is shown in the task manager.
any help?

A: Enter the process id of the process you want to attach to.
You can get the process id by looking for the process's image name in the task manager.

A: I first had this problem but found the process under the name "Program". Take note of the executable name.


text:
Q: moving toolbar for phpGrid to top of datagrid I'm trying to move the toolbar and its icons to the top of the phpGrid Lite datagrid. From the phpGrid knowledge base, I got this code:
$dg->cust_prop_jsonstr = 'toppager:true,';
$dg->before_script_end = '
        jQuery("#orders")
                    .navSeparatorAdd("#orders_toppager_left",{
                        position:"first"
                    })
                    .navButtonAdd("#orders_toppager_left",{
                        caption:"Advanced Search  ",
                        title:"Advanced Search",
                        buttonicon:"ui-icon-search",
                        onClickButton: function(){
                            jQuery("#orders").jqGrid("searchGrid", {multipleSearch:true,showQuery:true});
                        },
                        position:"first"
                    })
                    .navSeparatorAdd("#orders_toppager_left",{
                        position:"last"
                    })
                    .navButtonAdd("#orders_toppager_left",{
                        caption:"Export to Excel  ",
                        title:"Export to Excel",
                        buttonicon:"ui-icon-extlink",
                        onClickButton: function(){
                            jQuery("#orders").jqGrid("excelExport",{url:"../export.php?dt=json&gn=orders&export_type=EXCEL"});
                        },
                        position:"last"
                    })
                    .navSeparatorAdd("#orders_pager1_left",{
                        position:"first"
                    })
                        .navButtonAdd("#orders_pager1_left",{
                            caption:"Advanced Search  ",
                            buttonicon:"ui-icon-search",
                            onClickButton: function(){
                                jQuery("#orders").jqGrid("searchGrid", {multipleSearch:true,showQuery:true});
                            },
                            position:"first"
                        });

                        (function($) {
                            $.rand = function(arg) {
                                if ($.isArray(arg)) {
                                    return arg[$.rand(arg.length)];
                                } else if (typeof arg === "number") {
                                    return Math.floor(Math.random() * arg);
                                } else {
                                    return 4;  // chosen by fair dice roll
                                }
                            };
                        })(jQuery); ';

I've replace $dg with my datagrid name. But the #orders variable is what's throwing me. The documentation says, "replace "orders" with your own datagrid table name used."
Is the datagrid table name my database table name? I tried that, and it didn't work. Is it my database's name? I tried that, too, and it didn't work. I'm at a loss.

A: It works for me. If your constructor is something like this
$dg = new C_DataGrid("select * from products", "productCode", "productcode");

Then the table name is "products". So replace "orders" with "products". Simple as that. See images. Maybe you use a previous version.


text:
Q: Site Regional Settings time zone vs User Profile time zone - how does this work I'm working to define requirements for a site collection with 50+ sub-sites. The company is based in the Central Time zone. We will have internal and external users, but all will log in to access the site collection.
SharePoint is new to our company, so my IT team is relying on an outside firm to do the initial set up. I'm having a hard time understanding what I'm being told about time zones.
We will have a calendar for each site in the site collection. There will be a date/time field with both date and time for the start of each event. My understanding is that SharePoint stores all date/time as UTC.
If we set the site regional settings for all sites to be Central Time and a user is in Eastern Time, what will the user see?
What changes could a user with standard contribute permissions make which would change what time was displayed?

A: When you change the Regional settings at a site level everyone will see the same in your case central time. If the user is in eastern zone and wants to see in his zone he has to change his regional settings. This change will override the site settings to that user.
You refer the MSDN article for information on this.


text:
Q: mysql selecting records for every n hour I have around 200,000 records and each record has DATETIME field. I have been trying to select records by every n hours using the DATETIME field. For example if n = 1; 1 record is selected for every 1 hour. I haven't been able to find many examples online.
Table: Product
Fields: id, name, description, lastSoldOn

A: Well, you can convert the date/time to seconds and use arithmetic to select one value from each n-hour period:
select min(datetimecol)
from t
group by floor(to_seconds(datetimecol) / (3600 * $n));

If you need the complete record, you can use join or exists to match back to the original table.


text:
Q: Error when installing "devtools" package for R in Ubuntu Could someone help me to find out a solution to this error?

install.packages("devtools")

  > * installing *source* package 'RCurl' ...
    > ** package 'RCurl' successfully unpacked and MD5 sums checked checking for curl-config... no Cannot find curl-config ERROR: configuration
    > failed for package 'RCurl'
    > * removing '/home/juanchi/R/x86_64-pc-linux-gnu-library/3.0/RCurl' Warning in install.packages :   installation of package 'RCurl' had
    > non-zero exit status ERROR: dependency 'RCurl' is not available for
    > package 'httr'
    > * removing '/home/juanchi/R/x86_64-pc-linux-gnu-library/3.0/httr' Warning in install.packages :   installation of package 'httr' had
    > non-zero exit status ERROR: dependencies 'httr', 'RCurl' are not
    > available for package 'devtools'
    > * removing '/home/juanchi/R/x86_64-pc-linux-gnu-library/3.0/devtools' Warning in install.packages :   installation of package 'devtools' had
    > non-zero exit status
    >
    > The downloaded source packages are in

print(sessionInfo(), locale=FALSE)
R version 3.0.2 (2013-09-25) Platform: x86_64-pc-linux-gnu (64-bit)

attached base packages: [1] stats     graphics  grDevices utils     datasets  methods   base

loaded via a namespace (and not attached): [1] tools_3.0.2
    >   '/tmp/RtmpDMZcfn/downloaded_packages'

A: The pertinent lines:
> ** package 'RCurl' successfully unpacked and MD5 sums checked checking for curl-config... no Cannot find curl-config ERROR: configuration
    > failed for package 'RCurl'

You need to install libcurl for RCurl (which devtools depends on).
From http://www.omegahat.org/RCurl/FAQ.html, assuming you're on a Linux flavour using apt-get:
sudo apt-get install libcurl4-gnutls-dev

should get you the libraries you need for RCurl.

A: check your R version. Try to update this. This problem will be solved. I spent one day and go through all the solution. No solution work. Try this solution.


text:
Q: function to Get the terminal file descriptor of the current process UNIX I want to use function:
pid_t tcgetpgrp(int fildes);

How to retrieve the fildes(to be passed to this function).
And is process group id returned by this function is same as the one returned by
getpgrp(0)//0 for the calling process

??

A: Often standard input, output, and/or error (0, 1, or 2) will be connected to the controlling terminal.  To be sure just open /dev/tty, which will always be the controlling terminal if you have one.  The file descriptor returned from open() can be passed to tcgetpgrp() and then closed if it is no longer needed.
The tcgetpgrp() function returns the foreground process group id, whereas getpgrp() returns your process group id.  They would be the same if your process is in the foreground, or different if your process is in the background.  tcgetpgrp() would return an error if your process had no controlling terminal, and is therefore not in the foreground or background.

A: You can pass any file descriptor that is open to a terminal; the call will retrieve the information about that terminal.  A process may have file descriptors open to a number of terminals, but at most one of those is the process's controlling terminal.  A given terminal may, in fact, have no process group associated with it for which it is the controlling terminal (though it is relatively unlikely to be opened in that case).
Michiel Buddingh' suggested STDIN_FILENO from <unistd.h> (which is normally a fancy way of writing 0); the trouble with that is that programs can have standard input redirected from a file or have the input piped to it, in which cases the standard input is not a terminal.  Similar considerations apply to STDOUT_FILENO (aka 1).  The best descriptor to use, therefore, is often STDERR_FILENO (aka 2); that is the least likely to be redirected.
The second half of the question is 'does tcgetpgrp() return the same value as getpgrp()'.  The answer is 'No'.  Every process belongs to a process group, and getpgrp() will reliably identify that group.  Not every process has a controlling terminal, and not every file descriptor identifies a terminal, so tcgetpgrp() can return the error ENOTTY.  Further, when tcgetpgrp() does return a value, it is the value of the current foreground process group associated with the terminal, which is explicitly not necessarily the same as the process group of the current process, which may be part of a background process group associated with the terminal.  The current foreground process group can change over time, too.

A: You need a file descriptor number attached to the current terminal.  For example, you can use 0 or STDIN_FILENO from unistd.h.


text:
Q: Navigation Bar Items evenly spread I am very new to html and css and I am currently struggling with my nav bar. The items should all take up the same amount of space (like in this picture screenshot of my screendesign). How do I achieve the position of my nav-bar elements? Also why is my font-size suddenly so small even though I used the same font size as in my screendesign?

body, html {
    width: auto;
    overflow-y: scroll;
    height: 2400px;
    margin: auto;
    padding: 0;
    overflow-x: hidden;
}

body{
    font-family: Baskerville, Helvetica, serif;
    font-size: 20px;
    text-align: center;
    letter-spacing: .2em;
    color: #A5A58D;
    background-image: url(file:///Users/alinasprenger/Documents/FH%20St.%20Po%CC%88lten/Interaktive%20Medien/Images/Pottery%20Website%20Background%20Blurred-1.jpg);
    background-repeat: no-repeat;
    background-attachment: fixed;
    background-size: cover;
    background-position: center;
}

.header1{
    height: 50px;
    padding: 50px 0 5px 0;
    font-size: 41px;
    text-transform:   uppercase;
}

.cf:before,
.cf:after{
  content: "";
  display: table;
}

.cf:after{
  clear:both;
}

.cf{
  zoom:1;
}

nav{
  background: #B7B7A4;
  font-size: 20px;
  height: 42px;
}

ul, li{
  margin: 0;
  padding: 0;
  list-style: none;
  float: left;

}

ul{
  background: #B7B7A4;
  height: 42px;
  width: 100%;
}

li a{
  display: block;
  line-height: 42px;
  padding: 0 1em;
  color: #FFF1E6;
}

li a:hover{
  background: #AEAE98;
  height: 42px;
  position: relative;
}

.current, a:hover.current{
  background: #909072;
  color: #FFF1E6;
  position: relative;
  height: 42px;
}

.header2{
    display: flex;
    height: 90px;
    width: 100%;
    padding: 20% 0 0 0;
    align-items: center;
    justify-content: center;
    text-align: center;
    font-size: 50px;
    background-color: transparent;
    color: #A5A58D;
    flex-wrap: wrap;
    position: fixed;
    bottom: 20%;
}

.header3{
    font-size: 41px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 485px;
    height: 445px;
    background-color: #A5A58D;
    color: #EDDCD2;
    flex-wrap: wrap;
    position: fixed;
    padding: 2em;
    margin-left: 5em;
    text-align: center;
    top: 1544px;
    left: 22%;
}

.textparagraphen1{
    display: flex;
    align-items: center;
    justify-content: center;
    width: 485px;
    height: 445px;
    background-color: #A5A58D;
    color: #EDDCD2;
    flex-wrap: wrap;
    position: absolute;
    z-index: 2;
    padding: 15px;
    top: 239px;
    left: 22%;
    font-size: 20px;
    line-height: 23px;
}

a{
    text-decoration: none;
    font-size: 10px;
    color: #EDDCD2;
}

.textparagraphen2{
    display: flex;
    align-items: center;
    justify-content: center;
    width: 485px;
    height: 445px;
    background-color: #A5A58D;
    color: #EDDCD2;
    flex-wrap: wrap;
    position: absolute;
    padding: 15px;
    top: 999px;
    left: 53%;
    font-size: 20px;
    line-height: 23px;
}

.textparagraphen3{
    display: flex;
    align-items: center;
    justify-content: center;
    width: 485px;
    height: 445px;
    background-color: #A5A58D;
    color: #EDDCD2;
    flex-wrap: wrap;
        position: absolute;
        padding: 15px;
        top: 1544px;
        left: 22%;
        font-size: 20px;
        line-height: 23px;
    }

    .textparagraphen4{
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        width: 68.4%;
        height: 453px;
        background-color: #A5A58D;
        color: #EDDCD2;
        flex-wrap: wrap;
        padding: 15px;
        margin: 0 15% 0 15%;
        top: 255px;
        position: absolute;
        line-height: 23px;
    }

    .linksammlung{

        text-decoration: underline;
        color: #EDDCD2;
        font-size: 22px;
        text-transform:   uppercase;
        font-weight: bold;
    }

    .abbildung1{
        position: absolute;
        left: 53%;
        top: 239px;
    }

    .abbildung2{
        position: absolute;
        left: 10%;
        top: 784px;
    }

    .abbildung3{
        position: absolute;
        left: 53%;
        top: 1544px;
    }

    .abbildung5{
        position: absolute;
        left: 15%;
        top: 1664px;
    }

    .abbildung6{
        position: absolute;
        left: 52.6%;
        top: 1664px;
    }

    .tutorialvideo{
        position: absolute;
        text-align: center;
        width: 100%;
        height: 100%;
        top: 808px;
}

.footerContainer {
    top: 2322px;
    position: absolute;
    text-align: center;
    width: 100%;
}

.footer{
    width: 50%;
    margin: 0 auto;
    font-size: 25px;
    color: #A5A58D;
    text-decoration: none;
    border-right: 1px solid #A5A58D;
    padding: 0 20px;
}

.footer2{
    font-size: 25px;
    color: #A5A58D;
    text-decoration: none;
    padding: 0 20px;
}
<!DOCTYPE HTML>

<link rel="stylesheet" href="WS 2020 Screendesign Unterseiten.css">

<title> ALINA'S POTTERY </title>

 Alina's Pottery

Home

Pottery

General

Hand-Building

Pottery Wheel

Materials

Temperatures

Tutorials

View All

Get Started

Plates

Mugs

Bowls

Shop

    Pottery is the process

    and the products of forming objects

    of desired shape with clay

    and other ceramic materials,

    which are fired at high temperatures

    (600-1600°C) to give them a hard,

    durable form.

    Major types include earthenware,

    stoneware and porcelain.

https://en.wikipedia.org/wiki/Pottery

        The most common forms of pottery

        are hand-building and

        pottery on a wheel.

        I mainly do hand-building

        with stoneware because

        I love the unique look every

        single piece gets.

        After firing, I glaze my work

        and then fire it again.

        That way, you can even wash

        your ceramics in the dish-washer!

        The result is incredibly individual

        tableware that will make everybody

        want to know where you got it from.

        The process is not only easy,

        but also so much fun!

        #potterylove

    About Me
     Socials
    Imprint

A: I added display: flex into your ul element, with that, all the elements inside of this ul, will occupy the same space.
About the font size beign small, you are setting in the body font-size: 20px, every element that is inside your body, will inheritance that size, also, in your nav element, again you're setting 20px, if you want bigger font size, try using a different value other than 20px
Hope it works for you!

body, html {
    width: auto;
    overflow-y: scroll;
    height: 2400px;
    margin: auto;
    padding: 0;
    overflow-x: hidden;
}

body{
    font-family: Baskerville, Helvetica, serif;
    font-size: 20px;
    text-align: center;
    letter-spacing: .2em;
    color: #A5A58D;
    background-image: url(file:///Users/alinasprenger/Documents/FH%20St.%20Po%CC%88lten/Interaktive%20Medien/Images/Pottery%20Website%20Background%20Blurred-1.jpg);
    background-repeat: no-repeat;
    background-attachment: fixed;
    background-size: cover;
    background-position: center;
}

.header1{
    height: 50px;
    padding: 50px 0 5px 0;
    font-size: 41px;
    text-transform:   uppercase;
}

.cf:before,
.cf:after{
  content: "";
  display: table;
}

.cf:after{
  clear:both;
}

.cf{
  zoom:1;
}

nav{
  background: #B7B7A4;
  font-size: 20px;
  height: 42px;
}

ul, li{
  display: flex;
  margin: 0;
  padding: 0;
  list-style: none;
  float: left;

}

ul{
  background: #B7B7A4;
  height: 42px;
  width: 100%;
}

li a{
  display: block;
  line-height: 42px;
  padding: 0 1em;
  color: #FFF1E6;
}

li a:hover{
  background: #AEAE98;
  height: 42px;
  position: relative;
}

.current, a:hover.current{
  background: #909072;
  color: #FFF1E6;
  position: relative;
  height: 42px;
}

.header2{
    display: flex;
    height: 90px;
    width: 100%;
    padding: 20% 0 0 0;
    align-items: center;
    justify-content: center;
    text-align: center;
    font-size: 50px;
    background-color: transparent;
    color: #A5A58D;
    flex-wrap: wrap;
    position: fixed;
    bottom: 20%;
}

.header3{
    font-size: 41px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 485px;
    height: 445px;
    background-color: #A5A58D;
    color: #EDDCD2;
    flex-wrap: wrap;
    position: fixed;
    padding: 2em;
    margin-left: 5em;
    text-align: center;
    top: 1544px;
    left: 22%;
}

.textparagraphen1{
    display: flex;
    align-items: center;
    justify-content: center;
    width: 485px;
    height: 445px;
    background-color: #A5A58D;
    color: #EDDCD2;
    flex-wrap: wrap;
    position: absolute;
    z-index: 2;
    padding: 15px;
    top: 239px;
    left: 22%;
    font-size: 20px;
    line-height: 23px;
}

a{
    text-decoration: none;
    font-size: 10px;
    color: #EDDCD2;
}

.textparagraphen2{
    display: flex;
    align-items: center;
    justify-content: center;
    width: 485px;
    height: 445px;
    background-color: #A5A58D;
    color: #EDDCD2;
    flex-wrap: wrap;
    position: absolute;
    padding: 15px;
    top: 999px;
    left: 53%;
    font-size: 20px;
    line-height: 23px;
}

.textparagraphen3{
    display: flex;
    align-items: center;
    justify-content: center;
    width: 485px;
    height: 445px;
    background-color: #A5A58D;
    color: #EDDCD2;
    flex-wrap: wrap;
        position: absolute;
        padding: 15px;
        top: 1544px;
        left: 22%;
        font-size: 20px;
        line-height: 23px;
    }

    .textparagraphen4{
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        width: 68.4%;
        height: 453px;
        background-color: #A5A58D;
        color: #EDDCD2;
        flex-wrap: wrap;
        padding: 15px;
        margin: 0 15% 0 15%;
        top: 255px;
        position: absolute;
        line-height: 23px;
    }

    .linksammlung{

        text-decoration: underline;
        color: #EDDCD2;
        font-size: 22px;
        text-transform:   uppercase;
        font-weight: bold;
    }

    .abbildung1{
        position: absolute;
        left: 53%;
        top: 239px;
    }

    .abbildung2{
        position: absolute;
        left: 10%;
        top: 784px;
    }

    .abbildung3{
        position: absolute;
        left: 53%;
        top: 1544px;
    }

    .abbildung5{
        position: absolute;
        left: 15%;
        top: 1664px;
    }

    .abbildung6{
        position: absolute;
        left: 52.6%;
        top: 1664px;
    }

    .tutorialvideo{
        position: absolute;
        text-align: center;
        width: 100%;
        height: 100%;
        top: 808px;
}

.footerContainer {
    top: 2322px;
    position: absolute;
    text-align: center;
    width: 100%;
}

.footer{
    width: 50%;
    margin: 0 auto;
    font-size: 25px;
    color: #A5A58D;
    text-decoration: none;
    border-right: 1px solid #A5A58D;
    padding: 0 20px;
}

.footer2{
    font-size: 25px;
    color: #A5A58D;
    text-decoration: none;
    padding: 0 20px;
}
<!DOCTYPE HTML>

<link rel="stylesheet" href="WS 2020 Screendesign Unterseiten.css">

<title> ALINA'S POTTERY </title>

 Alina's Pottery

Home

Pottery

General

Hand-Building

Pottery Wheel

Materials

Temperatures

Tutorials

View All

Get Started

Plates

Mugs

Bowls

Shop

    Pottery is the process

    and the products of forming objects

    of desired shape with clay

    and other ceramic materials,

    which are fired at high temperatures

    (600-1600°C) to give them a hard,

    durable form.

    Major types include earthenware,

    stoneware and porcelain.

https://en.wikipedia.org/wiki/Pottery

        The most common forms of pottery

        are hand-building and

        pottery on a wheel.

        I mainly do hand-building

        with stoneware because

        I love the unique look every

        single piece gets.

        After firing, I glaze my work

        and then fire it again.

        That way, you can even wash

        your ceramics in the dish-washer!

        The result is incredibly individual

        tableware that will make everybody

        want to know where you got it from.

        The process is not only easy,

        but also so much fun!

        #potterylove

    About Me
     Socials
    Imprint


text:
Q: How to Batch Update XML files I have a bunch of XML that all conform to the same schema.  A particular element I want to batch edit only occurs exactly once each of the XML files and has an identical xPath in each of these files.
e.g.  /Valid/HeaderInfo/SoftwareID

I want to create a script/procedure so that I can replace the value (I believe it is more accurately called the text value of the node) for this specific element and perform that update to all my XML files in a folder of group of folders.  For instance right now it is:
<SoftwareID>12451245</SoftwareID>

I want it to be
<SoftwareID>53623745</SoftwareID>

instead.
I am currently just starting out in the world of programming, as well as learning about XML data in general -  and I need some fundamental information about how to even start.  What would be the best way to do this?  I have Altova XMLSpy and I know there is a scripting component to it.  But is it more appropriate to do this in a specific programming language (I am currently learning Visual Basic)  or is there some other software that exisits for performing these types of batch updates?
Any information that would be put me in the right direction would be great!
Thanks!
Update  (06/26/13)
The XPath to FilingSoftwareId (and the updated element name) is actually:
  ValidFiling/FilingHeader/FilingSoftwareId

With ValidFiling being the root of the XML document.  I used what you provided  and updated accordingly but my result is a duplicate of my original XML file when I select this XSL file for XSL Transformation in Altova XMLSpy.
Is it possible that the update to the FilingSoftwareID is being replaced with the original value when the second catch-all template is applied to the document?
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0">
    <xsl:output omit-xml-declaration="yes" indent="yes" method="xml"/>
    <xsl:template match="/ValidFiling/FilingHeader/FilingSoftwareId">
        <FilingSoftwareId>
            <xsl:text>243523452345</xsl:text>
        </FilingSoftwareId>
    </xsl:template>
    <xsl:template match="node()|@*">
        <xsl:copy>
                <xsl:apply-templates select="node()|@*"/>
        </xsl:copy>
    </xsl:template>
</xsl:stylesheet>

Thanks again!

A: I would write an identity-translate XSL and then apply that XSL to all the XMLs in that folder using whatever batch technology you wish (.bat, VB app if you like). Write a match for the specific element or elements you wish to change and then include a general template that outputs all the content of everything else as is.
Without testing, it should be something like this:
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0">
<xsl:template match="//Valid/HeaderInfo/SoftwareID">
    <SoftwareID>
        <xsl:text>53623745</xsl:text>
    </SoftwareID>
</xsl:template>
<xsl:template match="@*|node()">
    <xsl:copy>
        <xsl:apply-templates select="@*|node()"/>
    </xsl:copy>
</xsl:template>
</xsl:stylesheet>

You could even expand that example to pass in the new value as a parameter into the transform so you never have to even edit it.


text:
Q: How to create custom time zone in PostgreSQL? I need a time zone which UTC+02:00 in winter time and switch to summer time (UTC+03:00) at first Sunday of March and switch back at first Sunday of November (the same as American DST rule).
All city I found in PostgreSQL database switch to UTC+03:00 at last Sunday of October and switch back UTC+02:00 at last Sunday of March

A: PostgreSQL gets its time zone information from the IANA Time Zone Database, either the version installed on your operating system, or a private copy owned by PostgreSQL. Which one is used depends on how PostgreSQL was configured at build time (look for --with-system-tzdata in the output of pg_config --configure).
To add a new time zone, you'd have to modify that time zone database. The Wikipedia page has an introduction to the format and the procedure.


text:
Q: Proper capitalization for all character columns I feel like I'm missing something obvious, but I'm trying to capitalize every word in every column that is a character. I basically have a messy data set with names, addresses, and phone numbers, and I want to clean it so that the names and addresses are capitalized. Some names are totally lowercase, some all uppercase, some a mix.
This is what I've done (got the code for capitalizing from another question here), and I'm not sure why it's not working.
simpleCap <- function(x) {
  s <- tolower(x)
  s <- strsplit(s, " ")[[1]]
  paste(toupper(substring(s, 1,1)), substring(s, 2), sep="", collapse=" ")
}

test <- test %>%
  mutate_if(function(.) is.character(.), sapply(., simpleCap))

The error I'm getting is:
"Error in get(.x, .env, mode = "function") :
object 'email@email.com' of mode 'function' was not found"
EDIT: Here's an example of my data set:
test <- data.frame("name" = c("Ellie Golding", "angela smith", "JOHN DOE", "jake elSON"),
                 "address" = c("123 magic lane", "321 MAGIC LANE", "200 magIC LANE", "99 Magic Lane"),
                 "phone" = c(123, 122, 111, 132))
test <- test %>%
    mutate(name = as.character(name), address = as.character(address), phone = as.numeric(phone))

A: Here's an approach with tools::toTitleCase which is a base package:
library(dplyr) # Version >= 1.0.0
library(purrr)
test %>%
  mutate(across(.cols = which(map_lgl(.,~any(is.na(as.integer(as.character(.x)))))),
                ~ tools::toTitleCase(tolower(.))))
#           name        address phone
#1 Ellie Golding 123 Magic Lane   123
#2  Angela Smith 321 Magic Lane   122
#3      John Doe 200 Magic Lane   111
#4    Jake Elson  99 Magic Lane   132


text:
Q: Fabricjs: How to get the area? I need to know the area of all elements of the group. Is there a ready-made solution? Perhaps you know the area excluding the imposition?
window.canvas = new fabric.Canvas('fabriccanvas');
var circle1 = new fabric.Circle({
  radius: 50,
  fill: 'red',
  left: 0
});
var Rect = new fabric.Rect({
    left: 50,
  top: 50,
  height: 20,
  width: 20,
  fill: 'green'
});
var circle2 = new fabric.Circle({
  radius: 20,
  fill: 'black',
  left: 70,
  top: 80
});
var group = new fabric.Group([ circle1, circle2, Rect ], {});
window.canvas.add(group);

A: VINET,
There is no predefined functionality, you have to build your own. This is short example how to calculate area for circles and rectangles in the group (as you created above):
var groupArea = 0;

group.forEachObject(function(o){
  groupArea += calculateArea(o);
});

function calculateArea(obj){
    switch (obj.type){
    case 'circle':
        return Math.PI*obj.radius*obj.radius;
    break;
    case 'rect':
        return obj.width*obj.height;
    break;
  }
}

alert(groupArea);

This post is how to calculate polygon area: Calculating Polygon Area
This post is for triangle area: Calculate triangle area and circumference from user input sides
Hopefully it will help you.


text:
Q: .val nao funciona em button submit Tenho um botão de submit com um span dentro:

    <button type="submit" class="btn btn-primary btn-loading">
       Próxima etapa
    </button>

e queria mudar o texto dele quando estiver enviando, porem quando eu uso o .val não acontece nada. Porem se eu usar .text ele muda o texto mas tira o  e é preciso que ele continue.
Meu JS ( já esta dentro de document ready ):
var btnsubmit = $(":submit");
var loadingcircle = $("span.circle");
loadingcircle.show();
btnsubmit.prop('disabled', true).val("Validando CNPJ");

A: Temos alguns pontos a considerar:
1- O uso da função val()  não é viável nesse caso pois o seu button não tem o atributo value.
2- Usando text() você conseguirá mudar o texto do botão, porém, todo conteúdo que tiver dentro dele será sobrescrito.
Uma solução: Usar a função html().
Mesmo assim o conteúdo que estiver no botão será sobrescrito, para isso, basta adicionar novamente seu span e após inserir o texto pretendido.
Ficará assim:

$('.btn-loading').on('click', function(){
    $(this).html(" Carregando...");
});
.circle:before {
  content: "♦";
}

    <button type="submit" class="btn btn-primary btn-loading">
       Próxima etapa
    </button>


text:
Q: Can I mimic multiple passed-object dummy arguments without adding dependencies? I previously asked Can I mimic multiple passed-object dummy arguments in Fortran?
I over-simplified my problem for that question, and a better example of the code I would like to write is
module m_Parent
  type, abstract :: Parent
  contains
    procedure(f_Parent), deferred :: f
  end type

  abstract interface
    subroutine f_Parent(foo,bar)
      import Parent
      implicit none
      class(Parent), intent(in) :: foo
      class(Parent), intent(in) :: bar
    end subroutine
  end interface
end module

module m_Child
  use m_Parent

  type, extends(Parent) :: Child
  contains
    procedure, public :: f => f_Child
  end type
contains
  subroutine f_Child(foo,bar)
    implicit none
    class(Child), intent(in) :: foo
    class(Child), intent(in) :: bar
  end subroutine
end module

with the constraint that m_Parent may not have dependencies on m_Child, to avoid circular dependencies and to allow for many Child classes without having to update m_Parent with the details of each.
As before:

*

*the code presented here is forbidden by the Fortran standard.

*the select type construct is too slow.

Can I mimic the behaviour that the above code would produce if multiple passed-object dummy arguments were allowed by the Fortran standard?

A: The standard forbids multiple passed-object dummy arguments, along with passed-object dummy arguments which are arrays or pointers. The standard does not forbid passed-object dummy arguments which are classes containing arrays or pointers.
This can be implemented as
module m_Parent
  type, abstract :: Parent
  end type

  type, abstract :: ParentPair
  contains
    procedure(f_ParentPair), deferred :: f
  end type

  abstract interface
    subroutine f_ParentPair(foobar)
      import ParentPair
      implicit none
      class(ParentPair), intent(in) :: foobar
    end subroutine
  end interface
end module

module m_Child
  use m_Parent

  type, extends(Parent) :: Child
  contains
    procedure, public :: f => f_Child
  end type

  type, extends(ParentPair) :: ChildPair
    type(Child) :: foo
    type(Child) :: bar
  contains
    procedure, public :: f => f_ChildPair
  end type

contains

  subroutine f_ChildPair(foobar)
    implicit none
    class(ChildPair), intent(in) :: foobar
    call foobar%foo%f(foobar%bar)
  end subroutine

  subroutine f_Child(foo,bar)
    implicit none
    class(Child), intent(in) :: foo
    class(Child), intent(in) :: bar
  end subroutine
end module

This is not the most elegant solution, and it requires the creation and maintenance of an entire ChildPair class for every implementation of Child.
According to operf, in ifort 19.1 this has a negligible overhead compared to a select type statement.


text:
Q: Auto closing comments HTML I am searching for a plugin or snippet  for sublimtext 2 or texmate which will automatically add a closing comment tag at the end of the html tag. For instance:
When inserting a div with the id  or class "test" the plug in would automatically add the closing comment at the end of the tag.
For example if I type the following into either text editor:

I want the text editor to automatically add the closing tag:


text:
Q: How to ensure that my new Windows 10 bootable drive will be named C:? I have an ASUS laptop with the following according to Disk Management:

*

*Disk 0: 2.5" 1TB hard drive, one partition is C: and contains Windows 10

*Disk 1: 16GB m.2 SSD, one partition and named D:

I have successfully replaced the SSD with a 500GB m.2 SSD.  It is still D: and is fully accessible.
I now want to clean install Windows 10 onto the SSD, and basically use the 1TB just for data. If I do it without removing the 1TB physically out of the computer, will Windows now rename the SSD as C: or is there a way to ensure that the SSD becomes C: with the bootable Windows?  (I am not interested or want multi-boot.)
If instead I remove the 1TB drive physically and install Windows onto the SSD, will the SSD now become C: by default?