Posts

Showing posts from September, 2014

jquery - How to scroll browser view port to top of page after an ajax submit? -

I have an upload form - after submitting a user form, I want to scroll the window back to the top of the page (Where I display some help text). How do I scroll the window correctly on top of the page? You can use the scrolling method to do this on the Window object: window.scroll (0,0) There is a horizontal and vertical solution to scroll within the logic window, so 0,0 brings it back to the top.

php - How can I test a browser to see if it supports 128-bit encryption? -

I have been given the task of searching for a piece of the old code. I agree to test whether the browser supports 128-bit encryption or not. Here's the old code: (I deliberately divided the link into 4 lines) ? Good = .. / docs / html / good.html and & nsbad = .. / docs / html / upgrade anonly = html & amp; Ie2 = .. / docs / html / upgradeIEonly.html Have you seen this code before? How can I duplicate this functionality inside a php page? Explanation The old webmaster found a link for verisign that was checking the browser after Verisign stopped the support of this link Have given. Personally, I think we should tell our customers to click inside the browser and view the cipher power support> about it . If it is not less than 128, then we simply tell them to upgrade the browser. All modern browsers support 128-bit encryption outside the box. Do you need to support older browsers than IE 5.5? You can either check the browser's user-agent strin...

emacs - Minor Mode for tracking changes in a buffer -

Is there a minor mode in MX that will highlight changes made in buffer? I'm seeing something without a timetable feature, I'll use the highlighted tail for it and change the timeout rate to something bigger, but a bit of mode to do the time (a feature I will not use) CPU Uses. Usually your friend is there for things like this. Looks like you want Highlight-Change-Mode.

tsql - Pre-allocate varbinary(max) without actually sending null data to the SQL Server? -

I am storing data in a varbinary (max) column and, for customer performance reasons, chunking ". (.) What I want to do is adapt this. I want to allocate prior varbinary columns for the size, for example, if I'm leaving 2MB in the column then I would like to 'allocate' the first column , Again. Write actual data using the offset / length parameter. Is there anything in SQL which help me here? Obviously I do not want to send a blank byte array on SQL Server, because of this partially. Will end the purpose. If you are using (max) data type, then overflow a few lines above 8K Goes to storage, not in in-page storage So you need to enter enough data to reach 8K for the line, so that in-page allocation can be picked up for the line, and the remaining line -offo goes anyway in the storage. there are a few. If you want to allocate everything, which includes row overflow data, then you can use something similar (for example, 10000 bytes): SELECT Convert ([Viburbine...

php - Form Level Validation in Zend Framework -

I am using the Zend MVC framework with an ORM layer, and I'm trying to find out the best Throw the exceptions from the save () function of the object, and throw them in the Z Form as errors. All exceptions coming out of the propell object are not known which field is due to error, so I'm thinking that instead of being forced to attach a particular form element to each error message, There is a way to add common error messages to the entire form. For example, I have a saved () call wrapped in an attempt / catch block, and I can add exceptions-> Mummies () to the errors of a form element: try {$ obj- & gt; Save (); Echo 'object successfully saved'; } Hold (exception $ E) {$ form-> Name- & gt; AddErrorMessage ($ e-> GetCode ()) "-". $ E- & gt; GetMessage ()); $ Form & gt; Name- & gt; MarkAsError (); $ Form & gt; Populate ($ formData); } But I want to be able to do something like this: try {$ obj-> save (); Echo ...

c# - Automatically Begin Upload ASP.NET -

Without using third-party controls, is it possible that the file should be uploaded, such as user Selects the file and the file browser window closes? I have data straves, as well as all the information needed to capture the data, but I need a way to know what file upload has changed? Is there an event that seems to be a fire, or can I capture to achieve something like that? Thanks, George No third party control without. It seems that this hidden & lt; IFRAME & gt; is possible. Check out. Simple and also available solutions, however.

For loop in Bash Script -

We say that we write a loop to use standard loop vocabulary that allows srm to place an item on your drive Loops to safely erase. Now we say that we set it to repeat it 10 times, it is done after the first repetition, how can it still work on the file? File should no longer exist, so how can it erase? There is no question specific to SRM, anything can be run even like some MV, even if the file is no longer available. This will run through loop 10 times, but except the first iteration, the commands you are executing He will fail (and 1 may return). This command will also write any error messages that usually write it (stdout, stderr or a file). #! / Bin / bash for i {1..5} rm Now, to handle a file named some , you get: rm: some: such a file or directory rm: some: no such file or directory rm: something: no such file or directory rm: something: There is no such file or directory: Note that this is 4 times, not 5, because for the first time, rm ran successfully....

Help understanding multidimensional array and pointer notation in c++ -

I understand the basic idea that when an array is the only operam & amp; Or sizeof () operator, it decays an indicator for the first element in the array. I am unsure about how these notations work. In our lessons, there are 1-D cases, 3-D cases versus an array The first example is the function for the function, which is called normal. 1-D case Double average (double set []) or double average (double * set) Not equal multi-d case Announcement Double average [] [DIM1] [DIM2]) or double average (double (* set) [DIM1] [DIM2]) double * print value (double value) D is the case: Double (* print value (double value) [DIM1] [DIM2] Does anyone have any questions on this Can you put light? Thank you. parameter still decays important for an indicator is that the size of DIM 1 and DIM2 all Specify, but one dimension Therefore, if we have: Double average (double set [] [DIM1] [DIM2] MySet) MySset [0] [0] Together with DIM2 * size (double) MySet [0] [1], two dim...

scheme - Tail Call Elimination in Clojure? -

Can someone rewrite this (PLT) scheme code? (define) (define (hn) (printf "(h) (printf" (f ~ a) ~ n "n) (gn)) (defined (gn) (printf "(G ~ a) ~ n" n "(hn) ~ a) ~ n" n) (f (+ n 1))) Processes like this, And h to not collapse together and allow the code to run indefinitely without crashing? Use trumpoline: declare f (defn H [n] (println "(g" n ")" # #)) (defl f [n] (defl g [n] (println "(h" n ") # (Println "(f" n ")") # (gn)) Delete from: (Trampoline f 0) I have had to run this code on my PC for about 5 hours in the background and the memory usage is flat.

asp.net - DateTime [ Last week , Last month periods ] -

I need to set up last week after changing the dropdown list I switch (DDL. Selected indices) {Case 0: {// last week this. Text box 3 Text = DateTime // Preview day on the first day. Text box 4. Text = date time // PREVIOUS week last day} break; Case 1: {// Last mouth this. Text box 3 Text = DateTime.A month ago on the first day. Text box 4. Text = date time. Last day of the previous month) break; } So, what are some ways that I can select date values ​​like what I want? Also, I found the AJAX Calendar Enhancement on the Text Box Thank you. Something like that, I think: int deeff WeeckNumber = (Int) datetime. today. Dioff Wake - (Int) CultureInfonador Contentculture.DatetimeFormat.PasteurDayWawk; Var Previos Viccista Day = DateTime today. Adaye (-7 - dayoffquenumber); Var Previoswalk List de = Previos Vikkfarstede Adwords (6); Var PrevioSamsFirstFirstDay = DateTime today. AddMonths (-1); PREVIOONTHFURSTDAY = PREVEOSAMONTFirst DAY. Adyades (PrevosmontFirstday. De ...

sql server - Drop multple procedures (SQL2005) -

I'm curious that I can leave many processes using simple "%"? Like: DROP constantName% When I use Drop in Management Studio, it seems that: / **** ** Object: Stored Precredder [DBO]. [X] Script Date: 02/02/2010 09:36:25 ****** / If Existing (choose from * sys.objects WHERE object_id = OBJECT_ID (N '[DBO]]. [X]') And type (N'P ', N'PC')) drop process [DBO]. [X] Why am I seeing the object ID except this special item? Thank you The database object identification number of schema-scod object returns in your code checking it inside an existing one , So that it will only delete the stored process when it is present in the database. You may just be drop process process_name , but if you do not have the process available, you can get an error. Tables, view, stored process etc. All have an OBJEIDID key identifier. I do not think you can leave many stored procedures using a preference . (Although I am not 100% fixed on that)

c# - Using session to store uploaded files -

Is it safe and recommended to store large uploaded files in asp.net sessions (httpsessionstate)? This scenario session will be used as a temporary repository for many file uploads and later the file will be disc / DB and the session will be excluded. Probably there is not a good idea to store large files in memory, are equal. Keep in mind that there are some memory limitations on the session (web server process etc.) with always and with larger files / many users are likely to be more than you. Instead, it is a workaround that is set correctly, you might only put file names and paths in session, and you can delete the file when the session item expires (To avoid simply filling the disc with litter).

.net - Get a thread by its name -

Two questions, I want to give a thread a name and want to retrieve it to check whether it is alive How is that to do this? / P> I want to do this in the ASP.NET application on the BLL layer, so I do not have the timeout exception. Is this a bad idea? Thanks 1) System. The string name is the property you can use it. 2) I think more information is required to answer the second question. It would be better if you remove it from this question and ask different questions to discuss it in isolation.

Where can i find list of good HTML Helpers to use with asp.net MVC? -

As I am new to ASP.NET MVC and HTML helpers .. I really want to know Where can I find a list of good HTML helpers to use with asp.net MVC? Additional information: Actually like getting the list of HTML assisters used by stack overflow ... if any Can also know ... share ... Here is an open source project that has many assistants: Hopefully It will be helpful.

javascript - Prototype addMethods is returning "undefined" -

I am trying to add a method to the element object of the prototype called attecen (), which is the DOM node And my tag on the tagname will return to: element .addMethods ({locateAncestor: function (element, tag) {element.ancestors (.) Each (function (e) {if (Tag == e. Tag) {warning (e.id); return e;}}})}}}); Then I call the code like this: var form = target.locateAncestor ('FORM'); Warning (form); This definitely triggers two warning () boxes first, which is said inside each () loop, and successfully alerts the ID of the element (in this case , A FORM element). This is the first warning (below), I "e" (which when alert is applied to "HTMLFormElement"), as expected. However, when this function is called, the second warning () Undefined ", no value is expected to return to me, which is definitely" HTMLFormElement ". Is there any important step that is unavailable to add a method, give me some value What should be done for? ...

java - Get DefaultListModel to use LinkedList -

Is it possible to use the contents of linkedlist to display a default list of order? It is then to be used with a jellist. Yes it is possible: you only need to subclass and override your underlying linkedlist . Public category MyListModel AbstractListModel {private final list & lt ;? & Gt; L; Public MyListModel (list & lt;? & Gt; L) {this.l = l; } Public object getElementAt (int index) {return l.gate (index); } Public int getSize () {return l.size (); Alert : When implementing ListModel or TableModel and supporting the model with Time / P> HTML>

c# - RegEx help matching operators -

I need to match some operators: =,! =,>, & Lt;, & lt; =,> = String I match may be something like this: "2 = 2 or 33> = 32 and 3 What can be the RegEx expression to match it, By knowing that - I do not want to receive one '=' on a '& lt; = 'Operator - can not be operator or surrounding location Thanks in advance thanks! Alex Try it out: (& lt; = | & Gt; = | | = | = | & gt; | & lt;)

html - Does the classes on the ul and li menu Change dynamically on Joomla? -

Using the Joomla 1.5 Menu (Main Menu Module): Classes on UL and Le Men dynamically vary on Joomla? anyway I know that there is a module that generates a "good" class but since most Joomla users can be new, they have a problem understanding them to install something new ... It definitely appears: li on id = "on" and class = "active" .

visual studio 2008 - How to Insert contacts into Outlook - C# 3.0 -

The title of the question tells me what I should get. I know that this can be done using Microsoft Outerclass Object Library 12.0 . However, I'm looking for a managed option or importing it into XML Outlook. Since, the number of contacts can be in thousands. So, I'm looking forward to the best approach You can use it and its family Family of - This directly uses extended MAPI (API used internally by Outlook).

c# - Assigning pointer to a CLR type to void* using unsafe? -

To assign a signal to an indicator in a code, enter void * The way? Unsecured block? var bar = 1; Var foo = new Foo (); Unsafe {Zero * p1 = & amp; times; Zero * p2 = & amp; Foo; Or it is possible using only C ++ / CLI: System :: text :: stringbilder ^ sb = gcnew system:: text :: StringBuilder (); Zero * P1 = & amp; SB; It can not find any way to work in C # Any of the following can be an indicator type: sbyte, byte, short, ushort, int, uint, Any indicator type. Any user-defined structure type that contains only unmanaged type of fields. There is no way to create an indicator for an example of a class (like pointer for an example of the system .ext.StringBuilder ), Although you can create an indicator for a class member in the fixed context like the following code: class test {constant integer x; Int y; Unsafe Static Zero F (int * p) {* p = 1; } Static zero major () {test t = new test (); Int [] A = new int [10]; Unsafe {fixed (...

java - Including additional source locations for chekstyle in ant task -

I am running a checkstick check with an ant task. I have both properly configured and can work without any problem Are there. But I have another project / folder (they are called third party formulas) with additional source files which are my source files (primary source). I only want to check the checkstyle check the primary sources , but it requires third party sources in the cell spaces or somehow, otherwise I get class notified errors. / P> How to make such a suggestion? My configuration in the ant looks like the following: & lt; Checkstyle Config = "sun_checks.xml" failed on violation = "wrong" & gt; & Lt; Fileset dir = "$ {src.dir}" includes = "** / * .java" /> & Lt; Formatter type = "xml" tofile = "$ {report.dir} /checkstyle_sun.xml" /> & Lt; / Checkstyle & gt; is a classpath parameter that you can set for the checklist function: The default for the current cell...

.net - XNA game tutorial -

I'm coding for a while in C # and want to learn XNA game development, I have googled around but A good tutorial someone can provide me some tutorial links which can read me from the beginning. Microsoft offers a lot for this, you can start with: And do not forget the full XNA Creator Club online:

firefox 3.6 load css issue -

Since I updated my Firefox 3.6 version, my site layout has broken. My layout works fine in I7 or Firefox 3.5.7. I can see in firebug, in the net panel, that my CSS has been downloaded correctly but my CSS cut is done in the CSS panel. Is anyone having the same problem? Is there any explanation, solution or solution? Cheers We have a very similar problem with our CSS syntax carefully From where firebug shows that your CSS is small - you may have a missing semicolon or a last-brace that the previous versions of Firefox are decidedly silent. The editor can help the CSS file with a syntax highlighting, as it may be.

c# - using XSD.exe to generate an XSD -

For this, I am using SSAS cubes, for one of the public properties for sections of the server, cube, dimension etc. I want to get the list. This would be my superset, in which the user must provide mandatory properties and provide alternative. I'm trying to generate an XSD schema I run the following command XSD C: \ windows \ assembly \ GAC_MSIL \ Microsoft.AnalysisServices \ 10.0.0.0__89845dcd8080cc91 \ Microsoft.AnalysisServices.DLL / Dataset / Element: Cube / Out: c: \ Temp \ gac and this error was found error: 'C : \ Windows \ assembly \ GAC_MSIL \ Microsoft.AnalysisServices \ 10.0.0.0__89845dcd8080cc91 \ Microsoft.AnalysisServices.DLL '. - There was an error indicating 'Microsoft.AnalysisServices.ModelComponent' type. - Members of type 'System.ComponentModel.ISite' can not sort 'System.ComponentModel.Component.Site', see internal exceptions for more details. - Members can not sort systems. CompanyModel.Companynt. Type type System.C...

c# - MySQL Split to use in "SELECT WHERE IN" statement -

I'm putting some MySQL sites in hopes of finding something that will allow me to turn it on: var parameter = "a, b, c, d"; // (commas-delimited values ​​can be any number) In this (assuming that my parameters are in some way the values ​​you are seeing in these blocks ): SELECT * mytable WHERE from parametipe ('A', 'B', 'C', 'D'); But I have not had much success! The best site I've found:, which discusses the splitting of strings based on a delimiter (',' in my case), although this has not been answered ... Anyone In a good way of dividing a comma-delimited strings, in the context of the strings that can be used in this context? This may not have all the flexibility you need, but the MySQL function may be sufficient. For example: To select: SELECT * mytable WHERE FIND_IN_SET (from parametertype, 'a,), there is a hard limit of up to 64 values ​​in the set. B, C, D ')! = 0 This is an example of...

.net - Different versions of the same entity type (any ORM) for different roles/authorization levels -

उदाहरण के लिए, पर विचार करें: सार्वजनिक इंटरफ़ेस इस्ताफ {पूर्णनाम नाम {get; सेट; } ईमेल पता / ईमेल पता सेट; } सोशल इंश्योरेंसआईडी एसएसएन {प्राप्त करें; सेट; } सकारात्मक आयु {जाओ; सेट; } पता home_address {get; सेट; }} कुछ उपयोगकर्ताओं के लिए, व्यूमोल्ड को केवल नाम और email_address की आवश्यकता होगी। दूसरों के पास एक व्यू-मॉडल हो सकता है जिसमें उन गुणों से अधिक ssn , age और home_address शामिल होता है। मान लीजिए कि एक सांख्यिकीविद् भी है, जिसका दृष्टिकोण उम्र और home_address । अब, मैं इसे IStaffBasic में विभाजित कर सकता हूं , IStaffDetails , और IStaffStats को उपयुक्त दृश्य के लिए दिए गए व्यू मॉडेल में एपीआई को सीमित करने के लिए इंटरफ़ेस वंशानुक्रम के साथ। हालांकि, जब यह इकाई है तार में डेटा सेवा से प्राप्त किया गया है, इसमें अभी भी अतिरिक्त विवरण शामिल होगा, जो घटित नहीं होना चाहिए। तो, यह बेहतर होगा कि (ए) प्रत्येक के लिए पूरी तरह से भिन्न इकाई प्रकार बनाएं इन संस्करणों में, प्रत्येक प्रकार के लिए अतिरिक्त अतिरिक्त डुप्लिकेट क्वेरी ऑपरेशंस के साथ सर्विस लेय...

WCF Rest Service Client - Parameter Names are case sensitive -

When using the following interface to talk to .NET with PHP, request with .NET parameter name barcode and branch The body creates XML Name of the parameter should be barcode and branch. Yes, the PHP server is case-sensitive. Do I have to capitalize my parameter names? Or can you specify names using attributes? Many thanks Neal Try to apply method arguments and the correct name specified in your name property Please.

database - WordPress Custom Table Loop not quite right -

I have this code on a WordPress site on a custom site page: Code: & lt; H1 & gt; 2009 Author List & lt; / H1> & Lt; H3 & gt; To read more about them, click on each author & lt; / H3 & gt; & Lt; P & gt; & Nbsp; & Lt; / P & gt; & Lt; Hour align = "left" width = "75%" & gt; View Categories: & lt; P & gt; & Lt; A href = "# childrens" & gt; Children & lt; / A & gt; | & Lt; A href = "#close" & gt; Fiction & lt; / A & gt; | & Lt; A href = "#non-imagination" & gt; Non-fiction & lt; / A & gt; | & Lt; A href = "# Teenager" & gt; Teenager & lt; / A & gt; | & Lt; A href = "# other" & gt; Other & lt; / A & gt; & Lt; / P & gt; & Lt; P & gt; & Nbsp; & Lt; / P & gt; & Lt ;? Php $ result = $ wpdb-> Get_results ('select author_sub9.Sid, author_s...

html - What is the best way to put my logo into the footer of every website I make? -

What is the best way to enter my company's logo with a link at the end of the footer in each website if the customer allows me)? First of all, I will host a logo image on my site, what would be the best way for me in XHTML and CSS for my logo? Include it to add JavaScript to your server. In this way, if you do not need to touch your client files, you can modify it in the future. Of course, this will not give you a slander with people browsing as you disable javascript. & lt; Script type = "text / javascript" href = "http://mysite.com/ siteby.js" & gt; & Lt; / Script & gt; & Lt; / Body & gt; & Lt; / Html & gt; siteby.js will exist on your server, it will be something similar to the following: // Create a link var link = Document.createElement ("a"); Link.setAttribute ("href", "http://mysite.com"); Link.innerHTML = "Site by Jonathan Sampson"; // Add it to the body documen...

c# - datetime picker for ASP.NET 3.5 webforms -

Is ASP.NET webforms free to date and time picker for commercial use? I am currently using AJAX Calendar Amplifier with Visual Studio 2008, but there is nothing for Time Picker. I want a control which is free and has no license. I know that Javascript controls are but ASP.net wants to stay with WebForms controls because I'm not good with JavaScript. Any suggestions? Thanks This is the best I've found on interwebs I really like JavaScript I will not recommend using ASP.NET webform built in support of date pickers, but it's just me. If you actually stick to ASP.Net it is one for you. Edit Here's one if you do not like JS, then I can codify one control for you in one hour;).

Require new password on first login to Wordpress -

I am trying to set up a WordPress site for which users have to login 1 default password for all With, the user name is going to be pre-populated in DB, once they enter the default password, they need to be taken to another login screen which will serve as a registration page for them. They can not change their username, but they need to change their password I can not get any plugins that meet it (if someone knows about the plug-in already exists, it would be good!) Anyone have any suggestions on how to accomplish this or will tell me in the right direction where someone has already completed it? Thanks Jay How do I set up my login form to accept the username and password . If the password is equal to the default password, set an arbitrary value in the USMeta table. Your login landing page has a logic test for that user's value, if it exists, display the form to create a new password. After successful password changes, remove usermate value. There is something for you to...

branch - Untracked files between branches in Git -

I'm looking around here to seek an answer and it seems that I have to work with Git branches. I have my Master branch and I have created a facility branch named "code> profile", where I am doing some specific work on profile for profile While working, I changed the 5 or 6 files and added 5 or 6 new files. To recover a quick bug I had to switch back to the Master branch and all the new files And the revised files were viewed, wherever I came along It is understandable that this is not because GIT Master is not intended to remove unencrypted files from the branch and bring them back to my profile branch, in fact, untrek but What are the changes in the existing files, why they are showing in the Master branch. What is the best practice here I am not ready to make changes locally. Would I just hide all these changes, switch to master , make small improvements, switch back to profiles any Also help is made of its purgery. Thanks "I am not rea...

php - Facebook's HipHop - What's it for? -

Today's PHP is the news in the world, which: Hip hop is for PHP Technically, a compiler is itself a source code transformer, HipHop programmatically changes your PHP source code to highly optimized C ++ and then uses G ++ to compile it. Hip hop performs the source code in a manner consistently and uses some of the less-used features - such as eval () - in exchange for better performance. My question is, what types of web applications are, code transformers in Hiphop, a revision of PHP runtime system, and rewriting of many common PHP extensions. Is it really useful for? It seems that the typical database-bound web application can not be done much by this, but there will be rare CPU-bound apps. Web applications that use lots of processing and / or memory, apparently this hip hop CPU Reduce usage by about 50% and reduce memory usage (I did not know how much memory usage would be mentioned). This means that you should be able to request the same number with fewer serve...

c and c++ operators help -

Can anyone explain to me why the following results are B = 13? int a, b, c; A = 1 | 2 | 4; B = 8; C = 2; B = A; B & amp; = ~ C; It is using binary manipultaors (assuming that ints are 1 byte, And two supplements for storage, etc.) a = 1 | 2 | 4 means a = 00000001 or 00000010 or 00000100 , which is 00000111 or 7. b = 8 means b = 00001000 . C = 2 means c = 00000010 . b | = A device b = b | A means b = 00001000 or 00000111 , which is 00001111 or 15. ~ c means not c , which is 11111101. b & amp; = ~ C means b = b & amp; ~ C , which means B = 00001111 and 11111101 , which is 00001101 or 13.

c# - Is using an ImageMap for a navigation menu considered good practice? -

Should I use an image map to create a navigation menu? If you do, then you need to remove accessibility concerns. There is some information on how you can achieve it.

perl - Which FastCGI server mode should I choose under Apache? -

I am new to FastCGI and to use this platform to speed up my existing vanilla CGI (Pearl) program I am searching. While reading this, it appears that I can set up my script (once converted to use different initialization / request sections) as one of the following in Apache configuration 1) dynamic 4) static "within the scope of the setholondle" stabilized 3) within the "stable realm of the handler" 4) Fixed "outside the scope of the set / AddHandler" (Or, I think, it can be called 'external' I am confused about those 4 options, and am the default of 'dynamic', who should I go with, but someone explains the pros / cons of these? There is not enough to worry about add / set handsands, they just have a way to define Which extensions have to be identified as FCG scripts. What you can think, is dynamic, stable or external. Apache starts as (it is possible that this is the most common setup) Whenever a request is made...

regex to find instance of a word or phrase -- except if that word or phrase is in braces -

First of all, a disclaimer. I know something about Reggae but I am not an expert. They look like something that I really need twice a year, so they do not stay "up" of my brain. Status: I want to write a regex to match a certain word, let's call it "ostrich". easy. Except ostriches can sometimes appear inside a curly brace. If this is inside a curly brace then this is not a match. The trick here is that there may be spaces within curly braces. Apart from this, the text is usually inside the paragraph. I This should match: I have an ostrich. It should not match: went to my emu {ostrich race name}. It should be a match: went to my ostrich (ostriches race name). This should not be a match: went to my emu {race ostrich place} went to my emu {race place ostrich}. It seems that it is possible with a regex, but I'm not sure to see it. I will provide an alternative solution to do that, which is slightly stronger (not using regex Make a ...

iphone - decouple tabbaritems from viewcontroller title -

We are exploring a way to reduce the UITabBar less than the current view controller's headings. When the title of the visual controller changes, we want the text to be the same in the tab bar. Is there a way to get in addition to resetting the price in each view? Thanks in advance! I found a solution (had the same problem): specify the table bar item title The first table view controller title is an example of my app: Margotless Week Controller. Title = @ "route"; Routes controller.tbBarItem.title = @ "" schedule ";

Jasper report not showing detail section -

I have prepared a report in iReport and now I am using it in my application. The problem is that in detail in detail all data except section data are shown, there is no database connectivity problem, because the column header shows the data that is coming from the database. The only detail of the report shows that there is no data from the database, no data from the database, nor any static data. What's going on? Is there a sub-report in your header? If this is the case, and you are passing the main report datastro to the sub-crop, then it will be upgraded to the current record of current datasource of data data 'pointer', and your details section will be blank.

python - SimpleXMLRPCServer, wxPython and Thread - Howto Stop? -

यहाँ एक उदाहरण कार्यक्रम है जो मेरी समस्या को दिखाता है प्रोग्राम wxPython अनुप्रयोग प्रारंभ करता है और एक थ्रेड में SimpleXMLRPCServer प्रारंभ करता है। यह सब ठीक काम करता है मेरी समस्या यह है कि मैं SimpleXMLRPCServer थ्रेड को बंद नहीं कर सकता क्योंकि यह handle_request () कॉल पर अवरुद्ध है I मैं एक विंडोज़ एक्सपी मशीन पर विकास कर रहा हूं (मुझे नहीं पता कि अगर लिनक्स पर यही समस्या आती है)। आयात करें wx आयात करें SimpleXMLRPCServer आयात थ्रेडिंग क्लास myServerFunction (ऑब्जेक्ट): DEF परिणाम (स्वयं) : वापसी "नमस्ते विश्व" वर्ग serverThread (threading.Thread): def __init __ (स्वयं): threading.Thread .__ init __ (स्वयं) self.timeToQuit = threading.Event () self.timeToQuit.clear () डीईएफ़ रोक (स्वयं): self.server.server_close () self.timeToQuit.set () डीईएफ़ चलाने (स्वयं): self.server = SimpleXMLRPCServer.SimpleXMLRPCServer (( "स्थानीय होस्ट", 8000), logRequests = false) self.server.register_instance (myServerFunction) #self .server.serve_forever (), जबकि नहीं sel...

How would I translate this C# code into PHP? -

मुझे निम्न C # कोड के PHP संस्करण की आवश्यकता है: स्ट्रिंग तिथिसंस = "2010 -02-01 "; स्ट्रिंग साइटआईडी = "bash.org"; स्ट्रिंग साझासईचर = "12345"; // मेरे सामान पर एक ही संयोजन! System.Security.Cryptography का उपयोग कर; MD5CryptoServiceProvider x = नया MD5CryptoServiceProvider (); बाइट [] dataBytes = System.Text.Encoding.ASCII.GetBytes (string.Format ("{0} {1} {2}", तारीख से, साइटआईडी, साझा किए गए गुप्त)); स्ट्रिंग परिणाम = बिट कॉर्नर। टॉस्ट्रिंग (x.ComputeHash (डेटाबॉइट्स)); ... यह कोड स्निपेट अपूर्ण प्रतीत होता है लेकिन यह है जो मुझे लगता है कि हो रहा है: जुड़ाव तिथि, साइटआईड, और साझा किए गए गुप्त चोरी करने वाली जब्ती। ??? उस स्ट्रिंग को एएससीआई एन्कोडेड बाइट सरणी में कनवर्ट करना। उस सरणी के एमडी 5 हैश ले रहा है। यह रहस्यमय बिट कन्वर्टर ऑब्जेक्ट एमडी 5 हैशेड सरणी को हेक्साडेसिमल संख्याओं की एक स्ट्रिंग में परिवर्तित करते हुए प्रतीत होता है । उपर्युक्त डॉक्टर के अनुसार, परिणाम का मान कुछ दिखना चाहिए: "6 डी -9 9-...

Plot multiple functions in R -

I first asked this which was useful in plotting a function. I want to try twenty functions on the same axis and tell me how a function varies between two categories. I have done this successfully by using specified tasks personally, but I wanted to use a loop to do this. I did try it: ## add ggplot2 library (Ggplot2) library (Latis) #Path = "D: / R_Analysis /" inFile = " sample.txt "Autpath =" D: / R_Analysis / "outFile =" processed_sample.txt "pdfOutPath =" D: / R_Analysis / "PdfOutFile =" processed_sample.pdf "# declared to chart the value y_label =" x-axis "x_label = "Y-axis" chart_title = "..." ##################################### ################################# Read In Data; Analysis and lieutenant; - read.table (paste (inPath, inFile, sep = ""), header = TRUE, sep = ",", na.strings = "NA", dec = ".", Strip.white = TRUE) # setup PDF PDF (pdf...

asp.net - Prevent closing of ModalPopup on postback -

I am using the ModalPopupExtender control from AJAX Toolkit. This control provides a panel with the CreateUserWizard control. However, the creation of CreateUserWizard control creates a postback to the server, which closes the popup. I still keep the popup open after postback. What I can collect, I should use an UpdatePanel However, I can not seem to work it The reason is quite difficult because the structure should be ModalPopupExtender & lt; Panel & gt; & Lt; UpdatePanel & gt; & Lt; ContentTemplate & gt; ... & lt; / ContentTemplate & gt; & Lt; / UpdatePanel & gt; & Lt; / Cell & gt; I can not follow this structure because ModalPopupExtender depends on a button that is contained within the CreateUserWizard control. Therefore, it is called & lt; Asp: CreateUserWizard & gt; Can be added within. & Lt; / Asp: CreateUserWizard & gt; tag I want the submit button created in the CreateUserWizard control to force pa...

.net - Is there a Marketplace for finding ASP.Net projects to work on? -

I am trying to find some good projects to work on. Is there a good site to find such projects and make decent bucks? A pair:

How to determine the collapsed state of the AjaxControlToolkit CollapsiblePanelExtender in code-behind? -

cpe. Collapsed हमेशा प्रारंभिक स्थिति पर सेट होता है और वर्तमान स्थिति को प्रदर्शित नहीं करता है अगर पैनल ढह जाता है तो क्या सर्वर पर निर्धारित करने का कोई सीधा तरीका है? यदि ( Cpe.ClientState == "true") // पैनल को संक्षिप्त कर दिया गया है।

Contents of file as input to hashtable in Objective-C -

I know how to read the contents of the file in Objective-C, but how to take it as the input of a hashtable text file See content as test.txt Lenova HCL Wipro Del Now I need to read the key values ​​in my Hashbab as a pair main VAlue 1 LENOVA 2 HCL 3 WIPRO 4 DELL you have a string in your file Want to parse and assign each element with a key in this array. This can help you get in the right direction. NSString * wholeFile = [NSString stringWithContentsOfFile: @ "filename.txt"]; NSERRE * line = [fullfile components declared bestselling: @ "\ n"]; NSMutableDictionary * dict = [ability with NSMutableDictionary dictionary: [line count]]; Int counter = 1; (Line in NSSS * line) {if ([line length]) {{dict setObject: for line forkey: [NSString stringWithFormat: "% d", counter]]; // If you want as the `NSNumber` key, then use this line instead: // [dict setObject: for lineKey: [NSNumber Numberless: Counter]]; Counter ++; }} Keep in mind that...

Is it possible to view a WPF application deployed on windows server 2003 in Windows CE 5.0 browser on client machine? -

Is it possible that a WPF or XBAP expression posted in Windows Server 2003 may be Windows See CE 5.0 Browser Thanks. Try the following

C++ STL Memory Allocator Compile Error -

I am writing C ++ custom allocation for use with STL when I enter the following code in class definition It is compiled: #include "MyAlloc.hpp" #if 1 template & lt; Typename T & gt; Type Anonymous MyLock & lt; T & gt; :: indicator MyAlloc & lt; T & gt; :: assign (size_type n, myloc & lt; void & gt; :: const_pointer p) {void * ptr = getmemory (n * sizeof (t)); Type Anonymous Mylock & lt; T & gt; :: Indicator tptr = static_cast & lt; MyAlloc & lt; T & gt; :: Pointer & gt; (PTR); Return TPTR; } #endif But when I put it in a separate .cpp file, I get the following error. What am I doing wrong? The error is on static_cast line. Member Function in 'typename MyAlloc & lt; g ++ -c MyAlloc.cpp MyAlloc.cpp: T & gt; :: indicator MyAlloc & lt; T & gt; :: Allocated (size_t, Constant Wide *): 'MyAlloc.cpp: 9: Error: Expected Type-Specifier MyAlloc.cpp: 9: Error: Expected `& gt;' MyAlloc.cpp...

css - textboxes in HTML table: How to auto-size? -

I want to add a line below my HTML table (or at the top, whatever) with a text box in each Columns (to allow filtering of the contents of each column) The FWIW table is based on the jQuery Datatylls plug-in. The problem is that the text box wider the column, I want each textbox to fill its column width without its extension. How can I do this? Try & lt; Input type = "text" style = "width: 100%" /> to get the width of the original TD.

Dynamic table partitioning in Oracle -

I am in the process of creating a database memory for my app which is a huge data volume (hundreds of millions of records) in the date field I am planning to keep an index because I am recovering a batch of all records in a certain period of time (for example, retrieving all the records of the next day, at midnight). Since the number of records is very large and performance in this system is a significant concern, I would like to know if there is any way by which I can dynamically divide my table so that I can record the record faster They can not be obtained, they are no longer required as partitions and sorting. For example, how can I go about making a partition the next day and today's record is about resources After the Popul do it with the rest of the data? In

Changing text color upon selection of a specific cell/row in a UITableView on Iphone? -

I have a simple grouped UITableView that is fed from some arrays, changing the selected text color is not a problem, By using The selected reader method but as a result of it being applied in the same color, no matter which cell I choose. For example, I want text in cell 2 for green turn on selection, while all other The text of cells should be red, is there any way to accomplish this? Can I use SelectionRowIndexPath? If so, then how? Cheers, Adam, Sweden You want to remove some things but I have got it. - (UITableViewCell *) TableView: (UITableView *) Table View CellForouaitindPath: (NSIndexPath *) Index Pathway {NSInteger Line = [Index Page Line]; Switch (indexPath.section) {case 0: switch (line) {case 0: // make some amazing breaks; Case 1: // Make some amazing breaks; Case 2: // Make some amazing breaks; Default: // Do something amazing if nothing else will break; } break; Case 1: // Make some amazing breaks; Default: // Break something amazing; }

sqldependency - How to apply Sql Dependency in ASP.NET MVC? -

How can we implement SQL dependency in SPNT MVC for a cached object? To install the dependency, you have one or more SqlCommand objects Need to associate an SqlDependency object. To receive notifications, you need to subscribe to on-change events. If you are using an ORM for your data model, then I'm not sure how this applies. More info here:

css - How to view Google Maps in "print" mode? -

I am using Google Maps API v2 and I can print the map in the same way as Google on my map page Does. You can click on the small printer icon and you can create the same pop-up window from the same map but all the spare stuff (like controls) is taken out. I know that when you navigate Press "print preview" or "print", they use @ media print to achieve that effect, however, the popup window is not in print mode. Is there a way to do magic tricks, such as setting the current media type to "print"? Or are they cheating and cheating custom css styling? I have found a Silverlight plugin and a Google Map on the same page and I want to be able to create a popup window in which the map is ready for printing (like Google is working). I know how to get HTML content, but I can only get all the controls on that material (which I do not want). Any help would be appreciated. Google Maps has added a class gmnoprint on all the elements that they Do n...

inline - how are abs, sign etc implemented in F# -

मैंने पाया कि: abs -10 abs -10l दोनों काम तो मुझे आश्चर्य है कि कैसे एफ # इसे लागू किया है और स्रोत कोड में एक खोज की है: प्रकार AbsDynamicImplTable & lt; 'T & gt; () = ABDynamic x = AbsDynamicImplTable & lt; _ & gt;। X [& lt; CompiledName ("एब्स") & gt;] इनलाइन पेट (x: ^ T) दें: ^ टी = एब्सडायमिक एक्स, ^ ^ T: ^ टी = absImpl x और मैं इन के साथ भ्रमित हूँ जैसा कि मुझे abs जैसी फ़ंक्शन में पता है, हमें इनपुट के साथ 0 की तुलना करनी होगी, और विभिन्न प्रकारों के लिए अलग-अलग 0 एस हैं धन्यवाद कैओस पैंडियन द्वारा पोस्ट किए गए कोड में कुछ स्पष्टीकरण जोड़ने के लिए, एफ # फ़ंक्शन जैसे abs यह है कि वे किसी भी संख्यात्मक प्रकार के साथ काम कर सकते हैं। यह सिर्फ एफ # /। नेट जेनेरिक के उपयोग से व्यक्त करने का कोई रास्ता नहीं है - केवल एक ही समर्थित प्रतिबंध है कि टाइप पैरामीटर एक निश्चित अंतरफलक लागू करता है या एक कन्स्ट्रक्टर होता है, लेकिन संख्यात्मक प्रकारों के लिए कोई बाधा नहीं है। एफ # भी स्थैतिक बाधाओं का समर्थन करता है (टाइप पै...

c# - Custom CssClass property: integrate classes with IDE -

I have created a custom webconconnect that acts as a container and is a text header CssClass The property applies to the container part, and I have also added the HeaderCssClass property. How do I get Visual Studio to recognize a CSS value, so that Intelis displays available classes? I'm guessing that there is a specialty that I can apply on the property, but I did not get much luck for it. Here you go.

C 3d array dynamic memory allocation, question, need help -

I was looking through the web to assign space dynamically for 3D matrix, say the int type is. And I've got many sites about 2D matrix, and this was another example shown below. I understand all the above examples, but it can not be related to 3D. Is the manufacturer allocating a location in the backward location or the other? It starts allocating space for the entire matrix, and then does the income in the Z axis? Which I can not understand. In addition to this, if you know a good site about this, then post it here, it will be appreciated. / * Program 9.4 to PTRTUT10.HTM 6/13/97 * / // http://www.taranets.com/cgi/ts/1.37/ts.ws.pl?w = 329; b = 286 #include & lt; Stdio.h & gt; # Include & lt; Stdlib.h & gt; # Include & lt; Stddef.h & gt; Int X_DIM = 16; Int YDIM = 5; Int Z_DIM = 3; Int main (zero) {four * location; Char *** Arr3D; Int y, z; Ptrdiff_t diff; / * First we have set the space on the one side * / space = malloc (X_DIM * Y_DIM * Z_DIM * size...

vb.net - What are some useful sites for VB .NET programmers? -

I recently received VB There has to be some programming in the net. This is not very difficult, but the lack of proper documentation or good tutorial is bothering me when I google the programming question, or duration, or method, I am used to finding many relevant information - but VB It has been very difficult with .NET. Any address for any good tutorials / documentation sites for VB.NET? These are all excellent resources - but I recommend you. There is also a great source of information.

design - Is it better to assign variables in a class itself or in the class' constructor? -

It's a type of design, and I'm sure there are people who do it in both ways. But in your opinion, is it better to specify a variable in the class or the constructor? For example (regardless of syntax or language, this is just to explain): public class examples {private finals full TIME_STAMP = now (); Private intake number = 2; } OR public class example {Private Readonly Inc. TIME_STAMP; Private prime number; Public Example () {TIME_STAMP = now (); Number = 2; }} Please ignore the mix of different languages ​​and syntax ... which is better and why?

math - converting R code snippet to use the Matrix package? -

I'm not sure there are any R users there, but just in case: I am A novice at R. and please "Below" the following R code snippet: Beta When I tried to run it on my dataset, the system was swatched and switched like crazy. Now I realize that this is a simple reason: in the file Freak-matrix There are a large (22 GB) matrix and I was trying to read it in memory. I have been asked to use the package, because lots of freq-matrix, many zeros all There are places and it handles such cases well, will he help? If so, any indication of this code change would be most welcome, I have no experience and the introduction on the site starts reading through PDFhave make. Many thanks ~ l my suggestion is complete By way of shutting down, you do not give enough information about the content of your files, and I had to guess by code. Anyway, it goes here. You do not tell it, but I'll assume that your code crashes on the second line, when you read in the larger ma...

curl - /bin/sh: get: command not found -

When I try to run a script by the krone, I get this error: / bin / sh: get: command not found I also tried to do it in the shell shell, and I tried to 'curl', 'weights' and 'fetch' But none of them help. Can anyone solve a solution? : You can also: links - Dump "http://www.example.com" & gt; / Dev / null

Is it good practice to put exception handling in a constructor? -

Is it an exception handling code in a class constructor, or should it be avoided? Should not anyone have the exception-generated code in a manufacturer? Yes, it is absolutely reasonable how will you and the situation like this: class list {public list (integer length) {if (length> 0) {new logic: auto upgrade ("length", "length is not negative"); } // Okay go! }} A list with a negative length is most definitely exceptional, you can not get it back on the collar and think it was successful. What is optional, a checkoff construction is liable Example member function? Yucky or about it class fileParser {public fileParser (string path) {if (! File.Exists (path)) {New FileNotFoundException (path); } // Okay go! }} Again, this is a throw and nothing else is acceptable.

com - activex in winform -

Let me know your Net WinForm will include some activeX. Provided me a .lb and com. DL was sent. Is it enough? How do I put it on Winform? It must be enough that you have to register that DLL on your machine, add it to the Dev Studio Toolbox (Right click on the toolbox / select item) and go to the com tab, if you can not find it there you can browse it there and select the typical location and type library to use. After that you can simply drag the new control over your form Library reference will be automatically added to your project. "View

Bug tracking/project management software -

I'm looking for project management software that supports bug tracking. I searched for Stakeoverflow for a school project but I did not find anything useful. I am using the organizer now but it does not have bug tracking support. I need these things: runs on php Bug tracking Project management (specify a project leader who can assign tasks and bugs to other projects on members) Easy to install as a collaborative I'm going to install it on a server, Only via FTP Can be used, so I can not install any dependencies if needed. Free / opensource Thank you in advance, ? I use it all the time.

php - $_Server['REQUEST_URI'] seems to have gone... where? -

I had an operating system with Apache 2.0 and PHP 5.2.6 I had to upgrade the Apache And PHP, so now I have Apache 2.2 and PHP 5.2.12 and for some reason $ _ server ['REQUEST_URI'] from now on Missing PHP's Super Global This is a test system on my Dv PC (not a live server) and it has 4 or VOOSOS. I I should check in Apache and PHP that I Which configuration should I check to make sure it comes back to back? Do other $ _SERVER values ​​appear? If not, check the value of "variables_order" in php.ini. If there is no "S" in it then $ _SERVER will not be filled.

java - Spring MVC configuration question -

I have a basic Java EE Spring (MVC) application setup that displays the home page with dynamic content. I'm totally new to this and am confused to move on to this point and add more pages to my application. Do I need to create a new controller for each URL on my site? Now I have the following mapping in my ..- servlet.xml file: Bean square = "org.springframework.web.servlet.handler. SimpleUrlHandlerMapping" Gt; & Lt; Property Name = "Mapping" & gt; & Lt; Price & gt; /index.html=homeController & lt; / Value & gt; & Lt; / Property & gt; & Lt; / Bean & gt; So if I have a new page now / login, will I add mapping to /login/index.html? I am more confused because I am trying to integrate spring-safety to handle the login page ... I take a look at the annotated controllers: Example: @ Controller Public Class Test Controller {@RequestMapping (Value = "/ Login / Index") Public String Login () {R...

multithreading - thread safe containers in arrays -

Can anyone please explain, even if there is access to the array with multi-thread, where each thread has a different element of the array Working on So there are n elements, and n threads ==> nth thread is working on the nth element of the array? Is anyone enough to explain what it is safe or not? And why not? Thanks p.s. Main language C # or Java, are interested in Python, but I would prefer any other input from esoteric language experts. In most languages, it will be safe (provided that you are only using a specific array element within a thread at a time) - however, this is not a good idea. The main problem is sharing one of the false. By writing items on the array from many threads, you will get very poor performance, because you are constantly swapping the cache lines, it is a particularly bad idea in the managed languages ​​like C # and Java. For example, in C #, check on the CLR array Has been doing. This causes any array to reach a variable (length) stored ju...

css - Is there a reason why padding adds to the size of an element? -

I was surprised when I found that and gt; & Gt; - If you give it 10px padding then 200px becomes 220px wide. It does not make sense to me, the external setting should not be changed when the internal setting is EDIT: I know how this happens, it's going to work, my question is this? Is it logical that I can not understand? Can it give any benefit to the opposite and the opposite approach to keeping the padding separate? There are two separate ones - the unused "box model", a specified width , while not the second, with the arrival of CSS3, you can fortunately switch between the two models. More accurate, the behavior you want can be achieved by specifying box-sizing: border-box; MS-Box-Size: border-box; Webkit-box-size: border-box; Socks-box-size: border-box; Width: 200px; In your div's CSS again, in modern browsers, the div will always be 200 px wide, no matter what. For a list of more details and supported browsers, see. Edit: Your edit ...

Simple C# event args question -

I am using WPF which has a storyboard class in which is completed Is event. I use it like this: sb.Completed + = AddControlToTaskbar; Private Zero AddControlToTaskbar (Object Sender, EventArgs Args) {// ...} How do I pass in my code in EventArgs ? It's always empty, and I need a custom category thanks mark You do not pass EventArgs for your code, the method that transmits the incident is a common way of handling that your AddControlToTaskbar method stores in the state Such as: sb.completed + = new MyCustomClass (theStateYouNeedToStore) .AddControlToTaskbar; Your constructor stores the state. class MyCustomClass & lt; T & gt; {Private Tea State; Public MyCustomClass (T-state) {this.state = state; } Public Zero AddControlToTaskbar (Object Sender, EventArgs args) {// What you need to do, you have access to your state through this. }}

How could I embedded socket in Lua internally, just like oslib, debuglib? -

I want to implement functions such as embedded socket function in your Leah build. So I do not need to copy socket.core.dll (just for fun). Searches I Manlist am, and some people are discussing this subject, I I tried these steps in Windows XP with VC 2008 I am asking for a description, which can give me a detailed step to change the Lua and Luusut code (not by the DLL method). 1) Copy the Luasocket code to the Lua project. 2) add some code Private Const Lauel_rag Lalibiks [] = {{ "" "luaopen_base} {LUA_LOADLIBNAME, luaopen_package} {LUA_TABLIBNAME, luaopen_table} {LUA_IOLIBNAME, luaopen_io } {LUA_OSLIBNAME, luaopen_os} {LUA_STRLIBNAME, luaopen_string} {LUA_MATHLIBNAME, luaopen_math} {LUA_DBLIBNAME, luaopen_debug} {LUA_SOCKETLIBNAME, luaopen_socket_core}, // add this line {LUA_MIMELIBNAME, luaopen_socket_core}, // add this line {NULL, NULL} }; 3) construction of the project, and run it. when I print (socket._VERSION) type, then This is Luasocket ...

how can i add the namespace name before the attribute in xml using simplexml -

How can I add namespace names to the newly created tag's attributes, such as & Lt; Data ss: type = "string" & gt; This data costs & lt; / Data & gt; but only & lt; Data type = "string" & gt; This data costs & lt; / Data & gt; So I can not add "ss:" before the attribute. Thanks in advance The dream day is comment section Someone has given a good example in How did I get this to work here? You call the following XML in an xml.php file: You can read in this file and you can add the attributes you want by using Expath. & lt ;? Includes php ("xml.php"); $ Sxe = new SimpleXMlelement ($ string); $ Data = $ sxe-> Xpath ('// data'); Forex Currency ($ data as $ value) {$ value- & gt; Add attribute ('S: type', 'string', 'http://www.w3.org/2001/XMLSchema-instance'); } Echo $ sxe-> AsXML (); ? & Gt; This is the output I received: ...

ASP.NET MVC: What if your model is just a Dictionary? -

(I'm new to MVC). I do not have a model in my application Oh, in the sense of a class with property Oh no it is very easy: My users basically fill a bunch of string values ​​for different keys in the system. (The keys are arbitrary and are not known ahead of time, thus there is no pre-coded category) 1 . My "model" is similar to: dictionary Pretty simple As I understand that this model is binding, HTML helpers, model state, legalization summaries all rely on reflection of an arbitrary class' Properties But can they use the key / value in their dictionary instead? For example, I might have: & lt; Label = "name" & gt; Name: & lt; / Label & gt; & Lt;% = Html.TextBox ("name")%> & Lt;% = Html Validation message ("name", "*")%> [AcceptVerbs (HttpVerbs.Post)] Create public action roles (dictionary & lt; string, string & gt; values ​​entered) {/ code> and: / ...} a...

Using c#, How can I take benefit of using nullable valuetypes when I have a variable of object type? -

Using C #, I can take advantage of a variable type of object when using null value values ? For example, I have a method that takes 4 arguments: public int update (int32 serial, object delivery date, object quantity, object changes Time) {.... .... ....} As you can guess, this method contains a new record in the table Table (Table 1) There are 4 columns: Serial Int, Delivery That Datetime Free, Quantity Float Faucet and Softtime SmallNet Empty Now, May Received concession is: I can take advantage of how to use the tap value-type and I do can change Dettaim like my desirable types I object? Thank you Why are your criteria of type object in the first place? Why is it not: public int update (int serial, datetime? Delivery date, double? Quantity, less? Change time) (note That decimals can be a better option than double .) If you can possibly change your signature, then you probably know how to get it. Otherwise, what are you really asking in your question?...

xHTML/CSS: How to make inner div get 100% width minus another div width -

Image
I have two nested divisions in the outer one, in which the width is: 100% both nested devices should be in one line and First of all it should be with its contents: The question is how to get the # 2 internal horizontal position to the left if the #internet 1 div is not specified, and it depends on what it is inside ? PS In my case, there are different classes in all styles, here I put CSS in style characteristics for simplification. I should work in IE7 + and FF 3.6 More information for me looks like this: & lt; Style type = "text / css" & gt; .captionText {float: left; } .captionLine {height: 1px; Background color: black; Margin: 0 px; Margin-left: 5px; Margin-top: 5px; Border: 0 pixels; Padding: 0 pixels; Padding-top: 1px; } & Lt; / Style & gt; & Lt; Table style = "width: 300px;" & Gt; & Lt; Caption width = "100%" & gt; & Lt; Div class = "captiontext" & gt; Some text & lt; / Div ...

frameworks - What in your opinion is the single best tool for any back-end web developer? -

is backed-up with PAP, Ruby, Python, ASP.NET, etc., it does not matter. What's your opinion, the best tool for a back and developer? Why? If you are a web-developer in the form of a back-end developer, I mean .

batch file - Bat redirecting stderr to stdout has weird behaviour -

I have a bat script that redirects the stderr of a process to stdout at one point, and then it's a file Writes in I used to do it like this: process.exe 2 & gt; And 1> File.txt However, this does not redirect the stderr file (for reasons I do not understand). When I modified this line: process.exe & gt; File.txt 2 & gt; & Amp; 1 The whole thing worked, are not these two equal? The first example basically does: stderr = stdout; Stdout = "file.txt"; Therefore, your second example is indicating stderr still on the original stdout : stdout = "file.txt"; Stderr = stdout; Then, both stderr and stdout now reference file.txt . It's annoyingly subtle.