由买买提看人间百态

topics

全部话题 - 话题: uuid
1 2 3 4 5 下页 末页 (共5页)
w**z
发帖数: 8232
1
来自主题: JobHunting版 - twitter ID 怎么变成 uuid?
convert long to byte array, then construct UUID from the byte array?
From Java Source code:
/**
* Static factory to retrieve a type 3 (name based) [email protected]/* */ UUID} based
on
* the specified byte array.
*
* @param name
* A byte array to be used to construct a [email protected]/* */ UUID}
*
* @return A [email protected]/* */ UUID} generated from the specified array
*/
public static UUID nameUUIDFromBytes(byte[] name) {
... 阅读全帖
b**********5
发帖数: 7881
2
来自主题: JobHunting版 - twitter ID 怎么变成 uuid?
yes, i know. but i still want to convert that twitter ID to a uuid.
actually, there are various version of uuid, time based, name based, random.
twitter gives u the time based unique ID, the first 53 bits or so defines
the time lapsed. But let's say we have a cassandra schema table whose
primary key is uuid (or timeuuid). how can I convert the twitter ID to that
cassandra uuid?
w**z
发帖数: 8232
3
来自主题: JobHunting版 - twitter ID 怎么变成 uuid?
why do you want to do that?
UUID is an auto generated ID, mostly based on time
http://docs.datastax.com/en/drivers/java/2.0/com/datastax/driver/core/utils
/UUIDs.html
If the ID from twitter is unique and random, use that as partition key
s*****r
发帖数: 43070
4
来自主题: Military版 - 上次苹果给FBI泄露UUID事件
UUID能干啥
b**********5
发帖数: 7881
5
来自主题: JobHunting版 - twitter ID 怎么变成 uuid?
twitter streaming api, status json里的ID 是
64 bit long。 我现在要换成cassandra里的 uuid, 怎么convert?
h*w
发帖数: 1182
6
抛砖引玉,pogoplug上面可以装很多东西。
本人新手,这个安装说明算是一个备份吧,如果要重新安装可以看看,也可以给新新手
参考。也请高手指点。
为什么没有装arch或者debian是因为看到有人说pogoplug自带的ntfs驱动比ntfs-3g性
能好,就想用原系统加装optware来安装samba共享。而且如果还想用my.pogoplug.com
也可以直接用。还没有实验过到底是自带的ntfs驱动快还是ntfs-3g快,就当瞎折腾了
,呵呵。
本说明基于POGO-E02,不保证在其他版本的pogoplug上也工作。对于使用本安装说明引
起的任何损失概不负责。
------------------------------
1. Find your Pogoplug ip address in your router.
2. Log into your Pogoplug online account that you created during the initial
setup of the POGO. Go into the advanced tab / Security.... 阅读全帖
h*w
发帖数: 1182
7
抛砖引玉,pogoplug上面可以装很多东西。
本人新手,这个安装说明算是一个备份吧,如果要重新安装可以看看,也可以给新新手
参考。也请高手指点。
为什么没有装arch或者debian是因为看到有人说pogoplug自带的ntfs驱动比ntfs-3g性
能好,就想用原系统加装optware来安装samba共享。而且如果还想用my.pogoplug.com
也可以直接用。还没有实验过到底是自带的ntfs驱动快还是ntfs-3g快,就当瞎折腾了
,呵呵。这个主要是给家里只有windowns电脑的用,要是有linux的机器,还是用ext3或
ext4最快。
本说明基于POGO-E02,不保证在其他版本的pogoplug上也工作。对于使用本安装说明引
起的任何损失概不负责。
------------------------------
1. Find your Pogoplug ip address in your router.
2. Log into your Pogoplug online account that you created during the initial
setup... 阅读全帖
b**********5
发帖数: 7881
8
class Product {
uuid
List pictures;
List merchants;
// and a list of other meta data for this product, probably like
category...
}
each product will have a uuid as prime key. list of pictures, specified by
picture's uuid. list of merchants, specified by merchant's uuid
一个product page上, 其实会有很多API。 拿到了product class后, 通过picture
的uuid, 去call getThumbnail(pictureuuid)... 通过merchant id和product id,
可以link到某个merchant selling that product的product page
suggest product其... 阅读全帖
b******e
发帖数: 432
9
# For this function, I think the original one is semantically wrong.
# Based on the description, I think it always needs to print to STDERR.
# However, when the option is not STDERR, it needs to print to STDOUT as
well.
#
# Besides, I may improve it by add some the restrict to input or add more
match pattern to the option, Ex:
# 1. I may trim the $option before compare.
# 1. The input option might be 'stderr', I may modify it to .
# 2. There might no input option, or no input message.
s... 阅读全帖
b******e
发帖数: 432
10
# For this function, I think the original one is semantically wrong.
# Based on the description, I think it always needs to print to STDERR.
# However, when the option is not STDERR, it needs to print to STDOUT as
well.
#
# Besides, I may improve it by add some the restrict to input or add more
match pattern to the option, Ex:
# 1. I may trim the $option before compare.
# 1. The input option might be 'stderr', I may modify it to .
# 2. There might no input option, or no input message.
s... 阅读全帖
b******e
发帖数: 432
11
# For this function, I think the original one is semantically wrong.
# Based on the description, I think it always needs to print to
STDERR.
# However, when the option is not STDERR, it needs to print to STDOUT
as well.
#
# Besides, I may improve it by add some the restrict to input or add
more match pattern to the option, Ex:
# 1. I may trim the $option before compare.
# 1. The input option might be 'stderr', I may modify it to .
# 2. There might no input option, or no input message.
sub my_wri... 阅读全帖
S*********3
发帖数: 145
12
1.大家都用什么软件验机啊? 下面是我用一个EVEREST Ultimate Edition验的,发现好
像不是ips屏啊(我订的是ips的),
Display:
Video Adapter Intel(R) HD Graphics Family (
794232 KB)
Video Adapter Intel(R) HD Graphics Family (
794232 KB)
Monitor Wide viewing angle & High density FlexView Display 1366x768
[NoDB]
2. 用这个软件验的主板序列号(UUID号)如下:
DMI System UUID 813E248D-9951CB11-xxxxxxxx-
xxxxxxxx
但机箱上的UUID号是8D243E81-5199-11CB-xxxx-xxxx-xxxxxxxx后面x表示的数字都是对
的... 阅读全帖
l*****8
发帖数: 16949
13
下面这个hello world的20天能学会吗?
[
uuid(2573F8F4-CFEE-101A-9A9F-00AA00342820)
]
library LHello
{
// bring in the master library
importlib("actimp.tlb");
importlib("actexp.tlb");
// bring in my interfaces
#include "pshlo.idl"
[
uuid(2573F8F5-CFEE-101A-9A9F-00AA00342820)
]
cotype THello
{
interface IHello;
interface IPersistFile;
};
};
[
exe,
uuid(2573F890-CFEE-101A-9A9F-00AA00342820)
]
module CHelloLib
{
// some code related header files
importheader();
importheader();
importheader(阅读全帖
D*****r
发帖数: 6791
14
来自主题: Joke版 - Evolution of a programmer
http://www.ariel.com.au/jokes/The_Evolution_of_a_Programmer.html
High School/Jr.High
10 PRINT "HELLO WORLD"
20 END
First year in College
program Hello(input, output)
begin
writeln('Hello World')
end.
Senior year in College
(defun hello
(print
(cons 'Hello (list 'World))))
New professional
#include
void main(void)
{
char *message[] = {"Hello ", "World"};
int i;
for(i = 0; i < 2; ++i)
printf("%s", message[i]);
printf("\n");
}
... 阅读全帖
j***o
发帖数: 2842
15
对于高手不算什么
对于入门选手可能好几天也不得要领
如果你想mount第二快硬盘,
1. 先具有root权限,执行
root@debian:/home/username# blkid
/dev/sda6: UUID="14e2ad8c-9017-42ef-a0de-c68113dbb4a4" TYPE="swap"
/dev/sda1: UUID="289070B09070865A" TYPE="ntfs"
/dev/sda5: UUID="f71615d5-de0c-4982-a164-2a8f28d79897" TYPE="ext4"
/dev/sdc1: LABEL="Kindle" UUID="521A-433A" TYPE="vfat"
/dev/sdb1: LABEL="ss250" UUID="343CB9C3139BEC27" TYPE="ntfs"
这个/dev/sdb1就是你想要弄的ntfs分区
2. 建立mount点,我这里用/disk2
3. 修改权限
chmod 755 /disk2
4. 在/etc/fstab文件加入下面一行
UUID="343CB9C31... 阅读全帖
l*******s
发帖数: 7316
16
来自主题: CellularPlan版 - OpenWrt挂USB盘求教
还是不行。换个USB flash drive 就能自动加载
[email protected]/* */:~# lsusb
Bus 002 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 003 Device 003: ID 0951:1666 Kingston Technology
Bus 003 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub
Bus 001 Device 003: ID 19d2:1405 ZTE WCDMA Technologies MSM
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
[email protected]/* */:~# block info
/dev/ubiblock0_0: UUID="e26f959d-e61eb1de-8777fbc8-fd506deb" VERSION="1024.0
" TYPE="sq... 阅读全帖
b*********n
发帖数: 1258
17
来自主题: JobHunting版 - 下面这道uber电面,怎么做?
写了200多行,2个小时,这电面肯定要跪
大牛有什么好的算法吗?
题目就是flatten json to a list of map, 有一段json,比如说如下:
{
"uuid": "abc",
"properties": {
"sessionName": "Test session name",
"waypoints": [
{"uuid": "def", "properties": {"latitude": 3}}
]
}
}
把它转化成List>, map里面uuid是key, properties是value。
所以结果应该像下面
[
{"uuid": "abc", "properties": {"sessionName": "Test session name", "
waypoints": ["def"]}},
{"uuid": "def", "properties": {"latitude": 3}},
...
]
x*******9
发帖数: 138
18
来自主题: JobHunting版 - 下面这道uber电面,怎么做?
在list上被坑了一次。这题用Python可以秒。
import json
class Solution(object):
def __init__(self):
self.map_list = []
def flatten_json(self, json_str):
d = json.loads(json_str)
self.do_flatten_json(d)
return '\n'.join(map(str, self.map_list))
def do_flatten_json(self, d):
if isinstance(d, list):
map(self.do_flatten_json, d)
return

if not isinstance(d, dict):
return
if 'uuid' in d and 'properties' i... 阅读全帖
a*******e
发帖数: 3021
19
来自主题: Linux版 - fedora 11 boot problem
after i installed fedora 11, the 1st time it can boot and i installed some
programs.
Then i rebooted it, it shows "maks.ext3 can't resolve UUID=..............."
error and drops me into a repair shell.
I googled and found a workaround which is in fstab replace UUID=*** by /dev/
sda***, as shown below,
#
#UUID=247bf747-8fbb-40c7-8b92-ecb212ec1993 / ext3
defaults 1 1
#UUID=7fde7b7c-c33a-4e5d-abe4-c08eb3ac7f15 /home ext3
defaults 1 2
#UUID=
P**C
发帖数: 45
20
来自主题: Linux版 - 请问这个系统怎么两个swap
fstab中显示有两个swap,怎么回事?
还有就是\是挂载在md0上,可是fdisk现实Disk /dev/md0 doesn't contain a valid
partition table,奇怪?
难道系统所有文件都在md0,sda和sdb其他几个分区都没有怎么用?
# /etc/fstab: static file system information.
#
# Use 'blkid -o value -s UUID' to print the universally unique identifier
# for a device; this may be used with UUID= as a more robust way to name
# devices that works even if disks are added and removed. See fstab(5).
#
#
proc /proc ... 阅读全帖
l*******s
发帖数: 7316
21
来自主题: CellularPlan版 - OpenWrt挂USB盘求教
[email protected]/* */:~# block info
/dev/ubiblock0_0: UUID="e26f959d-e61eb1de-8777fbc8-fd506deb" VERSION="1024.0
" TYPE="squashfs"
/dev/ubi0_0: UUID="e26f959d-e61eb1de-8777fbc8-fd506deb" VERSION="1024.0"
TYPE="squashfs"
/dev/ubi0_1: UUID="be26bfcd-c7e4-4815-90e4-7a5d187fac1c" VERSION="w4r0" TYPE
="ubifs"
/dev/ubi1_0: UUID="8a100db4-6551-4eaf-9c74-82a23caad46e" VERSION="w4r0" TYPE
="ubifs"
/dev/ubiblock0_0: UUID="e26f959d-e61eb1de-8777fbc8-fd506deb" VERSION="1024.0
" TYPE="squashfs"
[email... 阅读全帖
l*******s
发帖数: 7316
22
来自主题: CellularPlan版 - OpenWrt挂USB盘求教
换回My Passport就变成这样了
[email protected]/* */:~# lsusb
Bus 002 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 003 Device 004: ID 1058:0748 Western Digital Technologies, Inc. My
Passport 1TB USB 3.0
Bus 003 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub
Bus 001 Device 003: ID 19d2:1405 ZTE WCDMA Technologies MSM
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
[email protected]/* */:~# block info
/dev/ubiblock0_0: UUID="e26f959d-e61eb1de-8777fbc8-fd506de... 阅读全帖
b******e
发帖数: 432
23
希望有PERL经验的同学指点一下,多谢啦!
There are errors in the following code, both in logic
and in syntax. Find the errors and provide the correct
fixes.
# this function prints something to stdout, unless
# the option parameter is set to STDERR, and then it
# prints out to stderr
sub writeOut
{
my $message = shift;
my $option = shift; #optional
if( $option eq 'STDERR' )
{
print STDERR $message . "\n";
}
else
{
print $message . "\n";
}
}
# this function gets the system UUID, wit... 阅读全帖
g**********t
发帖数: 475
24
# this function prints something to stdout, unless
# the option parameter is set to STDERR, and then it
# prints out to stderr
sub writeOut
{
my $message = shift;
my $option = shift; #optional
if( $option ne 'STDERR' )
{
print $message . "\n";
}
print STDERR $message . "\n";
}
# this function gets the system UUID, with or without
# dashes depending on the option
sub getUUID
{
my $option = shift; #optional
my $uuid = "8f5de6fd-5f97-4b27-be35-861c3bbbb1f1";
if( $... 阅读全帖
l*******G
发帖数: 1191
25
来自主题: Linux版 - WPS linux beta1出来了
也许跟我用的macbuntu theme 有和旧版(maverick)有关,jetty 过不去,进不了登
录界面了。 我的RPM i686用不了,同样卡在libgdk-pixbuf2.0-0上。 这个WPS要32位
的libgdk-pixbuf,而我的开机程序需要64位的libgdk-pixbuf, 悲剧是不知到哪个开机
程序需要用libgdk-pixbuf, 也没法进命令行disable 卡住的程序。 幸好我事先用dd备
份了系统盘,用usb linux启动,再花几个小时dd回去,然后就不折腾了。dd是个技术
活。它连硬盘的UUID也复制了,dd完了,如果备份盘不拿掉,系统上有两个硬盘用的是
同样
的UUID, 如果/etc/fstab 里的mount 是用的uuid, 启动了你也不知道它用的是哪个
所以dd回去后还要修改其中一个硬盘的 uuid, 和你想要的启动盘的/etc/fstab 保证机
器用
的是正确的硬盘。
b******e
发帖数: 432
26
是道测试题了,周五早上之前给出答案才有效。
希望有PERL经验的同学指点一下,多谢啦!
There are errors in the following code, both in logic
and in syntax. Find the errors and provide the correct
fixes.
# this function prints something to stdout, unless
# the option parameter is set to STDERR, and then it
# prints out to stderr
sub writeOut
{
my $message = shift;
my $option = shift; #optional
if( $option eq 'STDERR' )
{
print STDERR $message . "\n";
}
else
{
print $message . "\n";
}
}
# this function get... 阅读全帖
d****n
发帖数: 1637
27
generate uuid in cookie if not exists
https://github.com/broofa/node-uuid
uuid will be bound with cookie and in your request object.
bind some information for each uuid then you will know what the page state
is.

sample.
b******e
发帖数: 432
28
是道测试题了,周五早上之前给出答案才有效。
希望有PERL经验的同学指点一下,多谢啦!
There are errors in the following code, both in logic
and in syntax. Find the errors and provide the correct
fixes.
# this function prints something to stdout, unless
# the option parameter is set to STDERR, and then it
# prints out to stderr
sub writeOut
{
my $message = shift;
my $option = shift; #optional
if( $option eq 'STDERR' )
{
print STDERR $message . "\n";
}
else
{
print $message . "\n";
}
}
# this function get... 阅读全帖
l*******n
发帖数: 1972
i*o
发帖数: 149
30
来自主题: JobHunting版 - 这几个G家的design题怎么做?
3. Collect enough entropy from system and then derive UUID (universal unique
ID) from it.
In theory, uniqueness is not guaranteed, but in practice, it is expected and
assumed to be so.
This is how UUID is created when you format your disk and how VMware assigns
virtual MAC address.
Google UUID for more reference.
g*****g
发帖数: 34805
31
如果你不懂得C*怎么存数据的,想象一下这相当于一个hash后面带了一整个bucket,自
然不会冲突。你把UUID值存在这里,再建个UUID->url的索引就行了。把UUID拿出来做
Shorten URL。
建立新URL查第一个表,访问shorten URL查第二个表。
一个HashMap是个人都懂,差别在于C*这样的数据库能提供分布式存取。
d*****e
发帖数: 491
32
来自主题: Linux版 - 问一个GRUB的问题
这是我Mandriva装的GRUB里面的
title linux
kernel (hd0,9)/boot/vmlinuz BOOT_IMAGE=linux root=UUID=f9a2213e-1729-4376-
b54c-d5512e7a1c42 splash=silent vga=788
initrd (hd0,9)/boot/initrd.img
title linux-nonfb
kernel (hd0,9)/boot/vmlinuz BOOT_IMAGE=linux-nonfb root=UUID=f9a2213e-1729-
4376-b54c-d5512e7a1c42
initrd (hd0,9)/boot/initrd.img
title desktop586 2.6.29.1-4mnb
kernel (hd0,9)/boot/vmlinuz-2.6.29.1-desktop586-4mnb BOOT_IMAGE=desktop586_2
.6.29.1-4mnb root=UUID=f9a2213e-1729-4376-b54c-d5512e7a1c42 splas
h***r
发帖数: 726
33
来自主题: Linux版 - linux克隆搞不定

由于有两套/boot/grub/menu.lst, (hd0,0) 有如下typo
title Ubuntu 8.10, kernel 2.6.27-14-generic
uuid
kernel /boot/vmlinuz-2.6.27-14-generic
root=UUID= ro quiet splash
initrd /boot/initrd.img-2.6.27-14-generic
把old改成new就可以了. (测试通过)
另外run grub, root (hd0,0) setup (hd0) 或者
root (hd0,3) setup (hd0) 可以指定使用哪个分区的menu.lst
a*******e
发帖数: 3021
34
来自主题: Linux版 - fedora 11 boot problem
actually they are the same. so why i have the problem?
when I was using f9, never had this problem... I thought maybe it was
because my hd is dying, but i removed that dying hd and reinstalled on a new
sata hd, still have this problem.... that's why i said f11 sucks... or f11
64 sucks...
sudo blkid:
blkid
/dev/sda1: UUID="247bf747-8fbb-40c7-8b92-ecb212ec1993" TYPE="ext3" SEC_TYPE=
"ext2"
/dev/sda2: UUID="6df19bdb-b5f0-44e5-890f-1dc89320dc07" TYPE="swap"
/dev/sda3: UUID="7fde7b7c-c33a-4e5d-abe4-c
x*********s
发帖数: 5554
35
来自主题: Linux版 - 问一个白痴安装问题
话说为了接光驱,把本来接/dev/sda装windows的硬盘拔了,接上光驱,安装centos,
拔掉光驱,接上装有windows的硬盘。
然后直接起动,进入一个只有centos信息的grub。如果改变启动磁盘顺序,还能进入一
个有以前windows+ubuntu信息的grub。
我想将两个grub合并,但总是失败,下面分别贴两个grub.cfg的信息和磁盘信息,看看
有没有大侠帮帮忙,看看怎么能把windows+ubuntu的grub信息写到centos的grub里面去:
###########################
sudo cat /boot/grub/grub.cfg
menuentry 'Ubuntu, with Linux 2.6.32-33-generic' --class ubuntu --class gnu-
linux --class gnu --class os {
recordfail
insmod ext2
set root='(hd1,1)'
search --no-floppy --... 阅读全帖
c******g
发帖数: 63
36
用的是VM player 5.02。一开始硬盘设置为20G, 现在想扩成30G。Power off后在
Utility菜单中已经将大小改为30G,按照网上一些资料的说明,剩余的步骤便是在
Ubuntu系统内部增加disk partition的大小。但似乎中间结果和网上写的有些不一样,
导致无法继续。具体过程如下:(assume所有命令都在sudo下)
$ fdisk /dev/sda 然后输p,显示:
Device Boot Start End Blocks Id System
/dev/sda1 * 2048 39845887 19921920 83 Linux
/dev/sda2 39847934 41940991 1046529 5 Extended
/dev/sda5 39847936 41940991 1046528 82 Linux swap / Solaris
输出n建一个新分区,显示:
Partition type:... 阅读全帖
c*****m
发帖数: 1160
37
是一个5年旧的C++项目,一年前被移到VC2010里面,在Debug模式下很正常,所以现在
release 出去都是debug版本。
但是选择到Release下面编译就出错,出错的信息是:
Error 1 error LNK2019: unresolved external symbol __strdate_s
referenced in function "int __cdecl _strdate_s<32>(char (&)[32])" (??$_
strdate_s@$0CA@@@YAHAAY0CA@D@Z) C:\src\DebugLog.obj Perf
等500个类似错误。
出错信息所指的是 _strdate_、_strtime_s、strcat_s、sprintf_s等链接失败。这些
都是标准库函数啊,有include time.ht, string等,编译都已经通过了的。
我已经比较了在Debu状态下和Release状态下的link的参数:
Debug下:
/OUT:"C:\src\Debug \Perf.dll" /INCREMENTAL ... 阅读全帖
b*******g
发帖数: 603
38
傻逼太监又出来丢人了。这是cassandra最常见的time series.
time based UUID 做key, key扔入一个index CF 排序。index CF本身又可以sharding
分多行。
写是commit log, 根本不锁,完全并发。读的时候先读index CF, 给个start time
UUID, end
time UUID, 一次读出一行里的这些 key, 读column本身可以并发,然后拿这些key去读
纪录也是并发的。虽然没有写快。但是作为 MQ, 本身就是缓冲,不需要实时。
100K/s 写峰值完全没有压力。本质上就是无锁写,compaction的时候才sort. 读出的
时候已经排好了。
b*******g
发帖数: 603
39
来自主题: Programming版 - 傻逼太监懂个屁C*
傻逼太监又出来丢人了。这是cassandra最常见的time series.
time based UUID 做key, key扔入一个index CF 排序。index CF本身又可以sharding
分多行。
写是commit log, 根本不锁,完全并发。读的时候先读index CF, 给个start time
UUID, end
time UUID, 一次读出一行里的这些 key, 读column本身可以并发,然后拿这些key去读
纪录也是并发的。虽然没有写快。但是作为 MQ, 本身就是缓冲,不需要实时。
100K/s 写峰值完全没有压力。本质上就是无锁写,compaction的时候才sort. 读出的
时候已经排好了。
g*****g
发帖数: 34805
40
time based UUID, it's a combination of timestamp, mac address and
synchronization on the same host.
A scheme is available here.
http://www.famkruithof.net/guid-uuid-timebased.html
l*******g
发帖数: 82
41
来自主题: JobHunting版 - 讨论一道狗家的设计题
你知道UUID这个么?如果id没有要求一定是number的话,uuid就可以达到scale。wiki
一下就行。

设计一个系统,每次请求返回一个唯一的id,要求对大部分的请求做到后面请求的id要
比前面的大,要平均每秒能处理10000个请求,而且请求来自全球。
p****6
发帖数: 724
42

能不能再讲讲UUID到底怎么实现? 给定一个tinyURL,当我还原成UUID的时候,如何
map回原始URL?
g*****g
发帖数: 34805
43
time based uuid有标准实现,可以狗。从 uuid到 url就是建一个索引就可以了。
g******n
发帖数: 10
44
事情的经过是这样的,4 月 1 号的时候我在 Zenefits 官网上投了简历,随后收到
online test 邀请,是 Zen Test 3,题目不简单,第一道是 Flip the Bits,第二道
是 Uneaten Leaves,我顺利做完了之后等消息,看网上说 online test 完直接 on-
site,不过后来 recruiter 还是给我安排了一轮电面,题目是 Check if a sequence
is a valid preorder traversal of a BST,用递归做就行了,思路类似 LeetCode 的
Validate Binary Search Tree,面完了之后心想这下可以安排 on-site 了吧,尼玛
结果又来一轮电面,题目是 Generate Unique Integer,要求 scalable,我一开始说
根据不同机器 ID 取模,面试官说不行,我又说用数据库存最近一次生成的 ID,然后
每次读出来加一返回给 client,再把结果写回数据库,但是这样就要给数据库加锁或
者用 transaction,性能太差,最后我说用 UUID... 阅读全帖

发帖数: 1
45
所以说这个系统烂透了。就是个UUID HashMap的事儿
让他们重新建立系统,每个人发个UUID,随便升降级。实时统计。
就移民局的工作效率整个系统QPS都不会超过10.
把合同包给版上码农,一个月出Demo。半年让他舒舒服服升级到新系统。
t*****s
发帖数: 3478
46
还有一个Vermilion snapper 看起来和red snapper更像是吧?不过这个Vermilion
snapper 是在北卡的相关网站上介绍的。
Red Snapper vs Vermilion Snapper
http://portal.ncdenr.org/image/image_gallery?uuid=0ac29275-95aa
Red Snapper
Lutjanus campechanus
AKA: mules, sow snapper, chickens
Description: Red snapper is a deep-bodied fish with a long, triangular snout
. It has a brick red back and upper sides, but the belly and lower sides are
more pinkish. Smaller fish (up to 10 inches) have a dark spot on the upper
sides just below the soft d... 阅读全帖
m*z
发帖数: 3102
47
Exposure 112
看来你都不知道长曝光是什么呢....
PS就是模模皮, 加加颜色.就这么多了
-------------------------
Camera Nikon D7000
Exposure 112
Aperture f/14.0
Focal Length 18 mm
ISO Speed 100
Exposure Bias +1/3 EV
Flash Off, Did not fire
Orientation Horizontal (normal)
X-Resolution 240 dpi
Y-Resolution 240 dpi
Software Adobe Photoshop CS5 Windows
Date and Time (Modified) 2011:10:29 21:11:04
Exposure Program Manual
Date and Time (Original) 2011:10:27 10:03:33
Date and Time (Digitized) 2011:10:27 10:03:33
Max Aperture Value 3.5
S... 阅读全帖
u******a
发帖数: 7843
48
以前用paragon, 现在换了新机想用下原生ntfs支持结果开不了。
用的这个办法,重启之后什么反应也没有。还是不能写。
sudo nano /etc/fstab
UUID=移动硬盘uuid none ntfs rw
b******r
发帖数: 1137

发帖数: 1
50
来自主题: Hardware版 - 海康威视的摄像头太烂了
谁叫自己上了嵌入式的贼船,工资低呢。。。C看多了,也不能刷题转码搞互联网
为什么摄像头领域不能有像开源openwrt一样的项目呢?
把海康的dmesg贴出来,大家可以参考,他们用安霸S3L,https://www.ambarella.com/
products/security-ip-cameras/security-ip-camera-products#S3L
[ 0.000000] Booting Linux on physical CPU 0x0
[ 0.000000] Linux version 3.10.73+ ([email protected]) (gcc version 5
.2.1 20151005 (Linaro GCC 5.2-2015.11-2) ) #1 PREEMPT Mon Jan 23 10:38:22
CST 2017
[ 0.000000] CPU: ARMv7 Processor [414fc091] revision 1 (ARMv7), cr=
10c53c7d
[ 0.000000] CPU: PIPT / ... 阅读全帖
1 2 3 4 5 下页 末页 (共5页)