/**
* Using {@link AppleExercise.Problem1.SampleCache} as a starting point,
answer questions 1-3 by
* creating 3 new inner classes within {@link AppleExercise.Problem1}
below.
*/
public static class Problem1 {
public interface Cache {
public void put(Object key, Object value);
public Object get(Object key);
}
public static class SampleCache implements Cache {
private Map map;
public SampleCache() {
... 阅读全帖
攒了个段子请大牛点评一下:
// Not thread-safe
// Talk about validation requirement: none vs in next() vs in constructor
private static class DeepIterator implements Iterator {
private final Iterator
我也被问过这个问题,当时没写好,现在再写一个:
public class DeepIterator {
private Stack stack;
public DeepIterator(List list) {
stack = new Stack();
stack.push(list);
advanceToNext();
}
public boolean hasNext() {
return !stack.isEmpty();
}
public int next() {
if (!hasNext())
throw new RuntimeException("no next");
int result = (Integer) stack.pop();
advanceToNext();
攒了个段子请大牛点评一下:
// Not thread-safe
// Talk about validation requirement: none vs in next() vs in constructor
private static class DeepIterator implements Iterator {
private final Iterator myIterator;
private final Class eleType;
private final Iterator empty = new ArrayList().iterator();
我也被问过这个问题,当时没写好,现在再写一个:
public class DeepIterator {
private Stack stack;
public DeepIterator(List list) {
stack = new Stack();
stack.push(list);
advanceToNext();
}
public boolean hasNext() {
return !stack.isEmpty();
}
public int next() {
if (!hasNext())
throw new RuntimeException("no next");
int result = (Integer) stack.pop();
advanceToNext();
这样可以吗?好像就是直接的DFS了。
public int getSum(List list)
{
return dfs(list, 1);
}
@SuppressWarnings("unchecked")
public int dfs(List list, int level)
{
if ( list == null ) return 0;
int sum = 0;
for ( Object obj : list )
{
if ( obj instanceof Integer )
{
sum += ((Integer) obj) * level;
}
else if ( obj instanceof List)
{
sum += dfs(((List) obj), level + 1);
}
}
I am compiling C# (designed by others) on Visual Studio 2013.
But, in one of the projects, it has two key files that are password
protected.
The compiling (for debug) cannot be done because the key file cannot be
imported.
In the project property, I unchecked the "Sign the assembly" and then
deleted the two key files.
But, it still cannot be compiled because of the error of "cannot import the
key files" .
Any help would be appreciated.
Thanks !
昨天做的Inspection,晚上收到报告。第一次做买房inspection,对报告里的各种问题
的严重程度和花费都没经验,昨晚在网上搜了一些相关资料,但还是有很多拿不准的,
想请教版上的xdjms给看看,(知道不可能让卖家全部或者大部分cover,)怎么选择要
修的跟卖家谈。这个报告里问题还不少: ( 房子是90年代的。
****************************************************************************
*********
Major:
1. Trim/Overhang Cladding: Wood rot noted on trim. We are unable to
investigate if the damage is more than surface damage. Recommend a qualified
carpenter evaluate the cause and correct as needed.
2. Vent/Exhaust Condition: Water Heater- Exhau... 阅读全帖
contact ing telling them that you are not subject to federal irs withholding
next time when you open account, don't choose that option, default is
unchecked, but you choose it by yourself
Debit transactions may be processed via the STAR, Pulse, ACCEL, or NYCE
networks. Please uncheck this checkbox if you do not want your transaction
processed via the STAR, Pulse, ACCEL, or NYCE networks so your transaction
can be routed through the Visa or MasterCard network, as appropriate.
通过STAR, Pulse, ACCEL, or NYCE会被收费吗? 或是通过visa, mastercard会被收费?
我就是张里面放了点钱的debit卡, 是不是只能通过前面那种? 谢谢.
在rewards checking拿high interest的童鞋们,现在amazon上买小额gc又可以算做non
-pin based purchase了,不用再为每月做不了刷十几甚至几十笔debit card的任务而
发愁了。
方法如下:
Opt Out of PIN-less Debit
You can opt out of PIN-less Debit on Amazon.com.
To opt out of PIN-less Debit:
Go to Your Account.
Click Manage Payment Options under Payment Methods.
Click Edit for the payment method that you would like to change.
Uncheck the box that is next to Processed as a debit card.
Click Confirm at the bottom of the page. http://www.amaz... 阅读全帖
那頁面這個選項怎樣弄, check還是uncheck
Yes, my credit history is clear of bankruptcies or seriously delinquent
accounts and I have not been denied credit by Chase within the last 6 months.
好像amz改版了以后没法选择了。
你说的是这个是吧?
Opt Out of PIN-less Debit
You can opt out of PIN-less Debit on Amazon.com.
To opt out of PIN-less Debit:
Go to Your Account.
Under Payment Methods, select Manage Payment Options.
Next to the payment method you would like to change, select the down
arrow.
Select Edit.
Uncheck the box that is next to Processed as a debit card.
SelectSave.
get one first, then save it as a payment method in your target online
account
often times I go to target mobile site in browser using android phone,
uncheck the box before the default payment method which is the red card,
check the box for target gift card
on a computer, you need to choose the red card and go all the way to the
last page, then click a link that says "pay with a target giftcard"
you should be able to pay 100% using your target GC and still get 5% off
【 以下文字转载自 Donation 讨论区 】
发信人: kewen (乡下妞), 信区: Donation
标 题: Your $10 donation will be matched Oct 10-20
发信站: BBS 未名空间站 (Sun Oct 10 22:17:43 2010, 美东)
Hi everyone,
JustGive.org is running a 10 anniversary year program. They will match $10
gift when you donate to your favorite charity (at least $10). Please take
this opportunity to help your charity to collect some extra donations!!!
Here is how you could do:
1.Go to
www.justgive.org/10years
2.Search your favorite charity.
For example, you type... 阅读全帖
http://blogs.greatschools.org/greatschoolsblog/2010/10/bullying-that-ends-in-suicide.html
October 14, 2010
Jon Carmichael, age 13
Hope Witsell, age 13
Justin Aaberg, age 15
Asher Brown, age 13
Seth Walsh, age 13
Phoebe Prince, age 15
Billy Lucas, age 15
All of these children — from places like Houston; Tehachapi, Calif.; and
Rushkin, Fla. — killed themselves this year. Each was a victim of bullying,
or what is now called “bullicide.” Many of these teens were also victims
of anti-gay hate crimes.... 阅读全帖
I started to get worried about discrimination of Chinese children in school.
My 6 year old felt terrible when bullies in school and summer camp started
to use derogatory terms to call him because he is a Chinese. Do your
children have the same problem?
I think this is a very hard problem to address. Individually I try to talk
about the Chinese heritage to my son and help son develop a stronger sense
of belonging. At the same time, we need to change the overall culture that
is hostile to us.
I us... 阅读全帖
You can print out 4 coupons on one page.
Choose 3.5 X 5, unchecked "Fit picture to frame", then input 4 for Copies of
each picture.
You can see now it shows 4 coupons on one page.
Cut them apart. This is a really good size to use in the store.
No beeping.
* Dell Home has Dell Mini 10v 10" Netbook for $229 with free shipping
* It features:
o Intel Atom N270 1.6GHz / 10.1" LED Screen
1G DDR2 RAM / 160 Hard Drive
Webcam /XP Home/ 3 cell battery
* How:
o Click here to start
o Uncheck Bluetooth 2.1 module with EDR [$20]
o Add to cart and free shipping http://configure.us.dell.com/dellstore/config.aspx?c=us&cs=19&l=en&s=dhs&kc=&oc=dnpdfy1
* Lenovo CPP has ThinkPad X200 12.1" Core 2 Duo Laptop for $708 with free shipping
* It features:
o Intel Core 2 Duo Processor P8600 2.4GHz / 12.1" LED
4GB DDR2 RAM / 250GB Hard Drive
Webcam / Windows 7 / 9 Cell
* How to get it ?
o Go to Lenovo CPP
o Sign in with password familyandfriends
o Then click here to see X200 (Deal of Week Version $849 one )
o [-$170 ]Uncheck ThinkPad X200 UltraBase
o [+$2
http://slickdeals.net/forums/showthread.php?t=1915694
thinkpad t510 还是太贵,看来板上都是有钱人
Dell has a good deal on a Studio 15 laptop. As configured, price is $548 and
$13 shipping. Thank you tara_k
Be sure to uncheck Dell 90 Watt 3 Prong AC Adapter with 3-ft Power Cord and
select Monster cable outlets (-$49)
Specs:
Intel Core i3-330M 2.13GHz (3M cache)
4GB Shared Dual Channel DDR3 at 1066MHz
500GB SATA Hard Drive (7200RPM)
15.6” High Definition (720p) LED Display with TrueLife and Camera
8X Slot Load C
多谢
查了一下,网上有人说是这样:
Click on Start
Click Run and type msconfig
Enter
On the window that opens click the tab that is labeled startup
Look for an entry for Lenovo Veriface and uncheck it
Reboot PC
After you log in a window will pop up saying something about configuration,
just check the box and close.
All done, to restore it just go back and recheck the box.
不过又有人说这样也没用,呵呵,似乎uninstall是终极选择
回去试试再说
Lenovo Thinkpad X201 Ultraportable: Core i5-560M 2.66GHz, 4GB DDR3, 320GB HD
, 12.1" WXGA (1280x800) LCD w/ Camera
SPP
# If you do not have an account yet, create one, or log in
# Click on notebooks, thinkpads, x-series, web special, and select "ThinkPad
X201 laptop - Web Special w/ Ultrabase"
# Uncheck ThinkPad X200 UltraBase - $170
# Click "continue" until you see "Add to cart"
# Enter code USET410SX1012 to bring price down to $785 (using cheapest
upgrade option)
感谢建议.
app 默认是自动载入当前论坛(如Hot Deals)的前两页(不只是第一页)。当初这样设计
的原因是我在个人使用中发现,真正去抓deal,只看Hot deals论坛的前两页即可,不
会超过两页,查找其他的帖子都是用搜索功能。
当然添加这个功能很容易,我考虑添加一下。
点击post进去后,自动载入 slickdeals 当前post的mobile页面,我个人感觉翻页还是
很容易的啊。
1.1 会添加的功能包括:
+ Slicks List added. All "SD" deals will be automatically added in this
table view to be easily found for the user. New "SD" deals will be shown in
blue color.
+ "Reset Slick List" button added in the setting page.
+ Home screen will show number of current unchecked SD deals.
* Fix sev... 阅读全帖