flutter sdk doesn't work on macOS High Sierra
I download the flutter sdk from github https://github.com/flutter/flutter.git , and unzip it to /Users/peterzheng/Documents/Documents , but I found that running flutter doctor in my terminal iTerm2 doesn't work even if I run command echo PATH=$PATH:/Users/peterzheng/Documents/Documents/flutter/bin , here is my info:
I found that even in the /flutter/bin folder, I still cannot run flutter, it keeps telling command not found, what should I do?
See also questions close to this topic
Image editor api for flutter app adding texts,rotation
Is it possible for edit image like rotation, text over image.Is there any plugin?. I need editor for image make adding texts with various fonts and colors. Thank you..
Flutter: Build child depending on visibility
Assume I have an app where you can zoom in and out. The zooming is managed by a Transform Widget.
Now, if you zoom in, I want to load more details by expanding the Widget tree, and when zooming out I want to remove these too-tiny-to-be-seen Widgets again.
So, I’d like to have a fixed-size Widget that gets a lambda to build a child depending on: - being seen on the screen - actual pixel size
Displaying Images beside text in flutter
How can i make a code of images beside text in my flutter app like this picture below: image beside text
Delphi XE7 Developing for iOS 7+
I'm trying to compile an app for iOS using Delphi XE7.
I tried to install OSX 10.13 High Sierra and XCode 7.2, but cannot compile under the iOS Simulator, as I get an error that I need to specify a UUID.
But, when I was searching online, someone said that Delphi XE7 only supports up to iOS 7, and XCode 7.2 only has iOS 9+.
So, the main question is, can I compile for iOS 7+ using Delphi XE7? If not, I cannot compile for new iPhones/iPads?
How to delete Dyld's Shared Cache on High Sierra?
I'd like to delete the DYLD's Shared Cache located at
/private/var/db/dyldon High Sierra Mac machines for analysis of an issue. It's not recommended to delete it manually.
The man page of
update_dyld_shared_cachecommand mentions that the cache should be deleted if a safe-boot is done. However, it is not being deleted (nor freshly created) even when I perform safe-boot on few High Sierra machines.
Is there a way to somehow delete it or make the safe-boot solution work? Thanks.
How to run php in High Sierra 10.13.14 using apachectl
I have been trying to run PHP in my mac book for 2 days, But nothing seems to work. I followed many solutions on StackOverflow and on other sites nothing worked. I am using apachectl.
Darwin MacBook-Pro-2.local 17.5.0 Darwin Kernel Version 17.5.0: Mon Mar 5 22:24:32 PST 2018; root:xnu-4570.51.1~1/RELEASE_X86_64 x86_64
apachectl syntax check:
➜ ~ apachectl -t Syntax OK ➜ ~
httpd configuration files:
➜ ~ locate httpd.conf /private/etc/apache2/httpd.conf /private/etc/apache2/httpd.conf.pre-update /private/etc/apache2/original/httpd.conf
Contents of /private/etc/apache2/httpd.conf
Contents of /private/etc/apache2/original/httpd.conf
Mac /bin/sleep doesn't sleep for the correct amount of time
I'm puzzled by an issue on my Mac. The sleep command sleeps for an incorrect period of time, and it's not even in the ballpark. A 1 second sleep is taking 10+ seconds.
➜ ~ time sleep 1 sleep 1 0.00s user 0.00s system 0% cpu 10.475 total ➜ ~ which sleep /bin/sleep # Try GNU ➜ ~ time gsleep 1 gsleep 1 0.00s user 0.00s system 0% cpu 15.411 total bash-3.2$ type -a sleep sleep is /bin/sleep bash-3.2$ type -a gsleep gsleep is /usr/local/bin/gsleep
This occurs with different (larger) values as well. I've also tried specifying the units (s). Same result. Has anyone come across something like this?
I've also tried in bash and Iterm.
how to include Duplicated commands in history plugin?
historya lot, but it seems that it will remove the Duplicated commands, how can I see all my commands include the Duplicated ones?
I use history plugin in zsh
Oh My ZSH Docker Autocompletion on OSX not working
I cant seem to get Docker autocompletion working using Oh My Zsh on macOS
I have the following in my .zshrc file
plugins=(docker git brew osx)
The git, brew and osx autocompletion is working, if I type docker and tab I get a list of files not docker commands
I have got the docker plugin installed in the _docker file in oh-my-zsh/plugins/docker directory and can confirm the the file is version 0.3.0 and is the same as https://github.com/felixr/docker-zsh-completion
I have tried adding commas between the plugins, putting them on new lines as others have posted in other threads.
I have also removed oh-my-zsh and reinstalling still no joy
I have docker version 18.09.1
docker version Client: Docker Engine - Community Version: 18.09.1 API version: 1.39 Go version: go1.10.6 Git commit: 4c52b90 Built: Wed Jan 9 19:33:12 2019 OS/Arch: darwin/amd64 Experimental: false Server: Docker Engine - Community Engine: Version: 18.09.1 API version: 1.39 (minimum version 1.12) Go version: go1.10.6 Git commit: 4c52b90 Built: Wed Jan 9 19:41:49 2019 OS/Arch: linux/amd64 Experimental: false
I have just tried installing on a Ubuntu machine and it works perfectly, have also tried on another Mac and had the same problem