2015 年 02 月

浏览模式: 标准 | 列表 | 图文
转:上海车牌拍卖技巧

转:上海车牌拍卖技巧

活在上海的悲哀是车牌是要拍的,而且现在非上海籍的除了有人才引进居住证才能拍之外,其他的不能拍了(港澳台等请别BB,我是指正常的在上海打工的)

因为没拍过,所以先学习一下,从百度上copy了一个小经验来参考一下:http://jingyan.baidu.com/article/fdffd1f805de25f3e88ca140.html

方法/步骤

  1. 首先登陆国拍网,在十点半之前将车牌拍卖的软件下载好,输入账号密码,在十点半的时候在出价栏随便输入一个价格出价,表示你参加了拍卖。

  2. 然后你就可以随便喝杯茶什么的,

    接下来的到11点回来,大家先移动下拍牌界面 确保验证码弹出框不会挡住左边数据窗口。

    然后不断刷验证码熟悉验证码的格式。

  3. 时间到了11点28分 这时请大家高度警惕 关闭所有联网软件

    到十一点29分,最关键的时刻。

    这时主要策略有两种,一个是11点29分00秒在最高价上加600伏击,伏击成功之后马上再加300伏击;另外一个是11点29分20秒最高价加300伏击,伏击成功后马上再加300伏击 。

  4. 举例

    目前最低可成交价为44800,可修改区间为44500-45100,跟最低可成交价比上下300 。 加300伏击意思是在最高价45100基础上加300为45400,出价,输入好验证码,等待系统最高价到达45400的时候点击确定就算成功出价了 。 还有,在伏击阶段,大家是可以出价后把验证码先输好的,到最后点确定就可以了 。

  5. 以上是伏击法,

    拍牌结束后的十分钟后左边会出现拍牌结果的信息 若中标的话 恭喜了 !

希望是美好的,但能不能拍到,还是要看运气的。先备着,虽然这是几年前的东西了。现在都75000左右了!!!可以买辆车了,我晶啊

PS:http://jingyan.baidu.com/article/37bce2be347aee1002f3a294.html,这个网址更详细。

What's the difference between utf8_general_ci and utf8_unicode_ci

What's the difference between utf8_general_ci and utf8_unicode_ci

Copy from http://stackoverflow.com/questions/766809/whats-the-difference-between-utf8-general-ci-and-utf8-unicode-ci

看到本文其实是源于Yii2 的migrate中的init,它其中就有一段:

if ($this->db->driverName === 'mysql') {
// http://stackoverflow.com/questions/766809/whats-the-difference-between-utf8-general-ci-and-utf8-unicode-ci
$tableOptions = 'CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci ENGINE=InnoDB';
}

于是我才发现了上面的URL,然后打开看了下,发现是有人在提问:Between utf8_general_ci and utf8_unicode_ci, are there any differences in terms of performance?

然后有一个554个赞的评论,这样写:

There are at least two important differences:

  • Accuracy of sorting

    utf8_unicode_ci is based on the Unicode standard for sorting, and sorts accurately in a very wide range of languages.

    utf8_general_ci comes close to correct Unicode sorting in many common languages, but has a number of limitations: in some languages, it won't sort correctly at all. In others, it will merely have some quirks.

  • Performance

    utf8_general_ci is faster at comparisons and sorting, because it takes a bunch of performance-related shortcuts.

    utf8_unicode_ci uses a much more complex comparison algorithm which aims for correct sorting according in a very wide range of languages. This makes it slower to sort and compare large numbers of fields.

Unicode defines complex sets of rules for how characters should be sorted. These rules need to take into account language-specific conventions; not everybody sorts their characters in what we would call 'alphabetical order'.

  • As far as Latin (ie "European") languages go, there is not much difference between the Unicode sorting and the simplified utf8_general_ci sorting in MySQL, but there are still a few differences:

    For examples, the Unicode collation sorts "ß" like "ss", and "Œ" like "OE" as people using those characters would normally want, whereas utf8_general_ci sorts them as single characters (presumably like "s" and "e" respectively).

  • In non-latin languages, such as Asian languages or languages with different alphabets, there may be a lot more differences between Unicode sorting and the simplified utf8_general_ci sorting. The suitability of utf8_general_ci will depend heavily on the language used. For some languages, it'll be quite inadequate.

Some Unicode characters are defined as ignorable, which means they shouldn't count toward the sort order and the comparison should move on to the next character instead. utf8_unicode_ci handles these properly.

What should you use?

There is almost never any reason to use utf_general_ci anymore, as we have left behind the point where CPU speed is low enough that the performance difference would be important. Your database will almost certainly be limited by quite other bottlenecks than this nowadays. The difference in performance is only going to be measurable in extremely specialised situations, and if that's you, you'd already know about it. If you're experiencing slow sorting, in almost all cases it'll be an issue with your indexes/query plan. Changing your collation function should not be high on the list of things to troubleshoot.

When I originally wrote this answer (over 4 years ago) I said that if you wanted, you could use utf8_general_ci most of the time, and only use utf8_unicode_ci when sorting was going to be important enough to justify the performance cost. However, the performance cost is no longer really relevant (and it may not have been back then, either). It's more important to sort properly in whichever language your users are using.

One other thing I'll add is that even if you know your application only supports the English language, it may still need to deal with people's names, which can often contain characters used in other languages in which it is just as important to sort correctly. Using the Unicode rules for everything helps add peace of mind that the very smart Unicode people have worked very hard to make sorting work properly.

还有一些代码,不过我就不贴了,建议查看原网页,别说没地址。。

IOS下移除按钮原生样式 -webkit-appearance

如果你在ios的Safari下做过网页的预览你就会发现,它的button的效果是与你设计的完全不一样的,圆圆的效果,也不象PC上是方的,这是怎么回事?

原来,IOS环境下的按钮都是经过美化的,但通常我们在设计web app的时候不需要这些看上去老土的样式,所以,去除这些显得很有必要。

下面这句代码就是重置这些样式的:

-webkit-appearance: none;

因此,实际的代码就类似如下:

input[type=button]{
-webkit-appearance:none;
outline:none
}

可以试一下看看效果

8287dd976c9ee7ac10a6a41e4d251d27

又一个不错的UI皮肤

又一个不错的UI皮肤

平时的工作中,除了bootstrap,其实还是有一些其他的皮肤是可以尝试的,比如这个“http://semantic-ui.com/”,你就可以看到与bootstrap等不同的效果。

semantic-ui准备了一些常用的小效果,而且自带了一些小皮肤,比如github的效果,比如bootstrap,twitter的小效果,你在使用中会发现它的好的

不多介绍,直接去官网看吧。如果你偷懒,就用这个链接下载吧:https://github.com/Semantic-Org/Semantic-UI/archive/1.10.2.zip

官网:http://semantic-ui.com/

github: https://github.com/semantic-org/semantic-ui/

Happy new year

Happy new year

羊年快乐。喜气羊羊,羊羊得意!

祝能看到我勃客的人在羊年里少出BUG,多出产品。皆大欢喜!
我自己的目标和愿望就不列出来了。也期望自己能够实现新年的愿望
yiisoft/yii2 2.0.2 requires bower-asset/jquery 2.1.*@stable | 1.11.*@stable -> no matching package found

yiisoft/yii2 2.0.2 requires bower-asset/jquery 2.1.*@stable | 1.11.*@stable -> no matching package found

在composer update项目的时候,报了如标题一样的错误,当然这个错误 有一大堆

composer update
Loading composer repositories with package information
Updating dependencies (including require-dev)
Your requirements could not be resolved to an installable set of packages.

Problem 1
- The requested package bower-asset/jquery could not be found in any version, there may be a typo in the package name.
Problem 2
- Installation request for yiisoft/yii2 dev-master -> satisfiable by yiisoft/yii2[dev-master].
- yiisoft/yii2 dev-master requires bower-asset/jquery 2.1.*@stable | 1.11.*@stable -> no matching package found.
Problem 3
- yiisoft/yii2 2.0.x-dev requires bower-asset/jquery 2.1.*@stable | 1.11.*@stable -> no matching package found.
- yiisoft/yii2 dev-master requires bower-asset/jquery 2.1.*@stable | 1.11.*@stable -> no matching package found.
- Removal request for yiisoft/yii2-imagine == 2.0.9999999.9999999-dev
- yiisoft/yii2-imagine 2.0.0 requires yiisoft/yii2 * -> satisfiable by yiisoft/yii2[dev-master, 2.0.x-dev].
- yiisoft/yii2-imagine 2.0.0-rc requires yiisoft/yii2 * -> satisfiable by yiisoft/yii2[dev-master, 2.0.x-dev].
- yiisoft/yii2-imagine 2.0.1 requires yiisoft/yii2 * -> satisfiable by yiisoft/yii2[dev-master, 2.0.x-dev].
- yiisoft/yii2-imagine 2.0.2 requires yiisoft/yii2 * -> satisfiable by yiisoft/yii2[dev-master, 2.0.x-dev].
- Removal request for yiisoft/yii2-imagine == 9999999-dev
- Installation request for yiisoft/yii2-imagine * -> satisfiable by yiisoft/yii2-imagine[2.0.0, 2.0.0-rc, 2.0.1, 2.0.2, 2.0.x-dev, dev-master].

Potential causes:
- A typo in the package name
- The package is not available in a stable-enough version according to your minimum-stability setting
see <https://groups.google.com/d/topic/composer-dev/_g3ASeIFlrc/discussion> for more details.

Read <http://getcomposer.org/doc/articles/troubleshooting.md> for further common problems.
看上去好纠结,但其实官方有过提示,通过查看:http://www.yiiframework.com/doc-2.0/guide-start-installation.html#installing-via-composer,可知,只要运行:
composer global require "fxp/composer-asset-plugin:1.0.0"
问题解决。
composer update
Loading composer repositories with package information
Updating dependencies (including require-dev)
Reading bower.json of bower-asset/jquery.inputmask (3.1.47)
Could not fetch https://api.github.com/repos/RobinHerbots/jquery.inputmask/contents/bower.json?ref=9ff37e85bc2fa2350475c4a7fa60aa20cd211481, enter your GitHub credentials to go over the API rate limit
The credentials will be swapped for an OAuth token stored in /Users/*******/.composer/auth.json, your password will not be stored
To revoke access to this token you can visit https://github.com/settings/applications
Username:********
Password:********
Token successfully created
Reading bower.json of bower-asset/jquery.inputmask (3.1.44)
。。。。。。。此处省略500字

Cannot find OpenSSL's <evp.h>

在使用苹果的brew install homebrew/php/php55的时候提示 Cannot find OpenSSL's <evp.h>,官方建议查看https://github.com/homebrew/homebrew-php/issues,看一下,第二条就是。

在内容里有人回复,加个参数 吧。。brew install phpxx --with-brewed-openssl,但不幸的是,仍然报上述错误,这时候有人回复了一下,你先装个commandtools吧

@Anei Wasn't sure which one, but I think this one did the trick:

Yep, installing the Command Line tools directly from Apple did the trick:
"Command Line Tools (OS X 10.10) for Xcode - Xcode 6.1.1" (169.94 MB)

I didn't think that was a solution as I had went into the App Store update and I was "up to date" with the command line tools. Thanks / feel free to close.

点击下载、安装。再brew install,一切顺利解决!

d81105d9b2c2c8d968902b1b2422cc7e

添加“捐赠本站”按钮

添加“捐赠本站”按钮

在闲逛的时候,突然看到一篇文章,标题是:支付宝即时到账捐赠按钮,原来,自从支付宝取消了那个捐赠页面后,很多人都在想办法,果然有人提出来了,只要一个FORM就能解决。

<form action="https://shenghuo.alipay.com/send/payment/fill.htm" method="POST" target="_blank" accept-charset="GBK">
<input name="optEmail" type="hidden" value="你的支付宝账号" />
<input name="payAmount" type="hidden" value="默认的捐赠金额" />
<input id="title" name="title" type="hidden" value="默认显示的付款说明" />
<input name="memo" type="hidden" value="备注" />
<input name="pay" type="image" value="转账" src="https://img.alipay.com/sys/personalprod/style/mc/btn-index.png" />
</form>
原文地址在上面哦。而且原文上面还有一些比较适合的图片,于是乎。。。我也加上了这段代码。黑黑