Posts

c# - What should we use when initializing some values from DataTables -

What should be more appropriate when you want to start class properties with datasheets. i.e. name = dt.rows [0] [0] or name = dt.rows [0] ["name"] Which approach is more I use another approach to handle any easy scalable current, but it seems that if I use indexes instead of names, then I only need to convert that UI into stored processes. But the readability of the code compromises, so what do I need for ? One option is to do something in between: personal const int name column = 0; ... name = dt.rows [0] [NameColumn]; This lets you change the position of a if the column order / definitions change but also gives the readable code at the time of access. I'm not sure that it addresses the problem of changing both UI codes and stored procedures at the same time: If your SP is effectively changing its public interface, then you hope should code However, this approach can reduce the pain of that change, as well as not cover your code with magic va...

perl substr to get a substring -

#! / Usr / bin / perl मेरी $ str = "abc def yyyhi"; प्रिंट उपस्ट्रेट ($ str, 0, इंडेक्स ($ str, '')); मैं substr को प्रिंट करना चाहता हूँ प्रिंट substr ($ str, index ($ str, ''), rindex ($ str, '' ) काम नहीं कर रहा है? कोई भी विचार? आपने किया 'तर्क के रूप में आप जितना चाहते हैं उतना स्पष्ट नहीं है, लेकिन सबसे अच्छा अनुमान है कि आप पहली और आखिरी जगहों के बीच वर्णों को मुद्रित करना चाहते हैं। आपका उदाहरण कोड बहुत सारे अक्षर मुद्रित करेगा क्योंकि इससे पहले # वर्णों का प्रिंट होता है अंतिम स्थान (आपके उदाहरण में, 7 की बजाय 10)। ठीक करने के लिए, आपको पहले स्थान के पहले # वर्णों को घटाकर # मुद्रित वर्णों को समायोजित करने की आवश्यकता है। इसके अलावा, आपको एक पहला स्थान छपाई करने से बचने के लिए अपने "अनुक्रमणिका" मान के दायीं ओर वर्ण - $ cat d: \ scripts \ test1 नीचे दिए गए उदाहरण में "+1" और "-1" मेरी $ str = "abc def yyy ghi" मेरी $ first_space_index = इंडेक्स ($ str, ''); मेरा $ su...

jquery - FullCalendar dayClick function conflict with select function -

I have seen that when I'm trying to implement dayClick: and the selected functions take a collision somewhere. Here are some narrow codes I // When you have selected multi-day: function (start, end, all) {var title = prompt (' New selection date: '); If (title) {calendar.fullCalendar ('renderEvent', {title: title, start: start, end: end, allDay: allDay}, true); Calendar.fullCalendar ('deselect'); Warning ("End of Selection"); }}, // Click to add a new event day: Function (Date) {Warning ("The day (" + + + + + "" was clicked);}, The problem occurs when I "click" one day, it warns me which is ok, but then it brings quickness to the SELECT functionality. Then it is an ALERT and Then runs a prompt window. I'm not sure why this is doing this, I'm not able to reduce the logic, maybe what And also has a similar issue? Please tell me whether you are in any fix or the same issue. Cheers. I found tha...

wpf controls - Trigger on Image inside a Button WPF -

I want to control the visibility of the image in a button through a trigger: & lt; Button x: name = "notespanel" command = "{binding adddocument}" & gt; & Lt; Image x: name = "notes image" source = "notes" "height =" 32 "& gt; & gt; & gt; & gt; button & gt; 1 / What trigger will appear in the button or in the container that faces the button? 2 / How to set the visibility of the image? Thanks Zone Since you are updating the image, it should lie with the image (style of image as part) such as if the image is by default Is hidden, so I try the following Using R can choose to make it visible with toggleproperty1. DataTrigger binding = "{binding toggleproperty}" value = "1" & gt; & lt ; Setter Property = "Visibility" value = "View" />

Extract Album Art from mp3 and display in an Image with Delphi? -

I want to do this and I do not have to do any external DLL file. The album art is a picture that is stored in an example MP3 file. I want to take it out and display it. I searched pure but I could not find any source file. Thanks in advance The album is supported in ID3v2 tags in the Art In MP3 . The first experts have calculated how to answer this answer in Delphi. ID 3 includes delphi implementation, - jeroin

installer - WiX major upgrade doesn't run when I remove a merge module from the project -

I have got a YX project in which the installation of Visual C ++ 2008 runtime components for x86 with a merged merge module Includes. / P> Unfortunately MSI is a well-known issue with .msm with v4.5. To be more specific, .msm custom action takes to complete SxSUninstallCA at uninstall. Therefore, the long story short, I decided to remove .msm of the new version of the product, installed quietly with the VC + Component .exe file. If I only change this thing (and product code, of course) then the installer does not detect the product already installed on the machine and does a normal installation, without first uninstalling the earlier version . Any thoughts on what's going on here? Whether MSI has examined to check the upgrade code and product code, whether any product is renewed by anyone else already installed on the system? Check if you have ALLUSERS assets fixed in both installers. I had the same problem with the merge module and he solved it.

revision - Best way to use TFS on new Project -

About launching a new project in VS2010, which will have some windows services, some DLSs, a GUI application and a MS SQL database What is best to handle them in source control and the team foundation server more Specify more? On previous projects, we used Turtle SVN to distribute each component separately in the repository and there was no relation between the projects from the revision control point. I am particularly interested in how the database should be managed, before any development was done with the database.