Wednesday, 13 September 2017 22:53

Together with Alex & Benjamin, we created an international company to support the victims of the hurricane IRMA. We ask you not to remain indifferent and donate money to charity.

It’s not easy to realize that people after Hurricane Irma, which suits Harvey, have nowhere to sleep, there is no drinking water. Help me raise money to help rebuild. External support is needed, and I will send all the money received directly to non-profit organizations operating in the region.

Visit to link for Donate:  https://fundly.com/donate-to-and-support-hurricane-irma-victims

Hurricane Irma is already leading to catastrophic and tragic destruction in the Caribbean. The region will desperately need financial support to help heal and recover from this incredible catastrophe.

Tuesday, 18 July 2017 06:40
Cool navbar gradient in CSS:
nav.mainnavigation-menu {
    background: rgba(0, 0, 0, 0) radial-gradient(ellipse at center center , #005982 0%, #002d4b 100%) repeat scroll 0 0;
    display: none;
    height: 100vh;
    left: 0;
    margin-top: 0;
    opacity: 0;
    position: fixed;
    text-align: center;
    top: 0;
    width: 100%;
    z-index: 3;
}

Friday, 30 June 2017 19:44

For example we have text

<strong>
                     
                         
                            The Times
                          
                        NY
                     
                </strong>

 But good result need be

<strong>The Times NY</strong>

 I make regexp in php

function trim_text($str)                             
{                                                    
    return trim(preg_replace('/\s{2,}/', ' ', $str));                                                 
}

 

Friday, 30 June 2017 14:37

For disable spotlight run this commands in terminal and process mds_stores will be disable

sudo launchctl unload -w /System/Library/LaunchDaemons/com.apple.metadata.mds.plist

 

Monday, 26 June 2017 19:29

That was how to capitalize just the first letter of each word in a cell using the Microsoft Excel very easy (change A1 to you num.cell)

// For example: A1 = katy
=CONCATENATE(UPPER(LEFT(A1,1)),RIGHT(A1,LEN(A1)-1))
Sunday, 12 March 2017 19:46
{{block type="ultraslideshow/slideshow" template="infortis/ultraslideshow/slideshow.phtml" slides="dnk_slide_2017_landing1,dnk_slide_2017_landing2,dnk_slide_2017_landing3" timeout="30000"}}
Sunday, 08 January 2017 18:19
We need put this code in you html-page:
<!– CONTACT FORM CODE BEGIN–>
{{block type='core/template' name='contactForm' template='contacts/form.phtml'}}
<!– CONTACT FORM CODE END–>

Sunday, 01 January 2017 16:19
(1) In a new tab, type or paste about:config in the address bar and press Enter/Return. 
Click the button promising to be careful.

(2) In the search box above the list, type or paste webno and pause while the list is filtered

(3) To disable PUSH NOTIFICATIONS, double-click the dom.webnotifications.serviceworker.enabled 
preference to switch its value from true to false -- sites can still generate desktop notifications while you have a tab open to the site

(4) To disable ALL NOTIFICATIONS, double-click the dom.webnotifications.enabled 
preference to switch its value from true to false -- this is a master switch, you won't get any desktop notifications from sites
Friday, 23 December 2016 23:55

Cool Zombie Outbreak

STAY INDOORS: ZOMBIE OUTBREAK
STAY INDOORS: ZOMBIE OUTBREAK
<div id="marquee">
<div><span>STAY INDOORS: ZOMBIE OUTBREAK</span></div>
<div><span>STAY INDOORS: ZOMBIE OUTBREAK</span></div>
</div>
<form onsubmit="setText(event)"><label for="textsource">Source text</label> <input id="textsource" title="Text must be 5 to 30 characters in length" pattern=".{5,30}" type="text" value="STAY INDOORS: ZOMBIE OUTBREAK" /> <input type="submit" value="Use" /></form>

<script type="text/javascript" xml="space">// <![CDATA[
function setText(event){
  event.preventDefault();
  leftText.innerText = textsource.value.toUpperCase();
  rightText.innerText = textsource.value.toUpperCase();
}
var leftText = document.querySelector("#marquee div:first-of-type span");
var rightText = document.querySelector("#marquee div:last-of-type span");
var textsource = document.getElementById("textsource");
setText();
// ]]></script>
#marquee {
	margin-top: 3rem;
	perspective: 500px;
	font-size: 0;
	font-family: Agency, sans-serif;
}

#marquee div {
	display: inline-block;
	height: 12rem;
	width: 30rem;
	position: relative;
}

#marquee div:first-of-type {
	background: #e5233e;
	transform-origin: top right;
	transform: rotateY(-40deg);
	color: #fff;
}

#marquee div:last-of-type {
	background: #b31e31;
	transform-origin: top left;
	transform: rotateY(45deg);
	color: #f8c9d9;
}

#marquee div {
	font-size: 8rem;
	overflow: hidden;
}

#marquee div span {
	position: absolute;
	width: 400%;
	line-height: 1.4;
}

@keyframes leftcrawl {
	to {
		transform: translateX(-100rem);
	}
}

@keyframes rightcrawl {
	to {
		transform: translateX(-130rem);
	}
}

#marquee div:first-of-type span {
	transform: translateX(60rem);
	animation: leftcrawl 14s linear infinite;
	text-shadow: 4px 0px 4px rgba(0, 0, 0, 0.3);
}

#marquee div:last-of-type span {
	transform: translateX(30rem);
	animation: rightcrawl 14s linear infinite;
}

#marquee form {
	margin-top: 3rem;
	background: #334;
	padding: 1rem;
	text-align: center;
	color: #fff;
}

#marquee input[type="text"] {
	padding: .5rem;
	font-size: 1.2rem;
	width: 22rem;
}

#marquee input[type="text"] {
	padding: .5rem;
}

l#marquee label {
	margin: 1rem;
}

@media all and (max-width: 993px) {
	#marquee {
		perspective: none;
	}

	#marquee div:last-of-type {
		opacity: 0;
		height: 0;
	}

	#marquee div:first-of-type {
		width: 80%;
	}
}
 

 

Thursday, 15 December 2016 15:44
magento deploy:mode:set production

magento deploy:mode:set developer

magento setup:cache:{enable|disable|clean|flush|status}

magento setup:indexer:{status|show-mode|set-mode|reindex|info}

magento cron:run

magento setup:di:compile

magento setup:static-content:deploy

magento dev:source-theme:deploy

 

Thursday, 15 December 2016 14:43

We will proceed by installing PHP 5.5, PHP 5.6, PHP 7.0, and PHP 7.1 and using a simple script to switch between them as we need.

$ brew install php55 --with-apache
$ brew unlink php55
$ brew install php56 --with-apache
$ brew unlink php56
$ brew install php70 --with-apache
$ brew unlink php70
$ brew install php71 --with-apache

 Let's do it!

brew install php71

But, we looking Error:

==> Installing php71 from josegonzalez/php
Error: Cannot install josegonzalez/php/php71 because conflicting formulae are installed.

  php55: because different php versions install the same binaries.

Please `brew unlink php55` before continuing.

Unlinking removes a formula's symlinks from /usr/local. You can
link the formula again after the install finishes. You can --force this
install, but the build may fail or cause obscure side-effects in the
resulting software.

Dont panic! :-) Run unlink command:

brew unlink php55

# Unlinking /usr/local/Cellar/php55/5.5.38_11... 17 symlinks removed

Then try again:

brew install php71


# ==> Summary
# ?  /usr/local/Cellar/php71/7.1.0_11: 342 files, 39.7M

Then try our php version

php -v

PHP 7.1.0 (cli) (built: Dec  2 2016 03:30:24) ( NTS )
Copyright (c) 1997-2016 The PHP Group
Zend Engine v3.1.0-dev, Copyright (c) 1998-2016 Zend Technologies

Tuesday, 13 December 2016 20:03

Open Terminal

sudo mv httpd-mpm.conf httpd-mpm.conf.elcapitan

sudo cp httpd-mpm.conf~orig httpd-mpm.conf

 and then entered the commands:

sudo apachectl restart

apachectl configtest

The last command returned "Syntax OK". Now work Done!

Monday, 12 December 2016 16:26

i solved mine by re-pointing mac's php path to MAMP's php

$ cat ~/.bash_profile

PHP_VERSION=`ls /Applications/MAMP/bin/php/ | sort -n | tail -1`

export PATH=/Applications/MAMP/bin/php/${PHP_VERSION}/bin:$PATH

check if your machine is using proper php:

$ php -v

PHP 7.0.8 (cli)

if not, re-point the path through .bash_profile or .profile. that's my solution

Thursday, 08 December 2016 10:01

Once you have your version, open Finder, press [Shift][Command][G] and enter /Applications/MAMP/bin/php/php5.5.10/conf/. You will see a php.ini file. Open it in your favourite text editor. You are going to change the values of the following variables:

; Maximum size of POST data that PHP will accept.
post_max_size = 256M

; Maximum allowed size for uploaded files.
upload_max_filesize = 256M

; Maximum execution time of each script, in seconds
max_execution_time = 600     

; Maximum amount of time each script may spend parsing request data
max_input_time = 600    

; Maximum amount of memory a script may consume (8MB)
memory_limit = 512M      

It is important to note that for the variables related to size - post_max_size, upload_max_size and memory_limit - you must change the variable to a size larger than that of the .sql file that you are trying to import. My .sql file was 170mb but if you are importing a larger .sql file you need to set the memory-related variables to an appropriately large value.

Now restart MAMP and you should no longer be experiencing the problems.