欢迎来到 艾瑞可erik 的魔法世界 🧙‍♂️

给我一个需求,还你一个项目——别管它是什么。这就是全栈。

📚 291 篇文章 🏷️ 504 个标签 📂 90 个分类

🔥 最新文章

你我他

生活中总有些霸王条款。 1.银行自动取款机坏了,不停的吐出钞票,你给银行打个电话,他们立马会有人来。要是你的银行卡被吞了,打电话后会告知你一个礼拜后去银行取卡。 启示:当没有涉及自己的利益时,根本不用着急。当涉及到自己的利益时比猴子还急。 2.你在外租房子的时候一般和房东签合同。合同到期后继续住,有时候要晚几天交房租,房东很爽快。房间有什么问题了,房东会及时处理。等你要搬走了,问题一大堆…… 启示:当有用的着你的时候和你有利益关系随叫随到,当用不到你的时候再狠狠宰你几刀。 3.经常会看到一些人显示自己认识某某首富,某某大腕,某某主持人,和某某人士是朋友。等到哪天自己落难了,缺发现没有一个人理他。 启示:真正的关系是建立在长久的基础上,不是吃个饭,握个手,一起参加过几次活动就认识了。

You, Me and Them

There are always some unfair terms in life. 1. The bank’s ATM breaks down and keeps spitting out banknotes; you call the bank and someone comes right away. If your bank card gets swallowed instead, they tell you after your call to come to the bank to pick up the card a week later. Lesson: when their own interests are not involved, there is no need to hurry at all. When their own interests are involved, they are more frantic than a monkey. 2. When you rent a place away from home you usually sign a contract with the landlord. If you keep living there after the contract expires and sometimes pay the rent a few days late, the landlord is quite easygoing. If there is any problem with the room, the landlord deals with it promptly. But when you are about to move out, a pile of problems appears… Lesson: when they can make use of you and have an interest relationship with you, they are there whenever you call; when they can no longer use you, they take a few hard cuts at you. 3. You often see people showing off that they know some richest man, some big shot, some TV host, that they are friends with so-and-so. Then one day when they fall on hard times, they find that nobody pays them the slightest attention. Lesson: real relationships are built on a long-term foundation, not on having a meal together, shaking hands, or taking part in a few events together and calling that knowing someone.

The Latest Circumvention Browser

Lately I’ve been working on getting indexed by Google and solving the problem of my site being blocked by browsers, and I can’t help but need Google Webmaster Tools — which can’t be accessed from within China, so circumvention is the only way. With this browser you can do Google promotion, look up information on overseas websites, log into Gmail…… The latest version of the circumvention browser tool, download circumvention browser tool

和代码打交道的一些东西

运用thinkphp框架好久一段时间了,最近进换工作后又重新熟悉一下,才发现这个框架还是挺好用的。从代码的模型、函数调用,到数据输出,静态生成调试……每种数据展现的是不同的逻辑,同时又是相同的思维。 php有java的思想,却又不能按照java的方法照搬式使用。今天一同事就一直在纠结这个问题,其实是他想的多了,把2种不同的语言混淆到一起。思想可以相似,用法却有着差别。猛然间觉得人的思维何苦不是这样的,相近的事物关联在一起,得出结论,最终却输给实践的答案。 运用一种框架并不难,也没有什么特殊的技巧,有时候自是自己想多了,思维跑偏了。成功的捷径也是这样,不需要非得30而立,也不需要非得获得认证,只是实间沉积的多少和世界观的认知。我们并不能改变自己原有的根本,我们却可以朝着未来的方向去努力改变。 很简单,一切都和容易……

Some Things About Working with Code

I had been using the thinkphp framework for quite a long time, and recently after changing jobs I got familiar with it again, only to find that this framework is actually pretty good to use. From the code’s models and function calls, to data output, static generation and debugging… each kind of data presents a different logic, while at the same time sharing the same thinking. PHP has the ideas of Java, yet you can’t just copy Java’s methods wholesale. Today a colleague kept agonizing over this problem, when really he was overthinking it, mixing two different languages together. The ideas can be similar, but the usage differs. Suddenly it struck me that people’s thinking works no differently: related things get linked together and a conclusion is drawn, yet in the end it loses out to the answer that practice gives. Using a framework isn’t hard, and there’s no special trick to it — sometimes you’re just overthinking and your thinking goes off track. The shortcut to success is the same way: you don’t have to have made it by 30, and you don’t have to get certified, it’s just a matter of how much time has settled and how you understand the world. We can’t change what we fundamentally are, but we can work toward changing in the direction of the future. It’s very simple, everything is easy…

那些年的我们

时间久了,不得不吐槽一下,那些年的我们。 一起逃课,一起吃饭…… 有时我在想,我们的相遇只是一抹时光的略去,曾有的微笑和快乐早已停息。多少过后,我还记得你,你还认识我。其实,不必有太多的感觉,没有回忆的时刻里我们总会有真理来奠基。 没有资格去埋怨环境和不公,你想要的终究是要自己来取,等待,永远不会有美丽的结局。 随手一笔,吐槽自己,吐槽时间,用亲情来滴亮牟际,看看世界美妙的乐曲。 走也不是开始,去也不是结束,往复循环……

Us, Back in Those Years

As time goes on, I can’t help but rant a little about us back in those years. Skipping class together, eating together… Sometimes I think our meeting was just a flicker of time slipping by; the smiles and happiness we once had have long since fallen silent. After so long, I still remember you, and you still know me. Actually, there’s no need for so many feelings — in the moments without memories, we will always have some truth to lay the foundation. There is no right to complain about the environment and unfairness; what you want, you ultimately have to go and take for yourself. Waiting will never bring a beautiful ending. A casual stroke of the pen, ranting at myself, ranting at time, using family love to light up the horizon, and watching the world’s wonderful melodies. Leaving is not a beginning, going is not an end — round and round, over and over…

互联网的那些事

第一届国际互联网大会已经过去了,中国7个大佬分别掌管着不同领域的资源,把持着各自的方向。烧钱也好,合作也好,投资也罢结局都是推动中国经济发展,方便人群互惠互利。我们生活在底层的人不回去知道10年后是什么样子,当然也不会很在意,高科技的发展以让生活变得很懒。我们到最后会是什么样,会担心什么……都是未知的 百度从一个乱撞的苍蝇,变为专注智能、大数据方向发展。阿里巴巴从淘宝、团购、到阿里云不断演化自己的生态圈。腾讯,中国永远聊天中的老大,5亿qq,4.5亿微信用户群。360夺冠网络pc安全之首。小米开创国产手机品牌第一,同时也是苹果的跟屁虫。京东,曾是很不起眼的一家商城,如今和腾讯联姻大有盖过阿里巴巴之势。搜狐,不起眼的角色,在一步步崛起。 我能说现在是互联网开拔的时代,也是7大佬真正争斗的开幕,一场很大的风暴开始慢慢酝酿了。

Those Things About the Internet

The first World Internet Conference has come and gone. China’s seven big shots each control resources in different fields and hold sway over their own directions. Burning cash, partnering, investing — whatever the outcome, it all drives China’s economic development and makes life easier and mutually beneficial for people. We who live at the bottom won’t know what things will look like ten years from now, and of course we don’t much care. The advance of high technology has already made life very lazy. What we’ll end up like, what we’ll worry about… it’s all unknown. Baidu has gone from a fly bouncing off the walls to focusing on the smart and big-data directions. Alibaba keeps evolving its own ecosystem, from Taobao and group buying to Alibaba Cloud. Tencent, forever the big brother of Chinese chat, with 500 million QQ and 450 million WeChat users. 360 takes the crown as number one in PC network security. Xiaomi pioneered the number one domestic phone brand, while also being Apple’s copycat. JD.com, once a very unremarkable shopping site, has now married into the Tencent family and looks poised to overtake Alibaba. Sohu, an inconspicuous player, is rising step by step. I’d say the era of the Internet setting out has arrived, and it’s also the opening of a real fight among the seven big shots — a huge storm is slowly brewing.

高交会

高交会在深圳有好几个年头了,一直没抽时间去看,昨天特地去了一下。 3d试衣镜图片 从1号馆展示科技动态、视觉技术给人太多的震撼了。3d试衣镜,激光自由雕刻机,移动机器人……感觉不久的生活会很便捷。我不知道这样科技的智能化利弊之间有多大,科技给我们带来越多的便捷同时也产生越多的弊端。机器都干了人来干的事情,人的生活会是什么样? 图片 我能看到现在的智能家具、绿色能源、3d立体这些东西足以让我猜想未来的生活会是什么样子的。科技在不断的更新,影响着我们周围的一切,也许不久我可以站在祖国的最南端和最北端的盆友面对面的交流,他的表情、动作一一展现出来。 图片 下一年将会是互联网统治,伴随着物联网、车联网、o2o的出现生活中似乎只剩2样东西——网络和电。少了他们感觉会空虚,会无助,会模糊。手势识别技术也再次成熟,或许过不了几天你可以看到真实的游戏中,自己如临实景,操控整个战场。 8K电视图片

The China Hi-Tech Fair

The China Hi-Tech Fair has been held in Shenzhen for several years now, and I never made the time to go see it — until yesterday, when I finally went out of my way to visit. 3D fitting mirror photo Hall 1, showing the latest in tech trends and visual technology, was a real shock to the senses. The 3D fitting mirror, the free-form laser engraver, the mobile robots… it felt like life will soon be very convenient. I don’t know how big the trade-off is between the pros and cons of this kind of intelligent technology — the more convenience technology brings us, the more drawbacks it produces too. If machines do all the things people used to do, what will people’s lives look like? Photo Seeing today’s smart furniture, green energy and 3D stereoscopic stuff is already enough to make me guess what life in the future will look like. Technology keeps updating and affects everything around us. Maybe before long I’ll be able to stand at the southernmost tip of my country and talk face to face with a friend at the northernmost tip, with his expressions and gestures all shown in full. Photo Next year will be ruled by the internet. With the Internet of Things, the Internet of Vehicles and O2O appearing, it seems only two things will be left in life — the network and electricity. Without them you’d feel empty, helpless, blurry. Gesture recognition technology is maturing again too; perhaps in a few days you’ll be able to see yourself in a real game, as if you were there in person, commanding the entire battlefield. 8K TV photo

乌镇互联网大会

乌镇,中国历史上的千年古镇。旅游的好地方,咋看和互联网大会不找边啊,几千年留下的历史建筑同现在科技结合在一起岸,给太多的疑惑了。跟着这些疑惑先去百度一下。 百度截图 百度只给了这个简单的介绍,介绍后面提到互联网大会。还是有点晕乎,到底为什么在乌镇举行互联网大会,为什么不是北上广深任一城市?后来才发现,原来乌镇是全国最早、最快运用互联网、互联网经济最发达的地方,当然也有主办方有意让互联网大会坐落在一个小镇上。第一节世界互联网大会就这么在乌镇开始了,没有柏油路,没有玻璃窗,所有的原貌依旧,一种古老的气息同店铺里扫描支付、石板路上的无线高速wi-fi显得格外有意思。 互联网大会将聚集十几个国家地区的公司代表,为期三天,共同探讨世界互联网发展。第一届就这么开始了。

The Wuzhen Internet Conference

Wuzhen, a thousand-year-old ancient town in Chinese history. A great place for tourism — at first glance it has nothing to do with an internet conference. The historic buildings left behind by thousands of years combined with today’s technology throw up far too many questions. Following those questions, I went to Baidu first. Baidu screenshot Baidu only gave this simple introduction, and the internet conference was mentioned after it. I was still a bit dizzy: why on earth hold an internet conference in Wuzhen, why not in any one of Beijing, Shanghai, Guangzhou or Shenzhen? Only later did I find out that Wuzhen was the earliest and fastest place in the country to adopt the internet, and the place where the internet economy is most developed — and of course, the organizers also deliberately wanted the internet conference to be held in a small town. And so the first World Internet Conference began in Wuzhen: no asphalt roads, no glass windows, everything kept as it originally was. A kind of ancient atmosphere set against scan-to-pay in the shops and high-speed wireless wi-fi on the flagstone paths seemed especially interesting. The internet conference will gather company representatives from more than a dozen countries and regions for three days to jointly discuss the development of the world’s internet. And so the first edition began.

mysql数据库常用语句

最近在做ecshop发现mysql忘了一大堆,复习一下。
name数据库 name1表格1 依次类推

create database name character set ‘utf8’; 创建数据库及编码方式(一键式创建)

crate database name; 创建数据库

show databases; 查看数据库名称(列举数据库)

use name; 选择数据库(进入数据库)

drop database name; 删除数据库

Common MySQL Statements

I’ve been working on ecshop recently and realized I’ve forgotten a ton of MySQL, so let me review it.
name is the database, name1 is table 1, and so on

create database name character set ‘utf8’; create a database and its encoding (one-step creation)

crate database name; create a database

show databases; view database names (list databases)

use name; select a database (enter the database)

drop database name; drop a database

访客统计计数器

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> 
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<title>访客统计</title>
</head> <body>
<?php
if (!@$fp=fopen("count.txt", "r")){ //以只读的方式打开文件,这步可要可不要根据实际情况来确定。
echo "count.txt文件创建成功!<br />";
}
@$num=fgets($fp,12);//读取11位数字
if ($num=="")$num=0;//如果文件count.txt内容为空,则初始化为0 $num++; //浏览次数加1
@fclose($fp); $fp=fopen("count.txt", "w");//以只读的方式打开文件
fwrite($fp, $num); //写入加1后结果
fclose($fp); //关闭文件 echo "您是第".$num."位浏览者!";
?>
</body>
</html>

Visitor Statistics Counter

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> 
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<title>访客统计</title>
</head> <body>
<?php
if (!@$fp=fopen("count.txt", "r")){ //open the file in read-only mode; this step is optional and depends on the actual situation.
echo "count.txt文件创建成功!<br />";
}
@$num=fgets($fp,12);//read 11 digits
if ($num=="")$num=0;//if the content of count.txt is empty, initialize it to 0 $num++; //increment the view count by 1
@fclose($fp); $fp=fopen("count.txt", "w");//open the file in read-only mode
fwrite($fp, $num); //write the result after adding 1
fclose($fp); //close the file echo "您是第".$num."位浏览者!";
?>
</body>
</html>