Skip to main content

Posts

Showing posts from June, 2023

How to send bulk messages to multiple numbers on WhatsApp with pywhatkit (python)

  There are various ways to send bulk messages on WhatsApp to your customers, but this is an automatic way to send messages to them at the right time without lifting a finger. Well, you’ve lifted the finger by adjusting the code,but it's free. You can use WhatsApp broadcast, but as we all know, there is a limit. There are paid apps on the Play Store, but if you're starting a business as a beginner, you don’t have money for them. You can code with WhatsApp's API, but that still requires money. And for me, selenium is complicated. Hence, this method This requires your phone numbers to be in an excel list. You can use any app to do that; the one I used is on the Play Store. It's called Contacts to Excel, PDF, and Text. It's completely free, and it converts your contact list to an excel file. You will need to login to WhatsApp Web to use this code. The IDE I used is Visual Studio Code, and the programming language used is Python. Pywhatkit explana...

The history of C++ (Bjarne Stroustrup)

  C++  (pronounced as see plus plus) is an extension of C. According to Stroustrup,         ‘‘A programming language serves two related purposes: it provides a vehicle for the programmer to specify actions to be executed and a set of concepts for the programmer to use when   Thinking about what can be done. The first aspect ideally requires a language that is ‘‘close to the machine.     The second aspect ideally requires a language that is ‘‘close to the problem to be solved. ’’   History of C++   C was developed after the language called B (designed by Ken Thompson in 1970). Which itself came from another language called BCPL (Basic Combined Programming Language), developed by Martin Richards.   B got its start on a UNIX operating system, so when C was released, it was still used in a UNIX environment. Two years after C was released, the code written in C began to suffer some setbacks. One of the setbacks was the inability of ...

Controlling a Servo Motor with Arduino Code

```#include <Servo.h> int servpin=9; int servpos=0; Servo myservo; void setup() {   // put your setup code here, to run once:   Serial.begin(9600);   myservo.attach(servpin); } void loop() {   // put your main code here, to run repeatedly:   myservo.write(servpos); }``` This code is also written in C++ programming language. It is used to control a servo motor connected to pin number 9 of an Arduino board. The code consists of two parts: the setup function and the loop function. The setup function is called once when the board is powered up or reset. It initializes the serial communication with the computer at a baud rate of 9600 using the Serial.begin() function. It also attaches the servo motor to the pin number 9 using the myservo.attach() function. The loop function is called repeatedly after the setup function has been executed. It sets the position of the servo motor to servpos (which is set to 0) using the myservo.write() function. Code for sevo: Git...