Posts

Showing posts from July, 2014

Using windows services [written in C#] using C# -

I wrote a Windows service in C #, which, after reading a file at regular intervals, some functionality (a public method ). Is it possible to use this functionality from other C # applications? If possible, please give a solution based on .NET 2.0 and .NET 3.0 thanks You can The easiest option is to write that functionality in a separate assembly (DLL) that you do with both service and other NAT applications. Are there. > Refer service assembly (even if it is an XE, at least in VS 2008) - but it seems that a small overkill. If you want to execute the method in the context of the ongoing service, then you will need some IPC (probably WCF or sockets).

c# - Can i use opensocial.net library in my asp.net web application to get information on any person? -

Please suggest me any solution or tutorial or any sample code. Thanks There is not much documentation yet, so there is no tutorial . There seems to be a more advanced solution, but not much documentation yet. I have not used it so I can not do 'on which comment would be better for your needs. I think you have to choose one, play one with it, and then chat with the developer if You need more information. There is too much general information in it. > Good luck!

seo - Is sub-domain better or sub-folder? -

I have a classifieds site and I want to know that creating subdomains or sub-folders is better, because I am confused. What benefits can we get from its sub-domain if we need to take a sub-domain? What if we need to take sub folders If we create subdomains, then Google treats subdomains as separate domains and only per page Will show 2 results. So please clear my doubts and tell me which one is better. Search engines will treat subdomains like separate domains, so using sub-folders There is a way to go in many cases, so that you are not spreading yourself diluted. Using both is a bad idea, because search engines will try to index both, and one will be flagged as duplicate content An article from SEOMoz here More details are explained in:

validation - ASP.NET MVC ValidateInput(false) stops working with xVal and [RegularExpression] DataAnnotation -

I "& lt;" Characters in the form field by the Rezeks Vedicker I will describe this problem in 3 steps: Step 1 : When I say "& lt;" To avoid the expectation of ASP.NET, I receive a "potentially dangerous request ..." to decorate my updated method - as expected in ASP.NET . Step 2 with "[ValidateInput (false)]" in the controller This works as expected - I now use the "& lt;" I can post without error characters. Step 3 : I use xVal with DataAnotation. For example, [required] or [string length (255)] works as expected But when I use it: [Regular expression ("^ [ ^ & Lt;>] * $ ", error message =" special characters are not allowed ".]], . What's going on? Is there an easy way to regex validaton, but with [ValidateInput (false)] in place? Undoubtedly, I'm in the model I want to code my verification, not in the controller. No, this MVC 1 + There was an issue in xVal.It

Makefile equivalent in CMake -

I've just started using the limit and it's been less than a week. I have a makefile written and I am trying to write it in its equivalent seamac. For each statement given in the given Makefile, I have no idea about the commands that I use in the SIMK. How do I start? Can a document be found for this place? I make my project (~ 15000 lines C ++ code, shared libraries, unit tests and executables ) To seaminate with a scan a few weeks ago, and it takes only a day or two. One thing that was helpful to me is now experimental support for the CMK instead of Bajaj. Macros, defined in the Tools / Build / Seamke , saw some code of syntax and capabilities Taught a lot about. Also useful: A quick overview of It is hope that helps.

sql - Efficient way of getting @@rowcount from a query using row_number -

I have an expensive query using the line_number over () functionality in SQL_server 2005. I have endorsed the query as only a sub list of those records. However, I would not even want to return the total number of records, not only the paged subset. To count the question twice is effectively out of the question. Selection of the count (*) is also out of the question because the performance is terrible when I tried to do it. What I really like @@ ROW_NUMBERROWCOUNT: -) COUNT Check (*) when used with over (PARTITON BY ..), same: as ROWNum (order by object_id, column_id), COUNT (*) over (Part) 1) TotalRows, * master.sys.column from This is the best way to do this without the IMHO two questions.

css - How to make an item "draggable" using html? -

Is there any way to use html to make an item dragable? (Not classifying just one element in the form of dragable) dragable enlightenment weak current language which gives us functionality to describe the structure of text-based data in only one document. There is no way to add great interaction like dragbility. Fortunately, such interactions were allowed and due to wide spread developers having fun in the web browser! Although browsers implement javascript in a variety of ways, there are debuggers and testers. Hey, help is in the hands of Solutions for the sake of incompatible implementation, and developers can add interactions to their pages again. Of course the best of these can be found in the name of the framework and the name of others here and to find one of them closely and Enlightenment will be yours .

javascript - how to add event for all elements except which have a certain class? -

I want to add the mouse over all elements on the page above the event, besides the square "no_inspect", $ ('*: not (.no_inspect)') Mouseover (mouseoverrecovery); But that does not work, something goes missing. UPDATE does not mean working: The event is enclosed on the page "all the elements have no property or not" that I want that it is not behavior. UPDATE MouseoverEvents Code: function DIOnMouseOver (evt) {element = evt.target; // Set the range around the element element. Style.borderWidth = '2px'; Element.style.borderStyle = 'Solid'; Element.style.borderColor = '# f00'; } mouseover event Try the bubbles instead mousecenter . Besides, why are you implementing the style for evt.target ? Why not 'this'? function DIOnMouseOver (evt) {$ (this). Css ({range: '2px solid # f00'}); } As stated in the comments, another way to avoid publicity is to event.stopPropagation () C

.net - How does the Entity Framework tell whether a multiplicity of "one" or "zero or one" should be used on a relationship? -

I'm making an edmx file as part of our code generation process and I would like to know that the designer How does the "update model from databases" determine when you use "1" or "0..1" for the relationship? Any insights on this? Thanks Edit: OK, I think it uses "0..1" when "too many" Is there a nonsensical foreign key and "1" can not confirm if this is not a tap? Yes, setting "0..1" or "1" for parents The role depends on the fact whether the column is faucet or not Do not forget that if the connection is made in parts of the primary key column from both tables (1 to 1 union), then the cardinality 1 (parent) 1. (1) (hair). If you are developing a new ADMX generation device, then we recommend that you experiment and analyze as much as possible. We have developed a design time tool for creating and editing unit frameworks and LINQ with SQL code and code generation for Oracle, MySQL, PostG

How much space is alloted to application storage on the iPhone? -

Do anyone know that the subset of the entire storage capacity of iPhones is reserved for applications and application data? I am not talking about Ram, but rather disk space. I remember that only one part of the iPhone's ability was used for application data, while the rest was used for music and media, although I do not remember the amount. Thank you It depends on the model, of course - you have 8, 16 and 32 GB variations. My 16GB iPhone 3G will have a free space of 14 GB, while my 32 GB iPhone 3GS has 28GB of free space. This free space is not limited to app, music, video, or podcast - it's shared. Unless still available free space, you can install more apps or sync more media files. There is no division of hard disk space with the file type. On the other hand, no single application can hold more than 2 GB hard disk space.

jquery Tab - Open Link in current panel does not work -

The content of the tab I'm just starting to play with the Jquery UI tab is initially consistently stabilized content. Now some content inside the panel has some kind of sub-property so if the user clicks on a link in the panel then I want to change the contents of the current panel with the content coming from the link . So I used the script directly from jquery ui tab documentation but i can not get it to work. It is always opening the link, not in the panel. The code I use for testing is quite simple: & lt; Div id = "mytabs" & gt; & Lt; Ul & gt; & Lt; Li & gt; & Lt; A href = "#TestTab 1" & gt; Test tab & lt; / A & gt; & Lt; / Li & gt; & Lt; Li & gt; & Lt; A href = "#TestTab2" & gt; Test tab & lt; / A & gt; & Lt; / Li & gt; & Lt; / Ul & gt; & Lt; Div id = "testTab1" & gt; Internet advertising Dumm di dumm & lt; A href = "http:

when to leave space ,when not in CSS? -

It's OK (without space): li.highlight {background: # FF9900 No repeat scrolling 0 0; } This will not work (with space): li .highlight {background: # FF9900 scroll no repeat 0 0; } Why? The latter selector will not work because in the relationship between the selectors in space (in this case a lineage) It means. li.highlight / * defines the element of 'li' with the classname 'heel' * / li. Highlight / * defines an element of the class highlights which is contained in the Li element. * / Li & gt; . Highlight / * As stated in Neil (in comments), it can choose an element of class highlight which is an immediate child / descendant of a li / * / The phrase "will not work." Obviously I used your phrasing, and I did it. This will be work, it is just that it will select - explained in the comment - an element that you don 'is in your markup.

security - Is an LSA MSV1_0 subauthentication package needed for some impersonation use cases? -

Greetings, I am working with a seller who has applied some code that Windows LSA uses MSV1_0 subtitling package (MSDN information if you are interested): And I want to know if this is necessary. As far as I can tell, the subtitling routine and filtering allows hooking or customizing standard LSA MSV1_0 logon event processing issue is that I do not understand that the seller's product Why these capabilities are needed. I have asked them and they said that they use it to impersonate. This product definitely needs to be cloned, but based on my limited Win32 knowledge, they can get the functionality required to use the normal ATH API (LSAAlogon User, Impressus Logged Onuser, etc.) without the submatication package. Apart from this, I have worked with many types of products that do all the cloning, and only one subtitling package has been used. If you are wondering why I care about, then the previous version product was a bug in subtacticization package DLL, which had lockup

jquery - a way to show text in text field before user enters data -

Is a jquery plugin or is it relatively easy? There is a text field that the user will enter an amount I want to show the text field '$' .. '$' will run when the user clicks on the text field. I recently asked the same, I chose to use it.

asp classic - how can I specify a proxy configuration using Microsoft.XMLHTTP? -

I get a classic ASP page from Microsoft. I'm using XMLHTTP to post to another site ... I want to be able to inspect what's going on with Fear, and to do this, I'm going to have a proxy To use Microsoft.XMLHTTP you will find a way to configure ... Is this possible? Where does Microsoft.XMLHTTP get its configuration? Thank you very much I need to understand some things here. ProgID "Microsoft.XMLHTTP" indicates on the same category as "MSXML2.XMLHTTP". This class uses the WinINET HTTP protocol stack that uses Internet Explorer and therefore the proxy configuration will be used in Internet settings on PC. The proxycfg command is not useful for "Microsoft.XMLHTTP". An XMLHTTP option is "MSXML2.ServerXMLHTTP" This class uses the WinHTTP HTTP protocol stack which is lightweight and Server is made friendly, it is safe to use multiple instances in multiple threads in the same process, where WinINET is not. For this reason

excel formula - how to highlight cells that match given criteria -

I have a lot of data I would like to highlight only those cells that meet certain criteria, Lt; 0.100 Please advise. You can use (More info, Tutorials and YouTube.)

testcase - Ruby Test Cases -

I have a task to write some test cases on Ruby. The job is in the form of an example: Visit some websites. Enter a text in the text box Press the submit button (value) Take that the user was redirected to the correct page) (assuming the user was given the correct information) So, the question is, With a large number of invasions to organize the test cases. Should I check the example 2 that step 2 happened and only after that go to the next step, because if step 2 fails, then there is no point in moving forward. I do not know how to organize such test cases. Your approach looks appropriate, if any step depends on the preceding phase, It seems like if the previous step has failed. If the steps on dependency fail, then it can be assumed that all subsequent dependent steps will also fail. Overall, you should be forced to think yourself like a computer and should paint each stage of the investigation of this process. Separate each step in sequence and make sure they

WCF Session problem -

I'm new to WCF and I do not have much idea. Using the sample code I tried WCF via Remoting ... It works fine for a few minutes but if I leave the client without access to the WCF server, then I Like an exception. Exception: Unable to connect to remote server. Internal Exception: System.Net.Sockets.SocketException: The connection attempt was unsuccessful because the connected side did not perform the operation after a period of time, or the established connection failed because connected host 122.165.27.38:80 to react System.Net.Sockets.Socket.DoConnect (EndPoint endPointSnapshot, socketAddress socketAddress) has failed the System on .Net.Sockets.Socket.InternalConnect (EndPoint remoteEP) System.Net.ServicePoint.ConnectSocketInternal on (Boolean connectFailure, socket S4, S6 socket, socket & amp, socket, IPAddress & amp; address, ConnectSocketState state, IAsyncResult asyncResult, Int32 timeout, Exception & amp; exceptions) Stack trace: System.Net.H

There is something wrong with this JavaScript -

I have developed a script for checking the user who selected a valid month and year for credit card is. Validate the function () {var dt = new date (); Var mth = dt.getMonth (); Var yr = dt.getYear (); // It returns different data in different browsers yr = yr + 1900; If (eval (document.PurchaseCredit.cc_expire_month.value) & lt; mth & amp; eval (document.PurchaseCredit.cc_expire_year.value) == yr) {document.getElementById ('Error'). InnerHTML = "The end date can not be less than the current date."; Document.forms ['purchase credit']. Submit.disabled = true; } And {document.getElementById ('Error'). InnerHTML = ""; Document.forms ['purchase credit']. Submit.disabled = false; }} This script works well in Firefox but does not work in IE7. Why? This is not working because getyear () returns different results for different browsers. Internet Explorer: * Returns four digits for the year before 1900 and after 19

jquery - Error "Overlarge sharp variable number" on ajax request -

I am trying to get data from other domains using jQuery. Here's the code: $ Ajax ({type: "GET", datatype: "script", url: "http://www.example.com/ajax.php", data: 'id = 5', success: function (msg) {console. Log (msg);}} Now, instead of the result, I get an error in the firebug console "fast variable number"?! How can I fix it? Ajax.php Print timestamp "|", Eq 1238925436 | 1256335200 | 1245925436 ... You successfully execute the X-Domain You can not cross in the browser. When the server side is required to use a proxy or using the json-p support Calling End.

tsql - What is the difference between SQL, PL-SQL and T-SQL? -

What is the difference between SQL, PL-SQL and T-SQL? Can anyone say that there are differences between these three, and provide scenarios where each is used appropriately? to work on SQL The query language is. This is more or less standardized, and is used by almost all relational database management systems: SQL Server, Oracle, MySQL, PostgreSQL, DB2, Informix, etc. PL / SQL is a proprietary language used by Oracle is a procedural language used by TSQL Microsoft in SQL Server. Procedural languages ​​are designed to increase the capabilities of SQL, while being able to integrate well with SQL. Many features like local variables and string / data processing have been added. With these facilities, language turing-is complete. They are also used to write stored procedures: To manage complex business rules, pieces of code on the server that are difficult or impossible to manage pure set-based operations.

git submodules: customization -

git submodules का उपयोग करते समय, अनुकूलन करने का पसंदीदा तरीका क्या है? परियोजना कांटा और कांटा को ट्रैक करें डिफ़ॉल्ट व्यवहार को ओवरराइड करने का प्रयास स्थानीय रूप से परिवर्तन करें यदि इनमें से कोई भी समझ में नहीं आता है, तो क्या करता है? मैं निश्चित नहीं है कि आपके प्रश्न का अर्थ यह है कि सभी परियोजनाएं जिन्हें आप शामिल करना चाहते हैं, पहले से ही git प्रोजेक्ट हैं या यदि वे वर्तमान में एसवीएन, मर्सूरियल, गैर-संस्करण नियंत्रित हैं यदि यह उत्तरार्द्ध है, तो यह एक केस-बाय-केस उत्तर होगा। अधिकतर, आप जो परियोजनाएं शामिल करना चाहते हैं और कस्टमाइज़ करना पहले से ही हैं, कहते हैं, गिटौब और फिर आपको निश्चित रूप से जिथूब और उन फोर्कों का प्रयोग सबमोडुल्स के रूप में करें किसी भी अनुकूलन को चेक किया जाना चाहिए और उसे गिटूब पर धकेल दिया जाना चाहिए। अगर आप जो परियोजनाओं को शामिल करना चाहते हैं, वह कहीं और हैं (या एसवीएन, मर्कुरियल आदि पर आधारित)। एक तरह से परियोजनाओं को स्थानीय रूप से काढ़ा करना है और फिर क्रि-जॉब को गिटूब में आने वाले किसी भी बदलाव को पुश करने के लिए सेट क

java - Hibernate dynamic instantiations with collections, is it possible? -

I would like to write a HQL query as a parameter by using a dynamic urgency with a list. Simplified Example: An HQL query with a dynamic urgency: New user from xyUserDto (u.name, u.contacts) Select where u.xyz =: Param1 ... and my DTO class constructor is: public class UserDto {private string name; Personal list contacts; Public UserDto (string name, list contact) {this.name = name; This.contacts = Contact; } ...} and entity mapping: public class user {@olumn (name = "NAME") string name; @ManyToMany (name = "USER_ID" From & lt; Contacts & gt; Contacts; ...} So as you can see, whatever I want, is to create a new object, which has some properties and a collection of units. I understand that hibernate will need one or more questions in order to achieve this because it will generate several result rows for each unit. Does anyone know what is possible to create a new object which is a combination of properties and collection? &qu

Loop through multi dimension array to show grid in PHP -

I have 3 tables, apples, hulls, and applesholds. APL contains IDs, names, dates, hall has IDs, production enabled application is an included table and contains ID, AppleID, Hall_ID, status. Not every solution is associated with every Apple. Those who are in a table to join with a situation (production, etc.) have been in the table I need to display a report in a table / grid that has the following column headers: Apple Name, APLDAT, then the degenerated production name, in the form of remaining column titles. (If the Hull 7 is not in the result set, then it also does not get a column. For the data I need to type the name of Apple name, APL, then the remaining column loop and fill in In the situation for the record in the table. If the Apple and the hull are not connected in the table, simply fill the cell with "NA". I have tried a bunch of different ways Column headers dynamic for hiers in I can get the list, I think the data does not seem capable of filling the

windows - how to add a java class to a folder within a jar file -

By using jar at windows command prompt, how can I add foo.class to folder "squares" in foo.jar ? I can add a file to a jar using jar UVF foo.jar foo.class but not so Put a class in the "Classes" folder in Jar. I know that I can use Winzip to open the jar, add the file, and zip it again, but it is slow and hopefully unnecessary. to foo.class in a classes Keep in the directory, then run jar uvf foo.jar classes / foo.class (I have tried to ensure that it works There is a way to do this without creating a <<> class directory, but I think this is the easiest solution.) < / Div>

sql - How could predicate pushing on an inline view slow down a query? -

I have found a somewhat disturbing query that I am working on refactoring for rendering. During this process, whatever I did because of personal preference, the syntax included in ANSI-99 was done to predict the query from the "internal connecting" and "left external connect" statement. . I saw two very strange things on which I appreciate the explanation. The syntax has changed the lecture plan to join "inner join ..." with the ANSI 99 syntax, Oracle scanned the entire table on the columns which were adding. After changing the syntax to add, it is now push push emphasis. Why does the plan to understand change? Predicting the inline footage has actually slowed the query by a very important margin. Query running at about 3 seconds (before changing pair) Now it is taking 9 seconds to be honest For, I'm new enough to explain plans, it is entirely possible that the restructuring of the query has slowed it for some other reason but eventually my

.net - Explain in small words why IQueryable<T> is needed -

Is there a better job you can tell why we need the marker interface which does not add any method to IEnumerable can? "post-text" itemprop = "text"> this will be IEnumerable , IQueryable and IEnumerable & lt; T & gt; is expanded. It may be that it does not have its own methods, but it adds these three interfaces as one, so you do not have to deal them separately.

c# - ASP.net textbox scrolling when disabled -

Greetings, I have a form where employees record comments in the multilingual text box with a limit of 4000 characters. I have the rows set to 8 (obviously an arbitrary number). When a supervisor watches comments, the text box is disabled so that employee comments can not be modified. The problem is that when the data spreads below the line 8. Since the textbox is inactive, the scrollbar can not be moved and the supervisor can not see all the comments. If I hide the text box and database for the supervisor's label then none of the line breaks is maintained and a well written paragraph really turns into the biggest amount ... Is there a way to leave the scroll bar text disabled? Is there a way to preserve the structure of the entry in the label? In the supervisor mode, do not insert the text into the text box, put it in the label, as you did Mentioned. "Change in your code (" \ n "," "). Alternatively, show the text box without disabling it,

c# - Tables in Excel with VSTO -

I'm really new to VSTO so this is a newbie question. I work on a data entry application where I have to get the data in the Excel table (like when you highlight a bunch of rows and click on "Format as table"), then I have to read and work with data from that table in C # At a basic level, I have got a schema in C # in some formats. I need to create a table in Excel in that format (the rules of validation on the column name + types.) There are some types of nuums, so I think I need to create a list on another sheet with all the values ​​values ​​and that Specify the list for binding). After the table is created, the user goes about entering the data, and when they close the Excel, I read the data. I have come to know how to do this with only raw cells, but I am not able to make table or verification rules. Any ideas? Besides, where can I find some good resources on ExtStVSTO programming? Thanks, Roy After much more investigation, I've found the best way

.net - Entity Model and binding Label to an unrelated table -

I am trying to figure out the best way to bind into an unrelated table in the net. For example, I have the following tables: for example, I have an ADO Net unit data model which is included in several related tables and some unrelated tables. For columns with LKP_TEXT, LKP_VALUE and columns REQUESTNO with LKP_TYPE REQUEST_DET, KEY_VALUE_LKP, USERID and REQ_STATUS USER_DET with column username, USERID REQUEST_DET for KEY_VALUE_LKP where REQ_STATUS = LKP_VALUE and LKP_TYPE = "REQUEST_CRITICALITY" but not defined in database REQUEST_DET This relation is related to a foreign key relationship with USER_DET is related to the database where USERID = USERID When I make my model I have three tables and the fact that USER_DET REQUEST_DET Is related to a FormView I request data Be bound to use (REQUEST_DET EntityDataSource) and request for related tables (USERNAME, REQUESTNO but I can see relevant information for getting numeric value for REQ_STATUS. What do I want to do LKP

c++ - Transparent windows with Linux -

I'm trying to find a cross-Linux distribution solution for the problem of creating a program. Now I am using some methods that take screen shots of the windows below and then print them as the background of the image. I prefer not to use that method because it is likely that I have to play the video in the background of the program. But if someone knows that there is a good way to do this, then I am still happy about it. I have tried to apply a method on which I found: I do not get any change to happen, although I'm not sure that Compiz is correctly was working. Any help would be appreciated. You can take a look at the code of X terminal emulators, for ktm or for ktm Genome Terminal (based on your targeted platform) I think these are the best examples of applications that apply transparency, I think the composition is not available when you can get that code solution in order to gain transparency.

xml - XSD relation/attribute question -

I would like to install an XSD as if it applies something like a foreign key relationship, here's an example: & lt; Mapping Element Reference = "MySource Element Name" /> & Lt; Source Name = "MySourceElement Name" /> I want to specify in XSD that any value should be assigned the attribute "reference" which should also have a name attribute in a SourceElement tag. I know about numerical restrictions, but the range of names is open - I only need integrity between my reference attributes and my name attributes. Is there any way to express it with XSD? You can type xs: key and xs: keyref.

asp.net - Securing ELMAH while yet making it possible to access it via RSS Reader -

We use ELMAH error exception logging in our application. Although I want to keep ELMAH safe from regular users while making this available to the administrators / developers of the applications. When you set up security with form authentication in web.config, you lose the ability to access RSS feeds. I want to be able to secure ELMAH but to be able to access the RSS feed (i.e. / LMAXX / RSS) RSS reader, FDD has still been passed through authentication. Considering that HTTP authentication is appropriate, then I can meet with the following URL syntax on the RSS feed, I think that you have to set authentication mode = "window" on that particular path in the web. Will be required. Config One problem is how do you set up credentials on a virtual file? Seeing Google, it brings back the way cookies are set up on a certification passthrough. Is this a good solution to my problem? Is there any other way better to be able to reach the RSS feed? Thank you. Basically you c

.net - Moving a C# Program to a different language -

I currently have Microsoft. I was in charge of the development of the second version of the program that was made in Net C #. I am not doing any actual programming, but I am writing the specification for the programmer. I want to remove it from the NIT codebase, but Joel said that he would never have to rewrite it, and he provides good arguments, I am interested to think carefully So my question is , (1) Are there any easy methods of infection? (3) If so, what language would you use? The reason I want this is to take it away from NAT, as far as I understand my .NET, it must be installed on the client. When there is a better way, I do not allow my customers to inconvenience. As long as you are not moving away from the part of any type of enterprise-wide change from C # In the form of C # to another language, or unless there is a valid technical requirement, which is C # /. .NET can not satisfy, I am existing code base You tell your reasons that the client is require

ios - How do I use a UISegmentedControl to switch views? -

How do I want to use different states of a UISegmentedControl, like how Apple does the app store When switching between 'Top Paid' and 'Top Free' in The easiest way is to show which view you can select to see two scenes Can change their visibility here. Here is some sample code how this can be done, certainly not an optimized way of handling ideas, but to demonstrate that you want to < Em> UISegmentControl How to use: - (IBAction) Segmentsvich: (id) sender {UISegmentedControl * segmentedControl = (UISegmentedControl *) sender; NSInteger Segment = Fragmented Control. Selected SegmentIndex; If (selected partition == 0) {// Toggle the right view to be visible [previously set view set: No]; [Second View Set Handled: Yes]; } Else {// Toggle the right view to be visible [Set the first view Head: Yes]; [Second View Set Handled: No]; }} You can make the factor again to show / show the correct view of the code correctly.

php - How can I display the full text of a query created by PDO? -

इस सवाल का पहले से ही एक उत्तर है: < / P> 13 उत्तर मैं एक एसक्यूएल बना रहा हूँ PHP में पीडीओ के साथ क्वेरी दुर्भाग्य से, मेरी क्वेरी में एक त्रुटि हो सकती है। मैंने कोशिश की है $ query-> errorInfo (), लेकिन यह केवल मुझे थोड़ा त्रुटि संदेश देता है ("आपके सिंटैक्स में एक त्रुटि है ...")। मैं पूरी क्वेरी कैसे दिखा सकता हूँ कि PDO मेरे डेटाबेस से गुजर रहा है? TIA। आप वास्तव में नहीं कर सकते इससे पहले यहां चर्चा हुई है, इसे देखें:

.NET Code Access Security: Useful or just overcomplicated? -

See also I have some other opinion on this ... I like thoughts of code access protection for desktop applications. But in the lifetime of NAT, I have to admit that I do not really have such a situation Where CAS actually blocked something for my benefit. I have a number of times where sharing a quick mapped drive in a quick one. The NET application becomes Enterprise Code Access Nightmare. After creating rules of reliable path and breaking Caspol.exe, there is no clear way to know how the CAS has failed, it seems that it is a process of development and deployment compared to security and security. Gives more disappointment. I would like to hear some situations where CAS has actually hurt, or if other people present there are disappointed with their current implementation and defaults. The .NET team has disputed itself on the same conclusion, Has been rebuilt for. See this blog for more information:

.net - Verifying if multiline textbox is visibly full -

I for VB I am trying to make my own control for NET and what should I do? In fact, I am controlling the text box that comes from the class and the only amendment I am trying to bring it is that if the control is clearly filled, then the user can not write anymore. Therefore: The scrollbar should never be seen. The expanded text box can be multi-line or single line. The expanded text box can have different fonts and font sizes. Right now, the technology I am using is the graphics. Mistestone is a size F that has the width and height of my string, compared to the height and width of my textbox control. . In all these key events incident (I do not know that this is the best solution). I can get it to work fine for width, but I can not seem to win the height in a multiline text box if anyone has worked with this stuff, then I will need some explanation how to do it needed. Thank you. The problem is your third requirement: diff in extended text box Can be font and font

jquery - show a div class on clicking a link -

How can I show a div class when I click on the link? It should be shown to be a div square: & Lt; Input type = "submit" class = "button" value = "submit" /> & Lt; / Form & gt; & Lt; / Div & gt; & Lt ;! - End of myform - & gt; & Lt; / Div & gt; & Lt ;! - End of fb_contentarea_col1down1 - & gt; When I click on any of the links below, then it should show div squared: 'myform' div is shown by default how a single 'myform' div is shown when clicking on links for textarea or checkbox? Edit: should do this: $ ('# Fb_contentarea_col1down a '). Find the element in the show () {$ ('# fb_contentarea_col1down1'). Show in the div divide all the squares with the selected sections and // ($ # fb_contentarea_col1down '). ("Selected" ). AddClass to the guardian of clickedClick ($) Anchor $ (this); Guardian (.) AddClass ("Selected");});

perl - Is there an easier away to extract this data? -

मेरे $ चेंजोल = "/etc/webmin/Pserver_Panel/changelog.cgi"; मेरी $ माइलस्टोन; खुला (प्रीफ़ेस, $ चेंजोल); जबकि (& lt; PREFS & gt;) {if ($ _ = ~ m / ^ & lt; h1 & gt; (। *) [] मील का पत्थर। * $ / G) {$ माइलस्टोन = $ 1; पिछले; }} क्लोज़ (PREFS); यहां से निकाले जाने वाले डेटा का एक उदाहरण है: & lt; h1 & gt; 1.77 माइलस्टोन & lt; / h1 & gt; & LT; h3 & gt; 6/26/2009 और लेफ्टिनेंट; / एच 3 & gt; & lt; उल शैली = "मार्जिन-टॉप: 0 पीएक्स" & gt; & Lt; li प्रकार = वृत्त & gt; मानक कोड घर की सफाई और अपाचे रूपांतरण के लिए बेहतर संगतता। & Lt; / ul & gt; & LT; h3 & gt; 6/21/2009 & lt; / h3 & gt; & lt; ul शैली = "मार्जिन-शीर्ष: 0 पिक्सेल" & gt; & Lt; li प्रकार = वर्ग & gt; फिक्स्ड ऑटोफ़िक्स ताकि यह सही निर्देशिका को निकाल सके। & Lt; / ul & gt; & LT; h3 & gt; 6/11/2009 & lt; / h3 & gt; & lt; उल शैली = "मार्जिन-शीर्ष: 0 पिक्स" &

c# - How do I make my application Integrated Loginable? -

I am always following the login modules: With a username and password Create a table Login the user by checking the table. How do I use integrated login like an application like SQL Server? This does not mean that by passing the connection string, I mean that it will identify my application without entering a username and password. Edit: I do not mean that SQL Server is the unified login, I mean the unified login of my application, is it possible is? For example, my application reads the name of AD and compares the current username, so I do not need the user to type the password for my application. I'm not sure how and how to start, because if I search for an integrated login, 99.9% of Google results will give me a connection string, which I'm not looking for. > itemprop = "text"> [This answer assumes that you are on an Active Directory domain) Are you using Active Directory Window Authentication? If so, you can use the integrated sec

debugging - How to detect an unmanaged app has aborted -

I have a C # app that invites an unmanaged C ++ application through the process. Start () Machines on some, if this C ++ app stops, I'm showing a bus-in-time error dialog whether the C ++ app To do this work, there is no way from C # and restart it (I do not have a source and therefore the C ++ app can not be modified) The JIT debugger is showing the dialog because the C + + app has crashed in some way. Although the dialogue is open, the process still exists (but suspended), which means that the process class does not consider it to be "out" unless the JIT dialog ends or the attached debugger process is finished. You can either disable JIT debugging on the machines facing the problem (I think disable JIT debugging by disabling the machine debug manager service , Which lets the app crash and die (and, therefore, get out "), or (and I do not know how to go about doing this), see if you have your host C # + Can attach to the app as a debugger and c +

python - How do I link a combo box and a command button? -

यह मेरा कॉम्बो बॉक्स कोड है: self.lblname = wx.StaticText (self , -1, "टाइम्स-लोट", wx.Point (20,150)) self.ampleList = ['09 .00-10.00 ',' 10.00-11.00 ',' 11.00-12.00 '] स्वयं। संपादक = wx.ComboBox (स्वयं, 30, "", Wx.Point (150,150), wx.Size (95, -1), self.sampleList, wx.CB_DROPDOWN) और यह मेरा आदेश बटन कोड है: def OnClick (स्वयं, घटना): self.logger.AppendText ("% d \ n"% event.GetId ()) मुझे भेजने की आवश्यकता है कमांड बटन पर क्लिक करने के बाद कॉम्बो बॉक्स की सामग्री को एक फ्लैट फ़ाइल में। यदि आप ऑनक्लिक विधि एक ही कक्षा में हैं, तो आप अपने कॉम्बो के माध्यम से कैसे पहुंच सकते हैं? "post-text" itemprop = "text"> Self.edithear

Making a TPageControl flat in Delphi 7 -

I do not know the answer to this question can be given here, but I hope it will be. I wrote a simple text editor in Delphi 7 that acts as my primary IDE for writing C code under Windows. I will run Windows in a VM and I need some light. In any case, it uses a TpageControl that receives a new tab whenever you open a new file or create a pretty standard Now, there is no flat property in TPageControl under Delphi. No, I do not mean that the tab style can not be set to tsButtons or tsFlatButtons not set boundaries to "none" And it sounds really bad when you have a text ad in tab control Add the cut. Is there any way to make TpageControl flat? EDIT : The flat which supports the flat on an open source page control is here: I found: < Code> Process TCustomTabExtControl.WndProc (var Message: TMessage); Start (Message.Msg = TCM_ADJUSTRECT) and (FFlat) then Inherited WndProc (message); TPType Case Strength: Start PRect (Message.LParam) ^. Left: = 0; PRect (Mes

visual studio - VS2005, 2008 - ASP.NET Browser Settings -

Which browsers can I select / change when I run an ASP.NET web application in VS2005 or VS 2008? Can i Choose a file in a way -> browse with it when switching between IE and Firefox You can use it to change the default browser to start it. Just make sure that you select the ASPX page that you want to start already, otherwise the menu item will not appear. ALT H works if you want to use keyboard ALT F

c# - My presenter needs to prompt the user for more information. How do I wire it up? -

I am working with the idle view pattern. The user clicks on a new account button View Rep Palejarless Method of Call Responsibility for the presenter using The problem is that there are more than one account type so that the user has to choose which one they want to make. How do I solve it? Create a new look from the scene, get the required information and highlight it as a property so that the presenter can retrieve it. (It ignores the notion that there should be no logic in this scene) Create and use a new form from the presenter (this presentation directly in any form, ignoring the whole point of MVP ) Create a new look somewhere and pass it to the presenter as a constructor logic ... or see. Forget it and add a new button for each account type. (There are several types of accounts and it will disrupt the UI but it will happen.) I am going wrong about this and need to think about my design again (if this case , So a nudgeant attitude will be appreciated in the right

version control - How to get a previous revision of an assembly from an open source project -

I want to use Castle.Facilities.Logging.dll, although getting the latest version from the trunk produces problems with me Already referenced version of Castle. Micro Kernel Specifically, the error message is: "Castle Castle. Facilities. Logging, version = 1.0.3.0, ... 'uses' Castle.MicroKernel, Version = 2.0.0.0, .. 'There is a higher version than the referenced Assembly' Castle.microcernal, version = 1.0.3.0, ... ' Any idea how I can capture the castle. Logging DLL which is my References the special edition of other castle assemblies nearby? Is this straightforward? You are surprised Why do not I just upgrade my other ethnicities, but this is because I am using third-party open source architecture, and when I tried to update the assemblies before, Dependence Hell. " EDIT: I tagged the 1.0.x SVN to the RC3 repository, but it really fails to build "Windsor 2.x - .NET 3.5 - Release" releases the entire castle stack in the build Mad

c# - Dialog.Show Args -

Does anyone know what the elves are in the VSTO Excel dialog? Show Function? i.e. I want to set the sort option to select the "header row" but I do not know how to do this because I can only work with disappearing for every RG. Globals RiskViewerWorkbook.ThisApplication.Dialogs [XlBuiltInDialog.xlDialogSort] .Show (missing, missing, missing, missing, missing, missing, missing, missing, missing, missing, missing, missing, missing, Missing, missing, missing, missing, missing, missing, missing, missing, missing, missing, missing, missing, missing, missing, missing, missing); Excel 2003, for at least, xlDialogSort The args are as follows (starting with Arg1 ): orientation, key 1, sequence 1, key2, sequence2, key3, sequence 3, header, Custom, Case See a list of all the arguments for the underlying dialog

delphi - Making an IDE using Pascal Script and SynEdit -

I am creating a built-in script engine, which uses RemObjects (excellent) and SynEdit editor from Pascal script . It is almost exhausted using the IDE example which is sent in the synced with Pascal script and IEDE - but - I can not see what the Pascal script is, whether a fallen source line is 'executable' or not. (Then I can use it to mark the cenhead drain with 'Delphi Blue Dot'). I think I might have to make an imbalance of ROPS output? Any Pascal Script Specialists Here? Thank you. Brian View the source code It shows a small point in the SynEdit gutter area for lines with executable code , Which are executable but are not brown in color for the unmounted lines, green for at least one row rows. The code for this can be found in CompForm.pas , search for TLineState type. The information compiler is set in the callback of iscbNotifySuccess , you can do this in your IDE You may need to customize the code to handle multiple source files because the Inno

winapi - Windows 7 & VB Classic Code: Any runtime issues? -

Microsoft has promised that VB6 code will continue to work on Windows 7, but no one has ever seen that any GDG VB6 code is specific to running. Windows 7 RC? And for that matter, there is a problem with the COM object and ActiveX control outside VP6? I remember Microsoft that they will ensure that their control continues and that it ends; So I'm wondering what kind of under-hoodies changes on this ... We have a large number of legacy controls, which we need to displace - VB6 and C ++ - But it takes time to do this. Thank you. I have looked at one, but it is a minor and probably is not what you are looking for Are there. If you change the DPI to something over 96, the checkbox control looks really awkward, just like someone cut it and it shows you your courage on the checkboxes on the list box / list view. come into force.

java - Logback usage and printing lists -

I am starting to use logback and I want to know whether there are better ways to do something. I have this code: Public class class A {Private listing & lt; String & gt; L; Private logger logger; Public category () {this.logger = LoggerFactory.getLogger (this.getClass (). GetName ()); } ... public list & lt; String & gt; Method () {this.logger.debug ("method ()"); & Lt; String & gt; Name; Try {Names = otherClass.getNames (); } Hold (exception e) {string msg = "error in getting name"; This.logger.error (MSG); Throw New Class Exception (msg, e); } This.logger.debug ("name: {}", XXXxx); Name back; } I still have some doubts: In each class there will be a this.logger = LoggerFactory.getLogger (this.getClass () ) Each method will have a this.logger.debug ("method ()"); To know when a method is called. Does not it seem good that there is any way to solve it? Also I want to print a list in this list in .log

java - Using Hibernate with Dynamic Eclipse Plug-ins -

I have the name of the classes that are exactly the same as the different plug-ins I use for my application. The problem I am, and I like being in hibernation, is to be able to properly configure them, it seems that being in hibernation produces a class' package name dynamically when trying to find a class Time is mapping this one The plug-in works with this scheme, but it does not work in many plug-ins. It seems that hibernate is confused when dealing with hibernate configuration files in plug-ins in many ways. Is this because each plug-in has its own class-loader? What is the best way to work with existing plug-ins and hibernate? The problem is that each plugin has its own classmaker and in hibernation reflection uses it. I have a great article at home about this problem, but it is in a German, I will try to explain what you have to do. To share the datastructure on many plugins, you need to put it in the plug-in and give it to buddy-policy . Say that you have a mai

java - What is the best approach for serializing BigDecimal/BigInteger to ProtocolBuffers -

I am starting to migrate protocol buffers to custom serialization mechanisms. Particularly used as a regular type of data type is business graphical. Is there a good way to sort it into a protocol buffer? BigDisk for our current serialization routine serialization Two plane uses string (), and newer buggy (string) for deserialization - I believe that there is a better way. My guess is to define a BigDCAM: Message BDecimal {required int32 scale = 1; Required BInteger int_val = 2; } But I'm not sure how to define a Bigteger - perhaps using its Battery () method? Yes you should define BigInteger as BigInteger.toByteArray (). My guess is that BigDecimal will be: Message BDecimal {required int32 scale = 1; Required BInteger int_val = 2; } While BigInteger message BInteger {required bytes value = 1; Can be defined as; } The code to control BigInteger will be: write BInteger (Bigtegger Val) {BInteger.Builder Builder = BInteger.newBuilder (); ByteString

uikit - Create Multiple (similar) Levels based game in iphone sdk -

I have this game where the balloons are coming from below and the player has to first tap them by tapping: time ends OR 10 balloons leave the screen unpopular depressed Every level is the same, only the number of balloons in the change. For this, I have the following view controllers: Main LevelVC: The first one, when the BaloonPopViewController connects when the user selects to play the game. LevelIntroVC: This shows an introduction screen for 2 seconds for each level, basically an image level compute is loaded on the basis of ef 1.png, 2.png etc Level Astrovisi: The same as before but shows an outdoors screen. 1_outro.png etc. Level playview: This is where game logic is actually implemented. A link to the main menu (play, high score, etc.) is available here. I have done it for one level, the Global Variable in MENLELVC (originally implemented through a singleton) which defines maximum balloon allowing the screen to leave the unpop (left Balls) and the number of

iphone - In Cocoa, how do I use NSTimeZone to get the system time zone offset as a string? -

For PDT, I need "-0700". I'm getting a date last to determine that something happened sometime ago. NSDate * then = [NSDate dateWithString: @ "1976-04-01 12:34:56 -0700"]; // Note the hard-coded time zone at the end I will create a second string string, but I do not know how the local time zone has reached. I read the Apple Dates and Times programming topics for context with reference to NectemeZone and NSDT category, but it is very difficult to combine with information. I actually use some lines of code to show only this How I Can Use It Update : While struggling with this, I was writing the code using the command line template so that I could try things quickly, I just wanted to put my last code on the iPhone Tried and could not answer me for NSDate '+ dateWithString:' , if he was involved in confusion, who knew Apple would change such a basic class. The only correct way is to generate the whole string together from the date and tim

ruby on rails - Constricting find conditions based upon runtime contexts -

Wow Crazy Title! But here's the problem. In an effort to dry up the application of my school's website management system, I have created a module of my application and placed it in one place. The first fileset was used in the general website system, and there was also a child in the field of learning. They used to behave in exactly the same way, in addition to a subtle difference in the children's area, the fileset file was divided into two categories, startup, and general. The startup files are created by those teachers, the common people who have done the children now in the general website app, this distinction is not relevant and therefore it has been ignored. Here's a tough part I want to use the same controller and ideas in both contexts. At runtime I know that a fileset is in the field of learning either on the general site, so I can say that if it is in the context of learning area, then I want to stop FileSet.find (x). Files are only 'Normal' design

haskell - On Cygwin, how do I install curl from hackage? -

विंडोज कमांड प्रॉम्प्ट से, c: \> cabal install curl निर्भरता को हल करना ... कॉन्फ़िगर करना कर्ल-1.3.5 ... cabal: त्रुटि: कुछ पैकेज स्थापित करने में विफल रहे: कर्ल-1.3.5 कॉन्फ़िगर चरण के दौरान विफल रहे। अपवाद था: रन: गेनप्रक्रैस: मौजूद नहीं है (ऐसी कोई फ़ाइल या निर्देशिका नहीं है) मैंने सिगविन के कर्ल-डेवल पैकेज को स्थापित किया है, लेकिन एक सिगविन प्रॉम्प्ट से cabal install curl भी विफल रहता है, भले ही मैं - extra-lib-dirs और - अतिरिक्त- include- dirs पर, उदाहरण , $ cabal install curl --extra-include-dirs = c: / cygwin / usr / include \ --extra-lib-dirs = c: / cygwin / usr / lib निर्भरता को हल करना ... कर्ल -1 विन्यास करना .5 ... [...] कॉन्फ़िगर करें: त्रुटि: कर्ल लाइब्रेरी नहीं मिलीं, इसलिए कर्ल पैकेज नहीं बनाया जा सकता अधिक विवरण के लिए `config.log 'देखें Cabal.exe: त्रुटि: कुछ पैकेज स्थापित करने में विफल रहे: कर्ल -1.3.5 कॉन्फ़िगर चरण के दौरान विफल रहे। अपवाद था: बाहर निकलें: ExitFailure 1 उपरोक्त प्रयास ghc-6.10.3, कैगल-1.6.0.3, और cabal-install-0.6.2 के स

double - How do I convert a Python float to a hexadecimal string in python 2.5? Nonworking solution attached -

What I really need to do is export a floating point number C with no exact loss. I did this in Python: import math import structure x = math.sqrt (2) print struct.unpack ('ii', struct.pack ('d ', X)) # print (1719614413, 1073127582) and try this in CI: #include # Include & lt; Stdio.h & gt; Int main (zero) {unsigned long long x [2] = {1719614413, 1073127582}; LX long; Double XF; LX = (X [0] <<32 <32 X [1]; Xf = (double) lx; Printf ("% lf \ n", xf); Return 0; } but found in CI: 7385687666638364672.000000 and not sqrt (2). What am I missing? Thank you. Python code appears to be working. The problem is in C code: You have the long filled right , but then you change the integer values ​​directly to the floating point, instead of re-defining the byte < Code> double . If you throw some points or address it, then it works: jkugelman $ cat float.c #include & lt; Stdio.h & gt; Int main (zero) {unsigned lon

php - echoing multiple arguments when output_buffering is on -

Googles make internet fastest in dialogue to use echo in PHP with many arguments Instead of using print or string combinations, some include. resonance is 'ball', $ color; Instead of any of these echo "the color of the ball is $"; The resonance is 'ball' $ color; Is the output buffering play? What would be the difference between using the resonance with multiple arguments with output buffering, output buffering without optional buffer Be sure to read. Specifically, he (Gwyn Raskind) says: 4) "Do not use converge with resonance." This is contrary to the right advice, the engine handles many logic to encode () in such a way that the inclusion (or double-quoted string interpolation) is actually very fast, see benchmark.

Django: RSS and ATOM feeds Content-Type header? -

I went along with Django's RSS and ATOm feed and I had to do this work. However, the development development server downloads the browser as a XML document rather than a browser rather than a browser. My experience with HTTP tells that there is no mixed type in the content-type header How do I specify it in the Django? There is a comment in this about every block source code. They define a class, which changes the MIME type of the standard Django feed like: # RSS feed Powered by Jengo syndication framework Maimim type # ' Application / RSS + xml 'This is unacceptable to us, because that MIME type # prompts users to download feeds in some browsers, which is misleading. #here, we set the MIME type so that it is not such a prompt. Class Shimimtaipfid (Rups 201 rev2Feed): mime_type = 'application / xml' # This is a Dijanka. Contrib.syndication.feeds.Feed subclass whose feed_type # Set our favorite MIME type class Ibubfeed (feed): feed_type = Shimimta

java - how to read my blob column from mysql to string type in hibernate -

How to type the string from mysql to my Blob column in hibernation I try this way But Alway me back: [B @ 196F4B5 Article Article 2 = f.daoArticle.findById (article.getSrcUrl ()); String vbody = article2.getArticle (); Println (vbody); \ Hbm end lieutenant; Class catalog = "eriso" name = "colvord.rice.dav.artical" table = "article" & gt; & Lt; Id name = "srcUrl" type = "java.lang.String" & gt; & Lt; Column length = "200" name = "SrcUrl" /> & Lt; Generator class = "assigned" /> & Lt; / Id & gt; & Lt; Property column = "paragraph" generated = "never" lazy = "false" name = "article" type = "text" no-null = "true" length = "10485760" /> & lt; / Square & gt; \\ Anybody help? I took 3 hours !!! I suggest that you check the following page from interwibes: < / P> This desc

compound sorting in python -

I have a python script that receives a lot of data, the sample is given below 4 fields in the first Two letters, one digit, one slash, and one or two digits Gi3 / 2 -. -. -. -. - 0024.e89b C10e Dell Inc. Gi5 / 4 - - - - -. - 0030.c1cd.f038 HEWLETTPACKARD Gi4 / 3 - - - - -. - 0020.ac00.6703 Interface DATENSYSTEME GMBH Gi3 / 7 - -... -... - 0009.4392.34 F2 Cisco Systems Gia 6/6 - - - - - - 001c.2333. BD5A Dell Inc. G3/16 - - - - - -. 0009.7c92.7af2 Cisco Systems Givis / 5 - - - - - - - - 0020. ACACX 3.03 FB 0 Interface Diagnostic G G. 4/5 - - - - - - - - - - - - - - - - - - - - - - - - 0009.4392.6 DB2 Cisco Systems Guinea / 6 - - - - - - - 000b.cd39.c7c8 Hewlett Packard Gi6 / 4 - - - -. - 0021.70d7.8d33 Dell Inc. Gi6 / 14 - - - -. What would be the best way to sort this correctly on the first field, so that this sample can be read . Gi3 / 2 - - - - -. - 0024.e89b.c10e Dell Inc. Gio 3/7 -... -... - 0009.4392.34 F2 Cisco Systems G3/16 -----. ----- 0009.7c92.7af2 Cisco Systems G