Posts

Showing posts from February, 2013

html - Table Row, can you set the height to zero? -

Can you set table row height to 0? IE 8, Chrome, Firefox, Opera Why, you ask! OK, I have a line that is dynamically created and displayed when a user clicks on a basic line. The problem is that if there are no rows, then when clicked, it is still an empty 1 pixel Highline displays. This child gridview: & lt; Asp: TemplateField HeaderStyle-CssClass = "hidden-column" item style- CssClass = "hidden-column" footer-CSS class = "hidden-column" & gt; & Lt; ItemTemplate & gt; & Lt; TR & gt; & Lt; Td colspan = "8" & gt; & Lt; Div id = '& lt;% # Eval ("PublicationID")%> & gt; Style = "display: none; condition: relative;" & Gt; & Lt; Asp: GridView id = "GridView2_ABPubs" runat = "server" AutoGenerateColumns = "false" width = "100%" DataKeyNames = "PublicationID" font-name = "Wordana" font-size = "small...

Java serialization: readObject() vs. readResolve() -

The book effective Java and other sources provide a very good description on how and how to use it Does readObject () method work when serializable Java classes. On the other hand, the radolive () method is a small part of a mystery. Originally in all the documents I have mentioned either of the two or have only mentioned both personally. Questions that remain unanswered: What is the difference between the two methods? Which method should be implemented? In particular, how should resolve () be used in return? I hope there is some light on this matter. is used for readResolve the object from the stream Read Change. I have seen only one use for it; When an object is read, replace it with the Singleton Instance. This ensures that no one can make another example for serializing and declining singletones.

java - Problems running unit tests after upgrading from Netbeans 6.5 to Netbeans 6.7 -

In Netbeans 6.7 I am selecting files under "Test packages" with existing projects from Netbeen 6.5 and correct methods Clicking Working -> Debug, or Right Click -> Run Reported Error: java.lang.NoSuchMethodError: The main exception in thread "main" Java result : 1 I am using JUnit 4.x I have not changed any code since the upgrade and many more Iojanaon would have tried it are working and I am still experiencing problems. I am able to right-click -> test on the entire project. Is anyone aware of any changes that would require me to upgrade, or do anything broken in Netbeans 6.7? Thank you for your help, bn Found a solution to work If the following settings have not been checked in Netbeans 6.7, then act as a test such as 6.5: Right click -> "Project Properties" -> "Build" - "Compiling" -> "Save On Compile" Therefore, this is at least one task, unless the actual problem is understoo...

html - IE7 and posting a form in an iframe in MS CRM = new window -

I have an ASP.NET MVC page which has a very simple form: a textbox and a submit button. The form uses the standard mvc BeginForm () syntax: & lt;% (Html.BeginForm ()) {%> When the page is opened directly, everything works fine. However, we have another web site (non MVC) that loads this page within IFrame. Most browsers seem to fix this situation, except IE7 (and IE6). When submitting the form, the form is posted in IEfr from a new window in IFrame. Is there anything I can stop the new window from opening, iFrame this form? I like ASP.NET MVC, but I think this should be the JavaScript / Java solution. Edit: I should note that the original page IFrame is actually using Microsoft CRM 4.0 This was a CRM security setting enabled which was enabled. There is a security property for "restrict cross-frame scripting" in an IFRAM in CRM, it seems that by default it is turned on when it starts, any links and form posts are always Will open in a new wind...

c# - Redrawing during drag and drop -

I want to trigger the target control to automatically redraw (triggering or refreshing) during the dragent and drag leve event I am Code looks like this: Protected Override Zero Underground (DragEventErgues Drazag) {// - Set up an asset that affects the diagram of control, then create it again. Mimper = true; This.Refresh (); //-- does nothing??? } Safe Override Zero OnDragLeave (EventArgs E) {// - Set a property that affects the control diagram, then create it again. MyProperty = false; This.Refresh (); //-- does nothing??? } It does not really regulate the control, but the open paint is not called by refresh (in these incidents) is there any way to do this? I should not understand anything here Update: The response provided by Jason does not really work when using invalid () or invalid (rect) control does not actually update it called Is during a drag and drop action any other thoughts? Can you draw a red click of a control during drag and drop? Thanks! Update 2:...

NHibernate - Implement "NOT IN" query using ICriteria -

I have started to capture from NHibernate. I am trying to execute a query that selects all records from a table , But with the excluded filter list of IDs, e.g. With these ID values, get all the products except all of these. Generally, I would like to be in the ID directly in T-SQL, not to be included in this section. SELECT * From products where the product is not (1,59, 23, 45) How can I do this in NHibernate, either ICRTIARIA or HQ (but preferably icitrea)? Try . Add (Expression. ("Productivity", New Ent [] (1, 5, 9, 23, 45}))

java - How to Configuring ConnectionFactory JMS on JBossAS5? -

This is the first question in this forum .. :) Please tell me how to do JMS ConnectionFactory on JBossAS5 I have created a simple MDB application: @MessageDriven (name = "MessageMDBSample", activationConfig = {@ActivationConfigProperty (property = "destinationType", propertyValue = "javax .jms. Queue "), @ActivationConfigProperty (Property =" Destination ", propertyValue =" Queue / MyQueue "), @ActivationConfigProperty (Property =" acknowledgeMode ", propertyValue =" Automatically accept ")}) Public class DummyMDBeanBean applies MessageListener { Arwajnik void onMessage (Message message) {println ( "Hello"); } } How to configure Row and ConnectionFactory, on this example queue / MyQueue on JBossAS5? .. Thank you in advance .. :) You can configure factories and destinations (line or subject): Message Service / Connection-Factories-Service.XMM Message / Destination-Service. Xml a...

javascript - jQuery validation custom method didn't work -

I've added a method to the jQuery validator like this $ .validator.addMethod ('My aqual', function (value, element) {return value == element.value; // it does not work here}, 'Please enter more years!'); $ .metadata.setType ("attr", "valid"); Validate $ ("#EfirmForm") ({showErrors: function (error map, error list) {this.defaultShowErrors ();}, error placement: function (error, element) {error.appendTo (element.parent ("td AddClass ("success");}, / / ​​rule: {txt_end: {expected: true, ("TD")) /} success: function (label) {label.text ("OK! ") MyEqual:" #txt_begin "}}, submitHandler: function () {}}); The form looks like & Lt; Td width = "200" & gt; Input type = "text" name = "txt_begin" id = "txt_begin" size = "8" maxlength = "4" class = "expected year ui-widget-content ui-corner-all" /> & Amp; Nb...

objective c - Can you manually implement Cocoa bindings? -

I have a crack in implementing bindings for my own NSView subclass. It works, but there are problems in maintaining the cycle when the owner of the files bind to the Nib file. After reading a little bit in it, I came to know that even a few years ago, Apple had a single problem, but decided it with some magic underdained class (NSAuthon Bender). There is a long discussion of the cycle maintenance problem here. Window controller has been released , in the window-like place Delivered , before all binding is optional to close. It seems like an unnecessary hack for me. My question is: Is there a way to do custom bindings that can be used without the help of documents created by Apple as well? Am I going wrong about this? Update 2: I have found a solution that allows manual binding to work like a binding of Apple. Without really using this undocumented features, the non-documentary NSAuthon Bundler takes advantage of the class I will post the solution later today. UPDATE: I tr...

c# call object by unique property -

I have a class referrals when you create an object in the class, it checks that the input string is unique (and therefore Does not allow duplicate objects). But when I think the input string str1 is equal to the one already created, instead of creating a new object or just returning false, I want to change the property of the already created object. But I can not figure out how to do this, because the purpose of this method is there is no way to know the name of the object. But I know something unique about it! I feel that anyway should be enough to call it, and I need to. Any thoughts? Thanks! Here is the square: public category referral {public class referrals {public string URL; Public dictionary & lt; String, int & gt; Keyword = new dictionary & lt; String, int & gt; (); Private Stable Dictionary & lt; String, string & gt; Url = new dictionary & lt; String, string & gt; (); Private Intel Hemnium URL; Private Butt Unique URL; Private B...

c# - TextWriter.ReadToEnd vs. Unix wc Command -

Another question again unicode, terminal and now c # and wc . If I write this simple part of the code int i = 0; Foreach (Four C.ReadTinds (Courses) {if (c! = '\ N') i ++; } Console.light line ("{0}", i); and describe it only "" ("3 bytes in UTF-8"), wc returns 3 letters (maybe using wint_t, though I Not checked), but ReadToEnd () return 1 (one character). What is the behavior of ReadToEnd in this case? How do I know that ReadToEnd is doing behind the screen? I am starting xterm with utf-8.en.US, which is running Ubuntu Linux and Mono. Thank you. wc and most unix-like command c four The deal with the characters in the context of the data type is usually an unsigned 8 bit integer wc reads the bytes with a standard input with just any conversion and determines that there are 3 characters . .NET has its own four data type that is a 16 bit signed integer and represents a UTF-16 character The console class has rece...

Best HTML CSS color tool -

Does anyone have an HTML color chart or a good link to the device, where I want to color exactly and show it I have HTML color for this? Assume that you're using Windows, here's a clean app that I used to do often Use: If you are on OS X and you are coding any type of web without the use of Coda, then you really should try it. If you want a lame browser-based one, then I think that will work.

c# - Getting Contents of PropertyGrid? -

I'm new to C #, long time C ++ programmer, just thinking once use. What is the way to get the content of existing values ​​within the scope of the property? Ben Property Grid does not disclose its internal to the customer. However, .Net lets you perform "reflections" to examine the structure (and the executable parts) code, including properties of the class. An article that includes the basics of reflection, you can look more interior with reflection than the property grid.

General suggestions for debugging in R -

I get an error when I use an R function that I have written: Warning message: 1: glm.fit: Algorithm 2: glm.fit: Algorithm is not found What I did: Step through function Adding a print to find out the line that is causing an error suggests two functions that should not use glm.fit . Window () and save () . In my normal view, by the command and function line, when I can find the exception, print and stop Till i step up However, it is not clear to me that the use of those techniques comes from where this error code comes from. I'm also not sure whether the code working inside the code depends on glm.fit . How can I go about diagnosing this problem? I will say that debugging is an art, so there is no clear silver bullet in any language debugging There are good strategies for them, and they apply here (e.g., for example, the first thing is that reproduction of the problem ... if you can not do this, you get more information Need to do (like with logging...

C# ASP.NET MVC: Find out whether GET or POST was invoked on controller action -

How do I know if a GET or POST hit my ASP.NET MVC controller action? You can see the Request.HttpMethod for it. If (Request.HttpMethod == "POST") {// Controller was hit with POST} and {// etc. }

CakePHP Custom Global Function -

There are several database fields called "active" on which I am working, which is a boolean, though "1 Instead of displaying "0" or "0", I would say it "yes" or "no". I have the following functions: function activatedFindilyName ($ status) {if ($ position == 1) {return "yes"; } Other {return "no"; }} However, I am unsure why should I put this global function? Will this be the app_model.php file? In addition, how do I implement "formatting"? You should leave the data until you need to display it coming from the database This means that the scene is the right place to change it. I just want to go to a simple: $ model ['model'] ['bool'] echo? "Not yes"; But if you need the rules to make it more complicated, which you do not want to repeat every time, create custom helper. You define a global function in bootstrap.php , but I do not recommend it.

asp.net - Web user control usage -

Is there an easy way to determine how Web user controls (Wii) are used in the solution? I am attempting to observe what is happening in one of the big applications, where I have a large number of Wooks, both have been used in ASPX and nested in other works. is. Any suggestion is welcome :) class name in .cs file Right click on and click on "Search Usage". It should get all the designers files of other controls / pages that use special controls.

Squashing or editing some commits before doing git-svn dcommit? -

I am working in a Subversion repository with a subject Czech-Paul policy, which includes: each trunk is committed To be reviewed by any other developer and should be mentioned in this committed message. While working with git-svn I am creating several incremental GIT check-ins which are not reviewed. Their git commit messages reflect this. What is the best way to use GIT-SVN, but follow the rules of svn repository? Should I just squash all the commissions into a single svn committed? Can I re-write commitments for each amendment with the information under review? Can I "manually" take every personal change to the git master branch and modify the committed message of each before git-svn dcommit? You can leak your local branch against the subversion tracking branch, which will allow you to squash and modify Offers opportunities. The next time you dcommit, dcommit will replay your history once and what will be done for this Subversion. Beliefs: The local bran...

asp.net - How to get div content which changed by javascript? -

I have a device on the page, which will change the content from Javascript, I want to get its value from the C # code. But, it always gives blank or initial value, not converting value. If I'm hidden from Div, then it works well. I do not know why? Here is the code: & lt; Head runat = "server" & gt; & Lt; Title & gt; Untitled Page & lt; / Title & gt; & Lt; Script type = "text / javascript" & gt; Foo = function () {var d = document.getElementById ('divTest'); D.innerHTML = 'My Values'; Var e = document.getElementById ('hidden'); E.value = 'my value'; } & Lt; / Script & gt; & Lt; / Head & gt; & Lt; Body & gt; & Lt; Form id = "form1" runat = "server" & gt; & Lt; Div & gt; & Lt; Div id = "divTest" runat = "server" / & gt; & Lt; Input type = "hidden" runat = "server" id = "hidde...

reportbuilder - In Reporting Services 2008 on.rdl files, does the Report Builder and VisualStudio are equivalent? -

.rdl फ़ाइलों पर रिपोर्टिंग सेवा 2008 पर कार्य करना। VisualStudio2008 या " रिपोर्ट बिल्डर " के साथ काम करने के लिए मेरे पास विकल्प है? क्या वे एक ही उन्माद प्रदान करते हैं? धन्यवाद दोनों उपकरण XML का उत्पादन करते हैं, लेकिन रिपोर्ट बिल्डर SQL सर्वर रिपोर्टिंग सेवाओं का हिस्सा है, और यह मानते हुए कि आप SQL 2008 पर हैं, एक अलग स्कीमा का पालन करता है। विज़ुअल स्टूडियो रिपोर्ट संपादक SQL सर्वर 2005 रिपोर्ट उत्पन्न करता है वे परस्पर विनिमय नहीं कर सकते हैं और परिवर्तित नहीं किए जा सकते (कम से कम मुझे ऐसे उपकरण से अवगत नहीं हैं जो सफलतापूर्वक रूपांतरण को संभाला जा सकता है)। रिपोर्ट व्यूअर नियंत्रण (क्लाइंट रेंडरिंग के लिए) केवल SQL Server 2005 रिपोर्ट फ़ाइलों को प्रबंधित कर सकता है (जैसे कि Visual Studio 2008)। रिपोर्टिंग सेवा 2008 केवल SQL Server 2008 की रिपोर्ट फाइलों को संभालता है। इस मुद्दे पर चर्चा की गई है।

optimization - MySQL Performance: Single table or multiple tables -

I have 8 sets of data for about 30,000 rows for each set, the data is the same structure for different languages The end of the site will get more traffic. So my question is in relation to MySQL performance, if I should have a table with a column in which the data is set to differentiate (if possible An explanation on how to actually be useful) thanks in advance Shadi I would go with a table design to find the time, along with the correct index, should be exactly the same, even if the" detailed "table is. In addition to the display, it will make design and relationship easier with other tables (foreign key etc). / P>

image - photo upload with codeigniter -

I know there are so many tutorials online, but I could not work them :( Probably something bad in my system : / Controller: function do_upload () {$ config [/ b] 'Upload_path'] = './uploads/'; $ config ['allowed_types'] = 'GIF | JPG | PNG'; $ config ['max_size'] = '100'; $ config ['max_width'] = '1024'; $ Config ['Max_height'] = '768'; $ this-> Load-> Library ('upload', $ config); if (! $ This- & gt; upload- & gt; do_upload ()) { $ Error = array ('error' =>> $ this-> upload-> display_errors ()); $ this-> load-> ('Add_image', $ error);} and {$ data = array ('upload_data' = & gt; $ this-> upload- & gt; data ()); $ data ['id'] = $ See this-> Input-> Post ['id_work']; $ the- & gt; Load-> ('add_image', $ data);}} View my view is Calpath: / Localhost / RL / App / Backend / View / View:...

javascript - jQuery toggle() not working in FF3.0.12 -

I have a jquery code (toggel) that works fine in IE6 but FF3 does not have reason or solution It is possible. & lt; Button & gt; Toggle me & lt; / Button & gt; & Lt; P & gt; Hi & lt; / P & gt; & Lt; P & gt; Learning JQuery & lt; / P & gt; Jquery: $ (function () {$ ("button"). Click (function () {$ ("p"). Toggle ("slow")}}}}); CSS: P {background: #dad; thickness of font: bold; font- Size: 16px;} I will be tilted to use & lt; input type = "button" id = "button" value = "toggle me" /> / Code> and then change your code $ (function () {$ ("# button"). Click (function () {$ ("w Toggle ("slow");});}); You remember after the ; toggle ("slow") IE could have forgiven you, but other browsers might be less forgiving.

java - JSP Struts to Velocity Struts conversion -

I am asking one of my students - "Do anyone have an idea how JSP Straits For beginners, you do not have to do this once / strong>. Important - You only need to convert pages because you have time to test or you will get some results. Personally, I usually do not have this You just need to map VelocityView servlet (in web.xml): Define - & gt; & lt; servlet & gt; & lt; servlet-name & gt; velocity & lt; / servlet-name & gt; & lt; servlet category & gt; Org.apache.velocity.tools. View.servlet.VelocityViewServlet & lt; / servlet-class & gt; & lt; init-param & gt; & lt; param-name & gt; org.apache.velocity.toolbox & lt; / param-name & gt; & Lt; param-pricing & gt; /WEB-INF/toolbox.xml< / Super-valued & gt; & Lt; / Init-param & gt; & Lt; Init-param & gt; & Lt; Ultimate Name & gt; Org.apache.velocity.properties & lt; / Lastname & gt; & Lt; Ultimate...

regex to match EOF -

I have some data that looks like this John, Dave, Chris Rick , Sam I'm using this regex to match the names / (\ w. +?) (\ R \ n | \ n |)) / which works for the most part but after the last word, the file abruptly ends, which means the last value does not end in \ r \ n , \ n or , This EOF ends with EOF matches in Regex No way Mitigation I do, so I can put it right in the other group? Answer this question \ z I took a while to understand, but Now it works. Note that, \ A matches the beginning of the entire string (contrary to the match with the ^ and $ beginning of one line).

.net - Running ASP.NET website on Microsoft office Live? -

Does MS Office allow live users to upload and use asp.net websites? We have a specific need where we need to upload and use our modules. I understand the security where MS can allow the user to port their ASPX and DLS into the server I would like any other option to run custom ASPX on MS Office Live ** Someone added an office-live tag to the post I do not think you can do any custom server side programming on Microsoft Office Live. If you need a specific custom requirement, have you tried other hosting services?

.net - Deploy ASP.NET MVC on Linux: Best Practices, Tools & Surprises -

I think about the best practices of developing ASP.NET mvc apps with an option to deploy on Linux I am here. If you are building these types of MVC applications, then Are you targeting the Linux / Mono platform? How much are you developing on Windows and on how much Linux? Are you using an ORM of the database summary? which one? Are you running a build engine on Linux? What about testing? What other devices are you using? How much extra work has been done to target Linux in addition to Windows? Is the company working for a target on the ugly or mono on Linux, as is on our Linux main deployment environment, there is no additional "work" in this way - from the hardware, the entire heap is operating system (Customized and trim) to provide applications. Open source uses large savings in us and our customers (and yes, we rely on OS projects that we trust). The important thing is that you have your real goals (sorry, do not trust mono windows). Of course, devel...

Looking for Applescript documentation -

I have developed iPhone for the last year without the need to know the first thing about AppleScript, but now I think I want to automate some tasks but I am not getting any good documents on language. Even on the Apple developer site I do not think what I want. I do not need a tutorial - just a document that tells me the syntax and the API. I am sure that I am just making something clear - can anyone help me? The upper apertap APIs are created by the developer of each application you are hooking up in. Open the application file (.app) with the script editor. This will produce an uppercase dictionary of all the commands that you can issue the application. If you have something really simple that you want to do, like copy a file, try open it, besides, there is a nifty low visual programming environment that I used to generate test data. Used or when I'm tired of XCode, then to roam around. For example, I created a small program that takes 100 snapshots to entertain...

PHP Refactoring Tools -

इस सवाल का पहले से ही एक उत्तर है: 15 उत्तर मुझे पता है यह कितना मुश्किल है यह PHP के लिए एक सभ्य रिफ़ैक्टरिंग उपकरण खोजना है। आप लोग क्या उपयोग करते हैं (और मैं इसे कैसे प्राप्त कर सकता हूं)? धन्यवाद! संपादित करें: मैं लिनक्स पर हूं लेकिन विंडोज़ सुझाव Google की मदद करेंगे वहां वास्तव में PHP के लिए रिफैक्टरिंग उपकरण की कमी है। मैं खुद को एक बार नियमित अभिव्यक्ति का इस्तेमाल केवल रिएक्टक्टर्स करने के लिए मिला। यह स्पष्ट करने का उत्तर स्पष्ट करता है कि पीएचएपी रिफाक्ट करने के लिए कुछ उपकरण क्यों हैं।

objective c - Defining and executing simple AppleScript commands in a Cocoa app -

I am trying to add some scripting functionality to a coco app in writing. I have created a sdef (scripting definition file) for my project. So far, I have been able to reach the children (Elements) with the Apple script, but I want to Can not understand to call This is my SDF file. & lt; Suite name = "mySuite" code = "msui" description = "my application suite" & gt; & Lt; Class name = "application" code = "capp" description = "top level scripting object." & Gt; & Lt; Cocoa class = "NSApplication" /> & Lt ;! - I can fix these elements - & gt; & Lt; Element Description = "Check Children." Type = "child" access = "r" & gt; & Lt; Cocoa key = "mychildren" /> & Lt; / Element & gt; & Lt ;! - This method may not appear to be called: (-> "testmethod"> Te & gt; & lt; / class & gt; & lt...

ASP.NET MVC Routing Questions -

I have just started using ASP.NET MVC and I have two routing questions. How do I install the following paths in ASP.NET MVC? domain.com/about-us/ domain.com/contact-us/ Domain.com/staff-bios/ To keep the URL short, I use a controller in the actual URL Do not want to specify. If the URL liked it: domain.com/company/about-us/ domain.com/company/contact-us/ domain.com/company/staff-bios/ It would be more sensible for me, because I can add a company controller and contact us about us, set up action ringtones for staff-bios and return the right ideas. What am I missing? What is the name of the default "default" in the default routing rule in ASX? Is it used for something? Thank you! I will answer my second question first - "default" is just a name for the path. It can be used if you ever need to reference a path by name, such as when you want to URL from a path Now, for those URLs you want to set up , You can bypass the controller parameter u...

What's the best way to show a random image in ASP.NET? -

What I'm talking about is like this website: There is a static wallpaper in it and There is a set of images that vary from page to page, I want to apply the same way to display random images from a set of images using ASP.NET. Edit : I remain the same image in one session and change from session to second. The site you are using is not a random set of images by using it. They are coded in the HTML side of the aspx page You can put ASP image controls on your page. Then set the image in the page_load function in a random picture of your set. Secure Zero Page_load (Object Sender, EventAgds E) {this.Image1.ImageUrl = "~ / images / random3 .jpg"; } You have different options where to store image set data. You can use a database and store the URL in the table. This will allow the use of the built-in function found in SQL. Or you can save an XML file to the server, load it, then select one of your XML nodes to randomize it. Use net class. Personally, I wo...

web applications - Web based script to determine system information -

I know that web-based scripts are used by Vista's lighttext (display resolution, Java version, OS, architecture, render engine, etc.) Etc.) But is there anything that can give me System Memory residents on Vista PC? Browser gives you the javascript and properties, then no. If you manage to run an ActiveX, you might be able to, but I think all security pop ups will jump.

asp.net - Converting JPEG colorspace (Adobe RGB to sRGB) on Windows (.Net) -

I need to create thumbnails and mid-sized images with big photos. I display these small pictures in an online gallery Many photographers are submitting JPEG pictures using Adobe RGB. I would like to use sRGB for all thumbnails and medium sized images I am using dotnet (asp.net) and need to convert from Adobe RGB to SRGB without losing any quality is. To change a JPG file from one ICC profile (in place of colors) to another, you can use CreateColorTransform to create a transformation between color spaces. You will need to provide an ICC profile for the source (ADB RGB) and destination (SRGB) color spaces. After you have transformed, use bitmapbits to translate the pixels, it can be easy to work with the image as a diabetes. It may be a bit complicated to write in .asp, so it can be easy to use such a graphics library.

unit testing - TDD - One test at a time or make a batch? -

for unit tests; Write a test Write code to pass it. Refactor. or Write all known tests. Make a pass refactor. I ask this because TDD has said that you stop writing the code after all the tests but this point is unclear. Edit One thing I think is that TDD is focused on more for this "rule" in relation to the stories / functions? Do anyone agree? A few months later After watching a skycast, I have fixed one (I will try and find the link) on the topic as follows. Write the test / behavior / functionality name at the top of the test class. Cut and paste the test name Complete the exam. Repeat until the list is empty. Using the example # C, however, should be normal. // login page should not allow empty password // Cut / paste will be removed on it // login page should not allow empty user name ... [TestFixture ] Class loginpages tests {{test} public login_page_should_not_allow_blank_password () {// test code ...}} Write a test fai...

python - How to efficiently calculate a running standard deviation? -

I have an array of lists of numbers, such as: [0] ( 0.01, 0.02, 0.02, 0.03, 0.02). [N] (0.01, 0.00, 0.01) , 0.05, 0.03) What I would like to do, efficiently calculates the average and standard deviation in each index of each list in all array elements. To mean, I am looping through the array and adding value to a given index of a list. Finally, I divide each value into my "average list" by n . To make a standard deviation, I loop again, now I have the mean calculation. I would like to avoid going through the array, once for the meaning and then once going to SD (after one meaning). Is there any effective way to calculate both values, going through the array only once? Any code (such as a Perl or Python) or pseudocode in a written language is fine. The answer is the use of Welford's algorithm, which is very clear after "innate methods" Definition: Wikipedia: This is more statistically stable than two-pass or online simple amount. In ...

How can I go through each link on a page and append something with jQuery? -

I have a bunch of links on a page that is in an action, I run a function and such an additional variable Adds: Function Store ID (UID) {$ ('a.special'). Each (function () {$ (this) .attr ('href', $ (this) .attr ('href') + 'and variable =' + uid + '');}); } I understand, every link given above will go through, and hold the current href, then add the variable bits to the end I got the variable attached, but It is not working as expected ... like '& amp; Variable = 'adding part twice, for the first time, such as' & amp; Variable = undefined 'and then that' & amp; Variable = 23 ' Is there a better way to do this? Or in a way I just say through each of these links and just update that value which is set to variable instead of typing whole href? So to be just repeated, my original link is just like this: And its purpose is to look like the following after execution of the function: But it lo...

java.lang.AbstractMethodError running a webapp in Eclipse with jetty. -

I am working on a project in Eclipse that when I use the JETI plugin, I java.lang.AbstractMethodError: au.com.mycopmpany.impl.MyClassDAOIpl.findById (Ljava / lang / Integer;) Ljava / lang / object; This file is okay in Eclipse and is implementing the code method that talks about the error. This error indicates to me that "on the runtime" JVM gets a class that has not implemented this method. But I can assure you that MyClassDAOImpl does most definitely implement the findById method with the correct signature. This eclipse looks like a bug in the compiler; I can fix this problem by running the maven package from the command prompt and then it works fine to run the app within the Elpsy. It seems that there is some kind of bug in connection with the eclipse compiler. For this class, I had read something about online bug with the Eclase compiler (which uses this class generics) with generic , But this base class / interface has been re-implemented over and o...

inversion of control - Property Inject an Array with Spring.Net -

I am using the Spring.Net IoC container and type it in IList and Even the IList & lt; T & gt; But I'm a little stumped on how to inject a type of property string [] . A defined in XSD & lt; Array & gt; Element and & lt; List & gt; & Lt; Price & gt; > As you can inject a string array as a comma delimited string (Not sure what syntax is necessary to avoid the actual commas in the strokes). In other words, your configuration will look something like this: & lt; Object id = "myobacter" type = "blah. Some class, blah" & gt; & Lt; Property Name = "StringAreProperty" value = "ABC, DF, Gone" /> & Lt; / Object & gt; Manually create a string [] also happens with the following syntax, if you need more complex (for example, if you want to personalize Values ​​are seeing some other reference instead of hard coding): & lt; Object id = "teststrakter...

c# - Find an item in List by LINQ? -

Here I have a simple example to find an item in a list of strings. Generally I use it for a loop or anonymous rep: int GetItemIndex (string search) {int found = -1; If (_list! = Null) {foreach (string item in _list) // _list list & lt; String & gt; (Found ++; if (string.Equals (search, item)) {brake;}} / * used unknown string string foundItem = _list.Find (rep (string item) (found ++; return string .Elloles ( Search, item);}) returns;} LINQ is new to me. I'm curious if I can use LINQ to find items in the list? There are a few ways (note it not a complete list) . 1) A single result I will return, but if one finds one or more (which is what you want or may be), then an exception throws: string search = "framework" ; & Lt; string & gt; MyList = New list of the list & lt; string & gt; (); string result = myList.Single (S => S == search); 2) will return all the items that match your criteria, so that you can get an IEnumerab...

sql server - Clustered Indexing -

Do the clustered index need to have an extra table to sort / keep line data? When it is classified, delete each insertion or statement, or when? Clustered index store data and how it is different from non-clustered ones. data index type is only on construction / reconstruction Insert page segmentation and indices Deletes vacancies Data sorted by definition Indicates for non-clustered = points clustered index and its own sort is Edit:

c# - How do I tell the designer that my custom winforms control has a fixed height? -

I have a custom control and override SetBoundsCore such that the height of control is fixed . I want the designer to show the same type of box as NumericUpDown - there is only one on each end that it is clear that there is a certain height of control how can I tell the designer Am I a certain height of control? attribute to you in a your user control : [designer (typef (UCDDiger))] Public partial class UserControl1: UserControl {public UserControl1 () {InitializeComponent (); }} UCDD is defined as following the class: class UCDesigner: System.Windows.Forms .Design.ControlDesigner {public override system.windows.form. Design Rule Selection Rule of Selection ({Return (Base Selection Rules & amp; (Selection Rules.bot Sequencing · Selection Rules.changeable))}}} Note: Design namespace.

logging - How do I find if it is the last line while reading a file from within a loop in perl -

I am working on a log parsing script via Perl. I am reading the log file as follows: open (longfell, "$ logfile") || $ LogFile to open the "Error" error log file \ n "; While (& lt; LOGFILE & gt;) {# Processing statement goes here} Now in the processing statement I want to know whether the file reading indicator is on the last line or not . If so, before proceeding, there is a condition to be processed. So the question is from within the loop which is being used to read the file line from the line, how will I know that it is on the last line? my $ last; While (& lt; MYFILE & gt;) {$ last = $ _ if eof; } Although you are doing something with every other line, it is very incompetent.

jquery - Editable div not working on firefox -

Hi I am using a dynamic device that is editable for input text. It's OK to work on IE but not on Firefox. I need to show html content in div. Can we also create Div editable for Firefox? Firefox needs to set the design mode on iframe it does not explicitly mention it but The following quotation type already means For example, in Javascript, if you have an iframe with an 'edited' ID, you can get its content document And set the "On" design mode like this: You design Sector ways how to handle, it'll get a lot browser differences, so be prepared and take it as a challenge or in the process you may lose some hair.

c# - ActionLink within RenderAction -

I am using RenderAction to include the output of several "components" in my view but every time I use the RenderAction Using the call to tell the ActionLink to produce the wrong routes within the nested action. (Even for the rootlink.) If the action is said directly, the correct paths are prepared. So I call my parent several times in the index action of seeing: & lt;% HTML.RenderAction & lt; StateAdminController & gt; (C => C. Index (Statetype.Avent)); & Gt%; & Lt;% HTML.RenderAction & lt; StateAdminController & gt; (C => C. Indices (State Type. Booking)); & Gt%; & Lt;% html renderer action & lieutenant; State Admin Controller & gt; (C => C. Indices (State Type Communication)); & Gt%; & Lt;% HTML.RenderAction & lt; StateAdminController & gt; (C => Ind. (Statetype payment);); & Gt%; And in the nested index-view, I try to ActionLink in the edit mode of StateAdminController: & lt;% = ...

memcached - CakePHP memcache items expire too early -

I've found a very strange behavior with the KeckPop Engine = memcache. The problem is that cached items always expire earlier than before. Fix the settings engine = file problem but I do not need it. Any help would be appreciated! Using the PSIPIPP 1.2.3.8166 static. Check if you have the correct time zone fixed in php.ini. The timezone setting affects the timestamp generation of KPHPP, and when a PHP generated time (with possible incorrect offset) is compared to the current time in mysql.

c# - SQL delete operations not rolled back -

When I withdraw a transaction, only the update and reloading operation is canceled, but deleted The operation rollback is not done, I want to know the reason I have a SQL transaction This is not correct, check your code and make sure that you do everything correctly Or you can paste important parts here Are there.

network programming - IPV6 usage study -

I have a beautiful overview on the TCP / IPv4 stack. I am planning to join the next version of IP which is IPv6, which is my belief for the future. I really need some valuable inputs from someone, like some sites or links, or maybe I can do some practical things to learn some kind of simulators like some UDP 6 stack or TCP 6 stack. Any valuable information? See the following IPv6 site - Its link specification, IPv6 enabled application and IPv6 stack implementation:

database design - Can I accomplish this with multiple concrete supertables? -

I have two tables, "content" and "profiles" that can be commented and evaluated. I have taken note of the use of topical associations and decided against it. If I want to use topical associations, this feature will be both in the table "Ratings" and "Comments". Is it possible with a concrete supertabel implementation? And if so, how will I do this? When you meet the column, you get it. It should be: find (self.id ,: joins => "commentary semi on (profiles.commentable_id = cm.id) LEFT OUTER Comments C (cm.id = C.commentable_id ) ")

objective c - Add buttons under a tableview -

I am trying to make the program a view, the result is that I want a scroll view inside the table view And I want to add some buttons below this table I do not know how I tried to do this but it does not work: - (zero) LoadVis [[Super LoadView]; Tableview = [[UITTviewValoc] InitVithframe: [[see self limit]) Style: UITWVstyle group []; [TableView Deliate: Self]; [Table view set data source: self]; Scrollview = [[UIScrollViewAloc] InitVithframe: [[see itself] limitations]]; // [scrollView setBackgroundColor: [UIColor blackColor]]; [Scrollview setbunsuns: yes]; DeconnectButton = [[UIButton ButtonBy Tip: UIButtonTypeRoundedRect] to maintain]; [DeconnectButton setTitle: @ "Disconnect" forState: UIControlStateNormal]; [DeconnectButton setTitleColor: [UIColor orangeColor] forState: UIControlStateNormal]; // [deconnectButton addTarget: Self-action: Action for control events: UIControlEventTouchUpInside]; DeconnectButton.frame = tableView.frame; NSLog (@ "TableViewView:% ...

How to compile open source framework in Visual Studio C++, that has "makefile" only and no solution file? -

How to compile open source framework in Visual Studio C ++, with "makefile" only and no other solution file ? Unfortunately there is no silver bullet for this type of change. Make and Visual Studio C ++ style builds are very different animals, although they can perform very similar functions, they can do wildly different structures, which provides an easy guide which is very difficult. IMHO, the best way to get this started is to start a new C ++ project. Add all existing files and take a step-by-step approach by trying to convert every action to an equivalent C ++ action.

git - How can I move a set of commits from master to a separate branch? -

I have a series that relates to a special feature (20 +) which I try to remove from my master branch. And I am in a different branch. I have a tag ( rel_2009_07_18 ) committed to represent the latest stable release, so when on guru, git log rel_2009_07_18 .. HEAD I set the commitment that I want to go to a different branch, there should be some command in this set, but I can cherish them because they are few. I have seen the git filter-branch, but in the command option it is mentioned that leaving the commit but removing commit - definitely do not want to do this. I also saw the GIT Rebase, but he also mentioned the upstream broch to reuse the committee. Is there any good option to take these cones to a different branch? I'm not sure that this is a viable option and results in delivery, although small (3 developers), environment but I can execute the following small shift ... Change the name of the master locally to master_plus_feature (or similar ...) Checkout f...

expression blend - How to track multiple user feedback in SketchFlow? -

Here's the best practice ... I would like to allow a number of users to respond to a sketchflow project They will also like this ability so that they can see everyone's annotations. I realize that they can do this very well now, but is there a way to figure out what a response is to a user? It seems to me that there are two potential solutions, both of which seem a bit: single. Feedback file - Ask users for their own use Color (i.e. Tom always uses RED, Sally always uses blue, etc.) or, to allow users to include their own Einstein in their Feedback statements Say it. - Publish the individual .feedback files - - SketchFlow project to individual folders (copy), each folder for each folder. Although this will surely separate user feedback, they will not be able to see the response of other users. It is amazing how fast technology develops and improves Comes! With the advent of Sketchflow / Blend version 4, released now (June 7, 2010), there is a much more attr...

search - Put into an array the deepest path of a BST (recursive) -

I am trying to insert the most deep path to BST using a recursive algorithm for an array, and I have many difficulties Is facing ... because the only thing I get is the size of the longest path (height equal to), and I can not think about the height of BST in the array ... Can someone help me ??? Thank you in advance ... Sorry ... I did not fully expose the problem ... This is the only thing that I have signed this algorithm: / P> // 3 nodes of each node are: value, left and right private int [] the deepest path (node ​​route) {...} ( I can use the aux methods ....) as a tool for rebuilding Try to use the nodes the deepest path you Programming which may be an issue as it is that you have no way of storing the actual nodes you cross the tree. What you need "to remember" is a way that the leaf you have taken on the path is considered to be the deepest. If your BST is displayed in the nodes, then you may want to consider that in each child, store a ref...

How to make the text of UITextField to appear with First letter Capital in iPhone -

I have a text box and I'm only interested in capitalizing the first letter, how to do this in iPhone UIETField. / P> Try this: tf = [[UITextField alloc] init ]; Tf.autocapitalizationType = UITextAutocapitalizationTypeSentences; Or set this property to property inspector in the interface builder

objective c - Trouble with NSDecimalNumber's decimalNumberByDividingBy:withBehavior: -

I always run into trouble with NSDecimalNumber! Today, I get this error: "Expected Exception 'NSInvalidArgumentException', App ended due to reason: '*** - [NSCFNumber decimalNumberByDividingBy: withBehavior:]: Example: 0xd1fb10 '" - (zero) setUpInstance {Fixed NSDecimalNumberHandler sent for non-recognized selector * RoundingBehavior = nil; If (roundingBehavior == zero) {roundingBehavior = [[NSDecimalNumberHandler alloc] initWithRoundingMode: NSRoundDown Scale: 2 raiseOnExactness: NO raiseOnOverflow: NO raiseOnUnderflow: NO raiseOnDivideByZero: NO]; } NSDecimalNumber * zodiac = viewController.aDecimalNumber; NSDecimalNumber * actualValue = viewController.anotherDecimalNumber; Integral power = [Number of decimal point-by-writing: Verbatim with actual: spherical beaver]; ...} Define method as docs: - (NSDecimalNumber *) decimalNumberByDividingBy: (NSDecimalNumber *) decimalNumber withBehavior: (ID I should not interpret " (id &...

apache - ProxyPass, ProxyReverse vs AJP -

There is currently a Tommack + Apache HTTP server setting to serve my Java servlet: ProxyPass / myservice http: // localhost: 8080 / myservice ProxyPassRerverse / myservice http: // localhost: 8080 / myservice except for all of these myservice OK to know the client's IP address, which always goes out of 127.0.0.1 due to the proxy. What is the solution to finding a real IP address? Is AJP an option? doGet (HttpServletRequest request, HttpServletResponse response) {request.getRemoteAddr ()} Like it: In Apache config: & lt; Location / Foo & gt; ProxyPass ajp: // localhost: 8009 / foo proxy pathway rss: // localhost: 800 9 / afu & lt; / Location & gt; and then in your server.xml: & lt; Connector port = "8009" enableLookups = "false" safe = "true" URIEncoding = "UTF-8" tomac attestation = "first" protocol = "AJP / 1.3" /> It passes everything, passes AJP protocol informa...

svn - Why is Subversion giving me this error message? -

उपर्वेशन में डेटा लिखते समय मुझे निम्नलिखित त्रुटि मिलती है: svn: Can ' डायरेक्टरी '/ usr / share / repos / db / transaction /' बनाने के लिए मैंने दोनों कमांड लाइन और एक्लिप्स-प्लगइन विकल्प की कोशिश की है। दोनों उपरोक्त परिणाम देते हैं। रिपॉजिटरी के लिए अनुमतियों को ठीक करें (सर्वर साइड पर)। निर्देशिका में उपयोगकर्ता और / या समूह के लिए rwx सेट होना चाहिए जिसके तहत उपवर्तन-सर्वर चल रहा है।

events - Hooking in to the Application.DoEvents method in VB.NET -

I am not very familiar with VB.NET so I do not know that this is possible ... Some code that I'm working on is establishing a very large class property. Each asset is set to indicate an event in the setter that class data has changed. An event handler then serializes the example of a class into a database. Obviously I do not want to be delayed before saving me if this happens after each property is set, or something else I already have a cash implementation Keep a large list of examples, so an option will only process the cache and will save all saved examples from the database in the cache. So I tried to see if I could get a class from the application (and override Dover), but it is unique, so there is no luck. Any thoughts? It is not completely clear that you talk about window message pumps or .NET events Are there. Either way, there are some common approaches: Change the publisher so that it will raise only one event when everything is done; For example, w...

mysql - How to interpret iostat? -

I track many parameters on my server and I can not really put in perspective IOstat is a MySQL server, Is this a good result, or should I worry? root: / var / lib / mysql # iostat -xc Linux 2.6.28-11-server () 07 / 25/2009 _x86_64_ (8 CPU) Average - CPU:% User% Good % System% iowait %% theft idle 3,66 0,19 0,45 1,04 0,00 94,69 Devices: rrqm / s wrqm / sr / sw / s rsec / s wsec / s avgrq -sz avgqu-sz Await svctm% util sda 2.55 871.36 1.46 27.67 392.40 7200.45 260.64 1.02 34.85 2.48 7.22 sda1 0.18 0.61 0.03 0.01 3.60 4.98 215.91 0.01 185.95 19.25 0.08 sda2 0.01 0.00 0.00 1.03 0.02 919.32 0.00 21.36 6.94 0.00 sda3 2.36 870.75 1.43 27.66 387,76 7195, 46 260,68 1,01 34,65 2,48 7,21 SDB 2,37 871,36 1,63 27,67 392,69 7200,45 259,12 0,65 22,07 2,51 7,35 Sdb1 0,17 0,61 0,04 0,01 3,59 4,98 187,33 0,01 110.667 12,54,06 sdb2 0,00 0,00 0,00 0,00 1,03 0,02 256,48 0,00 2,36 1,50,00 sdb3 2,19 870,75 1,60 27,66 388,06 7195,46 259,23,64 21,93 2,51 7 , 34 md0 0,00 0,00 0,38 0 , 62 3,06 4,96 8,00 0,0...

ruby on rails - Testing RESTful API with Cucumber in a front end less application -

Hello, I have no front end in my app. I'm just ready to release a Resipple API That can be used by different clients. How should any indicators proceed with me to test with cucumber? Every action in the controller generates XML feed, any signal or suggestion? I think webrat is more than you need. For XML feed testing, you do not need a browser simulator like WebRet, which will load the page and analyze all the markups (links, forms, etc.) when you do not actually have any HTML pages. Instead you need something like curl () or curb (on rubyforge, on curb of ruby ​​binding), or patron (on rubyforge). These libraries can create a request header according to your liking (like setting content -Tip, select post delight head etc.) and get feedback and possibly follow the 302 redirection. The answer came back, then the XML object can be changed, and XML is available for the parser Ruby can be used to test the output. In addition, you can write XML Mapping Classes (on Ruby Fo...

javascript - JQuery effect working in firefox; not chrome / ie -

This problem makes me wonder because it does not even work in Chrome chrome !! Anyway, I have 3 selection boxes, A, B, C. On page loads, B and C are hidden (this is okay in all browsers). Currently, I have an event handler attached to specific values ​​in box A, so if a value is clicked, then B. indicates that there is population along with the results for C. The only thing for C: If a value is clicked in B, then C will show itself. However, this "show" effect is only in Firefox - Chrome and IE are confusing. Any suggestions? Hint? Here are some code: $ (document) .ready (function () {$ ("# B"). Hide (); $ ("# c"). Hide (); $ ('Choose #A option'). Each (function () {$ (this). Click (function () {$ .getJSON (luggage, callback (data));});});}); Function callback (data) {// alert ("hi"); // It is not working for Chrome / IE! Therefore, callback is not called $ ("#b"). Show (); // It is not working for Chrome / IE! }; Edi...

osx - Error due to encryption in the command "cp -R /Users/me/cs_project /Users/cs/" -

Problem: To create a copy of the directory tree for encrypted hard drive from the master user "Me" > "CS" - User: su cs bash -3.2 $ cp-r / user / me / cs_project / user / cs / cp: / user / cs / cs_project: deprecated cp Unable to copy extended features in: / Users / me / cs_project / h_mark: / users / cs /: Permission denied cp: / users / cs /: No such file or deletion Desiqi is not ... Question: How can I copy the project of master user "me" to my other user "cs"? New information about encryption I have found suggestions working with other users, but not with the original users. The problem is that the 'CS' user has Mac's secure vault encryption. What is the "me" user's administrator? I / CS / Notes: sudo command will ask for a password for me, and then hdiutil can pop up a GUI dialog that asks for FileVault master password; You can either supply it (if you know it), or enter the encrypt...

asp.net - CRUD Screen using N-Tier Architecture -

The net page with lots of control and assumptions allow me to save the application to the database. I have a master table called customer and 5 different child in the tables is the foreign key of customer_i. Once the user saves the hit I must include a record in the customer table and then insert the records in the released hair tables with the currently created customer_id. Can you tell a good example of the above scenario which can be very helpful I have created a model for the customer and all the child tables but I really do not know here How to move forward. I am VBnet and ASP 2.0 and Oracle 8G. We can not use ASP.net 3.5 or MVC 1.0. Please Thanks a ton. There are many examples on the ASP.NET website.

database - How to improve a ERD -

यह प्रश्न मेरी योजना पर आधारित है। मेरी संस्था-संबंध आरेख है मैं निम्नलिखित को जानना चाहूंगा। क्या मेरा अनुक्रम आरेख निम्नलिखित संबंध चित्र से मेल खाता है? दूसरे आरेख को भौतिक ईआरडी मॉडल - एक-से-एक रिश्ते के साथ दो तालिकाओं को प्राप्त करने के लिए कोई लाभ नहीं है मैं QUESTION / प्रश्न-व्यवस्था के बारे में और प्रश्न / मॉडरेटर-चेक टेबल्स के बारे में बोल रहा हूं। प्रश्न-विषयक खराब नाम हैं- अगर आपके नोट द्वारा रिकॉर्ड "टैग" दर्शाता है, तो तालिका का नाम दें तदनुसार। यह तालिका एक कोड तालिका होगी (कोड, विवरण कॉलम होने पर) क्योंकि आप अच्छी तरह से प्रदर्शन करने के लिए क्वेरी के अनुरूप मान रखना चाहते हैं। उस ने कहा, आपको कई [सवाल टैग] के लिए एक प्रश्न [प्रश्न से संबंधित] के लिए प्रश्न और प्रश्न- TAG तालिका के बीच एक xref / लुकअप / परिणाम तालिका की आवश्यकता है। प्रश्न- TAG-XREF प्रश्न-आईडी (पीके) प्रश्न-टैग-कोड (पीके)

How to add objects to wcf services -

Wcf सेवाओं के लिए ऑब्जेक्ट्स को कैसे जोड़ा जाए? एक सेवा पर ऑपरेशन का एक सेट है WCF सेवा: [सेवा का संप्रेषण] इंटरफ़ेस माइस्विवेर {[ऑपरेशनकैक्ट्रैक्ट] शून्य डोसॉमिंग (कुछ क्लास इनपुट); पाठक "itemprop =" text "> } आप डाटा कंट्रेंट के रूप में उन सर्विस विधियों (और संभवतः आउटपुट पैरामीटर के रूप में बाहर) के आसपास के डेटा को पारित कर सकते हैं: [DataContract] Class SomeClass {[डेटामेम्बर] स्ट्रिंग का नाम {get; set; } [डेटामेम्बर] स्ट्रिंग फर्स्टनेम {get; सेट; }} ये कक्षाएं किस तरह दिखती हैं, पूरी तरह आप पर निर्भर हैं। क्या आप जानना चाहते हैं? आपका प्रश्न बहुत स्पष्ट नहीं है ...... यदि आप ऐसा नहीं चाहते हैं - तो कृपया अपना प्रश्न दोबारा बताएं और इसे स्पष्ट करें - आप ऑब्जेक्ट कहाँ और कैसे जोड़ना चाहते हैं? क्या ऑब्जेक्ट जोड़ें? मार्क

php - Connect multiple tables in different databases? MySql -

Hey, I have a good way of using at least 2 database php in mysql and collecting information within each Looking to connect to the tables they database from The tables will be related information such as I have site names in a database ('SiteInfo') in a table called 'database'. I also have a site description in another database ('sitedescriptions') in a table named 'Description'. I can not get these two databases to talk to each other. Does anyone know how I can go about doing the above work? I am very new to php / mysql. In addition, there are three lines of information related to a site in the table of the site in the 'Description' table Thanks for any help. A good strategy for you may be to define a single MySQL user, whose database Have similar access to something like this: Allow everyone on sitino * 'Password' identified on user @ localhost; To authorize the 'password' user @ local host; Flush Pvt .; On...