Improving CRUD operations on list UI

Thus far, our pages for operations to be done on a collection of things (tasks, pricing groups, permission groups, …) have this general structure:

enter image description here

If the things getting modified in bulk have “only one thing” about them, we have no tabbed pane, like this:

enter image description here

.

I have been tasked by someone who says that, if he were a user of this app, this design would not be good. However, when I asked him what he would prefer instead, he had no concrete suggestions. I generally agree that this can be revamped, but don’t have any hard user-friendly suggestions in mind either.

What say you?

Advice for improving internal dashboard

I work for a book manufacturer, a component from our internal dashboard looks like this. I’m not a designer by trade and as it’s come to refactoring the project, I figured now would be a good time to clean up the ux a bit.

The purpose of the component is to show the planned vs actual (jobs scheduled vs what we actually did) as simply as possible.

Should also specify that the buckets are a management request so they can’t change but everything else is up in the air.

(The export expands into an export via email or straight csv)

Any advice would be great! Sorry if the question is inappropriate.

Improving the efficiency of c++ code calling Eigen to do the linear operation of the matrix

I am a rookie of coding and I have written a c++ procedure which calls the Eigen library to do the linear operation of the matrix. Please help me to improve the efficiency of the loop.

#include <iostream> #include <fstream> #include <Eigen/Dense> #include <time.h> using namespace std;  int main() {     // Weight coefficient matrix     Eigen::MatrixXd wi_1,wi_2,wi_3,wi_4;     wi_1.resize(100,2);     wi_2.resize(100,100);     wi_3.resize(100,100);     wi_4.resize(5,100);     wi_1.setOnes();     wi_2.setOnes();     wi_3.setOnes();     wi_4.setOnes();      // Bias vector     Eigen::VectorXd bias_1,bias_2,bias_3,bias_4,Y;     bias_1.resize(100);     bias_2.resize(100);     bias_3.resize(100);     bias_4.resize(5);     bias_1.setOnes();     bias_2.setOnes();     bias_3.setOnes();     bias_4.setOnes();     Eigen::Matrix<double,5,1> y_mean;     Eigen::Matrix<double,5,1> y_scale;     Eigen::Matrix<double,2,1> x_mean;     Eigen::Matrix<double,2,1> x_scale;      y_mean.setOnes();     y_scale.setOnes();     y_mean.setOnes();     x_scale.setOnes();      int n = 0;     int layer;     clock_t start,finish;     double totaltime;     start=clock();     while (n<10000)     {         Y.resize(2);         layer = 0;         Y << 0.185, 0.285;//inputx[1], x[0];         Y = (Y.array() - x_mean.array()) / x_scale.array();          //ANN forward         while (layer < 4)         {             layer++;             switch (layer) {             case 1:{                 Y = wi_1 * Y + bias_1;                 //                                        Info << "ANN forward layer1" << endl;                 break;             }             case 2:{                 Y = wi_2 * Y + bias_2;                 //                                        Info << "ANN forward layer2" << endl;                 break;             }             case 3:{                 Y = wi_3 * Y + bias_3;                 //                                        Info << "ANN forward layer3" << endl;                 break;             }             case 4:{                 Y = wi_4 * Y + bias_4;                 //                                        Info << "ANN forward layer4" << endl;                 break;             }             default:{                 cout<<"error"<<endl;                 break;             }             }              //Relu activation function             if (layer < 4)             {                 for (int i = 0; i < Y.size(); i++)                 {                     Y(i) = ((Y(i) > 0) ? Y(i) : 0);                 }             }         }         //inverse standardization         Y = Y.array() * y_scale.array() + y_mean.array();         n++;     }     finish=clock();     totaltime=(double)(finish-start)/CLOCKS_PER_SEC*1000;     cout<<"\n Running time is "<<totaltime<<"ms!"<<endl; } 

Improving Performance consuming RestApi

i was wondering if there is anyway for me to enhance the performance of my code. i want to be able to identify where my code is at its weakest and what can be done to over come this.. thank you.

using loops doesn’t sit right with me when dealing with nested arrays and i was thinking about how i can eliminate going through each object and array in the Jason string. can this be done or do i just have to accept this is the only way?

namespace ConsoleApp {     class Program {      private static string jsonUrl { get; set; } = "https://raw.githubusercontent.com/openfootball/football.json/master/2014-15/en.1.json";     private static string teamKey { get; set; } = "swansea";     static void Main()     {        var goal = Run(teamKey.ToLower());        Console.WriteLine(goal);        Console.ReadKey();     }      public static int Run(string team)     {          using (var webclient = new WebClient())         {              var rawJson = webclient.DownloadString(jsonUrl);              var jsonModel = JsonConvert.DeserializeObject<RootObject>(rawJson);               foreach (var rounds in jsonModel.rounds)             {                 foreach (var match in rounds.matches)                 {                     var goal = match.team1.key.Equals(teamKey) ? match.score1 : 0;                      if (goal == 0)                     {                         goal = match.team2.key.Equals(teamKey) ? match.score2 : 0;                     }                     return goal;                 }             }               return 0;         }      } }  public class Team1 {     public string key { get; set; }     public string name { get; set; }     public string code { get; set; } }  public class Team2 {     public string key { get; set; }     public string name { get; set; }     public string code { get; set; } }  public class Match {     public string date { get; set; }     public Team1 team1 { get; set; }     public Team2 team2 { get; set; }     public int score1 { get; set; }     public int score2 { get; set; } }  public class Round {     public string name { get; set; }     public List<Match> matches { get; set; } }  public class RootObject {     public string name { get; set; }     public List<Round> rounds { get; set; } } } 

The scope of the program is to return the correct number on goals scored based on the team that is selected. (https://raw.githubusercontent.com/openfootball/football.json/master/2014-15/en.1.json)

Input: swansea expected result: 2 Actual result: 2

Improving code for having multiple lines of ng-if directives

I am new to angularjs and wondering if this code could be improved:

<div>     <a ng-if="brand == 'google'" href="/"><img class="logo" ng-src="{company_logo}}" alt=" Logo"></a>     <img  ng-if="brand != 'google'" class="logo" ng-src="{{company_logo}}" alt=" Logo"> </div> 

Have many brands so if the brand is google then I have to link to home page when clicked on image else not. How can this be written better.

Thanks 🙂

Pointers on improving with a kit lens

I have a Nikon D3400 with two lens that came with the body. One is a 18-55mm lens and the other is a 70-300mm lens. I have been using them for the last 8 months. Before investing in a new lens, I would like to improve myself to the best possible point with these lenses. Recently I’ve tried some concert photography and they’ve turned out decently, or so I feel. What other avenues should I be looking at? What things should I be trying with these lenses that helps me improve? Is there any suggested reading for a novice amateur ?

Improving server response times for magento 2.2.6

Is there a list of which apache 2.2.4 modules are necessary for the smoot running of magento 2.2.6?

I am trying to improve server response times and would like to disable unnecesary apache modules. Here is a list of the apache modules currently loaded on my server:

  1. access_compat_module (shared)
  2. actions_module (shared)
  3. alias_module (shared)
  4. auth_basic_module (shared)
  5. authn_core_module (shared)
  6. authn_file_module (shared)
  7. authz_core_module (shared)
  8. authz_groupfile_module (shared)
  9. authz_host_module (shared)
  10. authz_user_module (shared)
  11. autoindex_module (shared)
  12. bwlimited_module (shared)
  13. cgi_module (shared)
  14. core_module (static)
  15. deflate_module (shared)
  16. dir_module (shared)
  17. expires_module (shared)
  18. filter_module (shared)
  19. headers_module (shared)
  20. http_module (static)
  21. include_module (shared)
  22. Loaded Modules:
  23. log_config_module (shared)
  24. logio_module (shared)
  25. mime_module (shared)
  26. mpm_prefork_module (shared)
  27. negotiation_module (shared)
  28. proxy_fcgi_module (shared)
  29. proxy_http_module (shared)
  30. proxy_module (shared)
  31. proxy_wstunnel_module (shared)
  32. rewrite_module (shared)
  33. ruid2_module (shared)
  34. security2_module (shared)
  35. setenvif_module (shared)
  36. slotmem_shm_module (shared)
  37. socache_dbm_module (shared)
  38. socache_shmcb_module (shared)
  39. so_module (static)
  40. ssl_module (shared)
  41. status_module (shared)
  42. unique_id_module (shared)
  43. unixd_module (shared)
  44. userdir_module (shared)
  45. version_module (shared)

Which of these can be safely disabled? Any help will be most appreciated.

Running Magento 2.2.6, Centos 6, Apache 2.4.4, PHP 7.0

Improving execution time of sum of two numbers

I am trying to solve this problem:

Given an array of integers, find two numbers such that they add up to a specific target number.

and this is my implementation:

public int[] twoSum(int[] numbers, int target) {     Map<Integer, Integer> numbersMap = new HashMap<Integer, Integer>();     int[] requiredNumbers = null;     int index = 0;     for (int number : numbers) {         if (numbersMap.containsKey(target - number)) {             requiredNumbers = new int[2];             requiredNumbers[0] = numbersMap.get(target - number);             requiredNumbers[1] = index;             return requiredNumbers;         } else {             numbersMap.put(number, index);             index++;         }     }     return requiredNumbers; } 

How can I improve it’s execution time?