Posts

Showing posts from February, 2012

php - Already included class -

Is it possible to include my class file in all files in a folder already? There is also the auto_prepend_file configuration option, then you add an .htaccess file (If you are running PHP again in that folder with the following folder): php_value auto_prepend_file / path / to / that / file

Form to email script for asp.net -

CDs were actually used for e-mail scripts, I think for Classic ASP. Does anyone know of a better form for email scripts that I can use for asp.net? Thank you, James I did not get the full basic question, but you Everyone wants to know about ASP.NET mailing here:

windows ce - SQL Server 2008 data loss with CE replication -

I am using SQL Server 2008 CE replication, and some data loss (i.e. After complete sync) I get the following entries in the Application log: Replication-Replication Merge Subsystem: Agent 0033007 B-0043-0039-4400-440036003300 Failure Internal Error: A Synchronization Request A reading action by the device or IIS server returned an incorrect number of bytes while attempting to process. [,,,,,] Replica-Replication Merge Subsystem: Agent 0045007 B-0038-0037-3200-430036004200 Failure Internal Error: either the computer running IIS is out of memory or a wrong session ID A request was sent in. [Session ID ,,,,,] Replica-Replication Merge Subsystem: Agent 0033007 B-0043-0039-4400-440036003300 Failed table validation validation failed. Try to re-sync [,,,,,] Replica-Replication Merge Subsystem: Agent 0043007 B-0036-0044-4400-320032003000 Failure Could not start merge process membership. Ensure that the membership registration is present on the publisher, and if necessary re-regis...

javascript - Popping up a window for the user to show some data? -

I have a webpage where my users want to get some data from me in the XML format, the flow I was thinking : The user clicks on a button named "Export" I generate a long XML string using javascript. Pop up a new window and just paste the XML string into it. I would like to save the XML string in a text file for the user, but I do not think it is possible with javascript (security reason). Is there any other best practice to do something like this? You add a hovering text Field on the page and paste it to XML Set the focus on the field to make things even easier for the user and select everything (so that they can only press Ctrl + C).

.net - skipping over potential nulls c# -

I have a block of code that eventually ends up with J.K. The full calender plugin has been serialized for use in JSN. The ToUnixTimeSpan method works in a DateTime object and returns the number of seconds from 1970 The date-column may be blank in this section of the code how I'll test for the null and leave the end = toUnixTimespan (e.DateEnd) if the date is blank? Is groovy equal operator of c #? list var listEvents = from eventRepository.GetAllEvents () new {id = e.EventID, title = e.EventTitle, start = toUnixTimespan (E.Dart Start), and = Tunics Timesman (edited), url = "/ events / description /" + e. AVEEND}; Further information about ToUnixTimespanMethod: Private toUnixTimespan {datepace tspan = date.ToUniversalTime (). Subtract (New DateTime (1970), 1, 1, 0, 0, 0)); Return (Long) Mathematics. Reposition (tspan numeric); } Wait - one minute ... why am I commenting on this, When I can take advantage of John's work for some representative ..;) end ...

c++ - what could be reason for virtual bytes to grow 2x private bytes? -

The virtual byte of an application increases private times 2 times. Does this show a memory leak? Bad app design? OS 32 bit Any idea is welcome Application Stream Database Fragmentation. If you allocate the following sections of the memory: 8KB 16KB And then You release part of 8KB, 32 KB private bytes in your application, but 40 KB bytes of virtual memory, which is actually the highest virtual memory address that your process (by ignoring other memory parties for simplicity) Has been in use. Consider some options using another memory manager (if possible): Windows Lo-framation pile (see for more information) Doug-Lee open source memory manager Like commercial choice hoard The fourth option is to write your own memory manager, it is not easy, but If done right, then there may be some benefits in it, especially in specific places or special applications For, writing your own memory manager can be useful.

asp.net - Spot the place that submits the form in ASP .NET -

I have ASP There is a button on the net page, in which the button onclick event is connected to doPostBack function. However, when I click on that button it gets presented twice, the server side debugger enters the page_load twice, Fidler records two ASPX requests, no 302 redirects etc. It is a very straightforward page. When I set a breakpoint in the __do postback function, it is also called once (maybe this is only an illusion). Is there a greater chance of debugging the client side to find this issue? Thank you, Pavel Do you manually wipe event handlers? If so, you should check AutoEventWireup = "true" in the ASPX page directive. If so, replace it on the wrong or remove the manual wiring. This can happen when you upgrade an old page with a designer file in a new web application format.

iphone - Where can I find a CSV to NSArray parser for Objective-C? -

I'm looking for the easy-to-use CSV parser for use on iPhone. Where I get one Could? I am also looking for other pars such as JSON, so perhaps there is a conversion library. Eventually I found my code to clear the parsers in the folder and posted it to Github: This is completely completely. This handles all the schemes, new lines, comments, etc. in the fields. It also uses intelligent file loading, which means that you can parse large files safely in the delayed memory conditions.

java - How does Spring 3 map the form-post in this jsp? -

पर, कोड की निम्न पंक्ति है: & lt; form action = " / लॉगिन / सबमिट करें "विधि =" पोस्ट "& gt; मैं यह निर्धारित नहीं कर सकता कि स्प्रिंग इस फ़ॉर्म को किस प्रकार सबमिट करता है। इसमें, मुझे URL ' / login / मान 'जैसे यह: @RequestMapping (मान = "/ लॉगिन / सबमिट करें", विधि = RequestMethod.POST) तो स्प्रिंग 3 इस फार्म की कार्रवाई के साथ क्या करना जानता है? अद्यतन करें: यह मिला: & lt; form-login login- पृष्ठ = "/ लॉगिन" लॉगिन-प्रसंस्करण- url = "/ लॉगिन / सबमिट करें" प्रमाणीकरण-विफलता- url = "/ लॉगिन / त्रुटि" / & gt; तो लॉगिन प्रसंस्करण यूआरएल इस फॉर्म के डाक को संभालने का ख्याल रखता है। यदि आप सुरक्षा प्रसंग फाइल में और आगे देखते हैं (सबसे अधिक संभावना है कि फाइल जिस पर आपको फॉर्म-लॉगिन तत्व मिला है) आपको एक प्रमाणीकरण प्रबंधक और एक उपयोगकर्ता विवरण सेवा दिखाई देगी, जो आपको बताएगी कि स्प्रिंग किस प्रामाणिक प्रमाण को जानता है।

diff - Code Review - Clearcase - How to get a list of files a user modified since another label? -

I would like to create a dynamic view that only shows user-created / modified files for a particular label. Right now, I am listing all the files in the label and compare it with the previous labels. If I want to use Cleitol to search for files, then okay with me I want to be more automated than this in comparison to the process currently. There is another option, can I see diffs for only a specific user? In this way, I am more likely to understand the history of the file if a developer tried in some way and found that it did not work, then it could be helpful to see the test and error. config spec: #element * REL_2010.2.2.006 element * ... / pgh_rel_4.0.0_dot_rel / {created_by (pp50773) & amp; Lbtype (REL_2010.2.2.006)} # First stop rule element - Directory * ... / pgh_rel_4.0.0_dot_rel / {lbtype (REL_2010.2.2.006)} # seconds stop rule element - directory * main / latest This config speake does not bring my changes - it is spreading empty directories. It is impor...

iPad: IBAction for UIButton responds on iPhone device, not on iPad -

I have also worked on the iPad on the development and maintenance of iOS production, which is mostly used on IOS on the iPhone. We've got a specific UIButton that will give the expected response to the iPhone (device and simulator), but does not respond to the iPad (device and simulator). Where do I need to lose to debug this item. Any remedy? Thanks in advance. It seems that it was very easy for me [ Self.view LaosVivio Toufront: Button]; // turns on the button above other sub-scenes [button setday display]; // Make sure the button has been redone I still can not believe why this happens when walking on the iPad, but it fixes my problem.

Reading the inner text of an XML element using Go -

I'm trying to read the XML file in go using the XML package (). My problem is that I am not sure how to read the internal text of an element. I load the document in XML. Call the parser and then the parser. To go to the token () file. I check to see if the token is using the following: token, err: = parser.Token () if element, ok: = token (Xml.StartElement); Ok [/ i can read the element name and attributes in the process as an initial element here] if charData, ok: = token (Xml.CharData); OK {how to read text data as text in text? } The xml.CharData type is defined as: type charadata [byte] But I can not use the alphabetic variable as an array of bytes to convert to a string. The only way to define the CharData is to copy the token, but it only gives a second copy of a fourfold variable. I have tried some things, but they do not compile: innerText: = string (charData) innerText: = string (charData [0:]) innerText: = string (charData [ 0]]) // It is compiled but ...

javascript - jQuery Cycle - IE not loads the image at once (blinking occurs) -

There is a problem with the jQuery Cycle Plugin in IE8 (and other IESs too) I 3 There are slides with titles, description + images. The problem is that the image "Blinking" in IE8 is not being loaded / once (cut down for a little while, it is fully displayed). Before I had a problem with White BG below the slider, but I decided that with Cleipype: True, Cleistop nozz: True, but without it or without blinking also. Do you have any idea how to solve it? Your issue is missing pngs. To consider ways to manage this, look at some of these other posts:

Including variables in expression call in R -

I was thinking that it is possible to include variables while using the expression in R. For example, I would like to do something like this: for par (mfrow = c (2,3)) (i 1: 6) {plot ( X, p1 -i * p2, main = expression (Phi [1] - i * phi [2])}} but it does not work because it prints & Phi ; 1 - i & phi; 2 (i.e. it i with 1, 2, ... 6 Use the option: & gt; Option (Phi [1] - i * phi [2], list (i = i) fee [1] - 3 * fee [2]

sql - MySQL: How do I SUM non duplicates values when doing multiples JOINS -

Text after " I try to sum values ​​from columns, a question that takes some of the workload example:. Select p.id product_id, SUM (out_details.out_details_quantity) stock_bought_last_month, SUM (order_details.order_quantity) as product as stock_already_commanded as P Interiors Out_details.product_id = p.id out_details Join Insider Order_details.product_id = order_details at p.id WHEER p.id = 9507 group out_details.out_details_pk, order_details.id; I get this result: + ------------ + --------- - --------------- + ------------------------- + | Product_id | Stock_bust_lost_moth | Stock_already_commanded | + ------------ + ------------------------- + ---------- --------------- + | 9507 | 22 | 15 | | 9507 | 22 | 10 | | 9507 | 10 | 15 | | 9507 | 10 | 10 | | 9507 | 5 | 15 | | 9507 | 5 | 10 | + ------------ + ------------------------- + ---------- --------------- + Now, I want to SUM values, but of course there are duplicates. I also have group of product_id For: stock_b...

search - Ways to send binary/structured documents to SOLR? -

I am using SOLR to ingest the text of the documents. Examples of all usage in the curl stream document, such as: curl 'http: //.../extract? Literal.id = doc1 & amp; It works just fine, but this note is: "curl" Or to use other command line tools to post documents on Solr is good for testing, but not the recommended update method for best performance. The section of the documentation is TODO, what are some of the alternative ways, and how are they better? Usually you use your library client language that communicates with the server (eg. Use Java for Solarje, PHP SolpHP (Other), etc.) The library provides some things like ease of use, error handling, proper encryption, etc.

php - Charting library that offers Linked line chart with dots -

I am trying to plot data from time to time with many organizations. Each unit will have its own line, so there will be several lines. Each line will be connected, but it is important that the dots are ready to represent the data. I am aware of the link bar chart, but on the initial inspection, I think there is no one to give me the ability to attract dots. Nobody knows what the library is? I am open to PHP, flex, Digrapha, whatever works. Chart Directors Do It, But Not Free I am sure there are others, but this is what I use. Example here:

javascript - Returning Value from HTML window -

I have a function that opens a pop up window: function popup ( Url) {LeftPos = 0 topPos = 0 if (screen) {leftPos = (screen.width / 2) - 150 topPos = (screen.heit / 2) - 250} new window = window.open (url, 'name', 'Height = 300, width = 500, left =' + leftPos + ', top =' + topPos); If the user closes this window then I have to set this code on: > Javascript: document .cotform.Submit () Does anyone give me a simple solution to return a bully with popups when my JS is able to fire. Any help is appreciated, today I'm having trouble with the brain, I know it must be easy. You access the window which opens through the current so that you window.opener.document .quoteform.submit () from new window;

jquery - how do i load thousands of rows in my asp.net mvc project from database into slickgrid? -

All examples except for the Ajax example make random values ​​with JavaScript What is the standard way to load from a database? I do not necessarily need to use Ajax, but I do not think I want to generate every value and write it in html or how should it be done? If you do not want to use Ajax, then you have to type every value on html. No other way. Using pagination helps ease the load.

c++ - PostMessage: Access Denied -

The application will receive the message from all the processes of the system. The message is sent using a postage call, which gives an error (5, access denied). The code works correctly on Windows XP SP2, but only Windows 7 receives the message itself, which should be considered for receiving messages from each application. Reading the post message document, I can read: When a message is blocked by the UIPI, the last error is retrieved from GetLastError 5 (Access denied). But in reality it does not say how this "UIPI" works, how do I do it? You can allow your program to get a specific message using the function.

groovy - Grails problem persisting data in join tables for many-to-many relationships -

I am having trouble maintaining domain objects where I have many-to-many relationships with a table table Class A {string name is constant = hemanyy = [bs: b]} square b {string nickname is constant = a constant hemayy = [as: A]} AA = new A (name: 'Test') BB = new B (alias: 'user') a.addToBs (b) a.save (flush: true) Then what I expect to see rhythm However, data remains in Table A only. However, the data remains in Table A only. Does anyone know what I am doing? Thank you I have this link which has many mapping of many relationships Shows a clear way of King Jas By the way I want this time

c# - LINQ Equivalent of SQL -

मुझे निम्न SQL क्वेरी को LINQ समकक्ष में अनुवाद करना है Select 0 as DOCID, पृष्ठ के रूप में 'All_Forms', पेज के रूप में 0, पेज के रूप में यूनियन का चयन डॉकिड, (CAST (ISNull (कस्टम, पजेनमबर) के रूप में VARCHAR (10)) + '।' + TITLE) पृष्ठ के रूप में, मेडिकल के उत्तरदायित्वः जहां पेपरस्टाइल = 'सामान्य' और पेजेनमबर & lt; & Gt; 10000 ORDER द्वारा डॉक्टरेट ऊपर से LINQ समकक्ष में अनुवाद कैसे करें? यह मानते हुए कि आपने अपने डेटाबेस में संघ का ध्यान रखा है और अपने डेटा को एक दृश्य के माध्यम से पुनः प्राप्त किया है, यह हो सकता है: रिपोर्ट में चिकित्सा से रिपोर्ट जहां रिपोर्ट्स। "सामान्य" & amp; amp; रिपोर्ट.पेजएनम्बर! = रिपोर्ट्स द्वारा 10000 ऑर्डर। डॉसीआईडी ​​चयन रिपोर्ट

iPhone Simulator slow and jerky -

My problem is that whenever the iPhone has to push a view (like a keyboard), then it actually It takes long time (15 + seconds) I have never used this problem with the simulator, but when I updated the xcode to 3.2.3, the simulator is not used for almost anything Can be done for which the keyboard is required. For example, the Springboard app on the simulator (which stores your icon and has a search panel on the left). When I scroll in search all the way, the keyboard is immediately populated, but it takes a long time to register any taps and the whole simulator becomes unresponsive. It happens with any app In addition, sometimes it may take too long to show the keyboard. I really appreciate any thoughts! In my case, try to disable it due to the NSZombieEnabled flag being that if You set it up and MKMapView can come back "in life". Edit: Unfortunately my problem has just returned, so the problem above did not solve the above. Pardon!

flex - BOX2D flash game Applyforce/Apply Impulse? -

I'm trying to use Box 2D for this game to flash. Everything is fine with me, the only problem is that when the group of bubbles explodes, how would I apply a similar increase in speed like this, in the game I have implemented the application, Implementation has implemented , But what I find looks like an explosion of balls. It depends on the structure you are using complete it One way to do this is to apply a gravity vector which is specific to these objects in the upper direction. Another way to accomplish this is to apply an elastic joint so that it is a continuous acceleration. I'm assuming that you are using. I believe that you may be able to use the mouse joint.

c# - Validation on Databoud DataGridView per Column -

Then I have a datagrid view that is used to display a list of custom models. Here are some sample codes for the model: Public class testdom {public inimenable & lt; String & gt; GetValidationErrors () {If (value1> 100; value1 & lt; = 0) yield returns "value 1 can only be between 1 and 100 (inclusive)"; If (string.IsNullOrEmpty (Value2)) yield "value 2 can not be empty"; } Public Bool ISImail {GetValidationErrors (). Count () == 0; }} Public int Value1 {get; Set; } Public String Value2 {get; Set; }} Now suppose I was compiling the list of these models (or IEnumerable) such as list & lt; TestModel & gt; List = helpers.GetListOfTestModels (); DataGridView1.DataSource = List; (We can assume that the list return is valid, or it will not be stored). Now the event occurring on the Rowlification DataGridView, I can validate the entire line from accessing the property and a lines [] I can set up. Error text , such as: Private Z...

winforms - How do you print a string to the printer in c#? -

I have to print the string with a text box. The string should print through the default printer weather It is a parallel printer or USB printer. Can it be done BTW..I am using .NET forms Of course, you can use PrintDocument class to print arbitrary content. There is a good example that prints the contents of a file on the default printer. It should be trivial rather than favorable to print the content of the text box.

mysql - How would you store a business's hours in the db/model of a Rails app? -

I am preparing a rail app that will open and store the closing hours for a business. Basically, I just thought of using a text data type and giving it a free form: "Sunday to Friday from 9am to 5pm Saturday from 11am to 4pm on Sunday" However, the requirements have been changed and I need to check hours against the current date & amp; Display an "open" or "off" in the time and view. Something like this: class business & lt; ActiveRecord :: Base Diff is open? # Something like this ... time.None> Open_time & amp; Amp; Time. Now & lt; Close_time expiration So what would be the best way to settle this in case of hours of storage for each day of the week? Is there just so much in business: open blocks (or whatever) near open? Should I Store The Day as String? This was the subject of Ruby Learning recently - can be helpful :)

c# - Crystal Report not updating correctly from ODBC DSN Database View -

When I print my crystal report, it will not print the correct (most recent) database view For, I have to manually select "set dataset location" and then I want to click on the tables and then click Update. If I do not do that, then she continues to print the old scene as much as possible. I have the option to "Verify on every print" but this does not seem to work. I am using VS 2010 with the beta crystal report for 2010 and ODBC 5.1. Thanks It looks like you enable the Enable report report option . Try to open the report in Report Designer, and see if there is a tick on the File menu next to Save data along with the report option - if so, uncheck it, save the report and try again.

internet explorer - Open and Wait untill IE is closed in batch file -

I want to open IE from a batch file and wait until it closes before going to the next line of the batch file. how to do this? The BTW i.e. explorer command is not working in Windows 7 command line. Any ideas why? Thank you ... When it comes, browsers are complex For the entire process, even in the first days of the tab, IE could have more than one window open in the same process, they often use DDA to open the URL that is trying to track the "correct" process if you Force the user to use IE (why not use default browser?) If you want, you can use Windows scripting host to automatically host IE (there is some problem with automation when it comes to IERC protected IERC) Just a simple break Recommend: Start / wait http://example.com. When you read XYZ, press [Enter] to continue ... stop & gt; Nul

In Drupal 6, what's the quickest way to set up a WYSIWYG editor with code syntax highlighting and image upload? -

I have seen many posts at random places about how to set up a WYSIWYG editor for Drupal 6. I With CKEditor and FCKEditor via WYSIWYG Drupal module. Everything is fine, but when I try to add syntax highlighting and image upload functionality, I get a breaking point. I try that any process is very complex and is not working (the last time I used CKAditator + YYYYYYG + GESHI Filter (with Hack) (described). The combination can not be found to work properly and there are too many variables / combinations to try. Is anyone experiencing a solution that works without much trouble? me There's a great blog post that almost answers my question. There, Clifford Meas has given step-by-step instructions about setting up the WYSIWYG module with the TinyMCE and SyntaxHighlighters, by adding some small modules, Fixes issues. After that, I installed the correct and module in my site / all / module directory. The instructions given in the IMCE module readme.txt Obtained after following, ...

php - 'Invalid' error for sfWidgetFormChoice when form is submitted -

I want to display a combo box using symfony I have created the widget in CountryForm.php: $ The-> setWidgets (array ('country' => new sfWidgetFormChoice (array ('option' => array ())); For this verifier: $ This-> setValidators (Array ('country' => new sfValidatorChoice (array ('option' => array (array_keys ($ country)))))); Let me invalid for this Cambodia Is getting an error. Is there any idea on this? Thanks in advance .. array_keys gives an array try: $ this-> setValidators (array ('country' = & gt; ; New sfValidatorChoice (array ('option' = & gt; array_kiz ($ country)));

WPF C#: Rearrange items in listbox via drag and drop -

Text after " I drag the mouse through how to move the item up and down to a previously loaded listbox I am trying to I have looked at the control. Dodradrope method from Microsoft's API, but I still can not get to do anything I would appreciate any help since I'm new to the Visual Studio Environment. I have tried to create one using one, have a look ObservableCollection & lt; Emp & gt; _empList = new reviewable collection & lt; Emp & gt; (); Public Window 1 () {InitializeComponent (); _empList Add (new ampe ("1", 22)); _empList Add (new ampe ("2", 18)); _empList Add (new ampe ("3", 29)); _empList Add (new ampe ("4", 9)); _empList Add (new ampe ("5", 29)); _empList Add (new ampe ("6", 9)); Listbox1.DisplayMemberPath = "name"; Listbox1.ItemsSource = _empList; Style itemcontainer style = new style (typeweb (listbloxime)); ItemContainerStyle.Setters.Add (New Setter (ListBoxIte...

vsto - Is there a way to add an image into slide thumbnail only in PowerPoint -

I want to add an image to the slide thumbnail in the left panel, but it should not be shown in the slide. I found the following code to add an image to the slide: Microsoft.Office.Interop.PowerPoint.Shape viShape = slide.Shapes.AddPicture (lockImgFile, Microsoft.Office .core MsoTriState.msoFalse, Microsoft.Office.Core.MsoTriState.MsoTrue, ICON_X, ICON_Y, ICON_W, ICON_H); ViShape.ZOrder (Microsoft.Office.Core.MsoZOrderCmd.msoBringToFront); But I do not want this because the image will appear in the slide in the edit panel. You can not - thumbnails on the left are small versions of large slides. Whatever you put on the big slide, it will appear on the thumbnail.

Django: Reverse URL lookup with arbitrary URL components -

एक Django app, shop मानें, जिसका urls.py मुख्य urls.py में शामिल है : # मुख्य urls.py urlpatterns = पैटर्न ('', (आर '^ [^ /] + / दुकान /', ('shop.urls') शामिल हैं),) ध्यान दें, कि / दुकान से पहले एक मनमानी उपसर्ग है यह दुकान ऐप के लिए कोई दिलचस्पी नहीं है, यह केवल कुछ मिडलवेयर के लिए दिलचस्प है। shop.urls इस तरह दिख सकता है: # दुकान के urls.py urlpatterns = पैटर्न ('', url (r '^ $', सूचकांक, नाम = "दुकान_ इंडेक्स"), url (r '^ product / (? P & lt; id & gt; [ ^ /] +) $ ', उत्पाद, नाम = "दुकान_प्रोडक्ट"),) अब मैं अपने कोड में {% url%} का उपयोग करना चाहता हूं > दुकान टेम्पलेट्स। क्या इस योजना को उखाड़ता है, यह है कि उत्पन्न URL में वैश्विक urls.py से उपसर्ग शामिल नहीं है उत्पन्न यूआरएल अधिक दिखते हैं, जैसे / ^ / shop / product / 1 प्रश्न: अब, वहां है रिवर्स लुकअप को सिर्फ उसी उपसर्ग का उपयोग करने के लिए एक संभावना (Django 1.2 या svn trunk में), जो वर्तमान यूआरएल में है? उदा...

c# 3.0 - i want c# programme to do this operation -

IF 7 - 3 = 124 6 + 3 = 279 5 - 2 = 63 11 + 2 = 2613 फिर, 15 - 3 =? 15 - 3 = आपको ऐसा करके नौकरी नहीं मिल रही है ।

c# - ASP.NET MVC: DropDownListFor doesn't select any option -

I have to pop the drop down list in an asp.net MVC view. & lt;% = Html.DropDownListFor (model = & gt; model. Bike, model bike. Select (x = & gt; new SelectListItem {text = x.Name, Value = Url.Action ("Details", "Bike" new {bikeId = x.id}), selected = x.ID == Model.ID,}))% & gt; By debuging it, I can see that the selected property is set to true when it should be. But when the scene is provided, no option is selected from the list. Any thoughts? I know that this can be done with another overload of DropDownListFor , but I really have to work on this version. Your selected value does not work, because you are using the URL as an option value but Try Model.ID in the Selected section like this: & lt;% = html DropDownListFor (model = & gt; model. Bike, new selection list (model box, "id", "name", model.id))% & gt; "ID" indicates the property that will be used as the option value...

fbml - Facebook connect - login and grant permission at the same time -

I can get my app after login and permission, but I think it's like doing it At the same time the login button is being generated using the following code & lt; Fb: login-button perms = "publish_stream" & gt; & Lt; / Fb: Login button & gt; Text "itemprop =" text "> Also for Have an FBML tag, try it: Example:

c# - wpf Dependency property before changing event? -

I have dependency property on a control which is a custom class. Now there is an incident before the price is being changed being raised? I know that OnPropertyChanged has raised the property has already changed. I need an event before so that I can cancel the cancellation. ... to preserve the control situation ... I can not keep the dependency property back in my old values ​​because it would mean that I lose the state under control. > Thank you! You can use your DependencyProperty to validate the text "itemprop =" lesson "> after The incoming value and reject it, if it is not in accordance with your wishes In the following example, only gives importance to more than 0 will be accepted: public integer Test {{return (int) getValue (TestProperty); } Set {set value (testproperty, value); }} Public static Read Only DependencyProperty TestProperty = DependencyProperty.Register ("test", typeof (integer), typeof (YourClass), new UIPro...

javascript - jQuery Drag plugin - Prevent dropping of a drag element on the top of another -

मैं jQuery के प्लूंस का उपयोग करता हूं और देखिए (केवल एक संदर्भ प्रश्न आंदोलन को सीमित करने के बारे में नहीं है एक कंटेनर) क्या किसी अन्य तत्व के शीर्ष पर एक ड्रैग तत्व को छोड़ना संभव है? लेकिन इसे दूसरे पर खींच लिया जा सकता है। जब आप event.drag के साथ क्या चाहते हैं पूरा कर सकते हैं / ड्रॉप स्क्रिप्ट यह भी आसानी से jquery ui - draggable / droppable का उपयोग कर किया जाता है। घटना के लिए।, अगर आप अपने मानदंड (या इसके विपरीत) से मेल खाता है, तो आपको झूठी वापसी की जरूरत है: $ ('# drag1')। ड्रॉप ("init", फ़ंक्शन () {if ($ (this) .is ('# baddiv')) वापस लौटा;}) यहां jquery UI संस्करण है, इसमें $ () में स्वीकार विकल्प में बनाया गया है। ड्रॉपपैबल फ़ंक्शन - यह चयनकर्ताओं को भी स्वीकार करता है यह उदाहरण ऊपर के पीछे है उपरोक्त आप कहीं भी ले जा सकते हैं लेकिन बुराडिव, जबकि नीचे दिए गए इस उदाहरण से आप कहीं भी नहीं जा सकते हैं, लेकिन परिभाषित डॉपटाबल: स्क्रिप्ट: $ ("# खींचें 1, # ड्रैग 2 ")। Draggable ({revert: 'invalid'}); $ (...

model view controller - Prevent Image Caching in MVC 2 C# -

I have a profile image upload page, where users can overwrite their previous profile picture. But when I return users to my profile page, the browser has cached their previous image and only gives an F5 refresh new image. Is the browser preventable from caching the image, because some users may think that their new upload has failed. Ideally, I would like to prevent the image from being cached. But donut caching promptly indicates that it is not possible to do this in MVC 2 ... ?? Thanks for any indication. Pausing caching is a very bad idea. Instead, consider using the technology with a clear "version": http://www.example.com/users/johndoe/avatar.jpg?43567 An avatar is saved every time, to increase this number and you are good to go. Or, instead of having a clear version, you can to ToFileTime () . You can use the value of the date / time column (if you have one) changed to has been updated . / div>

Decode PEM (c#) -

I have picked some old code with which I need to work and I have the following functions in C int pem64_decode_bytes (const char * intext, int nchars, unsigned char * outbit) {unsigned char * outbcopy = outbytes; Whereas (nchars> = 4) {char c1 = intext [0], c2 = intext [1], c3 = intext [2], c4 = intext [3]; Int b1 = pem64_dict_offset (c1), b2 = pem64_dict_offset (c2), b3 = pem64_dict_offset (c3), b4 = pem64_dict_offset (c4); If ((b1 == -1) || (b2 == -1) || (b3 == -1) || (b4 == -1)) outbound return - outcopy; * (Outbite ++) = (B1 Lieutenic; > 4); If (C3! = Filarisms) * (Outbite ++) = ((B2 and 0x F) & lt; 2); If (C4! = Filarar) * (Outbite ++) = ((B3 and 0x3) It should decode a pack of data encoded. Does anyone know that this is a standard task? I need to convert it to C #, I'm not a C codeer, does anyone know of a sample that does this? Edit ======= Public Static List & lt; Byte & gt; Pem64_decode_bytes (string intake, int number overbits) {var rat...

dhtml - Dynamic HTML using Javascript -

I am using javascript to create a grid of input elements in dynamically in HTML. Each row has 4 input elements and users can add or remove rows as they are necessary. Every time they add or remove a line, I am dynamically rebuilding the grid. My problem is after making a grid for the second time, I can not reference any element. I believe that there are two incidents of each element in the DOM with the same name now, and when I try to refer to the name, it is confusing. My question: There is no way to reset the DOM list of element names, so the name "reside" on every dynamic build is still unique? Every time you create a grid and every time you join it, You can give unique prefix references to a node by ID. Or you can change your code every time to not completely refill the entire grid. However, I think it may happen that you have mis-discovered the problem or I do not understand your question correctly. If you remember to remove the old table element from t...

windows - Access violation in Image destructor -

एक बहुत ही सरल प्रोग्राम मैं कह सकता हूं .. #include & lt; windows.h & gt ; # शामिल करें & lt; gdiplus.h & gt; नामस्थान Gdiplus का उपयोग करना; इंट WINAPI WinMain (हिस्टन्स एच इंस्टस्टेंस, हिंसस्टाइन, एलपीटीआर सीएमडीलाइन, इंट एनशो) {// जीडीप्लस वेरिएबल्स जीडीआईप्लस स्टार्टअप इनपुट एमजीडीप्लस स्टार्टअपइनपुट; ULONG_PTR एमजीडीप्लस टोकन; Gdiplus स्टार्टअप (और एमजीडीप्लस टोकन, और एमजीडीप्लस स्टार्टअपइनपुट, नल); बिटमैप बिटमैप (एल "left.bmp"); GdiplusShutdown (mGdiplusToken); वापसी 0; } इस उदाहरण को चलाने पर मुझे इस समारोह में GdiplusBitmap.h में एक पहुँच उल्लंघन मिलता है इनलाइन छवि :: ~ छवि () {DllExports :: GdipDisposeImage (nativeImage); } कॉलम को बिटमैप बिटमैप (एल "left.bmp") पर निकालने के लिए; सबकुछ ठीक काम करता है .. मैंने एमएसडीएन पर एक साधारण उदाहरण खोजने की कोशिश की ( उदाहरण के लिए कहीं न कहीं, लेकिन कुछ भी नहीं मिला।) मुझे क्या याद आ रहा है? शटडाउन जीडीआई + को कॉल करने के बाद बिटमैप उदाहरण आपने बनाया है जो दायरे से बाहर ह...

Cannot find C++ library when linking, error compliling the `boost::program_options` example -

I'm trying to compile to compile on my computer. I'm fully updating Xubuntu Lucid Lynx. It will compile with no problem with g ++ -c mult_sources.cpp , but when I try to link and remove with G ++ I get multiple_sources.o I see: multiple_source C.PP: (.text + 0x3d): `promotion: program_option :: option_details :: m_default_line_length 'multi_sources.cpp Undefined Reference: (.text + 0x87): 'Prompt: Program_option :: Options_ Details :: Options_details (std :: basic_string & lt; char, std :: char_traits & lt; char & gt ;, std :: allocation & lt; Char & gt; & gt; CONST & Amp ;, unsigned int) 'multiple_sources.cpp :( text + 0x15a): `Prompt :: program_option :: option_details :: add_options ()' undefined reference to 'multiple_sources.cpp :( .text + 0x17b) :: Undefined context of program_points :: options_description_easy_init :: operator () (thief cons *, four-cons *) 'multiple association. CPP. (Text + 0x193): `Prompt...

What's Go's equivalent of argv[0]? -

How do I get my own program name at runtime? Is the argv [0] of C / C ++ equals? For me it is useful to generate experimentation with the correct name. Update: Added some code. Package main import ("flag" "FMT" "OS") Func usage () {fmt.Fprintf (os.Stderr, "use: myprog [inputfile] \ n") flag. PrintDefaults () os.Exit (2)} func main () {flag.Usage = use flag.Parse () Args: = flag.Args () if lane (args) & lt; 1 {fmt.Println ("The input file is unavailable."); Os.Exit (1); } Fmt.Printf ("Open% s \ n", args [0]); // ...} import "OS" OSARG [0 ] // The name of the command that is running as OSARG [1] / first command line parameter ... logic os package If you are going to deal with logic, then the flag package is the preferred method especially for your case flag.use Update for the example you provided: func usage () {fmt.Fprintf (os.Stderr, "Usage:% s [inputfile] \ n", os.Args [0 ]...

wpf - Binding the content of a Span -

I have a window that displays the text, there are two parts of the text: first fixed, while the other The need to have the contents of the dependency property declared on the window. I considered using a spelled text block, the first of which is the definitive content and from which there is variable content in the other, but on the SPAN class, I can not see anything clear Dependency dependent will depend on dependencies. I am currently using two label stacked one side but it is ugly and if I want to retrieve the contents of the entire text block (as I did it, then that device Displaying tooltips in that the window is too large to display the entire text block) does not help me. Can anyone help me solve this seemingly simple problem? Thank you. If you are using .NET 4: & Lt; TextBlock & gt; & Lt; Run text = "fixed:" /> & Lt; Run text = "{binding variable}" /> & Lt; / TextBlock & gt; Before .NET 4, play 's tex...

How to "typedef" a matrix in C -

While defining new data types in C, anyone can typedef Double BYTE; So it is possible to do later BYTE length; etc. I would like to do something like this typedef double [30] [30] [10] matrix; So much later I do Macmatics AA [10]; So I have 10 matrix types of matrix, and I can access them through AA [0], AA [1], etc. Anyway, doing this with GNU, I get an error like the C compiler error: '[' token There is a possibility of unauthorized-IDs expected before or how can I achieve my purpose? Thanks Follow the idea: typed double double matrix [30] [30] [10];

eclipse - Determining the datetime of a specific tag on a specific module in CVS -

I need to set the exact date / time of a specific tag on a particular module in CVS. Can you please help me how can I do this - especially using the Eclipse CVS plugin? thank you in advanced. I do not think you can have any existence with the tag in the CVS, which The tag is near, and the file is tagged, or it is not. This is the reason that when you tag it, then there is a good idea to put the name of the tag in a timestamp .

Printing from a batch Java job -

There is some research done on this topic, but no relevant answer was found. What I need to do is to print several PDF files, one of three forms, which is loaded in different trays of a particular printer. I need to specify which printer will use and this is not the default printer. In addition, I need to specify which tray to use on the basis of the characteristics of each PDF file, and both of them at run time Be able to switch between The Java print service is only interested in local default printers. I appreciate any suggestion for how to accomplish this work. The printer does not allow API to speak to the printer other than the default saying that it We have to write JNI layer in our shop which is directly talking in the print queue of windows and we use it. If you want better control with the PrintService API, you will need to write a JNI layer and access to Java.

grails - Change Configurations after War Build -

I have two configurations that I have to change after creating an old war with Gilles 1.3.2. I know that this project can be set up in the way of outsiders in the first place, but it is not an option at this moment. 1) The environment needs to be changed. Production. Hibernate.default_schema is defined in DataSource Groovy 2) The environment defined in Config.groovy. Production.grails.serverURL needs to be changed Is there any way of editing or overriding arguments during the war in JBoss? If you want to change these properties into a production application, your only option is to select files with external properties Is using, which will require the reconstruction and re-deployment of the app. See the following link

java - LiveCycle 2.6.1 Data Management with The ColdFusion 8.0 DataManagement Event Gateway Issue -

I have recently developed a project that uses LiveCycle 2.6.1 from ColdFusion using Data Management Event Gateway Including sending events is involved. For Flex 4.0 customers (Live Seals and ColdFusion are on different instances, but only one server). To start with, I used Coldfusion Assemblers, DAO, and models and everything worked fine at the local level. After deploying this setup on beta site, I have decided that this setup will be very difficult in configuring clustered instances in many servers. Then I decided to change the model of my consolidators, the DAO model and Java. The conversion went well and Flex sees customers of the same type of data as they did with the Coldfusion Adapter. Once I try to send an update to Flex Client from my ColdFusion application, I get an error that: "Flex for Destination My_Dest on Localhost Unable to find the adapter in the RMI registry: 10 99. The flex adapter can not run or the destination may be incorrect. After seeing this ...

.net - What exactly is the point of Expression Trees? -

OK, I do not get this. What I have read, can be on the subject without knowing all this: Why use the Expression Tree? What is a real-world example of when and how should I use them? What are the overall benefits of using them? Expression Tree API originally written to enable the creation of custom LINQ providers. I went. Basically, if you use objects to LINQ, then you do not deal with Expression trees. But if you work with LINQ from SQL, the LINQ provider works with Expression Trees. The .NET 4.0 expression tree was expanded into API and has been heavily used by DLRR. Therefore, if you say that add a new dynamic language to the NAT, then you will need it. As often happens, people find more ways to use expression trees. Sometimes you can use ET to get more information about things rather than reflection. In .NET 4, you can also use them to generate dynamic methods. But remember that these are more like advanced tricks rather than the recommended circumstances. H...

c# - Parameterized queries on iteration -

I am including web form in database and therefore using parameterized queries. I have a checkboxist. How can I repeat more than CheckBoxList, to create a insert statement for every check (multiple-to-many), and to keep this parameditized and killed at one time I enter this now: string query = "resources (URLs, submitted_by, AUTHOR_NAME) values ​​(@url, @submitted_by, @author_name);"; Foreign Currency (Listed in the checkbox list 1). If (li.Selected = true) {query + = "INSERT IN"; }} SqlCommand CMD = New SqlCommand (query, conn); Cmd.Parameters.AddWithValue ("@ url", TextBox1.Text); Cmd.Parameters.AddWithValue ("@ submitted_by", TextBox2.Text); Cmd.Parameters.AddWithValue ("@ author_name", TextBox3.Text); Try {conn.Open (); Cmd.ExecuteNonQuery (); Label1.Text = "Added to database."; } As you can see, it is incomplete any suggestions? You can use LINQ to generate unique name parameters for each item in your arch...

objective c - Weird popping noise when playing different sounds with different volumes set through OpenAL on the iPhone -

I am using the OpenAL sound framework on iPhone, and I am setting different amounts on different sounds. I am running into a problem where I am listening to initial popping / click noise while switching from one voice to another. This is really noticeable when I have a volume that is high volume (1.0) and another sound which has less one (0.2). When I hit the loud sound, and then hit the soft sound, I heard the pop / click but when I go out loud with soft sound, I do not know anything. So pop / click actually happens when loud switches are switched on. Here's the input sound method: - (id) initWithSoundFile: (NSString *) file doesLoop: (BOOL) loops {self = [super init]; If (self! = Zero) {if (! [Self loadSoundFile: file doesLoop: loops]) {debug (@ "Failed to load sound file:% @ ...", file); [Self release]; Return zero; } Self.sourceFileName = File; // Temporary Sound Queue Self. Floating sound = [NSMutableArray array]; // Default volume / pitch self.volume = 1....

scripting - Does an AWK script take up a lot of CPU? -

Does AWK use too much processing power? If so, is there a better scripting language to do this? Or should I do it in C. (where my code is remaining). Depending on you that most of the work you are asking to do is passed to the regexp engine What should be the same, whatever language you use. Now if you are using a strange script from within a C program, and you have the resources to implement the functionality in C, you're better off doing this / Expiration + Communications overhead (which may or may be a major part of the performance you receive). For more information, tell us more about your script!

"this" doesn't work when binding functions to events inside a Javascript class -

First of all, I know that I can immediately copy "this", but it does not work here. Actually I'm writing something to track people who interact with Youtube videos. I got this job right for one video at a time. But I want to work on it with several YouTube videos, so I changed the code into one category, so that I can create a new example for each video on the page. The problem occurs when the Youtube event is trying to bind the event listener for state changes. For "non-class" code, it looks like: var o = document.getElementById (id); O.addEventListener ("Onset Change", "OnTheStateState Change"); (On the OnPlayerStateChange function I wrote to track state changes in the video) (I know that AddEventListener will not work with MSIE but I'm not worried about it yet) But when I am inside a classroom, I have to use "this" to refer to the second function of that class. This code looks like this: this.o = docume...

.net - Generic Classes (T) - Specifying from a Range of Types VB.Net -

This is the code that I am trying to develop: public structure Data T) Get T Return Retrieve Interval (ByVal Value T) as Low Belt T as Public Sub-New (ByVal pValue as t) maxStat = pValue curStat = pValue End Sub Public Property Level () As) curStat = value if CurStat & gt; MaxStat then curStat = maxStat End Set End Property End Structure This will not compile because I am getting an error that is not defined for '>' type T and T. Anyway, can I specify the barriers that T is of a numerical type? After the changes and suggestions made by the users to me this is what it is still not working. Do I have to change the values ​​of T for all those who are IC Comparable? Public structural data (TK ICempereble (TK)) as the DM position in the form of DM maxestate T, in the form of T sub form byeVal pValue) maxStat = pValue curStat = pValue End Sub Public Property Get the return as Statistic () T. Set up the set and set (ByVal Value as T) if the value & gt; Maxstat t...

upgrade - generating patches with WIX - base version 3 off version 1 or version 2? -

I am creating a 'minor upgrade' package using WIX. I'm confused when coming up on the upgrade package When I create a patch, do I always turn off version 1 or do I base version 2 version? In short, I'm having trouble understanding me & Lt; / UpgradeImage & gt; ProjNew should point to the new MSI, what should the consolidation point do? First MSI, or N-1 MSI? Does anyone help me understand what is going on and how can it be done correctly? Ideally someone is running Version 1 when version 3 comes out, an update package can be found, which makes me believe that I should always support version 1. But what if I do this, if anyone has version 2 installed? Are they toast? I feel that I accept the heart of my question, I have created three versions 1, 2 and 3. Suppose each version is based on 1. If a version installs version 1 and then version 2. So what will they be the version 3 patches? Remove Msiexec Patch 2 and then Apply Patch 3? Keep in mind P...

c++ - Lockless reader/writer -

I have some data that has been read and updated by multiple threads. Both should read and write atoms. I was thinking of doing it this way: // values ​​from ATOM to straight SValues ​​(double A; double b; double c; double D;}; class test {public : Test () {m_pValues ​​= & amp; m_values;} SValues ​​* LockAndGet () {// Unless we can not get the ownership of the Indicator (true) {SValues ​​* pValues ​​= (SValues *): InterlockedExchange (* * long *) M_P value, 0xffffffff); If (Pivelles! = (Seals *) 0xffffffff) {Return P value;}}} Zero Unlock (Cillows * PVLs) {// Return Parent Other thread It can lock: Interlock exchange (* long *) M_P Plus, (long) PVLs);} Private: S value * M_P values; SValues ​​m_values;}; Zero TestFunc () {test test; SValues Update * pValues ​​= test.LockAndGet (); // or check the values. Unlock (Yellow);} Indicator to steal the data every read and write Tax is secured, which should be used to make a thread, but two interlocked instructions for each access ...

draggable - jQuery how to find the class of the Droppable Div? -

मेरे पास दो divs हैं: एक ड्रैग करने योग्य और एक droppable & lt; div id = " खींचने योग्य "class =" block "runat =" server "& gt; & Lt; / div & gt; & Lt; div id = "dd" वर्ग = "ड्रॉप" शीर्षक = "ड्रॉपहोल्डर" & gt; & Lt; / div & gt; जब मैं ड्रैग करने योग्य डिवाइसेस को छोड़ता हूं, तो मैं उसे एक पैरेंट करने योग्य डिवा पर गिरा दिया जाता है, फिर ड्रैगिंग को रद्द करने के लिए उसके माता-पिता का वर्ग खोजना चाहता हूं। मैं ड्रैग करने योग्य के बंद समारोह में एक शर्त रखना चाहता हूं कि यदि यह एक "div" वर्ग के साथ एक div पर गिरा दिया तो ठीक है, अन्यथा ड्रैग ऑपरेशन को रद्द करें फ़ंक्शन जो यह करता है धन्यवाद। धन्यवाद सब मुझे मिल गया यह इस लिंक पर है यह डिव परत बनाता है, यदि ड्रॉपपॉलेबल पर नहीं छोड़ा गया है।

I want to delete record(s) from child table after calling save/update on parent using hibernate -

I want to delete the record (s) from the child table after saving / updating the guardian using the hybrancet. Using an interceptor or callback methods is probably not the best place to apply it If you are using Hibernate or JPA directly, I will provide both links: In the Hibernate Core Reference Guide In the Hibernate EM Reference Guide Li> Actually, this idea should be set to clear the child collection during pre-updates. Received.

java - How to see what Axis2 sends and receives? -

I have an Axis 2 web service client This service uses both SSL and WS-security so I have the rampart I think my customer sends the right questions, but I got an exception: org.apache.axis2.AxisFault: Must understand that header is http: / failed to /docs.oasis-open.org/ WSS / 2004/01 / oasis 200,401-WSS-wssecurity-secext-1.0.xsd: Security org.apache.axis2.engine.AxisEngine.checkMustUnderstand (AxisEngine.java:97 ) On org.apache.axis2.engine.AxisEngine .receive (AxisEngine.java:163) org.apache.axis2.description.OutInAxisOperationClient.handleResponse (OutInAxisOperation.java:364) organization on org.apache.axis2.description.OutInAxisOperationClient.send (OutInAxisOperation.java:417). On apache.axis2.description.OutInAxisOperationClient.executeImpl org.apache.axis2.client.OperationClient.execute (OutInAxisOperation.java:229) (OperationClient.java:165) on pl.firstdata.www.wdx.business.card.CardServiceStub. getBalance (CardServiceStub.java:1570) on pl.firstdata.www.wdx.business.ca...

Python how to search and correct html tags and attributes? -

मुझे & lt; img & gt; टैग के सभी समापन टैग को ठीक करना है नीचे पाठ & lt; img & gt; को & gt; के साथ बंद करने के बजाय, यह /> से बंद होना चाहिए। है इस पाठ में सभी & lt; img & gt; को खोजने के लिए और & gt; (अगर यह एक / & gt; पहले से ही कोई कार्रवाई आवश्यक नहीं है)। कोई अन्य प्रश्न, अगर & lt; img & gt; के लिए कोई चौड़ाई या ऊंचाई नहीं है निर्दिष्ट, इस समस्या को हल करने का सबसे अच्छा तरीका क्या है? सभी छवियों को डाउनलोड करें और चौड़ाई और ऊंचाई के संबंधित विशेषताओं को प्राप्त करें, फिर उन्हें वापस स्ट्रिंग में जोड़ें? सही & lt; img & gt; टैग वह एक है जो /> और के साथ बंद होता है और मान्य चौड़ाई होती है; । ऊंचाई & lt; a href = "http://www.cultofmac.com/daily-deals749-mac-mini-1199-3-0ghz-imac-new-mac-pros/ 52,674 "& gt; & lt; img align =" बाएं "hspace =" 5 "चौड़ाई =" 150 "src =" http://s3.dlnws.com/images/products/images/749000/749208-large "...

keyboard - what we can use insted of UIKeyboardBoundsUserInfoKey in iphone os 4.0 -

Hello, I am using this code in my code. CEGREF keyboard bounce = [(NSValue *) IIS 4.0 frame UIIf in Firefox 4.0 and UIK Fordbusiness user IIFEKE in iOS 4.0. But UIICboardbones user Infokike has been removed in IIS 4.0 I am using UIKeyboardFrameEndUserInfoKey and UIKeyboardFrameBeginUserInfoKey in IIS 4.0 giving different results Are there. Can anyone suggest me what to do for it. that I came up with an optional recommendation from an Apple developer.

c# 4.0 - how to open a file such as pdf,etc "from" a windows form app in C# -

I want to create a link-containing Windows form, when the user clicks on that link, a file with some format (For example, a PDF file or HTML file) which is added to the resources, opens. This will not be opened in the form, meaning that the file will be opened with the file with Adobe Reader or any other program. how can I do this? Thank you You have to remove this file from resources (I'm assuming that we are talking assembly -mbedded resource here) to % temp% and then just make sure that the extracted file has the proper extension, though.

c# - Writing custom controls -

Hi guys, I was thinking of writing a set of custom controls (the possibility of being in ASP.Net), wondering How should I follow the guidelines? - Are there any general requirements for UI controls that should be followed? - While writing documents / samples etc. what guidelines can be included on them? I know that this is a very common question but I'm interested in your opinion how should I start and maybe start from a set of tight guidelines / framework. Asp.net is better to start with the generic documentation of custom control Everything else will really be what you are turning to make :)

php - Warning: Cannot modify header information - headers already sent by -

इस सवाल का पहले से ही एक उत्तर है: 11 उत्तर मेरा कोड - & lt;? Php $ username = $ _POST ['उपयोगकर्ता नाम']; $ पासवर्ड = $ _POST ['पासवर्ड']; 'Database.php' की आवश्यकता होती है; $ Q = "उपयोगकर्ताओं से उपयोगकर्ता का चयन आईडी जहां उपयोगकर्ता_नाम = '$ उपयोगकर्ता नाम' और पासवर्ड = '$ पासवर्ड'"; $ परिणाम = $ mysqli- & gt; क्वेरी ($ q) या मर (mysqli_error ()); यदि (mysqli_num_rows ($ परिणाम) == 1) {setcookie ('अधिकृत', 1, 0); शीर्षलेख ("स्थान: index.php"); } अन्य {हेडर ("स्थान: login.php"); }? & Gt; चेतावनी: हेडर सूचना को संशोधित नहीं किया जा सकता है - हेडर पहले से ही भेजे गए हैं (C: \ xampp \ htdocs \ pics \ database.php: 1) से प्रारंभ में C: \ xampp \ कोई सफेद स्थान नहीं है और बीओएम भी ASCI है आउटपुट C: \ xampp \ htdocs \ pics \ database.php: 1 पर शुरू हो गया है आपको कुछ भी दिखना चाहिए जो प्रतिध्वनित हो। (1 साधन 1 लाइन)

css - 24 bit PNG :hover not adjusting background position IE6 on anchor -

I have been using deferred PNG fixes for IE 6: similarly: I have a list of tabs with HTML: & lt; Ul class = "tabs" & gt; & Lt; Li class = "comparison" & gt; & Lt; A href = "/" & gt; & Lt; Span & gt; Comparison & lt; / Span & gt; & Lt; / A & gt; & Lt; / Li & gt; & Lt; Li class = "scenario" & gt; & Lt; A href = "/" & gt; & Lt; Span & gt; Scenario & lt; / Span & gt; & Lt; / A & gt; & Lt; / Li & gt; & Lt; Li class = "analysis" & gt; & Lt; A href = "/" & gt; & Lt; Span & gt; Analysis & lt; / Span & gt; & Lt; / A & gt; & Lt; / Li & gt; & Lt; / Ul & gt; and CSS: #icis_dashboard .w_price_history .tabs {status: absolute; Bottom: 19px; Correct: 5px; } #IcI_Dashboard .w_price_history .tabs li {height: 98px; Margin: 0; Width: 41px; } #icis_dashboard...