生活不止眼前的苟且,还有远方的苟且

这两天我朋友圈被《生活不止眼前的苟且》这首歌刷屏了,有人发状态说“下了班回到家一听到这歌词中话,就早已忍不住的泪流满面,洗涤了一整天疲惫的心”……

当时我就懵逼了,你的泪点咋就这么低?一首歌就能洗涤你疲惫的心灵?

要不要让我来给你搓个澡呢?

还有人说“一遍一遍重复着副歌部分,就像一种强大的精神针剂一样,在这漆黑静谧的夜晚,给我注入一股一股力量 ”……

我简直他妈都要吐了,你是在漆黑静谧的夜晚撸管撸多撸到产生幻觉了吧?

多年来,高晓松他妈的 “人生不止眼前的苟且,还有诗和远方”这句话(啊,我不是在骂高晓松他妈的,这话真的是高晓松他妈的,哦不是,这话真的是高晓松他的妈妈说给他听的),被豆瓣文青们和微博的段子手和微信营销号各种消费,无数无病呻吟的文青们天天靠这两句话想着诗和远方慰籍自己的空虚寂寞冷,作为消化当前生活不如意的借口,无数次的在漆黑静谧的夜晚自我麻醉,幻想放下手头的烂摊子和糟糕的一切去远方的田野升华人生洗涤心灵净化一切。

可是你真以为听了一首《生活不止眼前的苟且》和看了几篇《你所谓的稳定就是在浪费生命》这样的酸词浪语就真的升华人生洗涤心灵净化一切了吗?

竟然真的有人天真的幻想跟作者一样辞了工作到处流浪每天全世界溜达……大哥,说这种话的人他们一个月赚多少钱你知道吗?

有些人还幻想着穷游,在蚂蜂窝上看几篇《一千块钱搭车走遍中国》的旅行攻略就打算辞工罢职幻想风餐露宿沿途搭车靠着所剩无几的存款和一张臭不要脸各种给人添麻烦来走遍全世界。

你知道在大西北荒无人烟的山区周围鸟不拉屎寸草不生无垠荒漠联通移动电信统统罢工没信号时连续几小时都看不到一个人经过的静的可怕的山区国道搭陌生人的车是在作一种怎样的大死吗?

高原海拔高昼夜温差大老子坐在车里开着暖风都他妈冻的跟个神经病似的,你还风餐露宿?

每年失踪的徒步旅行者多了去了,要麻烦救援队和警察叔叔,还有你那提心吊胆害怕白发人送黑发人的爸妈。

那些能够活着回来给你写《一千块钱搭车走遍中国》的旅行攻略的驴婊(驴婊,网络用语,定义为一路靠裤裆刷卡旅行的文艺青年们——来自百度百科)都是运气好,在他们侥幸活命的背后不知道埋葬了多少运气不好挂在路上被各种强奸鞭尸扔在荒山野岭的皑皑尸骨。

前两天竟然还有公众号号召人都丢下手头的工作徒步去西藏穷游洗涤心灵朝圣……

卧槽,还鸡巴朝圣,朝你妈个老母猪啊!

一个对自己不自爱不自重不珍惜生命的人就是一个肮脏的人,去过再多地方也还是一个肮脏的人,肮脏的用什么也洗不干净。

而且不管你混的成功不成功,首先你要知道人活在世的一条真理:

永远他妈的不要给别人添麻烦。

在我看来,在朋友圈不负责任的转心灵鸡汤,跟造谣传谣不转不是中国人不顶你就死全家有孝心的请转发不爱父母就不用转了转走后你名字会多一颗红心白岩松说了你买的日本货都是在给日本人造导弹日本人说了中国人是垃圾不团结如果在两周内把这个消息发遍100个群腾讯就会给你一个金会员……

真的没有任何本质上的区别。

——因为他们都是在煽动人做傻事。

你一定要知道,在当今的商业社会,所有的这一切的励志鸡汤,都是在为商业做服务,它的本质,就是一桩桩生意,高晓松的这首歌就是为了他的那句“生活不止眼前的苟且,还有诗和远方”服务的,但凡你仔细琢磨,这首歌的歌词完全的上句不接下句,头尾没有丝毫联系,完全就是生拼硬凑,这是为了他担任 CEO职务的阿里音乐所做的一桩营销生意,还拉上近些年闹歌慌的许巍(当然许巍的浪人形象也比较贴切文青),这是他的工作,是他的业绩和生意,是他的KPI。

你一定要知道,你可以被这首歌的旋律感动,但千万不能被这首歌麻痹。

你一定要知道,我不是在装逼非要当你的人生导师在教你什么深刻的哲理,我只是为了提醒你,这是商业,这是生意,你一定要清楚,心灵鸡汤拯救不了任何人,振奋人心的文字和打了鸡血的语句只是为了骗你的转发和关注而已,对于公众号的运营者和粉丝百万的营销号来说,这只是一笔生意。

而至于你真听信了这些鸡汤之后的死活,干他们何事?????

更何况,那些被《生活不止眼前的苟且》感动的一逼的文青们,当年你们在听朴树的《平凡之路》时不也同样的被感动的一逼说还是生活的小幸福更让你们觉得踏实和有存在感吗?

妈个鸡,说好的立场坚定的共建社会主义道路一百年不动摇呢?

别嫌我话糙理也糙,生活就是这样的糙于平凡,至于诗歌歌剧巴黎时装周打开朋友圈各种名人对话的聊天记录明星合照每天各种头等舱各种飞满世界溜达好像不用上班每天都有花不完的钱装不完的逼……那些都不是你我的平凡到跟小虾米一样的芸芸众生的生活,那些高大上的生活跟你我很难有实实在在的真正的交际。

不要拿你的人生跟他人的去做比较,那些是王思聪的生活……

可你知道王思聪为了投一个这么好的胎上辈子都受了什么磨难吗?

你一定要明白,你我就是一个普通的上班族,就是早上上班晚上下班偶尔还要熬个夜加个班,就是月初交房租月末等工资,就是柴米油盐酱醋茶,不是高晓松说的不买房快去旅行吧没钱就读诗诗就是你的远方。

高晓松那是名门之后家境富足住清华的二层小楼邻居是梁思成林徽因,你问问他住过潮湿阴冷分不清昼夜的地下室吗?他现在需要跟你一样为了买个手机省吃俭用省上半年的钱吗?他会跟你一样想在北京买个车挤破头的攒社保摇号吗?他会跟你一样为了孩子的疫苗操岁了心成天在朋友圈转各种谣言吗?

你一定要知道,高晓松他坐着说一分钟的废话赚的可能都比你这辈子赚的钱还要多得多多得多多得多多得多多得多多得多多得多多得多多得多多得多多得多多得多多得多多得多多得多多得多多得多多得多多得多多得多多得多多得多多得多多得多多得多多得多多得多多得多多得多多得多多得多多得多多得多多得多多得多多得多多得多多得多多得多多得多多得多多得多多得多多得多多得多多得多多得多多得多多得多多得多多得多多得多多得多多得多多得多多得多多得多多得多多得多多得多多得多多得多多得多多得多多得多多得多多得多多得多多得多多得多多得多多得多多得多多得多多得多多得多多得多多得多多得多多得多多得多多得多多得多多得多多得多多得多多得多多得多多得多多得多多得多多得多多得多多得多多得多多得多多得多多得多多得多多得多多得多多得多多得多多得多多得多多得多多得多多得多多得多多得多多得多多得多多得多多得多多得多多得多多得多多得多多得多多得多多得多多得多多得多多得多多得多多得多多得多多得多多得多多得多多得多多得多多得多多得多多得多多得多多得多多得多多得多多得多多得多多得多多得多多得多多得多多得多多得多多得多多得多多得多多得多多得多多得多多得多多得多多得多多得多多得多多得多多得多多得多多得多多得多多得多多得多多得多多得多多得多多得多多得多多得多多得多多得多多得多多得多多得多多得多多得多多得多多得多多得多多得多多得多多得多多得多多得多多得多多得多多得多多得多多得多多得多多得多多得多多得多多得多多得多多得多多得多多得多多得多多得多多得多多得多多得多多得多多得多多得多多得多多得多多得多多得多多得多多得多多得多多得多多得多多得多多得多多得多多得多多得多多得多多得多多得多多得多多得多多得多多得多多得多多得多多得多多得多多得多多得多多得多多得多多得多多得多多得多多得多多得多多得多多得多多得多多得多多得多多得多多得多多得多多得多多得多多得多多得多多得多多得多多得多多得多多得多多得多多得多多得多多得多多得多多得多多得多。

他可以什么都不要,他可以大谈诗和远方,因为他知道他什么都少不了他饿不着死不了。

但——你——不——能。

我也喜欢矮大紧的学贯古今的和能言善辩的脸大的自拍的可爱,但千万别信他的“生活就是诗和远方,能走多远走多远……走不远,一分钱没有,那么就读诗,诗就是你坐在这,它就是远方”。

我觉得吧,如果你真的一分钱没有,那就赶紧去工作,千万别瞎鸡巴读诗。

——诗能让你不感觉到肚子饿吗?

作为一个上完了9年义务制教育的心智成熟的成年人,你竟然还不加思考不分青红皂白的把他的话一股脑的照单全收……

请问你的脑袋是被早高峰的北京地铁的车门挤坏了吗?

你一定要清楚,你我的生活就是眼前的苟且和以后的苟且。

何况你我也并没有比别人多长了三头六臂和几根屌。

我没有劝你苟活于世甘于平庸,但你一定要清楚,路是自己走的,谁的梦想都不是随随便便成功的,你一定要清楚,伟大的理想和远大的抱负就像内裤,要有,但不能逢人就去证明你有。

我相信诗可以给你希望,但是人不能只靠着虚无缥缈的希望和看不见的未来去活着,脚踏实地的工作赚钱才算是不辜负一首好诗一首好歌曾经在深夜潮湿阴冷的地下室里所给你的带来的激励。

而且还有一件很重要的事儿你一定得清楚:

如果你搞不定你眼前的苟且,你也绝逼不可能搞的定你以后的苟且,过不好今天的人怎么可能过的好明天,就算你真的去了再远的地方,也只是换一个地儿继续苟且罢了。

呵呵 :)

生活不止眼前的苟且,还有远方的苟且

JavaScript获取地址栏内容

例如地址为:http://www.mazey.net/baby/blog/index.php?a=1&b=2#c

var query = window.location.href;	//http://www.mazey.net/baby/blog/index.php?a=1&b=2#c
var query = window.location.host;	//www.mazey.net

1、window.location.href
说明:整个地址栏字符串(在浏览器中就是完整的地址栏)
本例返回值: http://www.mazey.net/baby/blog/index.php?a=1&b=2#c

2、window.location.protocol
说明:地址栏的协议部分
本例返回值:http:

3、window.location.host
说明:地址栏的主机部分
本例返回值:www.mazey.net

4、window.location.port
说明:地址栏的端口部分,实际上返回空字符
本例返回值:””

5、window.location.pathname
说明:地址栏的路径部分(就是文件地址)
本例返回值:/baby/blog/index.php

6、window.location.search
说明:查询(参数?&)部分
本例返回值:?a=1&b=2

7、window.location.hash
说明:锚点部分(#)
本例返回值:#c

JavaScript遍历IP段内所有IP

思路:将两个IP转换为数字进行比较,小的那个慢慢加一,直到变成大的那个IP所转换的数字,将这其中的数字再转换为IP地址即为IP段内所有的IP。

//IP转数字
function ip2int(ip)
{
    var num = 0;
    ip = ip.split(".");
    num = Number(ip[0]) * 256 * 256 * 256 + Number(ip[1]) * 256 * 256 + Number(ip[2]) * 256 + Number(ip[3]);
    num = num >>> 0;
    return num;
}

//数字转IP
function int2iP(num)
{
    var str;
    var tt = new Array();
    tt[0] = (num >>> 24) >>> 0;
    tt[1] = ((num << 8) >>> 24) >>> 0;
    tt[2] = (num << 16) >>> 24;
    tt[3] = (num << 24) >>> 24;
    str = String(tt[0]) + "." + String(tt[1]) + "." + String(tt[2]) + "." + String(tt[3]);
    return str;
}

//列出IP段内的IP
function listIP(ip1,ip2){
	var ipInt1 = ip2int(ip1);
	var ipInt2 = ip2int(ip2);
	for(var i = ipInt1;i <= ipInt2;i++){
		document.write(int2iP(i) + '>br/<');
	}
}

listIP('158.66.23.0','158.66.23.255');

PHP7-MySQLi在分页中的应用

获取页码,设置每页行数

$page = $_POST["page"];
if($page == ""||$page <= 0){
    $page = 1;
}
$pageSize = 15;

打开MySQL数据库

$mysqli = new mysqli($mysql_server_name,$mysql_username,$mysql_password,$mysql_database);

执行SQL语句

$result = $mysqli->query("select 1 from record_visitor");

获取数据总行数

$rowCount = $result->num_rows;
//$rowCount = $result->num_rows是mysqli面向对象风格,等同于$rowCount = mysqli_num_rows($result);

获取数据总页数

$pageNum = ceil($rowCount / $pageSize);
if($page > $pageNum){
    $page = 1;
}

获取数据的偏移量

$offset = ($page - 1) * $pageSize;
//获取的数据从$offset+1开始,例:$page=0,$offset=0,从第1个数据向后推移;$page=2,$offset=5,从第6个数据向后推移.

获取当前页的数据

$result = $mysqli->query("select ip,referer,href from visitor order by time desc limit $offset,$pageSize");
//从$offset+1个数据开始展现$pageSize个数据,例:数据1-10,$page=0,$offset=0,$pageSize=5,展现:6,7,8,9,10.

展现数据

while ($row = $result->fetch_assoc()) {
    echo $row["ip"];
    echo $row["referer"];
    echo $row["href"];
}
//$row = $result->fetch_assoc()是mysqli面向对象风格,等同于$row = mysqli_fetch_assoc($result);循环输出每行数据.

What does it feel like to survive death?

I survived death three times during a 23 day period.

I was 14 at the time, located in Pennsylvania, USA. I had come back from a trip to India. I went during the monsoon season, July 2006. I came home in middle of August, I was to start school in about 2 weeks.

School started, I had bought all my back to school clothes, pens, notebooks, pencils, etc. Suddenly, during history class I get a severe headache, it wasn’t like your normal temple headache. It was more like the headache formed a halo on my head. It started from the forehead all the way around in a circle. I went to the nurse and took some Tylenol. The nurse called my parents and let me go home early.

I went home and I fell asleep. I woke up after maybe 3 hours with a very high fever reached 102 degrees. My parents made an appointment with my pediatrician and he said that it might just be because of the season changing. He advised me to take Motrin every 4 – 6 hours for the fever. I went home and started getting the shakes, I would be feeling extremely hot for an hour or two, and extremely cold the next couple of hours.

My parents rushed me to the emergency room where they did an MRI, CT Scan, Blood and Urine work which all came back negative. As a final resort, they did a Lumbar Puncture (Spinal Tap). The doctor who was performing the procedure was a resident, there was no senior doctor present. He poke the needle in between my vertebrae approximately 4-5 times, when he gave up and called his senior. His senior doctor withdrew Cerebral Spinal Fluid (CSF) and sent it off for testing.

During that time, my mom told the doctor that I have all the symptoms of malaria and that I had visited India during the rainy season. The doctor agreed and said that it does look like malaria, but since they didn’t have any proof; it would be unlawful for them to provide me any medication that may cause harm to me. The CSF checked out to be negative. I was sent home with Tylenol.

Once I reached home, I slept for maybe 4-5 hours. Once I woke up, I was burning in a fever and was hallucinating. I kept yelling at my parents to stay away from me because I thought they were going to hit me on the head with a remote control. I fell asleep after 5 minutes of hallucinating. After waking up, I was totally normal and got up to go to the bathroom. As soon as I stood up, I started to walk as if I was drunk. I was not coordinated. I got to the bathroom but could not urinate.

I was rushed to the ER again, where they inserted a tube through my urethra to remove the urine from the bladder. I was transferred via ambulance to Hershey Medical Center. I was sent to get more testing done like an MRI which showed something in my neck, they assumed. During that time, I was having very small seizures which I was not treated for.

I was taken in for another LP, which resulted in me having a major seizure, respiratory and cardiac arrest. They declared me dead on the spot. They still paged CODE BLUE and called all the ICU doctors in the room to perform CPR.

My mom was in my room speaking to a social worker when my nurse came running to her and screamed, “If you want to see your daughter for the last time, you better come with me”!

My mom is a healthy woman and she never runs, she just can’t. My mom, dad, aunty and uncle ran like anything, they threw their phones away and literally pushed people to get to the testing room.

There, I was laying bra-less and top-less on the examination table where they were giving me electric shock to my heart.

The resident who performed the LP came out and faced my mom. My mom grabbed her shoulders and shook her violently and screamed, “WHAT HAVE YOU DONE WITH MY DAUGHTER YOU BLOODY PAKISTANI! YOU’RE TAKING REVENGE BECAUSE WE ARE INDIAN AND YOU ARE PAKISTANI!! HOW DARE YOU”!!!

Every doctor there, utterly shocked. My dad took her to the side and made her calm down. Fiza, the resident who performed the LP, was crying and said, “Mrs. Modi, I didn’t do anything to your daughter. She was laughing and talking about her life, school, and you. We don’t know what happened.. We weren’t prepared for this”. My mom looked at her with furious eyes.

After 3 electric shocks, and 7 minutes without oxygen, they revitalized my heart but could not get my breathing back. I was unconscious and had a breathing tube stuck down my throat, IVs in both of my hands, heart monitors hooked up, and a blood pressure cuff on. I was transferred into the PICU (Pediatric Intensive Care Unit). I came into consciousness that night and recognized everyone. I shook my head if I knew someone or not.

The next day, I was taken again for another LP, which resulted in my going into a coma for 23 days. The doctors said that there were uncountable white blood cells in my CSF, which meant a viral infection.

During the third day of the coma, my body temperature went below 90 degrees, it was sudden and there was no reason for this to happen. The nurses piled heated blankets on me and surrounded me with heated lamps. I was left like that for about an hour. The doctor called it serious and said if my body temperature didn’t go above 90 degrees, I could die. After one hour, they removed the lamps and blankets, my body temperature rose immediately.

A couple days later, I lost a lot of blood resulting in my hemoglobin going down below 5 (the normal is 11.5-15 for women). They didn’t know where the blood loss was from.. So they gave me 3 units of blood and again called it fatal. Finally, after the blood transfusion, my hemoglobin came up to a safe level.

The date was now September 19, 2006. A family doctor of ours is an Infectious Disease Specialist. He spoke to the team of doctors that were in charge, and requested them to give me a 14 day course of Doxycycline and Quinine because I didn’t have anything they were treating me for. I had malaria.

The doctors didn’t approve of my doctors’ request so my mom laid down by their feet. In a position where her face was facing the ground and her head was touching the tip of their shoes. She cried and requested them to listen to our family doctor.

Finally, at 4am the doctors injected me with the first dosage of those medicines. My parents went to sleep.

On September 21, 2006. The doctors decided to take me off of life support and told my parents to call all of my family. My mom begged them and told them to keep me on life support until September 29 because it’s my birthday. The doctors said that if there was no improvement after the 29th, they would pull the plug from my breathing machine which would lead to death.

On September 29, 2006, my mom catered for 60+ people, decorated my room in the PICU and called all my family. At 3:05 pm, the exact time I was born, everyone was signing Happy Birthday and my dad held my hand and cut the cake. I opened my eyes and was staring up at the ceiling, I couldn’t recognize anyone.

My family screamed for the doctor, he came in and gave me a quick check up and screamed and jumped himself. He hugged my mom with teary eyes and said, “Mom, you saved us from committing an unforgivable sin! God bless your spirit. Your daughter will survive”! I went into a coma again after 10-20 minutes.

On October 5th, 2006, I was sent into the operating room to transfer the breathing tube from my mouth, to my directly through my neck and vocal cords. After the anesthesia wearing off, I came out of my coma and started to recognize everyone.

But the coincidence is that, when my mother was pregnant, her original due date was October 5, 1991. Another thing, everyone in my family except my mom knew I wasn’t going to make it.. Her faith and belief is what saved me. I was paralyzed from my neck down, it’s been 8 years just yesterday (09/29/13) and I am able to move and contract a few leg muscles which the doctors thought I would never be able to do.

I’ve posted my story many times as answers for different questions, but never in so much detail. I’m sorry if you are being forced to read this the umpteenth time but I love to share this story to give inspiration and motivation to others who are having a hard time.

NOTHING IS IMPOSSIBLE. 🙂
Stay smiling! And thanks for reading!

Link

ASP-DateAdd时间增加

ASP内置函数DateAdd(interval, number, date)

1、interval标识你要加的日期部分,具体参数如下:
yyyy → 年
m → 月
d → 日
h → 小时
n → 分钟
s → 秒

2、number是你要加的数字,代表秒、分、天等。

3、date是日期,可以是任意时间,若是现在便是now()。

如需增加一年,则:DateAdd(“yyyy”,1,”2017-04-11 00:00:00″)
同样,如需在当前日期的基础上增加一月,则:DateAdd(“m”,1,now())

jQuery-PHP跨域请求数据

jQuery:

 1 //获取域名
 2 function getDomain(url){
 3     var a = document.createElement('a');
 4     a.href = url;
 5     url=a.hostname;
 6     return url;
 7 }
 8 
 9 //记录访客
10 function recordVisitor(){
11     var referrerMz = escape(getDomain(document.referrer));
12     var hrefMz = escape(getDomain(window.location.href));
13     sendInfo="judgeMz=413322&referrerMz="+escape(referrerMz)+"&hrefMz="+escape(hrefMz);
14     $.ajax({ 
15         type: "get", 
16         async: true, 
17         url: "http://www.mazey.net/config/api/record-receive.php", 
18         data:{judgeMz:413322,referrerMz:referrerMz,hrefMz:hrefMz}, 
19         dataType: "jsonp", 
20         jsonp: "callback",
21         jsonpCallback:"returnFun",
22         success: function(data){ 
23             myArr=data.split("-|-")
24             if("0507"==myArr[0]){
25                 console.log(myArr[1]);
26             }else if("0215"==myArr[0]){
27                 console.log(myArr[1]);
28             }
29         }, 
30         error: function(){ 
31             console.log("Server Error!");
32         } 
33     });
34 }
35 
36 //加载
37 $(document).ready(function () { 
38     recordVisitor();
39 });

PHP:

 1 <?php
 2 require '../config.php';
 3 $judgeMz=$_GET["judgeMz"];//TODO 后续做一个验证不是413322的报错
 4 $referrerMz=$_GET["referrerMz"];
 5 $hrefMz=$_GET["hrefMz"];
 6 $visitorIP=getIP();
 7 
 8 $data = returnFun($referrerMz,$hrefMz,$visitorIP); 
 9 exit($_GET['callback'] . '(' . json_encode($data) . ')'); 
10 
11 function returnFun($referrerMz,$hrefMz,$visitorIP) { 
12     $urlRecordVisitor='http://www.mazey.cn/config/config-asp/api/record-receive.asp?referrerMz='.$referrerMz.'&hrefMz='.$hrefMz.'&visitorIP='.$visitorIP;
13     $resultMz = file_get_contents($urlRecordVisitor);
14     return $resultMz;
15 }
16 ?>

其他:

因为http://www.mazey.cn/config/config-asp/api/record-receive.asp在国内,所以访问起来好像有点慢。准备按照asp重写下php的后端写入代码,本来计划了不少事情,其他事情这一步做完以后再说吧。

jQuery获取input复选框的值

var ipResolveValue =[]; //定义一个空数组
$("input[name='ipResolve']:checked").each(function(){   //each为每个匹配元素规定运行的函数,匹配name="ipResolve"的复选框
ipResolveValue.push($(this).val()); //js push增加数组值
});
//alert(ipResolveValue.length==0 ?'你还没有选择任何内容!':ipResolveValue);