谁会使用isl58315,使用stm32f103开发 5C

我在使用一款芯片isl58315,谁会开发???,设有源程序,或者谁使用过,这款芯片只有三线spi通讯,

1个回答

Csdn user default icon
上传中...
上传图片
插入图片
抄袭、复制答案,以达到刷声望分或其他目的的行为,在CSDN问答是严格禁止的,一经发现立刻封号。是时候展现真正的技术了!
其他相关推荐
一个对象集合 lisL<user> 怎么转成json对象

一个对象集合 lisL<user> 怎么转成json对象 ``` List<ReturnBanks> list=getBanksServiceimp.getBanksMessage(); JsonObject data=new JsonObject(); return MessageUtil.toJson(20000, Me.MSG_20000, data); //data是我要返回的json对象 怎么把list转成这个data并返回

C# 怎么动态替换字符串

原始文件 ``` cna=kIL9DoazbDcCAWVVUDnmV4lC; mobileSendTime=-1; credibleMobileSendTime=-1; ctuMobileSendTime=-1; riskMobileBankSendTime=-1; riskMobileAccoutSendTime=-1; riskMobileCreditSendTime=-1; riskCredibleMobileSendTime=-1; riskOriginalAccountMobileSendTime=-1; zone=RZ05B; ALIPAYJSESSIONID=RZ056Dar6pgE6inNmivJBB3ya80WKxauthRZ05GZ00; ctoken=FT2pDKm+bGp2RGl$GxOBW6VWsYt3Vb; umt=; LoginForm=alipay_login_auth; alipay=K1iSL1mkbIUp8dcHyyBziFT5C4RINJGX+MSNMSuD83P32KhS; CLUB_ALIPAY_COM=2088012831080047; iw.userid="K1iSL1mkbIUp8dcHyyBziA=="; ali_apache_tracktmp="uid=2088012831080047"; session.cookieNameId=ALIPAYJSESSIONID; unicard1.vm="K1iSL1mkbIUp8dcHyyBziA=="; BIG_DOOR_SHOWTIME=20151120; JSESSIONID=D5AC3CF6409987B38AC77BC82736D81A; spanner=iHE67C/9gPqS2VHoOUsNG7VfmB2LySdK4EJoL7C0n0A=; JSESSIONID=RZ05CvInZFXLtLlu3siKJFY2YXB02cauthGZ00RZ05 ``` 需要替换的新字符 ``` JSESSIONID=9B4B199EEB702BEE2B7D516BA1CB6F8C; Path=/; HttpOnly,JSESSIONID=RZ056Dar6pgE6inNmivJBB3ya80WKxauthRZ05GZ00; Path=; Secure; HttpOnly,spanner=iHE67C/9gPqS2VHoOUsNG7VfmB2LySdK4EJoL7C0n0A=;path=/;secure; ``` 这些需要替换的字符,都是动态的,随时会变, 例如 ``` JSESSIONID=9B4B199EEB702BEE2B7D516BA1CB6F8C; ``` 替换其中的这个,我们需要找到JSESSIONID这个值,把他替换了,怎么做到 求大神写个例子

无法在PHP中检索mp3持续时间标记(TLE / TLEN)

<div class="post-text" itemprop="text"> <p>I am trying to embed relevant information like the name of the artist, track title, album, track number and genre on my mp3 file. I managed to retrieve all of them except the duration. It just gives me a blank result. Is TLE/TLEN tags not supported anymore? Below is the function I use:</p> <pre><code>&lt;?php // set error reporting level if (version_compare(phpversion(), '5.3.0', '&gt;=') == 1) error_reporting(E_ALL &amp; ~E_NOTICE &amp; ~E_DEPRECATED); else error_reporting(E_ALL &amp; ~E_NOTICE); // gathering all mp3 files in 'mp3' folder into array $sDir = 'mp3/'; $aFiles = array(); $rDir = opendir($sDir); if ($rDir) { while ($sFile = readdir($rDir)) { if ($sFile == '.' or $sFile == '..' or !is_file($sDir . $sFile)) continue; $aPathInfo = pathinfo($sFile); $sExt = strtolower($aPathInfo['extension']); if ($sExt == 'mp3') { $aFiles[] = $sDir . $sFile; } } closedir( $rDir ); } // new object of our ID3TagsReader class $oReader = new ID3TagsReader(); // passing through located files .. $sList = $sList2 = ''; foreach ($aFiles as $sSingleFile) { $aTags = $oReader-&gt;getTagsInfo($sSingleFile); // obtaining ID3 tags info $sList .= '&lt;tr&gt;&lt;td&gt;'.$aTags['Title'].'&lt;/td&gt;&lt;td&gt;'.$aTags['Album'].'&lt;/td&gt;&lt;td&gt;'.$aTags['Author'].'&lt;/td&gt; &lt;td&gt;'.$aTags['AlbumAuthor'].'&lt;/td&gt;&lt;td&gt;'.$aTags['Track'].'&lt;/td&gt;&lt;td&gt;'.$aTags['Year'].'&lt;/td&gt; &lt;td&gt;'.$aTags['Lenght'].'&lt;/td&gt;&lt;td&gt;'.$aTags['Lyric'].'&lt;/td&gt;&lt;td&gt;'.$aTags['Desc'].'&lt;/td&gt; &lt;td&gt;'.$aTags['Genre'].'&lt;/td&gt;&lt;/tr&gt;'; $sList2 .= '&lt;tr&gt;&lt;td&gt;'.$aTags['Title'].'&lt;/td&gt;&lt;td&gt;'.$aTags['Encoded'].'&lt;/td&gt;&lt;td&gt;'.$aTags['Copyright'].'&lt;/td&gt; &lt;td&gt;'.$aTags['Publisher'].'&lt;/td&gt;&lt;td&gt;'.$aTags['OriginalArtist'].'&lt;/td&gt;&lt;td&gt;'.$aTags['URL'].'&lt;/td&gt; &lt;td&gt;'.$aTags['Comments'].'&lt;/td&gt;&lt;td&gt;'.$aTags['Composer'].'&lt;/td&gt;&lt;/tr&gt;'; } // main output echo strtr(file_get_contents('main_page.html'), array('__list__' =&gt; $sList, '__list2__' =&gt; $sList2)); // class ID3TagsReader class ID3TagsReader { // variables var $aTV23 = array( // array of possible sys tags (for last version of ID3) 'TIT2', 'TALB', 'TPE1', 'TPE2', 'TRCK', 'TYER', 'TLEN', 'USLT', 'TPOS', 'TCON', 'TENC', 'TCOP', 'TPUB', 'TOPE', 'WXXX', 'COMM', 'TCOM' ); var $aTV23t = array( // array of titles for sys tags 'Title', 'Album', 'Author', 'AlbumAuthor', 'Track', 'Year', 'Lenght', 'Lyric', 'Desc', 'Genre', 'Encoded', 'Copyright', 'Publisher', 'OriginalArtist', 'URL', 'Comments', 'Composer' ); var $aTV22 = array( // array of possible sys tags (for old version of ID3) 'TT2', 'TAL', 'TP1', 'TRK', 'TYE', 'TLE', 'ULT' ); var $aTV22t = array( // array of titles for sys tags 'Title', 'Album', 'Author', 'Track', 'Year', 'Lenght', 'Lyric' ); // constructor function ID3TagsReader() {} // functions function getTagsInfo($sFilepath) { // read source file $iFSize = filesize($sFilepath); $vFD = fopen($sFilepath,'r'); $sSrc = fread($vFD,$iFSize); fclose($vFD); // obtain base info if (substr($sSrc,0,3) == 'ID3') { $aInfo['FileName'] = $sFilepath; $aInfo['Version'] = hexdec(bin2hex(substr($sSrc,3,1))).'.'.hexdec(bin2hex(substr($sSrc,4,1))); } // passing through possible tags of idv2 (v3 and v4) if ($aInfo['Version'] == '4.0' || $aInfo['Version'] == '3.0') { for ($i = 0; $i &lt; count($this-&gt;aTV23); $i++) { if (strpos($sSrc, $this-&gt;aTV23[$i].chr(0)) != FALSE) { $s = ''; $iPos = strpos($sSrc, $this-&gt;aTV23[$i].chr(0)); $iLen = hexdec(bin2hex(substr($sSrc,($iPos + 5),3))); $data = substr($sSrc, $iPos, 9 + $iLen); for ($a = 0; $a &lt; strlen($data); $a++) { $char = substr($data, $a, 1); if ($char &gt;= ' ' &amp;&amp; $char &lt;= '~') $s .= $char; } if (substr($s, 0, 4) == $this-&gt;aTV23[$i]) { $iSL = 4; if ($this-&gt;aTV23[$i] == 'USLT') { $iSL = 7; } elseif ($this-&gt;aTV23[$i] == 'TALB') { $iSL = 5; } elseif ($this-&gt;aTV23[$i] == 'TENC') { $iSL = 6; } $aInfo[$this-&gt;aTV23t[$i]] = substr($s, $iSL); } } } } // passing through possible tags of idv2 (v2) if($aInfo['Version'] == '2.0') { for ($i = 0; $i &lt; count($this-&gt;aTV22); $i++) { if (strpos($sSrc, $this-&gt;aTV22[$i].chr(0)) != FALSE) { $s = ''; $iPos = strpos($sSrc, $this-&gt;aTV22[$i].chr(0)); $iLen = hexdec(bin2hex(substr($sSrc,($iPos + 3),3))); $data = substr($sSrc, $iPos, 6 + $iLen); for ($a = 0; $a &lt; strlen($data); $a++) { $char = substr($data, $a, 1); if ($char &gt;= ' ' &amp;&amp; $char &lt;= '~') $s .= $char; } if (substr($s, 0, 3) == $this-&gt;aTV22[$i]) { $iSL = 3; if ($this-&gt;aTV22[$i] == 'ULT') { $iSL = 6; } $aInfo[$this-&gt;aTV22t[$i]] = substr($s, $iSL); } } } } return $aInfo; } } ?&gt; </code></pre> </div>

Cgo:抱歉,未实现:未在64位模式下编译

<div class="post-text" itemprop="text"> <p>I'm currently trying to add some C code to my Go project. nothing fancy</p> <pre><code>/* #include &lt;stdio.h&gt; void test() { printf("hooola") } */ import ( "C" ) func MessageBox() { C.test() } </code></pre> <p>However this will return</p> <blockquote> <p>cc1.exe: sorry, unimplemented: 64-bit mode not compiled in</p> </blockquote> <p>I checked my <code>g++</code> and <code>gcc</code> compilers and everything seems fine, <code>g++ -v</code> returns this</p> <pre><code>C:\Users agga&gt;g++ -v Using built-in specs. COLLECT_GCC=g++ COLLECT_LTO_WRAPPER=C:/Program\ Files/mingw-w64/x86_64-6.2.0-posix-seh-rt_v5-rev1/mingw64/bin/../libexec/gcc/x86_64-w64-mingw32/6.2.0/lto-wrapper.exe Target: x86_64-w64-mingw32 Configured with: ../../../src/gcc-6.2.0/configure --host=x86_64-w64-mingw32 --build=x86_64-w64-mingw32 --target=x86_64-w64-mingw32 --prefix=/mingw64 --with-sysroot=/c/mingw620/x86_64-620-posix-seh-rt_v5-rev1/mingw64 --enable-shared --enable-static --disable-multilib --enable-languages=c,c++,fortran,lto --enable-libstdcxx-time=yes --enable-threads=posix --enable-libgomp --enable-libatomic --enable-lto --enable-graphite --enable-checking=release --enable-fully-dynamic-string --enable-version-specific-runtime-libs --enable-libstdcxx-filesystem-ts=yes --disable-isl-version-check --disable-libstdcxx-pch --disable-libstdcxx-debug --enable-bootstrap --disable-rpath --disable-win32-registry --disable-nls --disable-werror --disable-symvers --with-gnu-as --with-gnu-ld --with-arch=nocona --with-tune=core2 --with-libiconv --with-system-zlib --with-gmp=/c/mingw620/prerequisites/x86_64-w64-mingw32-static --with-mpfr=/c/mingw620/prerequisites/x86_64-w64-mingw32-static --with-mpc=/c/mingw620/prerequisites/x86_64-w64-mingw32-static --with-isl=/c/mingw620/prerequisites/x86_64-w64-mingw32-static --with-pkgversion='x86_64-posix-seh-rev1, Built by MinGW-W64 project' --with-bugurl=http://sourceforge.net/projects/mingw-w64 CFLAGS='-O2 -pipe -I/c/mingw620/x86_64-620-posix-seh-rt_v5-rev1/mingw64/opt/include -I/c/mingw620/prerequisites/x86_64-zlib-static/include -I/c/mingw620/prerequisites/x86_64-w64-mingw32-static/include' CXXFLAGS='-O2 -pipe -I/c/mingw620/x86_64-620-posix-seh-rt_v5-rev1/mingw64/opt/include -I/c/mingw620/prerequisites/x86_64-zlib-static/include -I/c/mingw620/prerequisites/x86_64-w64-mingw32-static/include' CPPFLAGS= LDFLAGS='-pipe -L/c/mingw620/x86_64-620-posix-seh-rt_v5-rev1/mingw64/opt/lib -L/c/mingw620/prerequisites/x86_64-zlib-static/lib -L/c/mingw620/prerequisites/x86_64-w64-mingw32-static/lib ' Thread model: posix gcc version 6.2.0 (x86_64-posix-seh-rev1, Built by MinGW-W64 project) </code></pre> <p>While <code>gcc --version</code> returns this</p> <pre><code>g:\Workspace\Go\src\github.com aggaer\snak&gt;gcc --version gcc (GCC) 4.8.1 Copyright (C) 2013 Free Software Foundation, Inc. This is free software; see the source for copying conditions. There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. </code></pre> <p>Both installed using mingw64bits so I am not sure where my problem is coming from?</p> </div>

在ie8和ie9中,希伯来语单词在url中不起作用

<div class="post-text" itemprop="text"> <p>i have url like :</p> <pre><code>http://www.example.com/search_page/?From=ISL&amp;alphabet=א </code></pre> <p>And this url are working proper in safari,mozila but the in ie8 and ie9 is displaying in url like</p> <pre><code>http://www.example.com/search_page/?From=ISL&amp;alphabet= </code></pre> <p>Please help me on this issue.</p> </div>

C++ 多线程不能通过编译问题('thread' is not a member of 'std')

``` #include <iostream> #include <thread> using namespace std; void thread_task() { std::cout << "hello thread" << std::endl; } int main(int argc, const char *argv[]) { std::thread t(thread_task); t.join(); return EXIT_SUCCESS; } ``` 错误信息: 'thread' is not a member of 'std'| 环境如下: windows 7 64 bit; >gcc -v Using built-in specs. COLLECT_GCC=gcc COLLECT_LTO_WRAPPER=c:/mingw/bin/../libexec/gcc/i686-pc-mingw32/6.1.0/lto-wrapper.exe Target: i686-pc-mingw32 Configured with: ../configure --prefix=/mingw/opt/gcc --with-local-prefix=/mingw/opt/gcc --with-native-system-header-dir=/mingw/opt/gcc/i686-pc-mingw32/include --with-gxx-include-dir=/mingw/opt/gcc/i686-pc-mingw32/include/c++/6.1.0 --target=i686-pc-mingw32 --enable-languages=c,c++,fortran,java,objc,obj-c++ --enable-static --enable-shared --enable-libgomp --enable-lto --enable-threads=posix --enable-libstdcxx --enable-libstdcxx-debug --enable-graphite --enable-tls --enable-nls --disable-bootstrap --disable-stage1-checking --disable-multilib --disable-libvtv --disable-sjlj-exceptions --disable-libstdcxx-pch --disable-win32-registry --with-dwarf2 --with-gmp=/mingw/opt/gcc --with-mpfr=/mingw/opt/gcc --with-mpc=/mingw/opt/gcc --with-isl=/mingw/opt/gcc Thread model: posix gcc version 6.1.0 (GCC) IDE:codeBlocks 16.10 ![图片说明](https://img-ask.csdn.net/upload/201610/09/1476008857_491250.png)

Mac Yosemite上使用dnsmasq和homebrew AMP堆栈的localhost问题

<div class="post-text" itemprop="text"> <p>I'm having a major issue. I have had a stable and working AMP stack installed via homebrew with DNSMASQ dynamic domains.</p> <p>Today, I booted my mac to find that Safar, Chrome and all web browsers report that they cannot load the local dev sites (any of them) because the server cannot be found.</p> <p>I checked on the command line and the domain names are properly resolving and pinging back.</p> <pre><code>➜ ping blck3.dev PING blck3.dev (127.0.0.1): 56 data bytes 64 bytes from 127.0.0.1: icmp_seq=0 ttl=64 time=0.068 ms 64 bytes from 127.0.0.1: icmp_seq=1 ttl=64 time=0.075 ms 64 bytes from 127.0.0.1: icmp_seq=2 ttl=64 time=0.095 ms 64 bytes from 127.0.0.1: icmp_seq=3 ttl=64 time=0.082 ms 64 bytes from 127.0.0.1: icmp_seq=4 ttl=64 time=0.053 ms --- blck3.dev ping statistics --- 5 packets transmitted, 5 packets received, 0.0% packet loss round-trip min/avg/max/stddev = 0.053/0.075/0.095/0.014 ms </code></pre> <p>I then decided to check my apache config for errors and I get the following:</p> <pre><code>➜ httpd -v Server version: Apache/2.4.10 (Unix) Server built: Jan 8 2015 20:48:33 ➜ apachectl configtest httpd: Syntax error on line 171 of /private/etc/apache2/httpd.conf: Cannot load /usr/local/opt/php55/libexec/apache2/libphp5.so into server: dlopen(/usr/local/opt/php55/libexec/apache2/libphp5.so, 10): Library not loaded: /usr/local/opt/icu4c/lib/libicui18n.54.dylib Referenced from: /usr/local/opt/php55/libexec/apache2/libphp5.so Reason: image not found </code></pre> <p>So, I decided to reinstall php55 as some people have reported that reinstalling php55 will solve the issue, but homebrew reports that there is no such formula.</p> <pre><code>/usr/local/opt ➜ brew info php55 Error: No available formula for php55 ✘ /usr/local/opt ➜ brew info php56 Error: No available formula for php56 ✘ /usr/local/opt </code></pre> <p>I then did a search to see if I was having any issues specific to my machine wherein I couldn't see the php formulae:</p> <pre><code>➜ brew search php php53-sodium php54-sodium php55-sodium php56-sodium virtphp Caskroom/cask/eclipse-php Caskroom/cask/netbeans-php Caskroom/cask/phpstorm </code></pre> <p>I was surprised that neither php55, php55-mcrypt, php56 nor php56-mcrypt were available.</p> <p>So, I checked to make sure all the relevant taps are properly tapped:</p> <pre><code>➜ brew tap homebrew/dupes Warning: Already tapped! /usr/local/opt ➜ brew tap homebrew/versions Warning: Already tapped! /usr/local/opt ➜ brew tap homebrew/homebrew-php Warning: Already tapped! </code></pre> <p>I then ran brew doctor which gives me the following error:</p> <pre><code>➜ brew doctor Please note that these warnings are just used to help the Homebrew maintainers with debugging if you file an issue. If everything you use Homebrew for is working fine: please don't worry and just ignore them. Thanks! Warning: You have unlinked kegs in your Cellar Leaving kegs unlinked can lead to build-trouble and cause brews that depend on those kegs to fail to run properly once built. Run `brew link` on these: binutilsfb cloog018 gmp4 isl011 libmpc08 mpfr2 rar </code></pre> <p>I have no idea what has gone wrong, because everything was working fine on Friday, nothing was touched over the weekend, and as of this morning...nothing seems to work properly.</p> <p>Please advise, as this is a major problem for me and which I need to resolve ASAP.</p> <p>Thank you,</p> <p>Ali</p> </div>

想请教一下各位大神 :博科交换机的各层分别实现的功能是什么???求赐教

在Opnet中需要用FC交换机搭建交换网络。。。。看不懂自带的交换机模型的各层的功能???求各路大神赐教

discard tablespace报错

MySQL5.5 storage engine innodb 打算剥离表结构和数据,将云备份的ibd文件替换,再import tablespace,但是 在discard tablespace的时候就报ERROR 1030 (HY000): Got error -1 from storage engine 云服务器是MySQL5.5的,一开始本地装的是MySQL5.6,discard tablespace 和import tablespace没报错,但是表中结果有列是乱码而且有另两列数据混乱(相当于两列的部分数据交换了)

OSX Golang静态编译,并安装gccgo

<div class="post-text" itemprop="text"> <p>To outline my end goal. I want to compile a go application, statically linking to QT5. I have statically compiled QT5. Now I need to compile my Go program.</p> <p>As I understand it to do this, I have to use gccgo rather than the gc compiler. Fine.</p> <p>So first I have to install the gccgo compiler, which is gcc with the <code>go</code> language enabled in config.</p> <p>I have followed this: <a href="https://golang.org/doc/install/gccgo" rel="nofollow noreferrer">https://golang.org/doc/install/gccgo</a></p> <p>and this seperately: <a href="https://solarianprogrammer.com/2016/05/10/compiling-gcc-6-mac-os-x/" rel="nofollow noreferrer">https://solarianprogrammer.com/2016/05/10/compiling-gcc-6-mac-os-x/</a> </p> <p>to see if I could use a newer version of GCC. However in both cases I receive:</p> <pre><code>checking for isl 0.16, 0.15, or deprecated 0.14... yes checking for isl 0.16 or 0.15... yes configure: error: The following requested languages could not be built: go Supported languages are: c,c,c++,fortran,jit,lto,objc,obj-c++ </code></pre> <p>when I run <code>configure</code> before <code>make</code> and <code>make install</code></p> <p>So apparently GCC doesn't know about Go even though the Go documentation says this is how to do it?</p> <p>Anyone got any reliable source for doing this?</p> </div>

用InnoSetup生成的安装程序,安装成功后再点击Setup.exe卸载,最后出现安装,怎么去掉呢

; 脚本由 Inno Setup 脚本向导 生成! ; 有关创建 Inno Setup 脚本文件的详细资料请查阅帮助文档! #define MyAppName "examle" [Setup] ; 注: AppId的值为单独标识该应用程序。 ; 不要为其他安装程序使用相同的AppId值。 ; (生成新的GUID,点击 工具|在IDE中生成GUID。) AppId={{5EF80699-C8CA-464E-94A7-0A87A8841A22}} AppName=example AppVersion=1.5 ;AppVerName=example 1.5 AppPublisher=我的公司 AppPublisherURL=http://www.example.com/ AppSupportURL=http://www.example.com/ AppUpdatesURL=http://www.example.com/ DefaultDirName={pf}\example DefaultGroupName=example OutputDir=F:\Test OutputBaseFilename=setup Compression=lzma SolidCompression=yes Uninstallable=yes UninstallDisplayName=卸载 {#MyAppName} [Languages] Name: "chinesesimp"; MessagesFile: "compiler:Default.isl" [Tasks] Name: "desktopicon"; Description: "{cm:CreateDesktopIcon}"; GroupDescription: "{cm:AdditionalIcons}"; Flags: unchecked; OnlyBelowVersion: 0,6.1 [Files] Source: "C:\Users\qinbo\Desktop\GMP\KnowledgeManagement.exe"; DestDir: "{app}"; Flags: ignoreversion Source: "C:\Users\qinbo\Desktop\GMP\*"; DestDir: "{app}"; Flags: ignoreversion recursesubdirs createallsubdirs Source: "C:\Users\qinbo\Desktop\GMP\plugins\instsall.bat"; DestDir: "{app}"; Flags: ignoreversion ; 注意: 不要在任何共享系统文件上使用“Flags: ignoreversion” [Icons] Name: "{group}\example"; Filename: "{app}\KnowledgeManagement.exe" Name: "{commondesktop}\example"; Filename: "{app}\KnowledgeManagement.exe"; Tasks: desktopicon [Run] Filename: "{app}\KnowledgeManagement.exe"; Description: "{cm:LaunchProgram,example}"; Flags: nowait postinstall skipifsilent Filename: "C:\Users\qinbo\Desktop\GMP\plugins\instsall.bat"; Flags: nowait [Registry] Root: HKLM; Subkey:"Software\Test\example";ValueType:dword;ValueName:config;ValueData:10;Flags:uninsdeletevalue [Code] //删除所有配置文件以达到干净卸载的目的 procedure CurUninstallStepChanged(CurUninstallStep: TUninstallStep); begin if CurUninstallStep = usUninstall then //if MsgBox('您是否要删除用户配置信息?', mbConfirmation, MB_YESNO) = IDYES then //删除 {app} 文件夹及其中所有文件 DelTree(ExpandConstant('{app}'), True, True, True); end; //把安装位置在安装的时候写进注册表中,更新安装的时候你读取注册表中已保存的路径 procedure InitializeWizard(); var ResultStr: String; ResultCode: Integer; begin if RegQueryStringValue(HKEY_LOCAL_MACHINE, 'SOFTWARE\Wow6432Node\Microsoft\Windows\CurrentVersion\Uninstall\{5EF80699-C8CA-464E-94A7-0A87A8841A22}}_is1', 'UninstallString', ResultStr) then begin ResultStr := RemoveQuotes(ResultStr); Exec(ResultStr, '', '', SW_SHOWNORMAL, ewWaitUntilTerminated, ResultCode); end; end; //检查版本号 function GetInstalledVersion(): String; var InstalledVersion: String; begin InstalledVersion :=''; RegQueryStringValue(HKLM, 'SOFTWARE\Microsoft\Windows\CurrentVersion', 'Installed version', InstalledVersion); Result := InstalledVersion; end ;//安装、卸载前检查关闭**进程 var HasRun:HWND; function InitializeSetup():Boolean; begin //检测运行应用程序 Result := true; HasRun := FindWindowByWindowName('我的应用'); while HasRun<>0 do begin if MsgBox('安装程序检测到你的应用程序正在运行。' #13#13 '您必须先关闭它然后单击“是”继续安装,或按“否”退出!', mbConfirmation, MB_YESNO) = idNO then begin Result := false; HasRun := 0; end else begin Result := true; HasRun := FindWindowByWindowName('Gloud Arena'); end; end; end; function InitializeUninstall(): Boolean; begin HasRun := FindWindowByWindowName('我的应用'); if HasRun<>0 then begin MsgBox('卸载程序检测到你的应用程序正在运行。' #13#13 '请先退出你的应用程序,然后再进行卸载!', mbError, MB_OK); Result := false; end else Result := true; end; [/code]

将数据传递给AJAX调用

<div class="post-text" itemprop="text"> <p>Hey all so Im trying to put data through an AJAX call into this div</p> <pre><code> &lt;div class="scroll-pane2 blue small" style=""&gt; &lt;p id="bulletinBodyArea" style="margin-right:20px;"&gt;&lt;/p&gt; &lt;/div&gt; </code></pre> <p>The AJAX is being triggered when one clicks on one of the links being fed from the database</p> <pre><code> &lt;div class="bulletinSectionAccordion rounded"&gt; &lt;p class="blue" style="font-size:19px;margin-left:23px;margin-top:15px;margin-bottom:10px;"&gt;Archives&lt;/p&gt; &lt;?php $query = "SELECT * FROM `bulletin` LEFT JOIN `bulletininschool` ON `bulletin`.`id`=`bulletininschool`.`bulletin` WHERE `school` = 2 "; $result=$connection-&gt;query($query); while($row = $result-&gt;fetch_array()) { echo '&lt;p class="medium titi" style="margin-left:23px;"&gt;'.$row['title'].'&lt;/p&gt;'; } ?&gt; &lt;/div&gt; </code></pre> <p>It gets called and then passes the data</p> <pre><code> $(".titi").click( getBody ); function getBody(){ $("#bulletinBodyArea").load('update/getBody.php'); }; </code></pre> <p>And this is the AJAX function</p> <pre><code>&lt;?php $section='bulletin'; $table="bulletin"; $schoolSelectorTable="bulletininschool"; $schoolSelector="bulletin"; $db_host = "localhost"; $db_user = "root"; $db_pass = ""; $db_name = "isl"; mysql_connect($db_host, $db_user, $db_pass, $db_name); mysql_select_db("isl") or die(mysql_error()); $states = mysql_query("SELECT * FROM `bulletin` LEFT JOIN `bulletininschool` ON `bulletin`.`id`=`bulletininschool`.`bulletin` WHERE `school` = 2" ); while($state = mysql_fetch_array($states)){ echo "&lt;p&gt;".$state['body']."&lt;/p&gt;"; } ?&gt; </code></pre> <p>Now the links that one clicks that are fed from the database are actually article titles, and then when one clicks on a specific title the AJAX call should go and fetch the body text associated with that article. But I'm having trouble understanding how I should go through that. I'm doing the correct queries and getting the titles and the bodies but I just cant figure out how to associate them. Do I pass a variable to the AJAX call?</p> <p>Thank you</p> </div>

JavaScript和CSS

<div class="post-text" itemprop="text"> <p>I am wanting to implement Thickbox, which I have done a number of times.</p> <p>My issue is that I am doing some jQuery like:</p> <pre><code>$('#txtData').load('aerialProductListing.inc'); </code></pre> <p>and when this happens, the CSS is lost.</p> <p>How can I get the stylesheet recognized again? or can i do something inline to work around?</p> <p>Edit: txtData is simple:<br></p> <pre><code>&lt;div id='txtData'&gt;&lt;p&gt;&lt;/p&gt;&lt;/div&gt; </code></pre> <p><br></p> <p>aerialproductListing.inc is simple HTML and PHP, nothing fancy and to long to post, but the Thickbox piece isL</p> <pre><code>&lt;a href="tip.inc?height=400&amp;width=600" class="thickbox small" title="&lt;b&gt;US Tips"&gt;US Tip Chart&lt;/a&gt; </code></pre> </div>

在Linux下编译Unity的mono一直卡在这里

![图片说明](https://img-ask.csdn.net/upload/201707/25/1500967374_925546.png) 看日志有两个地方比较可疑,一个是这里 configure:3745: checking whether to enable maintainer-specific portions of Makefiles configure:3754: result: no 说没有开启maintainer-specific portions,但我不知道怎么开启,不知道是不是原因 另一处是arm-linux-androideabi-gcc: error: unrecognized command line option '-V' 这个好像和下面的 collect2: error: ld returned 1 exit status configure:4569: $? = 1 configure:4607: result: no configure: failed program was: | /* confdefs.h */ | #define PACKAGE_NAME "" | #define PACKAGE_TARNAME "" | #define PACKAGE_VERSION "" | #define PACKAGE_STRING "" | #define PACKAGE_BUGREPORT "" | #define PACKAGE_URL "" | #define PACKAGE "mono" | #define VERSION "2.6.5" | /* end confdefs.h. */ | | int | main () | { | | ; | return 0; | } 这个有关configure:4607: result: no这个意思好像是configure的4607行返回了一个no,文件夹内的确有一个configure文件,之后打开configure,4607行是这样的 4606 if test -z "$ac_file"; then : 4607 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4608 $as_echo "no" >&6; } 4609 $as_echo "$as_me: failed program was:" >&5 4610 sed 's/^/| /' conftest.$ac_ext >&5 4611 4612 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 4613 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 4614 as_fn_error 77 "C compiler cannot create executables 4615 See \`config.log' for more details" "$LINENO" 5; } 4616 else 4617 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 4618 $as_echo "yes" >&6; } 4619 fi 这种语言没学过,看不懂什么意思,求大神指点,卡这很久了 下面是日志 This file contains any messages produced by compilers while running configure, to aid debugging if configure makes a mistake. It was created by configure, which was generated by GNU Autoconf 2.69. Invocation command line was $ ./configure --prefix=/home/jimmy/mono-unity-5.6/builds/android --cache-file=android_cross.cache --host=arm-eabi-linux --disable-mcs-build --disable-parallel-mark --disable-shared-handles --with-sigaltstack=no --with-tls=pthread --with-glib=embedded --enable-nls=no mono_cv_uscore=yes PATH=/home/jimmy/android-ndk_auto-r10e/toolchains/arm-linux-androideabi-4.8/prebuilt/linux-x86/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin CC=/home/jimmy/android-ndk_auto-r10e/toolchains/arm-linux-androideabi-4.8/prebuilt/linux-x86/bin/arm-linux-androideabi-gcc --sysroot=/home/jimmy/android-ndk_auto-r10e/platforms/android-9/arch-arm CXX=/home/jimmy/android-ndk_auto-r10e/toolchains/arm-linux-androideabi-4.8/prebuilt/linux-x86/bin/arm-linux-androideabi-g++ --sysroot=/home/jimmy/android-ndk_auto-r10e/platforms/android-9/arch-arm CPP=/home/jimmy/android-ndk_auto-r10e/toolchains/arm-linux-androideabi-4.8/prebuilt/linux-x86/bin/arm-linux-androideabi-cpp CXXCPP=/home/jimmy/android-ndk_auto-r10e/toolchains/arm-linux-androideabi-4.8/prebuilt/linux-x86/bin/arm-linux-androideabi-cpp CFLAGS=-DANDROID -DPLATFORM_ANDROID -DLINUX -D__linux__ -DHAVE_USR_INCLUDE_MALLOC_H -DPAGE_SIZE=0x1000 -D_POSIX_PATH_MAX=256 -DS_IWRITE=S_IWUSR -DHAVE_PTHREAD_MUTEX_TIMEDLOCK -fpic -g -funwind-tables -ffunction-sections -fdata-sections -DARM_FPU_NONE=1 -march=armv5te -mtune=xscale -msoft-float CPPFLAGS=-DANDROID -DPLATFORM_ANDROID -DLINUX -D__linux__ -DHAVE_USR_INCLUDE_MALLOC_H -DPAGE_SIZE=0x1000 -D_POSIX_PATH_MAX=256 -DS_IWRITE=S_IWUSR -DHAVE_PTHREAD_MUTEX_TIMEDLOCK -fpic -g -funwind-tables -ffunction-sections -fdata-sections -DARM_FPU_NONE=1 -march=armv5te -mtune=xscale -msoft-float CXXFLAGS=-DANDROID -DPLATFORM_ANDROID -DLINUX -D__linux__ -DHAVE_USR_INCLUDE_MALLOC_H -DPAGE_SIZE=0x1000 -D_POSIX_PATH_MAX=256 -DS_IWRITE=S_IWUSR -DHAVE_PTHREAD_MUTEX_TIMEDLOCK -fpic -g -funwind-tables -ffunction-sections -fdata-sections -DARM_FPU_NONE=1 -march=armv5te -mtune=xscale -msoft-float LDFLAGS=-Wl,--wrap,sigaction -L/home/jimmy/mono-unity-5.6/../../android_krait_signal_handler/build/obj/local/armeabi -lkrait-signal-handler -Wl,--no-undefined -Wl,--gc-sections -Wl,-rpath-link=/home/jimmy/android-ndk_auto-r10e/platforms/android-9/arch-arm/usr/lib -ldl -lm -llog -lc LD=/home/jimmy/android-ndk_auto-r10e/toolchains/arm-linux-androideabi-4.8/prebuilt/linux-x86/bin/arm-linux-androideabi-ld AR=/home/jimmy/android-ndk_auto-r10e/toolchains/arm-linux-androideabi-4.8/prebuilt/linux-x86/bin/arm-linux-androideabi-ar AS=/home/jimmy/android-ndk_auto-r10e/toolchains/arm-linux-androideabi-4.8/prebuilt/linux-x86/bin/arm-linux-androideabi-as RANLIB=/home/jimmy/android-ndk_auto-r10e/toolchains/arm-linux-androideabi-4.8/prebuilt/linux-x86/bin/arm-linux-androideabi-ranlib STRIP=/home/jimmy/android-ndk_auto-r10e/toolchains/arm-linux-androideabi-4.8/prebuilt/linux-x86/bin/arm-linux-androideabi-strip CPATH=/home/jimmy/android-ndk_auto-r10e/platforms/android-9/arch-arm/usr/include ## --------- ## ## Platform. ## ## --------- ## hostname = ubuntu uname -m = x86_64 uname -r = 4.4.0-21-generic uname -s = Linux uname -v = #37-Ubuntu SMP Mon Apr 18 18:33:37 UTC 2016 /usr/bin/uname -p = unknown /bin/uname -X = unknown /bin/arch = unknown /usr/bin/arch -k = unknown /usr/convex/getsysinfo = unknown /usr/bin/hostinfo = unknown /bin/machine = unknown /usr/bin/oslevel = unknown /bin/universe = unknown PATH: /home/jimmy/android-ndk_auto-r10e/toolchains/arm-linux-androideabi-4.8/prebuilt/linux-x86/bin PATH: /usr/local/sbin PATH: /usr/local/bin PATH: /usr/sbin PATH: /usr/bin PATH: /sbin PATH: /bin ## ----------- ## ## Core tests. ## ## ----------- ## configure:2828: creating cache android_cross.cache configure:2934: checking build system type configure:2948: result: x86_64-pc-linux-gnu configure:2968: checking host system type configure:2981: result: arm-eabi-linux-gnu configure:3001: checking target system type configure:3014: result: arm-eabi-linux-gnu configure:3064: checking for a BSD-compatible install configure:3132: result: /usr/bin/install -c configure:3143: checking whether build environment is sane configure:3198: result: yes configure:3257: checking for arm-eabi-linux-strip configure:3284: result: /home/jimmy/android-ndk_auto-r10e/toolchains/arm-linux-androideabi-4.8/prebuilt/linux-x86/bin/arm-linux-androideabi-strip configure:3349: checking for a thread-safe mkdir -p configure:3388: result: /bin/mkdir -p configure:3395: checking for gawk configure:3411: found /usr/bin/gawk configure:3422: result: gawk configure:3433: checking whether make sets $(MAKE) configure:3455: result: yes configure:3484: checking whether make supports nested variables configure:3501: result: yes configure:3591: checking whether UID '0' is supported by ustar format configure:3594: result: yes configure:3601: checking whether GID '0' is supported by ustar format configure:3604: result: yes configure:3612: checking how to create a ustar tar archive configure:3623: tar --version tar (GNU tar) 1.28 Copyright (C) 2014 Free Software Foundation, Inc. License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>. This is free software: you are free to change and redistribute it. There is NO WARRANTY, to the extent permitted by law. Written by John Gilmore and Jay Fenlason. configure:3626: $? = 0 configure:3666: tardir=conftest.dir && eval tar --format=ustar -chf - "$tardir" >conftest.tar configure:3669: $? = 0 configure:3673: tar -xf - <conftest.tar configure:3676: $? = 0 configure:3678: cat conftest.dir/file GrepMe configure:3681: $? = 0 configure:3694: result: gnutar configure:3745: checking whether to enable maintainer-specific portions of Makefiles configure:3754: result: no configure:3771: checking whether ln -s works configure:3775: result: yes configure:3847: checking host platform characteristics configure:4065: result: ok configure:4110: checking for arm-eabi-linux-gcc configure:4137: result: /home/jimmy/android-ndk_auto-r10e/toolchains/arm-linux-androideabi-4.8/prebuilt/linux-x86/bin/arm-linux-androideabi-gcc --sysroot=/home/jimmy/android-ndk_auto-r10e/platforms/android-9/arch-arm configure:4207: checking for arm-eabi-linux-gcc configure:4234: result: /home/jimmy/android-ndk_auto-r10e/toolchains/arm-linux-androideabi-4.8/prebuilt/linux-x86/bin/arm-linux-androideabi-gcc --sysroot=/home/jimmy/android-ndk_auto-r10e/platforms/android-9/arch-arm configure:4503: checking for C compiler version configure:4512: /home/jimmy/android-ndk_auto-r10e/toolchains/arm-linux-androideabi-4.8/prebuilt/linux-x86/bin/arm-linux-androideabi-gcc --sysroot=/home/jimmy/android-ndk_auto-r10e/platforms/android-9/arch-arm --version >&5 arm-linux-androideabi-gcc (GCC) 4.8 Copyright (C) 2013 Free Software Foundation, Inc. This is free software; see the source for copying conditions. There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. configure:4523: $? = 0 configure:4512: /home/jimmy/android-ndk_auto-r10e/toolchains/arm-linux-androideabi-4.8/prebuilt/linux-x86/bin/arm-linux-androideabi-gcc --sysroot=/home/jimmy/android-ndk_auto-r10e/platforms/android-9/arch-arm -v >&5 Using built-in specs. COLLECT_GCC=/home/jimmy/android-ndk_auto-r10e/toolchains/arm-linux-androideabi-4.8/prebuilt/linux-x86/bin/arm-linux-androideabi-gcc COLLECT_LTO_WRAPPER=/home/jimmy/android-ndk_auto-r10e/toolchains/arm-linux-androideabi-4.8/prebuilt/linux-x86/bin/../libexec/gcc/arm-linux-androideabi/4.8/lto-wrapper Target: arm-linux-androideabi Configured with: /s/ndk-toolchain/src/build/../gcc/gcc-4.8/configure --prefix=/tmp/ndk-andrewhsieh/build/toolchain/prefix --target=arm-linux-androideabi --host=x86_64-linux-gnu --build=x86_64-linux-gnu --with-gnu-as --with-gnu-ld --enable-languages=c,c++ --with-gmp=/tmp/ndk-andrewhsieh/build/toolchain/temp-install --with-mpfr=/tmp/ndk-andrewhsieh/build/toolchain/temp-install --with-mpc=/tmp/ndk-andrewhsieh/build/toolchain/temp-install --with-cloog=/tmp/ndk-andrewhsieh/build/toolchain/temp-install --with-isl=/tmp/ndk-andrewhsieh/build/toolchain/temp-install --with-ppl=/tmp/ndk-andrewhsieh/build/toolchain/temp-install --disable-ppl-version-check --disable-cloog-version-check --disable-isl-version-check --enable-cloog-backend=isl --with-host-libstdcxx='-static-libgcc -Wl,-Bstatic,-lstdc++,-Bdynamic -lm' --disable-libssp --enable-threads --disable-nls --disable-libmudflap --disable-libgomp --disable-libstdc__-v3 --disable-sjlj-exceptions --disable-shared --disable-tls --disable-libitm --with-float=soft --with-fpu=vfp --with-arch=armv5te --enable-target-optspace --enable-initfini-array --disable-nls --prefix=/tmp/ndk-andrewhsieh/build/toolchain/prefix --with-sysroot=/tmp/ndk-andrewhsieh/build/toolchain/prefix/sysroot --with-binutils-version=2.25 --with-mpfr-version=3.1.1 --with-mpc-version=1.0.1 --with-gmp-version=5.0.5 --with-gcc-version=4.8 --with-gdb-version=7.7 --with-python=/usr/local/google/home/andrewhsieh/mydroid/ndk/prebuilt/linux-x86/bin/python-config.sh --with-gxx-include-dir=/tmp/ndk-andrewhsieh/build/toolchain/prefix/include/c++/4.8 --with-bugurl=http://source.android.com/source/report-bugs.html --enable-languages=c,c++ --disable-bootstrap --enable-plugins --enable-libgomp --enable-gnu-indirect-function --disable-libsanitizer --enable-gold --enable-threads --enable-graphite=yes --with-cloog-version=0.18.0 --with-isl-version=0.11.1 --enable-eh-frame-hdr-for-static --with-arch=armv5te --program-transform-name='s&^&arm-linux-androideabi-&' --enable-gold=default Thread model: posix gcc version 4.8 (GCC) configure:4523: $? = 0 configure:4512: /home/jimmy/android-ndk_auto-r10e/toolchains/arm-linux-androideabi-4.8/prebuilt/linux-x86/bin/arm-linux-androideabi-gcc --sysroot=/home/jimmy/android-ndk_auto-r10e/platforms/android-9/arch-arm -V >&5 arm-linux-androideabi-gcc: error: unrecognized command line option '-V' arm-linux-androideabi-gcc: fatal error: no input files compilation terminated. configure:4523: $? = 1 configure:4512: /home/jimmy/android-ndk_auto-r10e/toolchains/arm-linux-androideabi-4.8/prebuilt/linux-x86/bin/arm-linux-androideabi-gcc --sysroot=/home/jimmy/android-ndk_auto-r10e/platforms/android-9/arch-arm -qversion >&5 arm-linux-androideabi-gcc: error: unrecognized command line option '-qversion' arm-linux-androideabi-gcc: fatal error: no input files compilation terminated. configure:4523: $? = 1 configure:4543: checking whether the C compiler works configure:4565: /home/jimmy/android-ndk_auto-r10e/toolchains/arm-linux-androideabi-4.8/prebuilt/linux-x86/bin/arm-linux-androideabi-gcc --sysroot=/home/jimmy/android-ndk_auto-r10e/platforms/android-9/arch-arm -DANDROID -DPLATFORM_ANDROID -DLINUX -D__linux__ -DHAVE_USR_INCLUDE_MALLOC_H -DPAGE_SIZE=0x1000 -D_POSIX_PATH_MAX=256 -DS_IWRITE=S_IWUSR -DHAVE_PTHREAD_MUTEX_TIMEDLOCK -fpic -g -funwind-tables -ffunction-sections -fdata-sections -DARM_FPU_NONE=1 -march=armv5te -mtune=xscale -msoft-float -DANDROID -DPLATFORM_ANDROID -DLINUX -D__linux__ -DHAVE_USR_INCLUDE_MALLOC_H -DPAGE_SIZE=0x1000 -D_POSIX_PATH_MAX=256 -DS_IWRITE=S_IWUSR -DHAVE_PTHREAD_MUTEX_TIMEDLOCK -fpic -g -funwind-tables -ffunction-sections -fdata-sections -DARM_FPU_NONE=1 -march=armv5te -mtune=xscale -msoft-float -DGC_LINUX_THREADS -D_GNU_SOURCE -D_REENTRANT -DUSE_MMAP -DUSE_MUNMAP -Wl,--wrap,sigaction -L/home/jimmy/mono-unity-5.6/../../android_krait_signal_handler/build/obj/local/armeabi -lkrait-signal-handler -Wl,--no-undefined -Wl,--gc-sections -Wl,-rpath-link=/home/jimmy/android-ndk_auto-r10e/platforms/android-9/arch-arm/usr/lib -ldl -lm -llog -lc conftest.c >&5 /home/jimmy/android-ndk_auto-r10e/toolchains/arm-linux-androideabi-4.8/prebuilt/linux-x86/bin/../lib/gcc/arm-linux-androideabi/4.8/../../../../arm-linux-androideabi/bin/ld: error: cannot find -lkrait-signal-handler collect2: error: ld returned 1 exit status configure:4569: $? = 1 configure:4607: result: no configure: failed program was: | /* confdefs.h */ | #define PACKAGE_NAME "" | #define PACKAGE_TARNAME "" | #define PACKAGE_VERSION "" | #define PACKAGE_STRING "" | #define PACKAGE_BUGREPORT "" | #define PACKAGE_URL "" | #define PACKAGE "mono" | #define VERSION "2.6.5" | /* end confdefs.h. */ | | int | main () | { | | ; | return 0; | } configure:4612: error: in `/home/jimmy/mono-unity-5.6': configure:4614: error: C compiler cannot create executables See `config.log' for more details ## ---------------- ## ## Cache variables. ## ## ---------------- ## ac_cv_build=x86_64-pc-linux-gnu ac_cv_env_CCASFLAGS_set= ac_cv_env_CCASFLAGS_value= ac_cv_env_CCAS_set= ac_cv_env_CCAS_value= ac_cv_env_CCC_set= ac_cv_env_CCC_value= ac_cv_env_CC_set=set ac_cv_env_CC_value='/home/jimmy/android-ndk_auto-r10e/toolchains/arm-linux-androideabi-4.8/prebuilt/linux-x86/bin/arm-linux-androideabi-gcc --sysroot=/home/jimmy/android-ndk_auto-r10e/platforms/android-9/arch-arm' ac_cv_env_CFLAGS_set=set ac_cv_env_CFLAGS_value='-DANDROID -DPLATFORM_ANDROID -DLINUX -D__linux__ -DHAVE_USR_INCLUDE_MALLOC_H -DPAGE_SIZE=0x1000 -D_POSIX_PATH_MAX=256 -DS_IWRITE=S_IWUSR -DHAVE_PTHREAD_MUTEX_TIMEDLOCK -fpic -g -funwind-tables -ffunction-sections -fdata-sections -DARM_FPU_NONE=1 -march=armv5te -mtune=xscale -msoft-float' ac_cv_env_CPPFLAGS_set=set ac_cv_env_CPPFLAGS_value='-DANDROID -DPLATFORM_ANDROID -DLINUX -D__linux__ -DHAVE_USR_INCLUDE_MALLOC_H -DPAGE_SIZE=0x1000 -D_POSIX_PATH_MAX=256 -DS_IWRITE=S_IWUSR -DHAVE_PTHREAD_MUTEX_TIMEDLOCK -fpic -g -funwind-tables -ffunction-sections -fdata-sections -DARM_FPU_NONE=1 -march=armv5te -mtune=xscale -msoft-float' ac_cv_env_CPP_set=set ac_cv_env_CPP_value=/home/jimmy/android-ndk_auto-r10e/toolchains/arm-linux-androideabi-4.8/prebuilt/linux-x86/bin/arm-linux-androideabi-cpp ac_cv_env_CXXCPP_set=set ac_cv_env_CXXCPP_value=/home/jimmy/android-ndk_auto-r10e/toolchains/arm-linux-androideabi-4.8/prebuilt/linux-x86/bin/arm-linux-androideabi-cpp ac_cv_env_CXXFLAGS_set=set ac_cv_env_CXXFLAGS_value='-DANDROID -DPLATFORM_ANDROID -DLINUX -D__linux__ -DHAVE_USR_INCLUDE_MALLOC_H -DPAGE_SIZE=0x1000 -D_POSIX_PATH_MAX=256 -DS_IWRITE=S_IWUSR -DHAVE_PTHREAD_MUTEX_TIMEDLOCK -fpic -g -funwind-tables -ffunction-sections -fdata-sections -DARM_FPU_NONE=1 -march=armv5te -mtune=xscale -msoft-float' ac_cv_env_CXX_set=set ac_cv_env_CXX_value='/home/jimmy/android-ndk_auto-r10e/toolchains/arm-linux-androideabi-4.8/prebuilt/linux-x86/bin/arm-linux-androideabi-g++ --sysroot=/home/jimmy/android-ndk_auto-r10e/platforms/android-9/arch-arm' ac_cv_env_LDFLAGS_set=set ac_cv_env_LDFLAGS_value='-Wl,--wrap,sigaction -L/home/jimmy/mono-unity-5.6/../../android_krait_signal_handler/build/obj/local/armeabi -lkrait-signal-handler -Wl,--no-undefined -Wl,--gc-sections -Wl,-rpath-link=/home/jimmy/android-ndk_auto-r10e/platforms/android-9/arch-arm/usr/lib -ldl -lm -llog -lc ' ac_cv_env_LIBS_set= ac_cv_env_LIBS_value= ac_cv_env_LT_SYS_LIBRARY_PATH_set= ac_cv_env_LT_SYS_LIBRARY_PATH_value= ac_cv_env_XMKMF_set= ac_cv_env_XMKMF_value= ac_cv_env_build_alias_set= ac_cv_env_build_alias_value= ac_cv_env_host_alias_set=set ac_cv_env_host_alias_value=arm-eabi-linux ac_cv_env_target_alias_set= ac_cv_env_target_alias_value= ac_cv_host=arm-eabi-linux-gnu ac_cv_path_install='/usr/bin/install -c' ac_cv_path_mkdir=/bin/mkdir ac_cv_prog_AWK=gawk ac_cv_prog_CC='/home/jimmy/android-ndk_auto-r10e/toolchains/arm-linux-androideabi-4.8/prebuilt/linux-x86/bin/arm-linux-androideabi-gcc --sysroot=/home/jimmy/android-ndk_auto-r10e/platforms/android-9/arch-arm' ac_cv_prog_STRIP=/home/jimmy/android-ndk_auto-r10e/toolchains/arm-linux-androideabi-4.8/prebuilt/linux-x86/bin/arm-linux-androideabi-strip ac_cv_prog_make_make_set=yes ac_cv_target=arm-eabi-linux-gnu am_cv_make_support_nested_variables=yes am_cv_prog_tar_ustar=gnutar mono_cv_uscore=yes ## ----------------- ## ## Output variables. ## ## ----------------- ## ACLOCAL='${SHELL} /home/jimmy/mono-unity-5.6/missing aclocal-1.15' ALPHA_FALSE='' ALPHA_TRUE='' AMD64_FALSE='' AMD64_TRUE='' AMDEPBACKSLASH='' AMDEP_FALSE='' AMDEP_TRUE='' AMTAR='$${TAR-tar}' AM_BACKSLASH='\' AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)' AM_DEFAULT_VERBOSITY='1' AM_V='$(V)' API_VER='1.0' AR='/home/jimmy/android-ndk_auto-r10e/toolchains/arm-linux-androideabi-4.8/prebuilt/linux-x86/bin/arm-linux-androideabi-ar' ARM_FALSE='' ARM_TRUE='' AS='/home/jimmy/android-ndk_auto-r10e/toolchains/arm-linux-androideabi-4.8/prebuilt/linux-x86/bin/arm-linux-androideabi-as' AUTOCONF='${SHELL} /home/jimmy/mono-unity-5.6/missing autoconf' AUTOHEADER='${SHELL} /home/jimmy/mono-unity-5.6/missing autoheader' AUTOMAKE='${SHELL} /home/jimmy/mono-unity-5.6/missing automake-1.15' AWK='gawk' BISON='' BUILD_EXEEXT='' BUILD_GLIB_CFLAGS='' BUILD_GLIB_LIBS='' BUILD_MCS_FALSE='' BUILD_MCS_TRUE='' CC='/home/jimmy/android-ndk_auto-r10e/toolchains/arm-linux-androideabi-4.8/prebuilt/linux-x86/bin/arm-linux-androideabi-gcc --sysroot=/home/jimmy/android-ndk_auto-r10e/platforms/android-9/arch-arm' CCAS='' CCASDEPMODE='' CCASFLAGS='' CCDEPMODE='' CC_FOR_BUILD='' CFLAGS='-DANDROID -DPLATFORM_ANDROID -DLINUX -D__linux__ -DHAVE_USR_INCLUDE_MALLOC_H -DPAGE_SIZE=0x1000 -D_POSIX_PATH_MAX=256 -DS_IWRITE=S_IWUSR -DHAVE_PTHREAD_MUTEX_TIMEDLOCK -fpic -g -funwind-tables -ffunction-sections -fdata-sections -DARM_FPU_NONE=1 -march=armv5te -mtune=xscale -msoft-float' CFLAGS_FOR_BUILD='' CPP='/home/jimmy/android-ndk_auto-r10e/toolchains/arm-linux-androideabi-4.8/prebuilt/linux-x86/bin/arm-linux-androideabi-cpp' CPPFLAGS='-DANDROID -DPLATFORM_ANDROID -DLINUX -D__linux__ -DHAVE_USR_INCLUDE_MALLOC_H -DPAGE_SIZE=0x1000 -D_POSIX_PATH_MAX=256 -DS_IWRITE=S_IWUSR -DHAVE_PTHREAD_MUTEX_TIMEDLOCK -fpic -g -funwind-tables -ffunction-sections -fdata-sections -DARM_FPU_NONE=1 -march=armv5te -mtune=xscale -msoft-float -DGC_LINUX_THREADS -D_GNU_SOURCE -D_REENTRANT -DUSE_MMAP -DUSE_MUNMAP' CROSS_COMPILING_FALSE='' CROSS_COMPILING_TRUE='' CXX='/home/jimmy/android-ndk_auto-r10e/toolchains/arm-linux-androideabi-4.8/prebuilt/linux-x86/bin/arm-linux-androideabi-g++ --sysroot=/home/jimmy/android-ndk_auto-r10e/platforms/android-9/arch-arm' CXXCPP='/home/jimmy/android-ndk_auto-r10e/toolchains/arm-linux-androideabi-4.8/prebuilt/linux-x86/bin/arm-linux-androideabi-cpp' CXXDEPMODE='' CXXFLAGS='-DANDROID -DPLATFORM_ANDROID -DLINUX -D__linux__ -DHAVE_USR_INCLUDE_MALLOC_H -DPAGE_SIZE=0x1000 -D_POSIX_PATH_MAX=256 -DS_IWRITE=S_IWUSR -DHAVE_PTHREAD_MUTEX_TIMEDLOCK -fpic -g -funwind-tables -ffunction-sections -fdata-sections -DARM_FPU_NONE=1 -march=armv5te -mtune=xscale -msoft-float' CYGPATH_W='echo' DEFS='' DEPDIR='' DISABLE_JIT_FALSE='' DISABLE_JIT_TRUE='' DISABLE_MCS_DOCS_FALSE='' DISABLE_MCS_DOCS_TRUE='' DISABLE_PROFILER_FALSE='' DISABLE_PROFILER_TRUE='' DISABLE_SHARED_HANDLES='' DLLTOOL='' DOLT_BASH='' DSYMUTIL='' DTRACE='' DTRACEFLAGS='' DTRACE_G_REQUIRED_FALSE='' DTRACE_G_REQUIRED_TRUE='' DUMPBIN='' ECHO_C='' ECHO_N='-n' ECHO_T='' EGLIB_BUILD_FALSE='' EGLIB_BUILD_TRUE='' EGREP='' ENABLE_DTRACE_FALSE='' ENABLE_DTRACE_TRUE='' ENABLE_LLVM_FALSE='' ENABLE_LLVM_TRUE='' ENABLE_NUNIT_TESTS_FALSE='' ENABLE_NUNIT_TESTS_TRUE='' EXEEXT='' FGREP='' GETTEXT_MACRO_VERSION='' GLIB_CFLAGS='' GLIB_LIBS='' GMODULE_CFLAGS='' GMODULE_LIBS='' GMSGFMT='' GMSGFMT_015='' GREP='' HAVE_BOEHM_GC='' HAVE_MSGFMT='' HAVE_OPROFILE_FALSE='' HAVE_OPROFILE_TRUE='' HAVE_ZLIB_FALSE='' HAVE_ZLIB_TRUE='' HOST_CC='' HPPA_FALSE='' HPPA_TRUE='' IA64_FALSE='' IA64_TRUE='' INCLUDED_LIBGC_FALSE='' INCLUDED_LIBGC_TRUE='' INSTALL_2_0_FALSE='' INSTALL_2_0_TRUE='' INSTALL_2_1_FALSE='' INSTALL_2_1_TRUE='' INSTALL_4_0_FALSE='' INSTALL_4_0_TRUE='' INSTALL_DATA='${INSTALL} -m 644' INSTALL_MONOTOUCH_FALSE='' INSTALL_MONOTOUCH_TRUE='' INSTALL_PROGRAM='${INSTALL}' INSTALL_SCRIPT='${INSTALL}' INSTALL_STRIP_PROGRAM='$(install_sh) -c -s' INSTALL_UNITY_FALSE='' INSTALL_UNITY_TRUE='' INTERP_SUPPORTED_FALSE='' INTERP_SUPPORTED_TRUE='' INTL='' JIT_SUPPORTED_FALSE='' JIT_SUPPORTED_TRUE='' LD='/home/jimmy/android-ndk_auto-r10e/toolchains/arm-linux-androideabi-4.8/prebuilt/linux-x86/bin/arm-linux-androideabi-ld' LDFLAGS='-Wl,--wrap,sigaction -L/home/jimmy/mono-unity-5.6/../../android_krait_signal_handler/build/obj/local/armeabi -lkrait-signal-handler -Wl,--no-undefined -Wl,--gc-sections -Wl,-rpath-link=/home/jimmy/android-ndk_auto-r10e/platforms/android-9/arch-arm/usr/lib -ldl -lm -llog -lc ' LIBC='' LIBGC_CFLAGS='' LIBGC_LIBS='' LIBGC_STATIC_LIBS='' LIBOBJS='' LIBS='' LIBTOOL='' LIPO='' LLVM_CFLAGS='' LLVM_CONFIG='' LLVM_CXXFLAGS='' LLVM_LDFLAGS='' LLVM_LIBS='' LN_S='ln -s' LTCOMPILE='' LTCXXCOMPILE='' LTLIBOBJS='' LT_SYS_LIBRARY_PATH='' M68K_FALSE='' M68K_TRUE='' MAINT='#' MAINTAINER_MODE_FALSE='' MAINTAINER_MODE_TRUE='#' MAKEINFO='${SHELL} /home/jimmy/mono-unity-5.6/missing makeinfo' MANIFEST_TOOL='' MIPS_FALSE='' MIPS_GCC_FALSE='' MIPS_GCC_TRUE='' MIPS_SGI_FALSE='' MIPS_SGI_TRUE='' MIPS_TRUE='' MKDIR_P='/bin/mkdir -p' MONO_DEBUGGER_SUPPORTED_FALSE='' MONO_DEBUGGER_SUPPORTED_TRUE='' MONO_DL_NEED_USCORE='' MSGFMT='' MSGFMT_015='' MSGMERGE='' NM='' NMEDIT='' NO_VERSION_SCRIPT_FALSE='' NO_VERSION_SCRIPT_TRUE='' OBJDUMP='' OBJEXT='' OPROFILE_CFLAGS='' OPROFILE_LIBS='' OTOOL64='' OTOOL='' PACKAGE='mono' PACKAGE_BUGREPORT='' PACKAGE_NAME='' PACKAGE_STRING='' PACKAGE_TARNAME='' PACKAGE_URL='' PACKAGE_VERSION='' PATH_SEPARATOR=':' PKG_CONFIG='' PLATFORM_DARWIN_FALSE='' PLATFORM_DARWIN_TRUE='#' PLATFORM_LINUX_FALSE='#' PLATFORM_LINUX_TRUE='' PLATFORM_SIGPOSIX_FALSE='#' PLATFORM_SIGPOSIX_TRUE='' PLATFORM_WIN32_FALSE='' PLATFORM_WIN32_TRUE='#' POWERPC64_FALSE='' POWERPC64_TRUE='' POWERPC_FALSE='' POWERPC_TRUE='' RANLIB='/home/jimmy/android-ndk_auto-r10e/toolchains/arm-linux-androideabi-4.8/prebuilt/linux-x86/bin/arm-linux-androideabi-ranlib' S390_FALSE='' S390_TRUE='' S390x_FALSE='' S390x_TRUE='' SED='' SET_MAKE='' SHELL='/bin/bash' SPARC64_FALSE='' SPARC64_TRUE='' SPARC_FALSE='' SPARC_TRUE='' SQLITE3='' SQLITE='' STATIC_MONO_FALSE='' STATIC_MONO_TRUE='' STRIP='/home/jimmy/android-ndk_auto-r10e/toolchains/arm-linux-androideabi-4.8/prebuilt/linux-x86/bin/arm-linux-androideabi-strip' USE_BATCH_FILES_FALSE='' USE_BATCH_FILES_TRUE='' USE_JIT_FALSE='' USE_JIT_TRUE='' USE_NLS='' VERSION='2.6.5' X11='' X86_FALSE='' X86_TRUE='' XATTR_LIB='' XGETTEXT='' XGETTEXT_015='' XGETTEXT_EXTRA_OPTIONS='' XMKMF='' ac_ct_AR='' ac_ct_CC='' ac_ct_CXX='' ac_ct_DUMPBIN='' am__EXEEXT_FALSE='' am__EXEEXT_TRUE='' am__fastdepCCAS_FALSE='' am__fastdepCCAS_TRUE='' am__fastdepCC_FALSE='' am__fastdepCC_TRUE='' am__fastdepCXX_FALSE='' am__fastdepCXX_TRUE='' am__include='' am__isrc='' am__leading_dot='.' am__nodep='' am__quote='' am__tar='tar --format=ustar -chf - "$$tardir"' am__untar='tar -xf -' arch_target='' bindir='${exec_prefix}/bin' build='x86_64-pc-linux-gnu' build_alias='' build_cpu='x86_64' build_os='linux-gnu' build_vendor='pc' datadir='${datarootdir}' datarootdir='${prefix}/share' docdir='${datarootdir}/doc/${PACKAGE}' docs_dir='' dvidir='${docdir}' eglib_dir='' exec_prefix='NONE' export_ldflags='' host='arm-eabi-linux-gnu' host_alias='arm-eabi-linux' host_cpu='arm' host_os='linux-gnu' host_vendor='eabi' htmldir='${docdir}' ikvm_native_dir='' includedir='${prefix}/include' infodir='${datarootdir}/info' install_sh='${SHELL} /home/jimmy/mono-unity-5.6/install-sh' libdir='${exec_prefix}/lib' libexecdir='${exec_prefix}/libexec' libgc_dir='' libgdiplus_loc='' libmono_cflags='-D_REENTRANT' libmono_ldflags='' libsuffix='' localedir='${datarootdir}/locale' localstatedir='${prefix}/var' mandir='${datarootdir}/man' mcs_topdir='' mcs_topdir_from_srcdir='' mkdir_p='$(MKDIR_P)' mono_build_root='' mono_cfg_dir='' mono_runtime='' oldincludedir='/usr/include' pdfdir='${docdir}' prefix='/home/jimmy/mono-unity-5.6/builds/android' program_transform_name='s,x,x,' psdir='${docdir}' reloc_libdir='lib' runstatedir='${localstatedir}/run' sbindir='${exec_prefix}/sbin' sharedstatedir='${prefix}/com' subdirs='' sysconfdir='${prefix}/etc' target='arm-eabi-linux-gnu' target_alias='' target_cpu='arm' target_os='linux-gnu' target_vendor='eabi' ## ----------- ## ## confdefs.h. ## ## ----------- ## /* confdefs.h */ #define PACKAGE_NAME "" #define PACKAGE_TARNAME "" #define PACKAGE_VERSION "" #define PACKAGE_STRING "" #define PACKAGE_BUGREPORT "" #define PACKAGE_URL "" #define PACKAGE "mono" #define VERSION "2.6.5" configure: exit 77

libgit2高山linux docker错误

<div class="post-text" itemprop="text"> <p>Ok, This is above my understanding. I have really no idea what exactly is wrong here but something is. I am on the verge of breaking by banging my head on the wall and yet nothing came up. Can any kind soul please help me.</p> <p>This is my Dockerfile - </p> <pre><code>FROM golang:1.7-alpine RUN echo http://dl-4.alpinelinux.org/alpine/edge/testing &gt;&gt; /etc/apk/repositories RUN apk update &amp;&amp; apk upgrade &amp;&amp; apk add --no-cache bash git openssh alpine-sdk libgit2 RUN pkg-config --print-errors --exists libgit2 </code></pre> <p>I have wrote it with advice from here - <a href="https://stackoverflow.com/questions/36803993/how-do-i-install-libgit2-on-alipne-linux">How do I install libgit2 on Alipne linux</a></p> <p>And this is the end result - </p> <pre><code>Sending build context to Docker daemon 513 kB Step 1 : FROM golang:1.7-alpine ---&gt; 161e259af05d Step 2 : RUN echo http://dl-4.alpinelinux.org/alpine/edge/testing &gt;&gt; /etc/apk/repositories ---&gt; Running in 428c62a1fc94 ---&gt; 80a4e0dca9d7 Removing intermediate container 428c62a1fc94 Step 3 : RUN apk update &amp;&amp; apk upgrade &amp;&amp; apk add --no-cache bash git openssh alpine-sdk libgit2 ---&gt; Running in 7876608fa4e7 fetch http://dl-cdn.alpinelinux.org/alpine/v3.4/main/x86_64/APKINDEX.tar.gz fetch http://dl-cdn.alpinelinux.org/alpine/v3.4/community/x86_64/APKINDEX.tar.gz fetch http://dl-4.alpinelinux.org/alpine/edge/testing/x86_64/APKINDEX.tar.gz v3.4.4-9-g07aa589 [http://dl-cdn.alpinelinux.org/alpine/v3.4/main] v3.4.4-1-g77d84e1 [http://dl-cdn.alpinelinux.org/alpine/v3.4/community] v3.4.0-4072-g7fdcbdd [http://dl-4.alpinelinux.org/alpine/edge/testing] OK: 7381 distinct packages available (1/2) Upgrading libcrypto1.0 (1.0.2i-r0 -&gt; 1.0.2j-r0) (2/2) Upgrading libssl1.0 (1.0.2i-r0 -&gt; 1.0.2j-r0) Executing busybox-1.24.2-r11.trigger OK: 5 MiB in 12 packages fetch http://dl-cdn.alpinelinux.org/alpine/v3.4/main/x86_64/APKINDEX.tar.gz fetch http://dl-cdn.alpinelinux.org/alpine/v3.4/community/x86_64/APKINDEX.tar.gz fetch http://dl-4.alpinelinux.org/alpine/edge/testing/x86_64/APKINDEX.tar.gz (1/63) Installing fakeroot (1.20.2-r3) (2/63) Installing sudo (1.8.16-r0) (3/63) Installing libcap (2.25-r0) (4/63) Installing pax-utils (1.1.6-r0) (5/63) Installing openssl (1.0.2j-r0) (6/63) Installing libattr (2.4.47-r4) (7/63) Installing attr (2.4.47-r4) (8/63) Installing tar (1.29-r0) (9/63) Installing pkgconf (0.9.12-r0) (10/63) Installing patch (2.7.5-r1) (11/63) Installing libssh2 (1.7.0-r0) (12/63) Installing libcurl (7.50.3-r0) (13/63) Installing curl (7.50.3-r0) (14/63) Installing abuild (2.27.1-r1) Executing abuild-2.27.1-r1.pre-install (15/63) Installing binutils-libs (2.26-r0) (16/63) Installing binutils (2.26-r0) (17/63) Installing gmp (6.1.0-r0) (18/63) Installing isl (0.14.1-r0) (19/63) Installing libgomp (5.3.0-r0) (20/63) Installing libatomic (5.3.0-r0) (21/63) Installing libgcc (5.3.0-r0) (22/63) Installing pkgconfig (0.25-r1) (23/63) Installing mpfr3 (3.1.2-r0) (24/63) Installing mpc1 (1.0.3-r0) (25/63) Installing libstdc++ (5.3.0-r0) (26/63) Installing gcc (5.3.0-r0) (27/63) Installing make (4.1-r1) (28/63) Installing musl-dev (1.1.14-r12) (29/63) Installing libc-dev (0.7-r0) (30/63) Installing fortify-headers (0.8-r0) (31/63) Installing g++ (5.3.0-r0) (32/63) Installing build-base (0.4-r1) (33/63) Installing expat (2.1.1-r1) (34/63) Installing pcre (8.38-r1) (35/63) Installing git (2.8.3-r0) (36/63) Installing xz-libs (5.2.2-r1) (37/63) Installing lzo (2.09-r1) (38/63) Installing squashfs-tools (4.3-r2) (39/63) Installing libmagic (5.27-r0) (40/63) Installing file (5.27-r0) (41/63) Installing bzip2 (1.0.6-r5) (42/63) Installing libbz2 (1.0.6-r5) (43/63) Installing cdrkit (1.1.11-r2) (44/63) Installing acct (6.6.2-r0) (45/63) Installing lddtree (1.25-r2) (46/63) Installing libuuid (2.28-r3) (47/63) Installing libblkid (2.28-r3) (48/63) Installing device-mapper (2.02.154-r0) (49/63) Installing cryptsetup-libs (1.7.1-r0) (50/63) Installing kmod (22-r0) (51/63) Installing mkinitfs (3.0.5-r1) Executing mkinitfs-3.0.5-r1.post-install (52/63) Installing mtools (4.0.18-r1) (53/63) Installing alpine-sdk (0.4-r3) (54/63) Installing ncurses-terminfo-base (6.0-r7) (55/63) Installing ncurses-terminfo (6.0-r7) (56/63) Installing ncurses-libs (6.0-r7) (57/63) Installing readline (6.3.008-r4) (58/63) Installing bash (4.3.42-r3) Executing bash-4.3.42-r3.post-install (59/63) Installing libgit2-libs (0.24.1-r0) (60/63) Installing libgit2 (0.24.1-r0) (61/63) Installing openssh-client (7.2_p2-r3) (62/63) Installing openssh-sftp-server (7.2_p2-r3) (63/63) Installing openssh (7.2_p2-r3) Executing busybox-1.24.2-r11.trigger Executing ca-certificates-20160104-r4.trigger OK: 198 MiB in 75 packages ---&gt; f73132c8c72e Removing intermediate container 7876608fa4e7 Step 4 : RUN pkg-config --print-errors --exists libgit2 ---&gt; Running in f69f97142e81 Package libgit2 was not found in the pkg-config search path. Perhaps you should add the directory containing `libgit2.pc' to the PKG_CONFIG_PATH environment variable Package 'libgit2', required by 'world', not found The command '/bin/sh -c pkg-config --print-errors --exists libgit2' returned a non-zero code: 1 </code></pre> <p>So what is it that is wrong? Why it can not see the installed libgit2 (0.24.1-r0). I really tried every possible way to get this one package built and installed in my docker container and I can not simply do it. I have no idea what is wrong. Please help me.</p> <p>-------------- EDIT</p> <p>The last command in my Dockerfile is actually taken from here <a href="http://lists.subsurface-divelog.org/pipermail/subsurface/2014-November/015646.html" rel="nofollow noreferrer">http://lists.subsurface-divelog.org/pipermail/subsurface/2014-November/015646.html</a> </p> <p>And certainly the issue depicted there and the one that I have is not the same</p> <p>---------------- EDIT 2</p> <p>Anyone interested in doing the effort all by your self can follow this - </p> <pre><code>FROM golang:1.7-alpine ENV TARGET venv RUN echo http://dl-4.alpinelinux.org/alpine/edge/testing &gt;&gt; /etc/apk/repositories RUN apk update &amp;&amp; apk upgrade &amp;&amp; apk add --no-cache bash git openssh alpine-sdk libcurl RUN apk update &amp;&amp; apk add cmake RUN git clone git://github.com/libgit2/libgit2.git WORKDIR $GOPATH/libgit2 RUN git checkout v0.24.0 &amp;&amp; rm -rf build &amp;&amp; mkdir build &amp;&amp; cd build \ &amp;&amp; cmake .. -DCMAKE_INSTALL_PREFIX=$TARGET -DBUILD_CLAR=OFF &amp;&amp; cmake --build . --target install ENV PKG_CONFIG_PATH /go/libgit2/build/venv/lib/pkgconfig:$PKG_CONFIG_PATH </code></pre> <p>For a simpler and cleaner approach follow the accepted answer. This one only has the advantage of having libgit2 version which is not available via apk yet. </p> <p>One more thing - <code>-DBUILD_CLAR=OFF</code> is there because I did not want to install Python in the image just to run the tests</p> </div>

RTEMS移植GUI (MicroWindows) 的过程中出错

执行./do_it后: 错误是: configure: error: in `/home/Joshua/rtems-graphics-toolkit/libpng-1.5.12': configure: error: C compiler cannot create executables See `config.log' for more details ERROR: Could not configure libpng-1.5.12 下面是libpng下得config.log内容: This file contains any messages produced by compilers while running configure, to aid debugging if configure makes a mistake. It was created by libpng configure 1.5.12, which was generated by GNU Autoconf 2.68. Invocation command line was $ ./configure --host=i386-rtems4.11 --prefix=/opt/rtems-4.11/i386-rtems4.11/pc686 --includedir=/opt/rtems-4.11/i386-rtems4.11/pc686/lib/include --libdir=/opt/rtems-4.11/i386-rtems4.11/pc686/lib --disable-shared ## --------- ## ## Platform. ## ## --------- ## hostname = localhost.localdomain uname -m = i686 uname -r = 3.9.5-301.fc19.i686 uname -s = Linux uname -v = #1 SMP Tue Jun 11 20:01:50 UTC 2013 /usr/bin/uname -p = i686 /bin/uname -X = unknown /bin/arch = i686 /usr/bin/arch -k = unknown /usr/convex/getsysinfo = unknown /usr/bin/hostinfo = unknown /bin/machine = unknown /usr/bin/oslevel = unknown /bin/universe = unknown PATH: /usr/local/sbin PATH: /usr/local/bin PATH: /sbin PATH: /bin PATH: /usr/sbin PATH: /usr/bin PATH: /root/bin ## ----------- ## ## Core tests. ## ## ----------- ## configure:2321: checking for a BSD-compatible install configure:2389: result: /bin/install -c configure:2400: checking whether build environment is sane configure:2450: result: yes configure:2499: checking for i386-rtems4.11-strip configure:2529: result: no configure:2539: checking for strip configure:2555: found /bin/strip configure:2566: result: strip configure:2591: checking for a thread-safe mkdir -p configure:2630: result: /bin/mkdir -p configure:2643: checking for gawk configure:2659: found /bin/gawk configure:2670: result: gawk configure:2681: checking whether make sets $(MAKE) configure:2703: result: yes configure:2784: checking whether to enable maintainer-specific portions of Makefiles configure:2793: result: no configure:2832: checking for i386-rtems4.11-gcc configure:2862: result: no configure:2872: checking for gcc configure:2888: found /bin/gcc configure:2899: result: gcc configure:3128: checking for C compiler version configure:3137: gcc --version >&5 gcc (GCC) 4.8.2 20131017 (Red Hat 4.8.2-1) Copyright (C) 2013 Free Software Foundation, Inc. This is free software; see the source for copying conditions. There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. configure:3148: $? = 0 configure:3137: gcc -v >&5 Using built-in specs. COLLECT_GCC=gcc COLLECT_LTO_WRAPPER=/usr/libexec/gcc/i686-redhat-linux/4.8.2/lto-wrapper Target: i686-redhat-linux Configured with: ../configure --prefix=/usr --mandir=/usr/share/man --infodir=/usr/share/info --with-bugurl=http://bugzilla.redhat.com/bugzilla --enable-bootstrap --enable-shared --enable-threads=posix --enable-checking=release --with-system-zlib --enable-__cxa_atexit --disable-libunwind-exceptions --enable-gnu-unique-object --enable-linker-build-id --with-linker-hash-style=gnu --enable-languages=c,c++,objc,obj-c++,java,fortran,ada,go,lto --enable-plugin --enable-initfini-array --enable-java-awt=gtk --disable-dssi --with-java-home=/usr/lib/jvm/java-1.5.0-gcj-1.5.0.0/jre --enable-libgcj-multifile --enable-java-maintainer-mode --with-ecj-jar=/usr/share/java/eclipse-ecj.jar --disable-libjava-multilib --with-isl=/builddir/build/BUILD/gcc-4.8.2-20131017/obj-i686-redhat-linux/isl-install --with-cloog=/builddir/build/BUILD/gcc-4.8.2-20131017/obj-i686-redhat-linux/cloog-install --with-tune=generic --with-arch=i686 --build=i686-redhat-linux Thread model: posix gcc version 4.8.2 20131017 (Red Hat 4.8.2-1) (GCC) configure:3148: $? = 0 configure:3137: gcc -V >&5 gcc: error: unrecognized command line option '-V' gcc: fatal error: no input files compilation terminated. configure:3148: $? = 4 configure:3137: gcc -qversion >&5 gcc: error: unrecognized command line option '-qversion' gcc: fatal error: no input files compilation terminated. configure:3148: $? = 4 configure:3168: checking whether the C compiler works configure:3190: gcc --pipe -B/opt/rtems-4.11/i386-rtems4.11/pc686/lib/ -specs bsp_specs -qrtems -mtune=pentiumpro conftest.c >&5 /bin/ld: cannot find -lgcc_s /bin/ld: cannot find -lc /bin/ld: cannot find -lgcc_s collect2: error: ld returned 1 exit status configure:3194: $? = 1 configure:3232: result: no configure: failed program was: | /* confdefs.h */ | #define PACKAGE_NAME "libpng" | #define PACKAGE_TARNAME "libpng" | #define PACKAGE_VERSION "1.5.12" | #define PACKAGE_STRING "libpng 1.5.12" | #define PACKAGE_BUGREPORT "png-mng-implement@lists.sourceforge.net" | #define PACKAGE_URL "" | #define PACKAGE "libpng" | #define VERSION "1.5.12" | /* end confdefs.h. */ | | int | main () | { | | ; | return 0; | } configure:3237: error: in `/home/Joshua/rtems-graphics-toolkit/libpng-1.5.12': configure:3239: error: C compiler cannot create executables See `config.log' for more details ## ---------------- ## ## Cache variables. ## ## ---------------- ## ac_cv_env_CCASFLAGS_set= ac_cv_env_CCASFLAGS_value= ac_cv_env_CCAS_set= ac_cv_env_CCAS_value= ac_cv_env_CC_set= ac_cv_env_CC_value= ac_cv_env_CFLAGS_set=set ac_cv_env_CFLAGS_value=' --pipe -B/opt/rtems-4.11/i386-rtems4.11/pc686/lib/ -specs bsp_specs -qrtems -mtune=pentiumpro' ac_cv_env_CPPFLAGS_set= ac_cv_env_CPPFLAGS_value= ac_cv_env_CPP_set= ac_cv_env_CPP_value= ac_cv_env_LDFLAGS_set= ac_cv_env_LDFLAGS_value= ac_cv_env_LIBS_set= ac_cv_env_LIBS_value= ac_cv_env_build_alias_set= ac_cv_env_build_alias_value= ac_cv_env_host_alias_set=set ac_cv_env_host_alias_value=i386-rtems4.11 ac_cv_env_target_alias_set= ac_cv_env_target_alias_value= ac_cv_path_install='/bin/install -c' ac_cv_path_mkdir=/bin/mkdir ac_cv_prog_AWK=gawk ac_cv_prog_ac_ct_CC=gcc ac_cv_prog_ac_ct_STRIP=strip ac_cv_prog_make_make_set=yes ## ----------------- ## ## Output variables. ## ## ----------------- ## ACLOCAL='${SHELL} /home/Joshua/rtems-graphics-toolkit/libpng-1.5.12/missing --run aclocal-1.11' AMDEPBACKSLASH='' AMDEP_FALSE='' AMDEP_TRUE='' AMTAR='${SHELL} /home/Joshua/rtems-graphics-toolkit/libpng-1.5.12/missing --run tar' AM_CCASFLAGS='' AR='' AS='' AUTOCONF='${SHELL} /home/Joshua/rtems-graphics-toolkit/libpng-1.5.12/missing --run autoconf' AUTOHEADER='${SHELL} /home/Joshua/rtems-graphics-toolkit/libpng-1.5.12/missing --run autoheader' AUTOMAKE='${SHELL} /home/Joshua/rtems-graphics-toolkit/libpng-1.5.12/missing --run automake-1.11' AWK='gawk' CC='gcc' CCAS='' CCASDEPMODE='' CCASFLAGS='' CCDEPMODE='' CFLAGS=' --pipe -B/opt/rtems-4.11/i386-rtems4.11/pc686/lib/ -specs bsp_specs -qrtems -mtune=pentiumpro' CPP='' CPPFLAGS='' CYGPATH_W='echo' DEFS='' DEPDIR='' DFNCPP='' DLLTOOL='' DSYMUTIL='' DUMPBIN='' ECHO_C='' ECHO_N='-n' ECHO_T='' EGREP='' EXEEXT='' FGREP='' GREP='' HAVE_LD_VERSION_SCRIPT_FALSE='' HAVE_LD_VERSION_SCRIPT_TRUE='' HAVE_SOLARIS_LD_FALSE='' HAVE_SOLARIS_LD_TRUE='' INSTALL_DATA='${INSTALL} -m 644' INSTALL_PROGRAM='${INSTALL}' INSTALL_SCRIPT='${INSTALL}' INSTALL_STRIP_PROGRAM='$(install_sh) -c -s' LD='' LDFLAGS='' LIBOBJS='' LIBPNG_DEFINES='' LIBS='' LIBTOOL='' LIPO='' LN_S='' LTLIBOBJS='' MAINT='#' MAINTAINER_MODE_FALSE='' MAINTAINER_MODE_TRUE='#' MAKEINFO='${SHELL} /home/Joshua/rtems-graphics-toolkit/libpng-1.5.12/missing --run makeinfo' MANIFEST_TOOL='' MKDIR_P='/bin/mkdir -p' NM='' NMEDIT='' OBJDUMP='' OBJEXT='' OTOOL64='' OTOOL='' PACKAGE='libpng' PACKAGE_BUGREPORT='png-mng-implement@lists.sourceforge.net' PACKAGE_NAME='libpng' PACKAGE_STRING='libpng 1.5.12' PACKAGE_TARNAME='libpng' PACKAGE_URL='' PACKAGE_VERSION='1.5.12' PATH_SEPARATOR=':' PNGLIB_MAJOR='1' PNGLIB_MINOR='5' PNGLIB_RELEASE='12' PNGLIB_VERSION='1.5.12' PNG_ARM_NEON_FALSE='' PNG_ARM_NEON_TRUE='' POW_LIB='' RANLIB='' SED='' SET_MAKE='' SHELL='/bin/sh' STRIP='strip' SYMBOL_PREFIX='' VERSION='1.5.12' ac_ct_AR='' ac_ct_CC='gcc' ac_ct_DUMPBIN='' am__EXEEXT_FALSE='' am__EXEEXT_TRUE='' am__fastdepCCAS_FALSE='' am__fastdepCCAS_TRUE='' am__fastdepCC_FALSE='' am__fastdepCC_TRUE='' am__include='' am__isrc='' am__leading_dot='.' am__nodep='' am__quote='' am__tar='${AMTAR} chof - "$$tardir"' am__untar='${AMTAR} xf -' binconfigs='' bindir='${exec_prefix}/bin' build='' build_alias='' build_cpu='' build_os='' build_vendor='' datadir='${datarootdir}' datarootdir='${prefix}/share' docdir='${datarootdir}/doc/${PACKAGE_TARNAME}' dvidir='${docdir}' exec_prefix='NONE' host='i386-rtems4.11' host_alias='i386-rtems4.11' host_cpu='' host_os='' host_vendor='' htmldir='${docdir}' includedir='/opt/rtems-4.11/i386-rtems4.11/pc686/lib/include' infodir='${datarootdir}/info' install_sh='${SHELL} /home/Joshua/rtems-graphics-toolkit/libpng-1.5.12/install-sh' libdir='/opt/rtems-4.11/i386-rtems4.11/pc686/lib' libexecdir='${exec_prefix}/libexec' localedir='${datarootdir}/locale' localstatedir='${prefix}/var' mandir='${datarootdir}/man' mkdir_p='/bin/mkdir -p' oldincludedir='/usr/include' pdfdir='${docdir}' pkgconfigdir='' prefix='/opt/rtems-4.11/i386-rtems4.11/pc686' program_transform_name='s,x,x,' psdir='${docdir}' sbindir='${exec_prefix}/sbin' sharedstatedir='${prefix}/com' sysconfdir='${prefix}/etc' target_alias='' ## ----------- ## ## confdefs.h. ## ## ----------- ## /* confdefs.h */ #define PACKAGE_NAME "libpng" #define PACKAGE_TARNAME "libpng" #define PACKAGE_VERSION "1.5.12" #define PACKAGE_STRING "libpng 1.5.12" #define PACKAGE_BUGREPORT "png-mng-implement@lists.sourceforge.net" #define PACKAGE_URL "" #define PACKAGE "libpng" #define VERSION "1.5.12" configure: exit 77

如何在Rest API中解决此数组错误

<div class="post-text" itemprop="text"> <p>I am creating a ticket reservation system. So , in this system I used API to request and get(response) data. But , when I got the response from API , it contains arrays of arrays. </p> <pre><code>{ "OTA_AirLowFareSearchRS": { "PricedItinCount": 25, "BrandedOneWayItinCount": 0, "SimpleOneWayItinCount": 0, "DepartedItinCount": 0, "SoldOutItinCount": 0, "AvailableItinCount": 0, "Version": "4.2.0", "Success": {}, "Warnings": { "Warning": [ { "Type": "WORKERTHREAD", "ShortText": "2878556866627349184", "Code": "TRANSACTIONID", "MessageClass": "I", "content": "" }, { "Type": "SERVER", "ShortText": "27041", "Code": "TTFHLC703", "MessageClass": "I", "content": "" }, { "Type": "DRE", "ShortText": "13291", "Code": "RULEID", "MessageClass": "I", "content": "" }, { "Type": "DEFAULT", "ShortText": "25238", "Code": "RULEID", "MessageClass": "I", "content": "" } ] }, "PricedItineraries": { "PricedItinerary": [ { "SequenceNumber": 1, "AirItinerary": { "DirectionInd": "Return", "OriginDestinationOptions": { "OriginDestinationOption": [ { "ElapsedTime": 1030, "FlightSegment": [ { "DepartureDateTime": "2018-11-10T07:10:00", "ArrivalDateTime": "2018-11-10T08:38:00", "StopQuantity": 0, "FlightNumber": "2912", "ResBookDesigCode": "V", "ElapsedTime": 208, "DepartureAirport": { "LocationCode": "DFW", "TerminalID": "E", "content": "" }, "ArrivalAirport": { "LocationCode": "LAX", "TerminalID": "2", "content": "" }, "OperatingAirline": { "Code": "DL", "FlightNumber": "2912", "content": "" }, "Equipment": [ { "AirEquipType": "319", "content": "" } ], "MarketingAirline": { "Code": "DL", "content": "" }, "MarriageGrp": "O", "DepartureTimeZone": { "GMTOffset": -6 }, "ArrivalTimeZone": { "GMTOffset": -8 }, "OnTimePerformance": { "Level": "7" }, "TPA_Extensions": { "eTicket": { "Ind": true }, "Mileage": { "Amount": 1235 } } } ] } </code></pre> <p>Now I want to read and display these values in the view page. I mean I want to get and display PricedItinCount , DepartureDateTime and ArrivalAirport-&gt;LocationCode. Then I tried below steps with Jquery and Ajax. I got all the details with</p> <blockquote> <p>Console.log(data);</p> </blockquote> <p>But, couldn't get any thing into the view page. How can I get values to the view page ?? </p> <p>View page.</p> <pre><code>&lt;form class="form-horizontal" method="POST" action="#" enctype="multipart/form-data" id="signupForm"&gt; &lt;div class="col-md-4 col-sm-12 hero-feature"&gt; &lt;!-- Start Of The Col Class --&gt; Origin City : &lt;input type="text" class="form-control" name="origin" value="CMB" id="origin"&gt; &lt;br&gt; &lt;/div&gt; &lt;div class="col-md-4 col-sm-12 hero-feature"&gt; &lt;!-- Start Of The Col Class --&gt; Destination City : &lt;input type="text" class="form-control" name="destination" value="DUB" id="destination"&gt; &lt;br&gt; &lt;/div&gt; &lt;div class="col-md-4 col-sm-12 hero-feature"&gt; &lt;!-- Start Of The Col Class --&gt; &lt;div class="col-md-4 col-sm-12 hero-feature"&gt; &lt;!-- Start Of The Col Class --&gt; Adults : &lt;select name="adults" class="form-control" id="adults"&gt; &lt;option value="1"&gt;1&lt;/option&gt; &lt;/select&gt; &lt;br&gt; &lt;/div&gt; &lt;/div&gt; &lt;div class="col-md-4 col-sm-12 hero-feature"&gt; &lt;!-- Start Of The Col Class --&gt; Departure Date : &lt;input class="form-control" name="departureDate" id="departureDate"&gt; &lt;/div&gt; &lt;div class="col-md-4 col-sm-12 hero-feature"&gt; &lt;!-- Start Of The Col Class --&gt; Return Date : &lt;input class="form-control" name="returnDate" id="returnDate"&gt; &lt;/div&gt; &lt;div class="col-md-4 col-sm-12 hero-feature"&gt; &lt;!-- Start Of The Col Class --&gt; Travel Class : &lt;select name="travelClass" class="form-control" id="travelClass"&gt; &lt;option value="ECONOMY"&gt;ECONOMY&lt;/option&gt; &lt;option value="BUSINESS"&gt;BUSINESS&lt;/option&gt; &lt;/select&gt; &lt;br&gt; &lt;/div&gt; &lt;div class="col-md-4 col-sm-12 hero-feature"&gt; &lt;!-- Start Of The Col Class --&gt; Access Token : &lt;input type="text" class="form-control" name="bat" value="" id="bat"&gt; &lt;/div&gt; &lt;a href="#" id="ghsubmitbtn" class="btn btn-success"&gt;Search Flight Data&lt;/a&gt; &lt;p id="errorModal"&gt;&lt;/p&gt; &lt;br&gt; &lt;div id="ghapidata" class="clearfix"&gt;&lt;/div&gt; &lt;/form&gt; &lt;h3&gt;Tasks of the Developers&lt;/h3&gt; &lt;br&gt; &lt;div class="table-responsive"&gt; &lt;table class="table table-striped table-bordered text-left" id="tblData"&gt; &lt;thead&gt; &lt;tr class="info"&gt; &lt;td&gt;PricedItinCount&lt;/td&gt; &lt;td&gt;Id&lt;/td&gt; &lt;/tr&gt; &lt;tbody id="tblBody"&gt;&lt;/tbody&gt; &lt;/thead&gt; &lt;/table&gt; &lt;/div&gt; &lt;script type="text/javascript"&gt; $(document).ready(function () { $('#ghsubmitbtn').on('click', function(e) { var Target = 'Production'; var bat = 'T1RLAQJBqX+k4EiXWQziU3GvPPsN69ozuhBwOBhA97cFiyxKiyylxmA1AADAM6s/5sV+ZLOBPsYTHiPtad9ByBlsN91C4XxIhcT6kLibIww/Ezpv3CvJCwcp7xJZhU0oQLpu+8DVQ3lcsgnUGkAeu4SvF7h4BJs5IMpkVgpuTOEX9jeGT2TljavgPtrqVG62xcX2ZPYEOKO20IPQqZE9isl9EQH1bgRVCba0FzQ7m6zbfPGpwf20KCWMCfO69IYTbx5krbLf3aIyp8Db+5GSXKOdqIp6s9aDP0RIrkmDhEYO3H8tYTIqj6rQPrjf'; var JSONObj = { "OTA_AirLowFareSearchRQ": { "Target": Target, "POS": { "Source": [{ "PseudoCityCode":"F9CE", "RequestorID": { "Type": "1", "ID": "1", "CompanyName": { } } }] }, "OriginDestinationInformation": [{ "RPH": "1", "DepartureDateTime": "2018-11-10T11:00:00", "OriginLocation": { "LocationCode": "DFW" }, "DestinationLocation": { "LocationCode": "CDG" }, "TPA_Extensions": { "SegmentType": { "Code": "O" } } }, { "RPH": "2", "DepartureDateTime": "2018-11-11T11:00:00", "OriginLocation": { "LocationCode": "CDG" }, "DestinationLocation": { "LocationCode": "DFW" }, "TPA_Extensions": { "SegmentType": { "Code": "O" } } }], "TravelPreferences": { "ValidInterlineTicket": true, "CabinPref": [{ "Cabin": "Y", "PreferLevel": "Preferred" }], "TPA_Extensions": { "TripType": { "Value": "Return" }, "LongConnectTime": { "Min": 780, "Max": 1200, "Enable": true }, "ExcludeCallDirectCarriers": { "Enabled": true } } }, "TravelerInfoSummary": { "SeatsRequested": [1], "AirTravelerAvail": [{ "PassengerTypeQuantity": [{ "Code": "ADT", "Quantity": 1 }] }] }, "TPA_Extensions": { "IntelliSellTransaction": { "RequestType": { "Name": "50ITINS" } } } } }; var data = JSON.stringify(JSONObj); $.ajax({ url: 'https://api-crt.cert.havail.sabre.com/v4.2.0/shop/flights?mode=live&amp;limit=50&amp;offset=1', method: 'POST', contentType:"application/json; charset=utf-8", data: data, headers: {"Authorization": 'Bearer ' + bat}, success: function (data) { console.log(data); $.each(data, function (index, value) { var BookBtn = '&lt;input type="submit" value="Book" name="book" class="btn btn-primary"&gt;'; for (var v = 0; v &lt;= 999; v++) { var row = $('&lt;tr&gt;&lt;td&gt;' + value[0].PricedItinCount + '&lt;/td&gt;&lt;td&gt;' + value[v].Version + '&lt;/td&gt;&lt;td&gt;' + value[v].Warnings[0].Warning[0].Type + '&lt;/td&gt;&lt;td&gt;' + BookBtn + '&lt;/td&gt;&lt;/tr&gt;'); $('#tblData').append(row);} }); }, }); }); }); &lt;/script&gt; </code></pre> </div>

Laravel如何保持选择选项

<div class="post-text" itemprop="text"> <p>I am trying to edit the customer profile where I have a list of countries like this on the form. Whenever customer tries to edit profile, then country code will be fetched from table and I need to show that country as selected in select </p> <p></p> <pre><code>&lt;option value="AF"&gt;Afghanistan&lt;/option&gt; &lt;option value="AX"&gt;Aland Islands&lt;/option&gt; &lt;option value="AL"&gt;Albania&lt;/option&gt; &lt;option value="DZ"&gt;Algeria&lt;/option&gt; &lt;option value="AS"&gt;American Samoa&lt;/option&gt; &lt;option value="AD"&gt;Andorra&lt;/option&gt; &lt;option value="AO"&gt;Angola&lt;/option&gt; &lt;option value="AI"&gt;Anguilla&lt;/option&gt; &lt;option value="AQ"&gt;Antarctica&lt;/option&gt; &lt;option value="AG"&gt;Antigua And Barbuda&lt;/option&gt; &lt;option value="AR"&gt;Argentina&lt;/option&gt; &lt;option value="AM"&gt;Armenia&lt;/option&gt; &lt;option value="AW"&gt;Aruba&lt;/option&gt; &lt;option value="AU"&gt;Australia&lt;/option&gt; &lt;option value="AT"&gt;Austria&lt;/option&gt; &lt;option value="AZ"&gt;Azerbaijan&lt;/option&gt; &lt;option value="BS"&gt;Bahamas&lt;/option&gt; &lt;option value="BH"&gt;Bahrain&lt;/option&gt; &lt;option value="BD"&gt;Bangladesh&lt;/option&gt; &lt;option value="BB"&gt;Barbados&lt;/option&gt; &lt;option value="BY"&gt;Belarus&lt;/option&gt; &lt;option value="BE"&gt;Belgium&lt;/option&gt; &lt;option value="BZ"&gt;Belize&lt;/option&gt; &lt;option value="BJ"&gt;Benin&lt;/option&gt; &lt;option value="BM"&gt;Bermuda&lt;/option&gt; &lt;option value="BT"&gt;Bhutan&lt;/option&gt; &lt;option value="BO"&gt;Bolivia&lt;/option&gt; &lt;option value="BA"&gt;Bosnia And Herzegovina&lt;/option&gt; &lt;option value="BW"&gt;Botswana&lt;/option&gt; &lt;option value="BV"&gt;Bouvet Island&lt;/option&gt; &lt;option value="BR"&gt;Brazil&lt;/option&gt; &lt;option value="IO"&gt;British Indian Ocean Territory&lt;/option&gt; &lt;option value="BN"&gt;Brunei Darussalam&lt;/option&gt; &lt;option value="BG"&gt;Bulgaria&lt;/option&gt; &lt;option value="BF"&gt;Burkina Faso&lt;/option&gt; &lt;option value="BI"&gt;Burundi&lt;/option&gt; &lt;option value="KH"&gt;Cambodia&lt;/option&gt; &lt;option value="CM"&gt;Cameroon&lt;/option&gt; &lt;option value="CA"&gt;Canada&lt;/option&gt; &lt;option value="CV"&gt;Cape Verde&lt;/option&gt; &lt;option value="KY"&gt;Cayman Islands&lt;/option&gt; &lt;option value="CF"&gt;Central African Republic&lt;/option&gt; &lt;option value="TD"&gt;Chad&lt;/option&gt; &lt;option value="CL"&gt;Chile&lt;/option&gt; &lt;option value="CN"&gt;China&lt;/option&gt; &lt;option value="CX"&gt;Christmas Island&lt;/option&gt; &lt;option value="CC"&gt;Cocos (Keeling) Islands&lt;/option&gt; &lt;option value="CO"&gt;Colombia&lt;/option&gt; &lt;option value="KM"&gt;Comoros&lt;/option&gt; &lt;option value="CG"&gt;Congo&lt;/option&gt; &lt;option value="CD"&gt;Congo, Democratic Republic&lt;/option&gt; &lt;option value="CK"&gt;Cook Islands&lt;/option&gt; &lt;option value="CR"&gt;Costa Rica&lt;/option&gt; &lt;option value="CI"&gt;Cote D'Ivoire&lt;/option&gt; &lt;option value="HR"&gt;Croatia&lt;/option&gt; &lt;option value="CU"&gt;Cuba&lt;/option&gt; &lt;option value="CW"&gt;Curacao&lt;/option&gt; &lt;option value="CY"&gt;Cyprus&lt;/option&gt; &lt;option value="CZ"&gt;Czech Republic&lt;/option&gt; &lt;option value="DK"&gt;Denmark&lt;/option&gt; &lt;option value="DJ"&gt;Djibouti&lt;/option&gt; &lt;option value="DM"&gt;Dominica&lt;/option&gt; &lt;option value="DO"&gt;Dominican Republic&lt;/option&gt; &lt;option value="EC"&gt;Ecuador&lt;/option&gt; &lt;option value="EG"&gt;Egypt&lt;/option&gt; &lt;option value="SV"&gt;El Salvador&lt;/option&gt; &lt;option value="GQ"&gt;Equatorial Guinea&lt;/option&gt; &lt;option value="ER"&gt;Eritrea&lt;/option&gt; &lt;option value="EE"&gt;Estonia&lt;/option&gt; &lt;option value="ET"&gt;Ethiopia&lt;/option&gt; &lt;option value="FK"&gt;Falkland Islands (Malvinas)&lt;/option&gt; &lt;option value="FO"&gt;Faroe Islands&lt;/option&gt; &lt;option value="FJ"&gt;Fiji&lt;/option&gt; &lt;option value="FI"&gt;Finland&lt;/option&gt; &lt;option value="FR"&gt;France&lt;/option&gt; &lt;option value="GF"&gt;French Guiana&lt;/option&gt; &lt;option value="PF"&gt;French Polynesia&lt;/option&gt; &lt;option value="TF"&gt;French Southern Territories&lt;/option&gt; &lt;option value="GA"&gt;Gabon&lt;/option&gt; &lt;option value="GM"&gt;Gambia&lt;/option&gt; &lt;option value="GE"&gt;Georgia&lt;/option&gt; &lt;option value="DE"&gt;Germany&lt;/option&gt; &lt;option value="GH"&gt;Ghana&lt;/option&gt; &lt;option value="GI"&gt;Gibraltar&lt;/option&gt; &lt;option value="GR"&gt;Greece&lt;/option&gt; &lt;option value="GL"&gt;Greenland&lt;/option&gt; &lt;option value="GD"&gt;Grenada&lt;/option&gt; &lt;option value="GP"&gt;Guadeloupe&lt;/option&gt; &lt;option value="GU"&gt;Guam&lt;/option&gt; &lt;option value="GT"&gt;Guatemala&lt;/option&gt; &lt;option value="GG"&gt;Guernsey&lt;/option&gt; &lt;option value="GN"&gt;Guinea&lt;/option&gt; &lt;option value="GW"&gt;Guinea-Bissau&lt;/option&gt; &lt;option value="GY"&gt;Guyana&lt;/option&gt; &lt;option value="HT"&gt;Haiti&lt;/option&gt; &lt;option value="HM"&gt;Heard Island &amp;amp; Mcdonald Islands&lt;/option&gt; &lt;option value="VA"&gt;Holy See (Vatican City State)&lt;/option&gt; &lt;option value="HN"&gt;Honduras&lt;/option&gt; &lt;option value="HK"&gt;Hong Kong&lt;/option&gt; &lt;option value="HU"&gt;Hungary&lt;/option&gt; &lt;option value="IS"&gt;Iceland&lt;/option&gt; &lt;option value="IN"&gt;India&lt;/option&gt; &lt;option value="ID"&gt;Indonesia&lt;/option&gt; &lt;option value="IR"&gt;Iran, Islamic Republic Of&lt;/option&gt; &lt;option value="IQ"&gt;Iraq&lt;/option&gt; &lt;option value="IE"&gt;Ireland&lt;/option&gt; &lt;option value="IM"&gt;Isle Of Man&lt;/option&gt; &lt;option value="IL"&gt;Israel&lt;/option&gt; &lt;option value="IT"&gt;Italy&lt;/option&gt; &lt;option value="JM"&gt;Jamaica&lt;/option&gt; &lt;option value="JP"&gt;Japan&lt;/option&gt; &lt;option value="JE"&gt;Jersey&lt;/option&gt; &lt;option value="JO"&gt;Jordan&lt;/option&gt; &lt;option value="KZ"&gt;Kazakhstan&lt;/option&gt; &lt;option value="KE"&gt;Kenya&lt;/option&gt; &lt;option value="KI"&gt;Kiribati&lt;/option&gt; &lt;option value="KR"&gt;Korea&lt;/option&gt; &lt;option value="KW"&gt;Kuwait&lt;/option&gt; &lt;option value="KG"&gt;Kyrgyzstan&lt;/option&gt; &lt;option value="LA"&gt;Lao People's Democratic Republic&lt;/option&gt; &lt;option value="LV"&gt;Latvia&lt;/option&gt; &lt;option value="LB"&gt;Lebanon&lt;/option&gt; &lt;option value="LS"&gt;Lesotho&lt;/option&gt; &lt;option value="LR"&gt;Liberia&lt;/option&gt; &lt;option value="LY"&gt;Libyan Arab Jamahiriya&lt;/option&gt; &lt;option value="LI"&gt;Liechtenstein&lt;/option&gt; &lt;option value="LT"&gt;Lithuania&lt;/option&gt; &lt;option value="LU"&gt;Luxembourg&lt;/option&gt; &lt;option value="MO"&gt;Macao&lt;/option&gt; &lt;option value="MK"&gt;Macedonia&lt;/option&gt; &lt;option value="MG"&gt;Madagascar&lt;/option&gt; &lt;option value="MW"&gt;Malawi&lt;/option&gt; &lt;option value="MY"&gt;Malaysia&lt;/option&gt; &lt;option value="MV"&gt;Maldives&lt;/option&gt; &lt;option value="ML"&gt;Mali&lt;/option&gt; &lt;option value="MT"&gt;Malta&lt;/option&gt; &lt;option value="MH"&gt;Marshall Islands&lt;/option&gt; &lt;option value="MQ"&gt;Martinique&lt;/option&gt; &lt;option value="MR"&gt;Mauritania&lt;/option&gt; &lt;option value="MU"&gt;Mauritius&lt;/option&gt; &lt;option value="YT"&gt;Mayotte&lt;/option&gt; &lt;option value="MX"&gt;Mexico&lt;/option&gt; &lt;option value="FM"&gt;Micronesia, Federated States Of&lt;/option&gt; &lt;option value="MD"&gt;Moldova&lt;/option&gt; &lt;option value="MC"&gt;Monaco&lt;/option&gt; &lt;option value="MN"&gt;Mongolia&lt;/option&gt; &lt;option value="ME"&gt;Montenegro&lt;/option&gt; &lt;option value="MS"&gt;Montserrat&lt;/option&gt; &lt;option value="MA"&gt;Morocco&lt;/option&gt; &lt;option value="MZ"&gt;Mozambique&lt;/option&gt; &lt;option value="MM"&gt;Myanmar&lt;/option&gt; &lt;option value="NA"&gt;Namibia&lt;/option&gt; &lt;option value="NR"&gt;Nauru&lt;/option&gt; &lt;option value="NP"&gt;Nepal&lt;/option&gt; &lt;option value="NL"&gt;Netherlands&lt;/option&gt; &lt;option value="AN"&gt;Netherlands Antilles&lt;/option&gt; &lt;option value="NC"&gt;New Caledonia&lt;/option&gt; &lt;option value="NZ"&gt;New Zealand&lt;/option&gt; &lt;option value="NI"&gt;Nicaragua&lt;/option&gt; &lt;option value="NE"&gt;Niger&lt;/option&gt; &lt;option value="NG"&gt;Nigeria&lt;/option&gt; &lt;option value="NU"&gt;Niue&lt;/option&gt; &lt;option value="NF"&gt;Norfolk Island&lt;/option&gt; &lt;option value="MP"&gt;Northern Mariana Islands&lt;/option&gt; &lt;option value="NO"&gt;Norway&lt;/option&gt; &lt;option value="OM"&gt;Oman&lt;/option&gt; &lt;option value="PK"&gt;Pakistan&lt;/option&gt; &lt;option value="PW"&gt;Palau&lt;/option&gt; &lt;option value="PS"&gt;Palestine, State of&lt;/option&gt; &lt;option value="PA"&gt;Panama&lt;/option&gt; &lt;option value="PG"&gt;Papua New Guinea&lt;/option&gt; &lt;option value="PY"&gt;Paraguay&lt;/option&gt; &lt;option value="PE"&gt;Peru&lt;/option&gt; &lt;option value="PH"&gt;Philippines&lt;/option&gt; &lt;option value="PN"&gt;Pitcairn&lt;/option&gt; &lt;option value="PL"&gt;Poland&lt;/option&gt; &lt;option value="PT"&gt;Portugal&lt;/option&gt; &lt;option value="PR"&gt;Puerto Rico&lt;/option&gt; &lt;option value="QA"&gt;Qatar&lt;/option&gt; &lt;option value="RE"&gt;Reunion&lt;/option&gt; &lt;option value="RO"&gt;Romania&lt;/option&gt; &lt;option value="RU"&gt;Russian Federation&lt;/option&gt; &lt;option value="RW"&gt;Rwanda&lt;/option&gt; &lt;option value="BL"&gt;Saint Barthelemy&lt;/option&gt; &lt;option value="SH"&gt;Saint Helena&lt;/option&gt; &lt;option value="KN"&gt;Saint Kitts And Nevis&lt;/option&gt; &lt;option value="LC"&gt;Saint Lucia&lt;/option&gt; &lt;option value="MF"&gt;Saint Martin&lt;/option&gt; &lt;option value="PM"&gt;Saint Pierre And Miquelon&lt;/option&gt; &lt;option value="VC"&gt;Saint Vincent And Grenadines&lt;/option&gt; &lt;option value="WS"&gt;Samoa&lt;/option&gt; &lt;option value="SM"&gt;San Marino&lt;/option&gt; &lt;option value="ST"&gt;Sao Tome And Principe&lt;/option&gt; &lt;option value="SA"&gt;Saudi Arabia&lt;/option&gt; &lt;option value="SN"&gt;Senegal&lt;/option&gt; &lt;option value="RS"&gt;Serbia&lt;/option&gt; &lt;option value="SC"&gt;Seychelles&lt;/option&gt; &lt;option value="SL"&gt;Sierra Leone&lt;/option&gt; &lt;option value="SG"&gt;Singapore&lt;/option&gt; &lt;option value="SK"&gt;Slovakia&lt;/option&gt; &lt;option value="SI"&gt;Slovenia&lt;/option&gt; &lt;option value="SB"&gt;Solomon Islands&lt;/option&gt; &lt;option value="SO"&gt;Somalia&lt;/option&gt; &lt;option value="ZA"&gt;South Africa&lt;/option&gt; &lt;option value="GS"&gt;South Georgia And Sandwich Isl.&lt;/option&gt; &lt;option value="ES"&gt;Spain&lt;/option&gt; &lt;option value="LK"&gt;Sri Lanka&lt;/option&gt; &lt;option value="SD"&gt;Sudan&lt;/option&gt; &lt;option value="SR"&gt;Suriname&lt;/option&gt; &lt;option value="SJ"&gt;Svalbard And Jan Mayen&lt;/option&gt; &lt;option value="SZ"&gt;Swaziland&lt;/option&gt; &lt;option value="SE"&gt;Sweden&lt;/option&gt; &lt;option value="CH"&gt;Switzerland&lt;/option&gt; &lt;option value="SY"&gt;Syrian Arab Republic&lt;/option&gt; &lt;option value="TW"&gt;Taiwan&lt;/option&gt; &lt;option value="TJ"&gt;Tajikistan&lt;/option&gt; &lt;option value="TZ"&gt;Tanzania&lt;/option&gt; &lt;option value="TH"&gt;Thailand&lt;/option&gt; &lt;option value="TL"&gt;Timor-Leste&lt;/option&gt; &lt;option value="TG"&gt;Togo&lt;/option&gt; &lt;option value="TK"&gt;Tokelau&lt;/option&gt; &lt;option value="TO"&gt;Tonga&lt;/option&gt; &lt;option value="TT"&gt;Trinidad And Tobago&lt;/option&gt; &lt;option value="TN"&gt;Tunisia&lt;/option&gt; &lt;option value="TR"&gt;Turkey&lt;/option&gt; &lt;option value="TM"&gt;Turkmenistan&lt;/option&gt; &lt;option value="TC"&gt;Turks And Caicos Islands&lt;/option&gt; &lt;option value="TV"&gt;Tuvalu&lt;/option&gt; &lt;option value="UG"&gt;Uganda&lt;/option&gt; &lt;option value="UA"&gt;Ukraine&lt;/option&gt; &lt;option value="AE"&gt;United Arab Emirates&lt;/option&gt; &lt;option value="GB"&gt;United Kingdom&lt;/option&gt; &lt;option value="US"&gt;United States&lt;/option&gt; &lt;option value="UM"&gt;United States Outlying Islands&lt;/option&gt; &lt;option value="UY"&gt;Uruguay&lt;/option&gt; &lt;option value="UZ"&gt;Uzbekistan&lt;/option&gt; &lt;option value="VU"&gt;Vanuatu&lt;/option&gt; &lt;option value="VE"&gt;Venezuela&lt;/option&gt; &lt;option value="VN"&gt;Viet Nam&lt;/option&gt; &lt;option value="VG"&gt;Virgin Islands, British&lt;/option&gt; &lt;option value="VI"&gt;Virgin Islands, U.S.&lt;/option&gt; &lt;option value="WF"&gt;Wallis And Futuna&lt;/option&gt; &lt;option value="EH"&gt;Western Sahara&lt;/option&gt; &lt;option value="YE"&gt;Yemen&lt;/option&gt; &lt;option value="ZM"&gt;Zambia&lt;/option&gt; &lt;option value="ZW"&gt;Zimbabwe&lt;/option&gt; &lt;/select&gt; </code></pre> <p>Now I am trying to edit the country, Say in table value is stored UK for United Kingdoms, then how can I keep selected the United Kingdom based upon the country code in the table.</p> <p>Writing If condition for each option seems not to be a feasible option, I know laravel facade <code>Form::select()</code> which can deal with this easily, but without using If condition and Form Facade is there any way of achieving this.</p> </div>

如何将.json文件添加到PHP中以获取国家/地区代码

<div class="post-text" itemprop="text"> <p>I have installed one private app in my shopify store to get a required details as .csv format by using <strong>PHP</strong></p> <p>Now i get the country name is INDIA(Example), I want to get IN.</p> <p>So i ihave a .json file which contain all over country code.</p> <p>Can anyone help me how to include my php file?</p> <p>This is my php code:</p> <pre><code>&lt;?php require_once 'lib/shopify.php'; //require_once 'csv.php'; $t = "bac2486aa2b31aa5aed1fdd62e77a4ae"; $sc = new ShopifyClient("mine-329.myshopify.com/", $t, API_KEY, SECRET); if (!isset($t)) { if (!isset($_GET['signature'])) { $url = $sc-&gt;getAuthorizeUrl("read_orders"); header('Location: ' . $url); } if (isset($_GET['code'])) { $accTok = $sc-&gt;getAccessToken($_GET['code']); echo "token = " . $accTok; exit; $orders = $sc-&gt;call('GET', 'admin/orders.json', array( 'published_status' =&gt; 'published' )); foreach ($orders as $order) { echo $order['id']; echo $order['email']; } } } if (isset($t)) { $orders = $sc-&gt;call('GET', 'admin/orders.json', array( 'published_status' =&gt; 'published' )); $myarray = array(); $list[] = array( 'Name', 'Email', 'Financial status', 'Paid at', 'Fullfillment Status', 'Fullfilled at', 'Accepts Marketing', 'Currency', 'Subtotal', 'Shipping', 'Taxes', 'Total', 'Discount code', 'Discount Amount', 'Shipping Method', 'created at', 'Lineitem quantity', 'Lineitem name', 'Lineitem price', 'compare at price', 'Lineitem sku', 'Lineitem requires shipping', 'Lineitem taxable', 'Lineitem fulfillment status', 'Billing Name', 'Billing Street', 'Billing Address1', 'Billing Address2', 'Billing Company', 'Billing City', 'Billing Zip', 'Billing Province', 'Billing Country', 'Billing Phone', 'Shipping Name', 'Shipping Street', 'Shipping Address1', 'Shipping Address2', 'Shipping Company', 'Shipping City', 'Shipping Zip', 'Shipping Province', 'Shipping Country', 'Shipping Phone', 'Notes', 'Note_attributes', 'VAT', 'Cancelled at', 'Payment Method', 'Payment Reference', 'Refund', 'Vendor', 'Id', 'Tags' ); $list = array_filter($list); $empty_note_attribute = ""; if (empty($order['note_attributes'])) { $empty_note_attribute = ""; } else { $empty_note_attribute = $order['note_attributes']; } $empty_discount_codes = ""; if (empty($order['discount_codes'])) { $empty_discount_codes = ""; } else { $empty_discount_codes = $order['discount_codes']; } foreach ($orders as $order) { $orders_lineitem = $order['line_items']; $lineitemcount = 0; foreach ($orders_lineitem as $lineitem) { /* Fulfillment Status */ $fulfill_status = ""; if (empty($order['fulfillment_status'])) { $fulfill_status = "pending"; } else { $fulfill_status = $order['fulfillment_status']; } /* Lineitem Fulfillment Status */ $fulfillment_status = ''; if (empty($order['fulfillments'][0]['created_at'])) { $fulfillment_status = "pending"; } else { $fulfillment_status = $order['line_items'][0]['fulfillment_status']; } $variants = ""; $variants = $sc-&gt;call('GET', "admin/variants/" . $lineitem['variant_id'] . ".json", array( 'published_status' =&gt; 'published' )); $requires_shipping = "false"; if ($lineitem['requires_shipping']) { $requires_shipping = "true"; } $lineitem_taxable = "false"; if ($lineitem['taxable']) { $lineitem_taxable = "true"; } //** Accepts Marketting ** $accepts_marketting = "no"; if ($order['buyer_accepts_marketing']) { $accepts_marketting = "yes"; } $shipping = ''; if (count($order['shipping_lines']) &gt; 0) { $shipping = $order['shipping_lines'][0]['price']; } /* Fulfilled at */ $created_at = ''; if (count($order['fulfillments']) &gt; 0) { $created_at = $order['fulfillments'][0]['created_at']; } /* Refunded Amount */ $refund_price = ''; if (count($order['refunds']) &gt; 0) { foreach ($order['refunds'] as $refund) { $refund_price += $refund['transactions'][0]['receipt']['paid_amount']; } } if ('pending' == $fulfill_status || 'partial' == $fulfill_status) { $created_at = ''; } if ($lineitemcount == 0) { array_push($list, array( $order['name'], $order['email'], $order['financial_status'], (($order['financial_status'] != 'partially_refunded') &amp;&amp; ($order['financial_status'] != 'refunded') &amp;&amp; ($order['financial_status'] != 'authorized')? $order['created_at'] : null), $fulfill_status, $created_at, $accepts_marketting, $order['currency'], $order['subtotal_price'], (($shipping &gt; 0) ? $shipping : 0), $order['total_tax'], $order['total_price'], $empty_discount_codes, $order['total_discounts'], (($shipping &gt; 0) ? $order['shipping_lines'][0]['code'] : null), $order['created_at'], $lineitem['quantity'], $lineitem['name'], $lineitem['price'], $variants['compare_at_price'], $lineitem['sku'], $requires_shipping, $lineitem_taxable, $fulfillment_status, $order['billing_address']['name'], $order['billing_address']['address1'], $order['billing_address']['address1'], $order['billing_address']['address2'], $order['billing_address']['company'], $order['billing_address']['city'], $order['billing_address']['zip'], $order['billing_address']['province'], $order['billing_address']['country'], $order['billing_address']['phone'], (($shipping &gt; 0) ? $order['shipping_address']['name'] : null), (($shipping &gt; 0) ? $order['shipping_address']['address1'] : null), (($shipping &gt; 0) ? $order['shipping_address']['address1'] : null), (($shipping &gt; 0) ? $order['shipping_address']['address2'] : null), (($shipping &gt; 0) ? $order['shipping_address']['company'] : null), (($shipping &gt; 0) ? $order['shipping_address']['city'] : null), (($shipping &gt; 0) ? $order['shipping_address']['zip'] : null), (($shipping &gt; 0) ? $order['shipping_address']['province'] : null), (($shipping &gt; 0) ? $order['shipping_address']['country'] : null), (($shipping &gt; 0) ? $order['shipping_address']['phone'] : null), $order['note'], $empty_note_attribute, (($order['line_items'][0]['tax_lines'][0]['price'] != '0') ? $order['total_tax'] : null), $order['cancelled_at'], $order['payment_details']['credit_card_company'], $order['checkout_id'], (($refund_price &gt; 0) ? $refund_price : 0), $lineitem['vendor'], $order['id'], $order['tags'] )); } else { array_push($list, array( $order['name'], $order['email'], '', '', '', '', '', '', '', '', '', '', $empty_discount_codes, '', '', $order['created_at'], $lineitem['quantity'], $lineitem['name'], $lineitem['price'], $variants['compare_at_price'], $lineitem['sku'], $requires_shipping, $lineitem_taxable, $order['line_items'][0]['fulfillment_status'], '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', $lineitem['vendor'], '', $order['tags'] )); } $lineitemcount++; } } $order = $_GET; $list[] = array_to_csv_download($myarray, // this array is going to be the second row "numbers.csv"); $list = array_filter($list); array_to_csv_download($list); header("Content-type: text/csv"); header("Content-Disposition: attachment; filename=file.csv"); header("Pragma: no-cache"); header("Expires: 0"); } function array_to_csv_download($list) { $output = fopen("php://output", "w"); foreach ($list as $row) { fputcsv($output, $row); //print_r($row); die; } fclose($output); } ?&gt; </code></pre> <p>This is part of my all.json :</p> <pre><code>[{"name":"Afghanistan","alpha-2":"AF","alpha-3":"AFG","country-code":"004","iso_3166-2":"ISO 3166-2:AF","region-code":"142","sub-region-code":"034"},{"name":"Åland Islands","alpha-2":"AX","alpha-3":"ALA","country-code":"248","iso_3166-2":"ISO 3166-2:AX","region-code":"150","sub-region-code":"154"},{"name":"Albania","alpha-2":"AL","alpha-3":"ALB","country-code":"008","iso_3166-2":"ISO 3166-2:AL","region-code":"150","sub-region-code":"039"},{"name":"Algeria","alpha-2":"DZ","alpha-3":"DZA","country-code":"012","iso_3166-2":"ISO 3166-2:DZ","region-code":"002","sub-region-code":"015"},{"name":"American Samoa","alpha-2":"AS","alpha-3":"ASM","country-code":"016","iso_3166-2":"ISO 3166-2:AS","region-code":"009","sub-region-code":"061"},{"name":"Andorra","alpha-2":"AD","alpha-3":"AND","country-code":"020","iso_3166-2":"ISO 3166-2:AD","region-code":"150","sub-region-code":"039"},{"name":"Angola","alpha-2":"AO","alpha-3":"AGO","country-code":"024","iso_3166-2":"ISO 3166-2:AO","region-code":"002","sub-region-code":"017"},{"name":"Anguilla","alpha-2":"AI","alpha-3":"AIA","country-code":"660","iso_3166-2":"ISO 3166-2:AI","region-code":"019","sub-region-code":"029"},{"name":"Antarctica","alpha-2":"AQ","alpha-3":"ATA","country-code":"010","iso_3166-2":"ISO 3166-2:AQ"},{"name":"Antigua and Barbuda","alpha-2":"AG","alpha-3":"ATG","country-code":"028","iso_3166-2":"ISO 3166-2:AG","region-code":"019","sub-region-code":"029"},{"name":"Argentina","alpha-2":"AR","alpha-3":"ARG","country-code":"032","iso_3166-2":"ISO 3166-2:AR","region-code":"019","sub-region-code":"005"},{"name":"Armenia","alpha-2":"AM","alpha-3":"ARM","country-code":"051","iso_3166-2":"ISO 3166-2:AM","region-code":"142","sub-region-code":"145"},{"name":"Aruba","alpha-2":"AW","alpha-3":"ABW","country-code":"533","iso_3166-2":"ISO 3166-2:AW","region-code":"019","sub-region-code":"029"},{"name":"Australia","alpha-2":"AU","alpha-3":"AUS","country-code":"036","iso_3166-2":"ISO 3166-2:AU","region-code":"009","sub-region-code":"053"},{"name":"Austria","alpha-2":"AT","alpha-3":"AUT","country-code":"040","iso_3166-2":"ISO 3166-2:AT","region-code":"150","sub-region-code":"155"},{"name":"Azerbaijan","alpha-2":"AZ","alpha-3":"AZE","country-code":"031","iso_3166-2":"ISO 3166-2:AZ","region-code":"142","sub-region-code":"145"},{"name":"Bahamas","alpha-2":"BS","alpha-3":"BHS","country-code":"044","iso_3166-2":"ISO 3166-2:BS","region-code":"019","sub-region-code":"029"},{"name":"Bahrain","alpha-2":"BH","alpha-3":"BHR","country-code":"048","iso_3166-2":"ISO 3166-2:BH","region-code":"142","sub-region-code":"145"},{"name":"Bangladesh","alpha-2":"BD","alpha-3":"BGD","country-code":"050","iso_3166-2":"ISO 3166-2:BD","region-code":"142","sub-region-code":"034"},{"name":"Barbados","alpha-2":"BB","alpha-3":"BRB","country-code":"052","iso_3166-2":"ISO 3166-2:BB","region-code":"019","sub-region-code":"029"},{"name":"Belarus","alpha-2":"BY","alpha-3":"BLR","country-code":"112","iso_3166-2":"ISO 3166-2:BY","region-code":"150","sub-region-code":"151"},{"name":"Belgium","alpha-2":"BE","alpha-3":"BEL","country-code":"056","iso_3166-2":"ISO 3166-2:BE","region-code":"150","sub-region-code":"155"},{"name":"Belize","alpha-2":"BZ","alpha-3":"BLZ","country-code":"084","iso_3166-2":"ISO 3166-2:BZ","region-code":"019","sub-region-code":"013"},{"name":"Benin","alpha-2":"BJ","alpha-3":"BEN","country-code":"204","iso_3166-2":"ISO 3166-2:BJ","region-code":"002","sub-region-code":"011"},{"name":"Bermuda","alpha-2":"BM","alpha-3":"BMU","country-code":"060","iso_3166-2":"ISO 3166-2:BM","region-code":"019","sub-region-code":"021"},{"name":"Bhutan","alpha-2":"BT","alpha-3":"BTN","country-code":"064","iso_3166-2":"ISO 3166-2:BT","region-code":"142","sub-region-code":"034"},{"name":"Bolivia, Plurinational State of","alpha-2":"BO","alpha-3":"BOL","country-code":"068","iso_3166-2":"ISO 3166-2:BO","region-code":"019","sub-region-code":"005"},{"name":"Bonaire, Sint Eustatius and Saba","alpha-2":"BQ","alpha-3":"BES","country-code":"535","iso_3166-2":"ISO 3166-2:BQ","region-code":"019","sub-region-code":"029"},{"name":"Bosnia and Herzegovina","alpha-2":"BA","alpha-3":"BIH","country-code":"070","iso_3166-2":"ISO 3166-2:BA","region-code":"150","sub-region-code":"039"},{"name":"Botswana","alpha-2":"BW","alpha-3":"BWA","country-code":"072","iso_3166-2":"ISO 3166-2:BW","region-code":"002","sub-region-code":"018"},{"name":"Bouvet Island","alpha-2":"BV","alpha-3":"BVT","country-code":"074","iso_3166-2":"ISO 3166-2:BV"},{"name":"Brazil","alpha-2":"BR","alpha-3":"BRA","country-code":"076","iso_3166-2":"ISO 3166-2:BR","region-code":"019","sub-region-code":"005"},{"name":"British Indian Ocean Territory","alpha-2":"IO","alpha-3":"IOT","country-code":"086","iso_3166-2":"ISO 3166-2:IO"},{"name":"Brunei Darussalam","alpha-2":"BN","alpha-3":"BRN","country-code":"096","iso_3166-2":"ISO 3166-2:BN","region-code":"142","sub-region-code":"035"},{"name":"Bulgaria","alpha-2":"BG","alpha-3":"BGR","country-code":"100","iso_3166-2":"ISO 3166-2:BG","region-code":"150","sub-region-code":"151"},{"name":"Burkina Faso","alpha-2":"BF","alpha-3":"BFA","country-code":"854","iso_3166-2":"ISO 3166-2:BF","region-code":"002","sub-region-code":"011"},{"name":"Burundi","alpha-2":"BI","alpha-3":"BDI","country-code":"108","iso_3166-2":"ISO 3166-2:BI","region-code":"002","sub-region-code":"014"},{"name":"Cambodia","alpha-2":"KH","alpha-3":"KHM","country-code":"116","iso_3166-2":"ISO 3166-2:KH","region-code":"142","sub-region-code":"035"},{"name":"Cameroon","alpha-2":"CM","alpha-3":"CMR","country-code":"120","iso_3166-2":"ISO 3166-2:CM","region-code":"002","sub-region-code":"017"},{"name":"Canada","alpha-2":"CA","alpha-3":"CAN","country-code":"124","iso_3166-2":"ISO 3166-2:CA","region-code":"019","sub-region-code":"021"},{"name":"Cape Verde","alpha-2":"CV","alpha-3":"CPV","country-code":"132","iso_3166-2":"ISO 3166-2:CV","region-code":"002","sub-region-code":"011"},{"name":"Cayman Islands","alpha-2":"KY","alpha-3":"CYM","country-code":"136","iso_3166-2":"ISO 3166-2:KY","region-code":"019","sub-region-code":"029"},{"name":"Central African Republic","alpha-2":"CF","alpha-3":"CAF","country-code":"140","iso_3166-2":"ISO 3166-2:CF","region-code":"002","sub-region-code":"017"},{"name":"Chad","alpha-2":"TD","alpha-3":"TCD","country-code":"148","iso_3166-2":"ISO 3166-2:TD","region-code":"002","sub-region-code":"017"},{"name":"Chile","alpha-2":"CL","alpha-3":"CHL","country-code":"152","iso_3166-2":"ISO 3166-2:CL","region-code":"019","sub-region-code":"005"},{"name":"China","alpha-2":"CN","alpha-3":"CHN","country-code":"156","iso_3166-2":"ISO 3166-2:CN","region-code":"142","sub-region-code":"030"},{"name":"Christmas Island","alpha-2":"CX","alpha-3":"CXR","country-code":"162","iso_3166-2":"ISO 3166-2:CX"},{"name":"Cocos (Keeling) Islands","alpha-2":"CC","alpha-3":"CCK","country-code":"166","iso_3166-2":"ISO 3166-2:CC"},{"name":"Colombia","alpha-2":"CO","alpha-3":"COL","country-code":"170","iso_3166-2":"ISO 3166-2:CO","region-code":"019","sub-region-code":"005"},{"name":"Comoros","alpha-2":"KM","alpha-3":"COM","country-code":"174","iso_3166-2":"ISO 3166-2:KM","region-code":"002","sub-region-code":"014"},{"name":"Congo","alpha-2":"CG","alpha-3":"COG","country-code":"178","iso_3166-2":"ISO 3166-2:CG","region-code":"002","sub-region-code":"017"},{"name":"Congo, the Democratic Republic of the","alpha-2":"CD","alpha-3":"COD","country-code":"180","iso_3166-2":"ISO 3166-2:CD","region-code":"002","sub-region-code":"017"},{"name":"Cook Islands","alpha-2":"CK","alpha-3":"COK","country-code":"184","iso_3166-2":"ISO 3166-2:CK","region-code":"009","sub-region-code":"061"},{"name":"Costa Rica","alpha-2":"CR","alpha-3":"CRI","country-code":"188","iso_3166-2":"ISO 3166-2:CR","region-code":"019","sub-region-code":"013"},{"name":"Côte d'Ivoire","alpha-2":"CI","alpha-3":"CIV","country-code":"384","iso_3166-2":"ISO 3166-2:CI","region-code":"002","sub-region-code":"011"},{"name":"Croatia","alpha-2":"HR","alpha-3":"HRV","country-code":"191","iso_3166-2":"ISO 3166-2:HR","region-code":"150","sub-region-code":"039"},{"name":"Cuba","alpha-2":"CU","alpha-3":"CUB","country-code":"192","iso_3166-2":"ISO 3166-2:CU","region-code":"019","sub-region-code":"029"},{"name":"Curaçao","alpha-2":"CW","alpha-3":"CUW","country-code":"531","iso_3166-2":"ISO 3166-2:CW","region-code":"019","sub-region-code":"029"},{"name":"Cyprus","alpha-2":"CY","alpha-3":"CYP","country-code":"196","iso_3166-2":"ISO 3166-2:CY","region-code":"142","sub-region-code":"145"},{"name":"Czech Republic","alpha-2":"CZ","alpha-3":"CZE","country-code":"203","iso_3166-2":"ISO 3166-2:CZ","region-code":"150","sub-region-code":"151"},{"name":"Denmark","alpha-2":"DK","alpha-3":"DNK","country-code":"208","iso_3166-2":"ISO 3166-2:DK","region-code":"150","sub-region-code":"154"},{"name":"Djibouti","alpha-2":"DJ","alpha-3":"DJI","country-code":"262","iso_3166-2":"ISO 3166-2:DJ","region-code":"002","sub-region-code":"014"},{"name":"Dominica","alpha-2":"DM","alpha-3":"DMA","country-code":"212","iso_3166-2":"ISO 3166-2:DM","region-code":"019","sub-region-code":"029"},{"name":"Dominican Republic","alpha-2":"DO","alpha-3":"DOM","country-code":"214","iso_3166-2":"ISO 3166-2:DO","region-code":"019","sub-region-code":"029"},{"name":"Ecuador","alpha-2":"EC","alpha-3":"ECU","country-code":"218","iso_3166-2":"ISO 3166-2:EC","region-code":"019","sub-region-code":"005"},{"name":"Egypt","alpha-2":"EG","alpha-3":"EGY","country-code":"818","iso_3166-2":"ISO 3166-2:EG","region-code":"002","sub-region-code":"015"},{"name":"El Salvador","alpha-2":"SV","alpha-3":"SLV","country-code":"222","iso_3166-2":"ISO 3166-2:SV","region-code":"019","sub-region-code":"013"},{"name":"Equatorial Guinea","alpha-2":"GQ","alpha-3":"GNQ","country-code":"226","iso_3166-2":"ISO 3166-2:GQ","region-code":"002","sub-region-code":"017"},{"name":"Eritrea","alpha-2":"ER","alpha-3":"ERI","country-code":"232","iso_3166-2":"ISO 3166-2:ER","region-code":"002","sub-region-code":"014"},{"name":"Estonia","alpha-2":"EE","alpha-3":"EST","country-code":"233","iso_3166-2":"ISO 3166-2:EE","region-code":"150","sub-region-code":"154"},{"name":"Ethiopia","alpha-2":"ET","alpha-3":"ETH","country-code":"231","iso_3166-2":"ISO 3166-2:ET","region-code":"002","sub-region-code":"014"},{"name":"Falkland Islands (Malvinas)","alpha-2":"FK","alpha-3":"FLK","country-code":"238","iso_3166-2":"ISO 3166-2:FK","region-code":"019","sub-region-code":"005"},{"name":"Faroe Islands","alpha-2":"FO","alpha-3":"FRO","country-code":"234","iso_3166-2":"ISO 3166-2:FO","region-code":"150","sub-region-code":"154"},{"name":"Fiji","alpha-2":"FJ","alpha-3":"FJI","country-code":"242","iso_3166-2":"ISO 3166-2:FJ","region-code":"009","sub-region-code":"054"},{"name":"Finland","alpha-2":"FI","alpha-3":"FIN","country-code":"246","iso_3166-2":"ISO 3166-2:FI","region-code":"150","sub-region-code":"154"},{"name":"France","alpha-2":"FR","alpha-3":"FRA","country-code":"250","iso_3166-2":"ISO 3166-2:FR","region-code":"150","sub-region-code":"155"},{"name":"French Guiana","alpha-2":"GF","alpha-3":"GUF","country-code":"254","iso_3166-2":"ISO 3166-2:GF","region-code":"019","sub-region-code":"005"},{"name":"French Polynesia","alpha-2":"PF","alpha-3":"PYF","country-code":"258","iso_3166-2":"ISO 3166-2:PF","region-code":"009","sub-region-code":"061"},{"name":"French Southern Territories","alpha-2":"TF","alpha-3":"ATF","country-code":"260","iso_3166-2":"ISO 3166-2:TF"},{"name":"Gabon","alpha-2":"GA","alpha-3":"GAB","country-code":"266","iso_3166-2":"ISO 3166-2:GA","region-code":"002","sub-region-code":"017"},{"name":"Gambia","alpha-2":"GM","alpha-3":"GMB","country-code":"270","iso_3166-2":"ISO 3166-2:GM","region-code":"002","sub-region-code":"011"},{"name":"Georgia","alpha-2":"GE","alpha-3":"GEO","country-code":"268","iso_3166-2":"ISO 3166-2:GE","region-code":"142","sub-region-code":"145"},{"name":"Germany","alpha-2":"DE","alpha-3":"DEU","country-code":"276","iso_3166-2":"ISO 3166-2:DE","region-code":"150","sub-region-code":"155"},{"name":"Ghana","alpha-2":"GH","alpha-3":"GHA","country-code":"288","iso_3166-2":"ISO 3166-2:GH","region-code":"002","sub-region-code":"011"},{"name":"Gibraltar","alpha-2":"GI","alpha-3":"GIB","country-code":"292","iso_3166-2":"ISO 3166-2:GI","region-code":"150","sub-region-code":"039"},{"name":"Greece","alpha-2":"GR","alpha-3":"GRC","country-code":"300","iso_3166-2":"ISO 3166-2:GR","region-code":"150","sub-region-code":"039"},{"name":"Greenland","alpha-2":"GL","alpha-3":"GRL","country-code":"304","iso_3166-2":"ISO 3166-2:GL","region-code":"019","sub-region-code":"021"},{"name":"Grenada","alpha-2":"GD","alpha-3":"GRD","country-code":"308","iso_3166-2":"ISO 3166-2:GD","region-code":"019","sub-region-code":"029"},{"name":"Guadeloupe","alpha-2":"GP","alpha-3":"GLP","country-code":"312","iso_3166-2":"ISO 3166-2:GP","region-code":"019","sub-region-code":"029"},{"name":"Guam","alpha-2":"GU","alpha-3":"GUM","country-code":"316","iso_3166-2":"ISO 3166-2:GU","region-code":"009","sub-region-code":"057"},{"name":"Guatemala","alpha-2":"GT","alpha-3":"GTM","country-code":"320","iso_3166-2":"ISO 3166-2:GT","region-code":"019","sub-region-code":"013"},{"name":"Guernsey","alpha-2":"GG","alpha-3":"GGY","country-code":"831","iso_3166-2":"ISO 3166-2:GG","region-code":"150","sub-region-code":"154"},{"name":"Guinea","alpha-2":"GN","alpha-3":"GIN","country-code":"324","iso_3166-2":"ISO 3166-2:GN","region-code":"002","sub-region-code":"011"},{"name":"Guinea-Bissau","alpha-2":"GW","alpha-3":"GNB","country-code":"624","iso_3166-2":"ISO 3166-2:GW","region-code":"002","sub-region-code":"011"},{"name":"Guyana","alpha-2":"GY","alpha-3":"GUY","country-code":"328","iso_3166-2":"ISO 3166-2:GY","region-code":"019","sub-region-code":"005"},{"name":"Haiti","alpha-2":"HT","alpha-3":"HTI","country-code":"332","iso_3166-2":"ISO 3166-2:HT","region-code":"019","sub-region-code":"029"},{"name":"Heard Island and McDonald Islands","alpha-2":"HM","alpha-3":"HMD","country-code":"334","iso_3166-2":"ISO 3166-2:HM"},{"name":"Holy See (Vatican City State)","alpha-2":"VA","alpha-3":"VAT","country-code":"336","iso_3166-2":"ISO 3166-2:VA","region-code":"150","sub-region-code":"039"},{"name":"Honduras","alpha-2":"HN","alpha-3":"HND","country-code":"340","iso_3166-2":"ISO 3166-2:HN","region-code":"019","sub-region-code":"013"},{"name":"Hong Kong","alpha-2":"HK","alpha-3":"HKG","country-code":"344","iso_3166-2":"ISO 3166-2:HK","region-code":"142","sub-region-code":"030"},{"name":"Hungary","alpha-2":"HU","alpha-3":"HUN","country-code":"348","iso_3166-2":"ISO 3166-2:HU","region-code":"150","sub-region-code":"151"},{"name":"Iceland","alpha-2":"IS","alpha-3":"ISL","country-code":"352","iso_3166-2":"ISO 3166-2:IS","region-code":"150","sub-region-code":"154"},{"name":"India","alpha-2":"IN","alpha-3":"IND","country-code":"356","iso_3166-2":"ISO 3166-2:IN","region-code":"142","sub-region-code":"034"},{"name":"Indonesia","alpha-2":"ID","alpha-3":"IDN","country-code":"360","iso_3166-2":"ISO 3166-2:ID","region-code":"142","sub-region-code":"035"},{"name":"Iran, Islamic Republic of","alpha-2":"IR","alpha-3":"IRN","country-code":"364","iso_3166-2":"ISO 3166-2:IR","region-code":"142","sub-region-code":"034"},{"name":"Iraq","alpha-2":"IQ","alpha-3":"IRQ","country-code":"368","iso_3166-2":"ISO 3166-2:IQ","region-code":"142","sub-region-code":"145"},{"name":"Ireland","alpha-2":"IE","alpha-3":"IRL","country-code":"372","iso_3166-2":"ISO 3166-2:IE","region-code":"150","sub-region-code":"154"},{"name":"Isle of Man","alpha-2":"IM","alpha-3":"IMN","country-code":"833","iso_3166-2":"ISO 3166-2:IM","region-code":"150","sub-region-code":"154"},{"name":"Israel","alpha-2":"IL","alpha-3":"ISR","country-code":"376","iso_3166-2":"ISO 3166-2:IL","region-code":"142","sub-region-code":"145"},{"name":"Italy","alpha-2":"IT","alpha-3":"ITA","country-code":"380","iso_3166-2":"ISO 3166-2:IT","region-code":"150","sub-region-code":"039"},{"name":"Jamaica","alpha-2":"JM","alpha-3":"JAM","country-code":"388","iso_3166-2":"ISO 3166-2:JM","region-code":"019","sub-region-code":"029"},{"name":"Japan","alpha-2":"JP","alpha-3":"JPN","country-code":"392","iso_3166-2":"ISO 3166-2:JP","region-code":"142","sub-region-code":"030"},{"name":"Jersey","alpha-2":"JE","alpha-3":"JEY","country-code":"832","iso_3166-2":"ISO 3166-2:JE","region-code":"150","sub-region-code":"154"},{"name":"Jordan","alpha-2":"JO","alpha-3":"JOR","country-code":"400","iso_3166-2":"ISO 3166-2:JO","region-code":"142","sub-region-code":"145"},{"name":"Kazakhstan","alpha-2":"KZ","alpha-3":"KAZ","country-code":"398","iso_3166-2":"ISO 3166-2:KZ","region-code":"142","sub-region-code":"143"}] </code></pre> </div>

大学四年自学走来,这些私藏的实用工具/学习网站我贡献出来了

大学四年,看课本是不可能一直看课本的了,对于学习,特别是自学,善于搜索网上的一些资源来辅助,还是非常有必要的,下面我就把这几年私藏的各种资源,网站贡献出来给你们。主要有:电子书搜索、实用工具、在线视频学习网站、非视频学习网站、软件下载、面试/求职必备网站。 注意:文中提到的所有资源,文末我都给你整理好了,你们只管拿去,如果觉得不错,转发、分享就是最大的支持了。 一、电子书搜索 对于大部分程序员...

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

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

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

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

ArrayList源码分析(入门篇)

ArrayList源码分析 前言: 写这篇博客的主要原因是,在我上一次参加千牵科技Java实习生面试时,有被面试官问到ArrayList为什么查找的速度较快,插入和删除的速度较慢?当时我回答得不好,很大的一部分原因是因为我没有阅读过ArrayList源码,虽然最后收到Offer了,但我拒绝了,打算寒假学得再深入些再广泛些,下学期开学后再去投递其他更好的公司。为了更加深入理解ArrayList,也为

我以为我学懂了数据结构,直到看了这个导图才发现,我错了

数据结构与算法思维导图

String s = new String(" a ") 到底产生几个对象?

老生常谈的一个梗,到2020了还在争论,你们一天天的,哎哎哎,我不是针对你一个,我是说在座的各位都是人才! 上图红色的这3个箭头,对于通过new产生一个字符串(”宜春”)时,会先去常量池中查找是否已经有了”宜春”对象,如果没有则在常量池中创建一个此字符串对象,然后堆中再创建一个常量池中此”宜春”对象的拷贝对象。 也就是说准确答案是产生了一个或两个对象,如果常量池中原来没有 ”宜春” ,就是两个。...

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

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

和黑客斗争的 6 天!

互联网公司工作,很难避免不和黑客们打交道,我呆过的两家互联网公司,几乎每月每天每分钟都有黑客在公司网站上扫描。有的是寻找 Sql 注入的缺口,有的是寻找线上服务器可能存在的漏洞,大部分都...

讲一个程序员如何副业月赚三万的真实故事

loonggg读完需要3分钟速读仅需 1 分钟大家好,我是你们的校长。我之前讲过,这年头,只要肯动脑,肯行动,程序员凭借自己的技术,赚钱的方式还是有很多种的。仅仅靠在公司出卖自己的劳动时...

上班一个月,后悔当初着急入职的选择了

最近有个老铁,告诉我说,上班一个月,后悔当初着急入职现在公司了。他之前在美图做手机研发,今年美图那边今年也有一波组织优化调整,他是其中一个,在协商离职后,当时捉急找工作上班,因为有房贷供着,不能没有收入来源。所以匆忙选了一家公司,实际上是一个大型外包公司,主要派遣给其他手机厂商做外包项目。**当时承诺待遇还不错,所以就立马入职去上班了。但是后面入职后,发现薪酬待遇这块并不是HR所说那样,那个HR自...

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

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

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

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

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

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

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

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

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

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

玩转springboot启动banner定义所得

最近接手了一个springboot项目,不是不熟悉这个框架,启动时打印的信息吸引了我。 这不是我熟悉的常用springboot的打印信息啊,我打开自己的项目: 还真是的,不用默认的感觉也挺高大上的。一时兴起,就去研究了一下源代码,还正是有些收获,稍后我会总结一下。正常情况下做为一个老程序员,是不会对这种小儿科感兴趣的,不就是一个控制台打印嘛。哈哈! 于是出于最初的好奇,研究了项目的源代码。看到

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

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

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

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

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

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

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

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

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

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

面试:第十六章:Java中级开发(16k)

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

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

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

终于懂了TCP和UDP协议区别

终于懂了TCP和UDP协议区别

你打算用Java 8一辈子都不打算升级到Java 14,真香

我们程序员应该抱着尝鲜、猎奇的心态,否则就容易固步自封,技术停滞不前。

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

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

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

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

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

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

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

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

《经典算法案例》01-08:如何使用质数设计扫雷(Minesweeper)游戏

我们都玩过Windows操作系统中的经典游戏扫雷(Minesweeper),如果把质数当作一颗雷,那么,表格中红色的数字哪些是雷(质数)?您能找出多少个呢?文中用列表的方式罗列了10000以内的自然数、质数(素数),6的倍数等,方便大家观察质数的分布规律及特性,以便对算法求解有指导意义。另外,判断质数是初学算法,理解算法重要性的一个非常好的案例。

立即提问
相关内容推荐