Posts

Showing posts from February, 2014

JQuery AJAX Call with Unicode. Proper way to POST Unicode data? -

I have a page that posts AJAX to the server, and often the data will be unicode. It works most of the time, but it appears that sometimes it is breaking and I can not get the answer anywhere. I'm using encoder, but I'm not sure it's right. Here is an example of code: $ .ajax ({type: "POST", Url: "SomePage.php", Data: "val1 =" + Encodeuri (unicode-navable) + "& amp; Presentation =" + someUnicodeVariable, success: function (msg) {}}); I think what's happening sometimes in a Unicode character is a & amp; Thank you. post-text" itemprop = "text"> here A good way to compare all the encoding methods. Finally, the encodurac component () method should be used in most cases when a component of a URI is encoded, this method will encode some characters Which will normally be identified as a special character for the URI so that several components can be included. Note that this method do...

c# - UpdatePanel and Repeater render page unresponsive after post-back -

I have an UpdatePanel page wherein the repeater has a repeater with a number of objects and a text box when I value If I change, then posting back the page and underline the repeater with the number of updater items. It works in principle, but the page post is frozen after the back and does not accept any input - only in IE8 It works perfectly fine in Firefox. For example, the context menu is not visible when I right-click on the controls, and I can not enter text in the text box. When I remove the update panel, the page works fine, but definitely refreshes. Each post back event is not related to the repeater on this page. I think I see it on other pages. What's the trick here? & lt; Asp: UpdatePanel id = "uPanel" runat = "server" UpdateMode = "conditionitional" EnableViewState = "true" ChildrenAsTriggers = "true" & gt; & Lt; ContentTemplate & gt; & Lt; ASP: Panel ID = "Panel 1" Runat = "S...

c# - See the SOAP request from Proxy class method calls -

I am using .NET 2.0 web services. If I add a reference to WSDL and call proxy class method, then what is the easiest way to send SOAP to VAS? For example, I added the PayPal WSDL web service reference and as the call: PayPalAPIAASoapBinding _client = new PayPalAPIAASoapBinding (); ... rest code and then setExpressCheckoutResponseType checkoutports = new SetExpressCheckoutResponseType (); Checkoutrespons = _client.SetExpressCheckout (request); // here calls I tried to set a debug point on line 2 but it is not certain how to drill to see SOAP. Obviously I can use something like Fiddler, but during debugging I want to use Intellisense to drill under the object on which the request is made. I think the customer will be it, my example is above but it was not found. Client is an example of PayPal service. I see that when I drill in the base class, the PayPal API is a binding that is a variant property but I can not accept it for: System.Web.Services .Protocols.SoapProtocolVer...

imagemagick - Paperclip save images as jpg with white background -

I know how PGG and GIF files change with JPG with alpha channel as JPP with white background I tried to do it, but it does not work - hatatised_file: photo,: whiny => false, styles => {: medium => ["300x300>": jpg] : Thumb => ["100x100>" ,: jpg]} ,: convert_options => {: all => '-the white white background white'} saves this file with a gray background Thanks - remove ELL-back ground white better white -alpha There is no valid argument for .

How to use javascript or jQuery to quickly select a preset of multi-select listbox items? -

Say that the index '1,3,4,5,12' and a multiple in my page- 12 items in it Select the list box containing. What is a quick way to use Javascript to tell the list box to select all the items in those indexes? How would this be done using jQuery? For example, if the user associates the 'cannimal' preset with the 'candy' listboxes, then he will select all the candy bars of candy ... I think you get this idea. This can do the trick: & lt; Select id = "select" multi = "multiple" & gt; & Lt; Option value = "1" & gt; Test 1 & lt; / Options & gt; & Lt; Option value = "2" & gt; Examination 2 & lt; / Options & gt; & Lt; Option value = "3" & gt; Examination 3 & lt; / Options & gt; & Lt; Option value = "4" & gt; Exam 4 & lt; / Options & gt; & Lt; Option value = "5" & gt; Exam 5 & lt; / Options & gt; ...

winforms - C# Textbox AutoComplete: Limit to ~50 suggestions -

I am working with a text box in C # which is a database (Access SQL) record lookup by ID number Functions as input. I want to be able to use autocomplete on the text box, but some limitations. The big problem is that the number of IDs in the system is on the order of thousands, so once instead of filling the full box full of them, I need to pay attention to what is in the text box And when there are options 50 or less then only show autocomplete suggestions Currently, I'm querying this on each key down menu: select WHERE ID from the table 'textbox.text%' When the calculation is less than 50 I Autocomplete with results from a selection ID version of the device. This has caused me many problems, most C # quirks I do not understand. 1) When I clear or add autocompleteCustomSet within a single KeyDown event, the actual key is not pressed into the string added (i.e. the normal text box does not behave in the input). 2) I tried to isolate completely the set up updat...

Designing time Sheet grid a like web User control using Repeater -

I want to create a time-saver grid using repeater controls It's like a layout Activation code | Name of activity | March 16, 2009 | March 17, 2009 | ..... n 101 activity 1 10 hours 10 hours ...... n Note here that column column will be decided = "text"> check out

helpers - Help with asp.net mvc and Select List Dropdown -

I want to create this dropdown with these specific attributes .. How can I do this? Employees of each company using Im LinqToSql & lt; Select name = "companies" id = "companies" category = "selection"> & Lt; Option value = "" & gt; - Select - & lt; / Options & gt; & Lt; Option value = "1" headline = "company1" & gt; Company 1 & lt; / Options & gt; & Lt; Option value = "2" title = "company2" & gt; Company 2 & lt; / Options & gt; & Lt; Option value = "3" title = "company3" & gt; Company 3 & lt; / Options & gt; & Lt; Option value = "4" title = "company4" & gt; Company 4 & lt; / Options & gt; & Lt; / Select & gt; & Lt; Select name = "employee" id = "employee" class = "selection" & gt; & Lt; Option value = "" & gt; - ...

php - PEAR on Windows: How to change pear.ini location -

I try to install a peer package on a Windows 7 64-bit in my recent XMP PHP installation (PHP 5.3.1) I am doing Installing new packages fails because the pear tries to use c: \ windows \ pear.ini instead of the current c: \ path_to_xampp \ Php \ pear.ini . This result (right) has permission denied error as I'm logged on as administrator but enjoys some additional security IIRC in the Windows directory. Instead of filling with the right to write in the Windows directory, I would like to use the existing pear.ini file. Does anybody know that according to the behavior of PAR? Not entirely sure but registered by PAR .... REGEDIT4 [HKEY_CURRENT_USER \ environment] "PHP_PEAR_SYSCONF_DIR" = "\\ webserver \\ XAMPP \\ php D" key in my machine's registry following / pre> and pear / config. Php contains the following piece of code: if (getenv ('PHP_PEAR_SYSCONF_DIR')) {defined ('PEAR_CONFIG_SYSCONFDIR', getenv ('PHP_PEA...

java - Spring security openid on Google App Engine -

How does Spring Protection OpenID work on any Google app engine? I tried to do this, but a java.security.AccessControlException: access denied error. Only about the premises, I know that experiment is being used instead of spring security.

core animation - How to get the "dashboard" ripple-effect and closing-effect for UIViews? -

मेरा प्रोजेक्ट एक बटन प्रेस के साथ एक UIView जोड़ता है। जब सबव्यू दृश्य में जोड़ा जाता है तो क्या डैशबोर्ड रैपल-इफेक्ट प्राप्त करना संभव है? साथ ही सबव्यू इनके साथ बंद किया जा सकता है: removeFromSuperview । डैशबोर्ड विजेट का समापन प्रभाव कैसे प्राप्त कर सकता हूं (जब आप एक्स पर दबाते हैं)। चेतावनी : लहर प्रभाव को अनुपयुक्त है इसलिए आप इसे ऐपस्टोर में नहीं उपयोग कर सकते हैं। 3.1.2 के रूप में, आप के साथ एक लहर संक्रमण प्रभाव का उपयोग कर सकते हैं। [UIView शुरूअनुमतियाँ: @ "संक्रमण" संदर्भ: NULL]; [UIView सेटऐनिमेशन ट्रान्सिशन: 110 forView: myViewContainer कैश: हाँ]; // यहाँ सबव्यू जोड़ें। [UIView commitAnimations];

html - How do you vertically align images within a list or a div? -

मेरे पास कुछ चित्र दिखाने के लिए निम्न कोड है: HTML: & lt; div class = "footer-logos" & gt; & LT; ul & gt; & Lt; li & gt; & lt; img src = "/ sites / default / files / imagefield_thumbs / सभी कान कंबोडिया लोगो_1.png" alt = "" वर्ग = "पहले" & gt; & lt; / li & gt; & Lt; li & gt; & lt; img src = "/ sites / default / files / imagefield_thumbs / एमएलएफ rev.jpg" alt = "" class = "" & gt; & lt; / li & gt; & Lt; li & gt; & lt; img src = "/ sites / default / files / imagefield_thumbs / TAMTF ए.जे.पी.जी." alt = "" class = "" & gt; & lt; / li & gt; & Lt; li & gt; & lt; img src = "/ sites / default / files / imagefield_thumbs / unltd-logo.png" alt = "" वर्ग = "" & gt; & lt; / li & gt; & Lt; li & gt; & lt; img src = "/ sites / default ...

Using JQuery in lost focus event handler to identify which row in GridView has modified text -

मुझे एक मानक ASP.NET GridView के अंदर ItemTemplate में एक टेक्स्टबॉक्स मिला है। टेक्स्टबॉक्स (DevExpress से) क्लाइंट-साइड इवेंट 'LostFocus' का समर्थन करता है LostFocus ईवेंट हैंडलर से, मैं उस टेक्स्टबॉक्स के मान को पुनः प्राप्त करना चाहूंगा, साथ ही ग्रिड की उस पंक्ति में कई अन्य फ़ील्ड के मूल्य को प्राप्त करना चाहूंगा, ताकि मैं उस गणना में परिणाम के साथ उन अन्य फ़ील्ड को अपडेट कर सकूं। क्या किसी को पता है कि मैं क्लाइंट-साइड हैंडलर में पंक्ति की पहचान कैसे कर सकता हूं ताकि मैं सर्वर पर जाने के बिना उस पंक्ति के मानों को पार्स कर सकूं? अधिमानतः jquery का उपयोग कर ताकि मेरे पास प्रत्येक ब्राउजर के लिए अलग जावास्क्रिप्ट न हो। अगर आप सुनिश्चित करें कि कोई & lt; tr & gt; पाठ बॉक्स और ग्रिडव्यू की पंक्ति के बीच तत्व नहीं हैं, तो आप यह कोशिश कर सकते हैं: var पंक्ति = $ (textbox) .parents 'टीआर: पहले'); यह मानते हुए कि आपके पास पाठ बॉक्स वर् है जो अविकसित पाठ बॉक्स के DOM तत्व का प्रतिनिधित्व करता है। ध्यान दें कि इस तरह से पंक्ति एक jQuery ऑब्जेक्ट क...

httpwebrequest - post form parameters difference between Firefox and Ruby Mechanize -

I'm trying to figure out whether the mechanized correctly post query sends. I want to log in to a forum (please see my second question) but I only get the login page. I can see that the Firefox parameters like auth_username = myusername & amp; Auth_password = mypassword & amp; Send a post with auth_login = login but my script auth_username = radek & amp; Auth_password = mypassword This is okay or & amp; Auth_login = Login should be present in the part? When I tried to use it using login_form ['auth_login'] = 'login' I got an error gemstone / mechanization -0.9.3 / Lib / Www> It seems that auth_login is a form of i button not field (i do not know what it means) [# & lt; WWW :: mechanism :: form {name}} {method "post"} {action "http: //www.somedomain.com/login?auth_successurl=http://www.somedomain.com/forum/yota?baz_r= 1 "} {Field # & lt; WWW :: Instrumentation :: Form :: field: 0x36 946...

android - Needs to code when rotate the device? -

I'm getting the error when I rotate the device (it was HTC with Verizon): app (Process Com.Mempony.Android) has stopped the application unexpectedly. Please try again. So, I think I need the code for this issue in order words, when the device moves from landscape to portable or portable to rotate in landscape, Need to catch. Is that correct? How to do it? post text" itemprop = "text"> By closing Android activities by default Is given and restarts on a configuration change. The easiest way to do this is to add an app manifest. It will tell Android that you will handle the listed config changes themselves. For example & lt; Activity Android: name = ". YourActivity" android: label = "YourActivity" Android: configChanges = "orientation-keyboardHidden" /> In your manifest it means that the activity does not restart any orientation changes or if the user has removed one keyboard.

c# - Serializing Generic Classes -

I have read that serializing common sections have not been excluded from the box with XMLRRI. First I want to know why? What is difficult about generic classes, which makes them non-plug-play-all other sections like. Second, there is a framework that will allow me to sort my normal class without any work. (My generic class is quite included.) XML-raster is hardly the standard serialization method (when Till that nothing changes and nobody told me!). You have not actually told that you want to serialize the format, but since you mentioned XML, I would consider XML. You can use it for this. It should not be a problem with the normal type, and not all is very difficult to use. Just remember the markup with your class with the datacontext and database features, such as you were using WCF.

bash - Un*x shell script: what is the correct way to run a script for at most x milliseconds? -

I am not a scripting expert and I was wondering what an acceptable way to run the script in maximum x milliseconds (And still ends before X Milliseconds if the script is done before the expiry of time). I have solved this kind of problem in a way that I think is very dangerous and I am surprised that there is a better way of doing this. Actually I get a shell script sleep_kill.sh which takes the PID as the first argument and gives its second argument as a second time And it does this: kill $ 2- $ 9 2 & gt; / Dev / null 1 & gt; / Dev / null So if PID matches a script that is before the expiry of time, then nothing is going to kill (I think the OS It will not be time to reuse this PII for another [unrelated] process that 'Cycling' is done before using it again through all the process IDs.) However, I I can call my script "Hang" or Time Sitting up can be: Kmmand_thet_may_hangks PID = $! Sleep_kill.sh $ PID .3 Wait for $ PID & gt; / Dev / ...

sql - Why doesn't this select statement, setting a variable, work? -

मैं इस तरह एक संग्रहीत कार्यविधि लिख रहा हूँ .. घोषित @avg float set @ Avg = videorating से avg (रेटिंग) चुनें जहां videoid = 4 क्या मैं इसे इस तरह लिख सकता हूँ? क्या मैं इसे @avg? कोड> घोषित @ एविग फ्लोट videorating से @ avg = avg (रेटिंग) का चयन करें जहां videoid = 4

javascript - Close iframe cross domain -

I am trying to do something similar to a clipper application I can appear in iframe Another website (cross domain) but I can not make the "close" button to work. This is what I used to do but it does not work for the cross domain (basically removes the iframe element) window.parent.document.getElementById ( 'SomeId') parentNode.removeChild (window.parent.document.getElementById ('someId')). Can you help? Thank you. You should use such a library, which is the summary (e.g., not tested) . Piece ID messages can not work in all browsers, and there are better ways, such as However, using your example (klipper) hack, it can be a cross-browser, provided your page with iFrame is at the top level. In other words, there are two levels, in fact, parent.html & lt; Html & gt; & Lt; Top & gt; & Lt; Script type = "text / javascript" & gt; Function CheckForClos () (if (window.location.hash == "#close_child...

java - Could not access php session variable once the tomcat restarts -

I am developing an application in Java that needs to integrate some PHP files under the Tomcat server. I have succeeded everything, but the problem is that when I show some error with the shutdown tomatat server exception in the thread "JavaBridgeSessionTimer" java.lang.NullPointerException php.java.bridge. SessionFactory $ Later if I start again, then I can not use any session variable. From php files I tried a simple php program that ran within Tomcat. This problem will be solved after restarting the machine, but I do not want to do this often for any changes in any configuration files in the tinker. session1.php & lt ;? Php session_start (); ? & Gt; K & lt; Body & gt; & Lt; Html & gt; & Lt; Form action = "session2.php" method = "post" & gt; & Lt ;? Php $ _SESSION ['name'] = "Mernam"; ? & Gt; & Lt; Input type = "submit" value = "submit" & gt; & Lt; / For...

sqlite3 - can sqlite load 10M data into the memory -

If this is possible, then how? I can not read the writing in the slit thanks Yes. The size of the default page size in pages in SQLite load data is 1024 bytes. You can change the page size using this command. PRAGMA page_size = bytes; But before creating the database you have to do this (or in 3.5.8, you can change this by running a vacuum after issuing new page size programmers). The cache is based on the number of pages the default cache size is 2000 page, you can change it by using this command. PRAGMA cache_size = Number of pages; To store 10 MB of data in memory, either increase the page size to 5120 or increase the cache size to 10000. Here's more information on the progames.

java - How to define index by several columns in hibernate entity? -

In the morning. I need to add indexing to the hibernate unit. As I know it is possible to use index annotations to specify the index for different columns, but I need the index for many areas of the unit. I've got googled and jboss annotation @table, which do this (by specification). But (I do not know) this functionality is not working that the jboss version is less than necessary, or maybe I do not understand how to use this comment, but ... a complex index has not been created. Why the index can not be made? jboss version 4.2.3.GA unit example: package somepackage; Import org.hibernate.annotations.Index; Import javax.preistence.Column; Import javax.preistence.Entity; Import javax.preistence.GeneratedValue; Import javax.preistence.Id; @ Entity @ org.hibernate.annotations.Table (Apply = House. TABLE_NAME, Index = {@ Index (name = "IDX_XDN_DFN", column name = {house. XDN, House.DFN})} Public square house { Public last fixed string TABLE_NAME = "home...

.htaccess - Deny Access to directories from unauthorized users -

I am not being paid for this and I want to know the fastest way to do the following. A former customer has a page that only members can access. This page links to multiple galleries, in which it only wants access to members. The galleries are not protected by any type of authentication. I think the fastest way to do this is to create an .htaccess file which allows people to view the site when only a certain referrer comes from it. Will this work? My current thinking is that I can use a php script to deploy the .htaccess file in every single gallery directory. (At this time there are about 100.) I found this link which could happen to me after that but honestly I did not really get it. Is my thinking sound? Can anyone link me to a tutorial that does this or show me how it is done. As always, a huge thanks for any help. > Jason

PHP: how to stop ignore_user_abort, is it a good solution for long run program -

Assume that I've sent an e-mail program, which needs to run around 7 hours. ignore_user_bort () Will this be a solution? When all emails are present, the script will be closed Some people said that you may need to add some output at the end of the program, will the program run forever? And some people also said that a lit bit string will not stop the echoing script, but its use ob_flush, what is the example? You do not want to run the same PHP process on your machine for only one seven hours. This probability will leak memory at all places. Break e-mail into sections and / or , unexpected_gers_bort only applies to PHP CLI.

Check which JavaScript function is run after clicking button in Internet Explorer -

Is there a way or tool to run which function can be run after clicking on a button in Internet Explorer? Try IE8 script debugger (under Developer Tools (F12)). There are several tabs in the developer tool, one of them is "script" where you need to use the "Start debugging" button (it changes to "Stop debugging" as shown in the screenshot), and then "Pause" ( Find a button with the = ) symbol, note the same toolbar that allows you to set a "brake on the next instruction" is; Do this and Debugger will be executed on the next line of JS. If you move through all the event handlers for the button, you will see what has been said there. If you have some control over the page, you will want to disable the mousewire and similar handlers, also the debugger will trigger.

c# - Securing controller action in ASP.NET MVC -

In order to protect the controller operation, in ASP.NET MVC2, I used a class required key Inherited from action filter attribute class. Controller action looks like [requisition (permissions = "canview")] Public action list () {...} I have There is a value with permissions public enum permissions {CanDoEdit, CanView, CanInsert} requirement performance class looks public class requirement display: verb filter attribute {public string permissions; String [] param = {","}; Public override zero OnActionExecuting (ActionExecutingContext FilterContext) {string [] requires submissions = permissions Sample (Ultimate, String Split Option. RemoveEmptyEntries); If (Required. Permissions.Controls (Permissions.Condo Editing.ToString ())) {// Check Permissions} (Required) Presentation (Permissions.Convolution.tostring ()) {// Check Permissions} If necessary (instead of creating different attributes, I want to use the attribute like RequirePermission ...

c# - DivideByZeroException too slow -

यह बहुत धीमा है: कोशिश {x = k / y; } पकड़ (डिवाइडबीज़ियरएक्सेप्शन) {} यह लगभग 5x तेज है: यदि (y & gt; 0) x = k / y; क्या कोई मुझे बता सकता है? केवल 5 गुना तेज ? तुम मुझे आश्चर्यचकित करते हो संभवत: इसका मतलब है कि आपके नमूना डेटा में इसमें कई शून्य नहीं हैं। अपवाद सरल तुलना से ज्यादा महंगे हैं। जब सही तरीके से उपयोग किया जाता है (यानी असाधारण परिस्थितियों के लिए) वे प्रदर्शन में काफी हद तक नज़र नहीं आते हैं - क्योंकि यदि आप बड़े प्रभाव बनाने के लिए पर्याप्त अपवाद फेंक रहे हैं, तो संभावना है कि आपकी सेवा पहले से ही बंद हो गई है करता है एक समस्या का कारण बनता है जब आप ऐसे परिस्थितियों को अनदेखा करने की कोशिश करने के लिए अपवादों का उपयोग करते हैं जो आप आसानी से शुरू करने के लिए परीक्षण कर सकते हैं - इस तरह से। अपवाद: डीबगर में जुड़ा हुआ डिबगर के बिना चलने के मुकाबले उन्हें बहुत ज्यादा लागत होती है; विशेष रूप से पहला अपवाद जो संसाधनों का एक गुच्छा लोड करने की जरूरत है, माइक्रो / मिलिसेकंड्स के बजाय सेकंड ले सकते हैं। यदि आप बेंचमार्क कोड पर जा रहे हैं, तो यह म...

java - Difference between getLocalPort() and getServerPort() in servlets -

मैं सर्वलेटों का अध्ययन कर रहा हूं, मैं getLocalPort () और getServerPort () । getLocalPort () का अर्थ है सर्वर साइड केवल तभी getServerPort () धन्यवाद एक साधारण सेटअप में (जहां आपका एप्लीकेशन सर्वर / सर्वलेट कंटेनर सीधे क्लाइंट के अनुरोध को स्वीकार करता है) दोनों तरीकों से एक ही मान वापस आ जाएगा। जब सर्वलेट कंटेनर क्लाइंट अनुरोध को स्वीकार करता है कि वह अनुप्रयोग नहीं है (उदाहरण के लिए जब आप अनुरोध को स्वीकार करने के लिए एक अपाचे HTTP सर्वर का उपयोग करते हैं और अनुरोध को स्वीकार करने के लिए और एजीपी के द्वारा टॉमकेट इंस्टॉलेशन को अग्रेषित करने के लिए), तो बंदरगाह से जुड़े ग्राहक (शायद 80, जब डिफ़ॉल्ट पोर्ट का उपयोग किया जाता है) और वह पोर्ट वापस करेगा जो टोमकैट HTTP सर्वर से कनेक्शन को स्वीकार करने के लिए प्रयोग किया जाता है (संभवत: 800 9 या ऐसा कुछ)।

asp.net - RadioButtons, ListViews, and Grouping, oh my! -

I am getting a project on which I am working where I have to put a radio button inside the list button, and all of them There is a similar group name (radiobuttonist, can not use long story). Anyway, this is a well-known bug. NET, so I implemented the solution found here: It works perfectly, but with a small bug which will undoubtedly come back to bite me if I have a radio button I click on, and then the JavaScript function is still running and is not complete, then click one more; I can get 2 redboots in the same group. Any thoughts? If you need clarification; Leave me a comment and I will update my post. Edit: I believe I have fixed my own problem here. Will this work be something like this? if (! RbClicked) rbClicked = True; RunJavascript (); RbClicked = false; I believe that I did not do much, but in this way I have usually solved this type of problem.

JBoss transaction timeout setting? -

We have a timer service triggered task in the Jabs 5.1.0.G.A. application and the problem is that we have a transaction- Can not change the time of transaction out It may take longer than the default 300 seconds limit for Lucene indexing. The question is how can the timeout value change, which adds @TransactionTimeout (1800) to the worker method or the class has no effect. EDIT: Deployed / Transaction-jboss-beans.xml works fine: But the annotation does not seem to have any effect on either the launch of the timer or the normal Stateless EJB. I'm using EJB3 with IJb3 5.1.0.GA and successfully set this code to . 300 & lt; Property Name = "Transaction Timeline" & gt; The default was 300 & lt; / Property & gt;

Performance cost of coding "exception driven development" in Java? -

Is there any display cost to create, throw and hold exceptions in Java? I am planning to add 'exception-driven development' in a big project, I want to design my exceptions and would like to include them in my ways, to help the developers catch up and do the right thing Will be forced into For example, if you have a method of obtaining a user from a database based on a name. public user getUser (string name); However, it is possible that the user may be null and forget to check it before using the user's public method. User User = GetUser ("Adam"); Int age = user.getAge (); The result will be nullion-exeption and crash. However, if I made a check before returning the user-object, then throw it off and tap 'UserIsNullException': Public user throws UserUsNullException (get string name); I force the applicant to think and act: try {user user = getUser ("adam"); Int age = user.getAge (); } Code (UserIsNullException E) {} ...

matlab - comparing modem.oqpsk probability error and ber -

hi वर्तमान में मेरे पास मेरे matlab में निम्न कोड है values ​​= [0; 1 ; 0; 0; 1; 0; 1; 0]; % में केवल 0 एस और 1 एस एच = मॉडेम। ओकक्स्केमोड हो सकते हैं; Y = कमांड (एच, मान); जी = मॉडेम। ओक्सास्कडमॉड (एच); Z = डिमोड्यूट (जी, वाई); बीईआर = योग (तार्किक (मूल्य (:) - z (:))) / अंक (मूल्य);% gnovice के लिए धन्यवाद! अब मेरा प्रश्न है कि मैं इस बीईआर की तुलना OQPSK की संभाव्यता त्रुटि में कैसे कर सकता हूं? ऊपर के मॉड्यूलेशन / डिमोड्युलेशन प्रक्रिया के माध्यम से आपके द्वारा मानों के विभिन्न सेटों को चलाने के बाद, परिणामस्वरूप औसत बीईआर उपाय है एक अनुमान एक त्रुटि उत्पन्न होने के लिए बिट-वार संभावना की। शायद आप ऊपर के अनुमान की वास्तविक व्युत्पन्न सूत्र की तुलना करना चाहते हैं अपेक्षित त्रुटि दर है? कहते हैं कि QPSK के लिए बिट-एरर की संभावना (और मैं भी OQPSK के लिए मानता है) सूत्र द्वारा दी जाती है: Pb = Q (sqrt (2 * Eb / N0)); जहां फ़ंक्शन Q और पैरामीटर Eb और N0 का वर्णन किया गया है।

regex - Searching for a regular expression in Eclipse (finding all links without an onclick attribute) -

I am trying to create an appropriate regular expression to find all the anchors in my project with Eclipse File Search. What I'm looking for: & lt; A href = "some.url" onclick = "some onclic handlers" & gt; What do I want to achieve, without getting any anchors all anchors and adding it when necessary. Thank you for your help! You can regex & lt; A href = "\ S +" ((?? Onclick).) * . It will find all the links without the onclick pattern Short description for the interesting part ((?? Onclick).) * : ?! Onclick is a means it means that the regex engine will match if the word is not onclick in it. The surrounding ( and .) * tells the Regex engine, that onclick exegesis can be surrounded by any other character.

Dynamic load data on scroll -

I am working on a web application, where we have to show more than 20,000 rows in the same page. What is the best way to achieve this? According to the requirements, we can not use pointing on the page. We are looking at alternatives like live scrolling in Adobe Flex .. Is there any other framework that helps in making this work efficient and easy? I found this tutorial when I was surfing. I think this is what you need :) Cheers.

sql - Is it possible to store '' (empty string) as a non NULL value in the database? -

I am using Oracle DB at the database level, when you tap the column value or '' (empty string) If set, the faked value is taped in both cases. Is it possible to store '' (empty string) in the database as a non-zero value? I execute it UPDATE contacts SET last_name = '' WHERE id = '1001'; Committed; SELECT Last_name, contacts with id WHERE id = '1001'; LAST_NAME ID ------------ ------ zero 1001 Is it possible to store the last_name as a non-zero empty string (' ')? The only way to do this in Oracle is with any type of assistant flag area, when set It is believed to represent the fact that the value should be an empty string.

database - MS Access: programmatically rename columns -

I need to update all column names in the access database of 8 tables. In short, each underscore in column name Should be replaced with the location. Can you recommend a quick way to do this? I wrote the code for an app last week: public sub RenameFields (TDF DAO.TableDef as ByRef) dim fld DAO.Field dim strFieldName string dim strNewName string "========== as as as DebugkPrint === ================================= "& amp; VbCrLf & amp; UCase (tdf.Name) select FLD tdf.Fields strFieldName = fld.Name strNewName = Middle (strFieldName, 4) for each episode Left (strFieldName, 3) episode "Boo", "here", "CUR" " Dat "," Haif "," Int "," Mem "," Oz "," TCTT "FDL. Name = StrNeweweb debug.print TDF. No & amp; "." & Amp; StrFieldName & amp; "= & Gt;" & Amp; Select strNewName End Next fld set FLD = Nothing End Sub In this case, it was used t...

ruby on rails - Is it safe to ignore the "Has no specification file" warnings -

I recently placed my gem management on the bundler, by doing this I saw the following errors (though my app is ok Running): config.gem: Unexpected gem environment in vendor / gems. RB does not have any specification file. To fix this, run 'Reck Gems: Refresh_Spex'. Config.gem: Unexpected gem environment Seller vendor / gems not in a version directory. Surrender. Config.gem: There is no specification file in unpacked gem Ruby in vendor / gems. To fix this, run 'Reck Gems: Refresh_Spex'. Config.gem: Unexpected gem in the seller / gem Ruby is not in a version directory. Surrender. I've seen the post, saying that I can ignore them: Is this really the case, do I safely ignore these warnings? Can i do If you are using rail then you should use something: bundle_path 'vendor / bundler_gems' Rail 2.x expects jewels of gems for its vendors / gems. The clarity files in them because they store their unexpected gems.

google play - Why I can't purchase my own application on the Android market? -

I have just uploaded my application in the market, but I can not afford it (this is a payment app) . I have seen that it is made of design , but then why try the error message server error again ? Is there any way to bypass it? Do you have an Android Developer Phone? If so, then you can not buy your own app through the design. Since ADP is unlocked, there is nothing to stop the ADP from downloading an app easily, so they intentionally cut off downloading paid apps.

PHP PEAR Validate Package - Fatal error: Class 'Validate' not found -

This is what I am getting the error: Fatal error: class 'valid' No C: \ xampp \ htdocs \ end_project \ validate.php found on line 5 And here is my PHP code: I do not know what I'm missing. I have installed the option for the installed package, and the path in the peer is also correct. Validate_CA is not giving me any errors, but it is not properly valid either. PHP parses in sequence, priority means that when a relative path ,,,, Or if PHP is passed then the first directory will start appearing. If the file is found then it is included if not, then it will continue and repeat the process. The routes included in the following: include_path = ".: / Php / include: / php / pear" and The following PHP scripts: & lt ;? Php is required ('MyFile.php'); PHP will look for MyFile.php in the following order: ./ MyFile.php (Current directory) /php/includes/MyFile.php /php/pear/MyFile.php You can not load valid.php...

html - Styling an anchor tag to look like a submit button -

I have a form where "submit" button and "cancel" is anchor. I HTML is: & lt; Input type = "submit" value = "submit" /> & Lt; A href = "some_url" & gt; Cancel & lt; / A & gt; I want to see and do the same thing for both. Nothing fancy, just look at the "How to Ask Questions" anchor anything on the stack overflow. I can hover the bounding box, background color, and background color to look at both of them alike, but I can use height and vertical alignment to play well with each other. Can not get enough. I will post my CSS but there is such a disturbance at this point that I think it may be easier to start with scratch, the CSS layout of a ladder is working, then proceed from there. I know that I can use one instead of an anchor and hook onClick events to delete again. At this point it is almost a matter of principle that this is the use of an anchor (and there are web spider ideas to pay att...

Custom Right Aligned StackPanel control layout in Silverlight -

I am trying to create a custom layout container, with the same feature of the stack panel, with the exception that this screen Items starting at the right edge of it is not right to say that it does not work properly. I have identified a defect in ArrangeOverride (), where the line point elementOrigin = new point (this. .formed size, 0); Just makes a point 0, 0. In other words it Diazed Sisiiv With = 0. I understand that the phase of measure takes place before the arrangement stage, so I hope that this control sets the property of the desired property. How do I start the presentation from the right side of the screen? Is this also possible? The second, final sys argument passed in the function is much larger than the required area for the three buttons which I have defined in the test xaml. By 1676 909 needs something, something 250 to 60 or something else Thank you. This is my code: Protected Override Size Measurements (Size Available) {Size Available Space = New ...

Send HTML email in BizTalk with multiple pdf attachments with SMTP adapter -

itemprop = "text"> In BT 2006 R2, I have an orchestress that receives email properties like XML such as CC, Subject, html7 Filename for, file naming with 1 PDF files I want to send an email with the SMTP adapter with the HTML EmailBody and send it as an attachment 1. N. PDF files. How could this happen? You are actually asking three different questions here. How to send an HTML email to BizTalk How to add attachments for an email in BizTalk. How to read files dynamically in a BizTalk process. The easiest solution to release each address below - 2 - I avoided to deal with issue 3 in fact. Hope this will take you to the right path to solve it. Sadly, it is so comprehensive that I can not even give a "This is how you answer it", but if you hesitate, then come back and post more questions. How to send an HTML email in BizTalk In two ways I know how to get it. One has to use the roosting class and assign it directly to your email body. It...

api - Authorize.net Integration -

I am trying to integrate Authorize.net into my site. I have set up and activated a test account in my test.authorize.net domain and have received my API key / login in my account in my configuration. I run my script through my API and I get a fair success message that they have received notification. However, every time I log into the test.authorize.net domain and search for the transaction through their Search tab, I still do not provide anything regardless of the criteria. Unstable transaction This is where they will be. FII, Authorized.net Developer accounts are not actually processing transactions. They only validate that the data you sent through your API was valid and complete. If it is, then you will receive an approved response with a fake transaction number, acceptance and AVS response code (which is always a match). If you have created an invalid API call, you will be returned an error message to warn you of the error so that you can fix it. If you do not wan...

osx - Capture sound output on mac -

I am trying to shut down my screensaver from windows to Mac and its feature is responding to system sound output Was there. Direct sound was easy to use on windows, but I can not find any examples of capturing sound output on the Mac. Is it possible without writing something like kernel extensions? Flash is also very easy to use - it also gives the computeSpectrum method to get raw data or even get FFT transdated data. All the programs that I have already used or have their own kernel extension. But I do not think it is a good way to install separate programs or use kernel extensions. One thing that you can do, assuming that soundflowers are open source, how did it. You can not copy & amp; Peptter GPL code, but you can certainly study the techniques used and create your own solution (can point you in the right direction). You will not find Apple very useful. Sound capturing, in this way, can be used for all kinds of negligible purposes. I am also not sure that the c...

javascript - Browser Tab/Window tracking pattern? -

Is there an accepted pattern for tracking that a page is being loaded from a tab / tab window? Certain processes (such as the processes offered), which can greatly benefit from the ability to confirm that the same tab is asking for execution. For example, there are places where (between us) we store intermediate data in the memacka, but it can cause a problem without the problem that, unlike the data this process, If the user opens another tab / window on the same process. Div category = "post-text "Itemprop =" text "> If you use the query parameter (if you use GET requests) or the hidden field (if you use POST requests) or both, the status of the multi-step process (If you post-redirection, allow the user to refresh, open your browser). If you maintain a position on the server (eg in DB or Memcatch) you can place a query parameter or a "transaction key" in the hidden area. Be careful, though - in my experience, it is quite poss...

sql server - Is it possible to find the objects which depend on a synonym? -

I tried exec sp_depends @objname = 'sfel.elpc' but I could not find any results , But I know that at least one stored procedure has referenced the option. This code is better: from SELECTs sys.sql_modules Join INNER at sys.objects o at m.object_id = o.object_id WHERE m.definition '% sfel.elpc%' and type = 'P' This code gives you a more Gives limited list.

CSS drop down menu -

was trying to get a "pure CSS" dropdown displayed at the top level and hidden on the second level but the sub-items Can not be displayed on the hover ?? Your problem may be probably because you incorrectly created your html sub-menu ( .level-2 ) should be nested inside the .level-one li elements: & Lt; Div id = "navtree" & gt; & Lt; Ul class = "level-one" & gt; & Lt; Li & gt; & Lt; A href = "/ about /" title = "about" & gt; About & lt; / A & gt; & Lt; / Li & gt; & Lt; Li & gt; & Lt; A href = "/ contact /" title = "contact" & gt; Contact & lt; / A & gt; & Lt; / Li & gt; & Lt; Li & gt; & Lt; A href = "/ feed / latest /" title = "subscribe" & gt; Subscribe & lt; / A & gt; & Lt; / Li & gt; & Lt; Li & gt; & Lt; A href = "/ test1 /" title = "test 1 p...

Persisting Joda DateTime instead of Java Date in Hibernate -

There are currently Java date properties in my organizations. I'm starting often using date time for timekeeping and calculation. This means that I have to add my dates to the datetime objects and come back again. So I was wondering if there is no reason why I have java date objects instead of just storing my Jada DataTime objects? Please note that these institutions continue through Hibernate, I got the project, but I was also reading on the mailing list that it was not compatible with new versions of hibernation. And it seems that it is not maintained very well. So I'm thinking that it would be best to just change between date and date time, or if the datetime objects will be wise to continue. My worry is dependent on the poor maintenance library. EDIT: Note that one of my goals will be better in storing timezone information. To save only one date to save the date in the local timezone as my application can be used globally, I also need to know the time zone. The ...

iphone - CLLocationManager saying I moved 1200+ft when I'm still sitting in my chair -

I am getting awkward readings while using CLLocationManager I place on the report of wave / long, but distance away from travel is. I have implemented the following delegate method as follows: . H: CLLocationManager * mLocationManager; CLLocation * mStartDistance; .m: - (zero) Location Manager: (CLLocationManager *) Manager updated Tue location: (CLLocation *) from the new location location: (CLLocation *) oldLocation {NSLog (@ "% g", new location.Cordinate.latidadit); NSLog (@ "% g", new location. Cordinate lame); NSLog (@ "% g", new location.limitid); NSLog (@ "% g", new location. Current qualification); If (mStartDistance == zero) {mStartDistance = newLocation; } CLLocationDistance dist = [newLocation getDistancefrom: mStartDistance]; NSLog (@ "% g", dist); } And when I run it on my device, I get the following (late / long masks to protect the guilty / head): ] xx.xxxx] -yyyyyy] 0] -1] 0m] xx.xxxx] -yy.yyyy] 0] -1] 0m] ...

iphone - I can't seem to connecting any of my IBOutlets between IB and XCode -

I created a new iPhone project using the built-in "tab bar" template. I I added the code required for it: "IBOutlet for the above UI objects, @property, @ synthesis, and release". It saves and compiles without any error or warning. I try to hook-up my connection with control-drag, but none of my IBOutlets visible in the list is displayed. I can not "connect" an outlet to IB for my code (my IBS all connected is OK) What did I do? Imagine the issue that you need to tell the interface builder that the object you want to The UI is trying to connect to the objects that it has its own subclass. For example, if you select "Owner of the file" proxy object, "Owner of file" and go to Device -> Identity Inspector in the "Classroom" text field, enter the name of your custom subclass now IB is custom IOOletlet and IBTX knows to check the class header file.

objective c - NSImage acting weird -

Why is this code an image with a width of 0 and a height of 0? NSURL * artistImageURL = [NSURL URLWithString: @ ""]; NSImage * artistImage = [[NSImage alloc] initWithContentsOfURL: artistImageURL]; NSImage loads it fine for me, but the special image has corrupt metadata EXIF According to the data, its resolution is 7.1999997999228071e-06 dpi. In the NSImage file, the DPI respects the information, so if you try to draw the image in its natural shape, you will find something in 2520000070 pixels.

c# - List of notices, which control is best choice? -

I want to alert users what is going on and what to do to use a control. It's like a multiline text box, there is a notice in each line, such as: Connecting to the database ... Current Data Time: Enter Data in Database 10/1000 ... Data entered in the database is 20/1000 ... done ... Data entered in the database Current date time: I tried the textbox, but to manipulate several lines it Too complicated. Is there a better control to do this? If the text box was the best option, how can I do this? Thanks in advance! I will use a listback to set it to SelectionMode.None Add item items if you have There are enough rows to scroll around so you'll need to manually adjust the scrollbar below. Do this by setting the list box topindex for the number of lines - 1.

c# - how to get the path for executable file that started the application? -

I am working on a web application using C #, I know that How to give in the windows application The path to the executable file that started the application (if (!! (System.IO.File.Exists (application.StartupPath + "\ gsdll32.dll"))) But I do not know how to give that path Use the method in ASP.NET: var siteRootPath = Server.MapPath ("~ /"); There is another possibility to use fixed assets: path = hosting environment. Application physical path;

Understanding arrays in Objective-C / C -

मैंने सिर्फ अपना पहला कदम आगे बढ़ाया 1) रेखा = मूल [6] ; Forloop (i ... i ++) {मूल [i] = 7; } [बिल्ड एस्यूब्यूव्यू: मूल]; 2) रेखा प्रतिक्रिया [6]; - (आईडी) बिल्ड एस्यूब्यूव्यू: (लाइन []) मूल {* response = * origin; NSLog (@ "प्रतिक्रिया [1] =% ओ", प्रतिक्रिया [1]); NSLog (@ "मूल [1] =% ओ", मूल [1]); ........ .....} मुझे मिल रहा आउटपुट है: प्रतिक्रिया [1] = 0; & Lt; - मैं मूल मूल [1] = 7 के समान मूल्य की अपेक्षा करता हूं; लेकिन अगर मैं सूचकांक 0 पर मान मुद्रित करने के लिए कहता हूं तो मुझे लगता है कि मैं क्या चाहता था: प्रतिक्रिया [0] = 7; & Lt; - अब वे समान मूल हैं [0] = 7; मैं पूछ रहा हूं कि दो अलग-अलग मूल्य क्यों हैं? और भी, अगर मैं लिखूं प्रतिक्रिया = मूल; मुझे एक असंगत असाइनमेंट संकलन त्रुटि मिलती है? संक्षेप में, , सरणी के पहले तत्व को सूचक को सी "decays" में एक सरणी का नाम, और वह आपको परेशान कर रहा है। जब आप लिखते हैं प्रतिक्रिया = मूल; आरएचएस पर " मूल नाम" decays "टाइप करें ला...

coding style - Rails 3 : Anticipating migration for 2.3 beginners -

I'm beginning to run in Rails I use 2.3.X. I have just seen that Rail 3 has already been released [ Edit: Now in the release candidate! ] I would most likely eventually switch to it. 2.3 What should I do with normal coding, so that the switch is smooth as possible? Edit: I have done my homework and have read the release notes. For example: 1.5 new API Both router and query interfaces have seen critical, breaking changes. The previous compatibility layer is present and will be supported up to 3.1 release. This is not enough for the start of me like what will break? What can I do earlier in 2.3.X to avoid troubles later? My personal coding habits (I am using Rail since 1.2.x), here The API is a list of changes that you can guess. Avoid using Find (: All) : Model.find (: All) Model. Find (: first) Model.find (: Last) in favor of: model. All models First model. complex question Avoid composition complex questions in favor of designated s...

seam-gen and flex -

मैंने फ़्लेमिंगोड्स के साथ सीम और फ्लेक्स को एकीकृत किया है I mxml फ़ाइल से html फ़ाइल मिली है और मैं इसे वेबकॉन्न्टेंट फ़ोल्डर में संग्रहीत करता हूं, तो ठीक है I मेनू में 'योजना' नामक लिंक बनाना चाहते हैं। एक्सएचटीएमएल मेरा उद्देश्य उस एचटीएमएल फ़ाइल को प्राप्त करना है जब मैं इस बटन पर क्लिक करता हूं, मुझे नहीं पता कि इसके लिए क्या करना है, मैंने उस शीर्ष तत्व में कुछ test.xhtml बनाया है टेम्पलेट के लिए यह तत्व है कि मैंने टेम्पलेट 1 9 में दिया है और फिर मैं 'प्लान' लिंक के लिए उपयोग किया है जिसे मैं दृश्य = "/ test.xhtml" दिया था। जब मैंने उस लिंक पर क्लिक किया तो मुझे परीक्षा मिल रही है। फाइल जो हमारे एचटीएमएल फाइल भी शामिल है, लेकिन यह एचटीएमएल फ़ाइल कुछ निश्चित क्षेत्र में स्क्रॉल सलाखों के साथ आ रही है, केवल घटना है कि फिट होने के लिए बहुत सी जगह हैं कृपया मदद करें ...... मुझे सबसे पहले, आपकी पोस्ट पढ़ने में बहुत मुश्किल है कृपया इसे और अधिक पठनीय स्वरूपित करें। दूसरे, हम केवल अनुमान लगा सकते हैं कि जब कोई कोड नहीं देख सकता है तो क्या गलत है। ...

iphone - Disabling autorotate for a single UIView -

OK, it seems that it should be relatively simple, but I'm Googling for a better part of an hour , And I do not know what I need. I have a visual controller in which some different parts: a background view, a header view, and some buttons now, I want to rotate the header and the button properly (they do, when they want IAutorotateToInterface returns YES from ORIENTATION), but will not rotate the background view under any circumstances. Is there any reasonable way to do this? If you do not want to rotate the background scene, after which the background is changed to correct orientation. You have to turn off autorection for the view. There are no two ways about it. You have to handle the rotation of the buttons on your own. You can either create a good layout or put it on a scroll view for example and change its size. Either way, you have to add a supervisor to rotate yourself, [[NSNotificationCenter defaultCenter] addObserver: Self Selector: @Selector (Dicotate) Name...

Browser is not opening in blackberry 8900 application -

I am embedding the browser in a Blackberry application. In which I open my company website with some labels at the top. Working in the simulator, but not on the device. My device is: 8900 Please tell me how can I solve this problem? thanks crest Sample apps all agree That the device is connected through MDS through BDS server, which is correct in the simulator (using the MDS simulator) However, when testing on a device, you will need to use a different transport, if it is a BES Not connected to server. For example, in your 8900 you can use Wi-Fi or Direct TCP (and sometimes WAP2) on the carrier's basis. You will need to modify the entered URL in the connector. Open () so that it is the right logic to specify the type of network connection to install it for more information about how to set up an HTTP connection on different transports.

audio - Android AudioRecord and AudioTrack codec options? -

that I currently use audiotrack and Odiorekord classes in Android in. I use pure PCM data but I was wondering what my options are for other codecs? It seems that I can only encode and decode using AMR compressed? I would like to present audio sections set this type in: Assisi = new Odioikrord (Meediarekorder. Awdio Sors. MIC, 11025, Odioformat .CHANNEL_CONFIGURATION_MONO, Odioformet.ansiodiaidiaipiaidiaibi 66, BOF); Atrak = new audiotrack (Audio Manager. STREAM_VOICE_CALL, 11025, Odioformet .CHANNEL_CONFIGURATION_MONO, Odioformet.ansiodiaidiaidiaidiaibi 66, Bifrs, audiotrack. MODE_STREAM); So my question is how do I change the encoding from PCM to another supported codex? When I try to change the ENCODING_PCM_16BIT on the audio format, then I only have default or invalid encoding options with PCM options. For any tutorial on audio encoding and decoding audio, any link would be great if anyone appreciated this with any or any help here. Thanks Edit: I changed m...

php - Programmatically creating forms - default selected index of a select -

'limiter'] = array ('#type' = & Gt; 'Select', '#id' = & gt; Limiter, '# Option' => Array ('10 '=>' 10 ', '25' = & gt; 25 ', '50' = & gt; '50 ')); That works fine. However, how do I define the default selected index, so '25' is selected when the page is loaded? Whatever I pass through '#default_value' does not seem to work. Any advice appreciated! It happens via #default_value - if that does not work , Then there is another problem with your code for your attached snippet. Note that #default_value will work only on the first load of the page; After this, the value chosen by the user will be overridden. $ String ['limiter'] = array ('#type' = & gt; select ',' #id '= & gt; array ('10' = & gt; ' 10 ',' 25 '=> '25', '50' => 50;), '#default_value' => Seism...

asp.net - Point actions to the same view -

मेरे पास निम्न क्रियाओं के साथ एक नियंत्रक है ... सार्वजनिक कार्यवाही YellowList () सार्वजनिक कार्यवाही RedList () सार्वजनिक कार्यवाही BlueList () ये सभी क्रियाएं एक ही दृश्य मॉडेल (ListViewModel) को पॉप्युलेट करते हैं। मैं कैसे प्राप्त करूं उन सभी को एक ही दृश्य (एएसपीएक्स) को इंगित करने के लिए? धन्यवाद, ईटीएफएरफेक्स। आपकी कार्रवाई में दृश्य विधि के इस अधिभार का उपयोग करें: सार्वजनिक कार्यवाही YellowList () {ListViewModel मॉडल = GetSomeModel (); वापसी देखें ("दृश्य", मॉडल); } सार्वजनिक क्रियाकलाप रेडलिस्ट () {ListViewModel मॉडल = GetSomeModel (); वापसी देखें ("दृश्य", मॉडल); } सार्वजनिक लड़ाई रिजल्ट BlueList () {ListViewModel मॉडल = GetSomeModel (); वापसी देखें ("दृश्य", मॉडल); }

Any way to easily show a very large image in a Java Applet (using lesser parts)? -

I need functionality to show large images on Java Applet, without increasing the default heat space. I'm getting the "out of memory" exception when the big image is image. While reading while using Reed () using a bugfind image (which was expected to happen). To solve this problem, the first thing is to divide the large image into smaller parts. My question is: Does anyone have some suggestions in the direction of implementing this strategy (which includes showing the right part while scrolling the image)? Is there anything to support Java? Any examples? You should work with parts. The simplest way is the server provider is a small tile, which you can request as needed. If you do not leave yourself in the applet, load the image - split it into tiles and automatically autocode each tile into a byte stream, such as JPEng. Attach the rendered tile as a soft reference so that it may possibly be garbage collected late. If the rendered tile has been gcade, then...

Best practice for URL redirection in ASP.NET web application -

I have an asp page (Default.aspx) that shows the difference between two text files. It has two drop down lists (respectively id = "file1" and "file2" respectively) and a button (id = "submit"). There is also a lexical control with the id "result". The content of the list button is populated based on the files present in the physical application path. Each time the submit button is clicked, I want to give the result of diff / comparison in literal control, so I have an event handler like this: protected Zero Submit_Click (Object Sender, EventArgs e) {Results.First = Comparison Files (File 1. Selected Price, File2.SelectedValue); } The problem with this is that you can not bookmark results of comparison between specific files. To solve this problem, I compare the values ​​of the selected files as a query string for the added URL and made a redirection. And so, the above event handler has been changed to look like this: Protecte...

paging - How can I page my LINQ to SQL result set? -

You can use "border" to remember MySQL , where I will How many people are involved in starting a result set? Select from user limit [start], [length] How can I do this? var border = 10; Var start = 30; Var result = (Select x to x in MyList). Leaving (Start). (Boundary). Olist ()