Posts

Showing posts from January, 2011

Is there a detailed "how to" on Unit Testing for Visual Studio 2005 -

I have never written / run a unit test. I'm a relatively young programmer, but I do read a lot. I am searching for information about unit testing because I see a lot, but I have not seen anything, which is actually spelled for me from step 1. I have Visual Studio 2005 Professional. I will start a new window project in the next two days and I want to cut my test test teeth with this project, but I do not even know where it starts, I have seen those sites which say That unit testing has been made in VS 2005, but in the following examples I think I do not have the same context menu content. Do I want to create a separate project or class? And what about this regression? Do I test every time I do the test? So there are so many topics that why use the unit test, so I am hoping that some members can provide me or fully run the unit test installation-run through the tests . You will need team system to perform unit testing in Visual Studio 2005, or a third such as NUNIT - The...

.net - WebException when reading a WebException's response stream -

I am communicating with the web server over the net. The web server throws 500 internal server errors and writes a detailed error message. I am trying to read the error message received from a web exception, but getting another web exception is why another web application has been thrown out? Try {var webResponse = (HTTP Webbense) webRequest.GetResponse (); } Catch (WebException e) {if (e.Status == WebExceptionStatus.ProtocolError) {// next line throws a web exception console. WrightLine (new stream reader (E. Response. GetspoonSstream ()). ReadToEnd ()); }} Why is this amazing? Try out the following MSDN: try {// Create web requests for an invalid site. Build "Invalid site" in the Make Call with an invalid name. HttpWebRequest myHttpWebRequest = (HttpWebRequest) WebRequest.Create ("Invalid Site"); // Use the received feedback for the above request (HTTP Web Response My HTTP Web Response = (HTTP Webbations) myHttpWebRequest.GetResponse ()) {myHttpW...

c# - (.net) Logging the function logic of my program -

I want to be able to log in for debugging purposes which functions are called and in what order. So I'm just putting debug WrightLine ("myfunctionName (args)") on all its operations, entering the file at the end. Is not there a better way to do this? I hope this will happen. Look at aspect oriented programming You can apply AOP in your C # code Can use for Such as public class trace activity: OnMathBoundaryAsepact {public override zero onyari (method of action aggravating aggregates) {Trace Tees Information ("Entering {0}.", EventArg. } Public override zero onxit (methic action aving arge's eventArgS) {Trace Tees Information ("Lefting {0}.", EventArg. Method); }} You can now decorate your methods with 'trace attribute' and you will be able to enter information about when the method is called.

c# - WPF DataGrid - Button in a column, getting the row from which it came on the Click event handler -

I have set items of my WPF degrid in my list of returned objects from DAL. I've also added an extra column that has a button, xaml is below. & amp; Toolkit: DataGridTemplateColumn MinWidth = "100" Header = "View" & gt; & Lt; Toolkit: DataGridTemplateColumn.CellTemplate & gt; & Lt; DataTemplate & gt; & Lt; Button click = "Button_Click" & gt; View Details & lt; / Button & gt; & Lt; / DataTemplate & gt; & Lt; / Toolkit: DataGridTemplateColumn.CellTemplate & gt; & Lt; / Toolkit: DataGridTemplateColumn & gt; This presents well, however, on the Button_Click method, is there any way that I can get a line on the datagram where the button remains? More specifically, one of the attributes of my object is "Id", and I want to be able to pass it in another form constructor in event handler. Private Zero Button_Click (Object Sender, RoutedEventArgs E) {// I would like to know wh...

python - Smart date interpretation -

I do not remember which application I was using, but I remember that it actually parsing the right date / Interpretation. For example, you can type in 'two days ago' or 'tomorrow' and it will understand. Any library to suggest? Bonus points, if usable from Python. For a link to three Python dens parsing libraries, the most used of these is unfortunately but unfortunately Can not handle all formats.

Java licensing for commercial distribution -

I'm thinking of using Java to write a program, which I can try to sell one day. I am new in Java so that I have to ask what kind of tools / software / etc I will need (for development, user-friendly installation on users' machines), whose licenses are to ensure that Should they be considered for sale and off source code, etc.? Do we think the user already runs at least one Java app, and therefore there is a fairly recent version of Java on their machine? Besides, do you have any recommendations for a specific device that are definitely suitable for this purpose? It is very rare to see any development tool that you use them You can use the software. Its only exception is the library, and it is not a problem with standard Java libraries. Tools, IDEs and so on - whether they are free or not - will not affect how you can distribute your code. There are some strange exceptions, such as BitKeeper source control software, whose license can compete with bitkipper, which ...

c# calulcation logic -

I'm looking to gather an argument to look at a particular number and tell on a simple collection basis That's what the second number is. Example - I can say that I have a string of letters and each 50 characters increase the integer to 1. So if I have 0 - 49 characters, counter = 1, if I have 50-99 characters, then counter = 2, if I have 100 - 14 9 characters, counter = 3 I thought I could type everything to do this, but I do not do such a thing as sometimes it will be round when it should always be round - that is, int (charcount / 50). I wonder if I have to use the modulus operator. any suggestion? For this precise example, you can increase the counter after your partition, so: int counter = (int) (stringToCheck.Length / 50) + 1

Asp.net MVC same view name, different paths -

मुझे एकमात्र पथ फ़ोल्डर संरचना है, जिसमें समान नाम दृश्य हैं: / profile .aspx /admin/profile.aspx /user/editpost.aspx /admin/editpost.aspx / नियंत्रक | - PostController.cs | - ProfileController.cs मैं सक्षम होना चाहता हूं एक फ़ोल्डर में सभी नियमित पृष्ठों और दूसरे फ़ोल्डर में व्यवस्थापक पृष्ठों। क्या मुझे अपने दृश्य फ़ोल्डर को व्यवस्थित करने की आवश्यकता है: / दृश्य / उपयोगकर्ता / कहानी | - editpost.aspx / प्रोफ़ाइल | - profile.aspx / admin / story | _ editpost.aspx / वेब | - profile.aspx या मैं ऐसा कर सकता हूँ: / उपयोगकर्ता / दृश्य / कहानी | - editpost.aspx / प्रोफाइल | - Profile.aspx / एडमिन / दृश्य / स्टोरी | _ editpost.aspx / वेब | - profile.aspx इसके अलावा, मैं / उपयोगकर्ता और / व्यवस्थापक के लिए अलग-अलग नियंत्रकों को कैसे संसाधित / संगठित / उपयोग करूँ? धन्यवाद!

.NET Framework Library for arbitrary digit precision -

I am reviving this question, and am making it more specific: is there a Net Framework Library that is arbitrary Supports digit numbers Here are some options. A good option, which is the original C # /. Net, and arbitrarily supports accurate floating point values. If you are only working with integer values, then arbitrarily provides support for exact integer values. There will be a potentially more mature alternative, but again, it will not support the floating point operation.

networking - UUIDs and byte-swapping over network -

Is there a standard acceptable way of byte-swap UUID for transmission on network (or file storage)? (I want to send / send 16 raw bytes instead of converting UIID to string presentation.) I first thought that I should divide the UUID into 4 32-bit integers and on each Huntlal should call them, but that was not the right odor. The internal structure (RFC 4122) is in a UUID: Type -Fff structure {unsigned32 time_low; Unsigned 16 timings_media; Unsigned 16 time_en_and_version; Unsigned 8 clock_ac_c_a_and_reserved; Unsigned 8 clock_sc_la; Byte node [6]; } Uuid_t; Is it OK to do this: ... uuid.time_low = htonl (uuid.time_low); Uuid.time_mid = htons (uuid.time_mid); Uuid.time_en_and_version = htons (uuid.time_high_and_version); / * Other fields are displayed as bytes and should not be swap / .... before writing it, and then it is okay ... second end Call after reading? Thank you. Yes, that's the right thing. Each number ( time_low , time_mid , time_hi_and_ver...

Disable Hot Code Replace for the Eclipse Java debugger -

संभव डुप्लिकेट: जब आप डीबगिंग सत्र में जावा कोड बदलते हैं, तो एक्लिप्स अपडेटेड क्लास फाइलों को चल रहे जेवीएम (हॉट कोड प्रतिस्थापन) में अपलोड कर देगा। यह दूरस्थ अनुप्रयोगों के लिए भी काम करता है। क्या गर्म कोड बदलना बंद करने का कोई तरीका है (ईक्लिप्स के अंदर, रिमोट जेवीएम पर नहीं)? हम अपनी डिबग करने में सक्षम होना चाहते हैं परीक्षण और मंच सर्वरों को दूरस्थ रूप से बचाता है, लेकिन वे चल रहे निर्माण के लिए अनजाने में अपडेट को रोकते हैं। , यदि एचसीआर काम नहीं करता है, आपके पास 'स्वचालित बिल्डिंग' बंद हो सकता है। इसलिए, शायद डिबगिंग के लिए स्वत: बिल्डिंग को बंद करने से आपकी समस्या का समाधान हो।

database - Use unicode(255) for all column types in postgres? -

I do not understand when to use different lengths for calling Unicode. I am using UNODAD (255) for all my columns in my postgrege database such as address, name, description etc. Is not it foolish to do this? Make sure what you mean by "Unicode (255)" - such data type in postgresqual Not: # Make table (x unicode (255)); Error: Type "Unicode" does not exist LINE 1: Create table q (x Unicode (255)); ^ It may be that you mean the curse (255). In this case - ask me: What if you need 320 character description? Personally I like to use text datatype - as the database usually does not care that the string is 100 or 1000 characters long.

lifecycle - Agile Development vs. Publishing Too Early -

where you draw people between playful and a limited feature set) and Publishing Very fast (Which does not mean buggy)? I am thinking that if you publish very quickly, then perhaps the potential users are overcome by thinking that your product is half-thrown on the market randomly, the other finished software Can not compete with and will never return. But then, the 'agile' development has been originally designed so that it can rotate as quickly as possible. Where do you draw the line? Am I wrong, as long as I think they are extremely qualified for the user's time, do I want to delay publication products? Do not remember me on marketing, development or other occasions because I did not leave it early? I would be very interested in your thoughts on this topic. Thanks (!) Understanding ("my understanding") does not necessarily mean "publish"!

How to get GCC linker command? -

How can I use GCC to open the LD? I have a problem AVR target where the GCC apparently added a linker option which I am attempting to override, so I want to see the exact options of GCC use for LC. Use GCC-V to use it. As it is, GCC-V-o hello Hello This will print a lot of output including the linker command. The actual output depends on the platform, but the linking command must be near the end. Alternatively, GCC - ### -o Hello Hello. It is similar to -v , but does not actually run any command and option quotes. Another option gcc-dumpspecs link . The above command line flags are listed in the GCC --Hop and explained on the man page. Here it is.

c# - ASP.NET MVC Custom Error Handling Application_Error Global.asax? -

I have some basic code to define errors in my MVC application. Currently I have a error in my project Working methods with a controller called HTTPError404 () , HTTPError500 () , and normal . All those string parameters error accept or use the code given below What is the best / proper way to pass data to the error controller for processing? I would like to have a strong solution as possible. Protected Zero application_Error (Object Sender, EventArgs E) {exception exception = Server.GetLastError (); Response.Clear (); Exception as HttpException httpException = HttpException; If (httpException! = Null) {Routed Data Routine = New Root Data (); RouteData.Values.Add ("Admin", "Error"); Switch (httpException.GetHttpCode ()) {case 404: // page path data not found. value. Add ("Action", "HTTPERR 404"); break; Case 500: // server error path data value. Add ("Action", "HTTPAR 500 500"); break; Default: route data value. Ad...

visual studio 2008 - VS2008 Team compiles the previous code version even after "getting the latest version". How do I fix that? -

I work in the VS2008 team. I get the latest version from the team server. I try to compile the new version, but VS-2008 tries to compile the previous version somehow. Although I restart my PC, VS The latest version does not compile, but the last one. What am I doing wrong? You can not be used to control the source control of the team foundation server. It's not like SourceSafe, where "Get the latest" means whatever changes you have with the latest code. With TFS, "Get the latest" means synchronizing your latest code with the latest changes made by other users, which means, if you have made changes to the file locally (or TFS trusts you) , Then those changes will not be overwritten, but instead of merging with any changes in source control of TFS. Many times, if you undo your changes, TFS will only show the latest code in source control. But if you do not have the file checked then there may be local changes that are not in line with any changes ...

How to use Java's JAR file with Aptana RadRail's JRuby project? -

Everyone is trying to use Aptana RadRail to work on my Djerobi project. JRB has a good feature, capable of using the Java Library in the world. But how do I try to figure out that it happens with Aptana RadRail IDE. Netbeans are also good IDEs, but I like eclipse-style. Can you tell me how does this happen? Do I have to do it through IDE or any other solution? Regardless of what the article related to the link says, before you apply jruby manually, Can set env variable You can also insert a jar file in JRUBY_HOME / lib and they are automatically on the classpath. These and above mentioned techniques work regardless of the IDE you use (or even if you do not use the IDE at all).

.net - C# tutorial to write gadgets -

How can I write a gadget for the Windows 7 desktop using C # and Visual Studio 2008? I am looking for tutorials and resources on that topic. Try it C # is not the only option to explain how to develop gadgets without C #. (Generally the gadget was written in a mix of XML, HTML, CSS, and some IE scripting languages.) A related stack overflow question which can provide additional information as well.

sql - Database vs. Front-End for Output Formatting -

I've read that (all things are the same) PHP is usually faster than MySQL in the operation of math and string manipulation. This is the case, where does one say to create a versus vs. database created by a web server (s)? We use stored procedures specifically as our Data-Access Layer. My unwritten rules have always been to leave the output formatting (string manipulation and arithmetic) on the web server, so our query returns: The following dates Zero value There is no calculated value (i.e. return value for the column "foo" and "bar" column to the web server to calculate foo * times, if it needs to display the value for the forefront) No substring-less fields (except when small f Land is so importantly small that we want to reduce the result at the database level size) Give output to two separate columns according to the need of front-end case This is the opinion that I am interested in this, it is generally a proper approach, or if others are...

codeigniter photo thumb create and upload -

This gives an empty screen: / it uploads the first image, all right. In comparison, it calls _create_thumbnail and gives it an empty screen at "$ the-> image_lib-> resize ()": / What could be the problem? Thank you! / ** * ======================================= ================================ Upload photo * * * thumb = 210px - 160px * original = 500px - 385px * * / function img_upload () {$ config ['upload_path'] = 'upload /'; $ Config ['allowed_types'] =' GIF | JPG | JPEG | PNG '; $ Config ['max_size'] = '1000'; $ Config ['max_width'] = '1920'; $ Config ['max_height'] = '1280'; $ Config ['width'] = 500; $ Config ['height'] = 385; $ This- & gt; Load-> Library ('upload', $ config); If (! $ This-> upload-> do_upload ()) copy $ $ this- & gt; Upload-> Display_errors (); Other {$ fInfo = $ this- & gt; Upload-> Data (); $ This- ...

"Templating" in jQuery - sharing some values between selectors -

Another novice question. There was a question about me that works, the solution leads me towards: $ ("input [id $ = tbMyTextbox]"). Qtip ({Content: 'Test', Status: {Corner: {Target: 'RightMiddle', Tooltip: 'leftMiddle'}}, Show: {When: {Event: 'Focus'}}, Hide: {When: {Events :' Dim '}}}); It works, I need to implement several tooltips, and every time I just need to change the selector and content-attributes, while the rest are all the same. What is a common way in jQuery to put settings in a normal way? Just like a sub-clinging I am not interested in any server-side solution to generate jQuery code due to some technical limitations (b) some technical limitations and b) my learning desire jquery). {condition: {corners: {target: var defaultStyle = {content: Show the following: {when: {event: 'blur'}}} // extension method default with 'defaultMiddle', tooltip: 'leftMiddle'}}, show: {when: {event: ...

.net - Oracle Update Hangs -

I'm having trouble with an oracle update The call to ExecuteNonQuery is hanging indefinitely Code :. Using (OracleCommand cmd = new OracleCommand (dbData.SqlCommandStr, Connecticut) {foreach (string colName in .dbData.main .ke) CMD. Parameter. Add (callname, dBData.value [callname]); CMD. Comma timeout = txtimeout; Int nRowsAffected = cmd.ExecuteNonQuery (); } Command timeout is being set to 5, and the parameters are being set to small integer values. . query: set up "BEN" "TABLE03" = "COLUMN03" =: 1, "COLUMN04" =: 2 ou COLUMN05 & gt; 0 The query runs faster than sqlplus, and usually runs faster with my code but every time it hangs forever. I have a question on v $ locked_object, and there is a record referring to this table, but I think the update is not completing that Two things to me Want to know:? What could be the reason for the hang of the update? More importantly, why is not an exception being thrown out h...

flex3 - how to navigate to an state of an mxmlcomponent-A on clicking a button of mxmlcomponent-B? -

I have a mxmlcomponent button when I click on mxmlComponentB as needed. How is this possible? There are a lot of ways it can be done. Looking at the context you provided, you may have component A, click on the event of the component B button, and the event handler can change the position. This is a very tightly coupled solution, though possibly the most directly forward, so it depends on what is happening with your app.

Need advice on html/css structure for indented, threaded comments -

I have a comment section in my app that looks like this: response1 Response 1A response 1B response 1B1 reaction 2 reaction 2 reaction 2 reaction 2C reaction 2C1 reaction 2C1A response 2C1A1 response 2C1A1 response 2C1A1A response 2c 1A1A1 I believe it is called threaded annotations. You might have seen this format on many online discussion sites like reddit Am I thinking about how to implement it in my app's HTML? What kind of html / css combination will give the most sense to allow such an application - in the defined HTML code = "comment" & gt; Response 1 & lt; Div class = "comment" & gt; Response1a & lt; Div class = "comment" & gt; Response1a1 & lt; / Div & gt; & Lt; / Div & gt; & Lt; Div class = "comment" & gt; Response 1b & lt; / Div & gt; & Lt; / Div & gt; and in your CSS: .comment {margin-left: 50px; } This approach is very flexible and portable. &...

c# - FileUpload asp.net -

I just want to search my user in a special folder when using the file upload control, is it possible? No, it is entirely up to the client, as long as it is pure HTML, Say, ActiveX implementation.

asp.net mvc - How to get parameter in OnActionExecuting? -

मैं नीचे दी गई डिफ़ॉल्ट मार्ग नियम को संशोधित करता हूं: routes.MapRoute ( "डिफ़ॉल्ट", // रूट नाम "{नियंत्रक} / {action} / {id}", // यूआरएल पैरामीटर के साथ नया {नियंत्रक = "होम", एक्शन = "इंडेक्स", आईडी = (स्ट्रिंग) null} // पैरामीटर चूक); तब मैं यूआरएल को इस रूप में सेट कर सकता हूं: / नियंत्रक / क्रिया / मेरेपरम / होम / इंडेक्स / मायपरम > डिफ़ॉल्ट एक्शन इंडेक्स होगा: पब्लिक एक्शन रिजल्ट इंडेक्स (स्ट्रिंग आईडी) {// ....} मैं परम में प्राप्त कर सकता हूँ कार्रवाई। लेकिन मैं परम को ऑन एक्शनएक्शीस्टिंग करना चाहता हूं। मैं इसे कैसे कर सकता हूं? आपको इसका उपयोग करने में सक्षम होना चाहिए: सार्वजनिक ओवरराइड शून्य ऑनएक्शनएक्शीरिंग (एक्शन एक्सेप्टिंग कॉन्टैक्ट फ़िल्टरकांटेक्स्ट) {string id = filterContext.RouteData.Values ​​["id"]; // ...}

c# - From DataTable to BindingList -

I am in the process of switching from the DataTable to the binding list. I can force DataTable with the DataGrid object. Here's my dilemma: While I definitely look at the benefits of switching, my circumstances get a little complicated and I'm wondering if it's worth it to switch or not. My scenario: I have a data grade that shows chemical samples. There are 5 types of sample types, where the columns in the grid will vary for each type (and sometimes within the same type depending on other criteria). Some columns remain the same, some are present in 3 types, some are in 4 etc. Not a simple warship case at all. Currently, I have a datatlet that makes it easy because I can load whatever column I want to do without the properties of each sample which is what I have to do if I use the binding list but then The binding list will make it very easy under the road to refer to sample properties. This is my first experience with this object (binding list), so any suggestion...

visual studio 2008 - .NET Graphics Image -

I have many images that I want to put in a window form. The images themselves are 85 x 85. Each image has a white background with a cylinder object (of different sizes) that can be located at any location of the image. For example: Image 1: top left corner image 2 (25, 35): 85W a cylinder image upper left corner x 85h I am thinking that what is programmatic is possible with prescribed status (25, 35) or (28, 42) .NET Graphics Library. Actually what I want to do, repeat the cylinder in a certain coordinate, (10, 10) from the top left corner. Bitmap class that provides a pixel color bitmap, the X and Y coordinates are given. A technique is probably to run rows and columns of data to determine at least X and Y coordinates, where there is a non-white pixel present. This technique is not enough if the images are small and / or the call calling GetPixel is rather slow since it is not a major idea. Another approach [] received bitmap image data in a byte and then non-some ...

mysql - How can I optimize this query to execute faster? -

This is for friends modules on my site, where users can make friends with each other "Friends: "Is stored in the table, whose friendship is friendship as a friendship and the person who gives approval / acceptance to humans is friendly_acceptor SELECT user_id, user_name, user_gender Quit user (users) .user_id = friends.friendship_inviter or users.user_id = friends.friendship_accepter) WHERE (f Riendship_inviter = '125' or friendship_accepter = '125') and user_id! = '125' and friendship_level = 1; It scans a full table, and although tables are not large (15,000 users, 3000 friendships), it takes 1-1.5 seconds on average. How can I output the list of existing friends like this which will reduce the server? SELECT user_id, user_name, user_gender Leave User WHERE friendship_accepter = '125' and user_id at users.user_id = friends.friendship_accepter = '125' and select friendship_level = 1 union user_id, User_name, leave th...

vb.net - Convert VB to C# - My.Application.Info.DirectoryPath -

निम्नलिखित VB (VB.NET, VisualBasic) बयान के लिए सबसे अच्छा सी # (csharp) समकक्ष क्या हैं My.Application.Info.DirectoryPath My.Computer.Clipboard My.Computer.Audio.PlaySystemSound () My.Application.Shutdown () अनुप्रयोग। Exemptable path सिस्टम। विन्डोज.फॉर्म। क्लिपबोर्ड सिस्टम। मीडिया। * एप्लिकेशन.एक्सिट

wpf - Chaining dependency properties with MVVM -

I am looking for a way to expose a property in my ViewModel and with two different controls in my view Is impressed. / P> In the code view, I am trying to do something like this: propdp object MyObject ... & lt; MySelector selectedItem = "{MyObject binding, mode = twitter}" /> & Lt; MyEditor DataContext = "{Binding MyObject, Mode = TwoWay}" /> Its purpose is to allow the user to select an item and edit it on the same user control, but this is not working for me when a selection is made in MySelector, So the change fails to promote MyEditor Is it possible? If you want to complete, then the editor controls point indicating what the selector control is pointing to , Just adjust MyEditor to force it to: & lt; MyEditor DataContext = "{Binding Path = Selected Eatam, ElementName = mySelector}" / & gt;

compiler construction - How to compile Fortran 77 files in linux? -

I need a compiler for Fortran 77 in Linux. Is any free compiler used from there? I have heard about g77, but I can not find an RPM or how to install it in Linux. Thank you! The name of the Fortran Compiler of GCC has changed: g77 Gfortran , which handles Fortran 95 and possibly more recent versions. The package in Ubuntu is called gfortran : sudo apt-get install gortionran (Or use synaptic) In Fedora, the package is called gfortran and is part of the gcc, which you probably already have: sudo yum install gcc (or use pirut) Similar searches should also work for your distribution. Update: The package is called gcc4-gfortran at RedHat 4.1.2. Incidentally, you should be able to do this searching with yum, and this may be the best answer to your question: yum search "* fortran *"

vba - How can I make a network connection with Visual Basic from Microsoft Access? -

We have a visual basic application inside Microsoft Access and we need to create a network connection. With VB6, WinSock was an easy-to-control, which made it possible, but I did not get anything to snatch the VB version inside Microsoft Access. Any ideas? Since I am not getting any answers, I will try to clarify what I want for it. My application sends an email, and we currently use the built-in Outlook object to create a message and send it in the background. The drawback is that it prompts the user to approve an "external program" to send an email, which frustrates our users and seems unnecessary. The other email options I can search online are either to download or purchase, which will be very laborious for us to deploy all of our users. I was hoping to manually use a socket control to connect to the SMTP server and send a message (since it is trivial in other languages) but I have to make a TCP connection in VBA Can not find any way. I just settled this is...

c# - How to highlight or change the color of some words in a label dynamically at runtime? -

I have a label with some text and I do not want to highlight or change the color of some words in the text of the label Not all words It should be dynamic any suggestion? This is for C # with ASP.NET, which is under user control in the shareholders in the webpap On the server-side, you can embed some HTML into the text of your label (VB): myLabel.Text = "some general text This is the basic system, but 'dynamic' means many things here. It is possible. If you post some more information about what you are actually doing, then I can probably help you more. Another thought: As Rob Allen pointed out, Little Control might have a better option in this situation since it is intended to emit raw HTML, while the labels wrap the text in the interval so that The whole thing can be easily formatted. For more information see this: For the record, I think a label can actually be fine.

eclipse - Caching the repository index in m2eclipse -

Every time I start out with a new workspace, m2eclipse download the Nexus-Mayon-repository-index.gz Mayen Central From the repository This is good. But, some time, I just want to start a new workplace, and do not want to wait to download it, tried to imitate it whole. The Metatadata directory from the old workspace is new, but the list of Maven artworks is still empty Can I cash it? Or at least download the file once, and copy / extract / repackage it so that m2eclipse believes that it has already downloaded it and allows me to search for Maven artifacts. Or a small version of that question in which format is the "nexus-maven-repository-index.gz" file stored in the workspace? index is stored in the plug-in's metadata space, i.e. [workspace root] /. Metadata / .plugins / org.maven.ide.eclipse / nexus Use will be a folder for each remote repository indicator. You can configure the plug-in not to be downloaded at startup, Window-> Preferences-> Meowe...

exception - exit failed script run (python) -

After successfully completing a task, I have seen many questions about coming out of a script, but for doing so Is there a way to have a script that has failed? I am writing a test script which only checks that a camera is working correctly if the first test fails, it is possible that the following tests will fail; That's why I have the first time trying to get an exit and to provide the output to the screen, I know there was an error. I hope this is enough information; Let me know that I need more information to help. Are you looking for a function? Import if 1 & lt; 0: Print & gt; & Gt; Sys.stderr, "Something is seriously wrong." Sys.exit (1) exit () is the return code (optional), the script will return to the shell. Usually indicates an error compared to 0.

getting data from 2 different table with JOIN sql. Codeigniter -

I use codeigniter, and I need to get data from 2 different tables for now only this works_image table How do I get data from both tables? Thanks a lot! Select $ this-> db-> ('works_image. *', 'Works. *'); From $ the-> db-> ('works_image', 'works'); $ The-> db-> Join ('works', 'works.id = works_image.id_work'); $ Result = $ this-> db-> get (); Foreign exchange ($ result-> result () as $ line) {echo "#". $ Line-> ID "-" $ line-> thumb "-" $ line-> wname " "; } Unless you are SELECT * (), you () . This will select all the fields by default. $ this-> Db- & gt; ('Works_image', 'works'); $ This- & gt; Db- & gt; Join ('works', 'works.id = works_image.id_work'); $ Result = $ this- & gt; Db- & gt; get receive (); Should work fine. Instead, what you are actually doing tells you exactly which fiel...

c# - Radpanelbar collapse/expand issue -

Friends, I have a problem with Taylor's Red PanelBeer control. I have the Q1009 version of the control. I have ASP Follow .NET code: & lt; Telerik: radapenel large width = "297px" id = "red panellbara 1" runat = "server" skin = "web 20" allow collapse aliethum = "true" extension mod = "single expanded item" persistentate inkke = "true" & gt; & Lt; Items & gt; & Lt; Tele-rica: Rad Panel Item Runat = "Server" Text = "Standard Report" Expanded = "True" & gt; & Lt; ItemTemplate & gt; ... standard HTML template code here ... & lt; / Itememplate & gt; & Lt; / Telerik: RadPanelItem & gt; & Lt; Teller: Rad Panel Item Runat = "Server" Expanded = "Wrong" Text = "Non Standard Report" & gt; & Lt; ItemTemplate & gt; & Lt; ASP: label runat = "server" text = "test" & gt; ...

Interactive python -

संभव डुप्लिकेट: क्या मैं एक अजगर सत्र में सब कुछ बचा सकता हूँ जब "ब्रेन टर्फिंग"? उदाहरण के लिए, केवल डिफ़ॉल्ट चर नहीं बल्कि निश्चित रूप से खोल को ओवरराइड भी कर सकते हैं। मैं निश्चित रूप से वास्तविक अजगर निष्पादन योग्यता का उपयोग करके इसका मतलब हूं। मुझे गंभीरता से आशा है कि यह कोई बेवकूफ सवाल नहीं है। मुझे भी निश्चित रूप से प्रतिनिधि की आवश्यकता है, इसलिए यह मुझे थोड़ा जांचता है। IPython (जैसा कि एक और जवाब में सुझाव दिया गया है) वास्तव में एक अच्छा सुझाव है, लेकिन अगर आप अच्छे पुराने अजगर को पसंद करते हैं इंटरैक्टिव दुभाषिया यह या तो वहाँ करना मुश्किल नहीं है अपने परिवेश चर PYTHONSTARTUP को उस फ़ाइल को इंगित करने के लिए सेट करें, जिसमें उदाहरण के लिए: आयात करें atexit import readline try: readline.read_history_file ('। PythonHistory') OSError को छोड़कर : पास atexit.register (लैम्ब्डा: readline.write_history_file ('। PythonHistory')) यह आप के रूप में tweaked किया जा सकता है (उदाहरण के लिए लोड करने और उसी फ़ाइल को सहेजने के लिए, 'स...

Avoiding null pointer exceptions in a large c++ code base -

I inherited a large C ++ code base and I have the task of avoiding any null pointer exception The code can be in the base. Are the static analysis tools available, I'm thinking that you have successfully used what other things can you see? You can start by terminating the source of zero: if (error) {return tap; } In if (error) {returnOffice; // Ex: An empty vector} If the default objects return and your code base already uses an exception, then if (Error) {BadThingHappenedException; } Then, add handling to the appropriate places. If you are working with a legacy code, you can create some cover functions / classes: result type * new_function () {ResultType * result = Legacy_function (); If (result) {return result; } And {BadtingHappedExation; The new functionality should start using new functions and should be handled with the appropriate exception handling. I know that some programmers do not get exceptions, smart people like, but what is ha...

html - Background gradient fill for flexible div's, either using css or images? -

I am using a certain height image so that fill a device with gradient color which: background: transparent url (Green_bg.gif) Repetitive-X scroll 0 0; While this is just the height of the fill image, what is the best way to fill a div's backfind, which changes the height, according to the amount of text in it, either of the images Using or Using CSS? I think what you want is that a background is a background image (which is a gradient ) And then the rest of the way with a solid color? If so, in Photoshop (or image editor of your choice), get the hex of the last pixel in your shield for logic, assuming it is #FF0000 then do this: .mydiv {background: # FF0000 url (green_bg.gif) repeat-x0; } This will fill your background with #FF 20000 (red) and overlay its background image above it, starting from the top of your div, the horizontal (X-axis) ) Repeat. The way to display red background is to increase the amount of content in your div. In addition to this, if you w...

Search prob in mysql query -

Is there any way to search in mysql as parameters? If any one answers. If I search with "Murray", it will return the fine figures for "Murray's", but it should also return the data for "Murrayz", which means Apostrophe ('' without ). In the same way if I search for anonymity ('), it will also search with apostrophy ('). Finally If the search query is "Murray's", it will also return "Murray" and "Murray". And If the search query is "Murrayz", then she is also "Murray" and "Murray". Thank you in advance Your best bet is that your table. You can ask it like: Select from the restaurant * where against the match (name) ('Murray') By excluding it, you can use or in your query. The following two questions very similar : Choose from restaurants * where soundx (name) = soundx ('murray') * Choose from restaurants where the name sound...

How can I get a value from MySQL using jQuery on Frontend -

I am using jQuery UI on front end. I want to use AJAX on a MySQL database on my page on a mouseclick. How do I get data from Microsoft and using jQuery to update my div without a page refresh with the new HTML? Thank you You must provide a service level, which is either PHP or ASP There may be something like .Net pages that receives the $ .jax request from jQuery and executes a query against the MySQL backend, then the result will be derived from DB, it is possible to understand things from Javascript (like JSON )

x86 - Why is 12 stored in register EAX in this 80x86 assembly code? -

मेरे पास यह कोड है: अनुभाग .डेटा फ़ूज़: mov ecx, 7 mov edx , 5 एल: इंक एडीएक्स उप एक्सीक्स, 1 सेटज अल; यदि शून्य ध्वज, अन्यथा अल = 0 एसएलएल, 1 एमएम बाइट [एल 1 + 1], एल एल 1: जेएमपी एल एलएमपी एल एमओयू ईएक्स, एडीएक्स आरटी अगर AL कोड के अंत में? मुझे पता है कि यह 12 है, लेकिन जवाब 12 क्यों है? यह स्वयं-संशोधित कोड की तरह दिखता है। यह 7 गुना छोरता है और जब एक्सएक्स शून्य पहुंचता है, तो दूसरी जेएमपी के बाद कथन में कूदने वाले एक अलग जेएमपी निर्देश के साथ jmp एल कथन को बदल देता है। फ़ूज़: mov ecx, 7 mov edx, 5 l: inc edx sub ecx, 1 setZ al; शून्य से 1 पर सेट करें, अन्यथा अल = 0 एसएल एल, 1; 2 से गुणा करें, तो अल = 2 जब एक्सीक्स शून्य एमएवी बाइट [एल 1 + 1] तक पहुंचता है, एल एल 1: जेएमपी एल जेएमपी एल एमईएम ईएक्स, एडीएक्स आरटी जादू Mov बाइट [एल 1 + 1] जब अल = 0, यह पहली जेएमपी को अगले बयान में जेएमपी के स्थान पर ले लेता है, जो फिर से जेएमपी एल है, इसलिए यह लूप। जब al = 2, यह पहली जेएमपी को 2 बाइट्स को छोड़ने की जगह लेता है, इसलिए यह दूसरी छलांग छोड़ देता है, इसलिए लू...

automation - Any good tool(s) for Automating remote logging -

I need to write a script which can automate some things: a) Telnet to a router b) Problem configuration command. c) Check for status (success / error) Which language / framework should I use? I only know about "hope". What are the other better options? If you do not want to use the expectation, then you might use some other standard scripting language Especially well suited for the work that are ending. If you come into that radius, then the proper answer is "anything that feels comfortable with you", that bash, dragon, or something else. This is a very common problem, so which is easy -Mantan system.

c# - ASP.NET MVC - cross sub domain authentication/membership -

एक लागू करते समय एक रोडब्लॉक मारा (en.domain.com भार अंग्रेजी, jp.domain.com भार जापानी)। एकाधिक उप डोमेन (एएसपी.नेट एमवीसी सी #) में काम करने के लिए मैं एक एकल सदस्यता प्रणाली कैसे प्राप्त करूं? डोमेन = "Domain.com" से & lt; रूप & gt; web.config में प्रविष्टि क्या, लेकिन स्थानीय दृश्य स्टूडियो विकास वेब सर्वर पर परीक्षण करते समय क्या यह काम करता है? कुकी बनाने का प्रयास करें खाताकंट्रोलर आपको यह मिलेगा: FormsAuthentication.SetAuthCookie (उपयोगकर्ता नाम, createPersistentCookie); कि "बनाता है और कुकी संग्रह में जोड़ता है" यह डोमेन के संशोधन की अनुमति नहीं देता है (लेकिन विचित्र रूप से पथ के संशोधन की अनुमति देता है)। इसके बजाय संग्रह को जोड़ने के बिना एक कुकी बनाएं, आवश्यक गुणों को संशोधित करें, फिर संग्रह में जोड़ें: var a = FormsAuthentication.GetAuthCookie (userName, createPersistentCookie); // यदि आप यहां डीबगिंग कर रहे हैं, तो ए। डोमेन एन। इसे परिवर्तित करें a.Domain = "example.com"; HttpContext.Current.Response.C...

cocoa touch - Are there Constraint Layout Managers on iPhone OS? -

CA programming guide barriers are talking about layout managers. However, the iPhone SDK does not have any hurdle or asset in the client. They say that the iPhone OS does not provide custom layout managers. Unfortunately, despite the documents being asked, even the layers layout is missing from the iFile implementation of Springs-and-Callers. It can be seen by the autoresizing mask property missing on the CALayer on the iPhone. For this, we have implemented our own custom layer layout through the layout slower system. The class provides an example of this approach.

silverlight 3.0 - Ria services replaces WCF services -

We currently have a Silverlight 2.0 application that communicates with a set of WCF web services. These services communicate with other WCF services for business logic. Client DMZ Intranet Silverlight - & gt; WCF Web Service Gateway - & gt; WCF Biz service - & gt; DB The WCF Web Service Gateway lives within DMZ. We see that Riya Services can change our WCF Web Service Gateway, but it means that it will be installed in our DMZ and access to our database ... is it safe? We also loose our business logic WCF services ... I have to give business logic within Riya Services (as is the case with the database and keeps the domain ...). What is the recommended page for Riya Services? Where is it fit? What is the approach for companies that already invest in WCF web services? Can they use RIA? We are considering this option, will we expose both web services and RIA ... Silverlight - & gt; WCF Web Service - & gt; WCF Biz service - & gt; DB - & gt; R...

javascript - Selecting range of items in unordered list -

I allow the user to select the category of items in my unordered list by pressing the cntrl key and then the first & Amp; ; The last item, all the items will be selected in the middle. I am using JQuery, any suggestions how to deal with this problem? Here is the html: & lt; Ul id = "ulList_1" & gt; & Lt; Li & gt; & Lt; A href = "#" & gt; Item 1 & lt; / A & gt; & Lt; / Li & gt; & Lt; Li & gt; & Lt; A href = "#" & gt; Item 2 & lt; / A & gt; & Lt; / Li & gt; & Lt; Li & gt; & Lt; A href = "#" & gt; Item 3 & lt; / A & gt; & Lt; / Li & gt; & Lt; Li & gt; & Lt; A href = "#" & gt; Item 4 & lt; / A & gt; & Lt; / Li & gt; & Lt; Li & gt; & Lt; A href = "#" & gt; Item 5 & lt; / A & gt; & Lt; / Li & gt; & Lt; Li & gt; & Lt; A href = "#" &...

arrays - PHP syntax for dereferencing function result -

पृष्ठभूमि हर दूसरे प्रोग्रामिंग भाषा में मैं नियमित आधार पर उपयोग करता हूं , फ़ंक्शन के परिणाम को पकड़ने के लिए एक नया चर घोषित किए बिना किसी फ़ंक्शन के रिटर्न मान पर काम करना सरल होता है। PHP में, हालांकि, यह इतना आसान नहीं दिखता है: example1 (फ़ंक्शन का परिणाम एक सरणी है) & lt;? Php फ़ंक्शन फ़ूबार () {वापस preg_split ('/ \ s + /', 'शून्य एक दो तीन चार पांच'); } // क्या php "शून्य" कह सकता है? /// प्रिंट (फोबोर () [0]); /// & lt; - नहीं /// प्रिंट (& amp; foobar () [0]); /// & lt; - नहीं /// प्रिंट (& amp; foobar () - & gt; [0]); /// & lt; - नहीं /// प्रिंट ("$ {foobar ()} [0]"); /// & lt; - नहीं? & Gt; example2 (फ़ंक्शन परिणाम एक ऑब्जेक्ट है) & lt;? Php फ़ंक्शन zoobar () {// नोट: कास्टिंग (वस्तु) सरणी () है PHP में अन्य समस्याएं / देखें, जैसे http://stackoverflow.com/questions/1869812 $ vout = (वस्तु) सरणी ('0' = & gt; 'शून्य', 'fname' = & gt; 'होमर...

html - Converting Source ASCII Files to JPEGs -

I publish technical books, prints, PDFs, and Kindle / MOBI on the path with EPUB. Burning does not support monospace fonts, which are useful for source code listings. The only way to fonts the monospace is to convert text (Java source, HTML, XML, etc.) to JPEG images. More specifically, due to the pagination point, the input ASCII file is required to be divided into slices of each ~ 6 lines, each slice is converted to JPEG, so the listing screen can increase it to a royal There is a pain. To do this in my current system: Run expand to set a consistent 2-space tab size, a2ps , which pipe to ... A small Pearl snippet for adding %% language: 3 \ n " line , Which pipes to ... Change the image magic to , (e) to take a PS and make a JPEG, a proper background, 575x148 + 5 + 28 , etc. which used to work 100% of the time, now it works 95% of the time remaining time, I convert: image in geometry Errors are not there, which can not seem to run away because I do no...

javascript - jquery ajax callback function without dynamic parameters -

I have an array with objects, I want to save them every one through GET, and some in the callback I want to update the parameter, Bot the html: & lt; Html & gt; & Lt; Body & gt; & Lt; Div id = 'test' & gt; & Lt; Div id = "a" & gt; A & lt; / Div> & Lt; Div id = "b" & gt; B & lt; / Div & gt; & Lt; / Div & gt; & Lt; / Body & gt; & Lt; / Html & gt; JS: $ Save the map ($ ("# test> gt"), save) = save function (o, i) {itt = $ (o) tmp = {'desc': itt.html ()}; $ .get ('ajax / update_post', {'data': array2json (tmp)}, function (a) {warning (itt.attr ('id')) Update postback (a, itt)}) updatePostBack = function A, item) {Warning (item.attr ('id')} Update postback is always getting las item! I can call the correct ID or object in the callback function in js / jquery How can I pass? The solution is so unfortunate worldl...

c# - How do I mock HttpResponseBase.End()? -

I'm using MUQ to make a fake object of the HTPRpacebase. I should be able to verify that the HTTPRPS Pacebase End () was called in my library. To do this, I specify some text and some text before calling. Again I will check that the call to end () call the HTPRPSpacebase Output exists in the output. The problem is, how can I not make fun of HTPRECAppbase? End () so that it is closed processing, as it is in ASP.NET. create public static HTTPPSpacebusHTPRPSpacebase () {var mock = new mock & lt; HTTPRPSSpaceBase & gt; (); String Vector output = new stringwriter (); Fake.setupproperty (x = & gt; x.StatusCode); fake. Setting Gate (x = & gt; x.Output) Return (output); Fake. Setup (x = & gt; x.End ()) / * What should I do here? * /; Fake. Setup (x = & gt; x.Write (any; string & gt; ())). Callback & lt; String & gt; (S => Output. Writ (s)); Return fake. Object; } It is a bit unclear to me that what you are trying to achieve, But from you...

php - Are include()s faster or database queries? -

A client is requesting that we store some important and complex configuration data as PHP arrays, while I I want to store it in the database. He highlighted the issue of efficiency / optimization, which states that the file is much faster than the I / O database queries. I am pretty sure that I have heard that anywhere in the file which is actually slow in PHP. Any statistics on this / real information? I do not think that performance is an attractive argument or there is no way. On my Mac, I run the following tests. The first 10,000 contains a file that does not do anything but sets one variable: It took 58 seconds to run each time. (Remember, that is also included in 10,000.) Then I wrote another script, which asks the database 10,000 times. It does not select any actual data, just a SELECT NOW () does. & lt ;? Php mysql_connect ('127.0.0.1', 'root', ''); Mysql_select_db ('test'); $ Mtime = microtime (); $ Mtime = explosion ...

WPF Listbox + Expander events -

I have an extension in the ItemTemplate of a ListBox. Render is right, the issue I have raised is that I would like to select listboxes, when the extension is expanded and / or selected. The MouseDown event does not look like a bubble in the listbox. What I want is the selected index of listboxes because ListBox_SelectionChanged is not removed, the index is -1 and I can not determine which item is selected. The ListBox_SelectionChanged Event is removed if the user clicks on the extension's content after its expansion. If they only click on the expander, then the event is not removed. It is misleading the user because they think that they already click on the item when they actually click on the expander header, I need to select the list box when the user extends the extension as long as The user is concerned, then that item is now selected, when it is not actually. How does this work or how it works Simplified code for reference: & lt; Window x: orbit = "wpf...

javascript - How can I execute an external function when an element is clicked? -

I am trying to execute an external function at the click of a DOM element without wrapping it in any other function. Say that I have the function as halo () , as follows: say the function hello () {alerts (" Hello "); }; To execute it on click, I have to do this now: $ ("# myelement"). Click (function () (sayHello);}); Notice I have been forced to wrap a function call in another function so far. What I am trying to do is something like this $ ("# myelement"). Click (say hello ()); Except that it just does not work Can I save a function call in any other way from wrapping in any way? Thanks! Additional information: How do I get the same thing when I need to pass the parameters of the function? .. Additional information: Like Chris Brandsma and Jani Hartikanen, to pass the parameters of the function in any other anonymous function to use the Tomb Function Should be enabled in: $ ("#myelement"). Dam (say "click...

generics - Why can't Scala infer the type parameter in this example? -

Suppose I have two squares, input and output , which That output is designed to be connected to each other, produces some types of values, and consumes input . Class input [T] {var output: option [output [& lt;: t]] = none} square output [t] {var input: option [input [_ & gt; ; T]] = none This is fine if a input and output pair type parameter output Type parameters Note that the type of parameters in both classes is irreversible; In actual versions it is used in both co-and contaminated conditions. I have a connect method that connects to a input def [T] (output: output [T], input: input [_ & Gt; T]) = {output.input added: = Some input (input) input Output = some (output)} If I tell this method below, I get a type of error: val out = new Output [string] val = new input [AnyRef] connect (out, in) error: test.scala: 17: error: type Unmatched; Found: output [string] requirement: output [AnyRef] connect (out, in) ^ I can solve it by t...

Vaadin and Spring MVC Integration -

I am thinking of the possibility of using spring MVC with the Vadine framework to play them well together Are there any documented methods? Apart from this is a good idea to use them together? Related to performance; I'm going to run the app on a dedicated server To make my question a bit more clear, how can I return a model and view from Spring MVC controller which can render using Vaudine and access all model data. Spring support for wadine is quite new, but there has been a lot of discussion on this topic and some have tested it. There seems to be an article about Wadine Wiki, and there are some threads on the forum discussing about the Vदिन + spring integration: > >

iPhone: I'm trying to draw a blue line, but it turns out red all the time, why? -

Is there anything with colors? pay attention; If I draw the current reference directly, it becomes black; On the bitmap context it becomes red. Example: CGContextRef Reference; // = UIGraphicsGetCurrentContext (); CGColorSpaceRef colorSpace = CGColorSpaceCreateDeviceRGB (); Zero * bitmapdata = getWidth () * 4 * getHeight ()); MEMSAT (Bitmapdata, 0, MidWidth (* * 4 * getHeight ()); Reference = CGBitmapContextCreate (Bitmapdata, getWidth (), getHeight (), 8, getWidth () * 4, Color Sparse, KCGImage AlpPMultPladeFast); CGContextSetStrokeColorWithColor (Reference, [blue CGColor]); CGContextMoveToPoint (Reference, 0.0.0.0); CGContextAddLineToPoint (Reference, 480.0.300.0); CGContextStrokePath (reference); CGBitmapInfo bitmapInfo = kCGBitmapByteOrderDefault; CGDataProviderRef Provider = CGDataProviderCreateWithData (NULL, Bitmapadata, getWidth () * 4 * getHeight (), NULL); CGColorRenderingIntent intent = kCGRenderingIntentDefault; CGImageRef image2 = CGImageCreate (getWidth), getHeig...

Debugging Mojo for Palm Pre with Eclipse & Aptana -

I am very new to Eclipse and Mojo (.NET man). I'm having difficulty in debugging I can set up a breakpoint and switch to the "debug" perspective, but there is nothing I can do (I'm running in debug mode), I have an ADU on the breakpoint in the emulator. Does not have to stop. I am sure that this is a very new mistake with eclipse. I have a good step by step to any person that I can follow. Currently, there is no way to set up a breakpoint in the eclipse for use with palm emulator . As mentioned by Gtompson83, we all have to work with the gdb-style command line debugger which is included in the SDK. Yes, this is a pain. To attach me to logging (scroll down to the "debugging" section) and then just to find out what's happening in your app, it's easy to attach.

security - How secure is the ASP.NET Membership framework? -

As long as security goes away, what is the reputation of the ASP.NET membership structure? Are any default default configuration settings problematic? What are the best practices? Are there any inherent ways to tackle things like hijacking in the session? Regarding best practices, there is a small WIKI that is used when using a subscription provider List of safety considerations can it be of some use?

Developing Outlook plugin with Visual C# 2008 Express? -

I'm looking to experiment with the development of an Outlook plugin I am using the Express edition of Visual Studio And it seems that the Outlook integration feature is missing from the Express Edition (deliberately). Is this really the case? Is there a third party library that allows to connect to the Outlook model with the Express edition? Thanks You only need to install those and those references. So it would be nice to go to you.

asp.net - Does Request.Browser work always as expected? -

I have a passcode to add the correct CSS file to the "head" on a browser, string browser name = request Browser.Browser; String Browser View = Request Browser.Version; Control Head = Page master. Fund Control ("Stu Head"); If {head = = "IE"} {if (browserVersion == "6.0") {Head.Controls.Add (New Little Control (" ")); } Else {head.Controls.Add (new literal control ("lift relay = 'style sheet' REC = 'stylesheet' href = 'home-IASSS' type = 'text / css' media = 'all' />) ); }} Else {head.Controls.Add (new literalControl ("& lt; link rel = 'stylesheet' rev = 'stylesheet' href = 'home.css' type = 'text / css' media = 'all' /> ; ")); }} Else {Response.Write ("link rel = 'stylesheet' rev = 'stylesheet' href = 'home.css' type = 'text / css' media = 'all' />); } When I open my page in I...

Struts2: Hidden field and anchor tag <s:a> values In Action Class -

I am working on a struts2 application in my jsp page I have 2-3 anchor tags and 2-3 hidden Fields such as & lt; S: a href = "#" & gt; File 1 & lt; / S: a & gt; & Lt; S: a href = "#" & gt; File 2 & lt; / S: a & gt; & Lt; S: a href = "#" & gt; File 3 & lt; / S: a & gt; and & lt; S: hidden name = "hidden 1" /> & Lt; S: hidden name = "hidden 2" /> & Lt; S: hidden name = "hidden" /> Now please tell me, how can I get the value of all the hidden areas and anchor tags in my action class which was clicked? I did the following & lt; S: a href = "#" verb = "some action" & gt; File 1 & lt; / S: a & gt; It is working but the value of the hidden files has not been transferred. Also & lt; S: a href = "#" name = "file1" onclick = "submit" & gt; File 1 & lt; / S: a & g...

c# - Renaming .NET library -

I am maintaining a C # net (versus 2005) library, let's call it Phoolib, which is developed by peer has been done. Now the management has decided that we should change its name, barLib. So I gave it a name, changing some metadata (copyright information etc.), registered in GAC, removed the reference and so far, very good, but a project That uses it, which gives me some strange error in adding debug version, while the release works without a warning, like an attraction, he gave me an error message which is telling me that this fooLib.dll Did not get (When it should search barLib.dll) and let me know that linking was disabled, and the way to activate it was because I did it, but the only new information has come back to the list of paths in which to find the wrong file Any idea how can I fix it without rebuilding the solution to scratch? Project file - Make sure there is nothing strange for different configurations. Make a solution with "ultra-clean" - manual...