fmp4文件的mdat box里边直接放的是h264的原始数据可以吗,需不需要进行编码转换 5C

自己写一个fmp4文件编码器,原始数据为h264帧,fmp4文件的mdat box里边直接放的是h264的原始帧数据可以吗,需不需要进行编码转换,发现直接放帧主句我用vlc播放不出来,只有时间轴走,解码不出视频

Csdn user default icon
上传中...
上传图片
插入图片
抄袭、复制答案,以达到刷声望分或其他目的的行为,在CSDN问答是严格禁止的,一经发现立刻封号。是时候展现真正的技术了!
其他相关推荐
自己用H264数据编码的fmp4文件,用VLC播放时时间戳在前进,但解析不出视频?

元数据是海思编码的H264帧。 1. 在 mdat box里边填充的数据 I/P帧NALU,需要将前4字节的同步码用帧长度替换吗(且是大端模式),长度不包括这前边的4字节吧? 2.IDR帧里边的SPS PPS NALU之后才是 I NALU ,这前边的SPS PPS要保留还是跳过后只留 I NALU部分?? fmp4文件结构解析图片: ![图片说明](https://img-ask.csdn.net/upload/201812/29/1546075399_600601.png) VLC播放时图片: ![图片说明](https://img-ask.csdn.net/upload/201812/29/1546075413_759678.png) IDR帧: ![图片说明](https://img-ask.csdn.net/upload/201812/29/1546076308_927266.png) fmp4文件: [fmp4文件](https://pan.baidu.com/s/1FHX_ytQzoynnTyXuxD4Cjg "")

请问在使用H264裸码流制作FMP4文件的时候,264码流的psp会发生变化的时候,FMP4头的avcC盒子的psp应该如何填写,才能让播放器正确播放视频?

![如图为需要填写的box](https://img-ask.csdn.net/upload/201911/08/1573178566_45491.png) ![如图为H264裸码流的I帧方框内为psp](https://img-ask.csdn.net/upload/201911/08/1573178639_200980.png)

fmp4文件不能正常播放,哪个box有问题?

我使用H264数据帧编码了一个fmp4文件,该文件由VLC player播放。我只能看到时间的倒转,却无法解码视频。能正常使用MP4文件解析器来解析文件结构(我怀疑哪个框的参数是错误的),但我不知道哪里出错了。哪位大神能帮我看看错哪了? 云盘连接: https://pan.baidu.com/s/1SOu1zRRlWfrUVc6peA0ZoQ

关于MP4(fmp4)文件音视频时间轴同步的问题

问题描述: 我自己利用获取的 H264帧 和 AAC帧编码生成fmp4(fargment MP4)文件,各个box以及数据已经填充完毕,但最后播放发现音视频不同步,且导致了视频卡顿 **我的音视频源数据参数是**: H264 : 15帧/s (只有 I/P帧) PCM:采样率:16KHz 单声道 ---->编码成 AAC数据(大概10帧/秒),且帧率不固定,只是大致。 编码fmp4文件参数: 视频: Time scale 12288 (0X00003000) Duration:计算的实际h264帧这一帧和上一帧的时间差换算成的内部时长 音频: Time scale 44100 (0X0000AC44) Duration : 在网上找的填的固定值1024(编码用的采样点数)我也试过填充“这一帧和上一帧的时间差换算成的内部时长”也卡顿, 还有就是因为源数据编码帧并不均匀,导致有时生成的 moof+ mdat box里边的音频数据又是很少(就只有一两帧),不知道这样会不会有影响。 见下边几个关键参数截图: ![图片说明](https://img-ask.csdn.net/upload/201901/10/1547112437_413017.png) ![图片说明](https://img-ask.csdn.net/upload/201901/10/1547112447_486352.png) ![图片说明](https://img-ask.csdn.net/upload/201901/10/1547112467_855184.png) ![图片说明](https://img-ask.csdn.net/upload/201901/10/1547112475_672748.png) ![图片说明](https://img-ask.csdn.net/upload/201901/10/1547112488_246973.png) **谁能告诉我这几个参数应该怎样设置,且有着怎样的关系呢?**

求一个正确的,能播放的,用 h264 编码的 fmp4 文件,哪位前辈能发我 邮箱

写了一个H264进行fmp4编码的程序,最后格式上已经没什么问题了,用VLC播放时间戳往前跑,但解析不出图像,想参考一个**H264编码**的正确的fmp4格式的文件,查查问题出现在哪 发我邮箱即可 945047422@qq.com,谢谢

为什么fmp4文件无法使用VLC解码音频,但它们可以通过PotPlayer正常播放

我有一个fmp4文件(使用h264和aac帧代码)。在使用VLC播放时,只有视频没有音频,但可以使用PotPlayer解析音频(腾讯视频播放器也可以)。AAC格式是ADTS。我的fmp4音频相关盒子的屏幕截图如下 ![图片说明](https://img-ask.csdn.net/upload/201901/14/1547465974_803170.png) ![图片说明](https://img-ask.csdn.net/upload/201901/14/1547465985_210178.png) ![图片说明](https://img-ask.csdn.net/upload/201901/14/1547466005_41854.png)

将H264文件转换为Mp4文件

实现h264文件转换为mp4文件,不需要播放出来。用getnextnal()函数实现,不要用ffmpeg函数做。

我的一个加密文件(音频)变为了后缀为fe_tempfile的三个文件,谁可以帮我试试看是否可以合并为一个文件?

我手机上照片保险箱的一个加密音频文件(文件名d9fd5bde-d4e7-4619-b2f1-6a43372e1558),突然不知道怎么就变为了前面名字一样(d9fd5bde-d4e7-4619-b2f1-6a43372e1558)但3个后缀分别为fe__tempfile、fe__tempfile.fe__header__temp、fe__tempfile.fe__tail__temp的三个文件,联系不到软件开发者,谁可以帮我试试看是否可以合并为一个文件吗?万分感谢!

ios 视频播放器播放不了

NSString *path = [[NSBundle mainBundle] pathForResource:@"1" ofType:@"mp4"]; NSURL *url = [NSURL fileURLWithPath:path]; MPMoviePlayerController *mp = [[MPMoviePlayerController alloc] initWithContentURL:url]; [mp.view setFrame:CGRectMake(0, 0, 320, 200)]; [mp.view setBackgroundColor:[UIColor redColor]]; [self.view addSubview:mp.view]; [mp play]; 错误原因:2014-08-04 11:43:48.371 JiaJS01[3183:90b] Cannot find executable for CFBundle 0x10c037500 </Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator7.1.sdk/System/Library/AccessibilityBundles/MusicLibrary.axbundle> (not loaded) 2014-08-04 11:43:48.387 JiaJS01[3183:90b] Cannot find executable for CFBundle 0x10c13c4a0 </Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator7.1.sdk/System/Library/AccessibilityBundles/CertUIFramework.axbundle> (not loaded) 在网上搜索的方法还原模拟器不可用,还原过后依然是报这个错误

在用MP的时候出了点小问题,生成的sql应该是对的,但就是执行不了,求助!

#### 其它用的都没问题,有insert,select,update都有。 #### 只有图片中这一句有问题,刚入门,但调试了好长时间了,找不到问题出在哪? ---- ![报错的信息LOG](https://img-ask.csdn.net/upload/201910/12/1570870543_581278.png) ----- #### 前面也有,贴个图看下 ---- ![正常的几处sql](https://img-ask.csdn.net/upload/201910/12/1570870628_998457.png) ---- #### 报错的那一条sql,打印出的log感觉没什么问题啊,怎么到下面执行的时候就不对了……

测试Nginx + PHP5-fmp安全性

<div class="post-text" itemprop="text"> <p>I would like to know if there is a toolset, project or something, that tries the most common bugs/exploits of Nginx + PHP5-fpm config, to test my server.</p> <p>I am mostly scared about the ability to execute PHP code in user uploads directory (that is public, example: <code>http://somesite.com/uploads/aaa.gif</code>).</p> </div>

关闭php-fpm为什么服务端仍然可以执行PHP程序?

centos系统下nginx+php-fpm+php7 配置完之后做测试, 关闭php-fpm之后网页无法打开,但是为什么在服务端(putty)仍然可以执行php程序文件? php-fpm关闭之后PHP文件不是都不能执行吗?

为什么直播时候会出现音视频不同步的情况?

为什么直播时候会出现音视频不同步的情况?现在是否有方案仅仅支持音频的情况?

在youtube视频上关闭自动播放功能

<div class="post-text" itemprop="text"> <p>I have a PHP/jQuery scraper function that essentially looks for web page content.</p> <p>One method looks for videos. When testing a youtube video page the video is scraped and is displayed just fine. Source code looks something like:</p> <pre><code>&lt;embed width="320" height="240" bgcolor="#000000" allowfullscreen="true" allowscriptaccess="always" flashvars="account_playback_token=&amp;amp;ptk=KrebsCOHO%252Buser&amp;amp;enablecsi=1&amp;amp;iv_close_button=0&amp;amp;mpvid=AAS2NjXQtb70zY15&amp;amp;fexp=912208%2C914092%2C906423%2C901604&amp;amp;hl=en_GB&amp;amp;autohide=2&amp;amp;csi_page_type=watch5ad&amp;amp;keywords=Company+of+Heroes%2CCompany+of+Heroes+2%2CCOH+2%2CCOH%2CCOHO%2CCompany+of+Heroes+Online%2CvCOH%2CCommander%2CDefensive+Doctrine%2CAirborne+Doctrine%2CInfantry+Doctrine%2CBlitzkrieg+Doctrine%2CTerror+Doctrine%2CArmor+Doctrine%2CGenHansKrebs%2CKrebsCOHO%2CCompany+of+Heroes+Replays%2CCompany+of+Heroes+Casts%2CCompany+of+Heroes+Brits%2CCompany+of+Heroes+British%2CPanzer+Elite%2CTales+of+Valor%2COpposing+Fronts%2CCOH+Strategy%2CCompany+of+Heroes+Cheats%2CCompany+of+Heroes+Hacks&amp;amp;cr=GB&amp;amp;cc3_module=http%3A%2F%2Fs.ytimg.com%2Fyt%2Fswfbin%2Fsubtitles3_module-vflNKUm_s.swf&amp;amp;host_language=en&amp;amp;iv3_module=http%3A%2F%2Fs.ytimg.com%2Fyt%2Fswfbin%2Fiv3_module-vflVIYXve.swf&amp;amp;no_get_video_log=1&amp;amp;fmt_list=46%2F1920x1080%2F99%2F0%2F0%2C45%2F1280x720%2F99%2F0%2F0%2C22%2F1280x720%2F9%2F0%2F115%2C44%2F854x480%2F99%2F0%2F0%2C35%2F854x480%2F9%2F0%2F115%2C43%2F640x360%2F99%2F0%2F0%2C34%2F640x360%2F9%2F0%2F115%2C18%2F640x360%2F9%2F0%2F115%2C5%2F320x240%2F7%2F0%2F0&amp;amp;iv_storage_server=http%3A%2F%2Fwww.youtube.com%2Fannotations%2F&amp;amp;targeting_video_doc_id=&amp;amp;trueview=True&amp;amp;theme=tlb&amp;amp;ad_preroll=1&amp;amp;tk=A6fmSiw2bPJ1To1EkQ_GEhN5IQb7NH3SA2Lr7AmnDtyq0YRIw5HQFw%3D%3D&amp;amp;iv_load_policy=1&amp;amp;cc_font=Arial+Unicode+MS%2C+arial%2C+verdana%2C+_sans&amp;amp;watch_xlb=http%3A%2F%2Fs.ytimg.com%2Fyt%2Fxlb%2Fwatch%2Fstrings-en_GB-vflXhsWkH.xlb&amp;amp;ad_channel_code_instream=afv_instream%2CVertical_Instream_8%2CVertical_Instream_41%2CVertical_Instream_933%2CVidVert8%2CVidVert41%2CVidVert933%2CVertical_8%2CVertical_41%2CVertical_933%2Cafv_instream_gb%2Cyt_mpvid_AAS2NjXQtb70zY15%2Cyt_cid_1640983%2Civp%2Cytexp_912208.914092.906423.901604%2Cytps_default%2Cytel_detailpage&amp;amp;sdetail=f%3Ag-u%2C&amp;amp;cafe_experiment_id=&amp;amp;timestamp=1326243854&amp;amp;cc_asr=1&amp;amp;ad_host=ca-host-pub-6901191551304350&amp;amp;ad_eurl=http%3A%2F%2Fwww.youtube.com%2Fvideo%2F0LzC0V_6TfI&amp;amp;showpopout=1&amp;amp;url_encoded_fmt_stream_map=url%3Dhttp%253A%252F%252Fo-o.preferred.lhr14s15.v2.lscache4.c.youtube.com%252Fvideoplayback%253Fsparams%253Did%25252Cexpire%25252Cip%25252Cipbits%25252Citag%25252Csource%25252Cratebypass%25252Ccp%2526fexp%253D912208%25252C914092%25252C906423%25252C901604%2526itag%253D46%2526ip%253D95.0.0.0%2526signature%253DBB3EA0AD473B59EC8EE739170DFC4252629C04F1.A698AF6CCB326B05C6F31A687CB5C47003607517%2526sver%253D3%2526ratebypass%253Dyes%2526source%253Dyoutube%2526expire%253D1326268838%2526key%253Dyt1%2526ipbits%253D8%2526cp%253DU0hRS1JRVl9IUkNOMV9KS1pJOnVjQzhtUzNZVjVv%2526id%253Dd0bcc2d15ffa4df2%26quality%3Dhd1080%26fallback_host%3Dtc.v2.cache4.c.youtube.com%26type%3Dvideo%252Fwebm%253B%2Bcodecs%253D%2522vp8.0%252C%2Bvorbis%2522%26itag%3D46%2Curl%3Dhttp%253A%252F%252Fo-o.preferred.lhr14s15.v22.lscache1.c.youtube.com%252Fvideoplayback%253Fsparams%253Did%25252Cexpire%25252Cip%25252Cipbits%25252Citag%25252Csource%25252Cratebypass%25252Ccp%2526fexp%253D912208%25252C914092%25252C906423%25252C901604%2526itag%253D45%2526ip%253D95.0.0.0%2526signature%253D9CA9C6F49F04CB131E4D3B9CFD12846CFA9E0C20.20C107ED1D2902332117EE528BB48DCB8A24D7CB%2526sver%253D3%2526ratebypass%253Dyes%2526source%253Dyoutube%2526expire%253D1326268838%2526key%253Dyt1%2526ipbits%253D8%2526cp%253DU0hRS1JRVl9IUkNOMV9KS1pJOnVjQzhtUzNZVjVv%2526id%253Dd0bcc2d15ffa4df2%26quality%3Dhd720%26fallback_host%3Dtc.v22.cache1.c.youtube.com%26type%3Dvideo%252Fwebm%253B%2Bcodecs%253D%2522vp8.0%252C%2Bvorbis%2522%26itag%3D45%2Curl%3Dhttp%253A%252F%252Fo-o.preferred.lhr14s15.v1.lscache1.c.youtube.com%252Fvideoplayback%253Fsparams%253Did%25252Cexpire%25252Cip%25252Cipbits%25252Citag%25252Csource%25252Cratebypass%25252Ccp%2526fexp%253D912208%25252C914092%25252C906423%25252C901604%2526itag%253D22%2526ip%253D95.0.0.0%2526signature%253DB20BCC27B8113F47F66278E4208FE39BD53963C2.053298B3B43263F014DE8F65BE964D3815CB7683%2526sver%253D3%2526ratebypass%253Dyes%2526source%253Dyoutube%2526expire%253D1326268838%2526key%253Dyt1%2526ipbits%253D8%2526cp%253DU0hRS1JRVl9IUkNOMV9KS1pJOnVjQzhtUzNZVjVv%2526id%253Dd0bcc2d15ffa4df2%26quality%3Dhd720%26fallback_host%3Dtc.v1.cache1.c.youtube.com%26type%3Dvideo%252Fmp4%253B%2Bcodecs%253D%2522avc1.64001F%252C%2Bmp4a.40.2%2522%26itag%3D22%2Curl%3Dhttp%253A%252F%252Fo-o.preferred.lhr14s15.v10.lscache8.c.youtube.com%252Fvideoplayback%253Fsparams%253Did%25252Cexpire%25252Cip%25252Cipbits%25252Citag%25252Csource%25252Cratebypass%25252Ccp%2526fexp%253D912208%25252C914092%25252C906423%25252C901604%2526itag%253D44%2526ip%253D95.0.0.0%2526signature%253D716B089CA9DFDB211533C46127FF2183118B8113.881E822D36F6CF39699C3BFAE2AFCF97B4BB9586%2526sver%253D3%2526ratebypass%253Dyes%2526source%253Dyoutube%2526expire%253D1326268838%2526key%253Dyt1%2526ipbits%253D8%2526cp%253DU0hRS1JRVl9IUkNOMV9KS1pJOnVjQzhtUzNZVjVv%2526id%253Dd0bcc2d15ffa4df2%26quality%3Dlarge%26fallback_host%3Dtc.v10.cache8.c.youtube.com%26type%3Dvideo%252Fwebm%253B%2Bcodecs%253D%2522vp8.0%252C%2Bvorbis%2522%26itag%3D44%2Curl%3Dhttp%253A%252F%252Fo-o.preferred.lhr14s15.v14.lscache5.c.youtube.com%252Fvideoplayback%253Fsparams%253Did%25252Cexpire%25252Cip%25252Cipbits%25252Citag%25252Csource%25252Calgorithm%25252Cburst%25252Cfactor%25252Ccp%2526fexp%253D912208%25252C914092%25252C906423%25252C901604%2526algorithm%253Dthrottle-factor%2526itag%253D35%2526ip%253D95.0.0.0%2526burst%253D40%2526sver%253D3%2526signature%253D724A616F7861BC4BFF321FAC98F78FEF9F50183D.540D2E9D4E1772AE72CE68124A6BDCA3844E37FA%2526source%253Dyoutube%2526expire%253D1326268838%2526key%253Dyt1%2526ipbits%253D8%2526factor%253D1.25%2526cp%253DU0hRS1JRVl9IUkNOMV9KS1pJOnVjQzhtUzNZVjVv%2526id%253Dd0bcc2d15ffa4df2%26quality%3Dlarge%26fallback_host%3Dtc.v14.cache5.c.youtube.com%26type%3Dvideo%252Fx-flv%26itag%3D35%2Curl%3Dhttp%253A%252F%252Fo-o.preferred.lhr14s15.v9.lscache2.c.youtube.com%252Fvideoplayback%253Fsparams%253Did%25252Cexpire%25252Cip%25252Cipbits%25252Citag%25252Csource%25252Cratebypass%25252Ccp%2526fexp%253D912208%25252C914092%25252C906423%25252C901604%2526itag%253D43%2526ip%253D95.0.0.0%2526signature%253D5690ED3BF298418A63A1FC3C88C958A68584195B.457E8F33852B796BECA5640EF06DC20DDE82154C%2526sver%253D3%2526ratebypass%253Dyes%2526source%253Dyoutube%2526expire%253D1326268838%2526key%253Dyt1%2526ipbits%253D8%2526cp%253DU0hRS1JRVl9IUkNOMV9KS1pJOnVjQzhtUzNZVjVv%2526id%253Dd0bcc2d15ffa4df2%26quality%3Dmedium%26fallback_host%3Dtc.v9.cache2.c.youtube.com%26type%3Dvideo%252Fwebm%253B%2Bcodecs%253D%2522vp8.0%252C%2Bvorbis%2522%26itag%3D43%2Curl%3Dhttp%253A%252F%252Fo-o.preferred.lhr14s15.v6.lscache4.c.youtube.com%252Fvideoplayback%253Fsparams%253Did%25252Cexpire%25252Cip%25252Cipbits%25252Citag%25252Csource%25252Calgorithm%25252Cburst%25252Cfactor%25252Ccp%2526fexp%253D912208%25252C914092%25252C906423%25252C901604%2526algorithm%253Dthrottle-factor%2526itag%253D34%2526ip%253D95.0.0.0%2526burst%253D40%2526sver%253D3%2526signature%253D893DB716EDFB212C142092E4CDBCC0411D5F739F.ABE5CCCB87A14F189EF7CC5B09E5E9155FA42A4C%2526source%253Dyoutube%2526expire%253D1326268838%2526key%253Dyt1%2526ipbits%253D8%2526factor%253D1.25%2526cp%253DU0hRS1JRVl9IUkNOMV9KS1pJOnVjQzhtUzNZVjVv%2526id%253Dd0bcc2d15ffa4df2%26quality%3Dmedium%26fallback_host%3Dtc.v6.cache4.c.youtube.com%26type%3Dvideo%252Fx-flv%26itag%3D34%2Curl%3Dhttp%253A%252F%252Fo-o.preferred.lhr14s15.v5.lscache4.c.youtube.com%252Fvideoplayback%253Fsparams%253Did%25252Cexpire%25252Cip%25252Cipbits%25252Citag%25252Csource%25252Cratebypass%25252Ccp%2526fexp%253D912208%25252C914092%25252C906423%25252C901604%2526itag%253D18%2526ip%253D95.0.0.0%2526signature%253D961584FFF0C062FAD18B1D50B608148227664DB6.0BE5C5579A29A79168BBFD3356A60CA015603F10%2526sver%253D3%2526ratebypass%253Dyes%2526source%253Dyoutube%2526expire%253D1326268838%2526key%253Dyt1%2526ipbits%253D8%2526cp%253DU0hRS1JRVl9IUkNOMV9KS1pJOnVjQzhtUzNZVjVv%2526id%253Dd0bcc2d15ffa4df2%26quality%3Dmedium%26fallback_host%3Dtc.v5.cache4.c.youtube.com%26type%3Dvideo%252Fmp4%253B%2Bcodecs%253D%2522avc1.42001E%252C%2Bmp4a.40.2%2522%26itag%3D18%2Curl%3Dhttp%253A%252F%252Fo-o.preferred.lhr14s15.v21.lscache4.c.youtube.com%252Fvideoplayback%253Fsparams%253Did%25252Cexpire%25252Cip%25252Cipbits%25252Citag%25252Csource%25252Calgorithm%25252Cburst%25252Cfactor%25252Ccp%2526fexp%253D912208%25252C914092%25252C906423%25252C901604%2526algorithm%253Dthrottle-factor%2526itag%253D5%2526ip%253D95.0.0.0%2526burst%253D40%2526sver%253D3%2526signature%253DA9B71D32C230E1F299E367D90AFA645A5D5E80A0.7E100FAA814386C7560B9657AA6932F2D8983458%2526source%253Dyoutube%2526expire%253D1326268838%2526key%253Dyt1%2526ipbits%253D8%2526factor%253D1.25%2526cp%253DU0hRS1JRVl9IUkNOMV9KS1pJOnVjQzhtUzNZVjVv%2526id%253Dd0bcc2d15ffa4df2%26quality%3Dsmall%26fallback_host%3Dtc.v21.cache4.c.youtube.com%26type%3Dvideo%252Fx-flv%26itag%3D5&amp;amp;tmi=1&amp;amp;iv_logging_level=3&amp;amp;ad_flags=0&amp;amp;endscreen_module=http%3A%2F%2Fs.ytimg.com%2Fyt%2Fswfbin%2Fendscreen-vfl6o3XZn.swf&amp;amp;cid=1640983&amp;amp;referrer=None&amp;amp;afv_instream_max=20000&amp;amp;ad_logging_flag=1&amp;amp;t=vjVQa1PpcFPtL2KNy9BlI1YWfqrxIuH0Q7IxA2lS4fY%3D&amp;amp;sffb=True&amp;amp;ttsurl=http%3A%2F%2Fwww.youtube.com%2Fapi%2Ftimedtext%3Fsparams%3Dasr_langs%252Ccaps%252Cexpire%252Cv%26asr_langs%3Den%252Cko%252Cja%26caps%3Dasr%26expire%3D1326268800%26key%3Dyttt1%26signature%3D08601E0AFAF4E565C284D451574665CE892A187A.C3A7BCC212D929F08BA9FB37BA1FA706CE8B408B%26hl%3Den-GB&amp;amp;aftv=True&amp;amp;creator=KrebsCOHO&amp;amp;allow_embed=1&amp;amp;ad_host_tier=2902314&amp;amp;rvs=view_count%3D1%252C978%26author%3DKrebsCOHO%26length_seconds%3D2153%26id%3D51if2_4DyoY%26title%3DCompany%2Bof%2BHeroes%2B%252395%2B-%2BGuess%2BWho%2527s%2BBack%2Cview_count%3D1%252C287%26author%3DKrebsCOHO%26length_seconds%3D2128%26id%3DnpOGF24Xun0%26title%3DBattlefield%2B3%2B%25239%2B-%2BThe%2BAmazing%2BBack%2Bto%2BKarkand%2Cview_count%3D2%252C386%26author%3DKrebsCOHO%26length_seconds%3D2913%26id%3Dc91SxbW5RTI%26title%3D%255BCOH%255D%2B%252382%2B-%2BOne%2BMove%2Bto%2BChange%2Bit%2BAll%2Cview_count%3D1%252C337%26author%3Dfrewd100%26length_seconds%3D1555%26id%3DsgxLZTsoZEk%26title%3DCompany%2Bof%2BHeroes%2B3v3%2BOnline%2BBattle%2BRefinery%2B%25281%252F2%2529%2Cview_count%3D3%252C077%26author%3DKrebsCOHO%26length_seconds%3D3400%26id%3D5fHOapLYenQ%26title%3DCompany%2Bof%2BHeroes%2B%252397%2B-%2BEurope%2BIn%2BRuins%2BShowcase%2Cview_count%3D27%252C804%26author%3DEvolvSports%26length_seconds%3D351%26id%3DP4y5fdDZH60%26title%3DChris%2BSharma%2Band%2BMatt%2BSegal%2Bon%2Bthe%2BShaman%2Cview_count%3D2%252C037%26author%3DKrebsCOHO%26length_seconds%3D2569%26id%3DolWg5hYRv0o%26title%3DCompany%2Bof%2BHeroes%2B%252393%2B-%2BValiant%2BSacrifices%2Cview_count%3D255%252C178%26author%3DTheIllustrationArt%26length_seconds%3D180%26id%3DbN1_h_eGitE%26title%3DThe%2BTale%2Bof%2Bthe%2BThree%2BBrothers%2B%2528HD%2529%2Cview_count%3D4%252C312%26author%3DKrebsCOHO%26length_seconds%3D2418%26id%3DG1Isd6SM8aM%26title%3D%255BCOH%255D%2B%252374%2B-%2BLevel%2B20%2BWehrmacht%2Cview_count%3D7%252C734%26author%3DVorbeugungshaft%26length_seconds%3D292%26id%3DEO7NIzsBf44%26title%3DLeger%2Bdes%2BHeils%2B-%2BDer%2BGott%252C%2Bder%2BEisen%2Bwachsen%2Blie%25C3%259F%2Cview_count%3D153%252C325%26author%3DSarahFan0503%26length_seconds%3D338%26id%3DAnUVqu4CYus%26title%3DSarah%2BConnor%2B-%2B%2522Christmas%2BIn%2BMy%2BHeart%2522%2BLIVE%2B%2540%2BThe%2BChristmas%2BSpecial%2B2005%2Cview_count%3D23%252C660%26author%3DTriple6Games%26length_seconds%3D428%26id%3DEPUYh57VlH8%26title%3DTropico%2B4-PC%2BGameplay%2BHD%2BMaxed%2BOut&amp;amp;vq=auto&amp;amp;iv_enabled_features=TCS&amp;amp;sendtmp=1&amp;amp;ad3_module=http%3A%2F%2Fs.ytimg.com%2Fyt%2Fswfbin%2Fad3-vfly6I_ZM.swf&amp;amp;gut_tag=%2F4061%2Fytunknown%2Fmain&amp;amp;ptchn=KrebsCOHO&amp;amp;as_launched_in_country=1&amp;amp;length_seconds=2779&amp;amp;feature=g-u&amp;amp;enablejsapi=1&amp;amp;plid=AAS2NjXP5DaZ4rS5&amp;amp;iv_module=http%3A%2F%2Fs.ytimg.com%2Fyt%2Fswfbin%2Fiv_module-vflBrKDBK.swf&amp;amp;afv=True&amp;amp;ad_video_pub_id=ca-pub-6219811747049371&amp;amp;ad_slots=0&amp;amp;watermark=%2Chttp%3A%2F%2Fs.ytimg.com%2Fyt%2Fimg%2Fwatermark%2Fyoutube_watermark-vflHX6b6E.png%2Chttp%3A%2F%2Fs.ytimg.com%2Fyt%2Fimg%2Fwatermark%2Fyoutube_hd_watermark-vflAzLcD6.png&amp;amp;supersizefeatured=1&amp;amp;oid=oyMOP28xy70&amp;amp;cc_module=http%3A%2F%2Fs.ytimg.com%2Fyt%2Fswfbin%2Fsubtitle_module-vfld45BNe.swf&amp;amp;ad_channel_code_overlay=invideo_overlay_480x70_cat20%2Cafv_overlay%2CVertical_Overlay_8%2CVertical_Overlay_41%2CVertical_Overlay_933%2CVidVert8%2CVidVert41%2CVidVert933%2CVertical_8%2CVertical_41%2CVertical_933%2Cyt_mpvid_AAS2NjXQtb70zY15%2Cyt_cid_1640983%2Civp%2Cytexp_912208.914092.906423.901604%2Cytps_default%2Cytel_detailpage&amp;amp;pyv_in_related_cafe_experiment_id=&amp;amp;video_id=0LzC0V_6TfI&amp;amp;sk=KGM0UWVabLqnTDH6CGaGWIPrk8jgepgiC" id="movie_player" src="http://s.ytimg.com/yt/swfbin/watch_as3-vfl7SkMGe.swf" type="application/x-shockwave-flash"&gt; </code></pre> <p>What I would like to know is, how can I stop this video from autoplaying? I have tried various ways of adding <code>autoplay=0</code> after the <code>src</code> etc with no luck.</p> <p>Has anyone had experience with the method I'm using? Is it technically viable?</p> <p>Thanks</p> </div>

nginx没有生成任何php-fpm.sock任何人有任何想法为什么?

<div class="post-text" itemprop="text"> <p>I have recently built a new web server using the (LEMP) method and it's all running good, I also installed Varnish and phpMyAdmin into the lemp install. </p> <p>I added unix: /var/run/php-fpm/php-fpm.sock to the location / { </p> <p>Then I told www.conf to listen to /var/run/php-fpm/php-fpm.sock </p> <p>however nginx isn't generating any sockets to the /var/run/php-fpm folder. </p> <p>All the services are running correctly and I can access the default webpage at my-ip but trying to access anything else i.e my-ip/anythingelse gives me 502 bad gateway because it's not finding the socket. </p> <p>Does anyone know what could be the cause and a fix? </p> <p>Here's my nginx.conf:</p> <pre class="lang-none prettyprint-override"><code>user nginx; worker_processes 4; error_log /var/log/nginx/error.log; pid /run/nginx.pid; events { worker_connections 1024; } http { include /etc/nginx/mime.types; default_type application/octet-stream; log_format main '$remote_addr - $remote_user [$time_local] "$request" ' '$status $body_bytes_sent "$http_referer" ' '"$http_user_agent" "$http_x_forwarded_for"'; access_log /var/log/nginx/access.log main; sendfile on; keepalive_timeout 60; include /etc/nginx/conf.d/*.conf; index index.html index.htm; server { listen 127.0.0.1:8080; root /usr/share/nginx/html; location / { } error_page 404 /404.html; location = /40x.html { } error_page 500 502 503 504 /50x.html; location = /50x.html { } location ~ \.php$ { root /usr/share/nginx/html; fastcgi_split_path_info ^(.+\.php)(.*)$; fastcgi_pass unix:/var/run/php-fpm/php-fpm.sock; fastcgi_index index.php; fastcgi_param SCRIPT_FILENAME $document_root/$fastcgi_script_name; include fastcgi_params; } } server { listen 443; ssl on; ssl_certificate /etc/nginx/ssl/server.crt; ssl_certificate_key /etc/nginx/ssl/server.key; ssl_session_timeout 5m; ssl_protocols SSLv2 SSLv3 TLSv1; ssl_ciphers HIGH:!aNULL:!MD5; ssl_prefer_server_ciphers on; location / { root html; index index.html index.htm; } location ~* ^/phpMyAdmin/(.+\.(jpg|jpeg|gif|css|png|js|ico|html|xml|txt))$ { root /usr/share/; } location ~ \.php$ { root /usr/share/nginx/html; fastcgi_split_path_info ^(.+\.php)(.*)$; fastcgi_pass unix:/var/run/php-fpm/php-fpm.sock; fastcgi_index index.php; fastcgi_param SCRIPT_FILENAME $document_root/$fastcgi_script_name; include fastcgi_params; } } } </code></pre> <p>Proto Recv-Q Send-Q Local Address Foreign Address State PID/Program name<br> tcp 0 0 127.0.0.1:25 0.0.0.0:* LISTEN 2519/master<br> tcp 0 0 0.0.0.0:443 0.0.0.0:* LISTEN 4010/nginx: master<br> tcp 0 0 127.0.0.1:6082 0.0.0.0:* LISTEN 4046/varnishd<br> tcp 0 0 127.0.0.1:9000 0.0.0.0:* LISTEN 3988/php-fpm: maste tcp 0 0 127.0.0.1:3306 0.0.0.0:* LISTEN 2711/mysqld<br> tcp 0 0 0.0.0.0:38350 0.0.0.0:* LISTEN 1559/rpc.statd<br> tcp 0 0 0.0.0.0:111 0.0.0.0:* LISTEN 1362/rpcbind<br> tcp 0 0 127.0.0.1:80 0.0.0.0:* LISTEN 4050/varnishd<br> tcp 0 0 127.0.0.1:8080 0.0.0.0:* LISTEN 4010/nginx: master<br> tcp 0 0 0.0.0.0:22 0.0.0.0:* LISTEN 1361/sshd<br> tcp 0 0 127.0.0.1:631 0.0.0.0:* LISTEN 3500/cupsd<br> tcp6 0 0 ::1:25 :::* LISTEN 2519/master<br> tcp6 0 0 :::33209 :::* LISTEN 1559/rpc.statd<br> tcp6 0 0 :::111 :::* LISTEN 1362/rpcbind<br> tcp6 0 0 :::22 :::* LISTEN 1361/sshd<br> tcp6 0 0 ::1:631 :::* LISTEN 3500/cupsd<br> udp 0 0 0.0.0.0:59473 0.0.0.0:* 1559/rpc.statd<br> udp 0 0 0.0.0.0:111 0.0.0.0:* 1362/rpcbind<br> udp 0 0 0.0.0.0:123 0.0.0.0:* 726/chronyd<br> udp 0 0 127.0.0.1:323 0.0.0.0:* 726/chronyd<br> udp 0 0 0.0.0.0:679 0.0.0.0:* 1362/rpcbind<br> udp 0 0 127.0.0.1:888 0.0.0.0:* 1559/rpc.statd<br> udp 0 0 0.0.0.0:42032 0.0.0.0:* 685/avahi-daemon: r udp 0 0 0.0.0.0:5353 0.0.0.0:* 685/avahi-daemon: r udp6 0 0 :::111 :::* 1362/rpcbind<br> udp6 0 0 :::123 :::* 726/chronyd<br> udp6 0 0 ::1:323 :::* 726/chronyd<br> udp6 0 0 :::679 :::* 1362/rpcbind<br> udp6 0 0 :::60779 :::* 1559/rpc.statd<br> [root@localhost ~]# </p> </div>

各位大侠,帮我看一下程序,stm32 CAN过滤器功能,过滤器组大于4就没有作用了,为什么?

GPIO_InitTypeDef GPIO_InitStructure; CAN_InitTypeDef CAN_InitStructure; CAN_FilterInitTypeDef CAN_FilterInitStructure1,CAN_FilterInitStructure2,CAN_FilterInitStructure3,CAN_FilterInitStructure4; CAN_FilterInitTypeDef CAN_FilterInitStructure5,CAN_FilterInitStructure6; NVIC_InitTypeDef NVIC_InitStructure; unsigned short mask; unsigned short filter_data1[] = {0x500, 0x501, 0x502, 0x503, 0x504, 0x505, 0x506, 0x507, 0x508, 0x509, 0x50A, 0x50B, 0x50C, 0x50D, 0x50E, 0x50F}; unsigned short filter_data2[] = {0x510, 0x511, 0x512, 0x513, 0x514, 0x515, 0x516, 0x517, 0x518, 0x519, 0x51A, 0x51B, 0x51C, 0x51D, 0x51E, 0x51F}; unsigned short filter_data3[] = {0x520, 0x521, 0x522, 0x523, 0x524, 0x525, 0x526, 0x527, 0x528, 0x529, 0x52A, 0x52B, 0x52C, 0x52D, 0x52E, 0x52F}; unsigned short filter_data4[] = {0x530, 0x531, 0x532, 0x533, 0x534, 0x535, 0x536, 0x537, 0x538, 0x539, 0x53A, 0x53B, 0x53C, 0x53D, 0x53E, 0x53F}; unsigned short filter_data5[] = {0x4E0,0x4E3,0x5E8,0x540}; //使能相关时钟 RCC_AHB1PeriphClockCmd(RCC_AHB1Periph_GPIOA, ENABLE);//使能PORTA时钟 RCC_APB1PeriphClockCmd(RCC_APB1Periph_CAN1, ENABLE);//使能CAN1时钟 //初始化GPIO GPIO_InitStructure.GPIO_Pin = GPIO_Pin_11| GPIO_Pin_12; GPIO_InitStructure.GPIO_Mode = GPIO_Mode_AF;//复用功能 GPIO_InitStructure.GPIO_OType = GPIO_OType_PP;//推挽输出 GPIO_InitStructure.GPIO_Speed = GPIO_Speed_100MHz;//100MHz GPIO_InitStructure.GPIO_PuPd = GPIO_PuPd_UP;//上拉 GPIO_Init(GPIOA, &GPIO_InitStructure);//初始化PA11,PA12 //引脚复用映射配置 GPIO_PinAFConfig(GPIOA,GPIO_PinSource11,GPIO_AF_CAN1); //GPIOA11复用为CAN1 GPIO_PinAFConfig(GPIOA,GPIO_PinSource12,GPIO_AF_CAN1); //GPIOA12复用为CAN1 //CAN单元设置 CAN_InitStructure.CAN_TTCM=DISABLE; //非时间触发通信模式 CAN_InitStructure.CAN_ABOM=DISABLE; //软件自动离线管理 CAN_InitStructure.CAN_AWUM=DISABLE;//睡眠模式通过软件唤醒(清除CAN->MCR的SLEEP位) CAN_InitStructure.CAN_NART=ENABLE; //禁止报文自动传送 CAN_InitStructure.CAN_RFLM=DISABLE; //报文不锁定,新的覆盖旧的 CAN_InitStructure.CAN_TXFP=DISABLE; //优先级由报文标识符决定 CAN_InitStructure.CAN_Mode= CAN_Mode_Normal; //模式设置 CAN_InitStructure.CAN_SJW=CAN_SJW_1tq; //重新同步跳跃宽度(Tsjw)为tsjw+1个时间单位 CAN_SJW_1tq~CAN_SJW_4tq CAN_InitStructure.CAN_BS1=CAN_BS1_7tq; //Tbs1范围CAN_BS1_1tq ~CAN_BS1_16tq CAN_InitStructure.CAN_BS2=CAN_BS2_6tq;//Tbs2范围CAN_BS2_1tq ~ CAN_BS2_8tq CAN_InitStructure.CAN_Prescaler=6; //分频系数(Fdiv)为brp+1 CAN_Init(CAN1, &CAN_InitStructure); // 初始化CAN1 //配置过滤器 CAN_FilterInitStructure1.CAN_FilterNumber=0; //过滤器0 CAN_FilterInitStructure1.CAN_FilterMode=CAN_FilterMode_IdMask; CAN_FilterInitStructure1.CAN_FilterScale=CAN_FilterScale_32bit; //32位 CAN_FilterInitStructure1.CAN_FilterIdHigh=filter_data1[0] << 5;////32位ID CAN_FilterInitStructure1.CAN_FilterIdLow=0x0000; mask =0xff0; // CAN_FilterInitStructure1.CAN_FilterMaskIdHigh= (mask << 5);//32位MASK CAN_FilterInitStructure1.CAN_FilterMaskIdLow=0x0000 | 0x02; CAN_FilterInitStructure1.CAN_FilterFIFOAssignment=CAN_Filter_FIFO0;//过滤器0关联到FIFO0 CAN_FilterInitStructure1.CAN_FilterActivation=ENABLE; //激活过滤器0 CAN_FilterInit(&CAN_FilterInitStructure1);//滤波器初始化 //配置过滤器 CAN_FilterInitStructure2.CAN_FilterNumber=1; //过滤器1 CAN_FilterInitStructure2.CAN_FilterMode=CAN_FilterMode_IdMask; CAN_FilterInitStructure2.CAN_FilterScale=CAN_FilterScale_32bit; //32位 CAN_FilterInitStructure2.CAN_FilterIdHigh=filter_data2[0] << 5;////32位ID CAN_FilterInitStructure2.CAN_FilterIdLow=0x0000; mask =0xff0; // CAN_FilterInitStructure2.CAN_FilterMaskIdHigh= (mask << 5);//32位MASK CAN_FilterInitStructure2.CAN_FilterMaskIdLow=0x0000 | 0x02; CAN_FilterInitStructure2.CAN_FilterFIFOAssignment=CAN_Filter_FIFO0;//过滤器0关联到FIFO0 CAN_FilterInitStructure2.CAN_FilterActivation=ENABLE; //激活过滤器0 CAN_FilterInit(&CAN_FilterInitStructure2);//滤波器初始化 //配置过滤器 CAN_FilterInitStructure3.CAN_FilterNumber=2; //过滤器2 CAN_FilterInitStructure3.CAN_FilterMode=CAN_FilterMode_IdMask; CAN_FilterInitStructure3.CAN_FilterScale=CAN_FilterScale_32bit; //32位 CAN_FilterInitStructure3.CAN_FilterIdHigh=filter_data3[0] << 5;////32位ID CAN_FilterInitStructure3.CAN_FilterIdLow=0x0000; mask =0xff0; // CAN_FilterInitStructure3.CAN_FilterMaskIdHigh= (mask << 5);//32位MASK CAN_FilterInitStructure3.CAN_FilterMaskIdLow=0x0000 | 0x02; CAN_FilterInitStructure3.CAN_FilterFIFOAssignment=CAN_Filter_FIFO0;//过滤器0关联到FIFO0 CAN_FilterInitStructure3.CAN_FilterActivation=ENABLE; //激活过滤器0 CAN_FilterInit(&CAN_FilterInitStructure3);//滤波器初始化 //配置过滤器 CAN_FilterInitStructure4.CAN_FilterNumber=3; //过滤器3 CAN_FilterInitStructure4.CAN_FilterMode=CAN_FilterMode_IdMask; CAN_FilterInitStructure4.CAN_FilterScale=CAN_FilterScale_32bit; //32位 CAN_FilterInitStructure4.CAN_FilterIdHigh=filter_data4[0] << 5;////32位ID CAN_FilterInitStructure4.CAN_FilterIdLow=0x0000; mask =0xff0; // CAN_FilterInitStructure4.CAN_FilterMaskIdHigh= (mask << 5);//32位MASK CAN_FilterInitStructure4.CAN_FilterMaskIdLow=0x0000 | 0x02; CAN_FilterInitStructure4.CAN_FilterFIFOAssignment=CAN_Filter_FIFO0;//过滤器0关联到FIFO0 CAN_FilterInitStructure4.CAN_FilterActivation=ENABLE; //激活过滤器0 CAN_FilterInit(&CAN_FilterInitStructure4);//滤波器初始化 // //配置过滤器 CAN_FilterInitStructure5.CAN_FilterNumber=4; //过滤器4 CAN_FilterInitStructure5.CAN_FilterMode=CAN_FilterMode_IdList; CAN_FilterInitStructure5.CAN_FilterScale=CAN_FilterScale_16bit; //32位 CAN_FilterInitStructure5.CAN_FilterIdHigh=filter_data5[0] << 5;////32位ID CAN_FilterInitStructure5.CAN_FilterIdLow=0x0000 | CAN_ID_STD; CAN_FilterInitStructure5.CAN_FilterMaskIdHigh= (filter_data5[2] << 5);//32位MASK CAN_FilterInitStructure5.CAN_FilterMaskIdLow=0x0000 | CAN_ID_STD; CAN_FilterInitStructure5.CAN_FilterFIFOAssignment=CAN_Filter_FIFO0;//过滤器0关联到FIFO0 CAN_FilterInitStructure5.CAN_FilterActivation=ENABLE; //激活过滤器0 CAN_FilterInit(&CAN_FilterInitStructure5);//滤波器初始化 //配置过滤器 CAN_FilterInitStructure6.CAN_FilterNumber=5; //过滤器5 只要过滤器组大于4,次滤波器组就没有作用了 ????????????? CAN_FilterInitStructure6.CAN_FilterMode=CAN_FilterMode_IdList; CAN_FilterInitStructure6.CAN_FilterScale=CAN_FilterScale_32bit; //32位 CAN_FilterInitStructure6.CAN_FilterIdHigh=filter_data5[2] << 5;////32位ID CAN_FilterInitStructure6.CAN_FilterIdLow=0x0000 | CAN_ID_STD; CAN_FilterInitStructure6.CAN_FilterMaskIdHigh= (filter_data5[3] << 5);//32位MASK CAN_FilterInitStructure6.CAN_FilterMaskIdLow=0x0000 | CAN_ID_STD; CAN_FilterInitStructure6.CAN_FilterFIFOAssignment=CAN_Filter_FIFO0;//过滤器0关联到FIFO0 CAN_FilterInitStructure6.CAN_FilterActivation=ENABLE; //激活过滤器0 CAN_FilterInit(&CAN_FilterInitStructure6);//滤波器初始化 CAN_ITConfig(CAN1,CAN_IT_FMP0,ENABLE);//FIFO0消息挂号中断允许. NVIC_InitStructure.NVIC_IRQChannel = CAN1_RX0_IRQn; NVIC_InitStructure.NVIC_IRQChannelPreemptionPriority = 0; // 主优先级为1 NVIC_InitStructure.NVIC_IRQChannelSubPriority = 3; // 次优先级为0 NVIC_InitStructure.NVIC_IRQChannelCmd = ENABLE; NVIC_Init(&NVIC_InitStructure);

Composer内存限制docker

<div class="post-text" itemprop="text"> <p>I have a problem with <strong>composer install</strong> on docker. This is my <strong>docker-compose</strong> file:</p> <pre><code>version: '3' services: webserver: image: nginx:latest ports: - 80:80 - 433:433 volumes: - ./docker/nginx/default.conf:/etc/nginx/conf.d/default.conf - ./:/var/www/html/ links: - php-fmp - db networks: - app-network php-fmp: build: docker/php-fmp volumes: - ./:/var/www/html/ ports: - 9000:9000 links: - db networks: - app-network db: image: mysql ports: - 3306:3306 volumes: - /var/lib/mysql command: --default-authentication-plugin=mysql_native_password restart: always environment: - MYSQL_DATABASE=goexpress - MYSQL_USER=root - MYSQL_PASSWORD=root - MYSQL_ROOT_PASSWORD=docker networks: - app-network networks: app-network: driver: bridge </code></pre> <p>I try to execute <strong>docker-compose run php-fmp composer install</strong> it starts after some minutes it shows <strong>memory limit xxxxxxxxx</strong>. I have tried also <strong>memory_limit=-1</strong>. </p> <p><strong>My laptop memory: 6GB.</strong> </p> <p>In another pc it works perfect. </p> <p>Before upgrade of memory it has worked. Memory before was 4GB now it is 6GB. The project that I want to run is symfony.</p> </div>

微信公众号发送的图文消息里面,点击图片,跳转到外部链接,如何做到?

请教大神:微信公众号发送的图文消息里面,点击图片,跳转到外部链接,如何做到? 例子:公众号“小茶一丛“;这家的图文消息里面有个优惠券,点击优惠券,跳转到外部链接 https://wx2.qq.com/cgi-bin/mmwebwx-bin/webwxcheckurl?requrl=http%3A%2F%2Fmp.weixin.qq.com%2Fs%3F__biz%3DMzA4NTYxNzk1Nw%3D%3D%26mid%3D2653928097%26idx%3D2%26sn%3Dd5aa345f6ea2902b73bcd0c2e04ed23c%26chksm%3D840e26ebb379affda1955666719088608d83f8888b5a0d246efed71386e7cb010c3b04f2b895%26mpshare%3D1%26scene%3D1%26srcid%3D01162vhKX8OltKjVumscC270%23rd&skey=%40crypt_fe66c1db_624033384cee9f1514b2a06af3916adc&deviceid=e686207107642800&pass_ticket=undefined&opcode=2&scene=1&username=@7bfe2f2990902ad01d6a0c60c8e5a805

PHP Artisan Command在CentOS 7上没有使用php-fpm在Nginx中工作

<div class="post-text" itemprop="text"> <p>Just finished setting up a LEMP (Linux, Nginx, MySQL and PHP) environment in a CentOS server. And after uploading a Laravel app everything seemd to be working correctly.</p> <p>I needed to execute a php artisan command via SSH, and when i did i noticed that the command wasn't being executed correctly. When i execute an artisan command in the application's folder i get the following message:</p> <pre><code>&gt; php artisan Usage: php [-n] [-e] [-h] [-i] [-m] [-v] [-t] [-p &lt;prefix&gt;] [-g &lt;pid&gt;] [-c &lt;file&gt;] [-d foo[=bar]] [-y &lt;file&gt;] [-D] [-F [-O]] (...) </code></pre> <p>I have php installed correctly and the app is running normally:</p> <pre><code>&gt; php -v PHP 7.1.8 (fpm-fcgi) (built: Aug 9 2017 13:21:53) Copyright (c) 1997-2017 The PHP Group Zend Engine v3.1.0, Copyright (c) 1998-2017 Zend Technologies </code></pre> <p>What can be the issue?</p> <p><strong>UPDATE: As @Devon suggested, i was not using the php-cli. So in order to solve my issue i installed php-cli in the server and everything is working as expected.</strong></p> </div>

在中国程序员是青春饭吗?

今年,我也32了 ,为了不给大家误导,咨询了猎头、圈内好友,以及年过35岁的几位老程序员……舍了老脸去揭人家伤疤……希望能给大家以帮助,记得帮我点赞哦。 目录: 你以为的人生 一次又一次的伤害 猎头界的真相 如何应对互联网行业的「中年危机」 一、你以为的人生 刚入行时,拿着傲人的工资,想着好好干,以为我们的人生是这样的: 等真到了那一天,你会发现,你的人生很可能是这样的: ...

程序员请照顾好自己,周末病魔差点一套带走我。

程序员在一个周末的时间,得了重病,差点当场去世,还好及时挽救回来了。

C++(数据结构与算法)78:---分而治之

一、分而治之的思想 分而治之方法与软件设计的模块化方法非常相似 分而治之通常不用于解决问题的小实例,而要解决一个问题的大实例。一般步骤为: ①把一个大实例分为两个或多个更小的实例 ②分别解决每个小实例 ③把这些小实例的解组合成原始大实例的解 二、实际应用之找出假币 问题描述 一个袋子有16个硬币,其中只有一个是假币,这个假币比其他的真币重量轻(其他所有真币的重量都是相同的)...

springboot+jwt实现token登陆权限认证

一 前言 此篇文章的内容也是学习不久,终于到周末有时间码一篇文章分享知识追寻者的粉丝们,学完本篇文章,读者将对token类的登陆认证流程有个全面的了解,可以动态搭建自己的登陆认证过程;对小项目而已是个轻量级的认证机制,符合开发需求;更多精彩原创内容关注公主号知识追寻者,读者的肯定,就是对作者的创作的最大支持; 二 jwt实现登陆认证流程 用户使用账号和面发出post请求 服务器接受到请求后使用私...

技术大佬:我去,你写的 switch 语句也太老土了吧

昨天早上通过远程的方式 review 了两名新来同事的代码,大部分代码都写得很漂亮,严谨的同时注释也很到位,这令我非常满意。但当我看到他们当中有一个人写的 switch 语句时,还是忍不住破口大骂:“我擦,小王,你丫写的 switch 语句也太老土了吧!” 来看看小王写的代码吧,看完不要骂我装逼啊。 private static String createPlayer(PlayerTypes p...

win10暴力查看wifi密码

刚才邻居打了个电话说:喂小灰,你家wifi的密码是多少,我怎么连不上了。 我。。。 我也忘了哎,就找到了一个好办法,分享给大家: 第一种情况:已经连接上的wifi,怎么知道密码? 打开:控制面板\网络和 Internet\网络连接 然后右击wifi连接的无线网卡,选择状态 然后像下图一样: 第二种情况:前提是我不知道啊,但是我以前知道密码。 此时可以利用dos命令了 1、利用netsh wlan...

女程序员,为什么比男程序员少???

昨天看到一档综艺节目,讨论了两个话题:(1)中国学生的数学成绩,平均下来看,会比国外好?为什么?(2)男生的数学成绩,平均下来看,会比女生好?为什么?同时,我又联想到了一个技术圈经常讨...

副业收入是我做程序媛的3倍,工作外的B面人生是怎样的?

提到“程序员”,多数人脑海里首先想到的大约是:为人木讷、薪水超高、工作枯燥…… 然而,当离开工作岗位,撕去层层标签,脱下“程序员”这身外套,有的人生动又有趣,马上展现出了完全不同的A/B面人生! 不论是简单的爱好,还是正经的副业,他们都干得同样出色。偶尔,还能和程序员的特质结合,产生奇妙的“化学反应”。 @Charlotte:平日素颜示人,周末美妆博主 大家都以为程序媛也个个不修边幅,但我们也许...

MySQL数据库面试题(2020最新版)

文章目录数据库基础知识为什么要使用数据库什么是SQL?什么是MySQL?数据库三大范式是什么mysql有关权限的表都有哪几个MySQL的binlog有有几种录入格式?分别有什么区别?数据类型mysql有哪些数据类型引擎MySQL存储引擎MyISAM与InnoDB区别MyISAM索引与InnoDB索引的区别?InnoDB引擎的4大特性存储引擎选择索引什么是索引?索引有哪些优缺点?索引使用场景(重点)...

如果你是老板,你会不会踢了这样的员工?

有个好朋友ZS,是技术总监,昨天问我:“有一个老下属,跟了我很多年,做事勤勤恳恳,主动性也很好。但随着公司的发展,他的进步速度,跟不上团队的步伐了,有点...

我入职阿里后,才知道原来简历这么写

私下里,有不少读者问我:“二哥,如何才能写出一份专业的技术简历呢?我总感觉自己写的简历太烂了,所以投了无数份,都石沉大海了。”说实话,我自己好多年没有写过简历了,但我认识的一个同行,他在阿里,给我说了一些他当年写简历的方法论,我感觉太牛逼了,实在是忍不住,就分享了出来,希望能够帮助到你。 01、简历的本质 作为简历的撰写者,你必须要搞清楚一点,简历的本质是什么,它就是为了来销售你的价值主张的。往深...

程序员写出这样的代码,能不挨骂吗?

当你换槽填坑时,面对一个新的环境。能够快速熟练,上手实现业务需求是关键。但是,哪些因素会影响你快速上手呢?是原有代码写的不够好?还是注释写的不够好?昨夜...

带了6个月的徒弟当了面试官,而身为高级工程师的我天天修Bug......

即将毕业的应届毕业生一枚,现在只拿到了两家offer,但最近听到一些消息,其中一个offer,我这个组据说客户很少,很有可能整组被裁掉。 想问大家: 如果我刚入职这个组就被裁了怎么办呢? 大家都是什么时候知道自己要被裁了的? 面试软技能指导: BQ/Project/Resume 试听内容: 除了刷题,还有哪些技能是拿到offer不可或缺的要素 如何提升面试软实力:简历, 行为面试,沟通能...

优雅的替换if-else语句

场景 日常开发,if-else语句写的不少吧??当逻辑分支非常多的时候,if-else套了一层又一层,虽然业务功能倒是实现了,但是看起来是真的很不优雅,尤其是对于我这种有强迫症的程序"猿",看到这么多if-else,脑袋瓜子就嗡嗡的,总想着解锁新姿势:干掉过多的if-else!!!本文将介绍三板斧手段: 优先判断条件,条件不满足的,逻辑及时中断返回; 采用策略模式+工厂模式; 结合注解,锦...

!大部分程序员只会写3年代码

如果世界上都是这种不思进取的软件公司,那别说大部分程序员只会写 3 年代码,恐怕就没有程序员这种职业。

离职半年了,老东家又发 offer,回不回?

有小伙伴问松哥这个问题,他在上海某公司,在离职了几个月后,前公司的领导联系到他,希望他能够返聘回去,他很纠结要不要回去? 俗话说好马不吃回头草,但是这个小伙伴既然感到纠结了,我觉得至少说明了两个问题:1.曾经的公司还不错;2.现在的日子也不是很如意。否则应该就不会纠结了。 老实说,松哥之前也有过类似的经历,今天就来和小伙伴们聊聊回头草到底吃不吃。 首先一个基本观点,就是离职了也没必要和老东家弄的苦...

2020阿里全球数学大赛:3万名高手、4道题、2天2夜未交卷

阿里巴巴全球数学竞赛( Alibaba Global Mathematics Competition)由马云发起,由中国科学技术协会、阿里巴巴基金会、阿里巴巴达摩院共同举办。大赛不设报名门槛,全世界爱好数学的人都可参与,不论是否出身数学专业、是否投身数学研究。 2020年阿里巴巴达摩院邀请北京大学、剑桥大学、浙江大学等高校的顶尖数学教师组建了出题组。中科院院士、美国艺术与科学院院士、北京国际数学...

为什么你不想学习?只想玩?人是如何一步一步废掉的

不知道是不是只有我这样子,还是你们也有过类似的经历。 上学的时候总有很多光辉历史,学年名列前茅,或者单科目大佬,但是虽然慢慢地长大了,你开始懈怠了,开始废掉了。。。 什么?你说不知道具体的情况是怎么样的? 我来告诉你: 你常常潜意识里或者心理觉得,自己真正的生活或者奋斗还没有开始。总是幻想着自己还拥有大把时间,还有无限的可能,自己还能逆风翻盘,只不是自己还没开始罢了,自己以后肯定会变得特别厉害...

男生更看重女生的身材脸蛋,还是思想?

往往,我们看不进去大段大段的逻辑。深刻的哲理,往往短而精悍,一阵见血。问:产品经理挺漂亮的,有点心动,但不知道合不合得来。男生更看重女生的身材脸蛋,还是...

为什么程序员做外包会被瞧不起?

二哥,有个事想询问下您的意见,您觉得应届生值得去外包吗?公司虽然挺大的,中xx,但待遇感觉挺低,马上要报到,挺纠结的。

当HR压你价,说你只值7K,你该怎么回答?

当HR压你价,说你只值7K时,你可以流畅地回答,记住,是流畅,不能犹豫。 礼貌地说:“7K是吗?了解了。嗯~其实我对贵司的面试官印象很好。只不过,现在我的手头上已经有一份11K的offer。来面试,主要也是自己对贵司挺有兴趣的,所以过来看看……”(未完) 这段话主要是陪HR互诈的同时,从公司兴趣,公司职员印象上,都给予对方正面的肯定,既能提升HR的好感度,又能让谈判气氛融洽,为后面的发挥留足空间。...

面试:第十六章:Java中级开发

HashMap底层实现原理,红黑树,B+树,B树的结构原理 Spring的AOP和IOC是什么?它们常见的使用场景有哪些?Spring事务,事务的属性,传播行为,数据库隔离级别 Spring和SpringMVC,MyBatis以及SpringBoot的注解分别有哪些?SpringMVC的工作原理,SpringBoot框架的优点,MyBatis框架的优点 SpringCould组件有哪些,他们...

早上躺尸,晚上干活:硅谷科技公司这么流行迟到?

硅谷科技公司上班时间OPEN早已不是什么新鲜事,早九晚五是常态,但有很多企业由于不打卡,员工们10点、11点才“姗姗来迟”的情况也屡见不鲜。 这种灵活的考勤制度为人羡慕,甚至近年来,国内某些互联网企业也纷纷效仿。不过,硅谷普遍弹性的上班制度是怎么由来的呢?这种“流行性迟到”真的有那么轻松、悠哉吗? 《动态规划专题班》 课程试听内容: 动态规划的解题要领 动态规划三大类 求最值/计数/可行性 常...

面试阿里p7,被按在地上摩擦,鬼知道我经历了什么?

面试阿里p7被问到的问题(当时我只知道第一个):@Conditional是做什么的?@Conditional多个条件是什么逻辑关系?条件判断在什么时候执...

Python爬虫,高清美图我全都要(彼岸桌面壁纸)

爬取彼岸桌面网站较为简单,用到了requests、lxml、Beautiful Soup4

无代码时代来临,程序员如何保住饭碗?

编程语言层出不穷,从最初的机器语言到如今2500种以上的高级语言,程序员们大呼“学到头秃”。程序员一边面临编程语言不断推陈出新,一边面临由于许多代码已存在,程序员编写新应用程序时存在重复“搬砖”的现象。 无代码/低代码编程应运而生。无代码/低代码是一种创建应用的方法,它可以让开发者使用最少的编码知识来快速开发应用程序。开发者通过图形界面中,可视化建模来组装和配置应用程序。这样一来,开发者直...

面试了一个 31 岁程序员,让我有所触动,30岁以上的程序员该何去何从?

最近面试了一个31岁8年经验的程序猿,让我有点感慨,大龄程序猿该何去何从。

大三实习生,字节跳动面经分享,已拿Offer

说实话,自己的算法,我一个不会,太难了吧

程序员垃圾简历长什么样?

已经连续五年参加大厂校招、社招的技术面试工作,简历看的不下于万份 这篇文章会用实例告诉你,什么是差的程序员简历! 疫情快要结束了,各个公司也都开始春招了,作为即将红遍大江南北的新晋UP主,那当然要为小伙伴们做点事(手动狗头)。 就在公众号里公开征简历,义务帮大家看,并一一点评。《启舰:春招在即,义务帮大家看看简历吧》 一石激起千层浪,三天收到两百多封简历。 花光了两个星期的所有空闲时...

Java岗开发3年,公司临时抽查算法,离职后这几题我记一辈子

前几天我们公司做了一件蠢事,非常非常愚蠢的事情。我原以为从学校出来之后,除了找工作有测试外,不会有任何与考试有关的事儿。 但是,天有不测风云,公司技术总监、人事总监两位大佬突然降临到我们事业线,叫上我老大,给我们组织了一场别开生面的“考试”。 那是一个风和日丽的下午,我翘着二郎腿,左手端着一杯卡布奇诺,右手抓着我的罗技鼠标,滚动着轮轴,穿梭在头条热点之间。 “淡黄的长裙~蓬松的头发...

立即提问
相关内容推荐