Like Us Like Us Facebook Subscribe Subscribe us YouTube Whatsapp Share us Whatsapp Query Send your queries

Advanced custom field how to populate select field

Advanced custom field how to populate select field

In this tutorial we will learn how to dynamically populate Advanced custom field select field in WordPress. I was trying a generate a dynamic select list so when I will create a update it from anywhere else it will automatically display in Advanced Custom Field select field.

Advanced custom field how to populate select field

Advanced custom field how to populate select field PHP Code

First we need PHP array with like, you can use you own custom function, I have used categoryList() in this tutorial.

{
"Programming"=>436,
"Finance"=>437
}

Suppose $category = categoryList(); contains data in format like shown above

function catListACF( $field ) {
//Change this to whatever data you are using.
$category = categoryList();
$field['choices'] = array();
foreach( $category as $key => $item ){
$field['choices'][$key] = $item;
}

return $field;
}
add_filter('acf/load_field/name=cateogry', 'catListACF');

Remember field name slug should be changed in add_filter(‘acf/load_field/name=cateogry’, ‘catListACF’);, here used category.

Use this php  code using in your functions.php file.

If you have and query or suggestion then please comment, I will reply to fix your problem, if you like our content then you can subscribe to our Youtube channel. If you want to hire me then reach us at our Fiverr.

Months name in Hindi हिंदी के 12 महीने के नाम

Months name in Hindi हिंदी के 12 महीने के नाम

Months name in Hindi हिंदी के 12 महीने के नाम, In this post we will learn months name in Hindi and their duration.

Months name in Hindi

Months name in Hindi

First Month-> चैत्र (Chaitra):
Duration: From middle of March to middle of April. In Chaitra ( चैत्र) month we also celebrate Hindi New Year.

Second Month-> वैशाख (Bisakh):
Duration: From middle of April to middle of May.

Third Month-> जेठ (Jyeth):
Duration: From middle of May to middle of June.

Fourth Month-> अषाढ़ (Jyeth):
Duration: From middle of June to middle of July.

Fifth Month-> सावन (Sawan):
Duration: From middle of July to middle of August.
Also know as Rainy Season.

Sixth Month-> भादो / भाद्रपद (Bhado / Bhadrapad):
Duration: From middle of August to middle of September.

Seventh Month-> अश्विन (Ashwin):
Duration: From middle of September to middle of October.

Eight Month-> कार्तिक (Kartick):
Duration: From middle of October to middle of November.

Ninth Month-> मार्गशीर्ष (Margsirsh):
Duration: From middle of November to middle of December.

Tenth Month-> पौष (Posh):
Duration: From middle of December to middle of January.

Eleventh Month-> माघ (Magh):
Duration: From middle of January to middle of Febuary.

Twelth Month-> फाल्गुन (Falgun):
Duration: From middle of Febuary to middle of March.

 

If you have and query or suggestion then please comment, I will reply to fix your problem, if you like our content then you can subscribe to our Youtube channel. If you want to hire me then reach us at our Fiverr.

Class 12 Computer science with python syllabus 2024-2025

Class 12 Computer science with python syllabus 2024-2025

The CBSE Class 12 Computer Science with Python syllabus typically covers a wide range of topics aimed at providing students with a solid foundation in programming and computer science concepts using Python. Here’s a general outline of what is usually included in the syllabus:

Class 12 Computer science with python syllabus

Theory

Unit 1 – Programming and computational thinking

  • Revision of Python basics of Class 11
  • Functions
  • Introduction to files, text file, binary file, CSV files
  • File Handling
  • Using Python libraries
  • Recursion
  • Idea of efficiency
  • Data Visualization using Pyplot
  • Data structures

Unit 2 – Computer Networks

  • Data communication terminologies
  • Evolution of networking:
  • Structure of a network
  • Transmission media
  • Network devices
  • Network Stack
  • IP addresses
  • TCP
  • Protocols
  • Basic Network tools
  • Application layer

Unit 3 – Data Base Management

  • Writing a minimal Django based web application
  • Interface Python with SQL database
  • SQL commands

Class 12 Computer science with python Practical syllabus

  1. Python Programming
    • Writing and executing Python scripts
    • Implementing Object-Oriented concepts in Python
    • Using Python libraries (Pandas, Matplotlib, NumPy)
    • Handling files and exceptions in Python
  2. SQL Commands
    • Writing SQL queries (Create Table, Insert, Select, Update, Delete, Join)
  3. Project Work
    • Developing a project using Python programming and SQL commands

Guidelines

  • Duration: One academic session (usually the entire academic year)
  • Internal Assessment: Practical examination (30 marks) and project work (10 marks)
  • External Examination: Theory paper (70 marks)

This outline should give you a comprehensive overview of what to expect from the CBSE Class XII Computer Science with Python syllabus. Each school may slightly vary in how they teach and assess these topics, but these are the core areas that are covered. If you have specific questions about any of these topics or need further clarification, feel free to ask!

If you have and query or suggestion then please comment, I will reply to fix your problem, if you like our content then you can subscribe to our Youtube channel. If you want to hire me then reach us at our Fiverr.

JavaScript Salary Calculator: Estimate Your Salary

JavaScript Salary Calculator: Estimate Your Salary

JavaScript Salary Calculator: Estimate Your Salary, In this post we are going make simple application using HTML5, CSS and JavaScript to generate a estimate salary. This JavaScript tutorial is not complex so beginners will find it easy to learn.

Salary Calculator

Folder Structure of project Salary Calculator :

Folder name: salary

Salary folder contain main file names salary.html, sub folder name js and css. Sub folder js contain JavaScript file salary.js, while css folder contain css file file name style.css.

Main File salary.html code for Salary Calculator:

<!doctype html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Salary Calculation</title>
<link rel="stylesheet" href="css/style.css">
<script src="js/salary.js"></script>
</head>
<body>
<div class="c">
<h1>Salary Calculator</h1>
<p id="head">
Basic Pay
<input type="text" id="basic"/>
<br/>
<br/>

No. of Days
<input type="text" id="days"/>
<br/><br/>

<input type="submit" onclick="salary()" value="Submit" class="btn"/>
</p>
<div style="text-align:center;">
<div id="nets"></div>
Deduction<br/>
<span id="emplC"></span><br/>
<span id="emplP"></span><br/>
Addition<br/>
<span id="hr"></span><br/>
<span id="da"></span><br/>
<div id="salary"></div>
<div id="emrC"></div>
<div id="emrP"></div>
<div id="gsalary"></div>
</div>
</div>
</body>
</html>

Javascript file salary.js code for Salary Calculator:

// salary calculation script
function salary(){
   let basic=document.getElementById("basic").value;
   let days=document.getElementById("days").value;
   let od=0;
   basic=parseInt(basic);
   days=parseInt(days);
   od=parseFloat(basic/30); // for one month
   let netSalary= parseFloat(od*days);
   //emplC
   let emplC= parseFloat(netSalary * 0.0075);
   let emplP= parseFloat(netSalary * 0.0375);
   let hr= parseInt(3000);
   let da= parseFloat(netSalary * 0.10);
   let salary=0;
   salary=parseFloat(netSalary+da+hr-emplC-emplP);
   let emrC=parseFloat(netSalary*.0325);
   let emrP=parseFloat(netSalary*.12);
   let gsalary=parseFloat(salary+emrC+emrP);
   //console.log(salary);
   document.getElementById("nets").innerHTML="Basic: "+netSalary.toFixed(2);
   document.getElementById("emplC").innerHTML="ESI: "+emplC.toFixed(2);
   document.getElementById("emplP").innerHTML="PF: "+emplP.toFixed(2);
   document.getElementById("hr").innerHTML="HR: "+hr.toFixed(2);
   document.getElementById("da").innerHTML="DA: "+da.toFixed(2);
   document.getElementById("salary").innerHTML="Net Salary: "+salary.toFixed(2);
   document.getElementById("emrC").innerHTML="ESI Emplyor: "+emrC.toFixed(2);
   document.getElementById("emrP").innerHTML="PF Emplyor: "+emrP.toFixed(2);
   document.getElementById("gsalary").innerHTML="Gross Salary: "+gsalary.toFixed(2);
}

style.css Code for Salary Calculator:

body{
    background-color: #121c0e;
}
h1{
    color:#00ffe6;
  text-align:center;

}
#head{
text-align:center;
}
.note{
 text-align:center;
 font-size:18px;
}
.c{
   background-color: #121c0e;
  padding: 32px;
  margin-top: -10px;
  margin-right: -5px;
  margin-left: -5px;
  color:white;
}
#result{
    text-align:center;
    color:#afff00;
    font-size:25px;
}
.btn{
  padding: 10px;
  width: 300px;
  font-size: 1.2em;
  background:#207684;
  border: 0px;
  border-radius: 4px;
  color: #fff;
}

If you have any query or suggestion then let me know through your valuable comment, I will try to answer your comment as soons as possible.
If you have and query or suggestion then please comment, I will reply to fix your problem, if you like our content then you can subscribe to our Youtube channel. If you want to hire me then reach us at our Fiverr.

9 Things to Do After Installing Kubuntu 24.04 Command Line

9 Things to Do After Installing Kubuntu 24.04 Command Line

9 things to do after installing Kubuntu 24.04 to make life easier. Kubuntu shipped with KDE Plasma desktop 5.27.11 by default and as we know Plasma Desktop known for customization but for this we need to do some things command line  given below

Kubuntu 24.0

1. Update Kubuntu 24.04

Ensure you have the latest software and security patches by running Linux  commands given below in konsole / Terminal

sudo apt update
sudo apt dist-upgrade
or
sudo apt update && sudo apt upgrade -y

2. Install Restricted Codes in Kubuntu 24.04

Install codecs for playing popular media formats like MP3 and DVDs

sudo apt install ubuntu-restricted-extras

3. Install more fonts in Kubuntu 24.04

sudo apt install fonts-open-sans fonts-roboto fonts-oxygen fonts-lato

4. Install VLC

sudo apt install vlc

5. Install Video Editor

sudo apt install kdenlive
sudo apt install openshot-qt

6. Install Graphic manipulation tools

sudo apt install inkscape
sudo apt install gimp
sudo apt install krita

7. Webcam Tool

sudo apt install kamoso
sudo apt install cheese

8. Install Screen Recorder:

Install OBS Studio (also Wayland)

sudo add-apt-repository ppa:obsproject/obs-studio
sudo apt update
sudo apt install ffmpeg obs-studio

9. Install Visual studio code

sudo apt install code

If anything left then please let me know through comments.

ExtraTip : If someone want to install xampp then please follow this tutorial “How to install Xampp on Linux”.

 

If you have and query or suggestion then please comment, I will reply to fix your problem, if you like our content then you can subscribe to our Youtube channel. If you want to hire me then reach us at our Fiverr.

Create a simple MCQ quiz using pure Javascript

Create a simple MCQ quiz using pure Javascript

In this tutorial we are going to create a simple MCQ quiz using pure Javascript. We will use Javascript function checkAns() to all calculation. Complete source code given below to create  create mcq quiz programmatically so just copy and paste and create html file and open in a browser. Remember we did not use CSS (stylesheet) to enhance the look of MCQ quiz so you can customize as per your need.

Simple MCQ quiz using pure Javascript Code


<!doctype html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Quiz Question</title>
</head>
<body>
<p>
<h1>MCQ</h1>
<h2>Quiz No. 1 :</h2>
India first world cup win...
</p>
<p>
<input type="radio" name="player" value="a" onclick="checkAns()">
<label>a. 1975</label><br>
<input type="radio" name="player" value="b" onclick="checkAns()">
<label>b. 1979</label><br>
<input type="radio" name="player" value="c" onclick="checkAns()">
<label>c. 1983</label><br>
<input type="radio" name="player" value="d" onclick="checkAns()">
<label>d. 1987</label><br><br>
<div id="res"></div>
</p>
<script>
function checkAns(){
let cAns="c";
let ans = document.querySelector('input[name="player"]:checked').value;
if(cAns==ans){
document.getElementById("res").innerHTML='<span style="color:green;font-Weight:bold;">You are right</span>';
}else{
document.getElementById("res").innerHTML='<span style="color:red;font-Weight:bold;">You are wrong</span>';
}
}
</script>
</body>
</html>

Simple MCQ quiz using pure Javascript Code Output

Simple MCQ quiz using pure Javascript Code Output

If you have and query or suggestion then please comment, I will reply to fix your problem, if you like our content then you can subscribe to our Youtube channel. If you want to hire me then reach us at our Fiverr.

Battle of Word Processor MS Word and its best 4 free alternative

Battle of Word Processor MS Word and its best 4 free alternative

This post is all about MS Word and its best 4 free alternative.  A battle of word processors is a comparison of the features, capabilities, and performance of different word processing software or devices.

Word Processor is a software application / program used to create, edit, format, and print text documents.  Example: Microsoft Word, Libre Office Writer, Google Docs …. 

Word Processor

Basic features Word Processor: 

  • Creating and saving documents. 
  • Text editing: Typing, selecting, copying, cutting, pasting, and deleting text. 
  • Formatting: Changing font styles, sizes, colors, alignment, and spacing. 
  • Organizing text: Using paragraphs, headings, lists, and bullets. 
  • Can use images  
  • Proof reading and editing: Checking spelling and grammar, finding synonyms, and making revisions. 
  • Creating tables, header and footer 
  • Print Preview, Printing on various Paper size like A4, letter, envelope …

Common Uses: 

  • Writing letters, reports, essays, and other documents. 
  • Creating flyers, brochures, newsletters, and presentations. 
  • Taking notes, writing summaries, and brainstorming ideas. 

Comparing Popular Word Processors 

Feature MS WORD LIBRE WRITER WPS WRITER GOOGLE DOCS ONLY OFFICE DOCS 
Platform Windows, Mac, Web Windows, Linux, Mac Windows, Linux, Mac Web Windows, Linux, Mac 
Android app Yes Collabara Office
Yes Yes Yes
iOS app No Collabara OfficeYes Yes Yes
Offline Yes Yes Yes No Yes 
File formats DOCX, ODT, PDF, RTF, etc. DOCX, ODT, PDF, RTF, etc. DOCX, ODT, PDF, RTF, etc. DOCX, ODT, PDF, RTF, etc. DOCX, ODT, PDF, RTF, etc. 
Price Paid / Subscription Free Freemium Free Free 
Ease of use 5/5 4.5/5 3/5 4/5 4.5/5 

Note: MS Word 2007 or previous edition lacks PDF, ODT … support, and web version is limited in features. In WPS Office Writer Windows version people get tons of pop up to upgrade to premium version and it also a Chinese App so there are tons of privacy concern.

For me Libre Office Writer, OnlyOffice Docs and Google Docs is the best alternative depending situation, if you know something better or have any suggestion then please comment.

Video Tutorial

 

Windows 10 alternative Zorin OS 17 Core

Windows 10 alternative Zorin OS 17 Core

Zorin team recently released Zorin Os 17 a user friendly Linux distro can be the best alternative for dying Windows 10. Windows 10 is going to dye soon and for windows 11 we need minimum intel 8th generation CPU with tpm2 supported motherboard, so instead of buying new hardware we can try Linux distro that not only perform better than windows 11 but also provide enhanced stability and security.

In this situation  Zorin OS 17 core can be best alternative as “Zorin OS is a multi-functional operating system designed specifically for Windows users who want to have easy and smooth access to Linux. It is based on Ubuntu which is the most popular Linux operating system in the world.”

Windows 10 alternative Zorin OS 17 Core

Zorin OS 17 Core

Some key highlights of the Zorin OS 17 release include:

UI/UX Improvements
Better Performance
Updated Application Suite
New Desktop Layouts

  • Zorin Menu has been revamped for a faster search experience
  • Spatial Desktop
  • Spatial Window Switcher
  • 3D desktop cube
  • advanced window tiling
  • apps now open faster, loading times are reduced, and animations are more fluid.

Windows 10 alternative Zorin OS 17 Video review

Download Zorin OS 17

Please visit Zorin Official download page by click here

Remove the Win32 print screen dialogue after Windows 11 22HD Update

Remove the Win32 print screen dialogue after Windows 11 22HD Update

Remove the Win32 print screen dialogue after Windows 11 22HD Update, Can’t print anything after clicking Print using the system dialog… since last Windows 11 update as its not generating
any preview so on printing you get only blank page.

Win32 print screen dialogue

Its due a Windows 11 update bug. To fix I have to convert  to PDF then have to print using adobe acrobat reader… ha ha …

Its not a solution to fix this open command prompt and run the command given below

reg add "HKCU\Software\Microsoft\Print\UnifiedPrintDialog" /v "PreferLegacyPrintDialog" /d 1 /t REG_DWORD /f

Its works for me, one can try at own risk.

If you found something better to fix Windows 11 Win32 print screen dialogue bug then please let me know so I can update this post or if you any suggestion then please comment.

Lava Storm 5G Dimensity D6080, 8GB RAM, 33 Watt charging

Lava Storm 5G Dimensity D6080, 8GB RAM, 33 Watt charging

Lava launched its new budget smart phone called Lava Storm 5G at very attractive price ₹11,999, The Lava Storm 5G is also an entry-level budget 5G  powered by the MediaTek Dimensity D6080 processor and has 8GB of RAM and 128GB of storage UFS 2.2 storage with 33 Watt charging.

Lava Storm 5G

Lava Storm 5G Price:

MRP : ₹14,999
Selling Price : ₹11,999
Bank Discount : up to ₹1500

Where to Buy :
Amazon : Lava Strom 5g

Here are the key specifications of the Lava Storm 5G:

  • Display: 6.78-inch FHD+ IPS display with 120Hz refresh rate with punch hole
  • Processor: Mediatek Dimensity D6080
  • CPU: Octa-core (2×2.4 GHz Cortex-A76 & 6×2.0 GHz Cortex-A55)
  • GPU: Mali-G57 MC2
  • Architecture 64 bit, Fabrication 6 nm
  • Operating system: Android 13
  • RAM: 8GB
  • Storage: 128GB
  • Rear camera: 50 MP, (wide), PDAF 8 MP, (ultrawide)
  • Front camera: 16MP
  • Fingerprint Sensor : Yes
    Fingerprint Sensor Position Side
    Other Sensors Light sensor, Proximity sensor, Accelerometer, Gyroscope
  • NFC :  No
  • GPS, GLONASS
  • Battery: 5000mAh
  • 33 W wired Charging
  • USB Type-C : Yes

Lava Storm 5G Antutu Benchmark:

  • Antutu : 420,000

Conclusion : Lava Storm 5G is entry level budget 5G phone with high screen refresh rate (to play games smoothly) , comes with nearly stock android without any bloatware. A this price it can be a decent buy …., if you budget is tight you can also go with Lava Blaze 5G its ₹2000 cheaper.

If you have and query or suggestion then please comment, I will reply to fix your problem, if you like our content then you can subscribe to our Youtube channel. If you want to hire me then reach us at our Fiverr Account.

Do you have any Query / Suggestion