Posts

windows - Setting Writable Permission only for Administrators inside PROGRAM_DATA folder -

i've been experimenting lot of headaches implementing behavior permission in windows 7. i have following directory structure (inside program_data): c:\programdata\foo\ c:\programdata\foo\test1\ c:\programdata\foo\test2\ the root folder has permission everyone. , shall because can write new files @ level of foo folder. the test1 folder has permission everyone. the test2 must have following rule: folders/files must writable administrators, , can read. rule shall applicable test2 folder itself. now, everyting works well, except case: everyone can rename test2 folder. of course, favor can renamed it, create new folder it's same name , on (an attack). is there solution? maybe strange combination of permissions?

msbuild - Adding specific references from a NuGet Package -

i have created package bunch of assemblies provide our users. want our users able pick , add references need within package project. user should able add package @ solution level , pick references added each project package added. possible nuget? example: mypackage - contain foo.dll, bar.dll, bla.dll user installs package "mypackage" solution project 1 - select , add reference foo.dll, bar.dll project 2 - select , add reference bla.dll currently, every reference of package added every project. not desired setup. want selected references added. there way nuget? nuget not designed work way. packages whole delivery units. our recommendation in scenario package individual assemblies according how want them individually installable.

mysql - update row base on other table row -

i had sucked @ sql query have 2 tables , 2 rows 1 table user_sets , second user_profiles need update user_sets row base on row of user_profiles table. give example. db structure table user_sets row n_color_pack ------------- table user_profiles row gander --------------------- query: update user_sets set n_color_pack = 1 user_profiles, user_sets gander = '0'; so see, update user_sets table setting n_color_pack 1 has gender 0. you need join tables achieve this. should work (untested): update user_sets s inner join user_profiles p on s.id = p.id set s.n_color_pack = 1 p.gander = 0 change s.id , p.id depending on column connects 2 tables in case. (credit ruakh pointing out syntax error)

java - Bind two generic types -

i have question regarding generics. have following interfaces: public interface interfacea<b extends interfacea.interfaceb> { public interface interfaceb<a extends interfacea> { void seta(a a); } } and following abstract implementation of interfacea : public abstract class aimplone<b extends interfacea.interfaceb> implements interfacea<b> { private final b b; public aimplone(b b) { this.b = b; b.seta(this); // <-- unchecked call... } } its clear me, call b.seta(this) unchecked - don't it, tried second abstract implementation: public abstract class aimpltwo<a extends interfacea, b extends interfacea.interfaceb<a>> implements interfacea<b> { private final b b; public aimpltwo(b b) { this.b = b; b.seta((a)this); // <-- unchecked cast } } and again, clear me, call b.seta((a)this) uncheck cast. but how should implemented or redesigned in orde...

mysql - What is more efficient(speed/memory): a join or multiple selects -

i have following tables: users userid|name items itemid|userid|description what want achieve: want read database users , items (an user can have multiple items). data want stored in structure following: user { id name array<item> } where item is item { itemid userid description } my first option call select * users , partially fill array users , after each user select * items userid=wantedid , complete array of items. is approach correct, or should use join this? a reason don't want use join have lot of redundant data: userid1|name1|itemid11|description11 userid1|name1|itemid12|description12 userid1|name1|itemid13|description13 userid1|name1|itemid14|description14 userid2|name2|itemid21|description21 userid2|name2|itemid22|description22 userid2|name2|itemid23|description23 userid2|name2|itemid24|description24 by redundant mean: userid1,name1 , userid2,name2 is reason justified? later edit: added title speed or memory when talking efficienc...

visual studio 2010 - Do we still require separate licence for TeamExplorer as Standalone client if already have vs2010 -

we have visual studio 2010 premium edition on our systems , can succesfully use team explorer build in it. want use team explorer separatly. how can install separatly without installing vs2010 on user machines or can separate vs2010 , team explorer if installed. still need have separate licence per user. know have team web access need team explorer independently. please guide. i have read following posts still not clear: standalone gui client tfs 2010 source control does free team explorer client work without visual studio if have tfs client access license (cal) these users, can use standalone team explorer @ no additional cost . you should have cal users if they're using tfs web access, yes, should able use standalone team explorer.

qt - listview doesn't appear in TabGroup QML? -

how can make listview in qml appear in tab . use code in application n9(meego) need use in symbian . made changes when transformed meego symbian no listview appears. please . note : same listview appears when don't use tabs !!! my code: import qtquick 1.1 import com.nokia.symbian 1.1 import com.nokia.extras 1.1 import "uiconstants.js" uiconstants page { id: mainpage orientationlock: pageorientation.lockportrait tools: tabbar { // platformstyle: tabbuttonstyle { } tabbutton { text: "tab 1" tab: tab1 } tabbutton { text: "tab 2" tab: tab2 } tabbutton { text: "tab 3" tab: tab3 } tabbutton { text: "tab 4" tab: tab4 } } tabgroup { id: ...