Posts

file upload - PHP upload_max_filesize -

i've problem php file upload. in php.ini 'upload_max_filesize' set 4mb. when try upload file bigger never upload_err_ini_size error expected, page show form again without information file ($_files empty). what's problem? doing wrong? check these setting in php.ini also: post_max_size, upload_max_filesize , memory_limit in php.ini. post_max_size should greater upload_max_size. and if these not solve problem check here more details: http://www.satya-weblog.com/2007/05/php-file-upload-and-download-script.html

c# - Programmatically join Windows machine to AD domain -

this similar to, not dupe of, this question - however, sought information on manually joining server domain (and rightly redirected) looking code programmatically joins machine domain. the scenario have launcher service instantiates amazon ec2 server2008r1 vms, optionally passing machine name in through user-data stream. process baked our images checks user-data name on bootup - if none present vm remains outside of our cloud domain, if name present machine renamed specified , auto-joined domain. here's problem - if run process manually time after instance start, works described; machine name changed, , vm joined domain (we force restart make happen). however, when running scheduled task (triggered on startup) machine rename happens expected, subsequent call joindomainorworkgroup (see below) picks-up old randomised machine name given vm ec2 instead of new name has been assigned. this results in wmi return code of 8525 , disconnected misnamed entry in ad repository (of...

vb.net - VB Check if Multiselect in Listbox -

simple thing: how can check if user has selected more 1 item in listbox? tried this: if listbox.selecteditems(1) ... but returned out of range exception... thx help the code have attempting access second item in selecteditems collection, holds of selected items in listbox . because default property of selecteditems item , accepts zero-based index of item parameter. getting "out of range exception" because there less 2 items selected, means there no value return @ index = 1. instead, check if user has selected more 1 item, need use count property of selecteditems collection. example: if listbox.selecteditems.count > 1 ''#your code here end if

SQL Server 2008: Can not save because table must be deleted and newly created to save? -

i'm stuck on little not understanding problem. i'm using ms sql managment studio 2008. have brand new database table x. x has 3 columns: id, uniqueidentifier, not null username, nvarchar 50, not null password, nvarchar50, not null now save. set id primary key - no problem saving. now add column: email, nvarchar 50, not null - when try save, can't it, because tells me saving table must deleted , new created. i don't understand this, in sql server 2005 i'm sure, easy possible add row ?! saving changes after table edit in sql server management studio

NT Hosted WCF Service With MSMQ fails to stop cleanly and Locks Up -

this problem has had me baffled weeks on client's live environment. the wcf service hosted on windows server 2003, , has both http , msmq endpoints. when placing service in test environment, service cleanly starts , stops, , messages passed without problems. on live environment, service starts fine, not exit cleanly. when attempting stop service, machine takes long time respond , displays error saying service not stopped. inspecting error on event log, says unable write msmq queue (access denied), however, service able read , remove messages queue. if 1 refreshes service manager, service in fact stopped. the msmq queue hosted on different physical machine, , have been unable reproduce error on test environment. we not sure if related or not, service stop pulling messages queue. has been solved restarting service. again, have not been able reproduce error. recently experienced error http based client upon midnight 1 night, service started rejecting connections follow...

iphone - How can I set identity to each cell in UITableView? -

i have grouped uitable view custom setting view. each cell view 3 uitextfields , other uiviews. when cell created call function [cell initcell:indexpath.section withrow:indexpath.row]; and cell knows configuration display - works fine. my problem when table scrolled cell looses it's identity causing save wrong settings. saved nsstring* view; nsstring* row; but have last value, of last cell presented (became sidplayed) maybe have missunderstanding global parameters, or maybe cell reuse. please advise, thanks my cellforrowatindexpath: - (uitableviewcell *)tableview:(uitableview *)tableview cellforrowatindexpath:(nsindexpath *)indexpath { if(indexpath.section==0) { static nsstring *cellidentifierdate = @"settingscellpickdate"; settingscellpickdate *cell = (settingscellpickdate *)[tableview dequeuereusablecellwithidentifier:cellidentifierdate]; if (cell == nil) { nsarray *toplevelobjects = [[nsbundle mainbundle] loadnibnamed:celliden...

DateTime's functions in PowerShell -

i write application in powershell, , want convert seconds date. in c# there addseconds function adds seconds date. function in powershell similar performance? well, since .net framework right @ fingertips, can do $d1 = [system.datetime]::now and then $d2 = $d1.addseconds(30) get-date appears wrapper datetime object , following work well: $d3 = get-date 23.10.2010 -format dd.mm.yyyy