Categories
Linux Mastering Development

Ubuntu 20.04 installation created a swapfile instead of swap partition. Is it normal?

Recently, I clean-installed Ubuntu 20.04, with minimal installation option. Now, when I check my swap space using the command swapon -s, I get the following output: Filename Type Size Used Priority /swapfile file 2097148 268 -2 When I see the list of partitions, using gparted, I see the following: Also, System Monitor app shows the […]

Categories
Linux Mastering Development

Error in Kali Linux running in a VM

I get this error in Kali Linux: "Oh no! Something has gone wrong. A problem has occurred and the system can’t recover. Please log out and try again." Please refer to the image below: I tried a couple of solutions like changing gnome to xorg login, doing WaylandEnable=False and so on but nothing worked, so […]

Categories
Linux Mastering Development

Change source ip of an incoming packet at the same interface and how to see it?

I have one application running on Server B which listens to eth0 on Server B. I have a GTP packet coming from Server A whose source address I want to change.  And in the GTP layer in the packet, the public IP (which is x.x.x.x) is present. I want to change the src IP to x.x.x.x. The […]

Categories
Mastering Development

Google Sheets, Updating Letter Stock Quantity

so i sell products which have a quantity of every letter. Im trying to make a system so that i can type a word in and depending on the style selected in cell "S7" it will update the stock letter wise. So from this picture, you would type in the cell "R7" the word that […]

Categories
Mastering Development

DDD: Event Store best practises – Type of Event

When building an event store, the typical approach is to serialize the event and then persist the type of the event, the body of the event (the serialized event itself), an identifier and the time it occurred. When it comes to the event type, are there any best practises as to how these should be […]

Categories
Mastering Development

convert an array to object and print result

I have this object and array data: stdClass Object ( [meta_title] => title [meta_description] => [categories] => Array ( [0] => stdClass Object ( [name] => cat title ) [1] => stdClass Object ( [name] =>cat title 2 ) ) ) in action, I need to print categories name using foreach method. how do can […]

Categories
Mastering Development

How to change apk “files” path from data/data to sdcard/Android?

I’m trying to modify a compiled Android application from the OTT device to change the location for the "files" folder. The problem is that the application is installed path "data/data/com.btn.gplay.playerapp.ott/files" and I want to change that path to "sdcard/Android/com.btn.gplay.playerapp.ott/files. I already unpack apk with apktool and I find two .smali files that could be responsible […]

Categories
Mastering Development

Unknown command message still pops up even you enter a valid command

Even though I entered a valid command, the unknown command message will still be executed. Is there any way to fix this? Here’s the code: bot.on(‘message’, (message) => { const unknowncommand = new Discord.MessageEmbed() .setColor(‘GREEN’) .setTitle(‘SCOTT’) .setDescription(‘You\’ve entered an unknown command. \nUse **!help** to see all available commands.’) let validCommands = ["!avatar", "!broadcast", "!clear", "!help", […]

Categories
Mastering Development

Laravel docker cron nginx 502 bad gateway issue (111: Connection refused) while connecting to upstream)

I am my laravel app in a docker container. Everything worked fine until I added a cron to the dockerfile. I need to schedule a job so I need a cron. My compose file looks like this version: ‘3’ networks: laravel: driver: bridge services: nginx: image: nginx:stable container_name: nginx ports: – "8080:80" volumes: – ./src:/var/www/html […]

Categories
Mastering Development

Debugview application not displaying properly

Good day, I’m currently experiencing a weird phenomena, this morning as I open the dbgview application an error message popped out(kernel related), couldn’t remember much about the details. Although the dbgview was showing at the task bar but as I clicked on it, it will jump out to no where. It was as if I […]