Azure App Service allows you to host your application on a managed environment. You select the environment/stack (Java, PHP,ASP.net…) , Azure will setup the environment for you by using container , all you need is to deploy your code to this environment. To deploy your code, Azure provides you some deployment tools: FTP/FTPS, Github, or local git. If you link your app with some tools like github,local git . This app service will automatically deploy your code when you commit your code (this can be turned off if you dont need) All these app service is based on containers. you can provide your own imageRead More →

Build vs Release : Build: you run it on a build server, this could be your default pool or agent pool (your self hosted pool) Release: it’s normally collect the data from Build , the tasks are similar , you can setup some workflows ( approval) , the biggest thing i can see is the deployment groups – We can run release on deployment groups, deployment groups is a group of servers that you target the deployment. When you start a build/release , the script will run on the build server/deployment groups. The script will pull the source code , then you can copy theRead More →

A short script but it will help you to debug your javascript/automation issues: var allElements = document.getElementsByTagName(“span”); total=0; for(var i=0; i < allElements.length; i++) { if (allElements [i].className.includes(“ng-option-label ng-star-inserted”)) { // console.log(allElements [i].className); console.log(allElements [i].textContent ); total++; } } console.log(“Total Item: “+total);Read More →

For some reason, i couldnt start grafana server after the installation logger=plugin.loader t=2022-12-08T15:13:36.20693136-05:00 level=info msg=”Plugin registered” pluginID=agenty-flowcharting-panel logger=plugin.loader t=2022-12-08T15:13:36.206939838-05:00 level=info msg=”Plugin registered” pluginID=grafana-splunk-datasource logger=plugin.grafana-splunk-datasource t=2022-12-08T15:13:36.213812747-05:00 level=info msg=Profiler enabled=false logger=plugin.grafana-splunk-datasource t=2022-12-08T15:13:36.213852618-05:00 level=info msg=”Running Splunk backend datasource…” logger=plugin.loader t=2022-12-08T15:13:36.214426819-05:00 level=error msg=”Could not start plugin” pluginId=grafana-image-renderer err=”plugin grafana-image-renderer is already registered” logger=plugin.loader t=2022-12-08T15:13:36.214451541-05:00 level=info msg=”Plugin registered” pluginID=grafana-map-panel logger=secrets t=2022-12-08T15:13:36.214745867-05:00 level=info msg=”Envelope encryption state” enabled=true currentprovider=secretKey.v1 logger=query_data t=2022-12-08T15:13:36.216614331-05:00 level=info msg=”Query Service initialization” logger=live.push_http t=2022-12-08T15:13:36.220617518-05:00 level=info msg=”Live Push Gateway initialization” logger=infra.usagestats.collector t=2022-12-08T15:13:36.3300047-05:00 level=info msg=”registering usage stat providers” usageStatsProvidersLen=2 logger=server t=2022-12-08T15:13:36.330134773-05:00 level=info msg=”Writing PID file” path=/var/run/grafana/grafana-server.pid pid=2535153 logger=settings t=2022-12-08T15:13:36.720626775-05:00 level=info msg=”Starting Grafana” version=9.2.3.1 commit=046dbf9789 branch=HEAD compil I see the server keepRead More →

One day, your computer stop working, here are some symptons: Power on , fans , lights working USB keyboard does not light up You are sure that your memory/cpu/graphics card working fine( move it to a working machine and test) No display you clear the cmos, remove battery there is no sign of any components burnt If you have the above symptoms, there is a high chance that your bios is failed or corrupted. If your bios is corrupted, you can reflash it using the some special tools, the tool name CH341a , there are many articles on internet showing you how to use it,Read More →

I’m trying to reflash my motherboard bios using ch341a tool, the utility i use is flashrom . What’s my challenge? the challenge to connect the tool to the bios, the connection needs to do some tweak, i just want to focus on tweaking, i would like my computer to keep running the program while i try to connect, if the program connect successfully, it should stop. I came up with this simple script while : do flashrom –programmer ch341a_spi -r backup1.bin && exit sleep 2 doneRead More →

Some applications might have some extensive query which might take several seconds to response, some people said a few seconds isn’t a big problem. Now, let say you one heavy query which will take 2s , remember this that 2s is when your server in low load, when your server got few hundred hits to that query, that normal 2s is no longer 2s, it will be added up. If this continue, your server will be dead. First thing people will think about caching, using ngnix (for example), but remember that, ngnix cache is based on the url , this is good for static content.Read More →

If you use Splunk for Infrastructure – this CPU alert can be highly customizable . It’s not like other alert where all the values are static. Each host has different threshold,waiting time. This query can help. You can use a lookup table to customize the threshold and the waiting time. | mstats avg(cpu_metric.pctIdle) as curr_avg_idle_cpu WHERE earliest=-9h latest=-0h index=unix_metrics AND CPU=all BY host span=1h | reverse “` by default it the oldest will go first – we need to reverse so the list below will have the latest event on toop“` | stats list(*) as * by host | rename curr_avg_idle_cpu as last_8_hour_range | evalRead More →

Well, your quick answer could be yes, it’s pretty simple. All you need is to a little Selenium experience. We’ll that’s correct when you start with some simple stuff, click on this , fill some text , hit submit , then you are done. But when you are actually working on a project, things are not as simple as your first test. In order to automate a task, you need know how to get the object , either based on css/xpath/id . If you are lucky, these fields are not changed you can use it again, but if these are dynamic you must put moreRead More →