- Go to: 'System Preferences' >> 'MySQL' and stop MySQL
OR,
- sudo /usr/local/mysql/support-files/mysql.server start
- sudo /usr/local/mysql/support-files/mysql.server stop
| You are Manus, an AI agent created by the Manus team. | |
| You excel at the following tasks: | |
| 1. Information gathering, fact-checking, and documentation | |
| 2. Data processing, analysis, and visualization | |
| 3. Writing multi-chapter articles and in-depth research reports | |
| 4. Creating websites, applications, and tools | |
| 5. Using programming to solve various problems beyond development | |
| 6. Various tasks that can be accomplished using computers and the internet |
| ''' | |
| Spider for IMDb | |
| - Retrieve most popular movies & TV series with rating of 8.0 and above that have at least 5 award nominations | |
| - Crawl next pages recursively | |
| - Follow the details pages of scraped films to retrieve more information of each film | |
| ''' | |
| from scrapy.contrib.spiders import CrawlSpider, Rule | |
| from scrapy.contrib.linkextractors.sgml import SgmlLinkExtractor | |
| from scrapy.selector import Selector |
| ''' | |
| Spider for IMDb | |
| - Retrieve most popular movies & TV series with rating of 8.0 and above | |
| - Crawl next pages recursively | |
| ''' | |
| from scrapy.contrib.spiders import CrawlSpider, Rule | |
| from scrapy.contrib.linkextractors.sgml import SgmlLinkExtractor | |
| from scrapy.selector import Selector |
Each of these commands will run an ad hoc http static server in your current (or specified) directory, available at http://localhost:8000. Use this power wisely.
$ python -m SimpleHTTPServer 8000| perl -ne 'print if ($seen{$_} .= @ARGV) =~ /10$/' file1 file2 |
| from scipy.special import gamma as Gamma | |
| from pylab import * | |
| def f1(x): | |
| return Gamma(x) | |
| x = linspace(-10, 10, 512) | |
| y1 = f1(x) | |
| gca().set_autoscale_on(False) |
| cp -r src newsrc | |
| find newsrc -type f | xargs rm | |
| find src -type f | awk '{print "iconv -f gbk -t utf-8 "$1 " > new"$1}' | bash | |
| mv src srcbak | |
| mv newsrc src |
| // chinese char number | |
| a = [0x4e00, 0x4e03, 0x4e09, 0x4e2a, 0x4e07, 0x9646, 0x4e5d, 0x767e, 0x8086, 0x4e8c, | |
| 0x4e94, 0x4ebf, 0x56db, 0x4edf, 0x96f6, 0x58f9, 0x62fe, 0x4f0d, 0x8d30, 0x5341, | |
| 0x5343, 0x5146, 0x634c, 0x516b, 0x516d, 0x4f70, 0x7396, 0x53c1, 0x67d2]; | |
| for (var i=0; i<a.length; i++) { | |
| console.log(a[i] + "\t" + String.fromCharCode(a[i])); | |
| } |