dynamic

Dynamically display rows as columns

微笑、不失礼 提交于 2019-12-11 06:04:11
问题 I couldn't think of a good way to word the title, if anyone can come up with something better please feel free. Basically there is an old VB6 app that pulls data from a db that I have more or less completely restructured and gives the user a dump of all of the product information at once. So I need to do some inner joins to get all of these tables together. I know how to do basic inner joins but I am stuck on one detail. There are a few tables where there are multiple entries for each item.

help regarding dynamic redirect rule in htaccess

喜夏-厌秋 提交于 2019-12-11 05:49:20
问题 I need ur help for given subject. I am playing with htaccess rules first time in life. here is the scene - i want to redirect the urls - http://www.abc.com/var1 http://www.abc.com/var2 to follwing urls - http://www.abc.com/index.php?u=var1 http://www.abc.com/index.php?u=var2 In this case the values var1 & var2 can be anything (i.e. string which will contain only alphanumeric characters.) One more thing - I want to skip this rule if the url is - http://www.abc.com/SKIPME Please help me to

Dynamic where clauses lambda or query in C#

雨燕双飞 提交于 2019-12-11 05:45:15
问题 I am trying to write a dynamic lambda or query but it occurs an error.. for lambda; I created a function public IEnumerable<musteriler> GetCustomers<musteriler>(Expression<Func<musteriler, bool>> where) { IEnumerable<musteriler> _musteriler = market.musteriler.Where(where).Select(m => m); return _musteriler; } and I call like that IEnumerable<musteriler> _musteriler = helper.GetCustomers<musteriler>(m => m.MAktif == true); I get two errors in Where( where ) which are The best overloaded

How to add check boxes to a user form dynamically through a loop in VBA?

我只是一个虾纸丫 提交于 2019-12-11 05:39:10
问题 Add Check Box to UserForms Dynamically through code I am trying to collect all file names in a specific folder in multiple check boxes in a user form so that i can select one by one to move to another folder....after adding one check box i couldn't add another during run time please help. Private Sub Download_file_Click() Dim wrkbk As Workbook Dim ofs As New FileSystemObject Dim ofolder As Folder Dim ofile As File Dim mars_path As String Dim chkBox As MSForms.CheckBox Dim files_count As

NSIS Create components based on folders

自作多情 提交于 2019-12-11 05:38:30
问题 I'm working on creating an installer that has several applications that can be optionally installed. I'd like to write my installer script so that I don't need to update it every time I add a new application to my apps directory. Is this possible with NSIS? I've got code to search through a folder for sub folders and extract their names, but am having trouble using that to make components in the installer. Folder Structure -Install_Directory -Main_Application -Applications -App_A -App_B -App

Create object from dynamically load assembly and cast it to interface (.NET 2.0)

只谈情不闲聊 提交于 2019-12-11 05:22:15
问题 I have a problem with dynamically loaded assemblys and casting it to interface. Where is my mistake? Main app (load plugins): namespace Console_IFce_Test { class Program { static void Main(string[] args) { Console.WriteLine("Press any key to find IPlugin library..."); Console.ReadKey(); string[] files = Directory.GetFiles(Directory.GetCurrentDirectory(), "*.dll"); Console.WriteLine("Loading assembly: {0}", Path.GetFileName(files[0])); Assembly asm = Assembly.LoadFrom(files[0]); //Trying this,

How do I make a drop down list selection update an image on a web page?

元气小坏坏 提交于 2019-12-11 05:19:24
问题 On the site http://www.gofundme.com/sign-up/ they have the cool ability to select your currency underneath where you enter an amount. When you change the currency it changes the symbol beside the amount you type in. I'd like to do something similar with my website but don't have much of a clue about how to even go about it. Can anyone point me in the right direction? Go easy on me guys; I've done a bit of website making before but never anything too spectacular. 回答1: The code on that site is

how to prevent “operation is insecure” warning when dynamically inserting javascript into a page?

▼魔方 西西 提交于 2019-12-11 05:18:10
问题 I'm trying to add a block of meta, link and scripts to a jQuery Mobile page dynamically. The script includes a rule, I'm adding to a CSS style sheet via javascript (must be like this unfortunately). Looks like this: <script type="text/javascript" if ('addRule' in sheet) { sheet.addRule(".splash:before", "background: url("' + x + '") no-repeat center center fixed; " + "-webkit-background-size: 100%; -moz-background-size: 100%; " + "-o-background-size: 100%; background-size: 100%; " + "-webkit

Setting margins dynamically in code - android

巧了我就是萌 提交于 2019-12-11 05:14:28
问题 I have an activity which contains only ScrollView and a TableLayout in it. In my code i'm adding tablerows, everything works fine except margins - it's not working (nothing happens) Here is the code: LayoutParams rowparams = new LayoutParams(LayoutParams.FILL_PARENT, LayoutParams.WRAP_CONTENT); rowparams.setMargins(10, 10, 10, 10); for (int i = 0; i < obiekty + 1; i++) { rowparams.setMargins(10, 10, 10, 10); trs[i] = new TableRow(MainActivity.this); trs[i].setGravity(Gravity.CENTER_VERTICAL);

Dynamic log file path in mule

℡╲_俬逩灬. 提交于 2019-12-11 05:10:35
问题 I m trying to change log file path in mule dynamically I have set the system property in an expression component but since log4j2.XML decodes the value at compile time itself it is not getting reflected I have even set monitor interval in log4j.XML but it is not working how to achieve dynamic file path? 回答1: To make your log file name and path dynamically is to set the path in environment variable. In the log4j2.xml, you can do something like the following :- <RollingFile name="RollingFile"