flutter中使用socket导致UI卡顿?
  1. 在flutter使用tcp请求服务器的时候,在listen中对tcp流进行解析,解析过程包含拆包和拼包,正常情况下都没有问题,但是当服务器推送的流过快的时候,导致UI卡死,有人有好的建议吗?
  2. 代码如下: Future<Socket> _connect(String ip, int port) async{ if(!isConnect()) { try { _socket = await Socket.connect(ip, port, timeout: Duration(seconds: 20),); _socket.listen(_onData, onError: _onError, onDone: _onDone); }catch(e){ if(e is SocketException){ _onTimeout(); }else{ print("error : $e"); } } } return _socket; } _onData中是一些拼包拆包的业务逻辑,当tcp流包含多个业务报文的时候,onData中会循环拆分包直至拆分完成,每个包都会回调到具体的业务逻辑。。现在问题是,如果服务器发送的是base64图片的话,系统就会卡死,请问 下这个问题怎么解决?

3个回答

问题解决了,我发现在release模式下才会卡顿,在debug模式下不会卡顿。
因为服务器那边会通过tcp一直推送图片,然后每个tcp报文在release模式下大概为1800000个长度的List,而debug模式下每个报文为500000的List长度,图片大概是150000的长度,因此,每次要对报文进行拆包操作
,用到List.sbulist和addall这两个api,如果报文太大的话,这两个会耗时较长,导致下一个包没有及时收取,会导致卡顿。。
我的解法是,对每个数据list进行拆分处理,拆分成static const int SOCKET_LENGTH = 1024 * 256这么长的小段,然后对小段进行拆包拼包处理。
总结就是sublist 和 addall在list长度较长的时候效率极低,我的优化是不直接处理原始包,先把原始包拆分为中包,然后在依次拼接这些中包来读取图片数据。

没有遇到你说的问题,你的代码写的有问题吧?

肯定是你的代码问题,至少自己写的代码没有for循环,也没有用到你说的两个函数,详见Uint8List

Csdn user default icon
上传中...
上传图片
插入图片
抄袭、复制答案,以达到刷声望分或其他目的的行为,在CSDN问答是严格禁止的,一经发现立刻封号。是时候展现真正的技术了!
其他相关推荐
flutter中如何设计成如下的UI布局

![UI布局](https://img-ask.csdn.net/upload/202004/17/1587094453_403660.jpg) flutter中如何实现如图所示的UI设计

flutter开发UI怎么监听焦点改变事件

Android开发UI,监听焦点变化,我们可以使用setOnFocusChangeListener,flutter里面怎么处理焦点事件?

Listview嵌套Gridview加载数据太多会很卡

![图片说明](https://img-ask.csdn.net/upload/201507/11/1436611717_915530.png)求问有没有类似的空间可以代替Listview嵌套Gridview,十分感谢

Flutter 初学使用过程中 使用flutter run后报错 Gradle task assembleDebug failed with exit code 1

使用flutter run后报错Gradle task assembleDebug failed with exit code 1 只做了签名 + 应用图标修改、其余在未修改做了签名 + 应用图标修改前都是正常 尝试退回做了签名 + 应用图标的修改后依然还是一样 ![图片说明](https://img-ask.csdn.net/upload/201907/15/1563141156_887986.png)

Flutter ios原生开发添加广点通开屏广告,进入flutter后无法加载插件?

想要给项目添加开屏广告,但是没有广点通的相关插件,所以只能从原生那里入手。 想法是在进入flutter界面前,添加一个开屏,开屏结束后进入flutter 根据 https://github.com/gdtmobsdk/GDTMobSDK 配置好sdk后 仿照 https://github.com/gdtmobsdk/GDTMobSDK/blob/v4.11.1/GDTMobSample-Swift/AppDelegate.swift 写了自己的AppDelegate.swift 如下 出现的问题是,能够正常显示开屏广告,显示完毕后也能进入flutter,但是flutter所有的第三方插件全部失效,报错是没有找到插件。 AppDelegate.swift ``` import UIKit import Flutter @UIApplicationMain @objc class AppDelegate: FlutterAppDelegate { var splash: GDTSplashAd! var flutterViewController: FlutterViewController? var flutterEngine : FlutterEngine?; override func application( _ application: UIApplication, didFinishLaunchingWithOptions launchOptions: [UIApplication.LaunchOptionsKey: Any]? ) -> Bool { GeneratedPluginRegistrant.register(with: self) self.flutterViewController = FlutterViewController() window = UIWindow.init(frame: UIScreen.main.bounds) let rootViewController = GDTNavigationController.init(rootViewController: self.flutterViewController!) rootViewController.navigationBar.isHidden = true rootViewController.navigationBar.isTranslucent = true window?.rootViewController = rootViewController window.makeKeyAndVisible() if UIDevice.current.userInterfaceIdiom == UIUserInterfaceIdiom.phone { splash = GDTSplashAd.init(appId: Constant.appID, placementId: Constant.placementID) splash.delegate = self as? GDTSplashAdDelegate var splashImage = UIImage(named: "SplashNormal-swift") if Util.isIphoneX() { splashImage = UIImage(named: "SplashX-swift") } else if Util.isSmallIphone() { splashImage = UIImage(named: "SplashSmall-swift") } splash.backgroundImage = splashImage splash.fetchDelay = 3 splash.loadAndShow(in: window) } return super.application(application, didFinishLaunchingWithOptions: launchOptions) } } ``` 为了方便查看贴上图片代码: ![图片说明](https://img-ask.csdn.net/upload/201912/16/1576501326_484314.png) p.s flutter正常生成的代码(未改造前的): ``` import UIKit import Flutter @UIApplicationMain @objc class AppDelegate: FlutterAppDelegate { override func application( _ application: UIApplication, didFinishLaunchingWithOptions launchOptions: [UIApplication.LaunchOptionsKey: Any]? ) -> Bool { GeneratedPluginRegistrant.register(with: self) return super.application(application, didFinishLaunchingWithOptions: launchOptions) } } ```

安装flutter,运行flutter_console.bat时提示错误。

1.从官网下载flutter_windows_v1.0.0-stable.zip,然后将其解压到D:\flutter。 2.运行flutter_console.bat 提示MySQL的错误![图片说明](https://img-ask.csdn.net/upload/201812/15/1544883640_383021.png) 不知道这是什么原因? 我本地有mysql,设置了环境变量,也能登录mysql,就是在flutter console控制台报这个mysql的错误。如图: ![图片说明](https://img-ask.csdn.net/upload/201812/15/1544883964_477085.png) 然后我继续执行,flutter doctor, ![图片说明](https://img-ask.csdn.net/upload/201812/15/1544885595_295969.png) 然后我打开Android Studio 创建flutter项目,项目创建完之后也提示mysql的错误,并不能进入项目,如图 ![图片说明](https://img-ask.csdn.net/upload/201812/15/1544885356_248737.png) 因为有这个错误导致无法成功创建flutter项目 flutter_console.bat文件的内容是: ![图片说明](https://img-ask.csdn.net/upload/201812/18/1545140762_896457.png) 看bat文件也并没有用到mysql的内容

flutter 软键盘切换问题

flutter 在使用百度键盘的时候,TextField 设置了 keyboardType 但是没用, 在多个TextField切换的时候,软键盘的类型并不是及时的,有时候需要先关闭软键盘,再点击获取焦点才能显示正确的键盘类型。 测试了百度输入法,搜狗输入法,讯飞输入法。 百度输入法不能及时变更键盘类型,搜狗和讯飞可以。 求flutter的大佬告诉我这是为啥。咋弄~ ![图片说明](https://img-ask.csdn.net/upload/202004/10/1586509209_316095.gif)

flutter项目无法引入qr_flutter包,packages get时候报错,望各位大佬指点迷津!

Package qr_flutter has no versions that match >=1.1.3 <2.0.0 derived from: - zhihu depends on version ^1.1.3 ---- Log transcript ---- FINE: Pub 2.0.0-dev.16.0 IO : Spawning "cmd /c ver" in F:\ECAVC\zhihu-flutter-master\zhihu-flutter-master\. IO : Finished ver. Exit code 0. | stdout: | | | | Microsoft Windows [Version 6.1.7601] | Nothing output on stderr. MSG : Resolving dependencies... SLVR: Solving dependencies: | - cupertino_icons ^0.1.0 from hosted (cupertino_icons) (locked to 0.1.1) | - flutter any from sdk (flutter) (locked to 0.0.0) IO : Get versions from https://pub.flutter-io.cn/api/packages/qr_flutter. IO : HTTP GET https://pub.flutter-io.cn/api/packages/qr_flutter | Accept: application/vnd.pub.v2+json | user-agent: Dart pub 2.0.0-dev.16.0 IO : HTTP response 200 OK for GET https://pub.flutter-io.cn/api/packages/qr_flutter | took 0:00:01.060953 | connection: keep-alive | transfer-encoding: chunked | date: Fri, 28 Sep 2018 13:45:12 GMT | content-encoding: gzip | vary: Accept-Encoding | x-m-reqid: qWoAAP8YGXNIlFgV | content-type: application/json | x-xss-protection: 1; mode=block | x-source: C/200 | x-m-log: QNM:xs462;SRCPROXY:xs481;SRC:254;SRCPROXY:255;QNM3:553 | server: marco/2.6 | x-request-id: e6d1190402c12d9729c11b58b7ab7625 | via: S.mix-gd-can-007, T.10.D, V.mix-gd-can-007, T.3.D, M.cun-hn-csx-005 | x-frame-options: SAMEORIGIN | x-content-type-options: nosniff | x-qnm-cache: Validate,MissValidate SLVR: * start at root SLVR: | cupertino_icons 0.1.1 from hosted is locked SLVR: | * select cupertino_icons 0.1.1 from hosted SLVR: | | english_words 3.1.3 from hosted is locked SLVR: | | * select english_words 3.1.3 from hosted SLVR: | | | flutter 0.0.0 from sdk is locked SLVR: | | | * select flutter 0.0.0 from sdk SLVR: | | | | collection 1.14.5 from hosted is locked SLVR: | | | | * select collection 1.14.5 from hosted SLVR: | | | | | flutter_test 0.0.0 from sdk is locked SLVR: | | | | | * select flutter_test 0.0.0 from sdk SLVR: | | | | | | * select pub itself SLVR: | | | | | | | args 1.2.0 from hosted is locked SLVR: | | | | | | | * select args 1.2.0 from hosted SLVR: | | | | | | | | async 2.0.3 from hosted is locked SLVR: | | | | | | | | * select async 2.0.3 from hosted SLVR: | | | | | | | | | barback 0.15.2+14 from hosted is locked SLVR: | | | | | | | | | * select barback 0.15.2+14 from hosted SLVR: | | | | | | | | | | boolean_selector 1.0.2 from hosted is locked SLVR: | | | | | | | | | | * select boolean_selector 1.0.2 from hosted SLVR: | | | | | | | | | | | charcode 1.1.1 from hosted is locked SLVR: | | | | | | | | | | | * select charcode 1.1.1 from hosted SLVR: | | | | | | | | | | | | cli_util 0.1.2+1 from hosted is locked SLVR: | | | | | | | | | | | | * select cli_util 0.1.2+1 from hosted SLVR: | | | | | | | | | | | | | convert 2.0.1 from hosted is locked SLVR: | | | | | | | | | | | | | * select convert 2.0.1 from hosted SLVR: | | | | | | | | | | | | | | crypto 2.0.2+1 from hosted is locked SLVR: | | | | | | | | | | | | | | * select crypto 2.0.2+1 from hosted SLVR: | | | | | | | | | | | | | | | csslib 0.14.1 from hosted is locked SLVR: | | | | | | | | | | | | | | | * select csslib 0.14.1 from hosted SLVR: | | | | | | | | | | | | | | | | glob 1.1.5 from hosted is locked SLVR: | | | | | | | | | | | | | | | | * select glob 1.1.5 from hosted SLVR: | | | | | | | | | | | | | | | | | html 0.13.2+2 from hosted is locked SLVR: | | | | | | | | | | | | | | | | | * select html 0.13.2+2 from hosted SLVR: | | | | | | | | | | | | | | | | | | http 0.11.3+16 from hosted is locked SLVR: | | | | | | | | | | | | | | | | | | * select http 0.11.3+16 from hosted SLVR: | | | | | | | | | | | | | | | | | | | http_multi_server 2.0.4 from hosted is locked SLVR: | | | | | | | | | | | | | | | | | | | * select http_multi_server 2.0.4 from hosted SLVR: | | | | | | | | | | | | | | | | | | | | http_parser 3.1.1 from hosted is locked SLVR: | | | | | | | | | | | | | | | | | | | | * select http_parser 3.1.1 from hosted SLVR: | | | | | | | | | | | | | | | | | | | | | io 0.3.1 from hosted is locked SLVR: | | | | | | | | | | | | | | | | | | | | | * select io 0.3.1 from hosted SLVR: | | | | | | | | | | | | | | | | | | | | | | isolate 1.1.0 from hosted is locked SLVR: | | | | | | | | | | | | | | | | | | | | | | * select isolate 1.1.0 from hosted SLVR: | | | | | | | | | | | | | | | | | | | | | | | js 0.6.1 from hosted is locked SLVR: | | | | | | | | | | | | | | | | | | | | | | | * select js 0.6.1 from hosted SLVR: | | | | | | | | | | | | | | | | | | | | | | | | logging 0.11.3+1 from hosted is locked SLVR: | | | | | | | | | | | | | | | | | | | | | | | | * select logging 0.11.3+1 from hosted SLVR: | | | | | | | | | | | | | | | | | | | | | | | | | matcher 0.12.1+4 from hosted is locked SLVR: | | | | | | | | | | | | | | | | | | | | | | | | | * select matcher 0.12.1+4 from hosted SLVR: | | | | | | | | | | | | | | | | | | | | | | | | | | meta 1.1.1 from hosted is locked SLVR: | | | | | | | | | | | | | | | | | | | | | | | | | | * select meta 1.1.1 from hosted SLVR: | | | | | | | | | | | | | | | | | | | | | | | | | | | mime 0.9.5 from hosted is locked SLVR: | | | | | | | | | | | | | | | | | | | | | | | | | | | * select mime 0.9.5 from hosted SLVR: | | | | | | | | | | | | | | | | | | | | | | | | | | | | mockito 2.2.1 from hosted is locked SLVR: | | | | | | | | | | | | | | | | | | | | | | | | | | | | * select mockito 2.2.1 from hosted SLVR: | | | | | | | | | | | | | | | | | | | | | | | | | | | | | multi_server_socket 1.0.1 from hosted is locked SLVR: | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * select multi_server_socket 1.0.1 from hosted SLVR: | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | node_preamble 1.4.0 from hosted is locked SLVR: | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * select node_preamble 1.4.0 from hosted SLVR: | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | package_config 1.0.3 from hosted is locked SLVR: | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * select package_config 1.0.3 from hosted SLVR: | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | package_resolver 1.0.2 from hosted is locked SLVR: | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * select package_resolver 1.0.2 from hosted SLVR: | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | path 1.5.1 from hosted is locked SLVR: | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * select path 1.5.1 from hosted SLVR: | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | plugin 0.2.0+2 from hosted is locked SLVR: | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * select plugin 0.2.0+2 from hosted SLVR: | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | pool 1.3.4 from hosted is locked SLVR: | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * select pool 1.3.4 from hosted SLVR: | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | pub_semver 1.3.2 from hosted is locked SLVR: | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * select pub_semver 1.3.2 from hosted SLVR: | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | quiver 0.28.0 from hosted is locked SLVR: | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * select quiver 0.28.0 from hosted SLVR: | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | shelf 0.7.2 from hosted is locked SLVR: | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * select shelf 0.7.2 from hosted SLVR: | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | shelf_packages_handler 1.0.3 from hosted is locked SLVR: | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * select shelf_packages_handler 1.0.3 from hosted SLVR: | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | shelf_static 0.2.7 from hosted is locked SLVR: | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * select shelf_static 0.2.7 from hosted SLVR: | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | shelf_web_socket 0.2.2 from hosted is locked SLVR: | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * select shelf_web_socket 0.2.2 from hosted SLVR: | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | sky_engine 0.0.99 from path is locked SLVR: | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * select sky_engine 0.0.99 from path SLVR: | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | source_map_stack_trace 1.1.4 from hosted is locked SLVR: | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * select source_map_stack_trace 1.1.4 from hosted SLVR: | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | source_maps 0.10.4 from hosted is locked SLVR: | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * select source_maps 0.10.4 from hosted SLVR: | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | source_span 1.4.0 from hosted is locked SLVR: | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * select source_span 1.4.0 from hosted SLVR: | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | stack_trace 1.9.1 from hosted is locked SLVR: | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * select stack_trace 1.9.1 from hosted SLVR: | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | stream_channel 1.6.3 from hosted is locked SLVR: | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * select stream_channel 1.6.3 from hosted SLVR: | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | string_scanner 1.0.2 from hosted is locked SLVR: | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * select string_scanner 1.0.2 from hosted SLVR: | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | term_glyph 1.0.0 from hosted is locked SLVR: | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * select term_glyph 1.0.0 from hosted SLVR: | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | test 0.12.30+1 from hosted is locked SLVR: | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * select test 0.12.30+1 from hosted SLVR: | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | analyzer 0.31.1 from hosted is locked SLVR: | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * select analyzer 0.31.1 from hosted SLVR: | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | front_end 0.1.0-alpha.9 from hosted is locked SLVR: | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * select front_end 0.1.0-alpha.9 from hosted SLVR: | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | kernel 0.3.0-alpha.9 from hosted is locked SLVR: | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * select kernel 0.3.0-alpha.9 from hosted SLVR: | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | typed_data 1.1.4 from hosted is locked SLVR: | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * select typed_data 1.1.4 from hosted SLVR: | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | utf 0.9.0+3 from hosted is locked SLVR: | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * select utf 0.9.0+3 from hosted SLVR: | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | vector_math 2.0.5 from hosted is locked SLVR: | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * select vector_math 2.0.5 from hosted SLVR: | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | watcher 0.9.7+6 from hosted is locked SLVR: | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * select watcher 0.9.7+6 from hosted SLVR: | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | web_socket_channel 1.0.6 from hosted is locked SLVR: | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * select web_socket_channel 1.0.6 from hosted SLVR: | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | yaml 2.1.13 from hosted is locked SLVR: | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * select yaml 2.1.13 from hosted SLVR: | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | version 1.1.2 of qr_flutter doesn't match >=1.1.3 <2.0.0: | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | zhihu 0.0.0 (root) -> qr_flutter ^1.1.3 from hosted (qr_flutter) SLVR: | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | version 1.1.1 of qr_flutter doesn't match >=1.1.3 <2.0.0: | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | zhihu 0.0.0 (root) -> qr_flutter ^1.1.3 from hosted (qr_flutter) SLVR: | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | version 1.1.0 of qr_flutter doesn't match >=1.1.3 <2.0.0: | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | zhihu 0.0.0 (root) -> qr_flutter ^1.1.3 from hosted (qr_flutter) SLVR: | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | version 1.0.0 of qr_flutter doesn't match >=1.1.3 <2.0.0: | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | zhihu 0.0.0 (root) -> qr_flutter ^1.1.3 from hosted (qr_flutter) SLVR: BacktrackingSolver took 0:00:01.494368 seconds. | - Tried 1 solutions | - Requested 1 version lists | - Looked up 1 cached version lists | FINE: Resolving dependencies finished (1.5s). ERR : Package qr_flutter has no versions that match >=1.1.3 <2.0.0 derived from: | - zhihu depends on version ^1.1.3 FINE: Exception type: NoVersionException FINE: package:pub/src/entrypoint.dart 216 Entrypoint.acquireDependencies | package:pub/src/command/get.dart 38 GetCommand.run | package:args/command_runner.dart 194 CommandRunner.runCommand | package:pub/src/command_runner.dart 167 PubCommandRunner.runCommand.<fn> | dart:async new Future.sync | package:pub/src/utils.dart 103 captureErrors.<fn> | package:stack_trace Chain.capture | package:pub/src/utils.dart 118 captureErrors | package:pub/src/command_runner.dart 167 PubCommandRunner.runCommand | package:pub/src/command_runner.dart 116 PubCommandRunner.run | E:\b\build\slave\dart-sdk-windows-dev\build\sdk\third_party\pkg\pub\bin\pub.dart 8 main | ===== asynchronous gap =========================== | dart:async _Completer.completeError | package:pub/src/entrypoint.dart Entrypoint.acquireDependencies | ===== asynchronous gap =========================== | dart:async _asyncThenWrapperHelper | package:pub/src/entrypoint.dart 194 Entrypoint.acquireDependencies | package:pub/src/command/get.dart 38 GetCommand.run | package:args/command_runner.dart 194 CommandRunner.runCommand | ===== asynchronous gap =========================== | dart:async new Future.microtask | package:args/command_runner.dart 142 CommandRunner.runCommand | package:pub/src/command_runner.dart 167 PubCommandRunner.runCommand.<fn> | dart:async new Future.sync | package:pub/src/utils.dart 103 captureErrors.<fn> | package:stack_trace Chain.capture | package:pub/src/utils.dart 118 captureErrors | package:pub/src/command_runner.dart 167 PubCommandRunner.runCommand ---- End log transcript ---- pub get failed (1) ``` ```

flutter中扫描WiFi的问题,为什么用wifi_configuration.dart的package去扫描会出现get到的值为空?请问是什么情况?

flutter: import 'package:wifi_configuration/wifi_configuration.dart'; 调用这个package去扫描WiFi,扫描到的结果为空, void getConnectionState() async { var listAvailableWifi = await WifiConfiguration.getWifiList(); var listWifi = listAvailableWifi.toString(); print("get wifi list : " + listAvailableWifi.toString()); print(listWifi.contains("Nebula")); print(listAvailableWifi.length); } 结果如下 I/flutter (20369): get wifi list : [] I/flutter (20369): false I/flutter (20369): 0 I/flutter (20369): 请问是什么情况

求一个Flutter调用aar的案例

老板给了一个需求,需要做一个app,无奈没有android基础,所以想用Flutter写,需要调用第三方sdk,望厉害的大佬写个案例参考参考,。

flutter的demo跑不起来

![图片说明](https://img-ask.csdn.net/upload/201902/01/1549015563_655607.png) flutter_android里的android文件夹是可以通过android studio编译通过的,但是直接运行flutter_android就报以下错误 ![图片说明](https://img-ask.csdn.net/upload/201902/01/1549015797_773062.png) 尝试过在android文件夹所对应的项目中增加 ``` // maven { url 'https://maven.aliyun.com/repository/google' } // maven { url 'https://maven.aliyun.com/repository/jcenter' } // maven { url 'http://maven.aliyun.com/nexus/content/groups/public' } ``` 在flutter里的flutter.gradler中也增加上面的代码片段。但是也是报上文的错误。 ![图片说明](https://img-ask.csdn.net/upload/201902/01/1549016080_832953.png)

android开发中是否可以用flutter来专门制作界面交互然后用android原生java响应事件实现功能?

就是在android studio中,不再使用原生的XML布局来写界面,而是用flutter来做界面、做页面跳转等交互。然后java类文件是否可以响应flutter的一些控件事件,并把通信结果返回给flutter? <br> **总的来说就是是否可以用flutter替代android原生XML布局,flutter管界面和交互,android原生sdk管功能实现,并能互相通信?** <br> **我要怎么做?**

flutter Navigator路由跳转和返回,组件会重复build

https://github.com/flutter/flutter/issues/11655 为什么页面1, push到页面2,页面1会触发build?,然后回来的时候又build了一次 这样的话,我一个listView滚了很多了,结果点到详情页又得重新滚,这到底是bug还是故意为之的

Flutter开发应用时,怎么连接本地服务器?

我使用Apche来构建本地服务器,但是不知道如何使用Flutter或者dart库来连接本地的服务器。

Go后端Flutter / Dart前端中的发布请求问题

<div class="post-text" itemprop="text"> <p>I am new to Flutter/Dart, Go and mobile development in general. I am currently coding a login authentication page in flutter that connects to a backend written in go. To check if everything worked I wanted to print out the cookie that my backend sends back in the console. Unfortunately I am getting errors not sure what to do. </p> <p><strong>EDIT: I have been able to read the cookie, should I save the cookie in this format "session=UUID" or just the "UUID"? I want to send this cookie back in the header for future get requests. My Go code will check for the cookie name "session",but I'm not sure if sending it back in that format is correct.</strong> </p> <p><strong>Flutter code (I read on another stackoverflow post to use 10.0.2.2 as localhost when using an android emulator):</strong></p> <p><strong>EDIT: After playing around with the code I was able to read the cookie in the header but it has the name as well not just the UUID.</strong></p> <pre><code>import 'package:flutter/material.dart'; import 'package:http/http.dart' as http; import 'dart:convert'; class Login extends StatefulWidget { @override State&lt;StatefulWidget&gt; createState(){ return new LoginState(); } } class LoginState extends State &lt;Login&gt; { final formKey = GlobalKey&lt;FormState&gt;(); String _email, _password; String cookie; void loginApi(){ var form = formKey.currentState; var url = "http://10.0.2.2:8080"; if (form.validate()) { form.save(); var body = { "Email":_email, "Pass":_password}; http.post(url,body:json.encode(body)).then((response){ print(response.headers['set-cookie']); }); } } @override Widget build(BuildContext context) { return new Scaffold( appBar: new AppBar( title: new Text("Login"), backgroundColor: Colors.white, ), body: new Container( alignment: Alignment.center, child: Form( key: formKey, child: Column( children: &lt;Widget&gt;[ TextFormField( autocorrect: false, decoration: InputDecoration( labelText: "Email:", ), validator: (str) =&gt; !str.contains('@') ? "Not a Valid Email!" : null, onSaved: (str) =&gt; _email = str, ), TextFormField( autocorrect: false, decoration: InputDecoration( labelText: "Password:", ), validator: (str) =&gt; str.length &lt;= 7 ? "Not a Valid Password!" : null, onSaved: (str) =&gt; _password = str, obscureText: false, ), RaisedButton( child: Text("Submit"), onPressed:loginApi, ), ], ) ), ), ); } } </code></pre> <p><strong>Golang code (EDIT: Inserted a missing curly bracket after the panic error and deleted the curly bracket at the end of the code):</strong></p> <pre><code>package main import ( "encoding/json" "html/template" "net/http" uuid "github.com/satori/go.uuid" "golang.org/x/crypto/bcrypt" ) type user struct { UserName string //Same as email Password []byte } type logindata struct { Email string Pass string } var tpl *template.Template var dbUsers = map[string]user{} var dbSess = map[string]string{} func init() { bs, _ := bcrypt.GenerateFromPassword([]byte("password"), bcrypt.MinCost) dbUsers["test@test.com"] = user{"test@test.com", bs} } func main() { http.HandleFunc("/", login) http.Handle("/favicon.ico", http.NotFoundHandler()) //Don't have favicon http.ListenAndServe(":8080", nil) } func login(w http.ResponseWriter, req *http.Request) { var data logindata decoder := json.NewDecoder(req.Body) err_decode := decoder.Decode(&amp;data) if err_decode != nil { panic(err_decode) } u, ok := dbUsers[data.Email] if !ok { http.Error(w, "Username and/or password do not match", http.StatusForbidden) return } err_compare := bcrypt.CompareHashAndPassword(u.Password, []byte(data.Pass)) if err_compare != nil { http.Error(w, "Username and/or password do not match", http.StatusForbidden) return } // create session sID, _ := uuid.NewV4() c := &amp;http.Cookie{ Name: "session", Value: sID.String(), } http.SetCookie(w, c) dbSess[c.Value] = data.Email return } </code></pre> <p><strong>Output from console for flutter code (after I put in username and password and click submit, username is "test@test.com" password is "password"):</strong></p> <pre><code>Performing hot reload... Reloaded 0 of 489 libraries in 544ms. I/flutter ( 3778): session=db3690d6-db6e-4658-8b5b-5f2d3f908a65 </code></pre> <p><strong>I also went to localhost:8080 on my browser expecting to show a blank page but it displayed "page not working" and my terminal outputted the following error I guess because I was accessing it with a browser and I wasn't sending in JSON data, not sure:</strong></p> <pre><code>2018/05/24 23:29:38 http: panic serving [::1]:40010: EOF goroutine 6 [running]: net/http.(*conn).serve.func1(0xc82001a280) /usr/lib/go-1.6/src/net/http/server.go:1389 +0xc1 panic(0x76c6c0, 0xc82000a160) /usr/lib/go-1.6/src/runtime/panic.go:443 +0x4e9 main.login(0x7f96c9a848b8, 0xc82012c000, 0xc8201121c0) /home/daniel/Desktop/Workspace/Genesis/main.go:43 +0x176 net/http.HandlerFunc.ServeHTTP(0x8a8688, 0x7f96c9a848b8, 0xc82012c000, 0xc8201121c0) /usr/lib/go-1.6/src/net/http/server.go:1618 +0x3a net/http.(*ServeMux).ServeHTTP(0xc820013020, 0x7f96c9a848b8, 0xc82012c000, 0xc8201121c0) /usr/lib/go-1.6/src/net/http/server.go:1910 +0x17d net/http.serverHandler.ServeHTTP(0xc82001a100, 0x7f96c9a848b8, 0xc82012c000, 0xc8201121c0) /usr/lib/go-1.6/src/net/http/server.go:2081 +0x19e net/http.(*conn).serve(0xc82001a280) /usr/lib/go-1.6/src/net/http/server.go:1472 +0xf2e created by net/http.(*Server).Serve /usr/lib/go-1.6/src/net/http/server.go:2137 +0x44e 2018/05/24 23:29:38 http: panic serving [::1]:40012: EOF goroutine 18 [running]: net/http.(*conn).serve.func1(0xc82011c080) /usr/lib/go-1.6/src/net/http/server.go:1389 +0xc1 panic(0x76c6c0, 0xc82000a160) /usr/lib/go-1.6/src/runtime/panic.go:443 +0x4e9 main.login(0x7f96c9a848b8, 0xc8201161a0, 0xc820154000) /home/daniel/Desktop/Workspace/Genesis/main.go:43 +0x176 net/http.HandlerFunc.ServeHTTP(0x8a8688, 0x7f96c9a848b8, 0xc8201161a0, 0xc820154000) /usr/lib/go-1.6/src/net/http/server.go:1618 +0x3a net/http.(*ServeMux).ServeHTTP(0xc820013020, 0x7f96c9a848b8, 0xc8201161a0, 0xc820154000) /usr/lib/go-1.6/src/net/http/server.go:1910 +0x17d net/http.serverHandler.ServeHTTP(0xc82001a100, 0x7f96c9a848b8, 0xc8201161a0, 0xc820154000) /usr/lib/go-1.6/src/net/http/server.go:2081 +0x19e net/http.(*conn).serve(0xc82011c080) /usr/lib/go-1.6/src/net/http/server.go:1472 +0xf2e created by net/http.(*Server).Serve /usr/lib/go-1.6/src/net/http/server.go:2137 +0x44e 2018/05/24 23:29:43 http: panic serving [::1]:40016: EOF goroutine 7 [running]: net/http.(*conn).serve.func1(0xc82001a380) /usr/lib/go-1.6/src/net/http/server.go:1389 +0xc1 panic(0x76c6c0, 0xc82000a160) /usr/lib/go-1.6/src/runtime/panic.go:443 +0x4e9 main.login(0x7f96c9a848b8, 0xc82012c1a0, 0xc8201122a0) /home/daniel/Desktop/Workspace/Genesis/main.go:43 +0x176 net/http.HandlerFunc.ServeHTTP(0x8a8688, 0x7f96c9a848b8, 0xc82012c1a0, 0xc8201122a0) /usr/lib/go-1.6/src/net/http/server.go:1618 +0x3a net/http.(*ServeMux).ServeHTTP(0xc820013020, 0x7f96c9a848b8, 0xc82012c1a0, 0xc8201122a0) /usr/lib/go-1.6/src/net/http/server.go:1910 +0x17d net/http.serverHandler.ServeHTTP(0xc82001a100, 0x7f96c9a848b8, 0xc82012c1a0, 0xc8201122a0) /usr/lib/go-1.6/src/net/http/server.go:2081 +0x19e net/http.(*conn).serve(0xc82001a380) /usr/lib/go-1.6/src/net/http/server.go:1472 +0xf2e created by net/http.(*Server).Serve /usr/lib/go-1.6/src/net/http/server.go:2137 +0x44e </code></pre> </div>

vscode flutter连接夜神模拟器问题

vscode flutter链接夜神模拟器问题 ![图片说明](https://img-ask.csdn.net/upload/201907/11/1562812474_625104.png) ![图片说明](https://img-ask.csdn.net/upload/201907/11/1562812489_307528.png) vscode flutter连接夜神模拟器,运行代码的时候,和模拟器连接的前面的那些下载翻墙的问题解决了,然后是这个,百度了好久,实在找不到解决办法 emmm他说我少了个主类还是怎么的,这个要怎么调啊 麻烦大家了

android studio下运行flutter提示连接不上android设备

在android studio里开发flutter项目,flutter和dart插件都安装了,各种配置环境都配好了,但是运行项目还是提示没有可连接的设备,运行android studio项目就可以运行,但是运行flutter项目就连不上设备 ![图片说明](https://img-ask.csdn.net/upload/201912/18/1576647083_176276.jpg) 输入flutter doctor显示如图 ![图片说明](https://img-ask.csdn.net/upload/201912/20/1576809036_857979.jpg)

vs code编译flutter,Initializing gradle后报错

小白一枚,还请大神指教 因为之前一直卡在Initializing gradle步骤,然后查了CSDN修改了一次flutter.gradle文件之后,就一直报错,改回来也没用。没改之间就一直卡在Initializing gradle。 报错的代码: Exception in thread "main" java.util.zip.ZipException: error in opening zip file at java.util.zip.ZipFile.open(Native Method) at java.util.zip.ZipFile.<init>(ZipFile.java:219) at java.util.zip.ZipFile.<init>(ZipFile.java:149) at java.util.zip.ZipFile.<init>(ZipFile.java:163) at org.gradle.wrapper.Install.unzip(Install.java:214) at org.gradle.wrapper.Install.access$600(Install.java:27) at org.gradle.wrapper.Install$1.call(Install.java:74) at org.gradle.wrapper.Install$1.call(Install.java:48) at org.gradle.wrapper.ExclusiveFileAccessManager.access(ExclusiveFileAccessManager.java:65) at org.gradle.wrapper.Install.createDist(Install.java:48) at org.gradle.wrapper.WrapperExecutor.execute(WrapperExecutor.java:128) at org.gradle.wrapper.GradleWrapperMain.main(GradleWrapperMain.java:61) Command: /Users/jackwang/Documents/Flutter/first_flutter_app/android/gradlew -v Exited (sigterm) 还请大佬指教!

flutter app启动页时间怎么可以设置短一点

* 首次打开时,启动页时间有10多秒过后再是引导页 * 非首次打开时,有5秒启动页的时间 * ![启动页](https://img-ask.csdn.net/upload/202001/23/1579712122_353012.png) ![图片说明](https://img-ask.csdn.net/upload/202001/23/1579712174_383107.png) * 想把启动页的时间控制在2秒 * 在flutter中,或者是原生android和原生ios应该怎样设置

学Python后到底能干什么?网友:我太难了

感觉全世界营销文都在推Python,但是找不到工作的话,又有哪个机构会站出来给我推荐工作? 笔者冷静分析多方数据,想跟大家说:关于超越老牌霸主Java,过去几年间Python一直都被寄予厚望。但是事实是虽然上升趋势,但是国内环境下,一时间是无法马上就超越Java的,也可以换句话说:超越Java只是时间问题罢。 太嚣张了会Python的人!找工作拿高薪这么简单? https://edu....

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

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

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

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

为什么程序猿都不愿意去外包?

分享外包的组织架构,盈利模式,亲身经历,以及根据一些外包朋友的反馈,写了这篇文章 ,希望对正在找工作的老铁有所帮助

Java校招入职华为,半年后我跑路了

何来 我,一个双非本科弟弟,有幸在 19 届的秋招中得到前东家华为(以下简称 hw)的赏识,当时秋招签订就业协议,说是入了某 java bg,之后一系列组织架构调整原因等等让人无法理解的神操作,最终毕业前夕,被通知调往其他 bg 做嵌入式开发(纯 C 语言)。 由于已至于校招末尾,之前拿到的其他 offer 又无法再收回,一时感到无力回天,只得默默接受。 毕业后,直接入职开始了嵌入式苦旅,由于从未...

Java基础知识面试题(2020最新版)

文章目录Java概述何为编程什么是Javajdk1.5之后的三大版本JVM、JRE和JDK的关系什么是跨平台性?原理是什么Java语言有哪些特点什么是字节码?采用字节码的最大好处是什么什么是Java程序的主类?应用程序和小程序的主类有何不同?Java应用程序与小程序之间有那些差别?Java和C++的区别Oracle JDK 和 OpenJDK 的对比基础语法数据类型Java有哪些数据类型switc...

@程序员:GitHub这个项目快薅羊毛

今天下午在朋友圈看到很多人都在发github的羊毛,一时没明白是怎么回事。 后来上百度搜索了一下,原来真有这回事,毕竟资源主义的羊毛不少啊,1000刀刷爆了朋友圈!不知道你们的朋友圈有没有看到类似的消息。 这到底是啥情况? 微软开发者平台GitHub 的一个区块链项目 Handshake ,搞了一个招募新会员的活动,面向GitHub 上前 25万名开发者派送 4,246.99 HNS币,大约价...

用python打开电脑摄像头,并把图像传回qq邮箱【Pyinstaller打包】

前言: 如何悄悄的打开朋友的摄像头,看看她最近过的怎么样,嘿嘿!这次让我带你们来实现这个功能。 注: 这个程序仅限在朋友之间开玩笑,别去搞什么违法的事情哦。 代码 发送邮件 使用python内置的email模块即可完成。导入相应的代码封装为一个send函数,顺便导入需要导入的包 注: 下面的代码有三处要修改的地方,两处写的qq邮箱地址,还有一处写的qq邮箱授权码,不知道qq邮箱授权码的可以去百度一...

C++(继承):19---虚基类与虚继承(virtual)

一、菱形继承 在介绍虚继承之前介绍一下菱形继承 概念:A作为基类,B和C都继承与A。最后一个类D又继承于B和C,这样形式的继承称为菱形继承 菱形继承的缺点: 数据冗余:在D中会保存两份A的内容 访问不明确(二义性):因为D不知道是以B为中介去访问A还是以C为中介去访问A,因此在访问某些成员的时候会发生二义性 缺点的解决: 数据冗余:通过下面“虚继承”技术来解决(见下) 访问...

计算机网络——浅析网络层

一、前言 注意,关于ipv4和ipv6,ipv4是ip协议第4版本,也表示这个版本的ip一共4个字节,同样地,ipv6是ip协议第6版本,也表示这个版本的ip一共6个字节。 关于网络层使用路由器实现互联:在计算机网络的分层结构中,不同层有不同的中继设备: 计算机网络层 中继设备/中继系统 物理层 中继器、集线器Hub 数据链路层 网桥或交换机(交换机是多端口网桥,两者本质上是一个东西) 网络层 路...

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

数据结构与算法思维导图

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

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

华为初面+综合面试(Java技术面)附上面试题

华为面试整体流程大致分为笔试,性格测试,面试,综合面试,回学校等结果。笔试来说,华为的难度较中等,选择题难度和网易腾讯差不多。最后的代码题,相比下来就简单很多,一共3道题目,前2题很容易就AC,题目已经记不太清楚,不过难度确实不大。最后一题最后提交的代码过了75%的样例,一直没有发现剩下的25%可能存在什么坑。 笔试部分太久远,我就不怎么回忆了。直接将面试。 面试 如果说腾讯的面试是挥金如土...

和黑客斗争的 6 天!

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

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

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

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

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

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

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

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

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

女朋友过生日,我花了20分钟给她写了一个代理服务器

女朋友说:“看你最近挺辛苦的,我送你一个礼物吧。你看看想要什么,我来准备。” 我想了半天,从书到鞋子到电子产品最后到生活用品,感觉自己什么都不缺,然后和她说:“你省省钱吧,我什么都不需要。” 她坚持要送:“不行,你一定要说一个礼物,我想送你东西了。” 于是,我认真了起来,拿起手机,上淘宝逛了几分钟,但还是没能想出来缺点什么,最后实在没办法了:“这样吧,如果你实在想送东西,那你就写一个代理服务器吧”...

记一次腾讯面试,我挂在了最熟悉不过的队列上……

腾讯后台面试,面试官问:如何自己实现队列?

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

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

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

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

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

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

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

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

HTTP与HTTPS的区别

面试官问HTTP与HTTPS的区别,我这样回答让他竖起大拇指!

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

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

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

二哥,有个事想询问下您的意见,您觉得应届生值得去外包吗?公司虽然挺大的,中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多个条件是什么逻辑关系?条件判断在什么时候执...

立即提问
相关内容推荐