Posts

New website on https, do I need to set up redirect? -

we have e-commerce website in 4 languages running on ourbrand.com, ourbrand.de, ourbrand.fr etc. 3 of running on http , last 1 ready launch on https. trying figure out if , how need set htaccess redirect. there no history of running new website on http (so no need redirect existing http traffic), sure people type ourbrand.it or www.ourbrand.it directly browser's address bar. far know, browser default http://ourbrand.it right? need set redirect https? one? 301? thank you. yes, because said, if visitors type ourbrand.it browser default http://ourbrand.it the best thing 301 (permamant) redirect. if want improve security , avoid first redirect, should hsts , hsts preload.

reporting services - SSRS hyperlink to report prompting for values -

i have main report using register report in hyperlink. so whenever user clicks on register hyperlink should show particular register displayed in report. register report using 2 parameters - year , register when click on register in main report prompts me select register dropdown list instead of showing data directly. what can done avoid this? if both reports in same project, can use drillthrough action. this'll let create link between 2 without needing construct url. in properties of object, under action , choose go report . let select should used each parameter, either static values or data. https://msdn.microsoft.com/en-us/library/dd207031(v=sql.105).aspx if they're in separate locations, can add parameter @ end of url you're using. point report server of register report, , add &param_name:param_value end each parameter. https://msdn.microsoft.com/en-gb/library/ms155391(v=sql.105).aspx

javascript - JSLint - ignoring folder when building in Visual Studio 2015 -

i want implement javascript code , style checking jslint . installed jslint.net visual studio . now want exclude javascript files included external libraries datatables , jquery , .. own minified files need excluded. my project configurations added in jslintnet.json file: { "version": "2.2.0", "output": "error", "ignore": [ "\\scripts\\angular-datatables\\plugins\\tabletools\\", "\\scripts\\angular-datatables\\plugins\\fixedcolumns\\angular-datatables.fixedcolumns.js", "\\scripts\\angular-datatables\\plugins\\fixedcolumns\\angular-datatables.fixedcolumns.min.js" ], "options": {}, "globalvariables": [], "runonbuild": true } whatever path provide here, folder or file. code analysis still keeps running. important can ignore files/ folder jslint practical. how can solve ignoring of folders , files, perhaps extensions. i have had pr...

angularjs - Nested ng-repeat Issue to open list of rows with in the row -

i want open list of items @ time of respective repeated row, here plunker http://embed.plnkr.co/ombl2czm9frbeviequyd/ please me out. here object: $scope.names=[ {no:'1', name:'jani', country:'norway', cities:[{city:'a1'},city:'a2'},{city: 'a3'}]}, {no:'2', name:'hege',country:'sweden', cities:[{city:'b1'},{city:'b2'}, {city: 'b3'}]}, {no:'3', name:'kai',country:'denmark', cities:[{city:'c1'},{city:'c2'}, {city: 'c3'}]}]; here html : <table> <tbody ng-repeat="name in names"> <tr > <td> {{name.no}} </td> <td> {{name.name}} </td> <td>{{name.country}}</td> ...

javascript - Convert array to string in AngularJS -

im trying convert array of strings, single string. made quick plunker of need in basic terms: https://plnkr.co/edit/t2kezj8yotdo2kxdquzd?p=preview in app im working on need use 2 different controllers , created factory controllers share data, set example that. here function trying use loop array , add scope variable, cherrypick being array: cherryctrl.cherrypick = cherrypick.list; cherryctrl.string = cherryctrl.output; cherryctrl.runstring = function createstring(array) { angular.foreach(cherryctrl.cherrypick, function (object) { angular.foreach(object, function (value, key) { cherryctrl.output += value + ' '; console.log(cherryctrl.output); }); }); return cherryctrl.output; } the console output gives: undefinedhello world undefinedhello world object:5 undefinedhello world object:5 goodbye world undefinedhello world object:5 goodbye world object:8 which confusing. i took idea loop here: ...

arrays - Alternative to designated initializers in C++ -

the style of code using designated initializers below belongs c language int widths[] = { [0] = 1, [10] = 2, [100] = 3 }; i know, there way write such simple code in c++? in c++ have write int widths[101] = { 1 }; widths[10] = 2; widths[100] = 3;

c# - Inherited DataContext - bindings not working -

following situation: got base class provides little framework making modal dialogs adorner. the base class has property of type datatemplate contains actual input scheme (all kinds of input possible) object property contains mapping model (a model class template binds it's input values). because want reuse adorner, made have contentcontrol anon has contenttemplate actual dialog design. dialog's design contains contentcontrol template bound property in adorner class. datacontext of adorner's contentcontrol set itself, of course. now embedded contentcontrol (in design) generates datatemplate , displays (in current case) textbox. textbox should bound model. therefore reused datacontext of adorner design template actual input template. here's how i've done it: the adorner's controltemplate <border grid.row="0" background="{dynamicresour...