python string replace in python 3.x

Python String replace() Method There are two ways for replacing a String for python 2.x and also 3.x, use str.replace(). The replace() method in python 3 is used simply. Example for a string replace: or calling the method replace() of  <class ‘str’> in python 3.x: Notes from Python Docs: Method 1: use builtin str’s replace -> str.replace(strVariable, old, … Read more

how to split a string in python

How to split a string into a list of characters in Python?Answer is: You need Lists. Docs: http://docs.python.org/library/functions.html#list You take the string and pass it to list() or You can also do it in this very simple way without list(): If you want to process your String one character at a time. you have various … Read more

python yield keyword

What does the “yield” keyword do in python? First of all you must to understand what generators [ Generators – Python Wiki ] are. And before you understand what generators are, you must understands what iterables [Iterables – PLYMI] are. Iterables Definition: An iterable is any Python object capable of returning its members one at a time, … Read more

laravel collection to array with/without keys

Collections to array on laravel is a easy to solve problem. An Laravel array to collection convert on Controller is a few ways. You can use toArray() of eloquent as below.  laravel collection to array without keys The toArray method converts the collection into a plain PHP array. If the collection’s values are Eloquent models, the models will also … Read more

Run Laravel on Cloud Virtual Server(VPS) / Compare

Run your own Laravel Application Project on virtual cloud Servers with comparing the resources and prices. DigitalOcean.com (Monthly from 5 USD) Pro: One-Click Installation – Laravel as Application to automatically installation. Contra: Vultr.com (Monthly 5 USD) Contra: No Support for automatically Installation on Ubuntu. AWS Amazon Web Services Google Cloud

add a new column to existing table in a migration

To create a migration, you may use the migrate:make command on the Artisan CLI. Use a specific name to avoid clashing with existing models. You then need to use the Schema::table() method (as you’re accessing an existing table, not creating a new one). And you can add a column like this: and don’t forget to add the … Read more

serpbase v. 2.0

serpbase v. 2.0 is coming soon with new features.(15.06.2021*) site explorer: get overview data about domain name. keyword explorer: SERP data for a query (data from google search, google trends, google ads and other API services). serpbase http/https website crawler (phyton crawler on backend). sddd serpbase v. 1.0 is integrated on user dashboard on delalo. … Read more