+

Badawy AI Draft Generator

Badawy AI Draft Generator

Badawy AI Draft Generator is a WordPress plugin that helps authorized users generate review-ready post drafts using an AI provider configured through the WordPress AI Client.

The plugin provides a straightforward WordPress administration screen for entering a topic, language, writing tone, target word count, SEO keywords, category, and additional editorial instructions. Generated content is saved within the normal WordPress post workflow for review and editing.

Features

  • Generate articles in Arabic or English.
  • Choose a target length between approximately 300 and 1,500 words.
  • Select professional, academic, analytical, editorial, or conversational tones.
  • Generate a title, article body, excerpt, SEO title, meta description, and relevant tags.
  • Save generated content as a draft or pending post.
  • Allow authorized users to publish immediately when they have the required WordPress permission.
  • Use structured responses through the WordPress AI Client.
  • Keep AI credentials outside the plugin under WordPress Settings → Connectors.

WordPress AI Client integration

Badawy AI Draft Generator requires WordPress 7.0 or later. It uses the provider-agnostic AI Client included with WordPress instead of making direct requests to individual AI providers.

A site administrator must install a compatible AI provider plugin and configure the corresponding account under Settings → Connectors. WordPress then selects a compatible text-generation model from the providers available on the website.

The plugin does not store provider API keys, hard-code AI model identifiers, or operate its own remote AI service.

External AI services

Generating an article requires communication with an external AI provider. When an authorized user selects Generate Post, the topic, requested language, tone, target word count, SEO keywords, additional instructions, and generation prompt are sent through the WordPress AI Client to a provider configured by the website administrator.

Depending on the provider plugin installed on the website, the external service may include:

Other compatible provider plugins may add support for additional services. Administrators should review the active provider’s pricing, terms, privacy policy, data-retention practices, and acceptable-use requirements before enabling it.

Privacy

Badawy AI Draft Generator does not add front-end analytics, advertising, tracking technologies, or cookies. It does not receive or store AI-provider credentials.

Generated posts are stored in the website’s WordPress database. The plugin may also save the generated SEO title and meta description as post metadata. Information sent to an external AI provider is governed by that provider’s terms and privacy practices.

Important editorial notice

AI-generated content can contain incorrect, incomplete, outdated, or misleading information. The plugin does not browse the web or independently verify facts. Users should review, fact-check, and edit every generated article before publication.

Requirements

  • WordPress 7.0 or later.
  • PHP 7.4 or later.
  • A compatible WordPress AI provider plugin.
  • An account and credentials for the selected external AI service.

Installation

  1. Install and activate Badawy AI Draft Generator.
  2. Install a compatible AI provider plugin.
  3. Configure the provider under WordPress Settings → Connectors.
  4. Open Badawy AI Drafts from the WordPress administration menu.
  5. Enter the article requirements and select Generate Post.
  6. Review and edit the generated post before publication.

Independent development and trademarks

Badawy AI Draft Generator is independently developed by Wael Badawy. It is not endorsed by, affiliated with, or sponsored by Anthropic, Google, OpenAI, or other AI providers. Product and company names are trademarks of their respective owners.

License

Badawy AI Draft Generator is free software distributed under the GNU General Public License, version 2 or later.

+

plugins/ai-draftsmith/

AI Draftsmith — WordPress AI Post Generator | Wael Badawy
WordPress Plugin • Version 1.0.0

AI Draftsmith

A draft-first WordPress plugin for generating articles with Google Gemini, OpenRouter, or OpenAI using API keys supplied by the site administrator.

AuthorWael Badawy
LicenseGPL v2 or later
WordPress6.0+
PHP7.4+

Overview

AI Draftsmith helps WordPress editors create structured post drafts from a topic and a small set of editorial instructions. The plugin is designed around human review: generated posts are saved as drafts by default so an editor can verify, revise, and approve the content before publication.

Independent plugin. AI Draftsmith is developed by Wael Badawy and is not affiliated with, endorsed by, or sponsored by Google, OpenRouter, or OpenAI.

Key Features

Multiple AI Providers

Choose Google Gemini, OpenRouter, or OpenAI from the WordPress administration area.

Arabic & English

Create posts in Arabic or English with selectable tone and target word count.

Draft-First Workflow

Draft is the default post status. Publishing remains under the control of authorized WordPress users.

SEO Assistance

Generate an excerpt, suggested SEO title, meta description, tags, and WordPress-ready HTML.

Free-First Routing

An optional workflow can try configured free or free-tier providers before a paid provider.

Bring Your Own API Key

No AI account is bundled. Administrators use their own provider credentials and billing arrangements.

Installation

1. In WordPress Admin, open Plugins → Add New → Upload Plugin.
2. Upload the AI Draftsmith plugin ZIP and activate it.
3. Open AI Draftsmith from the WordPress administration menu.
4. Configure one or more provider API keys.
5. Enter a topic, choose language and tone, and generate a post.
6. Review the generated draft before publication.

Secure API Key Configuration

API keys can be entered in the plugin settings. Administrators who prefer not to store credentials in the WordPress options table can define them in wp-config.php.

define('GEMINI_API_KEY', 'YOUR_GEMINI_API_KEY');
define('OPENROUTER_API_KEY', 'YOUR_OPENROUTER_API_KEY');
define('OPENAI_API_KEY', 'YOUR_OPENAI_API_KEY');

Only configure providers you intend to use. Never publish API keys in posts, pages, themes, or public repositories.

External Services & Data Disclosure

AI Draftsmith connects to external AI services only when an authorized WordPress user explicitly requests content generation. The plugin itself does not operate an independent SaaS backend.

Provider Purpose Data that may be sent
Google Gemini API Article generation Topic, language, tone, target length, keywords, optional instructions, and generated prompt.
OpenRouter Article generation and free-model routing Topic and generation instructions; site-identification headers may also be sent where required by the provider.
OpenAI API Article generation or optional paid fallback Topic, language, tone, target length, keywords, optional instructions, and generated prompt.

API keys are sent only to their corresponding providers for authentication. Data sent to a provider is governed by that provider’s own terms, privacy policies, retention practices, quotas, and pricing.

Privacy

  • No front-end analytics or advertising is added by AI Draftsmith.
  • No developer-operated tracking service is required.
  • No executable code is loaded remotely by the plugin.
  • Generated content should not be assumed to be fact-checked.
  • Site owners should avoid sending confidential or sensitive information unless permitted by the selected provider’s terms and their own policies.

Editorial Responsibility

AI-generated text can contain errors, outdated information, or unsupported claims. AI Draftsmith is designed as a writing assistant rather than an autonomous publisher. Site owners and editors remain responsible for reviewing accuracy, copyright, attribution, legality, safety, and suitability before publication.

Compatibility

Current Version1.0.0
WordPressRequires WordPress 6.0 or later
PHPRequires PHP 7.4 or later
LicenseGNU General Public License v2 or later
AuthorWael Badawy
Plugin Pagehttps://www.waelbadawy.com/ai-draftsmith/

Changelog

1.0.0

  • Initial public release.
  • Google Gemini, OpenRouter, and OpenAI provider support.
  • Arabic and English generation.
  • Draft-first publishing workflow.
  • SEO title, excerpt, meta description, and tag generation.
  • Optional free-first routing and paid fallback controls.

Support

For information about the author and future plugin updates, visit WaelBadawy.com. Once the plugin is accepted in the WordPress.org Plugin Directory, the official directory page can also be linked here.

AI Draftsmith
Developed by Wael Badawy • GPL v2 or later
Google, Gemini, OpenAI, and OpenRouter are names or trademarks of their respective owners.
Wish you the best for you and your family - Happy Eid
+

Wish you the best for you and your family – Happy Eid

Best wishes

Wish you the best for you and your family – Happy Eid
Prof. Wael Badawy @wbadawy @waelbadawy

+

Privacy and security of the personal data of Egyptian citizens and foreigner

The draft data protection law is concerned with the privacy and security of the personal data of Egyptian citizens and foreigner individuals who live in Egypt. It is Egypt’s version of the GDPR.

The draft law protects any personal data, if it leads to identifying an individual.  Examples include his/her name, address or photo.  The law provides an additional layer of protection to sensitive data, such as an individual’s religion and his/her medical information. It sets the rights of individuals in relation to their personal information, such as their right to ask that their data be deleted, and the obligations of organizations collecting or processing data.  

The main features of the draft law that may affect you as a business are:

  • Limitation on the ability of organizations to collect, use, transfer or retain personal data.
  • Duty to obtain a license and other compliance requirements, if data is controlled or processed (which is the case with all organizations).
  • Regulations addressing duties of companies’ carrying out direct marketing.

Who should worry and why?

Any person collecting, controlling, processing and/or holding personal data for uses that are non-personal.  This would basically include every business, company or other organization operating in Egypt.  The consequences for non-compliance are severe; ranging from imprisonment and fines and up to revoking data related licenses and publication of the criminal verdict in media outlets.

How much time do you have to set your house in order?

Those included within the scope of the law will be expected to comply within 18 months from the issuance of the law (that is if the executive regulations are issued on schedule).

What should you do?

The starting point is to track the data cycle from when your organization receives the data, processes, and stores it until the data is deleted.  Next, make sure you comply with each of the data protection principles as they have been emptied into legal obligations (see more on that below).   Document this in a policy and implement it.  Don’t forget to train your people.

Now you have an idea of the main highlights of the law and you want to understand more how data is handled under the law?  Deep dive into the below explanation of the data protection principles adopted by the law.

Seven key principles for data protection

These are set in stone under the GDPR and mirrored in the Law:

  1. Lawfulness, fairness, and transparency
  2. Purpose limitation
  3. Data minimization  
  4. Accuracy
  5. Storage limitation
  6. Integrity and confidentiality (security)
  7. Accountability

We fleshed out three of the principles for you to get a clear idea: 

  1. Lawfulness, fairness, and transparency

The principle – You must not collect or keep any personal data in electronic or physical form, except for lawful purposes, such as one of the following purposes:

  • The person whose data is being collected has given his/her consent.
  • The relevant document is anonymized.
  • The company has a legitimate reason to keep the data.
  • There is a legal or contractual obligation.

You must reveal the purpose of the data collection and processing. 

How to comply? Ask yourself why you are collecting this data and if you are also processing it. Make sure your reasons are legitimate; where possible obtain the person’s consent. Inform the data subject.

Obtaining consent is the gold standard.  Usually, document anonymization is used in medical applications and research.

Example – think of a financial institution keeping personal data to comply with its Know Your Customer (KYC) requirements under anti-money laundry laws. 

  1. Accuracy

The principle – You must (i) ensure that the data collected is correct, and (ii) correct any inaccurate personal data.

How to comply? – Map your data; review it, make sure it is correct; and put in place workflows that allow data subjects to review their data and correct it.

Example – when a person’s address is part of the data collected, and the individual does not reside at that location anymore, you need to (i) correct the data; or (ii) include such address as the last known address/previous place of residence.

  1. Integrity and confidentiality (security)

The principle – You need to take the necessary technical and organizational measures for the protection of personal data to ensure there is no breach of confidentiality, hacking, destruction, alterations or damage to the personal data.  You also need to appoint a data protection officer, who shall be registered with the regulator. This officer must carry out regular evaluation and checks of the data protection systems and document that.

How to comply? – Appoint a data protection officer; review your systems and workflows; draft a data security policy and implement it; train your people; and report data leakages when they happen.

Example – A business should not only address cybersecurity risks; it should also put in place technical measures (e.g. a secure process for disposal of documents containing Personal Data; securing access to locations/premises containing documents/devices with access to personal data).  In addition, a business should take organizational measures (e.g. ensuring coordination between the relevant members of the organization on security processes like disposal of IT equipment which were used to store personal data).

What needs to change in the current draft?

Data protection is good and eventually leads to a better business environment for all of us. But, we are mostly worried about the imprisonment sanctions which, as currently drafted, are extraterritorial. This represents a personal threat to senior executives in Silicon Valley and Seattle. We see this as a disabling threat that may cause some companies to reconsider their investments in Egypt. The draft law is essentially borrowed from the GDPR. But on the sanctions part, we seem to have lost our sense of where the world is going and decided to go in the opposite direction.

Our Technology & Innovation team welcomes your questions: wael@waelbadawy.com

+

Nile University – Introduction

Presentation at the Nile University on August 27, 2019

for more information please email wbadawy@nu.edu.eg or Call +201099986998 

+

The power of one cent

What is the power of one cent?

To answer this question, imagine that one cent doubles every day. As shown in the table, one cent after 9 days can buy you a coffee at $2.56. One cent, after 20 days, can buy a car at $5,242.88. One cent after 30 days can buy your dream that is worth $5 Million dollars. AND, you keep it to the following day, you will become a double-digit millionaires. One cent will be a $1,374,389,534.72 on day 38 and will be $5,497,558,138.88 on day 40.

Then what? The model above presents the strength of a network. I can recruit my team to double every day, or a week or a month. I can reach a powerful result if I have the passion and dedication.   The model is also applicable to sales, if I can double my sales every day, I can reach amazing business size after 30 cycles.  The cycle can be one week, one month, or even one year. Just keep it doubling and do not rush and have the passion to be a billionaire starting with one cent.

 

+

Hierarchical Adaptive Structure Mesh for Efficient Video Coding

 

Wael Badawy, “Hierarchical Adaptive Structure Mesh for Efficient Video Coding,” The International Journal on Image and Video Processing, Vol. 17, November 2001

+

PALACE AND CAMPANILE

A Trip Around the World with DWIGHT L. ELMENDORF, Lecturer and Traveler.

Close beside the cathedral of St. Mark stands the square Campanile, the most prominent feature in all Venetian views. Standing 325 feet high, the Campanile always dominated the picturesque low stretch of Venice’s skyline and gave a peculiar distinction to the whole scene. It seemed indeed to many Venetians and to lovers of Venice all over the world that the city had lost its crowning feature when, in 1902, the Campanile collapsed. It was originally erected in 900 and rebuilt in 1329. After it had fallen Venice seemed maimed, and the hearts of thousands felt the depression until the tower was rebuilt and the city could once again hold up its beautiful head. A new tower was built by Piacentini (pee´-ah-chen-tee´-nee) during the years 1905 to 1911, and on completion it was consecrated with most impressive ceremonies.

LION OF ST. MARK’S

The Doge’s Palace was originally founded about 800; but was destroyed by fire five times, and each time rebuilt on a grander scale. The older part of the present edifice was built in 1309; while the west wing, facing on the piazzetta, was built between 1424 and 1438 by the celebrated architects Buon, father and son.

In gazing at the Doge’s Palace the eye is first caught by the upper arcade. From there the sentences of the “Council of Ten” were pronounced—listened to by the assembled people in silence and in awe.

THE BRONZE HORSES OF ST. MARK’S

These horses are among the finest of ancient bronzes. They probably once adorned the triumphal arch of Nero, emperor of Rome.

The columns of this arcade are most beautiful, and have been pointed to with pride for years. Ruskin describes the detail of the sculptured columns, and declares that they are the finest of their kind in Europe. The interior of the Doge’s Palace is wonderful. Tintoretto’s painting of “Paradise” is there, a marvel in size and in detail. The residence of the Doges and the apartment in which the authorities held their meetings are there, revealing still much of their ancient glory. The palace is virtually a museum, and it shows a great display of fine paintings, containing, among others, notably works of Tintoretto, Paul Veronese, (vay-ro-nay´-seh) and Palma Giovane (jo-vah´-neh). Days could be spent profitably wandering through these halls, studying the treasures of art and history to be found there.

THE PALACE OF THE DOGES

The Doge’s Palace is said to have been founded beside the church of St. Theodore about 800 for the first Doge of Venice. It has been rebuilt and altered many times.

SCALA DEI GIGANTI, DOGE’S PALACE

The Stairway of the Giants, so called from the colossal statues of Mars and Neptune at the top, leads to the Palace of the Doges. On the highest landing of these steps, in the later days of the Republic, the Doges were crowned.

+

ST. MARK’S

A Trip Around the World with DWIGHT L. ELMENDORF, Lecturer and Traveler.

It is not the physical conditions alone that make Venice unique. In the beauty and interest of its domestic architecture it ranks before any city in the world. The mosaics of Venice have been famous for centuries, and are today the marvel of all who see them. The spot where Venice has massed the gems of her beauty is St. Mark’s Place.

A VENETIAN CANAL

One of the smaller and narrower canals of Venice.

ST. MARK’S CATHEDRAL

The remains of St. Mark, the tutelary saint of Venice, are said to have been brought from Alexandria in 829, and to have been buried here.

The view of Venice most familiar to stay-at-home bodies is the one to be had from across the water looking at St. Mark’s Place, and including, besides the cathedral of St. Mark, the Doge’s (doje) Palace and Campanile (cam-pa-nee´-le) Tower, and in some cases a glimpse of the Bridge of Sighs. The Piazza of St. Mark is called the “Heart of Venice.” All the life of the city surges there at certain times, then sweeps from there through its various channels. It is gayest on summer evenings, when the population turns out to enjoy the fresh air and listen to the military band. At that time the piazza is brilliant with fashionable people. Go there on a moonlight night, and you will find it a dream of beauty. You must see, of course, the pigeons of St. Mark’s. Flocks of them circle about the square or gather in groups on the pavement, wherever food is to be found. The pigeons of St. Mark’s used to be fed at public expense. It is not necessary now: there are always plenty of travelers that will pay them this pleasant toll for the sake of being photographed in their company. St. Mark’s Place is 191 yards in length, and in width 61 yards on one side and 90 on the other. The beautiful effect of it can hardly be expressed. It is paved with trachyte and marble, and surrounded by buildings that are not only important historically but most interesting architecturally.

THE RECONSTRUCTED CAMPANILE OF ST. MARK’S

The Church of St. Mark, now a cathedral, was begun in 830. The year before that the bones of St. Mark, the saint of Venice, were brought from Alexandria, and they now lie buried in the church. This marvelous building is Romanesque in style. During the eleventh and twelfth centuries it was remodeled and decorated with most lavish magnificence. In the fifteenth century it received some Gothic additions which enhanced its effect. In such short space as this it is impossible to do justice to the beauty of St. Mark’s. It is best by far to rest on what Ruskin has said in his “Stones of Venice”:

“The effects of St. Mark’s depend not only upon the most delicate sculpture in every part, but eminently on its color also, and that the most subtle, variable, inexpressible color in the world,—the color of glass, of transparent alabaster, of polished marble, and lustrous gold.”

AMERICANS FEEDING THE DOVES OF ST. MARK’S

The building is in the form of a Greek cross, with mosaics covering more than 4,500 square feet. Over the upper entrance are four horses in gilded bronze, counted among the finest of ancient bronzes. They may have adorned the triumphal arch of Nero or that of Trajan in Rome. The Emperor Constantine sent them to Constantinople, and from there they were brought by the Doge Dandolo to Venice in 1204. These horses were taken to Paris by Napoleon in 1797, and for awhile crowned a triumphal arch in that city. After Napoleon’s downfall, in 1815, the bronzes were restored to their original place at Venice.

+

A Multiplication-Free Algorithm and A Parallel Architecture for Affine Transformation

Affine transformation is widely used in image processing. Recently, it is recommended by MPEG-4 for video motion compensation. This paper presents a novel low power parallel architecture for texture warping using affine transformation (AT). The architecture uses a novel multiplication-free algorithm that employs the algebraic properties of the AT. Low power has been achieved at different levels of the design. At the algorithmic level, replacing multiplication operations with bit shifting saves the power and delay of using a multiplier. At the architecture level, low power is achieved by using parallel computational units, where the latency constraints and/or the operating latency can be reduced. At the circuit level, using low power building blocks (such as low power adders) contributes to the power savings. The proposed architecture is used as a computational kernel in video object coders. It is compatible with MPEG-4 and VRML standards. The architecture has been prototyped in 0.6 μm CMOS technology with three layers of metal. The performance of the proposed architecture shows that it can be used in mobile and handheld applications.

 

Wael Badawy and Magdy Bayoumi, “A Multiplication-Free Algorithm and A Parallel Architecture for Affine Transformation,” The Journal of VLSI Signal Processing-Systems, Kluwer Academic Publishers, Vol. 31, No 2, May 2002, pp. 173-184.