由买买提看人间百态

topics

全部话题 - 话题: file
首页 上页 1 2 3 4 5 6 7 8 9 10 下页 末页 (共10页)
m*****x
发帖数: 114
1
用书上的例子upload file 总出错误(如下)
path: /Applications/XAMPP/xamppfiles/temp/phpc4Tkr0
name: CIMG0122.JPG
type: image/jpeg
size: 919798
Warning: move_uploaded_file(/uploads/CIMG0122.JPG) [function.move-uploaded-
file]: failed to open stream: No such file or directory in /Applications/
XAMPP/xamppfiles/htdocs/do_upload.php on line 11
Warning: move_uploaded_file() [function.move-uploaded-file]: Unable to move
'/Applications/XAMPP/xamppfiles/temp/phpc4Tkr0' to '/uploads/CIMG0122.JPG'
in /Applications/XAMPP... 阅读全帖
s*********n
发帖数: 38
2
来自主题: Java版 - Help on file locking
Hi,
I am writing an applicaiton which may have multiple threads operating on a
single file (e.g. myfile.txt). I found an example like this:
http://javaalmanac.com/egs/java.nio/SetFileLock.html
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
try {
// Get a file channel for the file
File file = new File("myfile.txt");
FileChannel channel = new RandomAccessFile(file, "rw").getChannel();

// Use the file channel to create a lock
d*******2
发帖数: 340
3
来自主题: Computation版 - 再次求教用qsub和直接用./file的区别
我的问题是直接用./file的话可以输出结果,但是程序在一两天之后就停了(可能是负
责IT的人停的)。但是把./file放到file.sh里面再用qsub file就没有数据输出。下面
三个文件都试过了,请问错误在什么地方?
先谢了!
#include
#include
using namespace std;
int main(int argc, char* argv[])
{
ofstream file;
file.open("output");
int k=100;
file << "k:" << k < file.close();
return 0;
}
#include
#include
using namespace std;
int main()
{
int k=100;
cout << "k:" << k;
}
#include
using namespace std;
int main(int argc, char* a
l********1
发帖数: 486
4
【 以下文字转载自 Military 讨论区 】
发信人: liangzhi01 (良知01), 信区: Military
标 题: 这才是平权: 80-20 Filed A Supreme Court Brief on May 29th.
发信站: BBS 未名空间站 (Mon Jun 4 16:12:45 2012, 美东)
(上大学是要凭真才实学而不是考虑种族因素,歧视低智商是理所当然而考虑种族因素是
歧视. 结婚是两性的结合,歧视性变态是天经地义.变态们是玷污平权).
80-20 Filed A Supreme Court Brief on May 29th.
http://www.80-20educationalfoundation.org/pdf/amicus-brief.pdf .
It attracted a huge amount of media attention, mainstream
and ethnic! See footnote at the end.
Strangely, America listening is not enough, b... 阅读全帖
N**i
发帖数: 7
5
改个路径应该就可以了
Sub ConvertCSV()
Dim Folder
Dim File
Dim i
Folder = "C:\Temp\"
With Application.FileSearch
.NewSearch
.SearchSubFolders = False
.LookIn = Folder
.Execute

Set fs = CreateObject("Scripting.FileSystemObject")

For i = 1 To .FoundFiles.Count
Set File = fs.GetFile(.FoundFiles(i))
If Right(File.Name, 4) = ".xls" Then Application.Workbooks.Open (Folder +
File.Name)
Application.Workbooks(File.Name).SaveAs Folder + File.Name + ".csv",
FileFormat:=
b*****m
发帖数: 438
6
E file federal tax was rejected, the reason (the email I got):
______________________________________________________________
Dear Free File Taxpayer:
#2

The IRS has rejected your federal return. This means that your return has
not been filed.
Here's the reason for the rejection:
0123 - On each Form W-2... 阅读全帖
S*********s
发帖数: 1963
7
resident,准备file 1040 tax return。
我的W2 BOX2 wages=0,没有withhold任何联邦税;Box 3,4,5,6显示扣了FICA tax
box 16 state wages有三千多,
withhold了州税。另外有一份1042S关于前$5000的,里头显示的总额跟w2 box16 state
wages一样的数目。
所以我的这部分收入不需要交联邦税,只需要交FICA tax和交州税。
e-file一般一周能收到tax refund,寄信的话需要1-2个月。所以想选e-file。但现在
问题是HR BLOCK软件我如果要选e-file的话,软件提示W2 wages=0不允许e-file,只能
paper file。
然而我这个W2完全不影响到我的1040 tax return,是否可以选择把这个W2从HR BLOCK
软件删去,然后选择e-file?
c****r
发帖数: 39
8
EB1A的I-140等了两年,RFE后被TSC的Office 144拒了。I-485很快也会被拒。想问一下
下次申请EB1A时的策略,默认还是被拒的前提下,如果只想file EB1A以便老婆能申请
EAD而工作可行吗?自己实在是不想再花冤枉钱file I-485了(这次啥没捞着已花了$5,
000 (file EB1A I-140,两个I-485,以及一半的律师费))。
自己只想file EB1A I-140而不file I-485,老婆在我的新I-140基础上file她的I-485以
及I-765(EAD)的申请。再申请EB1A也只是让老婆有机会工作,她是学护士的,没有工作
签证可以申请。在TSC的打击下自己对EB1A毫无信心(Claim了6条无一条被承认)。
望有识之士给予指点,多谢!
e*****r
发帖数: 621
9
765表格上面选的自然是 (c)(9).
但是看最新版本的765 instructions里面,关于缴费:
第一次申请EAD (免费的种类没有提及c9)
one of the following categories, a filing fee is
not required:
1. (a)(3) Refugee;
2. (a)(4) Paroled as Refugee;
3. (a)(5) Asylee;
4. (a)(7) N-8 or N-9 nonimmigrant;
5. (a)(8) Citizen of Micronesia, Marshall Islands, or Palau;
6. (a)(10) Granted Withholding of Deportation;
7. (a)(16) Victim of Severe Form of Trafficking (T-1);
8. (a)(19) U-1 Nonimmigrant;
9. (c)(1), (c)(4), or (c)(7) Dependent of certain foreign governme... 阅读全帖
d****o
发帖数: 434
10
来自主题: Immigration版 - EAD E-FILE RENEW 35天CSC批准经验总结~
好像上次发了一个总结帖之后E-FILE EAD的问题帖多了起来,再重新总结一下.
本人5/5 E-FILE EAD RENEW,今天(6/10)CARD PRODUCTION ORDERED.
========
1.E-FILE的时候别人问什么你就答什么,实际上网上的问题都很简单,不明白的仔细思考
一下,没有什么特别需要注意的其实.
2.E-FILE完毕以后会有一份收据和申请表副本印出来.收据你是要寄出去的,而申请表副
本自己留着就好.
3.需要寄出去的东西:
1)E-FILE的收据
2)I-94 (正反面的复印本)
3)签证的复印本
4)现在的EAD的正反面复印本
5)485收据的复印本
4.特别强调,不用寄照片.E-FILE之后1-2周内会收到信,通知你去打指纹和照照片.
========
特别强调关于E-FILE要不要寄SUPPORTING DOCUMENT的问题.
有很多朋友说不用寄SUPPORTING DOCUMENT,因为收据上说除非特别要求才要寄.而I-765
的INSTRUCTION上关于RENEW要寄的材料说得极其含糊,我打几次CUSTOMER S
g**v
发帖数: 345
11
来自主题: Immigration版 - I-140现在应该在哪里file?
自己转一个上面的帖子对这个问题的回答。看了一下I-140的instruction, 上面是说
除在part2中选了f的外,所有的寄到:
for U.S. Postal Service:
file to USCIS Dallas Lockbox. 具体邮寄地址是:USCIS,
PO BOX 660867, Dallas, TX 75266.
for express mail and courier delivers:
file to
USCIS
Attn: AOS
2501S.State Highway 121 Business
Suite 400
Lewisville, TX 75067
发信人: qiaka (知音96691), 信区: Immigration
标 题: Re: 请问我的绿卡申请会递交到那个center?
发信站: BBS 未名空间站 (Thu Dec 30 19:13:28 2010, 美东)
EB1和EB2 NIW类别的绿卡申请是file到USCIS Dallas Lockbox. 具体邮寄地址是:
USCIS,
PO BOX 660867, Dallas, T... 阅读全帖
p********s
发帖数: 396
12
来自主题: Immigration版 - 只file 485的话,只能file到NSC吧?
在instructions里面,看到"Petitioners filing 485,based on a previously filed
form I140 for a skilled worker"should file their stand-alone form 485 at NSC
or TSC, depending on the location of the beneficiary's permanent employment
. Use the same form 140 addresses for those petitions filed with form 485.
不知道新墨西哥州要file 到nsc还是tsc?
140 e-file 到tsc了。
谢谢
z*******1
发帖数: 37
13
我正准备申请EB1a的加急,想e-file I-907 表,但是我有几个问题不清楚:
1.I-907 form 是可以e-file 也可以填写好之后邮寄的是吗?哪一种方式更好一些呢?
2. 我准备在 网上填e-file的表格,我是独立申请人,我自己递交的petition letter,
所以我是petitioner,而不是 applicant,所以我应该选
Are the petitioner who is filing or has filed a petition eligible for
Premium Processing,而不是Are the applicant who is filing or has filed a
petition eligible for Premium Processing,对吗?
3.在“Classification type being requested”一栏中我应该选择那一项更好?我发
现有三个选项和我的申请接近(或者还有其他选项?),他们是 o1:alien w/
extradornary ability; o1A:Extradorna... 阅读全帖
d*****a
发帖数: 19
14
Thanks god, finally can file the 485 next month!
But my lawyer said the filing fee for spouse and kid's 485 is $1,050 each,
Do you think it is reasonable? My filing fee was already paid before. Is it
easy to file the 485 for my LD (might including EAD & AP) and kid by myself?
Can I have my lawyer file my 485 but file my LD and kid's 485 seperately? I
do want to file all of those as soon as possible, in case the VB will go
back again........ Thanks.
l*********g
发帖数: 975
15
用了
EB2 PERM
EB2 I140 file on PP 27/10/2010 APPROVED
EB3 I140 file on regular 24/03/2011 APPROVED on 03 Oct 2011
最后回EB2 拿绿卡
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
I-140 case: Approved in 9 days (173 days less than average) (6 comments)
User: laststraw Nationality: India
Applicant Type: primary Service Center: Nebraska
Category: EB2 Priority Date: 19 Aug 2010
Application Filed: 27 Oct 2010 USCIS Received Date: 28 Oct 201... 阅读全帖
S******h
发帖数: 70
16
我律师的回信,似乎说得有道理。降级,一个月之后再file PP是为了等USCIS从DOL拿
到LC。考古版上,没有看到有人提到一个月之后PP接受率高的原因,所以贴出来供大家
参考。
另外律师关于以"New" file比按照"amended" file要麻烦少一点,这个跟置顶FAQ里的
信息基本一致,虽然“amended”也有成功降级并绿的。
PD 2013/9
Firstly, you can't normally file premium processing on an I-140 that is not
filed with an original labor cert. The reason for this is that USCIS has to
submit a formal request to the DOL for a certified copy of the labor
certification and that always takes longer than 4 weeks. We can try to
submit a request to premiu... 阅读全帖
p******x
发帖数: 73
17
来自主题: EB23版 - EB2/EB3同时file I-140的问题
第二排期没honor,但是能file 2个总是好的,两手准备嘛。
LZ是如何让公司同意EB2/EB3两个一起file的?我也让公司file两个,其中自己交一个
的钱。公司说不行,说什么EB2的PERM只能file EB2的140,原文如下:
We cannot file two I-140 applications using one labor approval. The I-140
application is based on the labor and your labor was filed for EB-2 category
. For filing another I-140 under Eb-3 category, we will have to first secure
another labor for you with EB-3 classification.
LZ是如何说服公司的?
w**a
发帖数: 2662
18
公司file的position是manager,我今年7月make 了manager,排期也current了,但律
师说我的工资没达到prevailing wage不给file 485. 我来版上问到说prevailing wage
在file 485时不需要达到,回去就狂催律师。然后还问律师要prevailing wage,但是
律师和HR都不提供这个信息给我。今天突然收到律师的信说他们和HR商量了以后决定帮
我重新file perm。 以下是律师的email,我已经发信去问律师为什么有这个必要重新
file perm了,之后有消息会上来更新给以后有类似情况的朋友做参考。但是现在就想
问问版上大家有什么看法。照理说现在重新file perm再file140又要花一两年,即使公
司当初给了个很高的prevailing wage,我的工资过两年也会达到公司manager upper
limit,不可能达不到prevailing wage啊。 非常confused现在,有大神给指个明路吗?
I spoke about your case with your HR and we have d... 阅读全帖
a*****a
发帖数: 1385
19
On October 12, 2017, USCIS will change the direct filing addresses for
certain petitioners of Form I-129, Petition for a Nonimmigrant Worker. The
changes are as follows:
Petitioners will now file Form I-129 according to the state where the
company or organization’s primary office is located. Previously,
petitioners filed Form I-129 based on the beneficiary’s temporary
employment or training location.
Petitioners located in Florida, Georgia, North Carolina and Texas will
now file Form I-1... 阅读全帖
e*****r
发帖数: 621
20
765表格上面选的自然是 (c)(9).
但是看最新版本的765 instructions里面,关于缴费:
第一次申请EAD (免费的种类没有提及c9)
one of the following categories, a filing fee is
not required:
1. (a)(3) Refugee;
2. (a)(4) Paroled as Refugee;
3. (a)(5) Asylee;
4. (a)(7) N-8 or N-9 nonimmigrant;
5. (a)(8) Citizen of Micronesia, Marshall Islands, or Palau;
6. (a)(10) Granted Withholding of Deportation;
7. (a)(16) Victim of Severe Form of Trafficking (T-1);
8. (a)(19) U-1 Nonimmigrant;
9. (c)(1), (c)(4), or (c)(7) Dependent of certain foreign governme... 阅读全帖
c****t
发帖数: 66
21
来自主题: BuildingWeb版 - A question about classification of files
I need to do a classification of files under a website.
I classify .js, .php file as a kind of dynamic page,
.gif, .jpg, png as graphic file,
.txt, ps, ...as document file
.mov, .mps... as multimedia file
I have problem with understanding .CSS and .RDF files, because I'm not familir
with web development.
My understanding of .CSS is that it determines the style of the page, if the
.css file is missing, the content of the associated page can still be
displayed, but with different style;
And my und
s********1
发帖数: 581
22
请教有关header file的几个问题
假设sub.h 和 sub.c 是header file 和与其对应的source file.
(1) 在sub.c开始都有 #include "sub.h"
我试着delete 以上的语句,compile和run时都没有问题。#include "sub.h"
在sub.c中,#include "sub.h" 是否多余??
(2) 试着将sub.h的name 改成 subbbbb.h, 结果也没有问题,是否header file 和与其
对应的source file 名字可以完全不一样?
(3) 又试着去掉.h, 并把heade file 的名字改成:
sub.h ----〉 subbbbb.c
再把main program 中开头的部分改成 #include "subbbbb.c"。 结果也没有问题。
.c 和 .h file 到底有没有不同?
(4) 将#include "subbbbb.c" (或者#include "subbbbb.h", #include "sub.h")
s********1
发帖数: 581
23
来自主题: DotNet版 - 请教有关header file的几个问题
请教有关header file的几个问题
假设sub.h 和 sub.c 是header file 和与其对应的source file.
(1) 在sub.c开始都有 #include "sub.h"
我试着delete 以上的语句,compile和run时都没有问题。#include "sub.h"
在sub.c中,#include "sub.h" 是否多余??
(2) 试着将sub.h的name 改成 subbbbb.h, 结果也没有问题,是否header file 和与其
对应的source file 名字可以完全不一样?
(3) 又试着去掉.h, 并把heade file 的名字改成:
sub.h ----〉 subbbbb.c
再把main program 中开头的部分改成 #include "subbbbb.c"。 结果也没有问题。
.c 和 .h file 到底有没有不同?
(4) 将#include "subbbbb.c" (或者#include "subbbbb.h", #include "sub.h")
f*******w
发帖数: 407
24
我是刚接触actionscript没到一个星期的新手,请版上的高手指教:
I use following flash actionscript code, got from online, to load the "
Loading.txt" file:
var myTextLoader:URLLoader = new URLLoader();
myTextLoader.addEventListener(Event.COMPLETE, onLoaded);
function onLoaded(e:Event):void {
var myArrayOfLines:Array = e.target.data.split(/\n/,",");
}
myTextLoader.load(new URLRequest("Loading.txt"));
In "Loading.txt", the data of object in a row is (Dim1 Dim2 Dim3 OX OY OZ)
is:
60,12,9,-50,-50,50
84,12,9, 50, 50,50
Then... 阅读全帖
m*****e
发帖数: 126
25
来自主题: Java版 - Re: access host file in applet
Applet is subject to security restrictions and usually can not
access files on client. There are sevetal things you are do.
(1) You can pack the supporting files into a 'jar' file and use
the 'archive' attribute in the html code to load the files.
(2) Applet is able to make network connections to the host machine
where it come from. You can read supporting files from a URL.
I think the first method is good for loading a few image files.
The second one is useful when you have many supporting file
i*****1
发帖数: 7
26
Da xia,
My applications has different packages, and I want a different property file
in each package. How can I read/write some files located at the same directory
of the class file?
I can use:
InputStream in = this.getResource("filename").openStream();
To get the file content sucessfully.
But how can I change the file content? I tried
FileOutputStream out = new FileOutputStream(this.getResource("filename").
toString());
this.getResource("filename").toString() return a String like file:C://...
s********1
发帖数: 581
27
来自主题: Programming版 - 请教有关header file的几个问题
请教有关header file的几个问题
假设sub.h 和 sub.c 是header file 和与其对应的source file.
(1) 在sub.c开始都有 #include "sub.h"
我试着delete 以上的语句,compile和run时都没有问题。#include "sub.h"
在sub.c中,#include "sub.h" 是否多余??
(2) 试着将sub.h的name 改成 subbbbb.h, 结果也没有问题,是否header file 和与其
对应的source file 名字可以完全不一样?
(3) 又试着去掉.h, 并把heade file 的名字改成:
sub.h ----〉 subbbbb.c
再把main program 中开头的部分改成 #include "subbbbb.c"。 结果也没有问题。
.c 和 .h file 到底有没有不同?
(4) 将#include "subbbbb.c" (或者#include "subbbbb.h", #include "sub.h")
d****p
发帖数: 685
28
来自主题: Programming版 - How to run existing C files using Visual C++
Check the make file to see whether it is written to support VC compiler -
the chance however is very low. So I assume the make file is for GCC.
In that case, it is not a cool idea to convert make file for GCC to make
file for VC compiler since each has different options.
My suggestion is if the project is small, just create your own VS project
and put all files (.h+.c) into your project. Be aware of the C++ calling C
issue.
If the project is really large, just include the header files in your ow... 阅读全帖
l******9
发帖数: 579
29
【 以下文字转载自 JobHunting 讨论区 】
发信人: light009 (light009), 信区: JobHunting
标 题: error of opening a file located in a remote server from pyton
发信站: BBS 未名空间站 (Sun Jul 27 19:03:52 2014, 美东)
I need to access read a csv file located in a server from python 3.2 on win7.
The file name is
csv_file =
file_loc = '\serverName.myCompanyName.com\mypath\Files\myfile.csv'
with open(file_loc , 'r') as csv_file # error !!!
csv_reader = csv.reader(csv_file, delimiter=',')
error:
IOError: [Err... 阅读全帖
s********1
发帖数: 581
30
来自主题: Software版 - 请教有关header file的几个问题
请教有关header file的几个问题
假设sub.h 和 sub.c 是header file 和与其对应的source file.
(1) 在sub.c开始都有 #include "sub.h"
我试着delete 以上的语句,compile和run时都没有问题。#include "sub.h"
在sub.c中,#include "sub.h" 是否多余??
(2) 试着将sub.h的name 改成 subbbbb.h, 结果也没有问题,是否header file 和与其
对应的source file 名字可以完全不一样?
(3) 又试着去掉.h, 并把heade file 的名字改成:
sub.h ----〉 subbbbb.c
再把main program 中开头的部分改成 #include "subbbbb.c"。 结果也没有问题。
.c 和 .h file 到底有没有不同?
(4) 将#include "subbbbb.c" (或者#include "subbbbb.h", #include "sub.h")
d*o
发帖数: 108
31
来自主题: Unix版 - [转载] Hidden character in a file
【 以下文字转载自 Programming 讨论区 】
【 原文由 duo 所发表 】
Need to understand the following questions to program in C/C++:
1. Does any text file always end with a '\n'? i.e. if a text file
contains only one character, any editor will automatically add
a '\n' at the end of a file?
2. Is there a charater in a text file called 'end of file'? Use
the above example, if a text file has only one character 'a',
how many characters for this file? i.e. is it 'a' + '\n'?
or is it 'a' + '\n' + '\eof'?
Thanks for all help!
s********1
发帖数: 581
32
来自主题: Windows版 - 请教有关header file的几个问题
请教有关header file的几个问题
假设sub.h 和 sub.c 是header file 和与其对应的source file.
(1) 在sub.c开始都有 #include "sub.h"
我试着delete 以上的语句,compile和run时都没有问题。#include "sub.h"
在sub.c中,#include "sub.h" 是否多余??
(2) 试着将sub.h的name 改成 subbbbb.h, 结果也没有问题,是否header file 和与其
对应的source file 名字可以完全不一样?
(3) 又试着去掉.h, 并把heade file 的名字改成:
sub.h ----〉 subbbbb.c
再把main program 中开头的部分改成 #include "subbbbb.c"。 结果也没有问题。
.c 和 .h file 到底有没有不同?
(4) 将#include "subbbbb.c" (或者#include "subbbbb.h", #include "sub.h")
t*******i
发帖数: 66
33
来自主题: Nursing版 - 赶上这次 E-file I-140
假设,周日和周一护士自己E-FILE I-140,7天内补交材料,理论上来说,时间是来得
及的
引述律师的话
1。不需要走劳工纸申请程序的I-140移民申请必须在2007年8月1日之前递交移民局。否
则,8月17日之前没有资格递交I-485申请,工作许可和回美证申请。
2。 不需要走劳工纸申请程序的I-140移民申请可以通过e-filing 于今明天两天(July
29和July 30 先递交I-140移民申请。7月的最后一天(31日)因系统维修不能做e-filing.
3. 今天(July 29)和之前递交的I-140申请要附带$195申请费。明天(7/30)和以后递交
的I-140必须交新申请费($475)。
4。在网上e-file I-140的日子就是此申请的优先日期。如果I-140最终得到批准,e-
file I-140的日子就是绿卡排队日期。
5。 特别注意,在网上e-file I-140之后,有关该I-140的证明材料必须尽快随e-
filing 收据一并寄达移民局。据说,移民局必须在7日之内收到I-140的证明材料。
6。 如果劳工纸已在7月31日之前得到批准,在8月17
l******9
发帖数: 579
34
【 以下文字转载自 JobHunting 讨论区 】
发信人: light009 (light009), 信区: JobHunting
标 题: error of opening a file located in a remote server from pyton
发信站: BBS 未名空间站 (Sun Jul 27 19:03:52 2014, 美东)
I need to access read a csv file located in a server from python 3.2 on win7.
The file name is
csv_file =
file_loc = '\serverName.myCompanyName.com\mypath\Files\myfile.csv'
with open(file_loc , 'r') as csv_file # error !!!
csv_reader = csv.reader(csv_file, delimiter=',')
error:
IOError: [Err... 阅读全帖
S******y
发帖数: 1123
35
I have 100,000 + text files. The total size of those files are about 30 GBs.
I would like to pre-index those files regarding a bunch of keywords to
search.
For example, I type "cat" + "dog", the python pgm would return snippets of
text from those files (Just like Google search), sorted by the distances
between two words.
Is there a smart algorithm to do that?
I am thinking -
for 'cat', search all files, and record which file and which location the
word appear.
for 'dog', search all files, and re
w*******y
发帖数: 60932
36
Tax Act 2010 Ultimate Federal and State for 11.90:
https://www.taxactonline.com/s_online_tax2010/introduction/registrationd.asp
?return_type=DLX&bun=ULT&fed_price_code=F800012&state_price_code=S800008&sc=
07103051103
For a limited time, you can lock in pricing to file both federal and state
taxes of only $11.90 total for both! ($6.95 and $4.95 respectively). This
package is usually 17.95. and while the link will say 30% off, it actually
33.7% off as the final price on your confirmation will sho... 阅读全帖
l******9
发帖数: 579
37
【 以下文字转载自 JobHunting 讨论区 】
发信人: light009 (light009), 信区: JobHunting
标 题: error of opening a file located in a remote server from pyton
发信站: BBS 未名空间站 (Sun Jul 27 19:03:52 2014, 美东)
I need to access read a csv file located in a server from python 3.2 on win7.
The file name is
csv_file =
file_loc = '\serverName.myCompanyName.com\mypath\Files\myfile.csv'
with open(file_loc , 'r') as csv_file # error !!!
csv_reader = csv.reader(csv_file, delimiter=',')
error:
IOError: [Err... 阅读全帖
h****u
发帖数: 368
38
E-file I-140可赢得7个工作日的时间
如果申请人想要在今年8月份提交I-485申请,他/她就必须在8月1日之前提交I-140申请,才可以获得一个7月份的优先日期以便自己可以使用7月的移民排期。现在最后期限已经越来越近了,但是有些申请人仍然没有准备好自己的申请资料。
解决这个问题的办法是使用移民局的efiling。你可以在8月1日前e-file自己的I-140申请,然后在之后的7个工作日内把其余的支持资料全部提交到移民局,这些支持材料包括申请信、推荐信及其他一些证明材料。通过e-file,申请人可以在提交申请后再获得7个工作日的时间来准备自己的申请。
E-file申请的相关信息和数据会自动进入到移民局的Siebel系统,移民局会马上对这份申请发出efile的receipt notice,并且之后还会发出纸质的receipt notice。E-file的I-140申请(不包括以劳工证为基础的I-140申请)的优先日期就是e-file的日期。例如,一份于2007年7月29日通过e-file的方式提交的I-140申请,移民局如果在8月7日或之前收到其余的支持材料,这份申请的优先日期就
e****e
发帖数: 2010
39
100伪币 for VBA code, 能够正确执行。
1)multiple Excel files convert to CVS files, 200 or 1000 files whatever.
or
2) multiple Excel files merge to excel one sheet, top->down,200 or 1000
files whatever.
m******9
发帖数: 968
40
来自主题: JobHunting版 - 请教2个 huge file的面试题
问题1: 2个超大file,memory容不下,都是unsorted,假设里面全是integer。如何找
出2个文件
中的重复部分?
我看到的一个答案是:
step 1: external merge sort F1 (file 1): 将原文件分成若干个temporary
smaller
files, 对每个temporary small file进行quicksort,然后对所有smaller files 进行
multiple-way merge sort, 重新合并成一个sorted big file.
step 2: traverse F2, binary search F2's each element in F1,
step 3: 能找则是common element,如果找不到则继续读取判断下一个element
问题2: 1个超级大文件,unsorted,里面都是string。如何找出所有的anagram?
这个题没什么思路
求教了,谢谢
q**q
发帖数: 266
41
下面是律师给我发的步骤。我有几个疑问:
1,没有提到LCA,它是不是包含在2)中了呢?
2,第三步,公司签名是传真、扫描还是要寄来寄去呢?
3,综合起来大概多久能file呢?现在我已经把所有的信息和资料都给律师了。
给律师发信也不睬我,所以只好请教各位了!
1) GATHER ALL INFORMATION. xx must have all the information necessary to
prepare you H-1B change of status petition.
2) PREPARE PETITION. Once xx receives the requested information and
documents, the preparation of your H-1B petition will begin. It normally
takes xx 5-10 business days to finalize the petition for signature upon
receipt of all requested documents.... 阅读全帖
l******9
发帖数: 579
42
I need to access read a csv file located in a server from python 3.2 on win7.
The file name is
csv_file =
file_loc = '\serverName.myCompanyName.com\mypath\Files\myfile.csv'
with open(file_loc , 'r') as csv_file # error !!!
csv_reader = csv.reader(csv_file, delimiter=',')
error:
IOError: [Errno 2] No such file or directory: '\serverName.myCompanyName
.com\mypath\Files\myfile.csv'
But, I can access the folder and open the file from win 7 .
Thanks
t****4
发帖数: 114
43
When I try to get my free credit report at credit.com today, this website
says that:
"Your credit file is frozen or blocked
"We cannot generate a Credit Report Card for you at this time due to your
credit file being frozen or blocked. This occurs when the consumer has
placed a file freeze on their credit file or the credit file has been
blocked by Experian. Read about a credit freeze or visit the Experian
website to learn more."
But I haven't frozen my credit file. Anyone know why?
Thanks!
M****a
发帖数: 484
44
我看网站上说有两种:
If your current status is B1, B2, F1, F2, J1, J2, M1 or M2, you are
eligible to file using the new USCIS Electronic Immigration System, USCIS
ELIS.
Certain applicants who are not eligible to file using USCIS ELIS may
still file online using our legacy e-Filing system. You will be able to file
your form and pay your fees online, but you will have to mail your
supporting documents to the USCIS office processing your application.
是不是大家都是用的legacy e-file,然后再邮寄supporting docs呢?
谢谢,请... 阅读全帖
d******8
发帖数: 1972
45
Reuters) - MF Global Holdings Ltd, the futures broker run by former Goldman
Sachs chief Jon Corzine, has filed for Chapter 11 bankruptcy after a
tentative deal with a buyer fell apart.
The firm's meltdown in less than a week is a stunning setback for Corzine,
who sought to turn MF Global into a mini-Goldman. Corzine became CEO last
year after losing his governorship of New Jersey, and his big bets on euro-
zone debt sealed the company's fate.
The bankruptcy filing came after talks to sell a vari... 阅读全帖
u***r
发帖数: 4825
46
http://www.bloomberg.com/news/2014-12-29/shake-shack-files-for-
Shake Shack Inc., which went from a kiosk in a New York City park to
international burger chain over the past decade, filed for an initial public
offering in the U.S. with a plan to reward its founder Danny Meyer and
expand.
Shake Shack has more than 63 outlets in over 30 cities from London to Dubai.
It’s also profitable, with sales of nearly $84 million in the 39 weeks
through Sept. 24, the filing shows. The company is aiming for a... 阅读全帖
b********r
发帖数: 620
47
和老婆去年接的婚,两个人收入差不多,H1B身份。有房贷,去年也买了些大件,比如
电视什么的。还没小孩。
究竟joint filing和separate filing相比,有什么好处?税率低?或者是可以申请其
他的一些credit?以前,我们一般是一个人用itemized deduction抵房贷,另外一个人
用standard deduction。我查了查,IRS的网站说的不详细,只是说joint filing有可
能比separate filing有更多的tax return。大家有file jointly能不能给个例子什么
的?比如,我在股市亏了几万钱,每年只能抵3000。如果joint filing,是不是老婆也
可以帮我抵另外3000,就一共6000?
多谢多谢!
c********i
发帖数: 183
48
请教各位达人file extension用什么表先算税的问题。
我们的case是这样的---我今年毕业之后OPT到10月份拿到H1B,LD06年来美,今年第五
年F1。我们准备用4868 file extension然后file jointly。用4868算欠不欠税的时候
,究竟是用1040NR 我们先分别算然后加和呢?还是直接就joint用1040算?我考古很久
,发现SETI大侠在一篇回帖中说1040,也有另外一位再另一份回帖中说用NR。我看了
pub519,没有找到哪里有明确说file extension算是否欠税应该用哪个啊?
虽然估计俩种算来都不会欠税或者欠不多,但是保险起见。希望达人给个确认!
还有一问,这个file extension是只针对身份来说么?原先以为是一直到6月的收入都
要作为2010内来算了......还是这个计算还是按照实际2010年内的,并且也不影响我
2011年报税----这个只是个身份判定时间问题?
如果是这样的话,是不是我们目前填完4868提交以后,等到6月份身份183天合格,直接
把现在file好的1040寄出就可以了?
多谢各位达人建议!:)
d*********n
发帖数: 92
49
一直是married file jointly的,去年刚买了房,没赶上8000块,schedule A算了半天
,结果比standard deduction 还少了1000块。看mortgage interest statement,突然
想起来,当年贷款的时候,由于某些原因,就写了一个人的名字,那岂不是说,如果file
separately,一个人用schedule A + dependents ,另一个人用standard deduction,这
样好像可以省不少?我们穷人。这样可行么?去年file jointly,今年file separately,IRS
不会有问题吧?
还有就是联邦税file separately,州税file jointly,没问题吧?州税就懒得麻烦了。
首页 上页 1 2 3 4 5 6 7 8 9 10 下页 末页 (共10页)