pyspark spark2.3.3 hadoop2.7 py4j.protocol.Py4JJavaError

遇到的问题有两个

先上代码:

from pyspark import SparkConf, SparkContext

conf = SparkConf()\
    #.setMaster("local[2]").setAppName("spark0301")

sc = SparkContext(conf=conf)

data = [1,2,3,4,5]
disData = sc.parallelize(data)
disData.collect()


sc.stop()

一.window环境下

图片说明

二.pyspark 单机模式下

./spark-submit --master local[2] --name spark0001 /root/datas/text1.py
我运行的结果

图片说明

正常别人运行的结果

图片说明

Csdn user default icon
上传中...
上传图片
插入图片
抄袭、复制答案,以达到刷声望分或其他目的的行为,在CSDN问答是严格禁止的,一经发现立刻封号。是时候展现真正的技术了!
其他相关推荐
spark2.3.3跨集群读取hive2.4.2

问题描述: 旧集群为spark2.1.0,hive2.4.2。新集群为cdh的spark2.3.3+hive3.0.0。hdfs不在一起。我尝试用spark2.3.3去读旧集群的hive2.4.2。在spark-submit的时候--files添加了 hive-site.xml。 里面定义了 ``` spark.sql.warehouse.dir=hdfs://master:9000/apps/hive/warehouse hive.metastore.uris=thrift://master:9083 ``` 这里的master为旧集群的地址。 当我将依赖包打进要执行的jar的时候执行抛出如下异常: ``` class org.apache.hadoop.hdfs.web.HftpFileSystem cannot access its superinterface org.apache.hadoop.hdfs.web.TokenAspect$TokenManagementDelegator ``` 而当我仅执行original的jar包, 依赖包选择spark-submit --jars的方式引入时,则抛出这个异常 ``` org.apache.thrift.TApplicationException: Invalid method name: 'get_all_functions' ```

android studio 编译myclass报错?

android studio编译bao'cuo ```Error:Gradle: A problem occurred configuring root project 'SockWord'. > Could not resolve all dependencies for configuration ':classpath'. > Could not find com.android.tools:common:25.3.3. Searched in the following locations: https://jcenter.bintray.com/com/android/tools/common/25.3.3/common-25.3.3.pom https://jcenter.bintray.com/com/android/tools/common/25.3.3/common-25.3.3.jar Required by: project : > com.android.tools.build:gradle:2.3.3 > com.android.tools.build:gradle-core:2.3.3 > com.android.tools.build:builder:2.3.3 project : > com.android.tools.build:gradle:2.3.3 > com.android.tools.build:gradle-core:2.3.3 > com.android.tools.build:builder:2.3.3 > com.android.tools.build:manifest-merger:25.3.3 project : > com.android.tools.build:gradle:2.3.3 > com.android.tools.build:gradle-core:2.3.3 > com.android.tools.build:builder:2.3.3 > com.android.tools.ddms:ddmlib:25.3.3 project : > com.android.tools.build:gradle:2.3.3 > com.android.tools.build:gradle-core:2.3.3 > com.android.tools.build:builder:2.3.3 > com.android.tools.analytics-library:shared:25.3.3 project : > com.android.tools.build:gradle:2.3.3 > com.android.tools.build:gradle-core:2.3.3 > com.android.tools.build:builder:2.3.3 > com.android.tools.analytics-library:tracker:25.3.3 project : > com.android.tools.build:gradle:2.3.3 > com.android.tools.build:gradle-core:2.3.3 > com.android.tools.build:builder:2.3.3 > com.android.tools:sdklib:25.3.3 > com.android.tools.layoutlib:layoutlib-api:25.3.3 project : > com.android.tools.build:gradle:2.3.3 > com.android.tools.build:gradle-core:2.3.3 > com.android.tools.build:builder:2.3.3 > com.android.tools:sdklib:25.3.3 > com.android.tools:dvlib:25.3.3 project : > com.android.tools.build:gradle:2.3.3 > com.android.tools.build:gradle-core:2.3.3 > com.android.tools.build:builder:2.3.3 > com.android.tools:sdklib:25.3.3 > com.android.tools:repository:25.3.3 ```

有关 .9.png 点九图的问题(是java程序不是安卓程序)

我在JAVA实践中遇到一个问题,我指的是电脑上的java程序不是安卓程序,在制作好 .9.png格式的文件后应用在程序中,它虽然可以正常显示,但是我添加JButton,JTxetArea等等组件没有按我之前制作图片时的意图显示(就是制作时右边和下边的黑线决定的显示区域),它就是默认一直在中间顶端显示,我尝试了很多图片,不管黑线怎么画,都不会按我的意图而是一直在默认的中间顶端出现。困扰了我好久,如果大家愿意指导,我将感激不尽。 以下是我的代码: 1:NPanel(继承JPanel的实现.9.png图片的) public class NPanel extends JPanel{ private NinePatch np; private int skin = 0; int[] pad; public NPanel(){ //先执行构造函数,再paintComponent(要add到JFrame且setsize setvisible) skin = 0; np = loadNinePatch(String.format("/np/skin_%d.9.png", skin)); } public NPanel(int sk){ //先执行构造函数,再paintComponent(要add到JFrame且setsize setvisible) skin = sk; np = loadNinePatch(String.format("/np/skin_%d.9.png", skin)); } public NPanel(int sk, JComponent jc){ skin = sk; np = loadNinePatch(String.format("/np/skin_%d.9.png", skin)); this.add(jc); } public NPanel(int sk, JComponent jc, LayoutManager LM){ skin = sk; np = loadNinePatch(String.format("/np/skin_%d.9.png", skin)); this.add(jc); this.setLayout(LM); } // 重写绘图方法 /** * @param path * - the image path. * @return an NinePatch object, or {@code null} if the given path is not * valid or an error occurs during loading. */ private NinePatch loadNinePatch(String path) { InputStream stream = this.getClass().getResourceAsStream(path); if (stream != null) { try { return NinePatch.load(stream, true, false); } catch (IOException e) { System.err.println("An error occurs during loading."); e.printStackTrace(); return null; } } else { System.err.println("Couldn't find the file: " + path); return null; } } /** * To improve the repaint speed, the code block contained in * paintComponent() must be able to be executed quickly. For example, we * usually put the load image code out of the paintComponent() for rapid UI * update. * * @see javax.swing.JComponent#paintComponent(java.awt.Graphics) */ @Override protected void paintComponent(Graphics g) { pad = new int[4]; np.getPadding(pad); super.paintComponent(g); Graphics2D g2 = (Graphics2D) g; Rectangle clip = g2.getClipBounds(); System.out.printf("%d,%d,%d,%d\n",clip.x, clip.y, clip.width, clip.height); System.out.printf("%d,%d,%d,%d\n",pad[0], pad[1], pad[2], pad[3]); if(np != null && clip.x == 0 && clip.y == 0){ np.draw(g2, clip.x, clip.y, clip.width, clip.height); // np = null; } } } 2:这是JFrame的代码 public class GUI extends JFrame{ final private Toolkit toolkit = Toolkit.getDefaultToolkit(); final private Dimension screensize = toolkit.getScreenSize(); //获取屏幕分辨率 private final int Width = screensize.width/3; private final int Height = screensize.height/2; private String filePath = "Record.txt"; JTextArea content = new JTextArea(); public GUI(){ this.setBounds(screensize.width/2 - Width/2, screensize.height/2 - Height/2, Width, Height); Loading(); content.setOpaque(false); content.setEditable(false); NPanel npl = new NPanel(3); npl.add(new JButton("123")); // npl.setBorder(BorderFactory.createEmptyBorder(50, 50, 50, 50)); this.add(npl); this.setDefaultCloseOperation(EXIT_ON_CLOSE); this.setVisible(true); } private void init(){ } private void Loading(){ File file = new File(filePath); BufferedReader br = null; StringBuilder sb = new StringBuilder(); //使用StringBuilder 防止多次改变String导致资源 耗费 while(true){ try{ br = new BufferedReader (new FileReader(file)); String str = null; while ((str = br.readLine()) != null){ sb.append(str).append("\n"); } content.setText(sb.toString()); break; } catch(FileNotFoundException e1){ try { file.createNewFile(); } catch (IOException e) { // TODO Auto-generated catch block e.printStackTrace(); System.exit(0); } } catch(IOException e1){ e1.printStackTrace(); System.exit(0); } finally{ if(br != null){ //在finally关闭流,防止异常导致无法关闭流 try{ br.close(); } catch(IOException e1){ e1.printStackTrace(); System.exit(0); } } } } } } 然后在主函数 new GUI();就运行了,结果如下 ![图片说明](https://img-ask.csdn.net/upload/201705/25/1495678275_552549.jpg) 对了还有我自己制作好的.9.png图片: ![图片说明](https://img-ask.csdn.net/upload/201705/25/1495678337_61873.png)

SSH项目在windows下正常启动,在Linux下启动失败

一个SSH项目,打包出来后放到windows服务器上可以正常启动和访问,但是放的Linux服务器上无法正常启动。 Spring版本4X JDK1.8 Tomcat8 windows和Linux均为阿里云的服务器。 以下是Linux中的报错信息: ``` 19:08:03.493 [localhost-startStop-1] ERROR org.apache.struts2.dispatcher.Dispatcher - Dispatcher initialization failed com.opensymphony.xwork2.config.ConfigurationException: Unable to load configuration. at com.opensymphony.xwork2.config.ConfigurationManager.getConfiguration(ConfigurationManager.java:69) ~[xwork-core-2.3.3.jar:2.3.3] at org.apache.struts2.dispatcher.Dispatcher.getContainer(Dispatcher.java:960) ~[struts2-core-2.5.13.jar:2.5.13] at org.apache.struts2.dispatcher.Dispatcher.init_PreloadConfiguration(Dispatcher.java:466) ~[struts2-core-2.5.13.jar:2.5.13] at org.apache.struts2.dispatcher.Dispatcher.init(Dispatcher.java:499) [struts2-core-2.5.13.jar:2.5.13] at org.apache.struts2.dispatcher.InitOperations.initDispatcher(InitOperations.java:75) [struts2-core-2.5.13.jar:2.5.13] at org.apache.struts2.dispatcher.filter.StrutsPrepareAndExecuteFilter.init(StrutsPrepareAndExecuteFilter.java:63) [struts2-core-2.5.13.jar:2.5.13] at org.apache.catalina.core.ApplicationFilterConfig.initFilter(ApplicationFilterConfig.java:279) [catalina.jar:8.0.45] at org.apache.catalina.core.ApplicationFilterConfig.getFilter(ApplicationFilterConfig.java:260) [catalina.jar:8.0.45] at org.apache.catalina.core.ApplicationFilterConfig.<init>(ApplicationFilterConfig.java:105) [catalina.jar:8.0.45] at org.apache.catalina.core.StandardContext.filterStart(StandardContext.java:4700) [catalina.jar:8.0.45] at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5340) [catalina.jar:8.0.45] at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:145) [catalina.jar:8.0.45] at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:753) [catalina.jar:8.0.45] at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:729) [catalina.jar:8.0.45] at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:717) [catalina.jar:8.0.45] at org.apache.catalina.startup.HostConfig.deployWAR(HostConfig.java:976) [catalina.jar:8.0.45] at org.apache.catalina.startup.HostConfig$DeployWar.run(HostConfig.java:1853) [catalina.jar:8.0.45] at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511) [?:1.8.0_222] at java.util.concurrent.FutureTask.run(FutureTask.java:266) [?:1.8.0_222] at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149) [?:1.8.0_222] at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624) [?:1.8.0_222] at java.lang.Thread.run(Thread.java:748) [?:1.8.0_222] Caused by: com.opensymphony.xwork2.config.ConfigurationException: Unable to load bean: type:com.opensymphony.xwork2.TextProviderFactory class:com.opensymphony.xwork2.StrutsTextProviderFactory at com.opensymphony.xwork2.config.providers.XmlConfigurationProvider.register(XmlConfigurationProvider.java:235) ~[xwork-core-2.3.3.jar:2.3.3] at org.apache.struts2.config.StrutsXmlConfigurationProvider.register(StrutsXmlConfigurationProvider.java:98) ~[struts2-core-2.5.13.jar:2.5.13] at com.opensymphony.xwork2.config.impl.DefaultConfiguration.reloadContainer(DefaultConfiguration.java:206) ~[xwork-core-2.3.3.jar:2.3.3] at com.opensymphony.xwork2.config.ConfigurationManager.getConfiguration(ConfigurationManager.java:66) ~[xwork-core-2.3.3.jar:2.3.3] ... 21 more Caused by: java.lang.IncompatibleClassChangeError: Implementing class at java.lang.ClassLoader.defineClass1(Native Method) ~[?:1.8.0_222] at java.lang.ClassLoader.defineClass(ClassLoader.java:763) ~[?:1.8.0_222] at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:142) ~[?:1.8.0_222] at org.apache.catalina.loader.WebappClassLoaderBase.findClassInternal(WebappClassLoaderBase.java:2567) ~[catalina.jar:8.0.45] at org.apache.catalina.loader.WebappClassLoaderBase.findClass(WebappClassLoaderBase.java:859) ~[catalina.jar:8.0.45] at org.apache.catalina.loader.WebappClassLoaderBase.loadClass(WebappClassLoaderBase.java:1302) ~[catalina.jar:8.0.45] at org.apache.catalina.loader.WebappClassLoaderBase.loadClass(WebappClassLoaderBase.java:1167) ~[catalina.jar:8.0.45] at com.opensymphony.xwork2.util.ClassLoaderUtil.loadClass(ClassLoaderUtil.java:144) ~[xwork-core-2.3.3.jar:2.3.3] at com.opensymphony.xwork2.config.providers.XmlConfigurationProvider.register(XmlConfigurationProvider.java:206) ~[xwork-core-2.3.3.jar:2.3.3] at org.apache.struts2.config.StrutsXmlConfigurationProvider.register(StrutsXmlConfigurationProvider.java:98) ~[struts2-core-2.5.13.jar:2.5.13] at com.opensymphony.xwork2.config.impl.DefaultConfiguration.reloadContainer(DefaultConfiguration.java:206) ~[xwork-core-2.3.3.jar:2.3.3] at com.opensymphony.xwork2.config.ConfigurationManager.getConfiguration(ConfigurationManager.java:66) ~[xwork-core-2.3.3.jar:2.3.3] ... 21 more ```

Error:Could not find com.android.tools.build:gradle-core:2.3.3. Searched in the following locations:

新导入项目报这个错误: Error:Could not find com.android.tools.build:gradle-core:2.3.3. Searched in the following locations: https://repo1.maven.org/maven2/com/android/tools/build/gradle-core/2.3.3/gradle-core-2.3.3.pom https://repo1.maven.org/maven2/com/android/tools/build/gradle-core/2.3.3/gradle-core-2.3.3.jar Required by: project :library > com.android.tools.build:gradle:2.3.3。 图片: ![图片说明](https://img-ask.csdn.net/upload/201908/30/1567134273_698972.png) ![图片说明](https://img-ask.csdn.net/upload/201908/30/1567134287_697402.png)

Android studio 2.3分渠道打包,统计安装量,获取IMEI错误

由于要统计各个渠道的安装量,用Android studio分渠道打包,生成的apk,安装完成未打开,我们的后台统计已经统计到了安装次数,但获取的IMEI是错误的(还可能会出现多次),然后我在手动打开APP,这时统计到的才是正确的。SDK版本25,求教!

Android Studio2.3.3gradle Failed to resolve

![图片说明](https://img-ask.csdn.net/upload/201707/26/1501055102_678890.png) 按照步骤安装了Studio 创建一个新项目就报错了,第三方以来导入不了,试过各种 maven镜像都不行

XAMPP netbeans xdebug不起作用

<div class="post-text" itemprop="text"> <p>I've been using xampp on windows and netbeans for a while now and finally want to get the xdebug debugger working. For some reason it doesn't work.</p> <p>My phpinfo() file doesn't show any xdebug information, even though I tried to tweak and change the php.ini file as Google suggested. </p> <p>Here are the relevant parts of my php.ini file:</p> <pre><code>zend_extension = \xampp\php\ext\php_xdebug-2.3.3-5.6-vc11.dll xdebug.remote_enable=on xdebug.remote:autostart = on xdebug.remote_host=localhost xdebug.remote_port=9000 ; Port number must match debugger port number in NetBeans IDE Tools &gt; Options &gt; PHP xdebug.remote_handler=dbgp </code></pre> <p>The remote_ports of the php.ini file and the netbeans debugger settings match. I also made sure to edit the right php.ini file. </p> <p>However: Even though my XAMPP works fine since I changed the ports to 8081 and 444, every time I start it, I get the following errors: <a href="http://i.stack.imgur.com/o1ZsT.png" rel="nofollow">http://i.stack.imgur.com/o1ZsT.png</a></p> <p>Also note that I use Windows 10 64bit rather than Windows 8 as it states.</p> <p>My errorlog is a mess:</p> <pre><code>[Thu Sep 17 08:50:14.069550 2015] [ssl:warn] [pid 5768:tid 500] AH01909: www.example.com:444:0 server certificate does NOT include an ID which matches the server name [Thu Sep 17 08:50:14.159597 2015] [core:warn] [pid 5768:tid 500] AH00098: pid file C:/xampp/apache/logs/httpd.pid overwritten -- Unclean shutdown of previous Apache run? Failed loading C:\xampp\php\ext\\xampp\php\ext\php_xdebug-2.3.3-5.6-vc11.dll example.com:444:0 server certificate does NOT include an ID which matches the server name [Thu Sep 17 08:50:14.404611 2015] [mpm_winnt:notice] [pid 5768:tid 500] AH00455: Apache/2.4.16 (Win32) OpenSSL/1.0.1p PHP/5.6.12 configured -- resuming normal operations [Thu Sep 17 08:50:14.404611 2015] [mpm_winnt:notice] [pid 5768:tid 500] AH00456: Apache Lounge VC11 Server built: Jul 12 2015 10:56:48 [Thu Sep 17 08:50:14.404611 2015] [core:notice] [pid 5768:tid 500] AH00094: Command line: 'c:\\xampp\\apache\\bin\\httpd.exe -d C:/xampp/apache' [Thu Sep 17 08:50:14.410612 2015] [mpm_winnt:notice] [pid 5768:tid 500] AH00418: Parent: Created child process 7852 [Thu Sep 17 08:50:15.318272 2015] [ssl:warn] [pid 7852:tid 512] AH01909: www.example.com:444:0 server certificate does NOT include an ID which matches the server name Failed loading C:\xampp\php\ext\\xampp\php\ext\php_xdebug-2.3.3-5.6-vc11.dll example.com:444:0 server certificate does NOT include an ID which matches the server name [Thu Sep 17 08:50:15.609979 2015] [mpm_winnt:notice] [pid 7852:tid 512] AH00354: Child: Starting 150 worker threads. </code></pre> <p>I also tried changing the line: </p> <pre><code>zend_extension = \xampp\php\ext\php_xdebug-2.3.3-5.6-vc11.dll </code></pre> <p>to </p> <pre><code>zend_extension = php_xdebug-2.3.3-5.6-vc11.dll </code></pre> <p>The </p> <pre><code> Failed loading C:\xampp\php\ext\\xampp\php\ext\php_xdebug-2.3.3-5.6-vc11.dll </code></pre> <p>line in the error.log disappears.</p> <p>But it still doesn't work. </p> <p>I'm desperate, any help is appreciated!</p> <p>Cheers</p> </div>

在Doctrine 2.3.3中放置docblock注释的位置

<div class="post-text" itemprop="text"> <p>I am upgrading my ORM from <code>Doctrine 1.2</code> to <code>Doctrine 2.3.3</code>. In the previous version we used to generate models and use them to interact with specific tables. But in the latter versions we write the docblock annotations.</p> <p>I have written a docblock annotation that corresponds to my table in database and placing it inside <code>Doctrine\Common\Annotations</code>. But it seems that isnt working as the object of the annotation class is not getting recognized.</p> <p>So where do i place the docblock files or what extra i do have to take for my doctrine to run properly?</p> </div>

在Doctrine 2中设置列别名时出错

<div class="post-text" itemprop="text"> <p>I am using Doctrine 2.3.3 as ORM in my project. Everything is running smooth and fine. Now i want to give my column names my own aliases. I've read in the documentation of doctrine 2 that the following code is the way to give aliases.</p> <pre><code>&lt;?php /** * @Entity(repositoryClass="Entity\Repositories\EmployeeRepository") * @Entity @Table(name="tbl_employee") */ class TblEmployee { /** @Id @Column(name="employee_id",type="string",length=45) */ public $emid; //getters public function getEmId() { return $this-&gt;emid; } //setters public function setEmployeeId($emid) { $this-&gt;emid = $emid; } ?&gt; </code></pre> <p>but when i execute this code I get the error</p> <p><code>[Semantical Error] line 0, col 36 near 'employee_id &lt;': Error: Class TblEmployee has no field or association named employee_id</code></p> <p>how do i solve this?? or what is the correct way to give aliases to the columns??</p> </div>

Ubuntu 下配置Ruby1.9.1,Rails2.3.3出错

安装一切正常 ruby -v; gem -v; rails -v都能出来正确的结果。 但用rails project时,就出错了,错误原因 $ rails hello /usr/local/ruby/lib/ruby/gems/1.9.1/gems/rails-2.3.3/lib/rails_generator/options.rb:32:in `default_options': [b][color=red]undefined method `write_inheritable_attribute' for Rails::Generator::Base:Class (NoMethodError)[/color][/b] from /usr/local/ruby/lib/ruby/gems/1.9.1/gems/rails-2.3.3/lib/rails_generator/base.rb:90:in `<class:Base>' from /usr/local/ruby/lib/ruby/gems/1.9.1/gems/rails-2.3.3/lib/rails_generator/base.rb:85:in `<module:Generator>' from /usr/local/ruby/lib/ruby/gems/1.9.1/gems/rails-2.3.3/lib/rails_generator/base.rb:48:in `<module:Rails>' from /usr/local/ruby/lib/ruby/gems/1.9.1/gems/rails-2.3.3/lib/rails_generator/base.rb:6:in `<top (required)>' from /usr/local/ruby/lib/ruby/gems/1.9.1/gems/rails-2.3.3/lib/rails_generator.rb:34:in `require' from /usr/local/ruby/lib/ruby/gems/1.9.1/gems/rails-2.3.3/lib/rails_generator.rb:34:in `<top (required)>' from /usr/local/ruby/lib/ruby/gems/1.9.1/gems/rails-2.3.3/bin/rails:14:in `require' from /usr/local/ruby/lib/ruby/gems/1.9.1/gems/rails-2.3.3/bin/rails:14:in `<top (required)>' from /usr/local/ruby/bin/rails:19:in `load' from /usr/local/ruby/bin/rails:19:in `<main>' 有很多关于这个问题的分析,全是英文 ,大意是[color=red]iconv.so未配置好[/color],已经一周了。实在搞不定,谁有办法,帮我一下啊。。第一次配环境。 [b]问题补充:[/b] 感谢night_stalker的回答,按你的提示,我去试了下 [code="sh"]require 'iconv' 返回 [color=red]=> true[/color][/code] [code="java"] sudo apt-get install iconv [color=red]E: Couldn't find package iconv[/color] [/code] 我试着用了你的 iconv-pure 后,还是不行,错误原因一样! [b]问题补充:[/b] [code="java"] irb(main):001:0> require 'activesupport' LoadError: no such file to load -- activesupport from (irb):1:in `require' from (irb):1 from /usr/local/ruby/bin/irb:12:in `<main>' [/code] 看来应该是这个问题了,我先自己找下解决方案,麻烦你也帮我看下怎么解决吧。 谢谢了! :D [b]问题补充:[/b] 再次感谢 night_stalker: 问题解决了,果然是activesupport引起的。 我运行了这个gem去安装 [code="java"] $ sudo gem install activesupport [/code] 安装完成后就好了,谢谢!

无法安装带有require的imag类(centos6.5 / php5.4上的vendor / autoload.php错误

<div class="post-text" itemprop="text"> <p>I know many users have asked same question before but it wasn't helpful for me... I have a VPS (centOS6.5/directadmin/php5.4/SSH terminal)</p> <p>I try install imagine (<a href="https://imagine.readthedocs.org" rel="nofollow">https://imagine.readthedocs.org</a>) class in my server via getcomposer.org</p> <p>These are my all steps:</p> <p>First I install getcomposer:</p> <pre><code>curl -sS https://getcomposer.org/installer | php mv composer.phar /usr/local/bin/composer </code></pre> <p>then:</p> <pre><code>cd /usr/local/bin/ </code></pre> <p>And</p> <pre><code> echo '{"require": {"imagine/imagine": "~0.6.2"}}'-&gt;composer.json </code></pre> <p>After That I run it:</p> <pre><code>composer update </code></pre> <p>OK! everything seems installed!</p> <p>Now in my website root, I want to test it:</p> <pre><code>&lt;?php require 'vendor/autoload.php'; // line 2 $imagine = new Imagine\Gd\Imagine(); // line 3 ?&gt; </code></pre> <p>But I get this error:</p> <blockquote> <p>Warning: require(vendor/autoload.php): failed to open stream: No such file or directory in /home/admin/domains/example.com/public_html/info.php on line 2</p> <p>Fatal error: require(): Failed opening required 'vendor/autoload.php' (include_path='.:/usr/local/php54/lib/php') in /home/admin/domains/example.com/public_html/info.php on line 2</p> </blockquote> <p><strong>//EDIT</strong></p> <p>The real locate of autoload.php in my server:</p> <pre><code>/usr/local/bin/vendor/autoload.php </code></pre> <p>Also There "imagine" directory in vendor directory!</p> </div>

android-sdk安装配置android2.3

Preparing to install archives Downloading SDK Platform Android 2.3.3, API 10, revision 2 Download interrupted: Connection to http://dl-ssl.google.com refused Downloading Samples for SDK API 10, revision 1 Download interrupted: Connection to http://dl-ssl.google.com refused Done. Nothing was installed. ---------------------------------------------------------------------------------- ![图片说明](https://img-ask.csdn.net/upload/201608/23/1471950344_926074.png) 以上是我在sdk-manager时弹出的日志。我也按照网上的说法,改了tool-》option的选项了,但是为什么还是报错呀?希望大神帮助解答!谢谢啦!

Android 2.3.3 Webview

<div class="post-text" itemprop="text"> <p>Trying to create a very basic app that has a webview. The webview will load a webpage that uses some javascript to make Ajax calls and update itself every few seconds.</p> <p>My Android app works fine, I can load my page and it works as expected on any Android version after 2.3.3. In 2.3.3 the page loads, basic javascript seems to work, but it will not load the data from the Ajax calls. I can open this page directly in browser on 2.3.3 and it loads fine with Ajax calls updating the web browser.</p> <p>I noticed that this was added in API 11, Which looks like what I need, but since it did not exist before 11, is there anything that could help? Since it works in the stock browser I would think it should work in webview??</p> <blockquote> <p>public void setAllowContentAccess (boolean allow) Since: API Level 11 Enable or disable content url access within WebView. Content url access allows WebView to &gt;load content from a content provider installed in the system. The default is enabled.</p> </blockquote> <p>Let me know, thanks</p> <p>Here is the code I am using, the url is stored in a system preference.</p> <pre><code> WebView myWebView = (WebView) findViewById(R.id.webview); WebSettings webSettings = myWebView.getSettings(); webSettings.setJavaScriptEnabled(true); webSettings.setUserAgentString(preferences.getString("deviceID", null)); myWebView.setScrollBarStyle(WebView.SCROLLBARS_OUTSIDE_OVERLAY); myWebView.addJavascriptInterface(new JavaScriptInterface(this), "Android"); myWebView.clearCache(true); String defaultURL = preferences.getString("url1", null); myWebView.loadUrl(defaultURL); </code></pre> <p>B</p> </div>

Android Studio2.3 SDK Platforms 不完整

只有Android-25,其他API无法选择下载,如果是离线加载,则只显示部分安装,不能用。![SDK Platforms](https://img-ask.csdn.net/upload/201705/08/1494252456_928443.jpg)![SDK Tools](https://img-ask.csdn.net/upload/201705/08/1494252494_360069.jpg)![SDK Update Site](https://img-ask.csdn.net/upload/201705/08/1494252517_769638.jpg)

windows8.1 安装python3.6提示错误,求解决方案

![图片说明](https://img-ask.csdn.net/upload/201710/28/1509192644_801293.jpg)

elasticsearch5.6查询没有elasticsearch2.3.3快,为什么

## elasticsearch5.6 # 索引模板 ``` curl cmserver:9200/track_20190809?pretty { "track_20190809" : { "aliases" : { }, "mappings" : { "track" : { "_all" : { "enabled" : false }, "properties" : { "dataSource" : { "type" : "keyword" }, "dtTime" : { "type" : "date" }, "idtype" : { "type" : "keyword" }, "linkId" : { "type" : "keyword" }, "strEqpId" : { "type" : "keyword" }, "strId" : { "type" : "keyword" } } } }, "settings" : { "index" : { "creation_date" : "1566555759568", "number_of_shards" : "4", "number_of_replicas" : "0", "uuid" : "X0e_Xj-ERB--GJedj6hsJw", "version" : { "created" : "5061699" }, "provided_name" : "track_20190809" } } } } ``` # maven ``` <parent> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-starter-parent</artifactId> <version>2.0.9.RELEASE</version> </parent> <dependencies> <dependency> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-starter</artifactId> <exclusions> <exclusion> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-starter-logging</artifactId> </exclusion> </exclusions> </dependency> <dependency> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-starter-log4j2</artifactId> </dependency> <dependency> <groupId>org.elasticsearch</groupId> <artifactId>elasticsearch</artifactId> <version>5.6.16</version> </dependency> <dependency> <groupId>org.elasticsearch.client</groupId> <artifactId>transport</artifactId> <version>5.6.16</version> </dependency> <dependency> <groupId>org.projectlombok</groupId> <artifactId>lombok</artifactId> </dependency> </dependencies> ``` # 客户端创建 ``` public class ESRepository { public TransportClient client = null; public void init() throws Exception { buildClient(); } private void buildClient() throws Exception { String[] hosts = { "192.168.0.82" }; Settings settings = Settings.builder().put("cluster.name", "elasticsearch").put("client.transport.sniff", true) .put("client.transport.ping_timeout", "60s").put("action.auto_create_index", true).build(); client = new PreBuiltTransportClient(settings); for (String strTransportHostName : hosts) { client.addTransportAddress(new InetSocketTransportAddress(InetAddress.getByName(strTransportHostName), 9300)); } } } ``` # 查询代码 ``` public class QueryData { private ESRepository esr = new ESRepository(); private int total = 0; public void doRun(String query) { try { esr.init(); } catch (Exception e) { log.error("", e); } log.info("query data start..."); long a = System.currentTimeMillis(); String scrollId = getScrollId(query); queryByScrollId(scrollId); clearScroll(scrollId); long b = System.currentTimeMillis(); log.info("query data end total:" + total + ", time:" + (b-a)); } private void queryByScrollId(String scrollId) { SearchScrollRequestBuilder searchScrollRequestBuilder; SearchResponse response; int i = 0; while(true) { i++; searchScrollRequestBuilder = esr.client.prepareSearchScroll(scrollId); searchScrollRequestBuilder.setScroll(TimeValue.timeValueMinutes(5)); response = searchScrollRequestBuilder.get(); long count = response.getHits().getHits().length; log.info("--------- queryByScrollId size {}, i={}", count, i); total += count; if (count == 0) { break; } else { /*for (SearchHit searchHit : searchHits) { log.info("--------- queryByScrollId source {}", searchHit.getSourceAsString()); }*/ } scrollId = response.getScrollId(); } } private String getScrollId(String query) { BoolQueryBuilder queryBuilder = QueryBuilders.boolQuery(); if(query != null) { queryBuilder.must(QueryBuilders.wildcardQuery("strId", "*" + query + "*")); } SearchRequestBuilder searchRequestBuilder = esr.client.prepareSearch("track_20190809"); searchRequestBuilder.setTypes("track"); searchRequestBuilder.setScroll(TimeValue.timeValueMinutes(5)); searchRequestBuilder.setSearchType(SearchType.DEFAULT); searchRequestBuilder.setSize(10000); //searchRequestBuilder.addSort(SortBuilders.fieldSort("strId")); if(query != null) { searchRequestBuilder.setQuery(queryBuilder); } SearchResponse response = searchRequestBuilder.get(); long count = response.getHits().getHits().length; log.info("--------- getScrollId size {}", count); total += count; /*for (SearchHit searchHit : searchHits) { log.info("--------- getScrollId source {}", searchHit.getSourceAsString()); }*/ return response.getScrollId(); } private void clearScroll(String scrollId) { ClearScrollRequestBuilder clearScrollRequestBuilder = esr.client.prepareClearScroll(); clearScrollRequestBuilder.addScrollId(scrollId); ClearScrollResponse response = clearScrollRequestBuilder.get(); log.info("--------- clearScroll result {}", response.isSucceeded()); } } ``` ## elasticsearch2.3 # 索引模板 ``` curl cmserver:9200/track_20190809?pretty { "track_20190809" : { "aliases" : { }, "mappings" : { "track" : { "_all" : { "enabled" : false }, "properties" : { "dataSource" : { "type" : "string", "index" : "not_analyzed" }, "dtTime" : { "type" : "date", "format" : "strict_date_optional_time||epoch_millis" }, "idtype" : { "type" : "string", "index" : "not_analyzed" }, "linkId" : { "type" : "string", "index" : "not_analyzed" }, "strEqpId" : { "type" : "string", "index" : "not_analyzed" }, "strId" : { "type" : "string", "index" : "not_analyzed" } } } }, "settings" : { "index" : { "creation_date" : "1566465473765", "number_of_shards" : "4", "number_of_replicas" : "0", "uuid" : "MfT_bzy1TO-67aVocEt5uQ", "version" : { "created" : "2030399" } } } } } ``` ## maven ``` <parent> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-starter-parent</artifactId> <version>1.4.2.RELEASE</version> </parent> <dependencies> <dependency> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-starter</artifactId> <exclusions> <exclusion> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-starter-logging</artifactId> </exclusion> </exclusions> </dependency> <dependency> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-starter-log4j2</artifactId> </dependency> <dependency> <groupId>org.elasticsearch</groupId> <artifactId>elasticsearch</artifactId> <version>2.3.3</version> </dependency> <dependency> <groupId>org.projectlombok</groupId> <artifactId>lombok</artifactId> </dependency> </dependencies> ``` # 客户端创建 ``` public class ESRepository { public TransportClient client = null; public void init() throws Exception { buildClient(); } private void buildClient() throws Exception { String[] hosts = { "192.168.0.82" }; Settings settings = Settings.builder().put("cluster.name", "elasticsearch").put("client.transport.sniff", true) .put("client.transport.ping_timeout", "60s").put("action.auto_create_index", true).build(); client = TransportClient.builder().settings(settings).build(); for (String strTransportHostName : hosts) { client.addTransportAddress(new InetSocketTransportAddress(InetAddress.getByName(strTransportHostName), 9300)); } } } ``` # 查询代码 和elasticsearch5.6一样 两个es内存配置都为1G,数据总条数1000万 **全部查出来,5.6需要300多秒,而2.3需要130秒左右,不清楚为什么,求大神帮忙**

交叉编译 skipping incompatible libc.so.6

交叉编译libevent,有两个交叉编译工具链,其中一个编译通过了,另一个编译有问题。 ``` root@us16044:/opt/x86/applications/libeventlibevent-2.1.11-stable/# ./configure --prefix=/opt/x86/applications/libevent/libevent-2.1.11-stable/install-arago/ --host=arm-none-linux CC=/opt/vbox/arago-linux-devkit/bin/arm-arago-linux-gnueabi-gcc CXX=/opt/vbox/arago-linux-devkit/bin/arm-arago-linux-gnueabi-g++ root@us16044:/opt/x86/applications/libeventlibevent-2.1.11-stable/#make ...省略 /opt/vbox/arago-linux-devkit/bin/../lib/gcc/arm-arago-linux-gnueabi/4.5.3/../../../../arm-arago-linux-gnueabi/bin/ld: skipping incompatible /opt/vbox/arago-linux-devkit/bin/../lib/gcc/arm-arago-linux-gnueabi/4.5.3/../../../../arm-arago-linux-gnueabi/lib/../../lib/libc.so.6 when searching for ../../lib/libc.so.6 ...省略 ``` libc.so.6是存在的 ``` root@us16044:/opt/x86/applications/libevent# objdump -p /opt/vbox/arago-linux-devkit/lib/libc.so.6 /opt/vbox/arago-linux-devkit/lib/libc.so.6: file format elf32-i386 Program Header: PHDR off 0x00000034 vaddr 0x00000034 paddr 0x00000034 align 2**2 filesz 0x00000140 memsz 0x00000140 flags r-x INTERP off 0x0013ac20 vaddr 0x0013ac20 paddr 0x0013ac20 align 2**5 filesz 0x00000021 memsz 0x00000021 flags r-- LOAD off 0x00000000 vaddr 0x00000000 paddr 0x00000000 align 2**12 filesz 0x00154ae8 memsz 0x00154ae8 flags r-x LOAD off 0x001551c4 vaddr 0x001561c4 paddr 0x001561c4 align 2**12 filesz 0x000027d8 memsz 0x00005804 flags rw- DYNAMIC off 0x00156d7c vaddr 0x00157d7c paddr 0x00157d7c align 2**2 filesz 0x000000f0 memsz 0x000000f0 flags rw- NOTE off 0x00000174 vaddr 0x00000174 paddr 0x00000174 align 2**2 filesz 0x00000020 memsz 0x00000020 flags r-- TLS off 0x001551c4 vaddr 0x001561c4 paddr 0x001561c4 align 2**2 filesz 0x00000008 memsz 0x00000040 flags r-- EH_FRAME off 0x0013ac44 vaddr 0x0013ac44 paddr 0x0013ac44 align 2**2 filesz 0x00003304 memsz 0x00003304 flags r-- STACK off 0x00000000 vaddr 0x00000000 paddr 0x00000000 align 2**2 filesz 0x00000000 memsz 0x00000000 flags rw- RELRO off 0x001551c4 vaddr 0x001561c4 paddr 0x001561c4 align 2**0 filesz 0x00001e3c memsz 0x00001e3c flags r-- Dynamic Section: NEEDED ld-linux.so.2 SONAME libc.so.6 INIT 0x00016af0 FINI_ARRAY 0x001561cc FINI_ARRAYSZ 0x00000004 HASH 0x00151684 GNU_HASH 0x00000194 STRTAB 0x0000cf2c SYMTAB 0x00003dac STRSZ 0x00005a61 SYMENT 0x00000010 PLTGOT 0x00157ff4 PLTRELSZ 0x00000038 PLTREL 0x00000011 JMPREL 0x000169b4 REL 0x00013fb4 RELSZ 0x00002a00 RELENT 0x00000008 VERDEF 0x00013bc0 VERDEFNUM 0x0000001b FLAGS 0x00000010 VERNEED 0x00013f74 VERNEEDNUM 0x00000001 VERSYM 0x0001298e RELCOUNT 0x000004e2 Version definitions: 1 0x01 0x0865f4e6 libc.so.6 2 0x00 0x0d696910 GLIBC_2.0 3 0x00 0x0d696911 GLIBC_2.1 GLIBC_2.0 4 0x00 0x09691f71 GLIBC_2.1.1 GLIBC_2.1 5 0x00 0x09691f72 GLIBC_2.1.2 GLIBC_2.1.1 6 0x00 0x09691f73 GLIBC_2.1.3 GLIBC_2.1.2 7 0x00 0x0d696912 GLIBC_2.2 GLIBC_2.1.3 8 0x00 0x09691a71 GLIBC_2.2.1 GLIBC_2.2 9 0x00 0x09691a72 GLIBC_2.2.2 GLIBC_2.2.1 10 0x00 0x09691a73 GLIBC_2.2.3 GLIBC_2.2.2 11 0x00 0x09691a74 GLIBC_2.2.4 GLIBC_2.2.3 12 0x00 0x09691a76 GLIBC_2.2.6 GLIBC_2.2.4 13 0x00 0x0d696913 GLIBC_2.3 GLIBC_2.2.6 14 0x00 0x09691972 GLIBC_2.3.2 GLIBC_2.3 15 0x00 0x09691973 GLIBC_2.3.3 GLIBC_2.3.2 16 0x00 0x09691974 GLIBC_2.3.4 GLIBC_2.3.3 17 0x00 0x0d696914 GLIBC_2.4 GLIBC_2.3.4 18 0x00 0x0d696915 GLIBC_2.5 GLIBC_2.4 19 0x00 0x0d696916 GLIBC_2.6 GLIBC_2.5 20 0x00 0x0d696917 GLIBC_2.7 GLIBC_2.6 21 0x00 0x0d696918 GLIBC_2.8 GLIBC_2.7 22 0x00 0x0d696919 GLIBC_2.9 GLIBC_2.8 23 0x00 0x06969190 GLIBC_2.10 GLIBC_2.9 24 0x00 0x06969191 GLIBC_2.11 GLIBC_2.10 25 0x00 0x06969192 GLIBC_2.12 GLIBC_2.11 26 0x00 0x0963cf85 GLIBC_PRIVATE GLIBC_2.12 27 0x00 0x0b792650 GCC_3.0 Version References: required from ld-linux.so.2: 0x0963cf85 0x00 30 GLIBC_PRIVATE 0x0d696913 0x00 29 GLIBC_2.3 0x0d696911 0x00 28 GLIBC_2.1 ``` c/c++新手,编译过程这边不太懂,求帮助

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

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

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

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

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

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

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

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

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

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

总结了 150 余个神奇网站,你不来瞅瞅吗?

原博客再更新,可能就没了,之后将持续更新本篇博客。

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

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

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

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

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

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

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

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

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

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

外包程序员的幸福生活

今天给你们讲述一个外包程序员的幸福生活。男主是Z哥,不是在外包公司上班的那种,是一名自由职业者,接外包项目自己干。接下来讲的都是真人真事。 先给大家介绍一下男主,Z哥,老程序员,是我十多年前的老同事,技术大牛,当过CTO,也创过业。因为我俩都爱好喝酒、踢球,再加上住的距离不算远,所以一直也断断续续的联系着,我对Z哥的状况也有大概了解。 Z哥几年前创业失败,后来他开始干起了外包,利用自己的技术能...

优雅的替换if-else语句

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

终于懂了TCP和UDP协议区别

终于懂了TCP和UDP协议区别

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

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

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

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

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

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

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

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

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

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

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

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

大胆预测下未来5年的Web开发

在2019年的ReactiveConf 上,《Elm in Action》的作者Richard Feldman对未来5年Web开发的发展做了预测,很有意思,分享给大家。如果你有机会从头...

大牛都会用的IDEA调试技巧!!!

导读 前天面试了一个985高校的实习生,问了他平时用什么开发工具,他想也没想的说IDEA,于是我抛砖引玉的问了一下IDEA的调试用过吧,你说说怎么设置断点...

立即提问
相关内容推荐