Categories
Mastering Development

Center a table within a div

Please help, I have been stuck on this. I found many solutions online but not of them work in my case. I’m trying to center the table. Here is how it looks now: HTML: <div class="container"> <table id="multTable"></table> </div> CSS: #multTable { width: 100%; margin: 0 auto; display:block; height: 200px; overflow-x:scroll; overflow-y:scroll; } I tried […]

Categories
Mastering Development

Compare times to a giving time in a cell

i would like some help in trying to create a formula that compares a certain time in 1 cell to the Current time.in the end, i would like that cell to highlight a color if it is less then or equal to then the current time. For example: Cell A2 has a time of 14:00, […]

Categories
Mastering Development

Bash Script: IP Address variable’s possible? [closed]

Is it at all possible to make an IP Address point to a specific name? I don’t mind what method needs to be done, just need some suggestions as I’m new to bash. The reason for this is I want to make a script that checks which Site the IP I input is for. e.g […]

Categories
Mastering Development

Can someone help me figure out how to write this while loop? [closed]

I am struggling while I am trying to figure out how to write the code for this set of instructions. I have tried to write some code myself and I’m not sure if it will work. The instructions: Given some positive number n, write a while loop that will print the odd numbers from -n […]

Categories
Mastering Development

split a string message into array in Typescript

I’m trying to split a string message into array in Typescript. I cannot use comma as there’s a json string. I tried to parse but I’m getting an error. const msgs = ‘string_no_quotes,"string-with@}-weirdchars",{"ckey":null,"email":"user@gmail.com","pass":"password","name":{"firstName":"User","middleName":"","lastName":"Name"},"address":{"street": "test street", "country":"some country", "zip": "639821"},"status":1},opt-data’ const messages:string[] = JSON.parse(msgs.toString()) The error : SyntaxError: Unexpected token c in JSON at position 1 […]

Categories
Mastering Development

How can I, on click, be redirected to another page and, at the same time, start a countdown

I have an html page with three columns. In the first there are a series of links. The second shows a timer for each link that can range from one minute to 24 hours. The third is currently empty. What my page should do when a user clicks a link: The link changes color. I […]

Categories
Mastering Development

Connecting to a remote instance of Interbase on Android using IBLite not working

In Delphi 10.4.1 I’m trying to build an Android application that connects to an instance of Interbase running on my laptop (which I can connect to remotely from my desktop). I get the exception: Project Project6.apk raised exception class EIBNativeException with message ‘[FireDAC][Phys][IBLite]Unable to complete network request to host “192.168.1.58”. Failed to locate host machine. […]

Categories
Mastering Development

Iterating over directory and its file contents. Find and replace EXACT match [duplicate]

I wrote a Python script that iterates over all files in a specific directory. It opens files in read-only mode, finds specific strings from an XML file, and replaces them accordingly. The problem is, if, for example, I want to change "icon.png" to "bear.png", the script will also work on "professional_icon.png" and will replace it […]

Categories
Mastering Development

When I use the subclassing API of tensorflow2 ,some strange problem arise: some layers can be reused,some can`t,why

In the following two examples,that are all use the subclassing to construct the same model.Some strange problem occur about reused layers.the one can`t reused all layers,the another can`t reused a part of layers,such as Convolution,BatchNormization,but can reused the Activation layer. why? 1. use the existing layers in tensorflow . the all layers can`t be reused,such […]

Categories
Mastering Development

In python with numpy, how can I update array from another array depend on column that exists in both?

So I have a source array like this: [[ 9 85 32 100] [ 7 80 30 100] [ 2 90 16 100] [ 6 120 22 100] [ 5 105 17 100] [ 0 100 33 100] [ 3 110 22 100] [ 4 80 22 100] [ 8 115 19 100] [ 1 […]