background preloader

CodeEval - Coding Challenges for the World's Best Developers

CodeEval - Coding Challenges for the World's Best Developers

python interview questions| Top & Most Asked | Intellipaat 1. Compare Java & Python 2. What is Python? Python is a high-level, interpreted, interactive and object-oriented scripting language. Python is designed to be highly readable. 3. PYTHONPATH − It has a role similar to PATH. 4. PYTHONSTARTUP − It contains the path of an initialization file containing Python source code. PYTHONCASEOK − It is used in Windows to instruct Python to find the first case-insensitive match in an import statement. PYTHONHOME − It is an alternative module search path. 5. Python has five standard data types − NumbersStringListTupleDictionary 6. Become Python Certified in 24 hrs. 7. Python memory is managed by Python private heap space. 8. Inheritance allows One class to gain all the members(say attributes and methods) of another class. They are different types of inheritance supported by Python: 9. 10. The built-in datatypes in Python is called dictionary. Let’s take an example: The following example contains some keys. print dict[Country] 11. 12. list.sort() print (list)

20 free, awesome social media monitoring tools Take the pulse of the social Web by hitting these rich targets Target audience: Nonprofits, cause organizations, brands, businesses, NGOs, educators, independent publishers, individuals. In this social media monitoring series: • Guide to monitoring social media conversations • 10 paid social media monitoring services for nonprofits • How to build & manage a monitoring dashboard Ready for a listening program? 10 social media monitoring tools: a downloadable flyer Free monitoring tools may fill your needs if you work for a small nonprofit or your business has no need for more sophisticated services (coming tomorrow). And a word of advice: Don’t begin with the tools. Yesterday we covered why monitoring is essential to your organization. Here is our Guide to Free Social Media Monitoring Tools. Monitor social campaigns Wildfire: How is your brand performing in social? Monitor social networks & blogs Social Mention: Widgets & social search Google Reader: Begin with a dashboard Twitter search options

Java Shop Politics Once, I was at a company that was considering (and eventually did so) moving its infrastructure over to Java, and there was a discussion about the danger of “Java Shop Politics”. It would seem strange to any non-programmer that a company’s choice of programming language would alter the political environment– these languages are just tools, right? Well, no. In this case, almost all of us knew exactly what was being talked about. Most software engineers have direct experience with Java Shop Politics, and it has a distinct and unpleasant flavor. When Unix and C were developed, they were designed by people who had already experienced firsthand the evils of Big Software, or monolithic systems comprising of hundreds of thousands of lines of code without attention paid to modularity, that had often swelled to the point where no one understood the whole system. I adhere to this small-program mentality. Many software managers, unfortunately, like Big Projects. Here’s what that looks like.

PythonBooks - Learn Python the easy way ! Become a Programmer, Motherfucker If you don't know how to code, then you can learn even if you think you can't. Thousands of people have learned programming from these fine books: Learn Python The Hard Way Learn Ruby The Hard Way Learn Code The Hard Way I'm also working on a whole series of programming education books at learncodethehardway.org. Learn C The Hard Way Learn SQL The Hard Way Graphics Programming Language Agnostic NerdDinner Walkthrough Assembly Language Bash Clojure Clojure Programming ColdFusion CFML In 100 Minutes Delphi / Pascal Django Djangobook.com Erlang Learn You Some Erlang For Great Good Flex Getting started with Adobe Flex (PDF) Forth Git Grails Getting Start with Grails Haskell Java JavaScript JavaScript (Node.js specific) Latex The Not So Short Introduction to LATEX (perfect for beginners) Linux Advanced Linux Programming Lisp Lua Programming In Lua (for v5 but still largely relevant)Lua Programming Gems (not entirely free, but has a lot of free chapters and accompanying code) Maven Mercurial Nemerle Nemerle NoSQL Oberon Objective-C

Define Python String Replace Method with Examples A simple yet powerful way to replace a string in Python is by using the Python string replace() method. In one of our earlier Python tutorials, we did discuss the concept of strings in Python at great length. Perhaps you should read this tutorial if you wish to learn Python strings at a micro level. In today’s post, we’ll not only explain the Python string replace() method but will understand it from the practical point of view. Since Python is one of the best scripting languages that most easily integrates with Selenium Webdriver for web-based automation, which requires a lot of string handling. There you may need to use string handling for building dynamic XPath, comparing dates and searching for substrings. Nowadays Python is also becoming popular for using in the data analytics applications. Define Python String Replace() Method with Examples. 1- How to replace a string in Python. 1- Use it with the <str> object.2- Use directly from the string module. Final Word. All the Best,

Supercharge Your Python Developers After a recent reorganization at work, I became the technical lead on a project to rewrite an existing PHP application that consisted of tens of thousands of lines of code. My team of five decided that Python and Flask would be a good implementation choice as it would allow us to see results quickly. The group ranged from complete Python novices to Python journeymen. They quickly became rockstars. How did this happen? How was it possible that, in less than a month from the project's inception, these python beginners were writing beautiful, idiomatic code? Enabling Your Developers Continuous integration with deep integration with Python testing and static analysis tools, along with simple scripts to aid developers has been the key to the amazing productivity of the team. Why did I put so much emphasis on the build process and developer tools? The Legacy System The legacy system was so difficult to develop against that even small changes took three times as long as they should have.

Памятка по virtualenv и изолированным проектам на Python Поскольку все новые скрипты я теперь пишу на Python, а опыт использования этого языка у меня довольно скромный, время от времени я узнаю занятные вещи, которые многим другим программистам и так давно известны. Так, например, недавно я научился пользоваться virtualenv и virtualenvwrapper. И на случай, если я вдруг подзабуду, как это делается, решил вот написать эту небольшую шпаргалку. Примечание: Даже если вы не особо интересуетесь программированием на Python, вы можете столкнуться с необходимостью использования сторонних проектов, написанных на этом языке. Примечание: В Python 3.3 появилась схожая по функционалу утилита pyenv, которая в Python 3.4 даже научилась устанавливать pip, тем самым став полноценной заменой virtualenv. Какую проблему решает virtualenv? Так вот, virtualenv — это инструмент, позволяющий создавать виртуальные окружения с пакетами. Установка virtualenv и virtualenvwrapper, предоставляющего чуть более удобный интерфейс к virtualenv: В ~/.bashrc дописываем:

О некоторых горячих клавишах в PyCharm Хочу поделиться с вами горячими клавишами, которыми пользуюсь или к которым пытаюсь привыкнуть в своей повседневной работе. В современных средах их количество может просто зашкаливать, но постепенное добавление новых сочетаний в копилку, способно значительно повысить вашу продуктивноть. Приведенные сочетания относятся к редактированию, навигации, рефакторингу и справедливы только для раскладки Default for XWin (Linux). Ctrl+Alt+Left/Ctrl+Alt+Right На одном из лидирующих позиций (в моем рейтинге) находится перемещение назад и вперед. Ctrl+Shift+Backspace Перемещение к месту последней правки. Ctrl+B Многим известное перемещение к реализации. Двойное нажатие Shift Поиск по индексу, который включает в себя имена файлов, имена классов, их атрубиты и т.д. Ctrl+Shit+[0-9] Именованые метки для быстрого перемещения по "горячим" местам. Выглядит это так Ctrl+W Выделение кода с учетом синтаксиса. Выглядит это вот так Ctrl+Y Удаление всей строки. Ctrl+D Продублировать текущую строку. Выглядит вот так

Обзор двух курсов специализации «Machine Learning» ресурса Coursera Хочу поделиться опытом обучения на ресурсе «Coursera», а именно — освоением курсов «Machine Learning Foundations: A Case Study Approach» и «Machine Learning: Regression». Эти курсы являются частью специализации «Machine Learning» (University of Washington). Машинное обучение не связано с моей текущей специальностью. Интерес к нему был вызван желанием ознакомиться с тем, чему сейчас уделено немало внимания. Было несколько причин, побудивших выбрать именно портал «Coursera» и именно этот курс. По словам авторов курса, причиной его создания была попытка донести задачи машинного обучения до широкой аудитории, т.е. для тех, у кого подготовка проходила в разных областях. Занятия делятся на теоретическую и практическую часть, и на тесты. Практическая часть представляет собой тест с заданиями. Теперь стоит рассказать о плане курсов. Неделя 1. Рисунок 1. Введение. Рисунок 2. Нагрузка, распределённая по неделям, адекватная.

PYCONRU-2016: видео всех докладов и презентации / Блог компании IT-People 3-4 июля недалеко от Москвы прошла четвертая международная конференция python-разработчиков PyCon Russia. Под катом — много видео, презентации и фотографии. А еще посмотрите отчетный ролик — в нем коротко о том, что было на PyCon-2016 плюс немного из истории конференции. Доклады Python core developer с 2001 года, автор и мэйнтейнер многих частей языка Raymond Hettinger (Санта-Клара, США) сделал доклад «Thinking about Concurrency» и провел воркшоп «Descriptors and Context Managers». Nathaniel Manista (Сан-Франциско, США), программист из Google, рассказал про лучшие практики поддержки больших софтверных проектов в докладе «Code Unto Others». Armin Ronacher (Вена, Австрия), автор фреймворка Flask, проекта Pallets, один из основателей Pocoo Team, автор известного шаблонизатора для языка Python Jinja2 и нескольких библиотек с открытым исходным кодом, погрузил во внутренности интерпретатора CPython докладом «How Python was Shaped by leaky Internals». Все хотят знать, как выполняется их код.

Python File Handling Tutorial and Examples for Beginners Python file handling is one of the essential topics for programmers and automation testers. As both of them needs to work with files either to write to a file or to read data from it. Let’s take an example, say, you are going to create a big project in Python which contains a no. of workflows. Here is a basic definition of file handling in Python, “File is a named location on the system storage which records data for later access. In Python, file processing takes place in the following order. Open a file which returns a file handle.Use the handle to perform read or write action.Close the file handle. Before you do a read or write operation to a file in Python, you need to open it first. In the next sections, we’ll touch upon all the Python file handling topics one by one. Python File Handling A-Z Guide for Beginners. First of all, let’s look at the summary of the Python file handling topics covered in this tutorial. 1- Python file handling: Open a file in Python. 1.4- Python file encoding.

Изучение PyQt5 Игра Тетрис – одна из самых популярных когда-либо созданных компьютерных игр. Оригинальная игра была разработана и запрограммирована русским программистом Алексеем Пажитновым в 1985 году. С тех пор, Тетрис доступен на почти каждой компьютерной платформе в множестве вариаций. Тетрисом называется игра-головоломка с падающими блоками. В этой игре, мы имеет семь разных фигур, называемых как: S-фигура, Z-фигура, T-фигура, L-фигура, фигура-линия, фигура «Зеркальная L», и фигура-квадрат. Рисунок: Тетромино PyQt5 – инструментарий, разработанный для создания приложений. Далее... 10 лучших инструментов, плагинов и библиотек для разработки на Python Каждый разработчик должен иметь набор отличных инструментов, которые помогут ему повысить производительность труда. Программисты на Livecoding.tv не являются исключением. Мы хотели бы поделится набором инструментов, плагинов и библиотек, которые Python программисты используют на Livecoding.tv в своей ежедневной работе. Что такое Python? Python является простым и, в то же время, мощным интерпретируемым объектно- ориентированным языком программирования. Он имеет изящный синтаксис и использует динамический контроль типов, что делает его идеальным языком для быстрого написания различных приложений, работающих на большинстве распространенных платформ. Ниже вы найдете десять лучших рекомендуемых инженерами Livecoding.tv инструментов, плагинов и библиотек, для повышения производительности разработки на Python: Beautiful Soup Pillow Pillow это “дружественный” форк Python Image Library (PIL). Gooey Peewee Peewee является простой и небольшой ORM. Scrapy Apache Libcloud Pygame Pathlib NumPy Sh

Related: