Posts

Showing posts from April, 2014

java - Add new Entity to persisted Collection -

I've got the related table in multiple-to-many associations: Product * 1 - n * Inventory < Previous> @Entity Public Category Products {// Identifier and Properties ... @OnTomy (fetch = fetchtype.EAGER, cascade = CascadeType.ALL) Public set & lt; Inventory & gt; GetInventories () {Return List; } Public Zero Set Inventory (set & lt; Inventory & gt; inventories) {This list = inventories; } Public Zero addInventory (Inventory Inventory) {this.inventories.add (list); Inventory.setProduct (this); }} - @Entity public category list {// identifier and property ... private product product; @ManyToOne (cascade = cascade type.all, alternative = false) public product getProduct () {return product; } Public Zero Set Product (Product Product) {this.product = Product; }} I have followed the seatement: I continue a product with a blank inventory set I Loading the product I try to update / merge the product By doing this, I get the exception: Hibern

MySQL subquery required help -

I'm starting a mysql please help me I have two table images and rates I want to keep me at IgGID rate. Image ID as PK in the image table. The image rate table is foriegn key. Rate table is sample data ImgID rating 1 5 1 7 1 8 2 8 3 2 4 3 1 4 < P> image table sample data imgid comment rate 1 good 7 2 bad 8 3 ok 8 4 ok 8 5 bad 7 excluded I EmigiId Average (rate from rate table compared to IGG ID) For example Image if rate - --------- 1 6 2 8 3 2 4 3 I need this output. Thanks in advance You do not need a subquery, is required. SELECT IMGID, Rate from ImageID by AVG Rate Rate If you have a rating or not, then you have all images Want to include: SELECT i.ImgID, Rate it from AVG (RRT) ImageTable on i.ImgID = r.ImgID Group i.ImgID

c++ - Is point A nearby point B in 3D - distance check -

I'm looking for a skilled algorithm to check whether I have a point in 3D or not. Sqrt ((x2-x1) ^ 2 + (y2-y1) ^ 2 + (z2-z1) ^ 2) & lt; Radius It does not look very fast and in fact I do not need such a big accuracy. How can I do this? drop the distance to the square, and sqrt () , it Very fast: ((x2-x1) ^ 2 + (y2-y1) ^ 2 + (z2-z1) ^ 2 & ray; radius * radius Of course, in most cases at least radius * radius can be calculated prematurely and such as square radius is stored.

cross browser - session values and compatibility? -

I have compatibility issues with Internet Explorer 8 in running an application I and those compatibility issue in C # as well as session values They affect. Is there any other way to create session values ​​unaffected by compatibility issues? G: In the session, I am accumulating a user-aid, while entering it, and according to session value, it loads the privileges in the list. This is the scenario: I am entering my application as an administrator; The privilege allocated for the administrator is loaded after this I am logging out I am trying to log in as a different user, from that in the listback Loads users' privileges. This is where the problem arises. While logging in as an administrator, it loads the privileges of a previously logged in user and not the privileges of the administrator in the list. And when examining the value of the session it was related to the previous user's user id. Can someone guide me out of this? The same problem seems to

Visual studio 2008 WPF designer questions -

I have 2 questions about the xaml editor. I need to show the XML editor keyboard shortcut like F7 and Shift + F7 How to create the default view as xaml editor? When I select the 'Design Designer' button from the solution explorer, xml editor and designer window. How to set default editor in xaml For Question 2: < P> Tools -> Options -> Text Editor -> XAMML -> Miscellaneous -> Always open the document in full XAML view

phpunit xdebug reporting -

I am trying to prepare an HTML report of some tests using PHPUnit, Selenium and Xdebug. I run a test like this: phpunit --coverage-html ./report blah.php But the report generated is somewhat of the information And it does not match with the official document. I get a green bar with the value of 'Lines' column as "100.00% | 0/0". I thought it was normal but I changed my test script deliberately to fail and the report is similar, I think it will at least tell me that it has failed. Why is any thoughts happening? PS: I am using PHPUnit 3.4.8, Xdebug 2.0.5. The code coverage report tells you that the code contained in your tests was not included. This test is not the same as reporting the results.

foxpro cursor size -

It sounds like a simple problem like this, but I think the solution can not be found anywhere. My co-worker and I am working on an application that uses FoxPro XML dump features. It works great, but we are willing to split into multiple files in the table based on the constraints of some size. It seems that it should be a simple part: How do you get the size of the cursor in FoxPro? If you mean file size, then you file dbf with cursor) as an alias Works with the cursor in, it checks whether the return value is the extension .dbf, and then use the file function to read the file size. Although the cursor can be in-memory (if the reporting 'filename' will have a .tmp extension, if I remember correctly) to use the number of one option RECCOUNT (to get the number of rows) To combine (AFIELDS) with the size of each row (to get the size of the file) to approximate the file size. (In-memory cursor can sometimes be forced to disc by including a NOFILTER clause in the generat

How do I import the msbuildcommunitytasks project from another msbuild project with a relative file path? -

Please be easy I'm new to msbuild and msbuildtasks! How can I set up a property that represents a relative file path for a target file that I want to import? I need related references, so it will work on all Dev machines. But the goal of import is trying to use the relative file path internally, which will not work because it is re-evaluated against the imported target! Effectively I am trying to work around imported projects: All the relative paths of imported projects are interpreted relative to the directory of the imported project. Therefore, if a project file is imported into several project files at different locations, the relative path in the imported project file will be interpreted separately for each imported project. There was a similar question: this question was how to do this with Both are similar in this aspect. For the extension pack, you have to declare the asset ExtensionTasksPath , and for community tasks, you must declare the same asset named

Practical tasks for students who learn design patterns -

I need to write some work (problems) for students learning design patterns. Please tell me some practical short-term jobs Help students understand the theory I need some interesting ideas for the Creational Design Patterns. If you share your experience, it will be great: when a particular design pattern fits perfectly into your design. I recently took a class that had a design pattern aspect (in half semester course, We spent 3-4 weeks on design patterns). Using our very practical, and in our coursework to find out our use of patterns (as well as how to develop an outline), the JAATA Draw is a framework for structured drawing editors. E.g. The guided article, or the example we used to do was for drawing an orary. There are several patterns that JHotDraw should be used to understand. Artificial patterns used in IIRC include minimal abstract factory and prototype patterns. It may take some time to find out which parts of johhotra are appropriate for your course, but Javado

jquery - third font in font family is significantly larger -

For me, I have chosen to use some very vague fonts in my font family, the most famous font (third in the family) Centy is Gothic, which is the most computer Font-family: Tw Cen MT, Gill Sans, Century Gothic, sans-serif; The problem is that 12px ft TwCen MT & amp; nbsp; in Centennial Gothic Is more than a 12px font in the amp; Gill Sons If a computer comes back on the Century Gothic, then the fonts will be a mess I need a JCK solution that says, in the Gothic of the century 75% of the normal value will be the font size. I do not need it to detect fonts. I need to say that if the century is available, then make font size 75% of the normal value. any solution? I think this issue is a relatively tall height of Century Gothic, with its font-size < Try using ex units in the code / declaration ex units are based on height, em , px , And pt . line-height will also help normalize the height with a pixel-sized setting, but will cause problems for users who change

windows - Detecting state changes in Internet Explorer -

I'm trying to automate some tests on Internet Explorer. How can I find out that the status of the webpage has changed? Is there a way to know if the page is loading, if it changes, if it scrolls, etc.? I want to know how can I go through the second process of this situation? You can complete a page load and examine many other events inside Internet Explorer and many other web sites. Allows browsers to It is a tool for automated testing of web pages. This lets you write tests that perform actions and test the status of the page. You can either see the source of Selenium and see what it is doing or just using it to test it. I'm not sure how a web page will scroll in an automated page, but you can find out what is the scrolling window.scrollX value when the page gets loaded and to see that What values ​​have changed?

command line - php: Grabbing stdout output data from cli tools? -

Is it possible to get stdout output data from command line tool in php? Example: I want the client to upload a dynamic server-built mix of audio files. The SOX tool allows me to input the input MP3 and send the result stdout to the pipe. Can I get this mixture and upload it instantly, without needing to save it as a template before? "post-text" itemprop = "text"> There is a function called Passstra (), it will pass directly through the binary data in the customer's browser, just make sure that your PHP The script has inserted the correct header before the data is given below, such as content-type etc.

windows - Django on IIS with Multiple Sites: How To Make ISAPI.py Cooperate -

Python 2.6.2 / Django 1.0.2 विन 2003 मानक IIS 6। IIs चल रहा है निम्न निर्देशिका संरचना के साथ दो डीजाएं साइटें: रूट / http / WEBSITE1 root / http / WEBSITE2 दोनों साइट्स के पास स्वयं के अनुप्रयोग पूल हैं; प्रत्येक साइट की अपनी खुद की pyISAPIe.dll उदाहरण है। WEBSITE1 पहुंच योग्य है (परीक्षण डीजेंगो पेज की सेवा) हालांकि, ब्राउज़र WEBSITE2 के लिए निम्नलिखित का उत्पादन करता है: आंतरिक सर्वर त्रुटि इस अनुरोध पर संसाधन में एक त्रुटि हुई। अनुरोध हैंडलर विफल ट्रेसबैक (सबसे हाल ही में कॉल अंतिम ): फ़ाइल "D: \ Python26 \ lib \ site-packages \ Http \ Isapi.py", पंक्ति 67, अनुरोध वापसी में RunWSGI (हैंडलर, बेस = बेस) फ़ाइल "D: \ Python26 \ lib \ site-packages \ Http RunWSGI Result = Application (Environ, StartResponse) फ़ाइल में "WSGI.py", पंक्ति 155, फ़ाइल "D: \ Python26 \ lib \ site-packages \ django \ core \ handlers \ wsgi.py", पंक्ति 241, कॉल करें प्रतिक्रिया = self.get_response (अनुरोध) फ़ाइल "डी: \ Python26 \ lib \ site-packages \

sql - insert a value calculated from another table -

I want to make a query to enter the value calculated on another table. I do not want to use floating tables and I want to do everything in a single query. it's possible? I tried this one down but it does not work. Thanks FEG INSERT in MyTable (`DATE`,` name`, `total`) VALUES ('2010/01 / SELECT 'SUM (aValue)) for the second option, 01', 'Thunder', <( from / 01 ',' Thunder ', SM (Ave)

How do I set the path to a DLL file in Visual Studio? -

I have developed an application that depends on a DLL file. When I debug my application, the application will complain that: "This application failed to start because xxx.dll was not found." So I have to copy the DLL file into the same directory as my .vcproj file. Is there a way to set up a project to see the DLL file in a relative (preferably)? Path or (not like) some full path? A similar concept to how we set and set the library path in the project settings. I mean when I debug my application (killing F5 ) the above error will pop up. Go to project property (Alt + F7) debugging Under, look on the right is an environment field. Add your relative path there (relative to the Vcproj folder) i.e. .. some frameworks \ lib PATH =% PATH%; $ (ProjectDir) \ some-framework \ lib by adding or path PATH = C: \ frame some work \ lib;% PATH% Again F5 (debug ) Hit and it should work.

gdb: howto speedup debugging on a very large binary? -

Is there a way to speed up GDB when it loads a large C ++ binary? Binary I'm talking about 50 MB about the release of the release (no debug) A debug build is up to 400 MB long and load it GDB requires more than 2 minutes. Maybe there are some settings that speed up the application to load in the GDB? Any help is greatly appreciated! Environment: GBB v6.8, 32 GB RAM, 8 CPU-ubuntu karmic 64-bit core Start by upgrading GDB developers have made a lot of effort to speed up GDB 7.0 in 2009 (and there is more to come in 7.1: -)

wpf - Get the size (after it has been "streched") of an item in a ViewBox -

Consider the following: We say that the window is 1024x768 And the view box fills the entire window, this means that the text box on the screen is really big. I want to get the size of the text box because it is currently on screen. Update: I might get real-life of ViewBox and make it your child's true wide Which divides me into the current scale and will expose it as a property in some way but I'm not sure it's the best way to do it. In this way you ScaleTransform to ViewBox Applies to your children: var child = VisualTreeHelper.GetChild (view box, 0) ContainerVisual; Var Scale = Children Conversion as ScaleTransform; Here is the view box that sits in the text box. After this you can only increase the scale.ScaleX * textbox.actualwidth and you may find the size in the screen coordinates but it becomes easy! To get the size of that text box directly in the screen coordinates: textbox.PointToScreen (new point (textbox. Real point,

ajaxcontroltoolkit - Ajax Control Toolkit on a commercial website -

I am developing an ASP.Net website that will be used for a lot of users. Will recommend using the Control Toolkit? Update : I am trying to imagine the worst case scenario. Maybe it will work perfectly with a user. Anyway, I only use this control from the Ajax Toolkit: Validator callout extension , masked adapter and < Code> AsyncFileUpload . Thank you. I have developed several times with Ajax control toolkit, and honestly I would not recommend it to many Controls that they are in beta stage, they need work-around and 'hacks' to work under the requirement. I think MS has dropped the ball on this product. Although this is just my opinion. I like commercial toolets, and am very happy at present. Great support, very good control, stable is not more expensive.

iphone - Streaming Video (or Progressive Download) to the Droid Browser -

I'm trying to do video streaming (or progressive download usage) in a Motorola DROVA browser and it's no luck I am With my iPhone, I can direct Safari (which is an MPEG-4 video file), and Safari opens Quicktime, and plays video, however, with Droid, I go to the same web address and I'm faced with an error "Can not play video .... Sorry, this video is not valid for streaming on this device". When I direct Dreads browser to a WMV file, it will completely download the video file and then display it as a drood video player, if I click on it. Ideally, I want to repeat the droid behavior on the iPhone, where the video player pops up and the video starts before downloading it completely. The video format is not an issue because I can encode the video for any standard. I was trying to file an .mp4 file because the Droid documentation says it supports MPEG-4 video, though I can not work it from the browser. Any insights will be greatly appreciated. You shoul

organization - List of Languages, where to look for -

This is not related programming but definitely related to development. I would like to have a human speaking language (usually we look at every other site to choose), one of our projects is necessary, if there is language code information, and in the .txt format Or any other, removable one Is there a resource on the Web, where something like the above or something like list of countries like Blah Blah or some approved < Strong> body / org thanks Ice 639 is a good browse this site, you also have the computer Pesbl plain text version. Update : A list of ISO 639-3 is missing from your site forgot about sil.org:

asp.net - enableEventValidation and validateRequest difference -

What is the difference between EnableEventValidation and validateRequest? Although the past is on postback / callback due to a control (server side only I think? Please advise), is later on every request, which is in any way due to posting back? Or a standard HTML link will be confirmed by clicking? Thanks according to MSDN Definition of EnableEventValidation: "Indicates whether or not the page backback and callback validates the event." Definition of ValidateRequest: "Goes or sets a value that determines the input from the browser for ASP.Net Networks." < / Html>

Can we put a formula in the "value_if_true" field in an IF Function in Excel? -

मुझे एक ऐसी स्थिति है जहां मुझे Value_if_true और Value_if_false में एक सूत्र डालनी है फ़ील्ड में एक यदि फ़ंक्शन होता है लेकिन ऐसा लगता है कि काम नहीं किया जा रहा है यह मेरे सूत्र को प्रदर्शित करता है जैसे कि सेल में है। कोई मदद कर सकता है? इसमें "" वर्ण " = IF गलत है (I5 = 0, "(12-BC5) * BE5 + BH5", "BF5") "(12-BC5) * BE5 + BH5" = IF (I5 = 0, (12-BC5) * BE5 + बीएच 5, बीएफ 5)

javascript - HTML 5 SQLite: Multiple Inserts in One Transaction -

Is it possible to do something like this: get started; Insert in some table (some_col, another_col) value ('A', 'B'); Insert into some table (some_col, another_col) value ('c', 'd'); ... committed; ... in HTML5? With having async with each transaction and having its callback, I think it would be difficult to write regularly, an unknown amount of rows, and then calls back upon completion. How do you sample it here? In Macs, iOS and Android I have tested on recent versions of Safari and Chrome. var db = openDatabase ('dbname', '1.0', 'db description', 1024 * 1024); Insert Db.transaction (function (tx) {tx.executeSQL ("some_table (some_cabl, another_col) values ​​('a', 'b');"); tx.executeSQL ("insert in some_ table (some_col, another_col) value ('C', 'D'); "); ...}, )

c# - TargetInvocationException on Image update in WPF -

I created a WPF control that displays an image. Now I want to change that image at a very fast rate. I created an ImageContainer class that contains the image and when a ChangedEventHandler is changed which updates the image in my control the code that looks like this Is executed. videoImageThread = new thread (new thread (representative () {this.VideoCapture.Dispatcher.Invoke (System.Windows.Threading.DispatcherPriority.Normal, new action (representative () {videoImage.Source = VideoImageContainer.Instance.VideoBitmapSourceImage;}));})); Private Zero Instance_VideoRefresh () {if (VideoImageContainer.Instance.VideoImage = Null!) {Lock (videoImageSetLock) {videoImageThread.Start (); }}} This code throws a System.Reflection.TargetInvocationException, what am I doing wrong? I think So you tried to apply the action on the sender directly like:?! Private Zero instance_VideoRefresh () {if (VideoImageContainer.Instance.VideoImage! = Tap) this.VideoCapture.Dispatcher.Invo

Send SMS/MMS, especially MMS using .Net w C# -

Does anyone know how to send an MMS message with the .NET framework? Sample code for SMS, but MMS is not. I have a GPRS modem which is already installed on my server. I do not think there is any easy way to do this basically SMS / MMS encoding and decoding in .net To do without writing your code. You can try one of the following libraries:

java - Storing Objects in columns using Hibernate JPA -

Is it possible to store some things that are only using one table? Now, who comes into hibernation, he will make two applause, one for the family and one for the other. I want family members to serial in the database in the database. @Entity (name = "family") class family {Private last list & lt; Person & gt; Family members; } Class person {string first name, last name; Old age; } This is a terrific design and I'm not really recommending it ( You should just create another table) but this is possible. First of all, you have to use a byte [] attribute to capture the sequence of those people's list, which will be stored in a blob in the database. Therefore, it annotate the recipient with @LOB (I will create recipient and setter personal to get them) Then, returning the "fake" recipient and sender or list & lt; Person & gt; Set to byte [] . In the sample given below, I am using Commons Lang (if you do not want to import t

php - Shorten string with a "..." body -

Just like the name of the iPhone App, which runs for long, the name decreases. I actually have a name Or I like this method of shrinking a string, but add "..." section to it. If I am getting confused, then sorry, I am being understood what I am trying to do. So I will show an example! I have it, "..." in a small string (in PHP) & lt; Php $ String = "This is a test script"; If (strollon ($ string)> = 14) echo (substr ($ string), 0, 13). "..."); // This is a test ... and echo ($ string); // Is this a test script? & Gt; I would like to split the name or string and keep the first letter in 10 characters, then insert "..." in the middle and end the 5 letters of the string at the end and Display I was thinking on the lines of this: = 20) echo (substr ($ string, 0, 10). "..." .substr ($ string, 15, 20)); // This is a ... script and echo ($ string); ? & Gt; But know that it will not work in this rega

What to choose? ASMX web service or WCF in .net 3.5? -

The current project on which I am working is extensively using web services and 3.5 Now that we are going to implement the second phase, are we confused if we already have to use WCF or web service? Apart from this, there is something new that can be useful and about Web 4.0 or WCF. Coming with 4.0 We have completed a brand new project using WCF for the first time instead of ASMX Web Services . We are very happy with the result, but know that there was a great learning curve. However, we are very pleased with the overall results and know that everything is moving forward for Microsoft and it is totally worth the pain - warts and all. Quick 2) We have enabled a net: TCP Endpoint and "web" endpoint on the same service with only one configuration file update (no code changes) 3) We were able to create AJAX-support only the configuration changes and lush web services using only the previously created data compressor serializer. Otherwise, we had to write an

blackberry - Location based application for smartphones with no GPS chip -

Is it possible to develop location (longitude, latitude) based application with an internal GPS chip for Blackberry smartphones? Yes, this is possible. Devices can determine their position on the basis of known places of cell towers and / or WiFi hotspots that are in the category. This is usually not as accurate as GPS, but it can still be useful. Skyhook is one of the leading wireless providers:

ext/mysql charset support vs ext/mysqli charset -

I've read some articles that use new set / mysquiine in PHP because it supports letter sets is. I currently use ext / mysql and use SET NAMES UTF-8 to ensure that all my data can be stored as UTF-8. Does not the charset support in extract / ISSLL, or am I missing something bigger? thanks :) SET NAMES UTF-8 This does not mean that the data is stored in UTF-8. This means that the data has been received from the client in UTF-8 and the client has been served in UTF-8. For example, when you make a db / table / row, the storage encoding is set create table {...} CHARSET = utf8; or Database default character set UTF 8 Read here: < P> 2 Lyon mysql just gets right Please check the encoding once again through tables and rows, for example, phpMyAdmin Remember that the installation of the database The encoding of the encoding tables does not automatically change, it is used only for a default value if the table encoding is depleted Not Specified

c# - TryFindByPrimaryKey in Castle ActiveRecord -

How do I search for a record by the primary key, but if it does not exist, then return empty? Public Fixed T FindByPrimaryKeyOrDefault (Object ID) {Try {ActiveRecordMediator returns; T & gt; .FindByPrimaryKey (id); } Hold (NotFoundException) {return tap; }} ActiveRecordMediator & lt; T & gt; .FindByPrimaryKey (id, false); I'll copy questions like these.

architecture - DTOs : Several DTO (and Assemblers) for the same resource -

I often need a single resource based on the cases of many DTOs. For example, depending on what I want to display for the photo album, I will need different data in my DTO (creation through a form, list, description, etc.). I have a collection of albums, an album, a collection of DTO albums, and an album for the album DetailDTO. For each, I need a specific code. Is it stupid? Thanks, CA Benjamin No, it does not look stupid. The alternative of what you suggest is creating "Super-Dto" which is used for many purposes. And on which only some fields are used for each purpose. It quickly becomes ugly and inadvertent, because DTO grows bigger and it is not clear what area is necessary for that purpose. Refactor and hard to understand.

sql - inner join on null value -

I'm not sure I made a mistake in the argument. If I have a query and I do an internal insertion with a null value, will not I always get any result or will it be neglected to join and succeed? Example: User {ID PK, Name NVRARR Noel, BENSTATUS NULL REFERENCES} If I write and U. Bennetus will not find a line for me? Choose from the user * Join u as bensetatus as u. Bb.id = b.id where id = 1 if there is a tap included You do not get a line because NULL can not be equal to something, even zero as well. If you change it then join the left, then you will get a line. With an internal joining: select * Include the user as * u in the form of BENSTATUS in B. Status = BID1, '1', 1, 'Restricted' With a left join: Select as user * This Using test data: Code> Create a tablet user (ID int, bankstats newcomer (100)) ; Enter the User (ID, Bankstats) values ​​(1, '1'), (2, 'NULL'); Create table lencetates (id int, text nvar

Cassandra vs Riak -

I am finally searching for a compatible data store and it seems that it can come to Reich or Kassandra. Has anyone got the expereinces of a scene on it? As you probably know, both of them are strongly architecturally strongly influenced by dynamo (ultimately compatible, failure Both of them also advance beyond the dynamo in the case of rich-Cassandra with "pure K / V" data model, in which a document-oriented one, columns like BigTable in Riaq provide Family mode Are there. I have seen the sensible people both choose. I believe that the number of points in favor of Kaisandra speed Support for groups spread over many data centers The big name (Digg, twitter, facebook, webex, ... -) using it Issues included in favor of Reeck Reduce support from the map / box / Cassandra dev, fwiw

C++ preprocessor __VA_ARGS__ number of arguments -

Simple question for which I could not find an answer on the net. In the difference logic macros, how to get the number of arguments? I am fine with a preprocessor promoting it, if it is resolved. If it makes a difference, then I am trying to change the variable number of macro arguments to promote the preprocessor sequence, list or array for further processing. / P> This is actually a compiler dependent, and is not supported by any standard. Here you have such a number: #define PP_NARG (...) \ PP_NARG _ (___VA_ARGS __, PP_RSEQ_N ()) #define PP_NARG _ (...) \ PP_ARG_N (__VA_ARGS__) #definePP_ARG_N (\ _1, _2, _3, α, _5, _6, _7, _8, _ 9, _10, \ _11, _12, _13, _14, _15, _16, _17, _18, _19, _20, \ _21, _22, _23, _24, _25, _26, _27, _28, _29, _30, \ _31, _32, _33, _34, _35, _36, _37, _38, _39, _40, \ _41, _42, _43, _44, _45, _46, _47, _48, _49, _50, \ _51, _52, _53, _54, _55, _56, _57, _58, _59, _60, \ _61, _62, _63 , N, ...) N #definePP_RSEQ_N () \ 63, 62,61,60, \ 59,58,57

iphone - how can i change orientation by button's click events? -

I used TableView and click on the Disclosure button to use the Disclosure button. I've got a special image. I want to be able to get that special image with the orientation when I press the disclosure button, so how can I do this? Please help me I'm new in this kind of application. You have to manually convert the tables. Here's some code to create a center and rotate a UITableView around its center. // This defines a continuous PORTRAIT_FRAME, which is equivalent to the iPhone screen / CGRactMake (0202020460) #define PORTRAIT_FRAME [[UIScreen mainScreen] applicationFrame] // This is a continuous LANDSCAPE_FRAME Defines, in the LANDSCAPE_FRAME CGRectMake #define table for sideways (020480,300) // This function assumes that your square variable is called myTableView // and toggle it to the orientation of myTableView - (zero) rotateTable {if (myTableView .transform == CGAffineTransformMakeRotation (0)) // // rotate image by myTableView.transform = CGAffineTransfor

android - Best approach for oldschool 2D zelda-like game -

For learning purposes, I would like to code a simple 2D game inspired by the Zeda series at nes / gb. A great example. The player can move on scrollable view, and when loaded defined maps boundaries like a door, basement or new zone hit, then load a new specific map. / P> For Android devices in particular, what would be the best and simplest way to achieve this? Can you point me to some useful resources, snippets, books? I've read stuff about some bakinigers OpenGL ES, but what I'm ready to do is very much: 2D; Thanks You would like to dig in such subjects: < Ul> A / Pathfindings Sound Game Loop < Game / World Timer Saving / Continuing Status State Machine

why CSS dropdown menu makes content jump down? What fixes this? -

I am working on a pure CSS dropdown menu. (Ii 6 is not important for me anymore.) I have a subconscious inside a "cover" device. The page has 4 divisions within the # # repeater # first "#topbar", the second "# nav", the third "#content" box and the fourth, a "#footer". "#content" and "#footer" are full positions to prevent the divisions from being jumped up when one submenu is revealed. It works in IE8 and Chrome and FF, but IE8; Compatibility mode indicates that IE7 will render "#content" and "#footer" div on the left side of the centered column. In addition, the full position is used to place it in the bottom of the page, removing it can fix the IE7 bug, but when submenus is revealed, it causes everything to move down. Is there a way to fix the margin left on the lower left without the bottom of IE7? either with? I like pure CSS. Edit: Believe it or not, I am using a bunch of

How does a Windows service differ from a standard exe? -

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

ruby - Order items in MongoDB according to the size of an array with MongoMapper? -

I want to select a collection of sorted items based on the number of items within an array. Hopefully, in the following example, the poor interpretation will be clear instead of me: In the class Thing in Mongomar :: Document key: name, string key: tag, array and < P> I want to get all the things that get the order from the people with the most tags from all those people, at least in this example the tags are only the wire within the tag array. I need something that means it The following works): Thing.all (: order = & gt; 'tags.count desc') Is it possible? The main server does not currently support the computing of an array size and then it is sorted by me It seems that for the moment your best bet is to cache all shapes on your own, and add an index to that area. The things in the class include MongoMapper :: Document key: name, string key: tag, array key: tag_size, integer,: default = & gt; 0,: index = & gt; Just add a callback to

javascript - Stop certain elements from being edited inside a doc having designMode = "on"; -

I am using an iframe and setting its contendocument.designmode to "on" This allows me to imitate a rich text editor and gain more flexibility in the editing process. The problem is that I have some links ( & lt; a href = "#" onclick = "alert (1);" test & lt; / a & gt; ) That are added to the page, and of course these links do not work because I am in designMode . At first I thought, okay, I'll wrap that link in the other IFrame, but still it will not stop the event related to it. Do some elements they normally work on, even if they have a designMode = "on" document There was a similar problem recently. My solution was to use a div with the content permission = "true" instead of "iframe", which then allows you to set content = edit = "false" on the elements of that div. The correct solution is not, but the work is done in my case.

php - some doubts like..user.id and username(primary key function),how to allow doc file for databaee,file_exist problem -

In my table, there are ten fields in my table..and two of those columns are User_Id (Auto_Increment is required for me to upload it.) Username (I want to put it as the primary key so that another user gets the same username) < / Ol> I can not do these two things together. If I auto_increment user_id I can not provide the primary key for the user name. How can I overcome this problem? 2. How to allow only the doctor (msward) files to upload .... I exhausted ($ _FILES ["file"] ["type"] == " Application / msword ") but I am working on it ... I tried the same code for PDF files that are working code ($ _FILES [" file "] [" type "] ==" Applications / PDF " 3) First of all, I upload a file from an application in a folder and store its name and size in the database. Then I deleted the files from that folder and deleted the entry in the database ... This means that there is no entry in the database on my employe

iphone - is there an iUI for the Android -

Developing both IM and Android to use IOI to use IUI to show that the user interface is a browser How will it look? Does anyone know if there is a similar JavaScript / CSS library that will allow me to duplicate the Android interface? "post-text" itemprop = "text"> I think that you can only use iUI is an Android theme for the IUI - go to the theme switcher and select the Android So that it looks like this. Not sure how licensing is on CSS. You should probably ask him.

How to improve Visual Studio 2010 cursor navigation performance? -

My Visual Studio 2010 Beta 2 cursor key is fast for all tasks except for navigation I previously Tried but did not do any of them. I have installed 3 plugins, inside the text editor, you can hold and hold an arrow key of your keyboard. Which can contribute to slow down: AnkhSVN IronPython extension for Visual Studio 2010 We made many improvements after beta 2; Apart from waiting for the RC and RTM versions of Visual Studio 2010, there is not much that you can do to make it faster, it will help to close the outline margin and line number margins, Those attributes can stop loosing. Brian Harry posted some articles about some of the refinements, such as: I do not have a specific scrolling number, but in the recent construction the speed of scrolling is equal to or faster in Orcas in more scenarios (with the exception of the page up / down, which is still slow that it Does not end because many paint has not been skipped as Orcas).

Rails design doubt: Should/could I load the whole dictionary/table into memory? -

I'm a newbie in a simple rail application that translates a document (long string) from one language to another Dictionary is a table of the word (to find and move a string regexp, and a block that uses a replacement string). The table is 1 million records long. Each request is a document that wants to translate. In the cruel force approach for the first time, I need to run a whole dictionary against every request / document. Since the dictionary will run all the time (from the first record to the last), instead of loading the table of records with each document, I think the whole dictionary in the form of an array in memory To be kept as an array. I know that this is not the most efficient, but the dictionary is run completely at this point. 1.- If no skill can be obtained by restructuring the document and dictionary (which means that it is not possible to create small subsets of the dictionary) What is the best design approach? 2.- Do you know about similar projec

asp.net - dotnetopenauth XRDS Clear Cache -

I am using dotnetopenauth as an open-end provider and the response is The applet has changed the AppPhmodifier file to a different file but the old one is always returned. XRDS seems to be cached. & lt; URI & gt; & Lt;% = New URI (Request URL, reply .app AppEditModifier ("~ / server.aspx"))% & gt; & Lt; / URI & gt; How is cached? Can I clean it? Any help appreciated. Thank you, Graham Understand, your OP endpoint is on a different path Server.aspx, and you have changed its XRDS file to reflect it, but RP is still trying to connect on server.aspx. Is it true? ... it is assumed ... Your opi does not usually cache it, but RP often casts the results of some time. It may be that the RP has not yet taken notice of this change. Another possibility is that your OP has two XRDS documents - for a user identity, you can disable any RP-side cache. For the URL and your OP identifier, make sure you change both with your new OP endpoint

templates - Don't show application layout on popup window using Rails -

मेरे पास डिफ़ॉल्ट साइट के रूप में views / layout / application.html.erb का उपयोग कर एक रेल एप्लिकेशन है टेम्पलेट। मैं बस कई पॉपअप विंडो जोड़ने के बारे में हूँ ये आवेदन टेम्प्लेट को प्राप्त नहीं करेगा और प्रदर्शित नहीं करेगा। मैं कैसे आवेदन टेम्पलेट लोड करने से कई दृश्य बहिष्कृत कर सकता हूँ ? किसी भी मदद की सराहना की जाएगी। उन लोगों के लिए कार्रवाई में झूठे लेआउट के साथ विचार प्रस्तुत: वर्ग YourController def पॉपअप रेंडर: लेआउट = & gt; गलत एंड एंड

proxy for scale, performance (to load external content)? -

I'm sure the answer to this question will be very subjective, I just want to know what the options are (for construction ) A proxy to load external content. Usually I used cURL in php and proxy to fetch content. Then make an AJAX call with Javascript to populate the content. Edit: YQL (Yahoo Query Language) seems a great solution for me, however, it has a daily usage limit that essentially prevents me from using it for large scale projects. . What other options do I have? I am open to any language, any platform, the main criteria are: performance and scalability thanks, "text"> You do not need a proxy server or anything just create a chronobob to fetch content every 5 minutes (or whenever you want). All you need to do is create a script that captures the content from the web and saves it (a file, database, ...), which will be started by Cronobose. If someone requests your page, you just need to send out the cached content and do this with what you w

vb.net - UltraTree - setting columns? -

I am using UltraTree with vb.net and I think it binds to the parent / child dataset Super easy to do and it displays the tree view well though I need to hide some columns, and I did not know how to do this in code. I can not use the designer because I am using the code to bind my dataset and whatever I set in the designer, it starts overriding. try ultratry 1 Column settings Columnet (x). Column (Y) .Vijay = False Where X is the name of the column / index and Y is the column name / index

Haskell function does not terminate -

I wrote a function in Haskell that takes three points in the plane, and checks whether they are on the straight line, Or turn right or left. Here is the code: detDirection :: point -> Point - & gt; Point - & gt; Direction @ detdirection a @ (dot (x1, y1)) b @ (dot (x2, y2)) c = if (collinear1 abc) then straight and ab = vector [x2 - x1, y2 - y1] angleAbX = angle ab ( Vector [1, 0]) (point (x1, y1) = turnAtP ambulabex (Point (x2, y2)) = turnAtP AC angle in ABX if (y1> y2) then left and right < / Pre> I have tested collinear1 , angle , turnAtP in GHCi, and they all end immediately. detdiirection , however, is going on forever. Can anyone tell me where is the problem here? In Haskell, let is a recursive binding, that is, you Let's define the expression can be declared in the manifestation of other variables, when you type two now = vector [x2 - x1, y2 - y1] angle ABX = Angle ab (vector [1, 0]) (point (x1, y1) = turnAtP abaabx (point (x

xaml - How can I apply a custom sort rule to a WPF DataGrid? -

When a user sorts a column in my DataGrid , then I will clear all the blank or empty cells I received a IComparer & lt; T & gt; which ensures that the spaces are always sorted down, but I can not understand how to apply it to my DataGrid column Like the initial , DataGrid , which I'm doing with LINQ OrderBy () method, works great, the problem is that after user's performance Sort all the spaces on top of all types. Lesson Code Public Class Blank Last String Compaq: iComPeerrier & lt; String & gt; {Compare public integer (string x, string y) {if (string. Isnoloracte (x) & string.isnaloractic (y) 1 return; And if (! String.easyallurecti (x) and string. Isnellorecte (y)) return -1; And return string Comparison (X, Y); }} Question How do I get DataGridColumn to use my comparison? Or if this is not possible, can you provide an alternative solution? If possible, I am looking forward to an MVVM friendly solution. In this way I do

Google Gears for a Social Network? -

I have just seen that new WordPress (last time I used WordPress 5-6 years ago and today) Google Gears Using it, it really feels good but I do not believe 100% how do they use it? I am working on a social network site in PHP (Facebook, MySpace), can you think anything on that site where gear can benefit the user? Text "itemprop =" text "> Gears allows for some local caching Basically this application stores data in the local SQL database, which allows for better caching and offline usage. It means that when you do not have an internet connection and when you are online again, you can also work the application, your changes are synchronized. How does WordPress use it, but a social network can be used to cache private messages, so that people can access them during offline (Gmail or Google Reader do not use it) or maybe " Live stream "/ wall / whatever. / P>

javascript - Pass correct "this" context to setTimeout callback? -

इस सवाल का पहले से ही एक उत्तर है: < / P> 4 जवाब मैं संदर्भ में कैसे पास कर सकता हूँ setTimeout ? मैं this.tip.destroy () अगर this.options.destroyOnHide 1000 ms के बाद कॉल करना चाहता हूं। मैं ऐसा कैसे कर सकता हूं? यदि (this.options.destroyOnHide) {setTimeout (फ़ंक्शन () {this.tip.destroy ()}, 1000); } जब मैं ऊपर की कोशिश करता हूँ, यह विंडो को संदर्भित करता है। आपको संदर्भ के संदर्भ को सहेजना होगा जहां setTimeout फ़ंक्शन कॉल किया जाता है, क्योंकि setTimeout फ़ंक्शन को के साथ कार्यान्वित करता है यह वैश्विक वस्तु की ओर इशारा करता है: var कि = यह; अगर (this.options.destroyOnHide) {setTimeout (फ़ंक्शन () {that.tip.destroy ()}, 1000); } आप यह आसानी से साबित कर सकते हैं कि setTimeout सेट इस को वैश्विक वस्तु द्वारा: (फ़ंक्शन () {अलर्ट (यह); // अलर्ट हैलो सेट टाइमआउट (फ़ंक्शन () {अलर्ट (यह == विंडो); // सत्य}, 1000);})। कॉल ("हैलो"); इन्हें भी देखें:

c# - Getting ready to move to EDA/SOA any words of wisdom? -

We are currently preparing to go to an event-driven / service oriented architecture (know this will be a long process ). If anyone had any advice, just wanted to get some words of knowledge, our MGMT is actually starting to advance the transition, but coming from a sequential processing environment, we are not only concerned about our IT vendor , But how it will react to business. Just the other primary hurdles others have had to endure such a move, they purchased the Oracle's Weblogic / SOA / BPL Suite.

how to integrate javascript in iPhone application? -

I'm new to the iphone application and I want to integrate javascript so that you give some information about implementing javascript Can you? I do not know what you mean by i Javascript wants to integrate You have full JS support inside UIWebView. You can inject your own JS code and communicate with the existing JS code.

flex - How to make datagrid selection and hover effect (blue color) programmatically -

I have two datagrids, which should do everything except data entry. I have already managed to scroll synchronic using them scroll events. My question is now how to choose one item of a datagrad programmatically, and how to achieve the mouseover effect and underline this line with bright blue color? Any pointers will be appreciated! Marcus I found the solution: The change event marks you that someone clicks an item in the DataGrid Done: changes = "changeswithcandgrid (event)" /> Change = "changeFirstGrid (event)" /> And then you can use this method to emulate the same action in other datagrid: firstGrid.editedItemPosition = {columnIndex: Event.columnIndex, rowIndex: Event.rowIndex}; Marcus

coding style - What StyleCop like tools are there for VB.NET -

Also see For better or worse now we have VB.NET Coding Standard Documents based on the C # coding standard implemented by StyleCop For example The number of spaces that you want to mark the "+" All example members (fields and methods!) Should be used as "Me.fieldName" All shared members are in the form of "className.fieldName" Access in As I think: If it is in the required document, then it should be automatically checked by the system I'm looking for devices (ideally free) which will examine the rules in small VB.NET code, because these are the issues of style that do not make it into compiled output, FxCop is not useful. (I personally match that we only check important things like duplicate code and the single reason for each class (so many multi thousand square classes!), But coding me standard documents like I I want to have a tool to help me out.) See also About the reward I am looking for a list with tools to ch

c# - How to display a result in a label when I click onto a button? -

On my GUI (Graphical User Interface), I have a named button and a label. When I enter , I want to show in my result label how do I do it? Text property on the label for use for windows: private Zero btnEnter_Click (Object Sender, EventArgs e) {int themeaningoflifeuniverseandeverything = 420/10; LblResult.Text = ThemingFolinewewsWire and Everything Toasting (); } Check exams:

wxpython - Moving a window between workspaces/virtual desktops -

itemprop = "text"> I have a Linux-only wxPython application with wxFrame which acts as a menu / toolbar, this new window Can be opened from the toolbar itself are free. Since users can transfer from any of these windows to any virtual workspace, I'm looking at a way to move Toolbar to the current workspace whenever the user activates the window. I've tried to use I Raise (), but in this way Toolbar also receives focus and I do not want it. Please note that I can not make the Toolbar sticky, because me every Not on workspace Thank you! (wxPython 2.8.1.1, Ubuntu 9.04) Follow-up: I checked the source code to see how it "workspace" N to the workspace en ". It uses it, so I'm trying to use it python. This is my code now: import gtk def move_to_workspace (frame, ws): gdkwin = gtk.gdk.window_lookup (Frame.GetHandle ()) win = gdkwin.get_user_data () while isinstance No (win, gtk.Window): # Find the original window object win = win.get

objective c - Observing NSUserDefaultsController not working when bound properties are set -

Here's the setup: I have a subclass of IKImageBrowserView zoomValue property is bound to a key In VFBrowserZoomValue shared NSUserDefaultsController . I have the NSSlider whose value binding is bound to the same key. This works perfectly to change the zoomValue browser from the slider. I am trying to implement -magnifyWithEvent: in my code; Trackpads with pinch gesture to zoom the browser to my IKImageBrowserView subclass. Here's my implementation: - (zero) magnifyWithEvent: (NSEvent *) event {if ([increase incidence]> gt; {if ([self ZoomValue] & Lt; 1) {[Self set zoom value: [self zoom value] + [Event magnification]];}} And if ([event magnification] <0) {if ([self zoom value] + [Event increment ]> 0.1} {[set zoom value: [self zoom value] + [event magnification]];} and {{auto set zoom value: 0.1];}}} The problem is that the zoomValue of the browser changes correctly NSUserDefaults the new value The update has not been updated. S

iPhone free -> tier one upgrades (Main Bundle setting?) -

My app has been free since the beginning, I uploaded a new version and set it to 1 value Have given. Those who have updated, have received it for free for some reason, new users have only been charged for new downloads. Am I missing something in my main bundle that the upgrades are not free? It seems that you can not charge users for updates, so if they download their app for free once, they will do it. Also be able to update it I think the only option to start paying in free apps is to include in-app purchases.

apache - How to properly set up SVN on web server? -

I have found, but it was never resolved and did not want to kidnap her for myself. I will try and give as much detail as possible. I have a shared hosting account on a Linux server that is my web server, and I have shell access. There are many web sites in my public_html / on my hosting server and want to be able to make any changes to my Windows machine. The server will be promoted with minimal fuss, I basically want to get away from uploading ftp manually. I would be happy to keep all my versions, but in fact they do not really need to see, certainly not from any web interface. All I want to see from the web is the current amendment. Hopefully most of the details have been solved, now for the real question my SVN to my public_html folder to all of my What is the best way to work without highlighting .svn > Directories to the public? I will advise on copying a checkout work on production. The best way to upload to production is to export if you want so

svn - Subversion command scripts -

मेरे पास यह कमांड है "टोर्टोइस प्रो। एक्सई" / कमांड: अपडेट / पथ: "डी: \ वर्क_SVN \ projectname" / notempfile काम की प्रतिलिपि को अपडेट करने के लिए। मुझे रिपॉजिटरी से संशोधनों की जांच के लिए 'svn st -u' भी है। ऊपर दिए गए वाक्यविन्यास में इस आदेश का उपयोग कैसे करें। Bibhu कमांड लाइन का उपयोग करें स्क्रीप्टिंग के लिए ग्राहक, जीयूआई नहीं आप माउस क्लिक और ड्रैगिंग का अनुकरण करके फ़ाइलों को एक निर्देशिका से दूसरे की प्रतिलिपि नहीं करेंगे, क्या आप

PDF/A Convertor .NET Component? -

I'm looking for a PDF / A converter. Is there a way to make NET component or one that all the components of the techniques should be used? Ii will take a word document as a stream and convert it to PDF etc. Convert words (mostly 2003/2007) and if other office formats etc. It would be good.

php - Should you validate in the Model? (Symfony based question, but related to general MVC) -

This is a quick question related to symphony, but there may be a general MVC question. I have a class in my model, for example, WebUser is a property of email_address in this class. This value is being used for each WebUser should be unique to. Now, I have made it so that all my symphony forms can be validated that email_address is unique WebUser given, but I think Should I add this recognition to the model too? But I was also thinking, should you actually validate each set () method in the model? It seems that there is an intelligent enough decision to not get rid of any wrong data in the database, although most (if not all) data is to go through the controllers, which is valid then it seems to me that I am the same I am running the recognition twice and it just seems useless? What are your thoughts on this? I am still bending towards the verification in the model because it makes the most sense because it gives a business logic. If you want to be valid in th

email - php mail attachment not working with some clients -

I have a webform which allows our agents to upload a PDF attachment which will then be emailed to our customer. is. The code I get on a website I use to create an email and it seems that until recently it worked fine. It seems that instead of being interpreted as a postal client attachment for some (only some people, for example Gmail) attachment is printed in the body of the email, it works with almost every customer, but we have some Why did it have to be tried so why any solution of this would be greatly appreciated because I do not have much information about it. if ($ _FILES ["file"] ["error"]> gt;) {echo "error:" $ _FILES ["file"] ["error"] "& Lt; br / & gt;"; Return; } If ($ _FILES ["file"] ["type"]! = "App / pdf") {echo should be valid & lt; centre> gtk; pdf & lt; br & gt; & lt; a href = '.. / index .php' & gt; Tilbaka & lt; / a & gt

theory - How does a non deterministic turing machine work? -

I understand that they are not real, and whenever they have an option, even when there are 2 options, they Are calculated. But, for example, if I say: "There is a non-deterministic assumption that the graph from the graph to the article is the vertebrae p" (the reference graph is isomorphism) < P> What could this mean? I understand bisection, but it says "estimates without any estimated". If this is guessing, then how is it an algorithmic approach? How can this guarantee how it is going to work? There are different ways of a picture one I have useful Oracle model Have you ever seen a side cartoon Have seen where there is a derivative on the blackboard "There is a miracle here" which is one of the intermediate steps? In this version of NDTM, when you have to choose something, Oracle writes the correct version on the right part of the tape. (This Grey End Johnson, Computers and Integrity , is derived from his classic book on NP-complete p

sql server - Calling SQL Scrips from a sql script! -

It is possible to call multiple SQL scripts from a single startup.sql script. i.e. StartUp.sql call: CreateDatabase.sql CreateStoreProcedureFirst.sql CreateStoreProcedureSecond.sql InsertDummyValues.sql Type other. SQL ... etc I am loading and running each file at a time .. I run more scripts and sometimes remember a script or in the wrong order I do! Hope this makes me understand thanks Yes - you can use SQLMMD (SQL Server 2005 or later) to make T-SQL, the script is slightly more flexible, contains it and is equivalent to the basic variable. The SQLMMD command to include in: : : rc: \ someFolder \ script1.sql: rc: \ someFolder \ Script2.sql < / Code> etc. View

What is the version number field in the output of the linux file command -

Text after "div class =" itemprop = "text"> If I compile the following command on my execution on Fedora Core 11, called "version", I will use this product < Version: ELF 32-bit LSB execution, Intel 80386, version 1 (SysV), dynamically linked (uses libs), GNU / 2.6.18 for Download Who THEY should version is any use to distinguish? Whatever I have seen, it is definitely not kernel version Libishy version Something Also do with lsb_release I want to get some easy identifier to allow customers to know which binary release they should be able to download, which they should be able to identify the ideal By typing a command (such as uname -a, although this is not clearly in this case). Thank you This is the kernel version of the machine that is binary compiled < / Em> was turned on. If you use precompold binaries from your distribution, then this distribution is the kernel version of the vendor's machine, perh

rhino mocks mocking a call -

I have a method that I want to test that hits the database with a fake use of what I've read To have the perfect oppurtunity. However, the problem I am facing is that I pass an object to a string and then it creates an object and hits DB with this object. Public Zero Test (String T) {Test T1 = New Test (T); Db.Save (T1); } Then I have a test in: using (joke record) {hope. Call (db.Save (???))} Having trouble - what do I expect from here? A call: Expect.call (db.Save (New Test (T)) does not work. That I am new to joking, this can be a simple question, but any help would be greatly appreciated. thanks public zero test (string t) {test t1 = new test (t);); Use of "=" text => (Junk Record) (Hopefully Call (DB.Save (T1)); (Spider Playback ()) {DB Save (T1);} Funny. Verify ();} But this is probably to be limited. Then you can actually define the criterion which is to fill the argument. For example: using (joke record) {test example. Com

PHP Inertia framework i didn't find much information from the web -

Is there any idea about any PPI inertia structure? How do you rate it? Google has not helped me know the manual. It should be, but this is not visible like this framework is no longer maintained . The first and only release took place in 2007. Their spam was filled. You can see one of the other frameworks:

html - How to prevent multiple inserts when submitting a form in PHP? -

Sometimes the user can press twice, and the post is thrown twice. Is there a solution to stop other than paying attention if there is already a post with a title and content ? There are several solutions to this problem: < Strong> Use Javascript button to disable form deposits when posted. To do this, it is very easy to submit the form without actually clicking the button, and it will not work with javascript disabled people. I will definitely not recommend this method. Example: & lt; Script language = "javascript" & gt; & Lt ;! - Disable the FunctionBitButton () {// You can fill the empty space :)} - & gt; & Lt; / Script & gt; & Lt; Form action = "foo.php" method = "post" & gt; & Lt; Input type = "text" name = "bar" /> & Lt; Input type = "submit" value = "save" onclick = "disableSubmitButton ();" & Gt; & Lt; / Form &a