Thursday, 19 November 2020

PYTHON INSTALLATION STEPS

 PYTHON INSTALLATION STEPS :

1. Copy Python-3.3.2.tar.bz2 and Django-1.5.2.tar.gz & paste both in Home Directory and extract them.

2. Open terminal

>cd Django-1.5.2

>sudo python setup.py install

  

 installation complete.

MONGODB INSTALLATION STEPS

 MONGODB INSTALLATION STEPS :

1. Copy & paste mongodb-linux-i686-2.4.6.tgz and extract it in home folder and create one folder in mongodb-linux-i686-2.4.6 \bin folder (ex. snjb) >sudo mkdir /data

>sudo mkdir /data/db

>sudo chmod 777 /data/*

>cd ~/mongodb-linux-i686-2.4.6/bin >./mongod --dbpath snjb

right click and open new terminal and give following command >./mongo

installation complete.

Friday, 13 November 2020

Difference between Intel Core i3, i5 and i7

Difference between Intel Core i3, i5 and i7
To conclude in a statement, Core i7s are better than Core i5s, and Core i5s are better than Core i3s. The main reason here being performance. In general, Core i3 chips are found in budget PCs and low-end laptops. For a normal user who does browsing and watching videos, Core i3 works just fine. Core i3s have a low Cache size.
The mainstream or mid-range systems usually  have i5. Systems with Core i5 are good for a moderate user and light gamer.

Wednesday, 13 May 2020

Text Editor Python Using tkinter

Text Editor using python




from tkinter import *
from tkinter.filedialog import *
from tkinter.messagebox import *
from tkinter.font import Font
from tkinter.scrolledtext import *
import file_menu
import edit_menu
import format_menu
import help_menu

root = Tk()

root.title("Text Editor-Untiltled")
root.geometry("300x250+300+300")
root.minsize(width=400, height=400)

text = ScrolledText(root, state='normal', height=400, width=400, wrap='word', pady=2, padx=3, undo=True)
text.pack(fill=Y, expand=1)
text.focus_set()

menubar = Menu(root)

file_menu.main(root, text, menubar)
edit_menu.main(root, text, menubar)
format_menu.main(root, text, menubar)
help_menu.main(root, text, menubar)
root.mainloop()





Youtube video download using python


Hi all,

Code for Youtube video downloader using python.

Program:

#youtube
import webbrowser
print("Mac Plus Tech solution")
print("-------------------------------------")
url = input("ENTER YOUTUBE URL:")
download=url[:12]+"ss"+url[12:]
webbrowser.open_new(download)



Tuesday, 21 April 2020

How to Compress 1GB files into 10MB

       Managing space on your hard disk is sometimes a tedious task. Many used to compress their files to save the space. But they could only manage to save a bit . By following the instructions of this article you can Compress 1GB files into 10mb archive.
kgb archiverFirst of all you need to download a software called as KGB Archiver. You can download it by clicking here.
After downloading and installing the software Follow the screenshots below to start archiving.
Step1: Start the KGB Archiver Program and click next.

 





Monday, 20 April 2020

MS SQL Server Space / Memory Manegment


Execute This


SELECT SUM(unallocated_extent_page_count) AS [free_pages]

,(SUM(unallocated_extent_page_count) * 1.0 / 128) AS [free_space_MB]

,SUM(version_store_reserved_page_count) AS [version_pages_used]

,(SUM(version_store_reserved_page_count) * 1.0 / 128) AS [version_space_MB]

,SUM(internal_object_reserved_page_count) AS [internal_object_pages_used]

,(SUM(internal_object_reserved_page_count) * 1.0 / 128) AS [internal_object_space_MB]

,SUM(user_object_reserved_page_count) AS [user object pages used]

,(SUM(user_object_reserved_page_count) * 1.0 / 128) AS [user_object_space_MB]

FROM sys.dm_db_file_space_usage;

GO

Activate curl Wamp : windows

The steps are as follows :


  1. Close WAMP (if running)
  2. Navigate to WAMP\bin\php\(your version of php)\
  3. Edit php.ini
  4. Search for curl, uncomment extension=php_curl.dll
  5. Navigate to WAMP\bin\Apache\(your version of apache)\bin\
  6. Edit php.ini
  7. Search for curl, uncomment extension=php_curl.dll
  8. Save both
  9. Restart WAMP

open Rar File Ubuntu




First i need to run :

sudo apt-get install unrar 
for install unrar.


If i want to unpack all files within the .rar files in the same directory
unrar e -r /home/work/software/myfile.rar



if You want to unpack the files in full path
unrar x -r /home/work/software/myfile.rar

tracert cmd Command for Trace Root


tracert cmd Command for Trace Root

syntax

>tracert google.com


-------------------------------------------------------

all over Word cable map
Cables Map: https://www.submarinecablemap.com

speed all over word pont
Speed Meter: http://www.nixi.in/en/mrtg-statistics
--------------------------------------------------------------

oky

-Kishor 

Bluetooth + Arduino Connectivity

/*
 *  The program for ON/ Off LED Using Bluetooth
 *  MAC+tech Development
 *  http://macplustechnology.blogspot.in/
 *  Email: macplustech@gmail.com
 *
 */
char data = 0;                //Variable for storing Bluetooth incoming data
void setup()
{
  Serial.begin(9600);      
  pinMode(13, OUTPUT);        //output pin (+5V)  other connect (GND)
}
void loop()
{
  if(Serial.available() > 0)  // resive data
  {
    data = Serial.read();      //Read the incoming data
    Serial.print(data);        //Print ValueSerial monitor
    Serial.print("\n MAC+tech");      
    if(data == '1')            //Checks whether value of data is equal to 1
      digitalWrite(13, HIGH);  //If value is 1 then LED turns ON
    else if(data == '0')       //Checks whether value of data is equal to 0
      digitalWrite(13, LOW);   //If value is 0 then LED turns OFF
  }                          

}              


load to Arduino And Send data though Android App. where make simple android app. to send data though Bluetooth .....

On off Light Using MObile And Arduino

Steps :

1 . go to http://ai2.appinventor.mit.edu  
    and open Account 
2  Download Android App Source Code from My Drive  https://drive.google.com/open?id=1GS3NbGwm0DaKM89chzyWDuAxkW35xR75

Or  Directly Download APK File from here.. 
3 import this code to http://ai2.appinventor.mit.edu
and Build App Download it Using QR Code Directly Your Android Mobile



Step to run :
 1 . Connect  LED, BT HC-05 To Arduino Upload bellow Program on it  (* IMP NODE : During Upload Arduino Remove Bluetooth HC-05 )
 2.  Using in mobile pair with Bt Devices HC-05 (Default password 1234)
 3. Open App select Device from list connect it
 4. on/ off light  




Write CODE on Arduino AND Config Pin...


CODE:
/* 
 *  
 *  Coder - Kishor M Sonawane




Bluetooth connection:-
Arduino Pins           Bluetooth Pins
RX (Pin 0)     ———->      TX
TX (Pin 1)     ———->      RX
5V             ———->      VCC
GND            ———->      GND


 */
char data = 0;                //Variable for storing received data
void setup() 
{
  Serial.begin(9600);         
  pinMode(13, OUTPUT);        //Sets digital pin 13 as output pin
}
void loop()
{
  if(Serial.available() > 0)  /
  {
    data = Serial.read();      //Read the incoming data and store on variable >> data
    Serial.print(data);       
    Serial.print("\n");        
    if(data == '1')            //Checks whether value of data is equal to 1 
      digitalWrite(13, HIGH);  //If value is 1 then LED turns ON
    else if(data == '0')       
      digitalWrite(13, LOW);   //If value is 0 then LED turns OFF
  }                            
 
}                 




Thursday, 1 November 2018

Shakti processor |Shakti Processor Program | indias first processor

General purpose on-chip processors have become ubiquitous today. These processors range from extremely small and low power micro-controllers (used in motor controls, robotic platforms, home-appliances, etc.) to hefty and high-performance multi-core processors (used in servers and supercomputers). However, the growth of modern domain-specific languages (like Caffe, Tensorflow, etc.) and the need for more specialized features like machine-learning, enhanced security, etc. has forced the industry to look beyond general purpose solutions and towards mass-customization. While a large number of companies today can develop custom ASICs (Application Specific Integrated Chips) and license specific silicon blocks from chip-vendors to develop a customized SoCs (System on Chips), at the heart of every design is the processor and the associated hardware. To serve modern workloads better, these processors also need to be customized, upgraded, re-designed and augmented suitably. This requires that vendors/consumers have access to relevant processor variants and the flexibility to make modifications and ship them at an endurable cost. 

Today, a fair share of the processor market is dominated by just a few giants like Intel, ARM, AMD, etc. Each of these companies have an impressive IP portfolio of processors catering to various market trends. Almost all of the IP offerings of these companies fall under a licensing model which varies significantly. For example, Intel licenses its ISA only to limited users like AMD. ARM on the other hand offers a broad of range of licenses from ISA to architectural licenses. Apart from just license fees, these companies also charge royalties on devices using their IPs. Having sustained a successful IP model, today some of these licenses can go up to 1-10\$ Million in addition to strict NDAs which may restrict the user from making any proprietary changes or even publishing relevant numbers. All these aspects of the licensing model, while benefiting the respective companies, has made is difficult for consumers to develop truly customized solutions for modern day workloads. Some of these customizations cater to too low a market sector for the giants themselves to invest in, thereby prohibiting growth and novelty. 

In essence, the closed-source IP model in the processor community is proving to be a hindrance to build scalable solutions. A similar struggle in the software industry against closed-source IP led to the rise of the open-source Linux kernel in the 1990s. Since then the software community has seen a plethora of open-source software and tool-chains which have been adopted by industry and academia both. The hardware community however, hasn't seen such a revolution yet and is probably in dire need of the same. An open-source processor ecosystem will not only boost customization but also allow bright minds of the industry and academia to collaborate and provide a stable and viable framework competent enough with modern-day products. SHAKTI, an open-source initiative by IIT-Madras (Indian Institute of Technology Madras) is primarily aimed at building such open-source processor development ecosystems which can equip the community with enough ammunition to build custom and industrial grade processors without the hassle of licensing, NDAs, royalties or any other sort of restrictions. 

The SHAKTI Program


The SHAKTI Processor Program, was started as an academic initiative back in 2014 by the RISE group at IIT-Madras. Realizing the limitations of the processor industry mentioned above, the initiative aimed at not only creating open-source industrial grade processors but also building associated components of a bigger ecosystem - like interconnect fabrics, scalable verification platforms, peripheral IPs, etc. - which enables rapid adoption of the processors. Some of the major highlights of the program which make it a viable option for adoption are:

Source code of all the components of the SHAKTI ecosystem are open under the 3 part BSD license. This means a user could freely use, modify and circulate the source code without having to sign any NDAs, licenses or even notify the authors as long as the license header file remains. The SHAKTI program itself will not assert any patents and thereby removes the burden of paying royalties as well.

The processors of the SHAKTI ecosystem are build using the open-source RISC-V ISA. RISC-V has been designed for modularity and extensions, thereby perfectly fitting the prologue of "customization". The ISA also comes with a complete software stack, including compilers, operating systems, and debuggers, which are open source and thus also modifiable. Since the ISA does not dictate micro-architectural features, the software and hardware can be maintained by two complete different entities and yet be compatible. This allows for great re-usability and sharing of code-base across the community.

The SHAKTI processors and the front-end (RTL) designs are developed using the open-source High Level Synthesis (HLS) language:Bluespec System Verilog (BSV). BSV equips the user to develop extremely modular and parameterized modules with defined interfaces. This feature facilitates the user to focus and modify only the designs of interest without having to break the rest of the flow. Today there exists a free bsv-parser which the community can use to develop open/proprietary compilers for BSV.

Academia now has access to a real world working prototypes of processors which they can play with for free. This enables them to depart from the world of "simulators" and "emulation models" and try out their research and ideas in practice. They are no longer tied down by strict NDAs on publishing and can thereby participate more actively in shaping the future of the processor industry.

A typical process of acquiring ISA or architectural licenses from companies like ARM can vary anywhere between 6-12 months. This increases the time-to market for the consumers. SHAKTI, can immensely reduce this time by avoiding such formalities and providing a powerful modular framework allowing small tech start-ups to only modify components of interest rather than building a solution from scratch.

With minds from all over the community pouring in ideas and solutions, SHAKTI has the potential to become a state-of-the-art offering quickly

An open-source ecosystem such as SHAKTI promotes a mix-and-match environment where users can plug-in different open-source or proprietary IPs and innovate on new ideas and projects.

Being completely open-source, it is close-to-impossible for external entities to add back-doors and black-boxes. This is of particular interest to strategic sectors of a countries like India, which today depend on black-box solutions provided by industries which are headquartered in foreign countries.

SHAKTI can also enable the software community drastically. Fearing strong patent lawsuits, software developers who own licensed HW IPs for development are forced to release only binaries rather source code and also provide minimal documentation. This leaves the software Libre community in dangling state, spending months and even years \emph{"picking up pieces"}.

In addition to the above arguments, a combination of the open-source processor ecosystems such as SHAKTI and a fabrication entity like TSMC, which is offering upto 100 small tests chips on its latest technology node for only 30,000\$, can virtually enable any project with real-chips for their final validation at drastically low costs and time.



Architectural Features




Overview

  • In-order 3 stage 32/64 bit microcontroller supporting a subset of RISC-V ISA.
  • Low area and power consumption - operational frequency of < 200MHz on silicon.
  • Optimized variants for FPGA based soft-cores.
  • AXI4/AXI4-Lite/TileLink peripherals supported
  • Positioned against ARM’s M class cores

Basic Specifications

  • Open source IP supporting RV32/64 - IMAC.
  • Optional Direct-mapped caches for instruction and data.
  • Supports Machine and User-modes only.
  • User-mode trap handling is optional.
  • Push button flow to generate variants and subsets of ISA.
  • Optimized sequential Multiplier and Divider for ASICs and FPGAs
  • OpenOCD based SoC debug support through JTAG.
  • OS Ports: FreeRTOS, Zephyr

Source code

https://gitlab.com/shaktiproject/cores/e-class


Saturday, 29 September 2018

1st Selenium

package snjb1;

import java.util.HashMap;
import java.util.concurrent.TimeUnit;

import org.openqa.selenium.WebDriver;
import org.openqa.selenium.chrome.ChromeDriver;
import org.openqa.selenium.chrome.ChromeOptions;

import com.gargoylesoftware.htmlunit.javascript.host.Map;

public class Mac {

WebDriver driver;

public Mac()
{

//Map<String, Object> prefs = new HashMap<String, Object>();
     
        // Set the notification setting it will override the default setting
//prefs.put("profile.default_content_setting_values.notifications", 2);

        // Create object of ChromeOption class
ChromeOptions options = new ChromeOptions();

        // Set the experimental option
//options.setExperimentalOption("prefs", prefs);

System.setProperty("webdriver.chrome.driver", "D:\\java toolssss\\chromedriver.exe");
driver = new ChromeDriver();
//driver=new FirefoxDriver();
driver.manage().timeouts().implicitlyWait(120, TimeUnit.SECONDS);

//"https://www.shiksha.com/tags/symbiosis-institute-of-telecom-management-sitm-tdp-198268"


driver.get("http://facebook.com/");
// driver.manage().window().maximize();



}

public static void main(String[] args) {
// TODO Auto-generated method stub
  new Mac();
}

}






Crome Driver :
https://drive.google.com/open?id=1yM9JjspZPKbzsehTjxs06hX84I6kTU9X

Wednesday, 27 June 2018

flash

One way to do this is add an onclick method to your form to initiate the javascript containing the alert.

Mouse Over To select radio button or same like

Hi fried's normally what happens there some time we create forms for cust. cust required fast fill form fast so only mouse over to select an option. Code using JavaScript ------------------------------------------


 select MAC Plus tech 


code >>


<span id="radio-buttons">
    <input checked="check" class="tryout" name="example" type="radio" />
  
select   <input class="tryout" name="example" type="radio" />
  MAC  <input class="tryout" name="example" type="radio" />Plus
    <input class="tryout" name="example" type="radio" />tech
</span>
<script>
document.getElementById("radio-buttons").onmouseover = function (e) {
    e.target.checked = true;
}
</script>



  - Kishor M Sonawane

Thursday, 21 June 2018

Pen-drive or Any Drive Virus Remove Using MAC+ tech tool


Pen-drive or Any  Drive Virus Remove Using MAC+ tech tool 


 MAC+tech Create Small Product For Remove  Pen drive Viruses And Worms as well as Drive Viruses / Solve Auto Hidden Files Problem  Follow Following steps ...

DOWNLOAD -------------------------------------------------------------------------
Step 1 >> Download the file Click Here....   https://drive.google.com/open?id=1lf9nR4nTo-Qh73N8J9Qbkk8_GcY7CZsV
               (here open Drive and Download Option Available)

Step 2>>  Downloaded file (.zip ) Extract and Save On your Computer 
-----------------------------------------------------------------------
   how to use ??

  just copy MAC+tech.exe  (tool) Paste on Affected Drive And Run it (Double Click).

*Note: Tool Copy On Affected Drive then Run tool... 

*Software is Command line Based GUI Based Software Come Within some Day's......


 thank You For Using MAC+tech Services 

-Kishor M Sonawane


Wednesday, 20 June 2018

Arduino Remote Light

Program Def: Create program glow light using wireless media .
 Reuredment:
 two CKT two Arduino
                      one connected LED
                      another Connected Button
                     Each Arduino Connecrted Bluetooth HC-05 SETUP

One as Master Another As Slave :  

Load This Program For Config Bluetooth 
// note : pin cong: 
     BT     Arduino
    Tx         10
   RX         11

   VCC        5v
   Gnd        Gnd

  EN          3.3v or pin 9 (for program)

#include <SoftwareSerial.h>

SoftwareSerial BTSerial(10, 11); // RX | TX

void setup()
{
  pinMode(9, OUTPUT);  // this pin will pull the HC-05 pin 34 (key pin) HIGH to switch module to AT mode
  digitalWrite(9, HIGH);
  Serial.begin(9600);
  Serial.println("Enter AT commands:");
  BTSerial.begin(38400);  // HC-05 default speed in AT command more
}

void loop()
{
 // Serial.println("in LOop");
  // Keep reading from HC-05 and send to Arduino Serial Monitor
  if (BTSerial.available())
  {
    Serial.write(BTSerial.read());
   // Serial.println(BTSerial.read());
     // Serial.println("in avl...");
      //delay(1000);
  }
  // Keep reading from Arduino Serial Monitor and send to HC-05
  if (Serial.available())
    BTSerial.write(Serial.read());
      //Serial.println("Write..");
      //delay(1000);
}





Salve :
Write TTL Command
 AT+RMAAD (clear any paired devices)
AT+ROLE=0 (set as slave)
 AT+ADDR (Return H/w address remember it)
AT+UART=38400,0,0 (To fix the baud rate at 38400)


Master :
AT+RMAAD
AT+ROLE=1 (set it as master)
AT+CMODE=0 (To connect the module to the specified Bluetooth address and this Bluetooth address can be specified by the binding command)
 AT+BIND=xxxx,xx,xxxxxx ( XXXXXXXXXXXX Contain slave address)
 AT+UART=38400,0,0 (To fix the baud rate at 38400)

CKT DIG:


 ------------------------------------------------------------------------
// note : pin cong  (Both Arduinos): 
     BT     Arduino
    Tx         0
   RX         1

   VCC        5v
   Gnd        Gnd

  

 

Programs

Android 1 (Button Site)
 ----------------------------------------------------- 
// Button Coding ...

//this is master

//#include <SoftwareSerial.h>

//SoftwareSerial BTSerial(10, 11);


const int buttonPin = 2;
int buttonState = 1;

void setup() 
{
  Serial.begin(9600);
  pinMode(buttonPin, INPUT);
  digitalWrite(buttonPin, HIGH);
}

void loop()
{
 // send Signal to Second Arduino.... for glow LED
 buttonState = digitalRead(buttonPin);
 if (buttonState == LOW)
 {
  Serial.write('1');
 }
 else
 {
  Serial.write('0');
 }
 

}

--------------------------------------------------------

LED Site (Arduino 2)

//LED CKT

#include <SoftwareSerial.h>

//SoftwareSerial BTSerial(2, 3);

int data = 0;
const int led = 8;
int flag=0;

void setup() 
{
  //BTSerial.begin(38400);
   Serial.begin(9600);
  pinMode(led, OUTPUT);
  digitalWrite(led, LOW);
  
}
void loop() 
{
 if(Serial.available() > 0)
 { 

    data = Serial.read(); // incoming data i.e 1
   if(data==1 && flag==0)
   {
    flag=1;
   }
   else if(data==1 && flag==1)
   {
    flag=0;
   }
    
 }

 
  if (flag == '1' ) 
 {
  digitalWrite(led, HIGH); // LED ON
  data = 0;
 }
 else if (flag == '0') 
 {
  digitalWrite(led, LOW); // LED ON
  data = 0;
 }

}







Tuesday, 12 June 2018

Python P2 Python Command line + exit Command


Python  P2   Python Command line + exit Command

Exit Syntax 
   exit Use to Stop Python Program

 exit()
 means When You use Command Line Python At that time use exit() from Command.

How to Start Command line Python :

  1. Open terminal / CMD
  2. type python
  3.  your Command Line Python Open :)

Now type any python on it

look like ......

$python
python>> [Your Command Here]


example :

$ python  
python>> print("hello MAC+tech")
hello MAC+tech
 python>>



Intro Python P1 + Run Python 1st Program

Python?

It was created in 1991 by Guido van Rossum .

use :

  1. web development (server-side)
  2. Data Mining And Analytics.  
  3. graphics 
  4. System S/w
  5. software development
  6. mathematics
  7. system scripting.
  8. AI Application
  9. Embedded Development  
 Some features :
  1. Python works on different platforms (Windows, Mac, Linux, Raspberry Pi, etc).
  2. Python has a simple syntax similar to the English language.
  3. Python has syntax that allows developers to write programs with fewer lines than some other programming languages.
  4. Python runs on an interpreter system, meaning that code can be executed as soon as it is written. This means that prototyping can be very quick.
  5. Python can be treated in a procedural way, an object-orientated way or a functional way.
 Let's Start...... :)  

Run Program

$python File.py

Here Command Python , file name is the any File Name..

Run  Steps :
  open Any Editor And Type  :
                                    
                                    print("Hello, MAC+tech Word!")

Save any name ex mypro1.py

Type python  mypro1.py

O/U :
 Hello, MAC+tech Word!
    





create and activate a Python virtual environment on macOS and Windows

create and activate a Python virtual environment on macOS and Windows: Prerequisites: Python 3: Ensure you have Python 3 installed. You ca...