Categories
Mastering Development

VBA Code to Delete Rows if Cell is Blank Not Working

I’ve put together the code below to delete rows where the cell in column E is empty. It isn’t working. I think the reason is that although the cells appear to be empty when I use the formula =IF(E2="","empty","not empty") the result is that the cell is not empty. Can anyone suggest how to change […]

Categories
Mastering Development

How to stop subscription by using multiple conditions with takeUntil

I wanna stop a observable subscription based on two conditions: Time (using import { timer } from ‘rxjs/internal/observable/timer’;) OR Execution status (using the returned object from request that you’ll see below) What is happenning: It’s only stoping execution based on Time (using import { timer } from ‘rxjs/internal/observable/timer’;) This is my current code: The names […]

Categories
Mastering Development Software

Is this enum/trait a good way to implement polymorphic design in Rust?

this is my first post on here, and I’m wondering about a good rust implementation with traits on enum types. I want to know if using an enum w/ a trait as a generator of different code is viable like the one below? Also a couple of things I’m curious about is if there is […]

Categories
Linux Mastering Development

searching logs for failures using grep with wordlist?

I am building a wordlist which will contain words like error,fail,kill,warn,out of,over,too much…..etc. so that I can filter tons of logs for issues within seconds. Log levels 0,1,2,3,4 greperror() { grep -i ‘error\|kill\|fail\|warn’ $* } Especially, it’s for linux logs digging. Edit 1: https://github.com/cornet/ccze static char *words_bad[] = { “warn”, “restart”, “exit”, “stop”, “end”, “shutting”, […]

Categories
User Help

Firefox: Prevent middle-click on tab-bar from creating new tab

In Firefox v. 76, how can one prevent a middle=mouse click on the tab bar from opening a new, empty, tab? In older versions, though there was no about:config entry to control that behavior, it was possible to prevent it using userChrome.css with the following code: /* Disable New Tab on MiddleClick */ #tabbrowser-tabs .arrowscrollbox-scrollbox{pointer-events: […]

Categories
Mastering Development

Problem in displaying history of my own Browser

I am trying to make a browser. For Displaying history. I’m using local database. Showing Title and Url of site in History. Problem is: I visit the site for once but in history it shows for 2-3 time. My Local database insertion function public void insertHistory(String Title,String Url,String Empty,SQLiteDatabase database) { ContentValues contentValues=new ContentValues(); contentValues.put(“Title”,Title); […]

Categories
Mastering Development

What’s the fastest way to get a range of existing members from an array?

We have an array filled up like so: const arr = []; arr[3] = ‘content3’; arr[4] = ‘content4’; arr[6] = ‘content6’; arr[7] = ‘content7′; Now we want to get the existing items starting with index 3, ending with index 6. Here’s a naive approach: const slice = arr.slice(3,7); // [“content3”, “content4”, empty, “content6”] const cleanSlice […]

Categories
Mastering Development

Javascript: Move JQuery etc. CDNs out of the HTML file?

(I’m new to HTML/JS). I’m trying to clean up my HTML file to bear-bone markup and put all logic in a .js file, including the CDN inclusions. I’m aware of How to include CDN in javascript file (*.js)? In the HTML below, I tried to move the 2 ‘src’ lines at the bottom, to form_validation.js, […]

Categories
Linux Mastering Development Ubuntu

Installer wants to put extra partitions on a new SSD

I’m trying to install Ubuntu-MATE 18.04.4 on a new, empty, external standalone 1 terabyte SSD. I have 2 other drives in my desktop workstation, so in the installer I selected “do not use” for the swap spaces on those drives. I then selected to create an 8 GB swap space for the SSD as a […]

Categories
Linux Mastering Development Ubuntu

Installer wants to put extra partitions on a new SSD

I’m trying to install Ubuntu-MATE 18.04.4 on a new, empty, external standalone 1 terabyte SSD. I have 2 other drives in my desktop workstation, so in the installer I selected “do not use” for the swap spaces on those drives. I then selected to create an 8 GB swap space for the SSD as a […]