I have small datacenter at my home and i use FreeNAS & OpenFiler for managing SAN/NAS storage with VMWare ESXi/vCenter.

My OpenFiler server OS was corrupted so i needed to recover the data from the server after making new installation of OpenFiler.

OpenFiler use LVM to mount & manage the storage partitions and here is the steps to mount the lost partitions and backup your data.

Before start the recovery procedures, you must first reinstall new version of OpenFiler on the machine but don’t format the data partitions. Only install on the OS partition. Because total erase will destroy your data.

  • Login to the new OpenFiler using root
  • Scan for all LVM partitions on the system.
[root@localhost ~]# lvmdiskscan
  /dev/sda1         [     298.05 MiB]
  /dev/sdb1         [     190.73 GiB] LVM physical volume
  /dev/sdc1         [     476.83 GiB] LVM physical volume
  /dev/sdd1         [     143.05 GiB] LVM physical volume
  /dev/sde1         [     123.97 GiB] LVM physical volume
  /dev/sdf1         [     114.44 GiB] LVM physical volume
  4 disks
  18 partitions
  0 LVM physical volume whole disks
  5 LVM physical volumes

  • Scan for LVM mappings
[root@localhost ~]# lvscan
  ACTIVE            '/dev/nas/download' [190.72 GiB] inherit
  ACTIVE            '/dev/nas/archive' [715.22 GiB] inherit
  ACTIVE            '/dev/nas/backups' [143.03 GiB] inherit
  • Activate LVM volumes manually
[root@localhost ~]# vgchange -ay
  3 logical volume(s) in volume group "nas" now active
  • Mount each volume one by one and then backup them using SCP command on network to another machine or mount external storage and use CP command
mount /dev/nas/backups /mnt/backup
mount /dev/nas/archive/mnt/archive
mount /dev/nas/download/mnt/download

I was working on a personal project (Machine Learning) required to scrape Souq.com public data to train my model.

After doing intensive search on the web i didn’t find any powerful scrapper which can get the information i want so i decided to develop one.

My scrapper is advanced because it’s scrape almost all the public information from Souq.com very fast and can scrape the whole website offline for BI Analysis, Machine Learning or any other purpose.

The scraper can scrape the whole Souq.com in 1~2 days at max on regular internet speeds (4mb~16mb) if you have more bandwidth it will be more faster and less time.

Scraper Model

Souq.com Scrapped Model
Souq.com Scrapped Model
  • Categories
  • Products (Bundles, Related Products, Attributes, Configurations)
  • Sellers
  • Reviews & Rating (Seller, Products)
  • Product Delivery

The project is functional but not yet completed but it’s a reference for more advanced scrappers can be built using it.

It’s now opensource and can be accessed on GitHub

https://github.com/roofman2008/AdvancedSouqScrapper

Scraper at Operation Video

I faced problem with my Bluetooth headset, it’s working only in voice mode and cannot hear the music or voices clear and sometimes don’t work at all.

After some investigation i found that solution and it’s working perfectly and solved the corruption problem in the driver.

Note: Windows update will not solve your problem i tried, it’s a problem from Microsoft latest update for windows [windows-10-updates-3682074].

Fix Steps

  • Disconnect your Bluetooth device.
  • Open CMD at Administration Mode
  • Run the following commands in sequence and wait until the processing end.
  • Reconnect your Bluetooth device again.
DISM.exe /Online /Cleanup-image /Restorehealth
sfc /scannow

When i was participating in Space Technology Program (STP) to develop a Nano-Satellite or Cube-Satellite for students, the development stuff asked everyone in the team to start search in the Embedded Operating Systems to install it on the hardware.

My task was to focus in uCLinux OS and FreeRTOS and study them, and in this topic i will show you how to emulate uCLinux on your pc before installing it on the hardware, to help you understand it first and develop small programs on it.

Introduction to uCLinux

  • Definition: μClinux was a fork of the Linux kernel for microcontrollers without a memory management unit (MMU).
  • Popular Supported Architectures
    1. ARM ARM7TDMI
    2. Freescale m68k, aka Motorola 68000 family
    3. MIPS
    4. Motorola ColdFire
    5. Xilinx MicroBlaze

In this post i will choose the architecture of ARM7 to compile and emulate uCLinux on it.

Compilation & Installation Environment:

  • Operating System: Ubuntu 8.04 or later.
  • Compiler: arm-gcc
  • Emulator: Skyeye

 

Alien Isolation

Alien Isolation

I’m a huge fan for the Horror/Sc-Fi game Alien Isolation, but i faced a serious problem after i downloaded this game on my low specs PC.

The game designed to work correctly on DirectX11 & Powerful Graphic Cards, and if you don’t meet these requirements, you will face a random frequent crashes during the game that will make your life as Hell.

So i tried to figure out how to solve the problem so i can play the game normally without any crashes, and i figured out a solution.

The problem comes from the Engine Settings file in “<Game-Path>\Data\Alien Isolation.xml”.

This file simply have the configurations for the game graphics parameters, and these parameters configured to be compatible DirectX11 and to provide you the best game experience even in the lowest options but these configurations will make your graphic card unstable cause the graphic card don’t have the power to handle such configurations.

So the solution is to change some of these configurations so it can meet with your graphic card capabilities.

Of course this will downgrade the game graphics a little bit but you will gain that the game will be stable and you can enjoy it.

Note: this manual enable you to run the game on DirectX10 too, but you must have at least 4-Core Processor cause the game switch on software acceleration.

FYI, this solution is working on my Laptop that have Intel Graphic card and it’s working fine.

Read More

In my work, i needed to generate a folders structure to help the team to organize the work data, but i found that i have to create more than 1500 nested folders, and that’s hard to do manually so i tried to search for a solution on the internet for my situation but without any results so i developed my own tool to do the task, i developed Directory Tree Generator.

Directory Tree Generator

Directory Tree Generator (DirGen) is a small tool based on .Net-framework 4 that helps administrators to build any Directory Structure they want without any effort and with organized way.

Directory Tree Generator Functions

DirGen provide various functions to help the administrator accomplish his objective:

  • Read Excel-Sheets and Extract the Folder Structure Tree.
  • Generate and modify Directory Structure Tree in Run-time.
  • Generate the Directory Structure Tree in Text File.
  • Execute The Directory Structure Tree on The Windows File System.
  • Export Directory Structure Tree to Excel Format.
  • Support Command Line Parameters for Scripting.

Directory Tree Generator Screenshots

Directory Tree Generator
Read More

While I’m working in AeroXtreme MAV Researching Project, i faced a serious problem in the serial communication in .NET C#. The standard C# serial component is too slow to handle fast serial communication for real-time applications. The MAV Main Computer send data over serial communication in high frequency and send a lot of data. When I used the standard C# serial library “Receiving Event” a huge lag of communication appeared and the buffers is jammed due to the high frequency of communication. After a lot of testing and debugging i found that the serial communication using the standard library will fail in such application so i tried to develop a Fast Serial Library to fulfill my requirement of real-time communication. My Library solve this problem and it can work with high frequency communication without any overhead on the processor due to the frequency control technique.

Read More

For 10 days i faced critical problem on my private server storage hard-disk, the system failed and it can’t fix itself automatically because of bad sectors in the operating system partition in my case the operating system was windows.

I learned something from this experience that there is no fixing to bad sector the operating system just mark the sector as bad sector and remap the sector in other sector on the storage, that’s mean when your hard-disk reach a certain level of bad sectors you must replace it with new hard-disk.

To help the system to recognize the bad sectors and remap them on windows you must do check on the entire partitions on your pc to make sure that all bad sectors are mapped in the system.

Read More

In the last few hours i faced a serious problem with VMWare.

My VMDK or VMWare Virtual Disk file corrupted due to a failure happened in the vmware.

After doing search on internet about this problem i didn’t found efficient and easy solution, but at last i found a the best solution represented by VMWare company for both Windows and Linux users 😀

It’s the most efficient and easiest solution for anyone have problem with his VMDK files.

Read More

From few years ago, when i was new in space technology program, our instructors gave us a report.

In this report we must develop a Tic-Tac-Toe using ASM Simulator, and this simulator we must develop it too.

Our instructors helped us a little in how we can develop a simple ASM Simulator, and left us to continue developing the game and ASM simulator and they made it worst when they asked it to be Over Network.

My Team consist of 2 people (Me and Islam My Friend), and the report deadline was 2 weeks.

After we studied the topic and the implementation with HLL (High Level Languages), we started to implement it with our custom ASM we defined in the simulator.

The game in first was a console app, but after while before we deliver it we decided to implement UI on it and we used the GTK++ to develop the simple interface.

In this article i will share the source code of the game + simulator under console and with the network support.

Read More