Posts

Showing posts from August, 2014

design patterns - anti-if campaign -

I was recently running against a very interesting site which expresses a very interesting idea - anti-if The campaign you can see here. I believe that complex nested if statement is a complete pain in the back. I am currently on a project which was recently some crazy nested IFs that were correctly scrolled correctly. Corrected issues in two ways - We used the Windows Workflow Foundation to address routing (or workflow) concerns, and we implemented all our business rules. In the process of ILOG rules. NET (recently purchased by IBM)! For the most part, this has been our nested pain ... but I think myself how many people do to correct their pain in such a way that the good people in anti IFCampaign () represent a certain scenario By creating many abstract classes for what was originally covered by Nested IF. I wonder if another way to remove this complexity might be to use a IoC container such as Structured Map that can carry out the various bits of functionality and in any way ... ...

sql server 2005 - Sharing Common SQL Queries Amongst a Team -

I would not even like to think how many hours have been spent, ask the same question to write on the same question. The table in the company. When I first started my job, I recognized it as an inefficiency and started writing thoughts in a different schema for the sole purpose of the developer facility. My boss did not like it too much and it is recommended that I want to start generating my usual queries from production SQL to source control in a separate folder. This makes sense because some scripts require parameters and not all are read only. What is a general query? Problems Scripts (multiple additions) to see the relationship between multiple tables The script that we created in a stored procedure I want to find out the issues Search qualifications, if anyone Even if it can not be found then questions will be written again IDE integration, easy to IDE Very want to be able to see. I have tried SQL Server solutions but they actually suck because they only ...

sql - Asp.net membership -

अगर मैं asp.net सदस्यता सामान पर asp.net एमवीसी नमूना। मैंने तालिकाओं की खोज करने की कोशिश की और मुझे पता चला कि इसमें कई तालिकाओं हैं जो कि पंक्तियों को जोड़ते हैं। मुझे लगता है कि वहाँ एक सरल तरीका होना चाहिए। अपने सदस्यता प्रदाता में एक तरीका है: यदि यह मानक asp.net सदस्यता प्रदाता है, तो विधि एक संग्रहीत प्रक्रिया चलाती है जो कि उपयोगकर्ता को आपके द्वारा साफ करता है डीबी। यहां कुछ और उदाहरण हैं:

printf - C char array is not a string pattern? -

मुझे निम्न कोड पर एक संकलन त्रुटि आ रही है: printf ((चार *) बफर) ; और मैं जो त्रुटि संदेश प्राप्त कर रहा हूं वह है: सीसी 1: प्रारूप स्ट्रिंग नहीं है और कोई प्रारूप तर्क नहीं है ... मुझे शक है कि कुछ पुस्तकालय हैं जो मैं स्थापित करना भूल गया था, क्योंकि मैं अन्य मशीन पर त्रुटि के बिना कोड को संकलित और चलाने में सक्षम था ... पुनश्च: प्रश्न इस तथ्य से उगता है कि मैं किसी अन्य मशीन पर एक ही कोड को चलाने में सक्षम था ... मुझे जीसीसी संस्करण में कोई फर्क महसूस हो सकता है, इस तरह से एक समस्या हो सकती है? नए जीसीसी संस्करणों को मुद्रित करने के लिए प्रारूप स्ट्रिंग पार्स करने की कोशिश करते हैं और इसी तरह की फ़ंक्शन और यह निर्धारित करते हैं कि क्या तर्क सूची प्रारूप स्ट्रिंग से सही ढंग से मेल खाता है। यह ऐसा नहीं कर सकता क्योंकि आपने इसे पहली तर्क के लिए एक बफर पास कर दिया है, जो आमतौर पर एक प्रारूप स्ट्रिंग होगा। आपका कोड गलत नहीं है, यह सी का केवल एक खराब उपयोग है। दूसरों का उल्लेख है कि आपको एक स्ट्रिंग प्रिंट करने के लिए एक प्रारूप स्ट्रिंग के रूप में "% s" क...

iphone - Cocoa Touch: Accessor method + memory needs clarification -

Please consider the problem of creating an array and return it to a parent object. Please see my code and comments below. My question is this: why the method works three methods are one and two while not // ****** * ************** Master. M. *** ************************************************************************ ************************************************************************************************ ** // bus array and call accessor declared NSMutableArray * allElementTypes; AllElementTypes = [Element Object Balanced Elements]; // ******************************************************************************** (EXE_BAD_ACCESS) + (NSMutableArray *) badElements {NSMutableArray * Array = [[NSMutableArray alloc] initWithObjects: @ "crab", "@ poison", @ "snake"]; Return array; } // does not work (EXE_BAD_ACCESS) + (NSMutableArray *) badElements {return [NSMutableArray arrayWithObjects: @ "crab", @ "poison", @ "sn...

objective c - Purpose of methods that only call super? -

In Xcode, many of those auto-generated class files (especially those for which UIViewController are subclasses) include those methods Which will be similar to the following: - (zero) dealloc {[super delok]} For me, it is absolutely useless - if all the rules This is going to be super call, why is it absolutely? Can these methods be generated? The default template code defines the methods that fill your customized code with call super To call you have to remind you. Generated code does not mean an ending application. Think of the call similar to the empty class definitions. You fill in the classes and therefore fill the definitions of the methods

c# - Setting tooltip width and height dynamically -

There is a way to dynamically set tooltip height and width in WPF (C #) (which means code ). Thanks for the help. System. Windows Control Image td = new system Windows Control. Image (); Bitmapmys mybitmapimage = new bitmapmay (); MyBitmapImage.BeginInit (); MyBitmapImage.UriSource = New URI (Directory.GetCurrentDirectory () + "/Homepage.jpg"); Td.Width = 530; Td.Height = 392; //mybitmapImage.DecodePixelWidth = 430; //mybitmapImage.DecodePixelHeight = 2 9 2; MyBitmapImage.EndInit (); Td.Source = myBitmapImage; Text Block Text Block = New Text Block (); Brush Canon Conif = New Bronze Connor (); String strColor1 = bannerColor.SelectedItem.ToString (); StrColor1 = strColor1.Substring (strColor1.IndexOf ('') + 1); SolidColorBrush col = conv.ConvertFromString (strColor1) as SolidColorBrush; TextBlock.Foreground = Call; TextBlock.FontWeight = Font Wights. Bold; TextBlock.FontSize = 18; TextBlock.FontFamily = New system. Windows Media. Fontfamily ("Tahoma");...

security - Securing ASP.NET MVC Application Checklist -

I'm looking at a set of guidelines or a checklist that you can also get to the public ASP.NET MVC website. Can go. I just want to make sure that I am not making clear and well-known issues while deploying a website. Thank you. As always, make sure you have the right encoding output - note that I'm saying encode here and not HtmlEncode. If you are outputting content on HTML If you are output in JavaScript then you want to use the Javascript encoding function - this will help you against Cross Site Scripting (XSS) Use assisters who help against CSRF attacks where necessary (or perhaps everywhere) Depending on how you access your data collection, if it is a SQL database , So to protect yourself against SQL injunctions, remember either questions with parameters, stored procedures, LINQ or what you have. When you do the test - make sure that you come The test data Dji output (goods where HTML failed to call. Encoded, easily, & lt; script type = "text / javascri...

optimization - Is code clearness killing application performance? -

As today's code is becoming more complex than the minute, it needs to be designed to maintain code - reading Easy in, and easy to understand. It's being said, I can not help but run programs such as Winamp or some sports a few years ago, but you need to remember that you need a high performance program because your 486 100 MHz will not play MP3 games with the beautiful MP3 player that will consume all your CPU chips Now I run the media player (or whatever), starts playing an MP3 and it comes 25-30% of my four core !! If someone can do this 486, how can they get so many processors to do so? I'm a developer myself, and I always advised: Keep your code simple, not time-to-time optimizing for performance It seems that we "at least as much CPU as possible". Trying to use it if it does not take too much CPU . So, do you think we're killing performance by ignoring optimization? Clear code does not kill performance kills poor code performance.

javascript - Pass in jQuery/plainJS variables/functions of a current scope to anonymous function called from current scope -

How to pass the current scope variable and functions of an anonymous function in plain JavaScript or jQuery (if it is specific to the framework) . For example: jQuery.extend ({someFunction: function (onSomeEvent) {var variable = 'some text' onSomeEvent.apply (this); // how Please pass the current scope variable / function in this function? Return tap; _someMethod (arg) {console.log (arg);}}}); Everything from firebug should be logged in with the above function: jQuery.someFunction (function () {console.log (this.variable) ; // or console.log (variable); console.log (this._someMethod (1); // or jQuery.someFunction._someMethod (2);}); Thanks! In JavaScript, there is only scope within the function. If you have your variable inside the function with var If you specify, you can not access them from outside of this function. This is the way to create personal variables in JavaScript. / P> You can use the This variable, which is present Indicates the o...

c# - CodeContracts: How to fullfill Require in Ctor using this() call? -

I am playing with Microsoft's codecontracts and I had to face a problem that I could not solve Was there. I have got a class with two constructors: public fu (public float F) {contract. Requirement (f> 0); } Public Fu (int i): this (float) i) {} The example has been simplified. I do not know what to do for the second constructor's f 0. Is it possible with contracts? You can simply add pre-condition to the body of another constructor. Public Test Class (float F) {contract. Requirements (f> 0); New exception throw ("foo"); } Public Test Class (Int I.): ((Float) i) {Agreement. Requirements (i> gt; 0); } Edit Try calling the above code: TestClass test2 = New Test Class ((integer -1); You will see that the pre-condition is thrown before throwing a regular exception.

java - Unable to inspect variables on eclipse -

While debugging the remote Java application, I am unable to inspect the variable on the eclipse. Edited: I am not able to inspect any variable. The message ' variable name can not be resolved in the Inspector mini window. I can see the content when I run the test code locally. Absolutely fixed that the class deployed on the remote server has been compiled with the information & Nbsp;

class - Interpret text input as PHP -

I would like users to check a PHP class, which reshape crop and images among other things. I want to write them a PHP code in a text field, send the form, and then their code will be played. How can I do this? Or is this the safest way for users to demo a PHP class? Yes. You can use the eval statement in PHP (which is first linked by John), although be very careful you do not really want that users be able to run the code independently on your machine. My recommendation will try to come up with a different approach to creating populations - maybe some flexible examples ... but don do let them run the code directly

Display a fixed "ToolTip" when an input receives focus, using jQuery -

I have a form that has many textboxes (input type = "text"). I would like to display some sort of tooltip when the text box gets focus and hide it when it loses focus. Ideally, tooltip should have "speech" bubbles on the left or right side. I found a little mistake and found, but it seems that a plug-in for the tool tip is hovering over something, but I want it. Try to force my text into a text box: $ (function () {$ ("input [id $ = tbMyTextbox]"). Qtip ({ Content: 'My tooltip text'});}); (The selector works, I am not using the # TBMITx box because it is ASP.NET, and I do not use the & lt;% = tbMyTextBox.ClientID%> Because I have no code, I have a .aspx file, but that off-topic-selector works with other stuff itself, so I think it's okay.) Can someone give me a hint about how this can work or I have a separate JQuery plugin that does this? Thank you: EDIT: Thanks, Show Event is Going! $ ("Input [id $ = {TBMIT...

c# - How do you allow two DLL's with same namespace.class to exist in the same application? -

Specifically, we are trying to upgrade our telecommunications controls in the latest version. Unfortunately, the old DLL has become so old that many control properties have changed so we have decided to upgrade only the teleological control which is giving us the problems (RadDeet Controller). So bin looks something like this: Radchrid.Net2.dll RadEditor.Net2.dll (We only want to get rid of this one) RadGrid. Net2.dll RadInput.Net2.dll RadPanelbar.Net2.d RadSpell.NET2.dll RadTabStrip.Net2.d RadToolbar.Net2.dl RadTreeView.Net2.dRadUpload.Net2.dll RadWindow.Net2.dll Telerik.Web.UI.dll ( This is a new DLL) The problem is that all namespace and class are similar to the old DLL (the same as the new web site. Here's the typical error I'm getting: Compilation Error Description: An error occurred during the compilation of the resources needed to serve this request. Please review the following specific error details and modify your source code appropriately. Compiler err...

Does Page class adds ViewState for Controls created in CreateChildControls in ASP.NET -

Whether the page class has added the viewstep for the controls created in CreateChildControls, I mean I have a page that I add some control on the page. They are all verbal and competent liars are false, I have a question that can anybody see them in the viewstate of the viewstation page? Thank you. You can read it and see how it is a way to raise your page: It seems that you can disable the view state but you may have concerns about your own controlstate in control. In addition, if you are adding these controls to a datagreat, then the data grid stores all of its contents in the state of view. See here:

javascript - Is it possible to test for scripting possibilities in the head of the document? -

I want to load a specific - additional style sheet when scripting is disabled in the browser. Is there a good / clear way to test it or should I just use a script tag and a document. Write style sheet to add? I used to work on the other side. If scripting is available then override the styles, that is, instead of trying to check the availability of JS, make it without the JS, at the top of a page. I will probably roll them into a stylesheet and then one: page.

ms word - C# WPF Open File and edit certain text -

So let's say I've got just a text box and an OK button. He also wants to word the user types, and when he is OK, then it opens a particular file called Test.doc and CTRL + F for the words "test" and in the text box user Changed it has been entered. How can I open a word with the user's defined word and change the examples of word test? The format of the document, you can actually use the following for any type of file: var content = Sistmkiokfailkreadalltest (@ "C: \ Maydokdo"); Content = content Change ("Test", "Test"); System.IO.File.WriteAllText (@ "C: \ myDoc.doc", content); The best way is to use the MS Office Interop Library. Andrew

WPF ListView - Sorting by Nested Properties -

I have recently stumbled upon an issue where WPF ListView restricts the ability to control Organize its objects, in particular, I have a lot of trouble trying to get a order description to identify nested properties (properties of properties). For direct-forward sorting by propreties, the following line should work: listView.Items.SortDescriptions.Add (new ordering ("MyProperty", ListSortDirection.Ascending )); And in fact it works well for me, however, because ItemSource for my ListView one (strongly typed Done) is DataTable , some columns are bound to the nested properties of the row (i.e. rowset.r.b.po.b.p.prototype binding path style) - this is the way that the ado Net dataset work for hierarchical databases. What I would like to do is something like this: listView.Items.SortDescriptions.Add (new ordering ("MyProperty.SubProperty", ListSortDirection.Ascending)); But unfortunately this line throws a logic exposure : property of ...

vba more realistic random number generator -

I know that I can use the function / variable of a quasi-random number generation called Rnd. However, I have found that whenever I use rand in my user form, this order always looks: First run: 0.705547511577606 Second instance: 0.533424019813538 ... One result, in order to see the sequence of numbers, B / C happens every time when I re-launch the userform, it does not seem to be random. Are there other functions in the VBA function set which will make it feel more random? thank you in advanced. Rnd Random before entering a call on itemprop = "text"> randomize timer Code> This will give seed to the random number generator using day time.

focus - How to repeat a mouse click in .NET -

My app runs as a plugin inside the second windowed app. Thus, my window does not often focus , If someone moves the mouse over a button / menu and clicks one time, then it all sets the focus on my window. Then to get the functionality of the actual button it has to be clicked again. This is a small annoyance, but I want to get rid of it. First of all, whenever the mouse enters my dialogue space, I still try to focus, but it proves to be very annoying. So what I want to do, repeats the mouse click, so it seems that a single click is pressed both the focused buttons and buttons. Obviously I should do this when click with a set of fonts, otherwise it will run the button function twice. Any suggestions? The deep and evergreen debtor, David

.net - process connecting to another process to gather profile information? -

Is there any built-in mechanism that allows us to write two programs? A and B A process with a special hook on which B joins itself, it will allow B to collect information that provides those hooks. Specifically, in our process it would be good to be able to dial anyone else and be able to collect metrics such as how many times the function was called, last X minutes, average run length, how many items are in this or cache etc. You can write an application with or, You can use, runtime options, config files, or registry settings to control how your logs will be verbose. Or you can pay a lot of money for existing commercial profiling solutions. You can also use instead of logging.

c# - Is there a less verbose solution than using the Provider Factory pattern? -

When .NET 2.0 came out I was very impressed by the provider's factory pattern which was used for many services that At that time ... and started using it everywhere. But then I ran into real troubles with it: On CE, there was no config system, so it to ensure me There was no good answer for how it can be ensured that there was never a good answer to ensure that both the stable manager had wrapped up all the methods of the provider: the provider could implement an interface, But interfaces on static methods C (AAAI) can not be used. Therefore there was always an opportunity to deviate between the wrapped provider and the stable manager. The quantity of boiler plate code was shot through the roof, and my productivity turned out to be the opposite floor, instead of just calling for example. Method (); I was calling it, but through a stable manager. Dwarwerk, who was implementing his example of Dwarver (), which usually became a common code in ProviderBase class, who in...

javascript - Microsoft Script Editor for Internet Explorer on XP Home? -

I understand that Microsoft Script Editor is the best debugging utility for IE to enable debugging in IE 6 on XP , I get these instructions: On Windows XP SP2 +, the option is divided into two: Device- > Go to Internet Options ... -> Advanced-> Disable Script Debugging (Internet Explorer) Go to Tools-> Internet Options ... -> Nnt-> Disable script debugging (Other) The first will enable debugging for Ancheking IE. Once enabled, I'm supposed to see a new menu under "View> Script Debugger" to activate the debug. Unfortunately, unchecking the check box and restarting my computer reveal this new "script debugger" option. It works on Windows 2000, but it fails for XP SP3. Any clue on how to install MSFT script editor for IE6 on XP SP3? Recommendations for Script Options Editor for IE6? You can debug. Instructions Edit: MS's site does not play well with earlier versions of IE. It is impossible to expand th...

continuous integration - Need Help In configuring CruiseControl for Java Projects -

I am new to crucile control. I have java projects that should be automated so someone asked me to cc for java projects Explained about configuring. Any information about this is appreciated thanks, gang cruise control is not worth the time of IMHO I had a little experience with it and it was in Hudson Everyone transferred was happy and the others were able to easily setup the projects.

How to set the character encoding for a file in VIM -

I am using : set fileencoding = utf-8 and saved the file properly But the next time I open it, I get distorted letters and : set fileencoding? says that the option is not set. From Docs I understand that I should not touch encoding option. What is the correct way to specify the encoding for the file in VIM? use set fileencodings = utf-8 (finally with one) in which a different encoding list will attempt to list inventive encoding, unless one thing is done and it will set up the filecoding in that encoding. If none works, file encoding is set to an empty string which will result in default behavior. In addition to this it would probably mean adding your vimrc so that you do not have to do this continuously.

organization - Default directory layout for Java project -

Is there a standard directory layout for Java projects? What layout do you like most? I'm just asking about a more complex layout than 'src' and 'bin' in the directory of the project (ie, where do you prepare your test classes, etc.)? ). Thanks in advance. I usually use / src for source code, test for test code / test Or / test, / build for class files, / lib or / libs for distinction, dist / for my JAR and libraries (hence I can narrow down the directory and distribute without thinking), and / docs The documentation for (including Javadak) goes into my ant build script directory, whose names I keep May include are Sbdireririjh. When I create, I / J to the build and copy / lib and /docs/dist.

css - Floated image to left of a ul is ignoring margin/padding -

I have a paragraph after the list listed, which has several inventory items, I also have an image that stands on the left side The problem I am facing is that the list item margin / padding is overlapping with that image. I think it should be like a bullet next to the image of the indent. I wrote for debugging, where you can see my problem in action. All this is inside a CMS, so image dimension variables, as well as paragraphs and possible lists in text Any solution? (See my first comment for pictures.) ul {Overflow: Auto; } Wrapping me around the image will have the added benefit of not having list items.

SQL Server IF NOT EXISTS Usage? -

ठीक है, तो मेरा स्कीमा यह है: सारणी: टाइम्सशीट_होर्स कॉलम : Timesheet_Id (पी, पूर्णांक) Staff_Id (int) BookedHours (int) Posted_Flag (बुलियन) यह तालिका का एक अत्यंत सरलीकृत संस्करण है, लेकिन यह इस व्याख्यान के प्रयोजनों के लिए काम करेगा। मान लें कि एक व्यक्ति के पास केवल एक टाइलीशीट रिकॉर्ड हो सकता है। मैं क्या करने की कोशिश कर रहा हूं, वर्कलाॉग नामक किसी अन्य तालिका में रिकॉर्ड जोड़ता है। प्रत्येक रिकॉर्ड में इसके साथ संबद्ध समय है। जब वह तालिका अपडेट हो जाती है, तो मैं Timesheet_Hours को भी अपडेट करना चाहता हूं। Timesheet_Hours को अपडेट करने से पहले, मैं पहले देखना चाहता हूं कि संबंधित टाइम्सशीट पहले से ही पोस्ट नहीं हुए हैं, और तब मैं जांचना चाहता हूं कि वहां क्या है वास्तव में पहले स्थान पर अपडेट करने के लिए एक रिकॉर्ड है। यदि बयान का पहला भाग है, जो यह देखने के लिए कि टाइम्सशीट पहले से पोस्ट नहीं हुए हैं, ठीक काम करता है समस्या दूसरा भाग है। यह देखने के लिए जांच है कि यह रिकॉर्ड पहले से ही अपडेट हो रहा है। समस्या यह है कि यह हमेशा एक त्रुटि उठाती है। NB...

c# - Set ConnectionTimeout in System.Data.SQLite -

I'm experiencing a database connection timeout with my SQLite connection, but I'm not sure how Connection over time connection timeout command timeout can be set with connection at ConnectionString.DefaultTimeout. Connection connection is read-only. Any suggestions? Thanks, Brian This connection is set in string:

c# - Updating bound controls to ApplicationSettings -

I am trying to use the .NET 2.0 application settings for the first time, and a little searching for it ... Puzzling in some ways I am hoping someone can help me explain why I am wrong. I have a generic settings class that I have implemented that application sub-class of the settingsbase. I have applied a property, and tagged it. It starts to work I have tried to force a list box for the property, and it also works. When I open the form, it loads the property properly. The problem I am running is that if I want to update settings and databases without reloading the format, then this does not work. There is no method for refreshing the binding, and what I am reading should only be updated automatically (applying the Appattingbase IPPro Change Notifail, which should subscribe to databases .. but this is not working) . If you have databanking, you can not manually list. Here's my code: Settings.cs Public class settings: ApplicationSettingsBase {public settings () {if (...

objective c - How do you get the int and modulo (mod) of division with an NSDecimalNumber -

I NSDecimalNumber and confused by its "behavior" I have a NSDecimalNumber which represents the dollar value, $ 37.50 Says. I have to find out how many times 5.0 says that goes in number and then know what is left. I can get a direct division and get 7.50, but I need 7 mode 2.50. I may be converted to an integer I, but "Saints" a few tricks in need of saving is that thinking? itemprop = "text"> Using Peter Hoshes example, but with IOS code: Ansdisikmnanbr * Dividends = [Ansdisimlnmber Dsmlvsmuhvidth Disiml: [[Ansanmber Snkyawadatmk repeating: 37.5] Dsmlvvol]]; NSDecimalNumber * divisor = [NSDecimalNumber Dsmlvsmuhvidth Dsmlwata: [[Ansanmber Snkyawadatmk repeating: 5.0] Dsmlvmuly]]; NSDecimalNumber * quotient = [dividend decimal by Snkyabindubajit: Bivier with denominator: [Ansdisimlnanbrhandlr decimal decimal Snkyahandlrvithroundingmod: Ansarunddaun scale: 0 raiseOnExactness: not raiseOnVerflow: No raiseOnUnderflow: No raiseOnDivideByZero: No...

c# - Convert or map a class instance to a list of another one by using Lambda or LINQ? -

मेरे पास निम्न दो वर्ग हैं: class MyData {सार्वजनिक सूची & lt; string & gt; प्रॉपर्टीलिस्ट {प्राप्त; निजी सेट;} सार्वजनिक स्ट्रिंग PropertyB {get; सेट; } सार्वजनिक स्ट्रिंग PropertyC {get; सेट; }} वर्ग MyData2 {सार्वजनिक स्ट्रिंग PropertyA {get; सेट;} सार्वजनिक स्ट्रिंग PropertyB {get; सेट; } सार्वजनिक स्ट्रिंग PropertyC {get; सेट; }} अगर मेरे पास MyClass का एक उदाहरण है, तो मुझे इसे MyData2 की सूची में बदलने की आवश्यकता है I मैं इसे MyData.PropertyList को लूपिंग करके और अन्य प्रॉपर्टी वैल्यू को कैशिंग कर सकता हूं और उन्हें MyData2 की एक सूची में डालने का काम कर सकता हूं: string propertyB = myData.PropertyB; स्ट्रिंग propertyC = myData.PropertyC; सूची के & lt; MyData2 & gt; MyData2List = नई सूची & lt; MyData & gt; (); Foreach (myData.PropertyList में स्ट्रिंग आइटम) {myData2List.Add (नया myData2 () {आइटम, propertyB, propertyC}); } सुनिश्चित करें कि यह LINQ या लम्बेडा अभिव्यक्ति की नेट 3.5 सुविधाओं के साथ किया जा सकता है? यह अच्छा और आसान है आ...

string - Replacing characters in Ant property -

Is there an easy way to take the value of an asset and then copy it with some special characters? Say propa = this is a value . I want to convert it everywhere to underscore, resulting in propb = this_is_a_value . I think you want: & Lt; Propertyregex property = "propb" input = "$ {propa}" regexp = "" replace = "_" global = "true" /> Unfortunately, given examples are not very clear Is trying but it is worth trying to do that. If you do not have any underscores, then you should also check that you also have to use the defaultValue option.

Facebook API call with email to return UID -

I am trying to make a simple API call with Facebook, to return the e-mail given by the user to the UID for. Thank you! :) Apart from displaying the user I am not doing anything else with the UID, so I do not really believe that it is worth their certification. I'm pretty sure that you have to be a UID to get any information about the user. Email hashes or proxy-related emails are not indexed columns (see User function table). Although getting information about the current log-in user is very easy. The Facebook Javascript API / Library is a good example. FB_RequireFeatures (["API"], function () {// API API key and // site relative pass API Client Object URL to xd_receiver.htm FB.Facebook.init ( Api_key, channel_path); var api = FB.Facebook.apiClient; api.get_session () .UID;});

python - How to filter files (with known type) from os.walk? -

I have a list from oswalk . But I want to exclude some directories and files To know how to do this with directories: For the root, darers, files in OS Walk ('C: / My_File / Test') for the file: If the "Update" in the Director: dirs. Remove ("update") but how can I do this with files, how do I know because it does not work: if "* .dat" Files in: files.remove ("* .dat") file = Fi for files in files, if not, then founds (".")]

How to generate a local user profile for a new user account in Windows? -

I created a new local Windows account and want to modify some personal data for this newly created profile. But if this account was never logged in, then profile data is not prepared and therefore I can not modify it. I want to modify things like NTUSER.dat to optimize the current user registry and prepare things in the user's personal folders. I can not use default profile, because it is possible to create more than one local user account with different settings in my application. And these settings should not be used for the next new user account. Is there a way to start this generation process for the User Profile folder? If not, then there is a good way to automatically log on to this newly created user, unless the profile is created and then the logoff closes? The solution should be able to work under Windows 2000, Windows XP, Windows Vista and Windows 7. (I am using .NET 3.5 / C #, but I also open all kinds of answers) A friend can help me and get the answer....

Magento custom attribute default value not showing in front end -

I have added some custom attributes in the admin section of our Magento 1.3.2.1 installation and I have given some of those properties The default value problem is that when I try to get attribute from product object, the default values ​​are not returning: $ _ product-> getCode () Logically, I think that if there is no archive against the product Education is, then gets back to the default value, but it does not appear (unless I do not know the clear). Attribute Properties: Default value: value Unique value: No Value requirement: No P> Input validation for the store owner: Any Apply to: All Product Types Foreground Properties: Use in Quick Search: No Use in Advanced Search: No Comparative R-end: No Use in layered navigation: No Use in search results Layered navigation: No Use for Price Rule Conditions: No Status: 0 Allow HTML-Tag on Front-End: Yes Front-End But product view on the page: Yes Used Product List: Yes Used for the Sort...

c# - Strip double quotes from a string in .NET -

I am trying to match some incompatible formatted HTML and I have to draw some double quotation marks. Current: & lt; Input type = "hidden" & gt; Target: & lt; Input type = hidden & gt; This is incorrect because I am not running it properly: s = s.Replace ("", ""); This is incorrect because the blank character character (for my information) is not: s = s.Replace ('', ''); What is the syntax / escape character combination to replace double quotes with an empty string?

isapi - Automatically add Last-Modified header IIS? -

Is there an ISAPI filter which can automatically add final modified headers to IIS? According to this MSDN article since IIS 6, you should do it for yourself already:

design - Efficiently record and store page view counts in the database? -

Show sites like Stacks overflow count, save, and display visual counts for pages. How do you do it efficiently? For example, we take the number of views for stack overflow queries. I look at the following options. Option 1 When the application receives a request for a question, the count in the question table increases. It is very disabled! The majority of questions are read-only, but you are attacking every single update. Option 2 Keep any type of cache that calculates the new view of the map questionIds. When the app receives a request for a question, increasing the view number cached for the question id you are caching marginal increase in ideas. So far, so good. Now you need to count in the cash from time to time. This is the second part of the problem. You can use another thread or some sort of scheduling component. This is actually a different question and partly depends on your server platform (I am using Java). Or, instead of using a different thread, after the numb...

master pages - How can I get the Google Mini search results, using the iFrame, to not open in the iFrame -

I have an asp.net site using Google Mini. I have a search box on the main page that shows a search result page Redirects to the results that show results in IFrame. This approach has been taken from all documents provided by Google to the Mini and it seems very easy. The doctor does not cover (or I can not get it) that one click on any other result. Aspx can be a page, that page opens with everyone, which is the glory of the masterpiece inside the IFrame, which is clearly not desired I end up with a page in one page To grab XML search results and to manipulate myself, how do I get a search results link to open like a normal page? You can add this javascript to your masterpage so that the user clicks it when the user clicks the link & lt; Script type = "text / javascript" & gt; Try {if (self.parent.frames.length! = 0) self.parent.location = document.location; } Hold (exception) {} & lt; / Script & gt; Another way to do this is to use the tar...

asp.net mvc - Dynamic typed ViewPage -

Is this possible? Here's what I'm trying to do: Public Action Index () {dynamic p = new {name = "test", phone = "111-2222"}; See Return (P); } and then my view System.Web.Mvc.ViewPage & gt; Dynamic & gt; and attempts to print Model.Name. I am getting an error: '& lt;> f__AnonymousType1.Name' is not out of reach due to its security level So basically, am I just not possible Am trying to do & lt;% @ page title = "" language = "c #" masterpage file = "~ / view / shared" site.master "inheritance =" system. Web. MVC .View page & gt; Dynamic & gt; "& Gt%; & lt; asp: Content ... & gt; & lt;% = Model.Name%> & lt;% = Model.Phone% & gt; & lt; / ASP: Content & gt; ; The view is built into the constructor frame. anonymous type Can not be backed by a method; They are only valid within the scope of the law in which they are defined....

javascript - jQuery difficulties in FireFox & XHTML -

I have recently switched from XHTML to HTML ... do not start with "why" - let's just say That was not an option for this ... When I was HTML, then this function was working fine in IE and FF, but now with XHTML I get the following error in FF: height alignment function revBars ( IsEFBOutput, isIXPPreview) Ribhashit the {ifixPreview) isIXPreview = false; Var heightElement = $ ('& lt; div id = "resizeDetectingElement" style = "position: full; left: -9999999px height: 1em;" & gt; and & # 160; & lt; / div & gt;') .prependTo ('body') .get (0); Height element.centralheight = heightimension.offetheit; // Firebug says that the error is here. included in (); Window.onresize = Refresh; SetInterval (function (if (heightElement.currentHeight! = HeightElement.offsetHeight) {heightElement.currentHeight = heightElement.offsetHeight; Refresh ();}}, 500); Enter function () {var px = "px"; Var Color = (document.s...

c++ - Visual Studio 2005 Linker problem -

I'm new to most of the Visual Studio, so I'm sorry that this is a basic problem. I have a solution in which a number of projects including I project a set of pre-existing files to me that I use coded functionality in the new class in a new class was added to Project B Project A. Project A has been created first, and the .lib file is generated, and that The lib file is added to Project B. However, when I go to create a .lib file, a link error for project BI gets, refers to the new functionality in Project A that I had added. The resulting from Project A 'Use Dnpbin' command with the .lib file, I notice that the more I that functions like I did not have it, those created went .obj file after compiling a new class of Project A. The symbols are included. Any ideas why those symbols are not present in the project's A.Lib file? I think that these two DLLs projects on Windows or they __ declspec ( Dllexport) need to export symbols by decorating with, or you need...

linux - How to attach additional information to a Pixmap? -

In Windows' and Maco's Metafile (WMF / EMF and PICT / PDF), any information you go along with Metafile Can attach - this can be some specific application for you. How do I get the same result on Linux? I'm not using GDK or QT - just "plain" XLib, XT and Motif The idea is that I want to send someone else by copying my application (for example), for example PIXMAP, but still amending the information sent in my custom format So that when I return the same object, I can recover this information and make the object editable in my application. The x pixmap format, or XPM format is a subset of the C programming language. An XPM file has a C style array with image data and you can also make comments in it. I am not sure if they are standard for their metadata such as JPEG etc. In One / * Comment * /

java - Where to fit in Jasper Reports - front end or business? -

I'm trying to use Jesper reports (v3.5.2) Web app This webpage already uses JSF (woodstock) for front-end and a MySQL db with EJB3 (with JApa and as a hibernate provider firm). My question is - Where to beat the code for the creation of Jasper based reports? I'm completely confused about it. Should I put it in JSF Front End? Or should it be a "report" module in business logic as the session's beans? I would think that the right place for this is the business level as a separate module. I will call a business method with the name of the input method map and report format as the parameters of the business method. And in return, I can get PDF / html generated, after which I can send it to the browser. Am I on the right track with it? Can you suggest ways to do this? In addition to this, I would like to use EJBUL because I already have JpA Thank you. If you are going to embed jsper as part of your ear, then I would say that it should be flat in a cl...

How to capture/encode special character for SQL Server in java app? -

I have Java app + SQL Server database DB operation uses JDBC with dynamic SQL string. Example: Select the column from the tab where the column = stringperm is the StringParam user input. If the string parm contains the apostost, then the Java app will throw exceptions and say SQL can not be executed. Never insert a user directly into an SQL query You must use the prepared space. Without changing the Java code, I do not see any way to make it secure.

memory management - Java input = "" isn't the same as input = null? -

I am running a J2ME application and in some serious memory problems. So, to clarify, I have processed a large input string and its data in another step and clean it. But as long as I did not set input = null and the problem is not resolved by input = "" Done Should not it be in the context of memory management? Can anyone tell me the difference please? Thanks, RAIT for (int x = 0; x & lt; = ChunksPartCount; x ++) {_model.setLoading_bar_progress (x * ChunkSize)); Input + = web_service.FullCompanyListChunksGet (X, Chunky); If ((x * chancishey)> 5000) {readXML (input); Input = null; }} Edit: Still as a solution I want to flag an answer. I think the comments of mmers are going in the right direction. Each variable is actually "data" in memory. Input = "" assigns input to string object. There is a length (0) and an empty array, as well as some other figures associated with it. input.length () will return 0 at this point...

ajaxcontroltoolkit - Ajax Control Toolkit - Use client-side button to activate tab -

I am using the TabContainer / TabPanel components of Ajax Control Toolkit. I want to hide the tab itself and want to use the button somewhere else on the page to activate one of the tabs without posting it back on the server. I can show and hide the tab by grabbing my customer ID and manually setting visibility and display styles. But is there a javascript function that I can call to do this and whenever I click on an actual tab, even then the magic behind the scenario? Post-text "itemprop =" text "> example: find var tab = $ (" Client ID of tab container "); tab.set_activeTabIndex ( 1); // Activate the second tab panel tab .getFirstTab (). Set_enabled (false); // First Disable Panel

What's the Best Way to Catch the Return Key in a PasswordBox? (WPF/XAML) -

What's the best way to catch a return key in a password box? (WPF / XAML) I have a textbox field and a password box field on a login box (for username and password entry) I have a login button that fulfills the login verification process Invites you The return key is required to respond in the password box in the same manner, so that the user has his username and password, and then return to log in. Does anyone know how this is done in WPF? Any help is appreciated. One easy mechanism for activating the button's code is WPF button class provided a property called IsDefault When set to true, if you focus on some objects when you return to the window, the code of the click event code will be automatically removed. This mechanism works like a magic with the password box .

binary - Extra bytes in .mid files -

I am trying to read information from a .mid file, but I see an extra byte that does not seem to be Is not part of any MIDI message I'm not sure how to predict / hand it with and it's throwing everything in my project any suggestions? Here are some examples: 4D 54 72 6 B 00 00 04 48 Track Header 00 Change the program 00 FF 03 07 54 72 61 63 6 B20 31 Title of track 00 B 05 00 Controller Event 00 64 00 00 06 00 00 00 00 00 B 20 20 Controller Event 00 FF 58 04 C 03 C 08 Time Signature 81 89 ???? 50 FF 51 03 F 42 40 Tempo 00 FF 2F00 End of Track 00 FF 21 01 00 Unknown Meta Event 30 B 9 00 00 Controller Event 00 07 64 01 A 32 01 5 B ???? 14 01 5d11 01 20 00 00 00 ???? Change 00 C Program 23 8 C7 C 90 23 ??? I suspect that I also have a breakdown because some of these are zero-zero delta times for no reason. Every midi event has a delta time which is either 0 (this indicates that it happens at the same time as the previous event) or some positive value (it shows that afte...

Recursion/iteration troubles, transforming an array of words into phrases -

I'm trying to create a list of "phrases" using an array of word lists. I have an array that looks like this: [['big', 'small', 'wild'], ['brown', 'black', 'spotted'], ['' Cat '', 'dog']] As a result, the first word is the first word in "phrase"; second is the second word, and so on. The number of word lists is variable, it can have two lists or five lists of words. I am having trouble making that array look like this: [['Big', 'brown', 'cat'], ['big', 'brown As a result, the order of the array does not matter, but if the original array has three, then ... as a result of the word lists, the resulting nested array should be three words long. I am writing it in javascript, but in the language you prefer, the Rican concept must be basically the same. How about an implementation in C #? Unfortunately, the manipulation algorithm in the list h...

security - How safe are PHP session variables? -

I have a login script that verifies the user name / password against the data in the 'Users' table. Also, I have a 'roles' table that specifies the access level of a given user. Assuming that I am using a secure login script, in order to find the user's authorization level and store it in the session's variable, simply execute an additional query on successful login against the 'roles' table. Is there a security hole? This idea would be that with a mixed authority on any page, I could query session variables to enter the session's user's authentication level. Thank you. It is quite safe compared to sessions, say cookies but it is still possible to steal a session And thus the hacker will have total access to whatever is in that session. Some ways to avoid this are checking IP (which works very well, but very little and thus is not reliable on your own) Generally, with a per page, you have " Token ", so that each page checks o...

.net 3.5 - ASP.NET 3.5 :No Postback triggered for button click -

developed Aspiknet page in VS 2008 to me. It has a text box and a login button. Required firewall validators and validation groups are affiliated to control validity. I also wrote the Settle Handler to click the button. But the button is not clicking on. No posts are coming back. Why can anyone tell me? HTM lmarkup & asp: textbox id = "txtloginpass" runat = "server" & gt; & Lt; / Asp: textbox & gt; & Lt; Asp: RequiredFieldValidator id = "RequiredFieldValidator2" ControlToValidate = "txtPassword" Validation Group = "Login" error message = "Please enter password." Runat = "server" /> & Lt; Asp: button id = "btnlogin" runat = "server" text = "login" onclick = "btnlogin_lick" validation group = "login" /> Validation generates client-side JavaScript, which can prevent a postback if the required field is empty.

ASP.NET: How to avoid parsing part of a page -

I have an ASP.NET page that has some & lt;% and%> that I do not want ASP for processing How can I specify a .NET Compiler section not parsed? You can comment like those sections: & lt;% - (anything to ignore) -%> Or if you mean that you are literally & lt;% and%> characters in your page, you should always include the & amp; Lt; and & amp; ; Gt; Instead of & lt; More>.

Making ViewModel Properties Visible To Binding In Silverlight -

I am bound to my Silverlight view object (named Client) and Observe Collection (named contact) property, my client class Has some string properties and the ObserveWeb collection, which is called a contact, is a property on a client called MyView-Model (which implements INotifyPropertyChanged) that contains client objects. If I list the object to ObortableCollection on Listobox In the RAY scene: ItemsSite = "{Binding Path = Client.Press, Mode = Dove}" Add more items to the archive, see updates right and I'm showing my newly added contacts It all works very well. If I see this Public ObservableCollection Contacts {get {return Client.Contacts; } And ListBox for item resource = "{binding path = contact, mode = two}" The view is never updated. I contact clients like this: Client. contact. Add (New Communication) Why is not the contact list updated? How can I change this so that it does? What is the client? Is it OK to force contacts? After adding ...

Is it wise to use ‘databinding’ and the ‘Data Sources’ window in Visual Studio? -

Is it wise to use ' databbekis ' and ' data In the Visual Studio source 'window? It seems that dragging and dropping objects from the data source window is so easy and easy, unless something breaks out, then you have to spend the code generated by Visual Studio What's wrong with what hours of detecting whether serious programmers use this functionality or do they write every line of code in the form of windows to tease data? Thanks in advance. I had a personal opinion for a long time (and this is just an opinion) that anyone is fancy editors Without the code, I started using Notepad from ASP.NET, and had to do all the data manually. He said, "Once I became familiar with the" hard "way, I finally hated them in the drag-and-drop design tool because I felt like I was losing control but After some time, I liked them because they saved a lot of time and knowing the underlying concepts helped me do a better job of troubleshooting, because ...

how to extrapolate information from XML file in php -

Using file_get_conents to retrieve an XML file. Let's say that the XML file looks like this & lt; Tag1 & gt; & Lt; Subtag1 & gt; Information & lt; / Subtag2 & gt; & Lt; / Tag1 & gt; How do I go about recovering information from that XML file? You can use to retrieve your information: $ xml = simplexml_load_file ('file.xml'); $ Value = $ xml- & gt; Tag 1-> Subtag1; Echo $ value; // Output "info" If you want to loop through subtags: // method is a foreach ($ xml-> tag 1-> children () $ as subtag) $ $ dumb $ subtag "\ N"; } // method two $ i = 1; While ($ subtag = $ xml- & gt; tags 1-> {"subtag". $ I})! == faucet) {echo $ subtag "\ N"; $ I ++; }

css - How do I prevent my html table from stretching -

Sometimes when one piece of data is too long in one of my table cells, it spreads to the cell And distort the layout of the whole table. How can I stop it? You probably want table-layout: fixed and before a line Set the width on the cells. See detailed explanation.

Entity Framework Metadata LINQ (Converting from C# to VB.NET) -

I have a query in C # which is working for me to query the metadata of the unit framework. I need to convert it to VB.NET, but I am struggling to convert AS keyword to "Dale" meta into System.Data.MetaData.Adam.NetType. I have tried TryCast, CTYPE, Cast, etc. Here is the query in C #. var queryResult = Meta in oc.MetadataWorkspace.GetItems (System.Data .Metadata.Edm.DataSpace.CSpace) .Where (M = & gt; m.BuiltInTypeKind == System.Data .Metadata.Edm.BuiltInTypeKind.EntityType) in P (Meta as System.Data.Metadata.Edm.EntityType). a quality. Select p (p = & gt; p.DeclaringType.Name == entityClassType.Name & P. ​​name == propertyName) p; This is the closest I have come to compile in VB.NET (as outlined keyword and '' 'expected' '): _ .Where the dim QUERY2 = _ meta entityObjectContext.MetadataWorkspace.GetItems (System.Data.Metadata.Edm.DataSpace.CSpace) (function (M) m.BuiltInTypeKind = System.Data.Metadata.Edm.BuiltInTypeKind.EntityTy...

.net - WCF Load/Performance testing -

I am interested in simulating many customers who are trying to start multiple WCF services at the same time, Response time Load / stress testing for each customer is available for any WCF services, with many end points (WSHTP, Net TCP etc.). I have heard that SOAPUI is the most popular test tool available, but I'm not sure that SOAPUI can only use the service as a Classic ASMX service (basicHttpBinding because access to WCF services is so much accessible). Although not directly relevant, the service is using the unit framework behind the scenario to insert something on small object graphs (5-10 entities) and I think that saving calls Not as in the form of fasting, I want to do this in my scenario, in the large number of clients in the form of very small data sets (an array of 50-10 IIS) set in the form of an input. P> I have not used it, but check it on CodePlex.

python - How can I use Facebook Connect with Google App Engine without using Django? -

I am developing on Google App Engine and I integrate Facebook Connect into my site as a means for registration. Want to authenticate? In the past, I trusted Google's accounts API for user registration. I'm trying to use Google's webpage structure instead of the Django, but it seems that all the resources of Facebook Connect and GAE are very oriented. I have tried to hang out with Pipesbook and Mini FB on Facebook docs but I am not able to work with webpage framework. So far, I am having trouble seeing the big picture how can I do this work. What can I advise on how to do this work or what should I consider instead? Should I focus on using client libraries instead? This is not a Facebook connect, actually, but at least this webffbml handling Is: Connect on Google AppEngine through the webpage framework of Facebook (this is sticking with 8515 views.) Here is an example of May 15: This Gebet The example is based on the webpad, but with Facebook for authentication...

python - Permalinks with Russian/Cyrillic news articles -

I am working with an old school php CMS based site in Russian, many new tasks requested One of the permalinks is As of now, the website is only standard non-MVC 'article.php? Id = 50 '. I was browsing and it is actually the only Russian site that I have seen that the native Russian paramilitary was used. I am thinking: Is there any limitations regarding the use of characters? Do any type of special setup is required on server-side or any thing? In general, what kind of characters should I look for in Parimal link? Do i need any Any suggestions on how I should be prevalent in my database? As of now, the table structure is relatively simple .. With just one article table: ID text_chitel article_assnpip article_hold date_time I'm about to add a new column Thinking this table has been given the name 'Paramlink' which will basically store a revised version of the article - title (the only character so far that I can think of special treatment is the pla...

javascript - Double-Click HTML files and JQuery -

I have noticed that when I open the HTML file by double clicking on the local file, it did not "run" As if I was on a web server and it was opened by the HTTP GET request. I need to create a local HTML file that the user can open by double clicking on it. There are several JQuery load calls in this HTML file such as: $ ("#content") .load ("http://somepage.com/index.html"); I want to update many devices with content from remote sites. This works fine if I have this file on a web server but no, if I double click it Windows Explorer ... how can I "run" on a web server, As it would be on a web server? I think you can not do too much to do it with domain-entry restrictions, which Cross is to avoid site scripting and likes. Files on your hard drive are especially limited - it seems to be what life can be if they are allowed to behave as their sole hard drive as a single domain.

How to add a COM reference to Silverlight applications -

I am creating a small Silverlight application I want to be able to add a COM DLL in my application. My current thought is to download COM DLL with a web client and then add it to the project, however as it has been said ... How does a COM componenet in a Silverlight application add? (Is this also possible, security-wise?) You can not do security due to sandbox Silverlight, you can use only managed code and original code, of course not quality. In addition, when it is possible to implement ActiveX through Javascript, do not forget that Silverlight is a cross platform and your code is running on a Mac or Linux machine. If you absolutely need some functionality that is available in COM, you can use Com from FullTrust .NET code on the server (which some hosters do not allow) and WCF service (or ASP.NET web service also writes if you want to be old) School Mask is that your Silverlight application can make a call, provided you are not available on some clients.

codeigniter - CI PHP if statement w/ sql syntax -

यह एक त्वरित वाक्यविन्यास प्रश्न है ... मुझे एक HTML तत्व को अवरोधित करना होगा अगर दो एसक्यूएल बयान सही हैं w / php। यदि स्थिति = 'बंद', और यदि वर्तमान उपयोगकर्ता लॉग इन है। मैं कॉल का पता लगा सकता हूँ, मुझे सिंटैक्स का एक उदाहरण देखने की आवश्यकता है :) तो, यदि एसक्यूएल स्थिति = बंद है, और यदि current_user = is_logged_in () ... ऐसा कुछ है। मुझे लगता है कि यदि आपने लॉगिन किया है, तो आप लॉगिन बॉक्स को ब्लॉक करने का प्रयास कर रहे हैं। यहां आपको क्या करना होगा: इस दृश्य में : & lt;? Php अगर ($ show_login):? & Gt; & Lt;! - लॉगिन बॉक्स कोड यहां - & gt; & Lt;? Php endif; ? & Gt; नियंत्रक की कार्रवाई में जो कॉल को कॉल करता है: यदि (is_logged_in ()) और $ this- & gt; my_model- & gt; चेक_समूह )) {$ डेटा ['show_login'] = गलत; } और {$ डेटा ['show_login'] = सच; } $ This- & gt; लोड- & gt; देखें ('myview', $ डेटा); मॉडल में: फ़ंक्शन check_something () {// एसक्यूएल कमानों को निष्पादित करें / और जो भी...

Whats the best way to wrap a c# class for use by powershell script -

I have an engine that executes the powerhouse script, and when they execute, the caller feeds back into some XML Need to do The engine only takes I / O as an IWF xml message, so the script has to return the same formatted XML message. I have a class that makes my formatting for me and this script writers want to use it. So the question is, I want to make the AC # class able to use by parsarer. I saw something like that where you can refer to the C # class using class bracket crowd, e.g. How can you make C # available for use in this way? I think that it should be made in class Lib and is being loaded in some way PowerShell Runtime but how. Apart from this, like how I am running a Parschend from C #, how do I add it to the environment at that time? Any help would be appreciated. Bob PowerShell can load it if it has an assembly (exe or dll) with the class [System.Reflection.Assembly] :: LoadFile ("PathToYourAssembly") via or in V2 Add-Type -Path "Path...

c# - What approach should I take to split a string and update muliple SQL tables? -

मेरे पास निम्नलिखित गुणों के साथ एक अनुच्छेद वस्तु है: लेख का नाम (varchar) लेख टैग (varchar) अनुच्छेद टैग एक उपयोगकर्ता है जो टैग किए गए पाठ मूल्यों की एक पंक्ति की सीमांकित स्ट्रिंग है के साथ aritlce 3 संपत्तियों को एक संग्रहीत कार्यविधि में पारित किया जाता है अब मैं निम्नलिखित करना चाहता हूं: 1) डीबॉ। आलेख तालिका में अनुच्छेद नाम और अनुच्छेद निकाले डालें और लेख आईडी वापस करें 2) एक अलग पंक्ति के रूप में dbo.Tags तालिका में अनुच्छेद टैग स्ट्रिंग के प्रत्येक मान डालें, लेकिन डुप्लिकेट के लिए पहले जांच करें। यदि डुप्लिकेट फिर से मौजूदा रिकॉर्ड के टैगिड को वापस लौटाते हैं, तो नया रिकॉर्ड फिर से नया टैगिड लौटाएगा। 3) लेख आईडी और प्रत्येक टैगी को डीबो में एक अलग पंक्ति के रूप में डालें। टैग मैगेट तालिका मुझे यह जानने का सबसे अच्छा तरीका है कि मैं इसे कैसे पूरा करूं, यह भी जागरूक है कि इसके प्रदर्शन में बहुत अधिक खर्च नहीं होता है। किसी भी मदद के लिए अग्रिम धन्यवाद । मैं एसक्यूएल के बजाय आपके आवेदन में अधिकतर काम करूँगा। आप अपनी तालिका में कई पंक्तियों को जो...