Posts

Showing posts from February, 2012

.net - DateTimePicker is not working Properly -

Actually, I have a 2-timer timer picture which is in my fast-sized bit Net Net 2008. Both of them do the same event. But one of them is not working properly until I use one more. Please let me !!!! Help private void dtpStart_ValueChanged (object sender, EventArgs e) {if (cmbDay.SelectedIndex == -1 | | CmbLeaveName.SelectedIndex == -1) {MessageBox.Show ( "Please Day Select and leave name "," error ", MessageBoxButtons.OK, MessageBoxIcon.Exclamation); DtpStart.ValueChanged - = New EventHeader (dtpStart_ValueChanged); } If (dtpStart.Value & gt; dtpEnd.Value) {MessageBox.Show ( "release date from date can not occur before", "illegal entry ', MessageBoxButtons.OK); DtpStart.Value = dtpEnd .Value;} Getdays (); Czech = validate (); if (Czech == "false") {Czech = "right"; return;} LoadDataGridView ();} private void DtpEnd_ValueChanged (object sender, EventArgs e) { if (cmbDay.SelectedIndex == -1 || cmbLeaveName.SelectedIndex...

Is it a bad practice to hide elements with CSS when you can't remove them with php? -

Sometimes when I can not find a way to disable the function or any other element with PHP, in particular The PHP framework and CMS in PHP, I just do display: none , I wonder if it will make me many problems in future or an essential method? It depends on what kind of elements are coming to the potential mind Problems with: An tag or another source pointing to external resources: it will still load same applies to iframe tag - the embedded page will load even if display: none is not set Hidden elements If the client closes the CSS in the client The element will still be visible, The client who automatically parses the dome may not realize that any element is hidden The element still has any Javascript will be present in the eyes DOM manipulations In addition to these special cases, it will probably not be a problem.

java byte array memory not released -

As long as I have set the indicator to zero, why does memory usage increase every time I press the button? (Code Attach) This continues my program memory usage continues thanks. package newHashFunction; Import java.awt.event.ActionEvent; Import java.awt.event.ActionListener; Import javax.swing.JButton; Import javax.swing.JFrame; Public Category Memory_not_released JFrame Expands {/ ** * @param args * / public static void main (string [] args) {// TODO auto generated method stub Memory_not_released memory_not_released = new Memory_not_released (); } Memory_not_released () {button button 1 = new pocket ("make byte"); Button1.addActionListener (New Exhibitist) {@ Override Public Voice ActionPerfect (Action Event E) {// Todo Auto-Generated Method Stub Byte [] Byte 1 = New Byte [10000000]; Byte 1 = Faucet;}}) ; (Button1) add; This.pack (); SetVisible (true); This.setDefaultCloseOperation (EXIT_ON_CLOSE); }} continue setting its variable to null Does not happen. ...

Django-ORM Left join with all columns of both tables -

I have two tables, A and B, let me use the DEGENGO ORM (left join) for all columns of the two tables. the wanted. I'm a new bee for the deeggo and programming please help. Use in a way value () value on your query (though what you are asking for Is not very clear). It returns a query instead of a query, but behaves like a left joining SQL, in straight databases - i.e. table B. returns rows with blank entries. Assume that Table A has a foreign key in table B in the model file. TableA.object.filter (your filters here). Price (table A__field1, tableA__field2, ... \ tableB__field1, tableB__field2, etc.).

c++ - Is this a proper use of a temporary std::string? -

std :: string getMyString () {वापसी & lt; एक स्ट्रिंग बनाएं; } ... कुछ संभालें = ओपनसंशोधन (getMyString ()। C_str (), ...); मैंने पढ़ लिया है और मुझे विश्वास है कि जब तक असाइनमेंट का मूल्यांकन नहीं किया जाता है, तब तक अस्थायी स्ट्रिंग जीनी होगी, अर्थात् इस काम को अपेक्षित रूप से पर्याप्त बनाने के लिए बहुत लंबा है। std :: string जीवन-संबंधित बग में चलाए जाने से पहले (याद नहीं कर सकता कि यह क्या था) मैं इसे दो बार जांच करूँगा ... हां, यह ठीक है : -) स्ट्रिंग को बयान के अंत में अर्ध कोलन में नष्ट कर दिया जाएगा।

compiler construction - Name binding and language binding -

And there are different concepts but I wonder if they are related and how are they different? Especially interested in the relationship section, for example, if the language binding name is enforced as binding? Thanks and connection! They share the words binding on their names, all of them Of course, one language binding will force some names, but such a non-trivial computer program will not be there.

How to show /About instead of /Home/About url in ASP.NET MVC -

It is possible to do this without changing the underlying architecture because it is about showing a URL. In fact, I still want to be valid about Home / when the user types it, but instead it appears / above it. You can add a new route to your global.asax. EDIT: Ferrète has given you the C # version. I'll give you the VB version: routes. MapRoute (with "About", "About", New {{.controller = "home", .action = "about"}) with

java - Animation in GIF not working when processing is going on -

मैं निम्न कोड का उपयोग करके एक GIF एनीमेशन प्रदर्शित कर रहा हूं: ImageIcon ii = new ImageIcon (getClass () getResource ( "संसाधन / wait_animated.gif")।); जेएलैबल एल 2 = नया जेएलैबेल ("कृपया प्रतीक्षा करें ...", आईआई, स्विंग कॉन्सटेंट्स। सीए); ii.setImageObserver (एल 2); d.setIconImage (शून्य); जेडीस्कटॉपपैन डीपी = नया जेडीस्कटॉपपैन (); Dp.setPreferredSize (नया आयाम (300,50)); l2.setLocation (dp.getX (), dp.getY ()); L2.setPreferredSize (नया आयाम (300,50)); d.setDefaultCloseOperation (JDialog.DISPOSE_ON_CLOSE); D.setTitle ("प्रतीक्षा करें संवाद"); d.add (एल 2); JDialog.setDefaultLookAndFeelDecorated (सही); d.pack (); D.setPreferredSize (नया आयाम (50,50)); d.setLocation (300,300); d.setAlwaysOnTop (सही); d.setVisible (सही); जीआईएफ़ में एनीमेशन बहुत अच्छी तरह से प्रदर्शित होता है हालांकि, जब इसके बाद कुछ प्रोसेसिंग हो जाती है (मैं डेटाबेस का नवीनीकरण करते समय प्रतीक्षा संवाद का उपयोग कर रहा हूं); एनिमेशन लटका हुआ है क्या कोई सुझाव देता है कि एक सरल ...

algorithm - postorder using tail recursion -

I'm getting this link, which suggests a way to reproduce the tail of the poster. However, it uses 2 stacks, it's just a way to do this with a stack. Thanks! The java code pasted from the link below: public static final & lt; T & gt; Zero Post Order (tree & lt; T & gt; Root) {stack & lt; Tree & lt; T & gt; & Gt; Stack = new stack & lt; Tree & lt; T & gt; & Gt; (); Stack & LT; Tree & lt; T & gt; & Gt; Traveler = New Stack & lt; Tree & lt; T & gt; & Gt; (); Stack.push (root); While (! Stack.isEmpty ()) {tree & lt; T & gt; Node = stack.pop (); If (node. Right! = Null) stack.push (node ​​right); } If (node. Left! = Null) {stack.push (node. Left); } Traveler Peach (node); } While (! Traveler.ISEacti) {System.out.println (Traversal Pop (.) Value.toString ()); }} Yes, but the code needs to be structured differently, a recursive algorithm A proper stack-based simulation of Keep shoul...

iphone - I tried to use NSHost and XCode didn't recognize it -

I tried to add an NSHost method and XCode did not recognize it. Do you know why this happened? Your question has been tagged with the iPhone; NSHost is not available on iPhone NSHost is Mac OS X only Here's an alternative solution to use NSHost:

python - Attribute error using __builtin__ functions inside class method -

मैंने अपने आर्क लिनक्स बॉक्स पर rdiff-backup केवल विशेषता त्रुटि के साथ समाप्त करने के लिए स्थापित किया है: AttributeError: 'मॉड्यूल' ऑब्जेक्ट में कोई विशेषता 'कम' नहीं है त्रुटि rdiff_backup कक्षाओं में से एक में मौजूद है, लेकिन मैं त्रुटि को नहीं खोज सकता फ़ंक्शन कम का निर्माण किया जाना चाहिए, और फ़ंक्शन को खोजने के लिए कोड प्राप्त नहीं किया जा सकता। rdiff से कोड इस तरह दिखता है: डीईफ़ get_total_dest_size_change (स्वयं): "" "कुल गंतव्य आकार परिवर्तन वापस करें यह rdiff-backup गंतव्य निर्देशिका के आकार में कुल परिवर्तन को दर्शाता है।" "ऐडवल्स = [स्वयं। न्यूफ़ाइल साइज़, स्वयं। परिवर्तित सोर्स साइज़, स्वयं। इंकेंटफाइल साइज़] सबटाटेक्वाल = (स्वयं। हटाए गए फ़ाइल आकार, स्वयं। परिवर्तित मिररसिस) ऐडवल्स + उपट्रेक्वाल्ल में वैल के लिए: यदि कोई वाल्व नहीं है: परिणाम = कोई भी दूसरा नहीं तोड़ता है: डेफ एडलिस्ट (एल): रिटर्न कम (लैम्ब्डा एक्स, वाई: x + y, एल) परिणाम = Addlist (addvals) - ऐडलिस्ट (subtractvals) स्वयं कुलद्रव्य परिवर्तन बदलें ...

Blackberry Development (Test Devices) -

I am planning to create an app for Blackberry. Android and iPhone versions are almost complete. The next blackberry in the list is. So my question is: how good are the simulators? Do I Need a Real Device for Trial? Whom will you recommend? I have good luck with my simulator, I am using the storm, and I have a real curve I have a real storm, so I run everything through him. There has been only 2 occasions that I have been helped by having a real device. 1. Make sure that I have my correct files. Since Eclipse just copes them in the simulator, so I have 2 attempts on a real device. and 2. When the test was created; Using a database on the SIM card, I found around 9 5% on the simulator, and the other 5% were actually actually verifying. He said, depending on which version you are writing for, hurricanes and some curves are 5.0 (and it can be upgraded to 6.0) The torch is only 6.0

c++ - cin Equivalent in Qt -

संभव डुप्लिकेट: हाय क्या क्यूटी में बराबर है? धन्यवाद। क्यू में cin के बराबर है cin ।

Failed to install Sedna ruby-gem 0.6 -

I am trying to install the Sedna XML database gem at Ruby 1.9.2 / Rail 3.05. An error list is: any ideas? The far away I know it is very difficult on Windows. Try this solution:.

c++ - A problem with openning the file -

Hello I want to open the file in one place in my computer I use this code but it does not open it How can I open that file? QString path = "C: \ Program Files (x86) \ vnb.txt"; QFile Infix (path); If (! InFile.open (QIODevice :: ReadOnly | QIODevice :: Text)) return -1; anytime as \ as a file separator in QT Do not Always use / and the QT will ensure that it is always portable, it is clearly stated in this documentation.

c - How to get memory block length after malloc? -

I thought I could assign the length of the allocated memory block to .length function in Java though, now I know that when allocates the block to malloc () , it allocates extra bytes to keep the block-shaped integer it is located at the beginning of the integer block; This address was actually transferred to the number of the collar, which is exactly past the value of this length. The problem is, I can not access that address to retrieve the block length #include & lt; Stdlib.h & gt; # Include & lt; Stdio.h & gt; Int main (zero) {four * str; Str = (four *) maulok (size (four) * 1000); Int * length; Length = str-4; / * Because on 32 bit system, one int 4 bytes long * / printf ("str length:% d \ n", * length); Free (STR); } Edit: Lastly I did the problem, this is giving 0 on my system as a length instead of size because my Ubuntu is 64 bit. I have changed str-4 to str-8, and it works now. If I change the size to 2000, then it produces a length up to ...

ios - iPhone - programmatically select language keyboards -

I'm writing a few apps that have multiple languages ​​I know that I can set up the devices to make international keyboards I am There was one way to select the English keyboard for the English language and what would be good to select specific foreign keyboard for each language. Does anyone know that this is possible, and how? Sorry to disappoint me, but what you are asking is not just possible.

How to create a TTF or OTF font programmatically [C / C++] -

How do you go by creating a bitmap font with C or C ++? I have created some software that creates a letter format with your body and converts vector shapes (or bitmaps). I would like to output as a result of a TTF, OTF or similar font file. You can see a video of the software here: See the specs for and Also, there is an open source app for making fonts, which you can see on its implementation.

how to assign PHP session value to Javascript variable -

How can I specify the value of the session in the JavaScript variable? For example, I type javascript variable names to $ _ session ['name'] . Thank you. Good, four options: Set it with php , Javascript in & lt; Script type = "javascript" & gt; Var name = "& lt ;? php echo $ name ;? & gt;"; & Lt; / Script & gt; Set up a cookie with PHP, and recover it with javascript (,) Use jquery Ajax () ()) Set it as a GET variable (end of the URL) ()

c++ - Unhandled Exception Error, Memory Violation -

My program crashes, as if a new MyString object is created. When the string array [0] is set on a null care in the constructor, I get a memory access violation. any idea? Here is the constructor MyString :: MyString () {stringSize = 0; String cap = 16; Stringarrow [string cap + 1]; Stringer [0] = '\ 0'; } Here classes are private members char * stringArray; Int stringCap; Int stringSize; This is the main place where the main.cpp is built in MyString s1; This row does not allocate memory: Stringarrow [string cap + 1]; You need to change it with: stringArray = new char [stringCap + 1]; Do not forget to erase memory. The addition of 3 rules applies here because you have an object-owned raw memory. Alternatively if you don; Do not want dynamic alignment but rather fixed size string after that you can change the declaration of your members: four string array [& lt; FixedSyzairHouse & gt; ];

php - When to use memcached -

How can I find out how the memorycat works you use it to improve the site's performance to store part of the data We do. When you want to retrieve some data, you check that in the first memcatch, if it is, you will retrieve it, otherwise you will check your database / filesystem etc. I just do not know how / when to use it? What would be a good chance? I have the following applause: Author: ID user name email password salt email_salt email_verified ip_address Author_threads: thread_id, author_id thread: created id, title, content, Tags: ID, name thread_tag: tad_id, thread_id I want to select the latest 30 threads, their authors and all their tags. This is the SQL statement I use: thread, thread. Thread_id by thread_tags as thread tags, thread.id = thread_tags.thread_id, tag by thread_tags as thread, thread content, author_id, author_id, GROUP_CONCAT (DISTINCT tag.name ORDER), by tag.name DESC SEPARATOR ',') Add tags to thread_tags....

c# - Is it possible to wrap integer and call it like integer? -

I IDictionary & lt; Int, driver & gt; I want to make it a bit less ambiguous in , so I thought maybe wrapping it would be a good idea. Results IDictionary & lt; FinishPosition, Driver & gt; . Something like , finishPosition should be assigned such as finishPosition = 1 . I do not know how this is possible and how. You have structure with a built-in conversion. public structure FinishPosition {public reading int position; Public Finnish term (status of int) {this.position = position; } Public stable underlying operative FinishPosition (int position) {New FinishPosition return (status); }} // ... Dictionary & lt; FinishPosition, Driver & gt; Dict = new dictionary & lt; FinishPosition, Driver & gt; (); Driver Bob = new driver (); // The following two lines are effectively equivalent [New FinnishPosition (7)] = Bob; Instructions [7] = Bob; // so these are two Bob = dec [7]; Bob = Dick [New FinnishPosition (7)]

c# - How to display matlab figure in WPF application -

I have a matlab file which pulls 3 plots and I have an application in WPF. How can I insert plots from matlab in my WPF application? (I do not want to run matlab's interface with my application) I do not want to include the screenshot of the plot, but I want to import a live plot from the mathab from the ability to zoom in. Zoom out And change the size of the plot Is it possible? If it has an extern tool for it, it will also be good. If you display Screenshots, you can export it from Matlab only as a PNG and show it as an image. If you exclude matlab, you can let it load, plot, zooming and resizing it for you. If you want to zoom in and resize yourself, you can make the multab script a CSV file or something similar, then load it into your WPF application, it can be used by many available conspiracy utilities Ex:.). The only way is that you can come out to Matlab, and then show the Matlab figure as part of your WPF application using low level Windows calls, bu...

html - align div center in front of other divs with jquery -

I need to divide the loader in front of other divs at the center of the page. Someone show me the work example how to accomplish it with jquery? Something like this should be done: $ (' Element '). CSS ({status: 'full', top: '50% ', left: '50%', margin top: - $ ('. Element'). Outside Highlight (), Margin lift: - $ ('. Element' ). Otterwidth (), Zindex: 1000})

php - How can I determine whether a user is on IE...and send them to a page saying my web app isn't supported on IE? -

I am developing a web application, and I have seen that in testing with IE, major issues with some key issues Problems are Performance Elements For this reason, I have to block the web app from IE users and send them to another page to download Firefox or Chrome. I am looking for a way to do this, but I find out any easy guide which is only for IE and I've tried some snippets, but they will not work because They are only used to set up and print browsers / OS / etc. Information. I really appreciate your help! Instead of blocking it directly, consider an informational message. It is also a coincidence where IE is somewhat useful for one time: & lt ;! - [if IE] & gt; & Lt; Div class = "info-bar" & gt; Your Browser is not Supported. Parts of this application may be non-functional. & Lt; / Div & gt; & Lt ;! [Endif] - & gt;

windows - netapi32.dll - searching for certain instruction -

I am trying to figure out how uncontrolled exception filter works overflow overflow. I know very well what is going to happen, but I need to get the "call dwarf ptr [edi + 0x78]" instruction in netty 32.dll. Can you help me find that instruction? I tried to use ollydbg, I load netapi32.dll and searched for a command, then "call dwarf ptr [edi + 0x78]", but nothing. Is there any other effective way to find such directions? The problem with Oleidbug is that whenever you search the command, you would have to type in all This is because the debugger presents the command (no regular expressions are allowed). This is the line I used to use: call dvd ptr ds: [edi + 78] It works now.

What is the variance of java .class files across different compilers, versions, dependencies? -

Hi, I was thinking that Java class files change to different compilers. So how many actual bytes change if a .java files are called a Sun JDK 1.4, 1.5 1.6 or even IBM JDK. I know that class files can differ in relation to debug information and ambiguity, but for the question that we assume that the options are the same, there is debug info, there is no dispute, if I am a MD5 Or run SHA1, then a hash on a class file compiled by JCK 1.4, which is different, if I compile it in JDK 1.5, but I'm targeting 1.4, then target JDK 1.5 ? Apart from that, a class file change is a binary, when different dependencies are used, or is asked differently that it depends on the dependency of the binary of a square file change. It is possible? And last but not least programmatic methods are to compile version and to identify switches or one. To analyze metadata of class file which was used while compiling it? While compiling classes and bytecodes from sources, the Java compiler has some fre...

objective c - Is this valid code to create a NIB-instantiated singleton? -

Assume that I institute an object of class MyGreatClass in my NIB (normally by dragging "object" to NIB and Sets its class in MyGreatClass). I would like to reach that example anywhere in my codebase, without the introduction of coupling, i.e., like crazy objects without misleading objects, and without any outlet, [NSASP representative]. (Adjustable too heavily with later time.) I ask: Is it considered to be a good code to complete? // Import static MyGreatClass * theInstance = zero; @Employment MyGreatClass + (MyGreatClass *) Shared Instruction {NSAssert (Instance! = Zero, @ "Example should have been loaded by NIB"); Instant return; } - Wake up from (id) init // NIB will call it {if (! Instance) instance = self; Instant return; } // ... If this work is expected, I will be able to get my example through shared interaction after the app loads. What do you think? Update: Hmm, on the second thought, the above init method is perhaps the easiest way to th...

for CSS only? -

Is it possible to turn CSS into parts of the page? I & lt; Noscript & gt; , but it also launches javascript ... The problem is that there are so many global styles for many elements on my page, and now I need it To add new people (lots of new people), and I can not go from one to 1000 elements and change them ... Is it possible that you can not change one by one Done > In addition, font-size: 70% scaling, and I can not overwrite my code ... How can I stop it? & lt; Noscript & gt; Something like but only for css? & lt; Noscript & gt; Javascript does not close, this code returns only JavaScript that is turned off. I am not completely clear what you are saying here It seems that means that you have to apply a very different style in some new pieces in some of your pages. Want to If they are in continuous block then you can put them in a diva, and use it in your new style. As you say: CSS: P {color: green; Font-family: serif;} a {colo...

java - Help understanding JSF's multiple calls to managed bean -

I am using H: DataAbility, here is the Revolution line of my code: & lt; H: DataTable value = "# {account.latestIncomes}" var = "mov" & gt; ..... and & lt; / H: datatable & gt; Then I have been requested to manage Managed Bean with Gestre for the latest income: Public list & lt; Movs & gt; GetlatestIncomes () {If (Income == zero) Income = this.cajaFacade.getLatestIncomes (20); Return income; } This recipient is called 8 times, and I am not using it anywhere else, why is this going to be worth the data? If you need more codes please ask, but this is the only place where I use that property. However, with the given code snippet, it should be called the highest 3 times during the render response phase. During one time, during and during one time. Or does it have input elements and did you count during a form? However, debug the stack and give some insight to the current step id in the gator. Private list & lt; Movs ...

visual c++ - Is this destructor declaration a typo in C++ Primer (Stanley Lippman)? -

में - सी + + प्राइमर, तीसरे संस्करण, स्टेनली बी लिप्मन, जोस ए एलोजिइ द्वारा यह कहते हैं में: 15.1 ऑपरेटर ओवरलोडिंग जैसा कि हमने पिछले अध्यायों में उदाहरणों में देखा है, ऑपरेटर ओवरलोडिंग प्रोग्रामर को इसके संस्करणों को परिभाषित करने की अनुमति देता है कक्षा प्रकार के ऑपरेंड के लिए पूर्वनिर्धारित ऑपरेटरों (अध्याय 4 में चर्चा के अनुसार) उदाहरण के लिए, धारा 3.15 में प्रस्तुत स्ट्रिंग क्लास कई ओवरलोडेड ऑपरेटरों को परिभाषित करता है। यहाँ हमारे स्ट्रिंग वर्ग की परिभाषा है: #include & lt; iostream & gt; वर्ग स्ट्रिंग; IStream & amp; ऑपरेटर & gt; & gt; (इस्ट्रीम एंड, स्ट्रिंग & amp;); ostream & amp; ऑपरेटर & lt; & lt; (ओस्ट्रीम एंड कंस्ट्र स्ट्रिंग एंड amp;); वर्ग स्ट्रिंग {सार्वजनिक: / ओवरलोड किए गए कंसल्टर्स का सेट // स्वचालित प्रारंभिक स्ट्रिंग प्रदान करें (कॉन्स्ट चार् * = 0); स्ट्रिंग (कॉन्स्ट स्ट्रिंग & amp;); // destructor: स्वचालित deinitialization ** ------ & gt; नोट ** स्ट्रिंग (); // ** ------ & gt; नोट ** // असाइनमेंट ऑ...

favicon - ASP.NET: How to get URL of a file? -

I want to get a fully qualified URL for a resource in ASP.NET Example: & lt; LINK rel = "shortcut icon" href = "& lt;% = GetFaviconPath ()% & gt; & Gt; This code is currently inaccessible with the file behind: Private string GetFaviconPath () {string URL = system. Web. Virtual Path Utility Toबेसolute ("~ /Images/clock.ico"); Return url; } Unfortunately this does not work because it does not return the fully qualified path, only the path relative to the server: /Employement/Images/clock.ico Internet Explorer requires a fully qualified URL, such as: Http: // localhost: 6211 9 / jobs / images / clock .ico http: // revenge: 81 / jobs / images / clock. Http://MyFreeAspDotNetHosting.com/IanBoyd/Employment/Images/ Clock.ico I have a file completely How do I get le path? I have tried the Virtual Path Utility and I'm out of ideas. try it string_aprint = httpContext.Current Request.Url.ToString (); Add yo...

sql - MySQL Inner Join table based on column value -

Suppose I have 'statistics' table with the following structure: tableName | ID | Pageviews The TableName column corresponds to different tables in the database. When a query runs against "statistics", what would be the best way to get inside the internal column to get the data of each column in the table table? I was thinking of selecting dynamic in a foreach and then merging the results. Example: $ $ ($ tableNames $ tableName) {$ sql = "SELECT * FROM with data INNER JOIN $ tableName tbl ON s.id = tbl.id WHERE Table name = '$ tableName'"; } To get statistics of all the tables, you can use a union , 2 or more selections, one for each table: (SELECT s. *, Table1.title AS name - or whatever field you want to show with statistics, Add $ table name 1 table 1 s.id = Table1.id where table name = '$ tableName1') Unius all (SELECT s. *, Table2.name AS Names - or whatever fields you want to show with the statistics $ tablename 2 name2 t...

facebook - restrict acces to a application facebbok only to my friends -

How to restrict access to only one Facebook application for my friends In this case, without using "sandbox" Facebook Connect "by I know that he only needs the ID of his friends, but how does this technically go? You list your code https://graph.facebook.com/me/friends By using your user's access token (no app token) Facebook will return a JSON array of your friends. You can read more information here: You can then iterate through the JSON array and store a list in your server, e.g. In Java: Try JSONObject feedback = New JSONObject (txtResponse); ArrayList & LT; String & gt; MyFriends = New Arrestist & lt; String & gt; (); (Myfriends.add (response.data [i] .id);} // store list anywhere elsewhere (for int i = 0; i.ic. response.data.length; i ++) Jason Exception e) {// Something went wrong} On your client side, you can get user ID in Javascript. I am writing AJAX calls in jquery, just to be short You can use plain javascript. if ...

backbone.js - Backbonejs event occurring multiple times -

I have a view that shows items in the grid if a button is clicked to create a new line The popup window (use SimpleModel) is displayed to allow the user to save the row on the server. If everything goes well, the window is closed and the grid is refreshed to fix all the points at this point if I open the window another time, the record record event will be called twice. If I close the window for the third time, the event will be called three times, etc. I do not know that the incident is getting recovered several times. Here are my two thoughts: View the field list: var fieldListView = backbone. View. Extension ({L: "#centerbodycontent", Start: function () {_.bindAll (this, 'render', 'edfield');}, render: function () {$ (this.el) .empty () ; $ ("#GoldGridTemplate"). Tmpl ({result: this.model}) .appendTo (this.el) strip ($ (it.l.) .find ("dune"); Return to it;} Events: {"click on a # adfield": "edfilled"}, edfine...

Regex to remove values from url -

मेरे पास एक url है "http: //10.160.7.62/b2btoolsce/(S(ivww2d43bvkthvczfpsjdpxe )) / UI / PdfViewer.aspx? " मुझे एक सामग्री प्राप्त करने के लिए regex () (एस (ivww2d43bvkthvczfpsjdpxe)) किसी भी विचारों को निकालना चाहते हैं? चूंकि आप नेट का उपयोग करते हैं, ऐसा है कि आप को कोष्ठकों को हटा दें और सी में से एक स्लैश सी #: newUrl = Regex। बदलें (पुराना यूआरएल, @ "\ (। *? \ / /," "); यह परिणत होगा ... "http://10.160.7.62/b2btoolsce/(S(ivww2d43bvkthvczfpsjdpxe))/UI/PdfViewer.aspx ? " ... में ... "http://10.160.7.62/b2btoolsce/UI/PdfViewer.aspx?" यदि आप कुछ के साथ कोष्ठकों को बदलना चाहते हैं, उदा। edda , फिर आप लिखते हैं: newUrl = Regex। बदलें (पुराने यूआरएल, @ "\ (। *? \ / /)," Edda / "); यह परिणत होगा ... "http://10.160.7.62/b2btoolsce/(S(ivww2d43bvkthvczfpsjdpxe))/UI/PdfViewer.aspx ? " ... में ... "http://10.160.7.62/b2btoolsce/edda/UI/PdfViewer.aspx?"

oop - Scala Function vs Class Dichotomy -

I've just started learning Scala I am resting with OO design to a great extent, and with less functional programming; However, I am programming for a long time that the FP is not completely unnatural for me. From the first day of my Scala adventure, I had this, we would say, unease with clear sway which is running between Oh and FP Obviously, no one can go either way or in all other ways, my first trend was to look at the sections as packages which hold the function together which I want to pass, which are the scales toward the working side. I think there should be a better way of balancing this act. I am also not sure how to move forward with some familiar situations under this scenario. For example, if I had the following (artificial) class: class ValueGenerator {def value () = {"1"} def value (line: string) = {line}} In OO programming, I will call value with the appropriate signature to get the code needed for it. The methods are the same sign, because they...

c# - FieldCache with frequently updating index -

Hi - I have the Lucene Index which is often updated with new records, I have 5,000,000 in my index There are records and I have to caching one of my numerical fields using FieldCache but after updating the index it takes time to reload field cache (cache due to IC reload documentation) That docaid is not reliable) then Can not how only reduce this overhead adding FieldCache the DocIDs Newly added he, because of the potential mine barrier application. index reader = index reader. Open (disdair); Int [] dateArr = FieldCache_Fields.DEFAULT.GetInts (Reader, "Newsletter"); // This line takes 4 seconds to load the array date. Err = Fielder_field. DEFAULT.GetInts (Reader, "Newsletter"); // We hope this line takes 0 seconds / here we add some documents to the index and we change the reader = reader The index must be reloaded to display the repon (); DateArr = FieldCache_Fields.DEFAULT.GetInts (Reader, "Newsletter"); // It takes 4 seconds to load this array ...

Can I get an image's file size and mime-type via JavaScript (FireFox/Gecko/Mozilla only) -

Can I get an image file size and mime-type via Javascript I inspect all the images in a document I am writing a script to do I will run scripts in Firefox so that specific solutions for Firefox (undocumented / non-standard / otherwise) are absolutely acceptable. I can use jQuery if necessary. You can request a head XHR which will tell you the size of the file , Provided that these images are on your domain.

java - How can I set time for consumer side in RABBITMQ -

This is my code and I set two sets on auto, the exchange finally created the consumer for several minutes The message is not sending at this time I want to stop the consumer side automatically, maybe you are not fully understanding my punishment. How can I decide that ^^ and how can I get the document object (s) on the server side public Void init Consumer () {{ConnectionFactory Factory = New ConnectionFeature (try); Connection connection = factory.New connection (); Channel channel = connection.createChannel (); Channel.queueDeclare (this.queueName, this.maintain, false, this.queueAutoDelete, blank); Channel.exchangeDeclare (this.exchangeName, this.exchangeType, this.maintain, this.exchangeAutoDelete, zero); Channel.queueBind (this.queueName, this.exchangeName, this.routingKey); Quewing Consumer Consumer = New Quaking Consumer (Channel); Channel.basicConsume (this.queueName, Incorrect, Consumer); While (true) {QueueingConsumer.Delivery Delivery = Consumer. NxtDelivery (); S...

android - how to set imeg overlaying spinner list item? -

I am using spinner to display the list of months. But do I want to set an image to overlay in months? But I'm setting up any precise solution. spinner.xml: & Lt; ImageView Android: id = "@ + id / myimgview" Android: layout_width = "fill_parent" Android: layout_height = "fill_parent" & gt; & Lt; / ImageView & gt; & Lt; / LinearLayout & gt; Your activity class should look like this: package my.co.home; Import android App Import android.content.Intent; Import android.content.Intent; Importroid.os.Bundle; Import android.view.View; Import android.widget.AdapterView; Import android.widget.ArrayAdapter; Import android.widget.ImageView; Android Import; Spinner; Import android.widget.AdapterView.OnItemSelectedListener; Public category visual activity activity extends to {string [] presidents = {"Jan", "February", "March", "December"}; Spinner S 1; ImageView ivl; /** Called when...

android - Login to website with no api exposed -

I'm trying to write my first app where I login to the website and set some preferences. My problem is that there are no APIs or documents on this website, how to do it. This is my first time doing any kind of web programming. Please forgive me if my questions are naïve. While reading the Android documentation and searching through stack overflow, I understand that HTTPPOST is a better way to do this. If the website does not provide URIs and documents, how to remove these things? I tried to see the HTML source code I could figure out the entry form. I'm not sure that it always works. What encoding can be used when creating HTTPPOST requests? Is there any other way to achieve this? thanks I think you should parsize html Will happen. Try this MB See it helps

jar file problem -

When I try to run jar file from Netbeen then it works fine, but when I try to run from the command prompt I am giving it expaction thread error but when I check my Task Manager, it shows that javaw.exe is running .............. what exactly is this and Why is this error coming in command prompt? Compile your application like this: & gt; ; Play javac -jar example.jar ClassName.java : & gt; Java-eg example.jar class name

javascript - Dynamic data from xml into Jqplot for pie chart Options -

I am trying to create a pie chart using an array that removes the data from the XML file. It displays the pie chart but the size of the area is not consistent with the values ​​of the array. Surprisingly, if I use a constant array then the code works this is the XML file: & Lt; A2 & gt; A2 & lt; / A2 & gt; & Lt; C & gt; 20 & lt; / C & gt; & Lt; C & gt; 30 & lt; / C & gt; & Lt; C & gt; 50 & lt; / C & gt; & Lt; C & gt; 60 & lt; / C & gt; & Lt; C & gt; 70 & lt; / C & gt; & Lt; / A & gt; This is a javascript file (I've just written the main code): var x = xmlDoc.getElementsByTagName ("A"); Var myvalues ​​= New Array (); Var staticarray = {5,5,5}; (I = 0; i & lt; x.length; i ++) {myvalues ​​[i] = x [i] .getElementsByTagName ("c") [0] .childNodes [0] .nodeValue; } $ (Document) .ready (function () {$ .jqplot.config.enablePlugins = true; plot1 = $ ...

c - strtod - Problem in converting string to double -

I have a very small program that converts a string to duplicate. The problem is getting 0.0000 print every time Please help me. Thanks in advance. Enter the code here $ export LT_LEAK_START = 1.5 $ echo $ LT_LEAK_START 1.5 # include & lt; Stdio.h & gt; Int main () {Double D; D = Stroke (getenv ("LT_LEAK_START"), NULL); Printf ("d =% lf \ n", d); } Output: D = 0.0000000 #include & lt; Stdlib.h & gt;

utf 8 - PHP: case-insensitive preg_replace of a cyrillic string in UTF8 -

I have displayed users of my web site and want to change a certain Russian city (PostgreSQL 8.4.7 in UTF Database stored in 8+ CentOS 5.5 / 64 bits Linux) by its old name (this is an insider fun): preg_replace ('/ d ?? оР»Ð³Ð¾Ð³Ñ ?? Ð ° d '/ IU', 'Ð¡Ñ ?? Ð ° Ð »Ð¸Ð½Ð³Ñ ?? Ð ° Ð' ', $ city); Unfortunately this only works for exact matches: Ð ?? оР»Ð³Ð¾Ð³ÑÑ ?? Ð ° Ð ' . This does not work for other cases, such as Ð ?? Ð ?? Ð ?? Ð ?? Ð ?? Ð ?? D with d ?? Ð ?? or воР»Ð³Ð¾Ð³ÑÑ ?? Ð ° d ' . If I modify my source code preg_replace ('/ [d ?? ²²] оР»Ð³Ð¾Ð³Ñ ?? Ð ° d' / IU ',' ¡¡ Ñ ​​?? Ð ° Ð »Ð¸Ð½Ð³Ñ ?? Ð ° Ð ', $ city); Then this second matter will be caught above. Does anyone know what it is going on and how it can be fixed (assuming I do not want to write for every letter [Xx ] )? Thank you! Alex Update: # rpm -qa | Grep php php53-bcmath-5.3.3-1.el5 php53-gd-5.3 .3-1.el5 php53-common-5.3.3-1.e...

algorithm - Partition a Set into k Disjoint Subset -

एक सेट S दें, सेट को k में विभाजित करना उपयोक्ता का हिस्सा जैसे कि उनके रकम का अंतर कम है। कहते हैं, S = {1,2,3,4,5} और k = 2 , इसलिए {{3,4}, {1,2,5}} के बाद से उनके आलेख {7,8} में न्यूनतम अंतर है S = {1,2,3}, k = 2 के लिए यह {{1,2}, {3}} होगा क्योंकि योग में अंतर है 0 । समस्या विभाजन समस्या से द अल्गोरिदम डिजाइन मैनुअल के समान है। सिवाय स्टीवन स्कीएना इसे बिना पुनर्व्यवस्था को हल करने के लिए एक विधि की चर्चा करता है। मैं सिमुलेशन एनीलिंग की कोशिश करने वाला था। तो मैं सोच रहा था, अगर एक बेहतर तरीका था? अग्रिम धन्यवाद। एक टुकड़े के लिए छद्म-पॉलीटाइम एल्गोरिदम का उपयोग k = 2 के लिए किया जा सकता है। सबसे अच्छा हम कर सकते हैं राशि (एस) / 2 है एस में एस के लिए नापसंद एल्गोरिदम चलाएं: के लिए मैं 0 में योग (एस): यदि arr [i] तब arr [i + s] = सच; फिर राशि (एस) / 2 पर देखें, उसके बाद राशि (एस) / 2 +/- 1, आदि के लिए 'के & gt; = 3' मेरा मानना ​​है कि यह एनपी-पूरा है, जैसे 3-विभाजन समस्या यह करने के लिए सबसे आसान तरीका है k> = 3 क...

listview - In Android, how can I create a spreadsheet type of view -

I need to create a scene that is 14 columns wide by unlimited columns, a horizontal scroll inside a list view The scene will be perfect, but all comments will never ask for it. thanks post-text" itemprop = "text"> I Suggestions for reading this question / answer: There are two warnings about the risks you are taking in this one solution if you decide to face them Take it! I have solved this problem by implementing a custom view (without potential problems).

asp.net mvc2 form post keeps extending the browser url -

I am trying to asp.net mvc2. I have a controller and search called Search Controller. Search is a view folder with search I have in my controller: [AcceptVerbs (HttpVerbs.Post)] Public Actions Post () {HPSLucene.Models.Arbitrary arb = new HPSLucene Models.Arbitrary (); Arb.Title = "Receive the post"; See Return ("Search", Arc); } I think I have: & Lt; / Form & gt; This works for the first time when I click on the button, and shows the browser URL. However, when I change the browser URL for the second time and I get 404 buttons then click on the button. What am I doing wrong? Thanks a lot. You should / at the beginning of your action URL. Why not asp.net deal with it for you and use: using ;% (Html.BeginForm ("Post", "Search ")) {%> & Lt; Label & gt; & Lt;% Response.Write (Model.Title); % & Gt; & Lt; / Labels & gt; & Lt; Input type = "submit" value = "first" name...

How to check my internet access on Android? -

What exactly do I have to do when there is no connection to the user, then I have to show some dialogue that some of his relation is not . I tried to put it on my main activity but still did not work. Public Boolean is online () {Connectivity Manager Semi = (Connectivity Manager) getSystemService (context.CONNECTIVITY_SERVICE); Return cm.getActiveNetworkInfo (). IsConnectedOrConnecting (); } I have also used this but it also does not work: Public class connection change expands receiver broadcasts receiver {@ Public Recovery Referenced on Revive (Reference Reference, Intent of Intent) (Connectivity Manager Connectivity Manager = (Connectivity Manager) context.getSystemService (Reference. CONNECTIVITY_SERVICE); NetworkInfo ActiveNetOfO = ConnectivityManager.ctactivnet Info (); NetworkInfo mobNetInfo = connectivityManager.getNetworkInfo (Connectivity Manager. TYPE_MOBILE); if (activeNetInfo! = Null) {Toast.makeText (reference, "Active Network type:" + ActiveNet.T...

wcf - The maximum message size quota for incoming messages (65536) has been exceeded -

I get this exception when creating scope of some exceptions, all those tables are huge in design & lt; Binding & gt; I have stitched MaxShare Message on 2147483647 but still it is giving me the exception on this line below Client.GetTableDescription (scopeName, SyncBabel) Maximum message size quota has been exceeded for incoming messages (65536). To maximize quotas, use MaxServiceVisits property on the appropriate binding element. According to you want something like this: & lt; Binding & gt; & Lt; BasicHttpBinding & gt; & Lt; Binding name = "basic HTTP" permission cookies = "true" maximum mceset = "20000000" maxBufferSize = "20000000" max buffer size = "20000000" & gt; & Lt; ReaderQuotas maxDepth = "32" maxArrayLength = "200000000" Maximum String Content Length = "200000000" /> & Lt; / Binding & gt; & Lt; / BasicHttpBinding ...

Use Google Latitude data as layer in OpenLayers -

I have created a map application on the open layer, which displays a betamap and separate transmission sites The personnel have to maintain. When an error occurs to be able to send the nearest technical expert to a site, we want to track them and display their latest status on the map. We've just started using Google Latitude and as expected it works in the Latitude app, but what's the best way to use this data as a separate layer in Open Layers? is? To display all users to connect on the same map? I am thinking of a vector layer with a geo-geo service that queries the latitude API, but any thoughts or ideas are welcome. Well, this could be your own web service that looks for the latitude API , Or you can call Google's API directly to the customer because I also like the vector layer because it is very flexible and meets your needs. You may have a timer (setTimeout) that calls the Latitude API every minute or so and updates the user's posts

sql - Distinct room types -

How do I change SQL to give me the different room type? I only need one in roomtype_id every room_id . If that makes any sense? In fact if there are 3 different types of 5 rooms, then only 3 records should be returned. An example of the current SQL ... SELECT dbo.rooms.room_id, Dbo.roomtypes.name, dbo.rooms.roomtype_id FROM dbo.rooms INNER JOIN Dbo.rooms.roomtype_id = dbo.roomtypes.roomtype_id WHERE (dbo.rooms.room_id not on dbo.roomtypes (select room from dbo.booking)) and (dbo.rooms.roomtype_id> = 4) one way group BY : SELECT MAX (dbo.rooms.room_id), max (dbo.roomtypes.name), dbo.rooms.roomtype_id FROM dbo.rooms INNER JOIN dbo .roomtypes ON dbo.rooms.roomtype_id = dbo.roomtypes.roomtype_id WHERE ( Dbo.rooms.room_id (select room_id from dbo.booking)) and (dbo.rooms.roomtype_id> = 4) GROUP BY dbo.rooms. Roomtype_id

JQuery templating -

To specify a special image based on the value in the field, is it possible in a JQuery template (in this case it is possible Boolean field {MainYN} and I want to show a tick image if the value is true and if a value is wrong)? Unfortunately with the values ​​in the ArrayValue near the JQuery Template Template function, a variable of {Variable} Substitutes. I have solved this problem by passing through the full path of the image on the template.

php - Uncaught SoapFault exception: Call to undefined method -

I am trying to work on a very small SOAP system, but I am struggling with a small problem for a few days And Google can not help me ... What do I have to do: I want to do some things in some variables, which I am passing in a class. Problem: I want to use my server.php file as an object in the incoming class. But this is not possible. My server PHP file: class lid {public $ number good year; // This example is for personal purposes only private $ TU; Private $ school; Private $ value; Public function __ conversion ($ dump) {$ this- & gt; Tew = "dump:". $ Dump; } Public function getPrice () {Return $ this- & gt; value; }} Class functions {public function __ composition (lid $ lid) {$ lid- & gt; Milpris (); // what to do to get me the new lid ($ lid-> number of year); }} $ Classmap = array ('lid' = & gt; 'lid'); $ Server = new SOAP server (zero, array ('classmaps' = & gt; $ clamsap, 'uri' = 'gt;' http://1...

c# - performance difference between Int32.Parse or Int32.TryParse or System.Convert.ToInt32() -

संभव डुप्लिकेट: क्या ये तीन प्रदर्शन में बिल्कुल समान हैं? Ol>

parsing - How do I get auto-conversion of Part [[ double-brackets ]] on paste? -

Image
I have a pet herd, using double square brackets for part instead of a letter \ [LeftDoubleBracket] and \ [RightDoubleBracket] . After pasting a plain-text code in the Mathematica notebook (for example, with stack overflow), I want to change it automatically, I am unable to configure it. Can it be done with ImportAutoReplacements or any other automated method (preferred), or I'll need to use a method like "paste tabular data palette" referenced ? Either way, I'm not good with string parsing, and I want to learn the best way to handle the calculation of brackets. Sjoerd sighed, Code> delegation and Simon Ctrl + Shift + n which both of the math Has been created due to the automatic format code. These are good alternatives. I still am interested in any method that automatically and / or protects as original code as possible For example, maintaining prefix f @ 1 , infix 1 ~ f ~ 2 , and postfix 1 // f in their original forms > Maintain f...

jQuery Validation Not Working Properly -

I am attempting to validate four different areas in the last two behaviors behave correctly, but The first two do not work (they should only be necessary). If I submit without entering anything, then only the last two fields show errors. The question here is jQuery: $ ("# advertise.post"). Validate: (Required: true, phone: true}, advEmail: {required: truth, email: true}}, message: (validate: true, true), advname: {required: correct}, adname: {required: true} {AdvRetailerName: {Required: "This is necessary."}, Adnom: {Required: "It is necessary."}, Adophone: {Required: "This is required.", Phone: "This is an invalid phone number."} , AdvEmail: {Required: "This is required", email: "This is an invalid email"}}}); Here is the real form: form action = "php / advertise.post.php" method = "post" id = "advertisepost" Gt; & Lt; Table & gt; & Lt; TR & gt; & Lt; ...

c# - How to call DrawThemeTextEx in .NET -

I need to type a text with brightness in the Vista / seven glass windows, and I'm trying to call the API I have done a great check in CodeProject to write some text there, but the problem is that I am using .NET 1 (please, do not ask -) I follwing to PInvoke. Need to translate NET 2 code, .NET 1 code? Can anyone help. System.Windows.Forms.VisualStyles VisualStyleRenderer Renderer = New VisualStyleRenderer (VisualStyleElement.Window.Caption.Active) using //; // Call to UxTheme.dll DrawThemeTextEx (renderer.Handle, Memory HDC, 0, 0, text, -1, (int) flags, referee text bounce, referee DTTOPS); The class VisualStyleRenderer is not present in Net 1, so I need to get the renderer.Handle in another way. Can anyone help beforehand? Thank you. After the defined OpenThemeData API and DrawThemeTextEx, as well as some required structs and constants: [DllImport ("uxtheme.dll", charset = CharSet.Unicode)] Private Static Execution IntPtr OpenThemeData (IntPtr hw...

Pagination for table in vaadin -

Can you please assist me in applying pagination to the table in vadin? If there is a sample, then it will help me. You can use PagedTable add-ons only:

HTML Preprocessor? -

Is there an HTML preprocessor that can do the same page processing, but can generate a static set of HTML pages is? I think they are called preprocessor.

osx - Run TeamCity Build Step on a specific Agent -

I've got teammates installed and working, and I'm a special build agent (all of them running on Windows, but we have a Is the part that I need to make). What kind of agent do I want to run, how can I tell her? I have seen, but it gives reference to a whole creation; I just want a special step to run a given agent. Is this possible? What I know, this is not possible. You want a separate build configuration to build the Mac.

c++ - Adding large numbers in C -

To add a large number when I'm a bit confused about the behavior of C, this is probably a starting question, but any Appreciate the help. Unsigned long total = 0; Total = 1124073472 + 283534 9 503; Total + = 2533359615; Printf ("total:% u \ n", total); The above print is not all right. The first joint result is fine, but the third plus throws off the total. I am thinking this is due to overflow. My question is, what is possible solution? Is there a solution without using third party libraries? Note: I have tried different data types for the total. Some of these are DWORD64, INT64, LONG64, etc. Thanks in advance. You are right, this is due to overflow it will be fixed by using 64-bit type - You will need to change your printf () format string 64-bit type, though. You may find a 64-bit type for total a unsigned long time , but in the most secure way stdint.h . Here is an example program - I have also used to get inttypes.h to PRIu64 . #include...

Will Apple App Store recompress my screenshots when publishing the app? -

I uploaded my binary and created screenshots. All the screenshots I have made are 640x960 and I have uploaded them as PNG. Thinking behind this, I should put them in the best quality so that when they re-insert them into 320x480 JPG, it will not lose more quality than expected. However, when I connect to iTunes, where my app is awaiting approval, then all my screenshots are available as 640x960 PNG files (I can see it if I Right-click and save them to my desktop). I really hope that they will not publish these screens just like this, because this will mean that users who download page 4 MB for page screenshots will have to come, which will not be much fun on the 3G connection on the iPhone. I can definitely change them with low quality JPG, but I do not want to do that if they add them again during the app publishing time. Yes, these images will be automatically compressed by Apple in .jpg. This happens when they process your app for app store (the last step after verificati...

PHP generate HTML convert to JPG then to PDF -

I'm developing an app where the user adds the item to the list. This list is stored in an array and goes to PHP with JSON. Its purpose is to create a PDF with all values ​​removed from the user. PDF is quite complex. It includes images based on images and input data, which are selected by the user and the text is different. The first idea was to generate a PDF in PDF with one of those PDF libraries, but this would be a real problem. Then I thought that a html & amp; CSS (very easy) and convert it to PDF but since HTML & amp; CSS is quite complex I do not think PDF converters will work with this. Then I thought I could convert html to jpg and then to pdf. It would be very simple if I could just use html, but the output needed a PDF. Do you recommend? This is a post that discusses making PDF files with PDF and PDF LIB extension . This is at the sitepoint. Or if you want to go to PDF from HTML then it seems that the work can be done.

asp.net - Using a CalendarExtender with a MaskedEditExtender -

I'm exactly trying to do a text box function like the third text box on this page. I am trying to use the Calendar ActMinder control with a Masked Identifier, because I do not want the user to enter anything except the valid date in the box. On my maskededitextender I have a mask of "99/99/9999", but it only seems to work when the date is actually 8 digits (for example 2000/12/12) and not when the date 7 or 6 digits (Like 1 / 1/2000 or 1/14/2000) mask screw up when the date is less than 8 digits. & Gt text box runat = "server" id = "txtDateAvailable" width = "150px" maxlength = "50"; & Lt; / ASP:;: Here my code is ASP & lt text box & gt; & Lt; ASP: CalendarExtender id = "calDateAvailable" runat = "server" TargetControlID = "txtDateAvailable" format = "D" PopupPosition = "OK" & gt; & Lt; / ASP: CalendarExtender & gt; & Lt; ASP: MaskedEditExte...