Ubunutu 18.04 Updates 404 error

I have four build servers that were all setup the same originally. We’ve been using them to cross-compile C projects. I’m trying to update them compile C++ natively as well. Two of the servers I was able to install g++ on with no problem, the other two though give me 404 errors.

$   sudo apt-get install g++ Reading package lists... Done Building dependency tree Reading state information... Done The following additional packages will be installed:   g++-7 libstdc++-7-dev Suggested packages:   g++-multilib g++-7-multilib gcc-7-doc libstdc++6-7-dbg libstdc++-7-doc The following NEW packages will be installed:   g++ g++-7 libstdc++-7-dev 0 upgraded, 3 newly installed, 0 to remove and 5 not upgraded. Need to get 9,043 kB of archives. After this operation, 40.7 MB of additional disk space will be used. Do you want to continue? [Y/n] y Err:1 http://archive.ubuntu.com/ubuntu bionic-updates/main amd64 libstdc++-7-dev amd64 7.4.0-1ubuntu1~18.04   404  Not Found [IP: 91.189.88.149 80] Err:2 http://archive.ubuntu.com/ubuntu bionic-updates/main amd64 g++-7 amd64 7.4.0-1ubuntu1~18.04   404  Not Found [IP: 91.189.88.149 80] Err:3 http://archive.ubuntu.com/ubuntu bionic-updates/main amd64 g++ amd64 4:7.4.0-1ubuntu2.2   404  Not Found [IP: 91.189.88.149 80] E: Failed to fetch http://archive.ubuntu.com/ubuntu/pool/main/g/gcc-7/libstdc++-7-dev_7.4.0-1ubuntu1~18.04_amd64.deb  404  Not Found [IP: 91.189.88.149 80] E: Failed to fetch http://archive.ubuntu.com/ubuntu/pool/main/g/gcc-7/g++-7_7.4.0-1ubuntu1~18.04_amd64.deb  404  Not Found [IP: 91.189.88.149 80] E: Failed to fetch http://archive.ubuntu.com/ubuntu/pool/main/g/gcc-defaults/g++_7.4.0-1ubuntu2.2_amd64.deb  404  Not Found [IP: 91.189.88.149 80] E: Unable to fetch some archives, maybe run apt-get update or try with --fix-missing? 

I have confirmed that all four report the same version info.

$   uname -a Linux build_server4 4.15.0-48-generic #51-Ubuntu SMP Wed Apr 3 08:28:49 UTC 2019 x86_64 x86_64 x86_64 GNU/Linux $   lsb_release -a No LSB modules are available. Distributor ID: Ubuntu Description:    Ubuntu 18.04.2 LTS Release:        18.04 Codename:       bionic 

How does a software engineer version two minor updates at the same time?

In a web app I am building, I might finish two distinct minor features at the same time: Implementation of a new web page, and implementation of the notification bar. After merging both of these into master on GitHub, and resolving any existing conflicts, I will release it.

My current release is v0.9.1

When I release again, there will be two new minor changes. Would it become 0.11.0, 0.10.0? The https://semver.org does not seem to give any insight on this scenario.

Note: I would ask this on webapps SE but semantic versioning does not have its own tag. It seemed more likely to get an answer on this site.

Item updated event receiver not firing when workflow updates the list item

I have an event receiver on an item updated event, when i manually update the list item, the event receiver is firing and calling the method, but when i update the list item through workflow step,when workflow is approved, it does not fire. i am deploying the solution as a farm solution.

public class CreateZohoTicket : SPItemEventReceiver    {         /// <summary>         /// An item was updated.         /// </summary>         public override void ItemUpdated(SPItemEventProperties properties)         {               base.ItemUpdated(properties);              if ((string)properties.AfterProperties["Status"] == "Approved")             {                                 CreateTicket(properties);                  //calling a web service POST method in CreateTicket             }                    } 

OS X Firewall Block all incoming Connections Affecting Software Updates?

I just bought a 2017 Macbook Pro with the latest OS (Mojave). In the OS X Mojave Security and Privacy-Firewall settings, I set Firewall to “Block all incoming connections” as I am extra cautious, but will my software (such as Chrome web browser, Firefox, etc.) still get new updates? For example, will my Firefox browser still get the latest software updates or will I have to manually check for software updates because the firewall is blocking all incoming connections?

An atomic method updates dozens of properties. Am I “testing too much”?

This question is about designing unit tests, something I started learning short ago.

I know the principle that if you are testing too much in a single unitary test it is a smell, either of code or design itself.

Scenario

I am computing a tax return form based on tax figures computed over the course of a year. Those figures are stored in the database in different rows on a monthly basis.

In order to compute the figures for the tax returns, some columns have to be copied “in the right place”, other have to be summed up across 12 months.

The final form has a set of few flat columns, a Map divided by month with 10 columns for each entity and another Map that is a view on a different aggregation (hence the sum), where each entry has 4 columns.

Mocking the database is a joke, so I have a consistent set of tax figures along with the expected results hardcoded (this is a kind of code duplication I like to implement).

The problem here is that while I am still writing test code I discover myself writing a lot of testing code.

The method that computes the form should be atomic (i.e. set all the columns at once) because it runs in a single transaction creating a new consistent object, but is all about setting dozens of different columns. I have ended up testing more than 30 different properties.

Simple question

  • Given that my unitary method works on columnA..columnZ at the same time
  • Given that failure of one assertion (thanks to Junit’s ErrorCollector) causes the test to fail but evaluates and reports other failed assertions all together

From the test design perspective, and in particular to the principle “don’t test too much”, is it preferrable to…

  1. Write a single test that performs 26 assertions each every column?
  2. Write multiple tests that run the same method with the same data set but each tests the outcome of a very single property of the output?
  3. Other strategy?

Pseudo code

The following is a sample of how the current code is structured. I really have plenties of assertions

@Test public void testCreateTaxForm(){      //Create the mocks, e.g.     MonthlyDao dao = mock(MonthlyDao.class);     when(dao.list(any)).thenReturn(getTheTestSet());      TaxFormManager uut = new TaxFormManagerImpl();     uut.setDao(dao);      //Test     TaxForm form = uut.create(....);      //Verify      getErrorCollector().checkThat(form,hasProperty("flatColumnA",equalTo(expectedValueForA));     getErrorCollector().checkThat(form,hasProperty("flatColumnA",equalTo(expectedValueForB));     -----     getErrorCollector().checkThat(form,hasProperty("flatColumnA",equalTo(expectedValueForZ));      //Following is wrapped in a method for my comfort     for (Month month: Month.values()) {         getErrorCollector().checkThat(form,hasProperty("monthMap",hasEntry(equalTo(month),hasProperty("flatMonthlyColumnA",equalTo(....)));          .............     }      for (ExemptionType exemption: ExemptionType.values()) {         getErrorCollector().checkThat(form,hasProperty("exemptions",hasEntry(equalTo(month),hasProperty("flatExemptionColumnA",equalTo(....)));          .............     }  } 

Pseudo alternative

In the pseudo alternative, I would have to write dozens of different methods (at least 120, each testing a column in a month) trying to reuse as most initialization logic as possible to avoid the test code base to grow too fat.

public void testTaxReturn_flatColumnA public void testTaxReturn_flatColumnB public void testTaxReturn_flatColumnC public void testTaxReturn_january_columnA public void testTaxReturn_january_columnB public void testTaxReturn_january_columnC public void testTaxReturn_retirementFunds_columnA public void testTaxReturn_retirementFunds_columnB public void testTaxReturn_retirementFunds_columnC 

multiples updates con mysql y php

tengo el siguiente inconveniente, necesito actualizar varios el valor de un campo en varios registros pero si se cumple la condicion. Seria como un while dentro del if.. les adjunto el codigo sql. En la consulta3 obtengo valores y luego SI el número de registros es mayor a 0 quisiera actualizar con el bucle while todos los registros que cumplen la condición No recuerdo como debe ser. Desde ya muchas gracias..

$  consulta3 = mysqli_query($  conn, "SELECT comp_sal  FROM salidas where comp_sal = '$  comp' and id_user <> '$  id_user'"); if (mysqli_num_rows($  consulta3) > 0) {      $  sentencia2 = mysqli_query($  conn, "UPDATE salidas SET comp_sal ='$  comp' + 1 as sal where id_user= '$  id_user' and DATE_FORMAT(salidas.date_sal,'%Y-%m-%d %H:%i') like '$  date_sal'");      $  result2 = mysqli_fetch_array($  sentencia2, MYSQLI_ASSOC);     $  codigo2 = $  consulta2['sal'];  }elseif (mysqli_num_rows($  consulta3)==0) {   $  consulta4 = mysqli_query($  conn,"SELECT comp_sal as sal FROM salidas where id_user = '$  id_user'  order by salidas.comp_sal DESC LIMIT 1");   $  consulta5 = mysqli_fetch_array($  consulta4,MYSQLI_ASSOC);   $  codigo2 = $  consulta5['sal']; 

Updates about Samsung smart switch 2019 latest

[​IMG]

We brought you an app introduced by Samsung Inc for share varies data in a jiffy and even to use as an advanced utility for phone replicate. It calls Samsung smart switch 2019 latest. It does not matter whatever data is there either it is video, music, photograph, calendar events, contact lists, documents, notes plus more. Because there are no certain formats or file sizes…

Updates about Samsung smart switch 2019 latest