Posts

Shrink data base SQL Server 2008 -

hi have made maintenance package in have used shrink database task specific database, ran successfully, found slight increase in previous db size. initial size(129 gb) after running package(130gb). i expecting after shrinkning should shrink? might happen? sure package scheduled run , check history found run successfully. any help/ please advise special care required, in advance. do not shrink database during maintenance. there no other more damaging action can do. read more @ auto-shrink – turn off . if database has grown size, grow if shrink it. shrinking database tremendously damaging index fragmentation , slow down reporting , analytic workloads. once shrink, when database grow during normal operations auto-growth events interrupt , freeze database during growth. there 1 thing shrink database had got out of control due rogue action increased it. have shrink in maintenance task means on scheduled interval, , very bad .

.net - AppDomain isolation -

edit seems original post below might have been bit long. simply said, can spawn appdomains , ensure cannot communicate 1 in way? there competitive robotic soccer simulation league called robocup 3d . 1 of fundamental rules communication between agents conducted through central server. server enforces rules of simulation, such limiting distances , rates of message passing across field. teams comprise several agents. rules state each agent must run in own process. rationale being inter-process communication can detected. i've authored .net library robocup called tinman . there talk on relevant mailing lists of teams being entered written in .net first time next year. aside, run on mono. in managed environment clr, believe there performance benefits running agents in single instance of clr, due running single gc. i've asked question whether might acceptable use separate appdomains of same process if case. what i'd know if whether it's possible det...

Python programs on different Operating Systems -

if write python script using python standard libraries, using python 2.6 work on operating systems long python 2.6 installed? depends. there few parts of python standard libraries available on platforms. these parts noted in python documentation. you need careful of how handle things file paths - using os.path.join() , such make sure paths formatted in right way.

iphone - Best Framework for Audio -

in application recording voice of human storing in file in nstemporarydirectory() , playing it. far have used avaudioplayer , avaudiorecorder after time when record simultaneously plays sound don't know why? , more on application crashes in iphone 4. now please suggest me framework use recording changes pitch , can play , importent work on iphones. 1. openal 2. core audio 3. audiotoobox i use avaudioplayer , avaudiorecorder in 1 of apps , don't have problem @ all. maybe issue describe related other problem in app. sure don't have bug in app causes this?

sql - How to rewrite a subquery to use joins when you used DISTINCT in the subquery? -

i have query use sub query, , rewrite join, have better performance. the subquery uses distinct there many records, , problem have end multiple times in join when use join. so how rewrite query use join: select * table1 join table2 b on b.field1 = a.field1 b.field3 = 1531 , a.field4 = 0 , a.field5 in (select distinct field5 table3 field6 = 172) something like: select * table1 join table2 b on b.field1 = a.field1 join ( select distinct field5 table3 field6 = 172 ) c on c.field5 = a.field5 b.field3 = 1531 , a.field4 = 0 it's hard without seeing actual data, if doesn't work, please let me know.

class - How can I reorganize my code into classes in C#? -

i'm working on project in c# w/ xna, , want reorganize , divide parts of classes. at present, it's 1 game.cs file, want clean bit. unfortunately, i'm not familiar classes. perhaps can me figure out how this, or direct me tutorial of sort? well, start off thinking of bits of data go naturally. example, if have player's name, score, position, number of lives etc, suggest should have player class. take @ state, split different groups, , check of existing methods work 1 group of state or another... , put methods state they're interested in. it gets trickier when 1 method needs deal state multiple objects, of course: typically means you'll put code in 1 type , pass other type in parameter. a lot of gut feeling, honest - above starting points. on time gets easier, , you'll start think more in terms of responsibilities data - it's starting point, have data need, not organized in right way... whereas deciding on responsibilities within syste...

java - MapReduce returns NaN -

i have m/r function, , nan value of results. dont have experience js. im escaping js using java drivers. string map = "function(){" + " emit({" + "country: this.info.location.country, " + "industry: this.info.industry}, {count : 1}); }"; string reduce = "function(key, values){var count = 0.0;" + "values.foreach(function(v){ count += v['count'];});" + "return count;}"; mapreduceoutput output = collection.mapreduce(map, reduce, null, new basicdbobject("lid", "foo")); an example ti clear things: {"_id":{"country":"gb", "industry":"foo"}, "value":nan} thanks lot. considering js part, i'm not sure whether following part valid - values.foreach(function(v){ count += v['count'];}); try instead - var v; (v in values) { .... } hope he...