## Features – Why does not get_user_by () work in my code?

I'm editing the code of a plugin to add a little functionality that I need.
I almost made it, but I really have trouble and I do not understand why

\$ user_id_for_um_groups = get_user_by (& # 39; email & # 39 ;, \$ email);

does not work here and I get 0 in the user_id2 column of my database (I need to get the user ID).

I enclose the full code below, my added code is commented as ADD CODE.

I would be very grateful for your help as I have spent several days understanding why it does not work. Thank you very much 😉

`````` \$email ) {
if ( ! empty( \$email ) ) {
if ( is_email( \$email ) ) {
\$first       = \$first_names( \$k );
\$last        = \$last_names( \$k );
\$email       = sanitize_email( \$email );
\$is_existing = email_exists( \$email );

if ( is_numeric( \$is_existing ) ) {
\$user_id     = \$is_existing;
\$user_groups = learndash_get_users_group_ids( \$user_id, true );
if ( in_array( \$group_id, \$user_groups ) ) {
\$error_results() = sprintf( __( 'Line #%d: %s is existing user of group.', 'uncanny-learndash-groups' ), \$k + 1, \$email );
continue;
}
\$user_data = array(
'user_email' => \$email,
'user_id'    => \$user_id,
'first_name' => \$first,
'last_name'  => \$last,
'role'       => \$role,
);

if ( isset( \$user_data('first_name') ) && ! \$is_existing ) {
update_user_meta( \$user_id, 'first_name', \$user_data('first_name') );
}

if ( isset( \$user_data('last_name') ) && ! \$is_existing ) {
update_user_meta( \$user_id, 'last_name', \$user_data('last_name') );
}

\$restApi = new RestApiEndPoints();
\$restApi->add_existing_user( \$user_data, false, \$group_id, 0, 'not redeemed', false );

} else {
\$user_data = array(
'user_email' => \$email,
'first_name' => \$first,
'last_name'  => \$last,
'role'       => \$role,
'group_id'   => \$group_id,
);
\$restApi   = new RestApiEndPoints();
\$restApi->add_invite_user( \$user_data, false, false, false );

}
\$insert_results() = sprintf( __( '%s added & invited successfully.', 'uncanny-learndash-groups' ), \$email );

global \$wpdb;

\$user_id_for_um_groups = get_user_by( 'email', \$email );

\$current_group_id_for_um_groups = \$wpdb->get_var("SELECT ID FROM wpso_posts WHERE post_excerpt = \$group_id");
\$current_user_id_for_um_groups = get_current_user_id();
\$wpdb->insert( 'wpso_um_groups_members', array(
'group_id' => \$current_group_id_for_um_groups,
'user_id1' => \$user_id_for_um_groups,
'user_id2' => \$current_user_id_for_um_groups,
'status' => 'approved',
'role' => 'member') );

} else {
\$error_results() = sprintf( __( 'Line #%d: Email (%s) not correct.', 'uncanny-learndash-groups' ), \$k + 1, \$email );
}
} else {
if ( ! empty( \$first_names( \$k ) ) || ! empty( \$last_names( \$k ) ) ) {
\$error_results() = sprintf( __( 'Line #%d: Email field is empty.', 'uncanny-learndash-groups' ), \$k + 1 );
}
}
}
}
\$url = SharedFunctions::get_group_management_page_id( true );
\$url .= '?group-id=' . \$group_id;
\$url .= '&bulk=1';
if ( ! empty( \$error_results ) ) {
\$url .= '&bulk-errors=' . urlencode( join( ' ', \$error_results ) );
}
if ( ! empty( \$insert_results ) ) {
\$url .= '&success-invited=' . urlencode( join( ' ', \$insert_results ) );
}

wp_safe_redirect( \$url );
exit;
}
}
``````

## Navigation – Should users know advanced features and low-priority features of the app?

Surely you can tell users that the feature exists – in a place where it's relevant to show that it's available.

Changing the PIN code is usually done in the settings. Therefore, indicate that the PIN code is available on the settings page. If it's something that's rarely used – make sure you stick to that hierarchy and do not put it up. In this way you neither hide its existence nor take away space for features that are used more frequently.

Users who are looking for an obscure feature can imagine which main topic they might find it logical and search for it. If your application structure is solid, you'll find it intuitive. If you have a menu item called Dashboard or Transactions, it will search for a reporting feature.

If your users are mainly using what they've already pushed as their main features, your application seems to be doing what it should. If you're complaining why you have not yet added features, you should change the hierarchy and visibility of features. Then it's clear that your layout structure makes the search difficult.

Frequently used actions / features should be easy to see and navigate. Things that are used sparingly or considered advanced can be inserted deeper into the hierarchy.

## Features – Shortcode within the ID called by ID does not render as expected

Hello, I get a post in the topic like this:

``````\$footer_post = get_post(pll_get_post(620));
echo \$footer_post->post_content; // Load contents of the page
``````

This shows the contents of post (620) in the footer.

in the functions.php I have:

``````function year_shortcode() {
\$year = date('Y');
return \$year;}
``````

The problem is, when I write (YEAR) and try to use the shorcode in that particular post, it is rendered as (YEAR) rather than like 2019. Is this an error or do I have to change my code? When I use the shortcode on a regular site, it will render correctly.

WordPress 5.2.4 currently.

## Google Groups – Common Inbox features from G Suite out of Gmail

Hi!

I think the Collaborative Inbox of G Suite / Google Group has some features that are of benefit to my business. But I also think that because of the fact that there is a user portal that is separate from Gmail, people in my organization no longer want to access it.

I see many common inbox options for apps like Hiver and Gmelius (which I would rather not use due to recurring subscription costs), but it seems Google should cover the level of integration with Gmail. All my searches seem to indicate that it's not possible to integrate Collaborative Inbox features into Gmail without a third-party subscription-based application. Seems a big mistake from Google.

Any suggestions or insights on how to use G Suite Collaborative Inbox features in Gmail? I can set the Inbox to forward to all users in the group. However, I want to know if another user in the group edited a message without having to go to the Google Group dashboard.

Seems to be possible and I just do not ask the right questions.

## Features – How do I get a pointer pointer in C ++?

Such as;

here any function that eventually returns an int pointer

``````int* funcao(int v(),int tam){// funcao q recebe array e o tamanho dela

exemplo: int *ponteiro=new int(tam);

//preencho o "ponteiro" com outros valores aleatorios

return ponteiro;// retorna um array/ponteiro
}
``````

Suppose, below, the main thing is:

``````int v()={1,2,3,4}
int **vetor;
int alt()={10,5};
int cont=2;
vetor=new int*(cont);
for(int i=0;i``````
``` for(int j=0;j Does this pointer at position j receive the pointer returned by the function? If not, how do I get a pointer pointer to get a pointer? ```
``` ```
``` Author AdminPosted on November 4, 2019Categories ArticlesTags features, pointer ```
``` Java – It's a simple counter that counts how many times a word is spoken with additional features Some background information: The counter was initially made as a joke because we have a lecturer who repeats the 9 phrases used in the program over and over again during the lectures, and I thought it would be fun to create a program that (using user input ) How many times did the teacher say these words? Two days later (and almost all the time working on it) I ended up with it. How clean is this code? How can it be improved? Suggestions accepted and appreciated. I also used a tool called Eclipse Window Builder to improve the user interface, as I had previously used only AWT and wanted to learn swing because of its better support. LoadingScreen.java; import java.awt.EventQueue; import java.util.concurrent.Executors; import java.util.concurrent.ScheduledExecutorService; import java.util.concurrent.TimeUnit; import javax.swing.JFrame; import javax.swing.JPanel; import java.awt.Color; import javax.swing.JLabel; import javax.swing.ImageIcon; import javax.swing.SwingConstants; import javax.swing.border.LineBorder; import javax.swing.JProgressBar; public class LoadingScreen extends JFrame { /** * */ private static final long serialVersionUID = 1L; private JPanel contentPane; private JLabel imageLabel; private JProgressBar progressBar; private ScheduledExecutorService executor = Executors.newScheduledThreadPool(1); /** * Launch the application. */ public static void main(String() args) { EventQueue.invokeLater(new Runnable() { public void run() { try { LoadingScreen frame = new LoadingScreen(); frame.setVisible(true); } catch (Exception e) { e.printStackTrace(); } } }); } /** * Create the frame. * © Bernard Borg 2019 */ public LoadingScreen() { setAlwaysOnTop(true); setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE); setSize(320, 369); setUndecorated(true); setLocationRelativeTo(null); contentPane = new JPanel(); contentPane.setBackground(Color.WHITE); contentPane.setBorder(new LineBorder(Color.BLUE, 10)); contentPane.setLayout(null); setContentPane(contentPane); init(); } public void init() { progressBar = new JProgressBar(); progressBar.setForeground(Color.BLUE); progressBar.setBackground(Color.WHITE); progressBar.setStringPainted(true); progressBar.setBounds(120, 325, 175, 25); imageLabel = new JLabel(""); imageLabel.setVerticalAlignment(SwingConstants.TOP); imageLabel.setIcon(new ImageIcon("img/stainesPic.jpg")); imageLabel.setBounds(10, 10, 300, 350); contentPane.add(progressBar); contentPane.add(imageLabel); progressBarStuff(); } public void progressBarStuff() { Runnable myRunnable = new Runnable() { public void run() { int i = progressBar.getValue(); i++; progressBar.setValue(i); if (progressBar.getValue() == 100) { executor.shutdown(); loadMain(); } } }; executor.scheduleAtFixedRate(myRunnable, 0, 30, TimeUnit.MILLISECONDS); } public void loadMain() { EventQueue.invokeLater(new Runnable() { public void run() { try { MainFrame frame = new MainFrame(); frame.setVisible(true); } catch (Exception e) { e.printStackTrace(); } } }); dispose(); } } MainFrame.java (main program) import java.awt.BorderLayout; import javax.swing.JFrame; import javax.swing.JOptionPane; import javax.swing.JPanel; import javax.swing.border.EmptyBorder; import javax.swing.JButton; import java.awt.Color; import java.awt.Dimension; import java.awt.event.KeyEvent; import java.awt.event.KeyListener; import java.awt.event.WindowAdapter; import java.awt.event.WindowEvent; import java.io.BufferedWriter; import java.io.FileWriter; import java.util.ArrayList; import java.util.Date; import java.text.DateFormat; import java.text.SimpleDateFormat; import java.awt.event.ActionEvent; import java.awt.event.ActionListener; import java.awt.GridLayout; import javax.swing.border.LineBorder; import java.awt.Font; import javax.swing.JTextArea; import java.awt.Toolkit; import java.awt.datatransfer.StringSelection; import javax.swing.border.CompoundBorder; import java.awt.CardLayout; import java.awt.FlowLayout; import javax.swing.BoxLayout; import javax.swing.ImageIcon; import javax.swing.JScrollPane; import javax.swing.ScrollPaneConstants; public class MainFrame extends JFrame implements KeyListener, ActionListener{ private static final long serialVersionUID = 1L; private static final String version = "v0.2.1 (BETA)"; private JPanel contentPane; private JPanel topPanel; private JPanel middlePanel; private JPanel bottomPanel; private JPanel bottomLeftPanel; private JPanel bottomRightPanel; private JButton ummmButton; private JButton understandButton; private JButton okButton; private JButton noButton; private JButton huhButton; private JButton staresButton; private JButton questionsButton; private JButton clearButton; private JButton keyButton; private JButton reportButton; private JButton copyButton; private JButton saveButton; private JButton settingsButton; private JButton undoButton; private JButton resetButton; private JTextArea textArea; private JScrollPane scrollPane; private int ummmCounter = 0; private int understandCounter = 0; private int okCounter = 0; private int noCounter = 0; private int huhCounter = 0; private int staresCounter = 0; private int questionsCounter = 0; private int clearCounter = 0; private int keyCounter = 0; private boolean isSaved = true; private ArrayList wordList; /** * Create the frame. */ public MainFrame() { setIconImage(Toolkit.getDefaultToolkit().getImage("img/logo.png")); setBackground(Color.WHITE); setTitle("Staines Counter " + version); addKeyListener(this); setFocusable(true); requestFocus(); setDefaultCloseOperation(JFrame.DO_NOTHING_ON_CLOSE); setSize(700, 700); setMinimumSize(new Dimension (700, 700)); setLocationRelativeTo(null); addWindowListener(new WindowAdapter() { @Override public void windowClosing(WindowEvent windowEvent) { if(isSaved == false) { int choice = JOptionPane.showConfirmDialog(null, "Do you want to save?", "Save", JOptionPane.YES_NO_OPTION,JOptionPane.QUESTION_MESSAGE); if (choice == JOptionPane.YES_OPTION){ saveAction(); } else if (choice == JOptionPane.NO_OPTION){ System.exit(0); } else { } } else { System.exit(0); } } }); contentPane = new JPanel(); contentPane.setForeground(new Color(128, 0, 0)); contentPane.setBackground(Color.WHITE); contentPane.setBorder(new EmptyBorder(5, 5, 5, 5)); contentPane.setLayout(new BorderLayout(0, 0)); setContentPane(contentPane); init(); } public void init() { //Buttons ummmButton = new JButton("Ummm"); ummmButton.setForeground(Color.WHITE); ummmButton.setBackground(new Color(128, 0, 0)); ummmButton.addActionListener(this); understandButton = new JButton("Understand?"); understandButton.setForeground(Color.WHITE); understandButton.setBackground(new Color(128, 0, 0)); understandButton.addActionListener(this); okButton = new JButton("Ok"); okButton.setForeground(Color.WHITE); okButton.setBackground(new Color(128, 0, 0)); okButton.addActionListener(this); noButton = new JButton("No?"); noButton.setForeground(Color.WHITE); noButton.setBackground(new Color(128, 0, 0)); noButton.addActionListener(this); huhButton = new JButton("Huh"); huhButton.setForeground(Color.WHITE); huhButton.setBackground(new Color(128, 0, 0)); huhButton.addActionListener(this); staresButton = new JButton("*stares*"); staresButton.setForeground(Color.WHITE); staresButton.setBackground(new Color(128, 0, 0)); staresButton.addActionListener(this); questionsButton = new JButton("Questions?"); questionsButton.setForeground(Color.WHITE); questionsButton.setBackground(new Color(128, 0, 0)); questionsButton.addActionListener(this); clearButton = new JButton("It is clear?"); clearButton.setForeground(Color.WHITE); clearButton.setBackground(new Color(128, 0, 0)); clearButton.addActionListener(this); keyButton = new JButton("Key Point"); keyButton.setForeground(Color.WHITE); keyButton.setBackground(new Color(128, 0, 0)); keyButton.addActionListener(this); copyButton = new JButton("Copy Text"); copyButton.setForeground(Color.WHITE); copyButton.setBackground(new Color(128, 0, 0)); copyButton.addActionListener(this); reportButton = new JButton("Get Report"); reportButton.setForeground(Color.WHITE); reportButton.setBackground(new Color(128, 0, 0)); reportButton.addActionListener(this); settingsButton = new JButton(""); settingsButton.setForeground(Color.WHITE); settingsButton.setBackground(Color.WHITE); settingsButton.setIcon(new ImageIcon("img/settings.png")); settingsButton.setBounds(80, 0, 35, 35); settingsButton.setToolTipText("Settings"); settingsButton.addActionListener(this); settingsButton.setBorderPainted(false); saveButton = new JButton("Save"); saveButton.setBackground(new Color(128, 0, 0)); saveButton.setForeground(Color.WHITE); saveButton.addActionListener(this); resetButton = new JButton("Clear"); resetButton.setForeground(Color.WHITE); resetButton.setBackground(new Color(128, 0, 0)); resetButton.addActionListener(this); undoButton = new JButton(""); undoButton.setBackground(Color.WHITE); undoButton.setIcon(new ImageIcon("img/undoIcon.png")); undoButton.setBounds(35, 0, 35, 35); undoButton.setBorderPainted(false); undoButton.addActionListener(this); //Text Area textArea = new JTextArea(); textArea.setFont(new Font("Dialog", Font.PLAIN, 14)); textArea.setRows(20); textArea.setWrapStyleWord(true); textArea.setForeground(new Color(128, 0, 0)); textArea.setEditable(false); textArea.setLineWrap(true); scrollPane = new JScrollPane(textArea); scrollPane.setHorizontalScrollBarPolicy(ScrollPaneConstants.HORIZONTAL_SCROLLBAR_NEVER); //Panels topPanel = new JPanel(); topPanel.setForeground(new Color(128, 0, 0)); topPanel.setBackground(Color.WHITE); topPanel.setLayout(new GridLayout(0, 3, 10, 10)); topPanel.add(ummmButton); topPanel.add(understandButton); topPanel.add(okButton); topPanel.add(noButton); topPanel.add(huhButton); topPanel.add(staresButton); topPanel.add(questionsButton); topPanel.add(clearButton); topPanel.add(keyButton); middlePanel = new JPanel(); middlePanel.setBorder(new CompoundBorder(new EmptyBorder(10, 10, 10, 10), new LineBorder(new Color(0, 0, 0)))); middlePanel.setForeground(new Color(128, 0, 0)); middlePanel.setBackground(Color.WHITE); middlePanel.setLayout(new CardLayout(10, 10)); middlePanel.add(scrollPane, "name_272268444365100"); bottomLeftPanel = new JPanel(); bottomLeftPanel.setBackground(Color.WHITE); FlowLayout fl_bottomLeftPanel = (FlowLayout) bottomLeftPanel.getLayout(); fl_bottomLeftPanel.setHgap(25); bottomLeftPanel.add(copyButton); bottomLeftPanel.add(reportButton); bottomLeftPanel.add(saveButton); bottomLeftPanel.add(resetButton); bottomRightPanel = new JPanel(); bottomRightPanel.setBackground(Color.WHITE); bottomRightPanel.setLayout(null); bottomRightPanel.add(settingsButton); bottomRightPanel.add(undoButton); bottomPanel = new JPanel(); bottomPanel.setForeground(new Color(128, 0, 0)); bottomPanel.setBackground(Color.WHITE); bottomPanel.setLayout(new BoxLayout(bottomPanel, BoxLayout.X_AXIS)); bottomPanel.add(bottomLeftPanel); bottomPanel.add(bottomRightPanel); contentPane.add(topPanel, BorderLayout.NORTH); contentPane.add(middlePanel, BorderLayout.CENTER); contentPane.add(bottomPanel, BorderLayout.SOUTH); wordList = new ArrayList (); } @Override public void actionPerformed (ActionEvent e) { if(e.getSource() == ummmButton) { ummmAction(); } else if (e.getSource() == understandButton) { understandAction(); } else if (e.getSource() == okButton) { okAction(); } else if (e.getSource() == noButton) { noAction(); } else if (e.getSource() == huhButton) { huhAction(); } else if (e.getSource() == staresButton) { staresAction(); } else if (e.getSource() == questionsButton) { questionsAction(); } else if (e.getSource() == clearButton) { clearAction(); } else if (e.getSource() == keyButton) { keyAction(); } else if (e.getSource() == reportButton) { reportAction(); } else if (e.getSource() == copyButton) { copyAction(); } else if (e.getSource() == saveButton) { saveAction(); } else if (e.getSource() == settingsButton) { settingsAction(); } else if (e.getSource() == resetButton) { resetAction(); } else if (e.getSource() == undoButton) { undoAction(); } this.requestFocus(); } @Override public void keyPressed (KeyEvent e) { if (e.getKeyCode() == KeyEvent.VK_NUMPAD1) { questionsAction(); } else if (e.getKeyCode() == KeyEvent.VK_NUMPAD2) { clearAction(); } else if (e.getKeyCode() == KeyEvent.VK_NUMPAD3) { keyAction(); } else if (e.getKeyCode() == KeyEvent.VK_NUMPAD4) { noAction(); } else if (e.getKeyCode() == KeyEvent.VK_NUMPAD5) { huhAction(); } else if (e.getKeyCode() == KeyEvent.VK_NUMPAD6) { staresAction(); } else if (e.getKeyCode() == KeyEvent.VK_NUMPAD7) { ummmAction(); } else if (e.getKeyCode() == KeyEvent.VK_NUMPAD8) { understandAction(); } else if (e.getKeyCode() == KeyEvent.VK_NUMPAD9) { okAction(); } } @Override public void keyTyped (KeyEvent e) { } @Override public void keyReleased(KeyEvent e) { } public void ummmAction() { textArea.setText(textArea.getText() + "ummm..."); ummmCounter++; wordList.add("ummm..."); isSaved = false; } public void understandAction() { textArea.setText(textArea.getText() + "understand?..."); understandCounter++; wordList.add("understand?..."); isSaved = false; } public void okAction() { textArea.setText(textArea.getText() + "ok..."); okCounter++; wordList.add("ok..."); isSaved = false; } public void noAction() { textArea.setText(textArea.getText() + "no..."); noCounter++; wordList.add("no..."); isSaved = false; } public void huhAction() { textArea.setText(textArea.getText() + "huh..."); huhCounter++; wordList.add("huh..."); isSaved = false; } public void staresAction() { textArea.setText(textArea.getText() + "*stares*..."); staresCounter++; wordList.add("*stares*..."); isSaved = false; } public void questionsAction() { textArea.setText(textArea.getText() + "Any questions?..."); questionsCounter++; wordList.add("Any questions?..."); isSaved = false; } public void clearAction() { textArea.setText(textArea.getText() + "Is it clear?..."); clearCounter++; wordList.add("Is it clear?..."); isSaved = false; } public void keyAction() { textArea.setText(textArea.getText() + "Did you understand this KEY POINT?..."); keyCounter++; wordList.add("Did you understand this KEY POINT?..."); isSaved = false; } public void reportAction() { JOptionPane.showMessageDialog(null, "ummm(s): " + ummmCounter + "nUnderstand?(s): " + understandCounter + "nOk(s): " + okCounter + "nNo?(s): " + noCounter + "nHuh(s): " + huhCounter + "n*stares*: " + staresCounter + "nQuestions?: " + questionsCounter + "nIt is clear?(s): " + clearCounter + "nKey point(s): " + keyCounter, "Staines Counter Report", JOptionPane.PLAIN_MESSAGE); } public void copyAction() { Toolkit.getDefaultToolkit().getSystemClipboard().setContents(new StringSelection(textArea.getText()), null); } public void saveAction() { try{ DateFormat dateFormat = new SimpleDateFormat("dd.MM.yyyy"); Date date = new Date(); BufferedWriter bw = new BufferedWriter (new FileWriter ("logs/" + dateFormat.format(date) + ".txt")); bw.write(dateFormat.format(date)); bw.newLine(); bw.write(String.valueOf("Ummm(s): " + ummmCounter)); bw.newLine(); bw.write(String.valueOf("Understand?(s): " + understandCounter)); bw.newLine(); bw.write(String.valueOf("Ok(s): " + okCounter)); bw.newLine(); bw.write(String.valueOf("No?(s): " + noCounter)); bw.newLine(); bw.write(String.valueOf("Huh(s): " + huhCounter)); bw.newLine(); bw.write(String.valueOf("*stares*:" + staresCounter)); bw.newLine(); bw.write(String.valueOf("Questions?:" + questionsCounter)); bw.newLine(); bw.write(String.valueOf("It is clear?(s): " + clearCounter)); bw.newLine(); bw.write(String.valueOf("Key point(s): " + keyCounter)); bw.newLine(); bw.close(); } catch (Exception e){ JOptionPane.showMessageDialog (null, e.getMessage(), "Error", JOptionPane.ERROR_MESSAGE); } isSaved = true; } public void settingsAction() { JOptionPane.showMessageDialog(null, "This feature is not yet available!", "Unavailable Feature", JOptionPane.PLAIN_MESSAGE); } public void resetAction() { textArea.setText(""); wordList.clear(); ummmCounter = 0; understandCounter = 0; okCounter = 0; noCounter = 0; huhCounter = 0; staresCounter = 0; questionsCounter = 0; clearCounter = 0; keyCounter = 0; isSaved = true; } public void undoAction() { switch(wordList.get(wordList.size()-1)) { case "ummm...": ummmCounter--; break; case "understand?...": understandCounter--; break; case "ok...": okCounter--; break; case "no...": noCounter--; break; case "huh...": huhCounter--; break; case "*stares*...": staresCounter--; break; case "Any questions?...": questionsCounter--; break; case "Is it clear?...": clearCounter--; break; case "Did you understand this KEY POINT?...": keyCounter--; break; } wordList.remove(wordList.size()-1); textArea.setText(""); for(String w : wordList) { textArea.setText(textArea.getText() + w); } isSaved = false; } } $$```$$ Author AdminPosted on November 1, 2019Categories ArticlesTags Additional, counter, Counts, features, It39s, java, simple, spoken, times, word MIUI features without Android-based version I'd like to know how MIUI can provide functionality on all devices that have the same version of MIUI installed, without the same Android version. Author AdminPosted on November 1, 2019Categories ArticlesTags Androidbased, features, MIUI, version Graphs and Networks – How to perform mathematical operations using numerical features attached to vertices Given a directed graph g: Clear(g, conn); SeedRandom(311); g = RandomGraph({6, 9}, DirectedEdges -> True) conn = ConnectedComponents(g) conn((4)) I want to add a number of features to each vertex in the chart. Define corner point properties as: v1->{2,4,7}; v2->{1,4,1}; v3->{2,4,1}; v4->{0,4,1}; v5->{6,1,7}; v6->{4,0,1}; Look for strongly connected components (SCCs) and select the largest SCC with vertices {v2, v3, v4}, Then you find the sum of the first characteristic of these vertices. That should give me 1+2+0 = 3, Or find the sum of third characteristic of the same cornerstones: 1+1+1=3, Suggestions for improving the above code? Author AdminPosted on October 30, 2019Categories ArticlesTags attached, features, graphs, mathematical, networks, numerical, operations, Perform, vertices Created Amazon Aurora Mysql Serverless Support Features? I know that with mysql rds and mysql rds aurora there is a way to support the creation of mysql functions by changing them log_bin_trust_function_creators -> 1. I do not see this option in Aurora without a server for MySQL. Is NOT there a way to do this? Here is an example function: CREATE FUNCTION TRACK_AND_FIELD_TIME_FORMAT (duration decimal) RETURNS varchar(255) BEGIN return SEC_TO_TIME(duration); END Author AdminPosted on October 29, 2019Categories ArticlesTags Amazon, Aurora, created, features, MySQL, serverless, support Features – WordPress removes HTML This is similar to the other questions, but the solutions I've seen include other plugins and things. The next point I have found for the "right" solution is // STOP WORDPRESS REMOVING TAGS function tags_tinymce_fix( \$init ) { // html elements being stripped \$init('extended_valid_elements') = 'div(*),article(*)'; // don't remove line breaks \$init('remove_linebreaks') = false; // convert newline characters to BR \$init('convert_newlines_to_brs') = true; // don't remove redundant BR \$init('remove_redundant_brs') = false; // pass back to wordpress return \$init; } add_filter('tiny_mce_before_init', 'tags_tinymce_fix'); But that does not include the definition list markup, the list heads, and I'm sure I'll forget some. Is there a way to make WordPress leave my HTML alone? There is no reason to clean up valid code … We are not all monkeys … Author AdminPosted on October 22, 2019Categories ArticlesTags features, HTML, removes, WordPress Posts navigation Page 1 Page 2 … Page 24 Next page ```