Thursday, September 29, 2022

Import CSV File Into MySQL Table

Here is the article. 

This tutorial shows you how to use the LOAD DATA INFILE statement to import CSV file into MySQL table.

The  LOAD DATA INFILE statement allows you to read data from a text file and import the file’s data into a database table very fast.

Before importing the file, you need to prepare the following:

  • A database table to which the data from the file will be imported.
  • A CSV file with data that matches with the number of columns of the table and the type of data in each column.
  • The account, which connects to the MySQL database server, has FILE and INSERT privileges.

Suppose we have a table named discounts with the following structure:

We use CREATE TABLE statement to create the discounts table as follows:

CREATE TABLE discounts ( id INT NOT NULL AUTO_INCREMENT, title VARCHAR(255) NOT NULL, expired_date DATE NOT NULL, amount DECIMAL(10 , 2 ) NULL, PRIMARY KEY (id) );

The field of the file is terminated by a comma indicated by  FIELD TERMINATED BY ',' and enclosed by double quotation marks specified by ENCLOSED BY '" ‘.

Each line of the CSV file is terminated by a newline character indicated by LINES TERMINATED BY '\n' .

Because the file has the first line that contains the column headings, which should not be imported into the table, therefore we ignore it by specifying  IGNORE 1 ROWS option.

Now, we can check the discounts table to see whether the data is imported.

Transforming data while importing

Sometimes the format of the data does not match the target columns in the table. In simple cases, you can transform it by using the SET clause in the  LOAD DATA INFILE statement.

Suppose the expired date column in the  discount_2.csv file is in  mm/dd/yyyy format.

When importing data into the discounts table, we have to transform it into MySQL date format by using str_to_date() function as follows:


Linux kernel Module and driver Programming for x86

 


Over 15 years of total experience in software development, focusing on C/C++/Linux/Symbian C++, different flavors of UNIX (SCO, HP-UX, SunOS, AIX and RedHat Linux). Knowledge of LINUX Internals/ System programming/Inter Process Communication  and Shell Scripting.

Worked on Symbian OS features like TLS/descriptors/ threads/ semaphore/IPC/ Active Objects/ Dynamics Arrays/Cleanup Stack/Client –server/Binary Compatibility.
Experience in all stages of development of large project using C/C++/ Clearcase/Subversion/GIT  on Linux and LynxOS platform.
Worked on Linux Device driver and System programming.
Worked on HP bootloader, Board Support Package and grub.
Knowledge of Virtual File system, ext3, I/O Scheduler.
Good knowledge of Socket, TCP/IP and routing protocol like BGP, RIP.
Good knowledge of porting and cross-compilation. Ported FreeBSD-libc to Symbian Platform.
Worked on Linux Device Driver(Parallel port Control panel, USB mass storage driver), System programming, ELF32,DWARF, binary optimization.    
Worked on GNU Tools chain like Cross-Compiler, Makefile, Auto Conf.
Worked on drivers for SPI, UART, I2C, GPIO Bus as part of board bringup.
Good Knowledge of Multithreading, Semaphore, Message queue, Shared memory and other IPC mechanism.
Bring up of Board and enhanced product for power star energy consumption by implementing various sleeping mode in Devices like scanner, Fax, Hard drive etc.
Knowledge of GNU tool chain and cross compilation
Participated in Code reviews, Risk management, design document as well as implementation phase.
Good knowledge of Object oriented Analysis and design.
Good Knowledge of Xen/ Qemu and virtualization.
Worked on Malware Analysis and disassembly
Very good and through knowledge of Hypervisor like Xen, KVM.

Linux system

 Here is the link.

Systems

More specifically, linux troubleshooting and debugging. Understanding things like memory, io, cpu, shell, memory etc. would be pretty helpful. Knowing how to actually write a unix shell would also be a good idea. What tools might you use to debug something? On another note, this interview will likely push your boundaries of what you know (and how to implement it).

Design/Architecture 

Interview is all about taking an ambiguous question of how you might build a system and letting you guide the way. Your interviewer will add in constraints when necessary and the idea is to get a simple, workable solution on the board. Things like load and monitoring are things you might consider. What you consider is just as important as to what you don’t. So ask clarifying questions and gather requirements when appropriate.

Wednesday, September 28, 2022

Gutenberg blocks and themes

 Gutenberg blocks and themes

Gone are the days of adding content to templates using HTML and PHP. Now, making updates to your site templates is as easy as the block editor you know and love for pages and posts.

The Full-Site Editing features rolling out in WordPress 5.8 are changing the game for enterprise WordPress content creators and developers alike. By taking Gutenberg blocks beyond the post editor, these new features allow content creators unprecedented agility and control over the entire site experience. 

Learn how to make Full-Site Editing work for your teams.

Join our on-demand webinar with WordPress VIP content and design leaders as well as our agency partner Athletics, who developed the Full-Site Editing implementation on our site. 

Learn how content creators can:

  • Make site-wide changes on their own without waiting for a dev request to be completed
  • Get content faster to market in an ever-changing world
  • Benefit from lessons WordPress VIP learned implementing Full-Site Editing


WordPress developer | BCIT

 BCIT’s Information Technology Services ( ITS ) Department is currently seeking a regular full-time Back-end Web Developer (Intermediate Systems Analyst). As part of the Solution Delivery Team, you’ll have the opportunity to make an immediate impact by contributing to an inclusive, knowledgeable, and highly motivated team, using Agile practices to frequently deliver web solutions on our enterprise WordPress platform. You have a strong understanding of backend website development and where the lines are between backend and frontend responsibilities, and experience collaborating with design, strategy, and customer support teams to brainstorm and design solutions for client projects, products, and other software needs.

As a Back-end Web Developer, you have the skills to develop and implement large, responsive, website projects in WordPress. You’ll consult on development during all phases of projects, and work with other developers to maintain and extend the WordPress platform. You are customer focused, enjoy creating features that improve the lives of your users, and stay on the lookout for tools that improve development processes. You are detail-oriented, well-versed in software development best practices, and enjoy collaborating with team members.

Duties & Responsibilities
Duties & Responsibilities:
  • Participate in architectural and design discussions and collaborate with other developers, systems analysts, and the product team to define clear deliverables and establish project milestones.
  • Take ownership of features from end to end as they go through development, implementation, testing and maintenance phases.
  • Code and implement custom WordPress sites, features, and enhancements from design requirements, or plugins.
  • Develop, debug, and performance tune applications, themes, and contributed modules.
  • Identify opportunities to improve/enhance existing code or architecture for maximum speed and scalability.
  • Create and update reusable code libraries to streamline the WordPress development cycle and facilitate site documentation and maintenance.
  • Participate in code reviews and enforce coding standards.

Qualifications
Required Qualifications:
  • Minimum two-year diploma in Computer Systems/Web Development or bachelor’s degree in communications, science, or business; and minimum six (4) years of current, practical experience, of which at least four (2) demonstrate web application development expertise.
  • An equivalent combination of education, training and experience may be considered.
  • Effective oral and written communication skills.
  • Must have demonstrated specific current IT knowledge.
  • Proven commitment to providing and maintaining the highest level of customer service.
  • Proven analytical and problem-solving skills.
  • Strong organizational skills and the ability to meet changing priorities and multi-task while meeting strict deadlines.
  • Must be a team player and work well with cross-departmental teams.
  • Ability to learn quickly and apply new knowledge and techniques.
  • Commitment to regular ongoing professional development (including specific IT skills, professional associations, and current industry trends).
  • High level of professionalism and ethics.


Qualification Specifics:
  • Good knowledge of WordPress, PHP, JavaScript, and MySQL.
  • Experience implementing complex, scaled WordPress sites, including theming and custom module/plugin development, and administration/configuration of CMS core, plugins, and modules.
  • Experience working with containerized environments such as Docker, Kubernetes or equivalent.
  • Familiarity with agile methodologies, requirements gathering, sprint processes and ceremonies.
  • Experience with Atlassian product suite (Jira, Bitbucket, Confluence) or similar workflow management systems.
  • Understanding of backend performance best practices.
  • Ability to write quality, well-organized code and employ debugging and testing skills, including the application of coding standards.
  • Experience developing and maintaining REST APIs.
  • Understanding of, and adherence to, both code and process documentation.
  • Ability to troubleshoot problems and apply creative problem-solving skills.
Experience in the following would be an asset:
  • Building websites using Gutenberg blocks and themes
  • Unit testing
  • Continuous integration/continuous deployment
  • General understanding of DNS, edge networks, and HTTP protocol
  • Linux command line
  • Redis
  • Jenkins
Attributes:
  • Strong attention to detail, customer focused, ability to learn and adapt quickly and with ease.
  • A team player who enjoys working with people.
  • Well-organized with a methodical approach to work.
  • Keen interest in web technologies and tools.
  • Good sense of humour and an ability to prevent absurdity from affecting a commitment to results.
  • Energetic, motivated self-starter with the ability to learn quickly.
  • Fierce desire to meet deadlines.

Additional Information
BENEFITS OF WORKING AT BCIT:
  • Being a part of BC’s Top 100 Employers, and a member of the CCDI.
  • A generous Total Compensation package which includes extended health and dental benefits and a superb pension plan.
  • Flexible hybrid work arrangements available
  • A 35 hour work week with twenty-five days of paid vacation prorated per year
  • Access to Professional Development Funds and opportunities for career development.
  • Increase your knowledge with Tuition waivers for BCIT courses.
  • Enjoy discounted access to our fitness facilities (including classes like Yoga and Zumba).
  • Additional Wellness and Employee Assistance programs.

BCIT instructor

 Conan Galloway


Instructor / Content Developer
BCIT · Permanent Full-timeApr 2012 - Present · 10 yrs 6 mosVancouver, Canada Area

Linkedin profile: WordPress experience

 

Michael Chodolak