Posts

Showing posts from June, 2011

php - FPDF, FPDI - using fonts embedded in the source document -

I am using FPDF / FPDI to create a PDF templateing system. A PDF is used as a background and there are many editable areas (stored in the database) defined within it. An editable area can be an image, text or both, although this is not my question, only a bit of background. Some backgrounds (FPDI source pdf) are embedded in PDF or 'template' fonts, I want to be able to get two things and wondering if this is possible. I want to be able to use any fonts embedded in the source document in the output document. I need to calculate these fonts so that they can be included in the UI font list. To clarify, I want to reuse these fonts, not only import them to implement, but option to present new text in one of the embedded fonts. give. Any sign will be highly appreciated. If I remember correctly on fonts and pdf, when a font was included in pdf All fonts can be included, or only a subset of fonts that cover the faces being used can be embedded. Some PDF 'compre...

logging - Castle Windsor: Best way to log when a component is registered? -

I want to login when a component (interface and implementation) is registered in my container. What is the best way to do this? I have found the IKernelEvents interface that looks promising, but I'm not really able to use it. No problem, found that IKernel implements IKernelEvents WindsorContainer.Cernel.ComponentRegistered + = (k, h) => _logger.Debug ("Registered {0} - {1} / {2}", k, h.ComponentModel.Service.FullName, h.ComponentModel.Emplementation.FullName);

Version number generation using rake -

I have used nuns on previous projects, but want to try to put out the rake on the new project. With Nant, I have used the work in Nantakrabb, which generates a version number for you. Is there something similar to doing with the use of the rake? Provides rack assignments for the Major. The version is changing, it is designed for gem management, but I have used it purely for other management programs in version non-gemmographical features.

xml - Complex types and XSDs -

Edit: I do not think I asked this question very well. I'm completely re-interpreting it All: I'm trying to represent the following XML in XSD (I'm working with the Visual Studio XSD editor, Because I do not really know XSD is very well). Here is the XML: & lt; TheParentNode> & lt; ANNlue id = "X"> 123 & lt; / AnElement> & lt; / TheParentNode> I want to specify that the value of the annelment should be a number. I want to put some specialties in the enlightenment. What kind of XSD should you look like? In Visual Studio Designer, I can see how the annexation can make a complex type, and it seems the only way to define the attributes for it, however, if I do this, There is no way to specify that the value of the annex should be a number. Do I need to use complex types? What does your XSD code look like? You have to define a complex type a simpleContent with: & lt; Xs: element name = "anElement"...

c# - Is shifting bits faster than multiplying and dividing in Java? .NET? -

Left bits and much more than the correct transfer, multiplication and division functions, possibly more, than the CPU if you have 2 Using the power of However, it can reduce the clarity of code for some readers and some algorithms. Is there really a necessary bit-transfer to perform, or can I expect to notice and adapt the compiler or VM case (especially, when the power-word of 2 is literal)? I mainly java and I am interested in NET behavior, but welcome insights into other language implementations. Most compilers today to switch operations or multiply by power-to-to Will do more than. While optimizing, many compilers can multiply or split with compiled time, even if it does not have the power of 2. Often many times a series of multiplication or split poly can be decomposed and adds, and if the series of operations gets faster, the compiler will use it in comparison to the multiplication or division. For a continuous partition, the compiler can often multiply the operation b...

flash - AS3 StartDrag() Not working in OSX -

I wrote some very simple code to replace the mouse cursor in the flash application while writing in the AS3 / Flex SDK. code: var cursor: movie clip = new cursor_adlement (); Canvas.addChild (cursor); Cursor.startDrag (true); This works perfectly well on XP and 2x Vista machines, but the cursor does not run with the mouse on OSX - it just sits on 0,0 on the screen. Does anyone have to face it? A part of my program destroys the cursor and renews every frame (this is very much Varies quickly), and at least 1 frame to register the position of the mouse on the OSX (this introduction draws the mouse position at the beginning of the drag (on the PC). The cursor did this again before waiting for at least one frame and destroying it.

authentication - Php codeigniter - simpleloginsecure -

Has anyone tried the simple log inactivation library for codeigniter? I think there are so many small footprints in it, besides this it is used for hashing which should be good. I worry that it does not store session data in the database (i.e. $ config ['sess_use_database'] = FALSE; ). I think I can add custom functionality, but if hashing is safe then it is still important to validate session data or is it OK to store it in DB? I'm sure that simple log inspector is safe enough for production use for the smallest applications this Codeigniter Authentication has become the official post on libraries. It has a reflection of the opposition all of the major libraries, including simpleloginsecure: update: / strong> In addition, -Auth (courtesy of Zend Framework) is considered very good, and it Can be integrated into the codeigniter. I am working on unifying myself for a project on my behalf:

cocoa touch - How to detect if the iPhone is using Wifi GPS, or their default wifi loation? -

When the iPhone can not get a GPS signal, it uses Wi-Fi to estimate your GPS location is. When it can not find its WiFi location, it is the default on the WiFi network where you activated your phone. Is there any way to determine when these two forms of the place happen? The location manager allows a horizontal accuracy to be read, but if you are using your home WiFi, then it (but false) says that there is a +/- 500 range in it, Be away Besides, what is the right way to know how much satellite phone is reading? Your question is not the basis, T is quite right ... Core Lection This Uses 3 different ways to say where you are: 1) GPS - The most accurate, most battery consumes 2) Cellular Transjal - still accurate, some batteries Eats 3) Wifi - Exactly accurate, but in a registered place where there is a WiFi network, then at least you are right; Some battery is consuming Core Lectionation tells you how much you want your "projections" and then starts the ...

sifr - sIFR3 - renders beautifully but links are not clickable -

I have a sIFR3 running on my site, but for some reason, links are not clickable. I previously experienced this issue I have never done that .. I am replacing H2 with only the link title on my site It looks like a bug in Firefox / Safari where a flash movie set from wmode to transparent or opaque , An early Contained in the skin is, not try to right click if events register with our wmode delete settings.

Visual studio web server iis6 or iis7? -

Whether iis7 or iis6 is running internally when I run my asp.net mvc site in Visual Studio 2008 ? In addition, MVC requires iis7 (for?) Through visual studio, you are not actually running IIS6 or IIS7 You can find Cassini you are running. For Asp.net MVC, it can be deployed to run under IIS6 or IIS7. As mentioned earlier, if you want to run under IIS6, then you will have to jump through some hoops so that IIS7 is possible if possible. If you are stuck with IIS6 (perhaps you are on Windows Server 2003), there are some best practices (URL file extensions or wild card application maps), which are in Phil Hawks, which help your application run correctly will do.

java - How to configure behavior of the "assign parameter to new field" quickfix in eclipse? -

I love the intensity of eclipse. I often use "assign parameters for new fields", but the last keyword I do not want to add more to it (GWT RPC does not serial the last areas, and I am still doing many GWR RPCs.) I can not find this setting Which is this quickfix The Iyantrit. I am using Eclipse 3.4 Do I have no absence, or do I am engrossed in the plugin development docs and updated my own, "non-final area" The answer regarding the marker resolution extension point was accepted as acceptable, because it seems that the configuration is not baked in the option. There is not an easy way to expand an organization. Ecl.se.ui.ide.markerResolution Expand Point & lt; Extension Point = "org.eclipse.ui.ide.markerResolution" & gt; & Lt; Marker Regenerator Marker Type = "org.eclipse.core.resources.problemmarker" class = "org.eclipse.escript.quickfix.QuickFixer" /> & Lt; / Extension & gt; More information ...

c# - Windows Mobile: exception in Finalizer terminates program -

My Windows Mobile with an exception that System.Net.HttpReadStream . It only happens occasionally, but then it brings down the whole program. Is there anything that can do to continue the program when such an internal thriller throws? Or alternatively, how can I stop this kind of error? Here is Staktrres exceptions (not wholly, because I have to type the whole thing ... ObjectDisposedException System.Threading.Timer on System.Threading.Timer.Change on .throwIfDisposed () (UInt32 dueTime, UInt32 duration) ... on System.Net.ContentLengthReadStream.doClose () on System.Net.HttpReadStream.Finalize () calling code : HttpWebRequest request = (HttpWebRequest) WebRequest.Create (actionUrl); request.AllowAutoRedirect = true request.AllowWriteStreamBuffering truth =; request.Method = "post"; request.ContentType = "application / json ", the while (StreamWriter writer = new StreamWriter (request.GetRequestStream (use))) {JsonSerializer serializer = new JsonSer...

vb6 - Mappoint 2009 Europe MapPointControl.ocx -

My old legacy VB6 app is what I support, which uses MapPointControl.ocx. Customers are saying that this does not work with the Mappint 200 When Googled, it will appear on the European joint of Mappoint, which contains a bad osx file on it. Obviously, this has now been sorted on the latest CD, but it does not help my clients who are still moaning. Is this true? Do I just need a replacement .ox, and if so? Microsofsite site is useless There is no first hand information, but I found "binged" Microsoft and found this post which suggests That .ocx will fix your problem from the mappointcontrol North American version. Hope this corrects you for this.

java - How do I print the class structures in a jar file using the javap tool? -

I want to list methods of class files in jar using javap tool How can I do this so that it list the methods and members of all class files in the jar. Right now I am able to do this for just one class at a time. I hope if I say something javap java.lang * This should list the methods and members of all classes in the java.lang package. If Jawap is not capable of it, then is there any such device available? #! / Bin / bash # Jar name jar = & lt; Jar Name & gt; # $ (Jar-tf $ jar | grep '.class') #Loop through classes for classes; With DO # replace Class = $ {class // \ //.}; # Javap javap-classpath $ jar $ {class // class}}; Done

asp.net - Page.UICulture -- How do I retrieve the Two Letter UICulture Code? -

ASP.NET वेबफॉर्म्स में, जब @ पेज डायरेक्टिव में UICulture = "en" सेट करना "एन" के बजाय एक रिस्पांस। राइट (पेज। युिक्वल्चर) स्ट्रिंग "अंग्रेज़ी" देता है। > क्या इसका उपयोग करके दो अक्षर भाषा नाम वापस करने का एकमात्र तरीका है? CultureInfo.CurrentUICulture.TwoLetterISOLanguageName या वहां है बेहतर / अधिक सुंदर तरीका? ईमानदारी से मैं यह करने के लिए किसी भी बेहतर तरीके से नहीं जानता। / P> आप एक विस्तार विधि बना सकते हैं, लेकिन यह ओवरकिल हो सकता है: सार्वजनिक स्थैतिक वर्ग एक्सटेंशन {सार्वजनिक स्थिर स्ट्रिंग GetUICultureCode (यह सिस्टम। Web.UI.Page पृष्ठ) { रिटर्न सिस्टम। ग्लोलाइज़ेशन.कल्चरइनफा.कंट्रूट यूकल्चर। दो भाषाई भाषाओँ; }} फिर अपने पृष्ठ में आप इसे this.GetUICultureCode () के साथ एक्सेस कर सकते हैं

multiple mysql queries into one php two-dimensional array -

I'm refactoring my code and just a snag. The first query in the code below receives tab_ID of the latest submitted tabs. The second query gets the details of each tab In my old way of doing this, I embed PHP and HTML and it was actually a totally mess. Right now I want to merge 2 questions in 1 and / or load it into an array. Ask for free and / or masculine function get_newest_tabs () {$ db_open; $ Sql ​​= "SELECT tab_id, song_id, user_id from FROM tab, time_added DESC by ORDER". "LIMIT 15"; $ Result = mysql_query ($ sql) or die ("Error - Latest tab function:" .mysql_error ()); {$ (= $; $ I & lt; mysql_num_rows ($ result); $ i ++) {$ tab_id = mysql_result ($ result, $ i, "if mysql_num_rows ($ result) & gt; 0) Tab_id "); $ Db_open; $ Sql ​​= "SELECT tabs.tab_id, tabs.tab_version, tabs.number_of_hits, artist.artist_name, users.user_alias, songs.song_name, tabs, users, artists, where songs tabs.time_added tabs.tab_id = ...

c# - How to iterate through a list that is being modified? -

I have a list of rows from the dataset that I need to be repeated. The problem is that the processing list can remove one or more rows from the list. Since the list is being modified, I can not use any foreach () loop. But since then it may possibly happen in some extinction elements before I am processing, even I can not use the loop (i.e., if I am processing element, And as a result of the extinction of the element and other elements, the way I was processing, I can not think of a way to adjust the element correctly to indicate.) How to deal with the problem Will you? My current idea is to always process the first element in the list if it is removed, then process the new first element if it is not removed, then to move it to the "already processed" list, Process the first element. Is there any easy way? When I am modifying a list, since then I always have a I am able to create a new list that I want to keep, and then the new it really depends on the da...

sql - How To Forward Data To An External System If There Were Changes During An INSERT or UPDATE? Use a Trigger? Use Extended Sproc or CLR Integration? -

The basics of this system are today we have a table of SQL 2005/2008: Make Table [DBO]. [Primary] [Primary] Data field [[firm] [Character] [4] Faucet, [Account] [Characters] (10) [Woman] [Original]] [Original] [Primary] There is a blob, this is the place where virtually all the stuff are bob data compressed text which looks like an INI file, in which the key-value is added within the squares. The internal layout of the INI file is very complex, but too much difference With data related to. We also have another product family which is designed, action Navan and target are very different in the audience. But now we have a customer who wants to integrate two systems at the database level. My system is MSSQL and other systems are both MySQL A custom middleware solution of my design sits I do not want to connect directly to MySQL, and they do not want to connect directly to me, for various reasons which are sound and the scope of this conversation So, do not worry about that. ...

c# - What do you call a looping progress bar? -

OK, what's the loss of the right terminology for this? I'm looking for the correct name to call a progress bar which is a "loop" rather than the standard progress bar which fills 100% from the left side, it looks like the progress bar, but the fill color A small part of it is consistently with loops, not filling the entire progress bar up to 100%, basically makes it an eternal one like the progress bar, Microsoft now wants to use this progress bar in its dialogue. The normally. What do you say about this thing, then I can search for some controls etc. Does this control? Thanks Progress bars in Windows are called in Marquee mode looks like. View

If there is a set-cookie response from an xmlhttprequest, will the browser honor it and set the cookie? -

I am not trying to send the cookie data with XML, but I can set the cookies for it by xmlhttprequest Session without the need of user interaction, trying to use According to: If user agent supports HTTP state management If it continues, discarding and sending cookies (as set-cookie and set-cookie 2 responses have been received in the header, and sent to the cookie header) may continue. As far as I have been able to tell that Firefox 3.6 will store cookies, but they will not be available for the document on that page which is document.cookie executes the query. But they will later be sent with XMXHttpRequests, which is enough for my experiments.

Cocoa Touch UIViewController Properties and class design -

I am creating a custom view controller This VC needs to load some data that is known in the event that It creates it and pushes it to the top of the navigation controller that it is going to be its share. My question is, how should I pass data from a scene that handles the creation of a custom view controller in that custom view controller. I have thought about four possible options, and I was hoping to get feedback on how well each person is or not for this functionality. 1) Reveal public properties in the Custom View Controller and - (zero) Set UI elements in the view based on those properties in ViewDidLoad. 2) Express the actual UI elements themselves and their .text / .image / Setting which create attributes as view controller. 3) Create a custom constructor for the custom view and pass those values ​​that I need to set the UI elements 4) Create a custom model that both views Get access, set / push data before custom website is created, and access that data in the ...

Hi, can someone explain this. delphi code.. internet connection status -

Can anybody explain this to me like I'm two years, not that he did not understand a fetish, just I do not Which router is, number 3? 4 What does it do? Uses WinInet; Cost modem = 1; LAN = 2; Proxy = 4; Bus = 8; Function GetConnectionKind (var strKind: string): Boolean; Var Flags: DWORD; Start strKind: = ''; Results: = InternetGetConnectedState (@flags, 0); If the result when it is triggered (flags and modem) = modem then strKind: = 'Modem'; If (flags and lanes) = LAN then strKind: = 'LAN'; If (flags and proxy) = proxy then strKind: = 'Proxy'; If (flags and busy) = just strKind: = 'Modem busy'; End; End; Process TForm1.Button1Click (Sender: Tubbed); Var strKind: string; If GetConnectionKind (strKind) then ShowMessage (strKind) will begin; End; [InternetGetConnectedState] (the Bitmask first parameter that looks like this: / P> 76543210 & lt; - bit number || |||| || || + + - INTERNET_CONNECTION_MODEM || || + - INTERNET_CONN...

c# - Thumbnails asp.net -

I am trying to write an application that clicks a button to view images as thumbnails I have a Dalit in my model popup from a folder in a modal popup. But from there I do not know where to go I have already tried 4guysfromrolla solution, but it was not what I was looking for. How do I set images as thumbnails? I already have the following .... string () = directory in the form of slow files. File files for each file in the form of gate files (server.mappath ("~ / folder1 / folder2 /"), "* .jpg") in the file as string. Shuttle (file. Last indexoff ("/") + 1, file. Length) 'Response Write (file & amp; & lt; br & gt; ") file = file & dim image = new image (as image) & image.ImageUrl = file image.ight = 50 Image.Width = 50 Me.Controls.Add (image) Next Edit: New Question I resize the images in JavaScript onmouseover . image.Attributes.add (" Is it possible to do this here? & lt; ASP: data list id...

URL Rewriting in .NET behaves badly with cookieless sessions -

I am currently using HTTPModule to relay the URL. I am using my custom transform feature, which gives me permission to supply assembly with a method of real URL transforms. I have a Kukul session on, and this URL is causing some interference with the writer. So, let's assume the path on my server is: But I want to rewrite the URL to see the path like this: I have created a script to output the following: - Request.Url (from my codehead) - Request.RawUrl (from my codehead) - document.location (From javascript) I type the following in my address bar: When I have a cookie session, everything works the same. Is as much as you want. My script outputs the following values: - As shown in Request.Url - Request Appears as RUUrl /rewrittenpath/index.aspx- - Appears as document.location - The address bar in the URL stays unchanged from what I originally typed. However, when I have the Cuculius session enabled, things are very much. My script outputs the following valu...

c# - How can I update a specific XElement? -

What is the best way to update an XElement ( Update object value element element ) In this XML? & lt ;? Xml version = "1.0" encoding = "UTF-8"? & Gt; & Lt; MyStore & gt; & Lt; Category & gt; & Lt; ITEMNAME & gt; Pen & lt; / ITEMNAME & gt; & Lt; ItemNumber & gt; 12 & lt; / ItemNumber & gt; & Lt; / Category & gt; & Lt; Category & gt; & Lt; ITEMNAME & gt; Paper & lt; / ITEMNAME & gt; & Lt; ItemNumber & gt; 23 & lt; / ItemNumber & gt; & Lt; / Category & gt; & Lt; / MyStore & gt; XDocument document; Elements ("Mystore"). Elements ("Category"). Elements ("item name"). Single (item name => item name value == "pen"). Guardian .Element ("item value"); PenItemValue.Value = "123";

select - MySQL View check if data is NULL -

I must include a case in the selection to choose whether the data I am adding to my view is taped, In which case I want to enter it in zero or not. Do you mean something like that? Select if (`field 'is zero, 0,` field`) ... There also "IFNULL ()": select IFNULL (`field`, 0) ...

Asynchronous DLL access in LabVIEW? -

I have a LabVIEW application, which currently sends data to a C + + application through a DLL Now I Need to send data back to a LabVIEW app from C ++. Is I able to trigger the code in LabVIEW with a DLL call or from time to time DLL needs to see if the new data is waiting ? Am I going completely wrong about this? It is possible to create an event from C ++ to trigger a normal LabVIEW event. An NI platform is a discussion of this structure and a code excerpt from that thread: #include #include "EventDLL.h" // Generate a LabVIEW event int GenerateLVEvent (LVUserEventRef * msg, int param) {PostLVUserEvent (* msg, (Zero *) and Ultimate); Return 0; } And here the original source code is given as a PNG: And here is the LabView code: The following Loop LabVIEW The code is a LabUVE event handler to the DLL event. It should be kept inside your DLL. One of the input parameters should be in the form of U32 as the event pointer. Good luck, Ton If you are going ...

multithreading - WCf server busy threads single-core -

I am trying to set up a service and I am getting the following error HTTP The service is very busy at the location. This is a very troubling problem that I want to be able to fix. I'm not overloading the system, but I am using threads in my program. Maybe I should disable them? No? I am running an old computer 2003 server. My laptop is a dual processor so I do not run any problems there. Does anyone have any experience in dealing with this? How are you using threads if you are using them incorrectly? Can easily get in your way. The simple way to use the thread is to close a new thread on every request with just the new thread (). Start. This will kill your performance, and it will have no value. Keep in mind that only one thread can be run on your single-core computer at a time. Even if most are blocking, then something much more than about 20 threads is going to happen.

Help with regex replace in php -

Image
I have a bunch of URLs in static HTML files, which must be changed. It is now: & lt; Img src = "/ foldera / folderb / folderc / images / imgxyz.jpg" /> They should look like this: & lt; Img src = "imgxyz.jpg" /> So, I have just written a php script which opens to each and a preg_replace () does. My regex (with double-sided backslash, yes): $ regex = '/ & lt; Img src = "\\ / foldera \\ / folderb \\ / folderc \\ / images \\ / ([^"] *) "\\ /> / '$ replacement =' & lt; img src =" $ 0 "/ & gt;; That's why I'm capturing only a few images / images until the ending quote. But whatever I It is something like this: "/> It seems that the capture group is redundant and ... or something for replacement $ 1 . $ 0 matches the whole pattern. You want the first group. $ replacement = ' An even better way to use basename as part of your replacement Wil...

java - Is Spring able to handle this user case? Neither property nor constructor injection -

Basically, I have class A, which depends on class B, which in turn depends on the spring management Bean C, but I want to keep B as a class variable, for just a few reasons, inside a method Use B My solution is to create a static method (B) in B, which gives an example of B Now the problem is that, C is not properly injected into B. // A can not be B. as class / field variable. Public class A {Pure Zero Method () gives an example of {BGT (B)}, but this example is not example example: it is a stable "example" in BBET (). (); // This eliminates a null poincé exception}} class B {@ resources (name = "c") private cc; Private static B example; Public stable b mill () {example example == blank? (Example = New B ()): Example; } Public Zero doSomething () {c.toString (); // This line will break if c // is not injected for instance of bug}} @ service ("C") class C {} How do I solve this problem Do you? The whole thing to use spring is that it is a dependency ...

authorization - ASP.net MVC: Getting Required Roles for Login? -

Is there a general way to obtain the required role for a particular action? My problem with detail is that I have 2 roles such as "Users" and "Admin" and an action with: [Authorize (roles = "admin" )] Admin of Public Sector Administration ... If the user is not logged in, he takes the login screen. Okay. When a user logs in to the role of "Admin", then all works well, but if the user logs in with "role" then he will display the login screen continuously, in addition he has successfully entered, but definitely Does not have the necessary role. So it would be good if the login display can show an alert, saying that it is already logged in, but it does not have the necessary rights to view this page. And additionally it can display the necessary roles. Thank you, Michael I think this is mainly the default AuthorizeAttribute From the design page, if fails in any part of the authorization. You can create a new class th...

Rails application deployed and working, but MySQL database appears empty -

I have posted a Ruby on Rails using mod_rails and nginx on Capistrano application, and it worked perfectly I am doing a shocking problem. When I run the following command on the server: Show_table in applications; MySQL returns: empty set (0.00 seconds) I know the information being written The database is because I have entered the data that is being saved I have tried to restart the Rail app and the entire server, as well as try to access the site from other computers, and it works perfectly Still, still a blank set is returning. I'm completely stumped. Anyone have any ideas that are going on? Thanks! Is your database.yml file installed correctly for production Was the environment?

database - How to do this: a=a+1 in sql server query? -

मैं यह कैसे कर सकता हूँ: sql server query में a = a + 1? धन्यवाद! यदि आप किसी विशिष्ट पंक्ति में कॉलम के मान को बढ़ाना चाहते हैं, तो यह आपके लिए ऐसा करेगा: UPDATE tablename SET columnname = columnname + 1 जहां primarykey = id इसके अलावा, कृपया अपने प्रश्न से आप क्या कहना चाहते हैं।

php - Open source file upload with no timeout on IIS6 with ASP, ASP.NET 2.0 or PHP5 -

I have a cross-platform cross-browser approach to uploading files, such as timeout is not necessarily large upload - It takes some time to upload due to the slow connection of some uploaders - but the server bar is out in any way. I have heard that there are ways to upload files in fragments that somehow the server does not decide to finish uploading time. After searching around everyone, I can see that the ownership upload assistant and Java and Flash (SWF upload) widgets which are not cross-platform, do not upload in fragments, or are not free. One of these platforms (ASP, ASP.NET 2.0 or PHP5) is one way to do this, though I am not very angry at all of this. Net class / controller / project / module / visual studio / compile / etc., so some kind of runable complete projects that run on .NET 2.0 will be useful. PHP and ASP I think I'll go straight forward. Unless I'm completely forgetting nothing, I doubt it / I hope proper web uploads are working harder in any langu...

html - List Item, Two Hyperlinks CSS Design -

Write me a single & lt; Li & gt; element is required, with two buttons inside it as follows: & lt; Li & gt; & Lt; A href = "#" class = "left" & gt; Title & lt; / A & gt; & Lt; A href = "#" square = "true"> & Lt; / A & gt; & Lt; / Li & gt; With a layout of buttons similar to the following: ____________ | _________ | __ | The entire button will expand in the background, on the left & lt; A & gt; The tag will be filled with text, with the alpha transparent on the right & lt; Li & gt; Button to overlay the background of the element This is the CSS I got. # left ul #main-menu li.li- a {display: block; Padding: 4px 6px 6px 6px; Text-decoration: none; Color: #fff; Font-size: 12px; Margin: 0; } # Left ul #main-menu li.li- add {height: 25px; Margin: 0; Padding: 0; Background: URL ('button_back.gif') no-repeat; } # Left ul # main menu li.li- add a.left {...

silverlight - How to make sure my WPF TabControl always has a selected tab when it contains at least one tab? -

मेरे पास TabControl जिसका आइटम ObsavableCollection के लिए बाध्य है: & lt; TabControl ItemsSource = "{MyObservableCollection बाध्यकारी}" / & gt; वस्तुओं से जोड़े जाने और निकाले जाने से टैब को संग्रह से निकाल दिया जाता है और हटाया जाता है। हालांकि, जब भी संग्रह रिक्त है, तब चुने हुए इटम -1 में बदल जाता है (अर्थात् कोई चयनित टैब नहीं है)। तब, जब कोई आइटम जोड़ा जाता है, तो चयनित आईटम 1 पर रहता है और नया टैब चयनित नहीं है। मैं कैसे TabControl चुनें जब भी कोई वस्तु रिक्त संग्रह में जोड़ दी जाती है, तो नया टैब क्या है? कोई आसान तरीका हो सकता है, लेकिन आप अपने वीएम में ऑब्ज़र्वबल कलेक्शन पर संग्रह बदले गए घटना को हुक कर सकते हैं और चयनित आइटम को नए आइटम में सेट कर सकते हैं (मान लें कि आपने चयनित आइटम वीएम पर संपत्ति के लिए बाध्य है)।

sql - Records linked to any table? -

Hi Im with a little struggle and some ideas can be used ... My The database has the following tables; etc. I would like to add "Notes" record to any type of record Notes Table Notepell Intel (PK) Note: NITF Type Variant (3) NoteText Vartcha (100) Nodet DateTime Where the note is a PK of a customer or Supplier etc. and Note type is that note is against the record of Now I Realize that I can not add an FK Note that FK bin Many tables have to be present in all tables referring to. How do you design above? Note: FK must be in any of the above tables Cheers, Daniel Accept this limitation that you can not teach the database about this foreign key constraint. So you have to do without integrity check (and cascading removal). Your design is fine, it is easily extensible for extra tables, you can have multiple notes per unit, and the target tables do not even need to be aware of the note feature. One advantage is that the separate table of table notes in ...

PHP Web Service with SOAP -

I realize that it is possible to create a PHP web service using SOAP, however, there are classes within PHP, which Make SOAP messages easier to create? I want to use PHP, with this link is a webservice using wsdl with this link API in my PHP web application to integrate the UK mail but now how is it not ?? Any help are as follows: PHP function They should interoperate properly with all .net - it's just XML after all. ..

Where can I find math topics and resources for programmers? -

There are some questions about that circle around this question but I think that's quite different. I have decided that I especially want to improve the width and depth of my math skills in those areas which are useful and / or interesting for programmers. What should I study on? What resources do you recommend (blog / books / online lecture ...)? I find it easy to consume resources because I am doing this in my spare time, I do not want to spend the day struggling through dense text, but I I want to go deeper from the surface. I have read the subject (and most comments) which is useful, but I think the voting system here will help me to focus on the most useful / best resources and topics. Edit: I am looking for a study course that I will follow in the next few years, to solve a particular problem I am not trying to learn some new skills that I am interested in. And may be useful in my career in the future. My suggestion for a book that covers everything a...

ruby - When should I use Struct vs. OpenStruct? -

Normally, what are the advantages and disadvantages of using OpenStruct compared to Stract? What kind of common usage will fit into each of these? One OpenStruct , you can create properties arbitrarily on the other hand, When you make it, a structure should define its properties. The choice of one should be primarily on the other, whether you should be able to add features later or not. The way to think about them is in the middle of the spectrum between the hashes and in the form of other sections. They show a more substantial relationship between data than hash , but they do not have such examples, such as a class. Understand a bunch of options for the function, for example, in a hash; They are only loosely related A name, email and phone number required by a function can be packed together in structure or OpenStruct if that name, email and phone number You need to have the necessary methods to name in "First Last" and "Last, First" forms, so yo...

regex - Apache mod_rewrite encoded URLs -

I am working on a webpage that takes the URL as a parameter, and it is easily indexed by search engines. Would like to do. One requirement is that each URL appears as a directory. My script is in the format: myscript? Url = & lt; A url & gt; And page = 1 I have to redirect to see something like this: lookup / & lt; A url & gt; / Page: 1 / The URL is causing me problems in the future ... I just "see / after" and anything after the "/ page" Want to tell mod_rewrite to choose Of course, nothing can be as easy as it can be. It has to be rewritten because it is now: RewriteEngine on RewriteRule ^ / lookup /(.+)/ Page: ([0-9] + / ( $) + / Myscript? Url = $ 1 & amp; page = $ 2 [L] This works very well, besides, when the URL is properly encoded "Www. Take the example of google.com/finance "When I put these URLs in my browser's address bar, this is what happens: # this lookup / www.google.com / finance / Page: ...

c# - Why does "as T" get an error but casting with (T) not get an error? -

मैं ऐसा क्यों कर सकता हूं: सार्वजनिक टी getMainContentItem & lt; T & gt; (स्ट्रिंग मॉड्यूलके, स्ट्रिंग आइटमकी) {रिटर्न (टी) GetMainContentItem (मॉड्यूलके, मदकी); } लेकिन यह नहीं: सार्वजनिक टी GetMainContentItem & lt; T & gt; (स्ट्रिंग मॉड्यूलके, स्ट्रिंग आइटमकि) {GetMainContentItem (moduleKey, itemKey) टी के रूप में; } यह शिकायत करता है कि मैंने सामान्य प्रकार को पर्याप्त नहीं प्रतिबंधित किया है, लेकिन तब मुझे लगता होगा कि नियम "(टी)" के साथ कास्टिंग के लिए भी लागू होगा। क्योंकि 'टी' एक वैल्यू-टाइप हो सकता है और 'ए टी' वैल्यू-टाइपों के लिए कोई मतलब नहीं है। आप ऐसा कर सकते हैं: सार्वजनिक टी GetMainContentItem & lt; T & gt; (स्ट्रिंग मॉड्यूलके, स्ट्रिंग आइटमकि) जहां टी: वर्ग {वापसी GetMainContentItem (मॉड्यूलके, मदकी) टी के रूप में; }

asp.net - IIS6 Wildcard Mapping Security Concerns? -

We are looking to use ExtensionLost URL for the first time in our organization. We have requested that our system manager add wildcard mapping to IIS 6 so that all requests are processed through asap net. They are pushing back, citing safety concerns, I do not have enough information about potential security problems with wildcard mapping, to know what security problems can be or can not be. Any feedback would be appreciated. By adding wildcard mapping to IIS6, basically all requests will be processed through a net framework. I'm not sure about security concerns, but know that never loss of performance View

audio - Algorithm for music imitation? -

I'm interested in making automated music. I was thinking about the program which feeds 1-time arpegios (= a fixed length sequence of notes for simplicity) in large quantities and generates its sequence, based on what it has learned. , I know that I can use the letter (Degram? Trigram?), Only the notes apply to the pitches, and then generate my sequence based on frequency probabilities. Did you know that you have more advanced algorithms, music sequences? Wikipedia article is an excellent primer on algorithmic structure. It describes some models used for algorithm composition, notable composers, book reference and algorithmic composition software.

Database replication -

OK while working with table creation, is it always supposed to create a table on a database Does that mean that DBA should subscribe to the table on the table? Apart from this, if the master / slalge configuration is to be used, should the data be repeated from one master to another again? The problem I am facing now is that there are so many things in the master in my database, but there are missing slaves who are present in the master only. Is not something configured here correctly? The replication depends on the configured. Real time replication should keep the master and slave coordinated all the time. The "porce-man" replication is usually configured to sync at the end of some time intervals. This is happening in your case.

objective c - Why am I getting an invalid NSString from SQLite for my UILabel? -

I have a view with a UILabel and UITableView I am using this code to get a string from the database : - (zero) getOneQuestion: (int) flashcardId categoryID: (int) range id {flashCardText = [[NSString alloc] init]; FlashcardAnswer = [[NSSTING ALLOW] INIT]; NSString * martialStr = [NSString stringWithFormat: @ "% d", flashcardId]; NSString * queryStr = [[NSString alloc] initWithString: @ "Select Flash CardText, FlashCard Enter, Flash CardDialToption FlashCardQuestionInfo, where Flash Cardide ="]; QueryStr = [queryStr stringBeffing string: martial STR]; NSString * martialStr1 = [NSString stringWithFormat: @ "% d", Category id]; NSString * queryStr2 = [[NSString alloc] initWithString: @ "and rangeID ="]; QueryStr2 = [queryStr2 stringbapping string: MarshallST1]; QueryStr = [queryStr stringBeffing string: queryStr2]; Unsigned integer lengthoffestring = [querystrate length]; Four fresh 2 [lengthofstring + 1]; Strcpy (temp2, [queryStr cStringUsin...

parsing - Where does context sensitivity get resolved in the C++ compilation process? -

Yesterday I asked about the C ++ reference sensitivity, see. Among the many excellent answers are acceptable, by However, I still feel that something about it (perhaps some glossary confusion?). According to the question: What part of the compilation is related to ambiguity? To clarify your vocabulary: A Cfg is a grammar in which there is only one non-terminal symbol in the left hand side of the rule (e.g., A-> zC ), A CSG is one in which there is a terminal (plus non-terminal) on the left ( aav-> qt ), where the uppercase letters are non-terminal and lowercase terminals. Does grammar have any representation in the parsing C ++ source code as the latter one? Thank you, and sorry to take the issue forward. Any C + + front end (parser, name / type resolver) that I know () The context implements the sensitive parser using the CSG grammar rules, as you defined it. Very much they operate in a clear or implicit manner with a reference free grammar that still remain...

How many characters can a Java String have? -

I am trying to get a problem with the Sphere Online Judge (SPOJ) where I have an integer number of digits Thought to use the functions of Java, but would they allow this string to last longer? You should be able to get the length of the string (always 2147483647 (2 31 - 1) By the Java specification, the maximum size of an array, which is used by the string class for internal storage) or half your maximum heap size (because each letter is two bytes), which is also small.

actionscript 3 - Flash AS3 - Can I prevent my shared object from saving on the .swf close? -

I have a program to save - users click on a button, and save everything in a local shared object. Goes flush (); Command. My problem is that the flash. SWF files are automatically saved in the local shared object, when the movie is closed, their last, manual saving is over. After saving the shared object after flash movie is off? Here's something that can solve your problem but can not answer your question. Collect the properties of your shared object and duplicate them if you have "foo", "bar" and "falcon" then create "save", "save" and "save" When the movie starts, the "save" version is run-time variant "Foo = saveFoo; bar = saveBar;" And so on To save, copy run-time version to "save" type and flush. Now saving autos will not change anything "save" variants are only those that really matter. The taste of the weather.

Evaluation time of C# properties -

वर्ग बार {निजी बाइट [] डीजी; बार (बाइट [] आंकग्राम) {dg = datagram; } इंट फ़ू {get {return BitConverter.ToInt16 (डीजी, 8); }}} गुणों का मूल्यांकन कब किया जाता है? समय पर फू का उपयोग किया जाता है? सभी संपत्तियों का मूल्यांकन करने वाला डीबगर मुझे डरा रहा है। जी हाँ, एक संपत्ति केवल कॉल करने के लिए वाक्यविन्यास चीनी है प्राप्त करें एक्सेसर विधि हर बार संपत्ति पढ़ी जाती है, विधि निष्पादित होती है। और हाँ, इसमें डीबगर शामिल है (यही वजह है कि अगर आपकी संपत्ति के गलतियों का साइड इफेक्ट होता है, तो डीबगिंग आपके कार्यक्रम के तरीके को प्रभावित कर सकती है)।

c++ - Standard library sort and user defined types -

If I want to sort the UDT vector one of two types of variables, then it is possible for standard Sort the library To do this or I need to write my own sort function. For example if you have struct MyType {int a; Int b; }; Of vector & lt; MyType & gt; Mu // Doo Stuff which moves the data back to Mew.begin (moo.begin (), moo.end ()) //, but at least the highest, but not Is it possible to sort using stdlib sort? Thank you. If your type applies "bool operator & lt; (...) const " and a copy constructor (compiler-generate or custom). struct MyType {int a; Int b; The Bull Operator & lt; (Cost MyType & Other) const {... // A meaningful implementation for your type} // copy constructor (unless it is not a POD type). MyType (Constant MyType & Other): A (Other. A), B (Other. B) {} // Some other forms of production besides copy maker. MyType (): a (0), b (0) {}}; Alternatively, you are the operator implementing sort () to the functioning...

wmp - C#: AxWMPLib - Playing a portion of a song -

I am trying to play a song in a WinForms C # application using AxWMPLib COM control. However, I only want to play in a specific 30 seconds field of that song. So far, I can play the track from the beginning of that 30 seconds field (using the Ctrlcontrols.currentPosition member), but I have no way of specifying the end time. What is the best way to go about playing only 30 seconds of this track? I do not have a way of doing this completely WMP control An alternative, and this can not be accurate, but you can try creating a timer with a 30 second tick time, then when you call axWmp.Play (...) Start that timer. When the timer is down, call axWmp.Stop ().

perl - How does Getopt::Std handle spaces in arguments on the command line? -

I am playing with the module and thinking about the arguments taking the space. I have this ATM code: getopts ('dp: h', \% option); The problem is, if the logic P flag contains a space, the getopts prevents the process from being processed, when it runs on the location Is there a way in which I can keep the spaces in arguments wrapped up without any quotation marks ("P" some things)? I'm fine with the quote. I'm just curious. Thanks guys! Take a look, someone used it a lot .. And point out Double quotes "four (34) will work, if you have empty spaces, then this means that there is no other way.

Send iPhone HTTP request to Apache PHP webserver -

I am a programmer with a game and 3D graphics background and at this time I would like to brush my networking and web development skills . I have a job that I want to accomplish for doing this. My idea is that I would like to send an HTTP request or anything like your webserver, which runs an LAMP based setup. I would like to know how I can send a HTTP request to my webserver using the Cocoa Touch Framework from my IPO. I should be able to record the webserver (using PHP) sent a plain text file, which I can use to create the graph later. For my example we can just send the current date. I think people should do this often and I really want to know how to do this. Thanks for your help. P.S. If you do not know the cocoa code to send the request, then I'm sure I can understand that thing, but at least I would like to know how to save the HTTP request to the Linux server, primarily PHP but Another useful language is OK to secure away bonus points. Apart from this: I am a ...

ruby on rails - How do I remove the Show/Hide links on a subgroup in ActiveScaffold? -

ActiveScaffold के साथ मेरे पास मेरे प्रपत्र का एक समूह है: config.create.column .add_subgroup "ग्राहक" करें | ग्राहक_ समूह | | Customer_group.add: customer_surname,: customer_postcode अंत इसमें एक दिखाएँ / छिपाएँ लिंक है जो मुझे नहीं चाहिए। मैं ActiveScaffold में एक सब-ग्रुप पर दिखाएँ / छुपायें लिंक कैसे निकालूं? इसके लिए कोई सेटिंग नहीं है (लेखन के समय) आपको खुद को पैच करना पड़ता है। कोड सहायक फाइल में link_to_visibility_toggle फ़ाइल में है lib / active_scaffold / helpers / view_helpers.rb सक्रिय का पाड़।

gis - How to filter spatial data -

I have a database of map points, and I want to limit the display to show a maximum of ~ 50 points at a time . When a user zooms in, more points can be displayed. Currently, I'm just taking a random sample of the results set. It is not very good, because there can be empty areas, when suddenly zoom in these show a point My next idea was that I could make a 10x5 grid, and would repeat the results if the grid A place was empty, so I show a point. This solves the previous problem, but the user does not even understand where the focused areas are. Also, it is quite slow if the user decides to zoom out the whole world. Right now, I am not using any spatial algorithm to sort the data. My plan is to do the right thing before, and then get it fast. Reading a bit in RT, KD-tree and tractor-trees, I did not find anything that helps me to select the 'smart' subset of the sample . It seems that some type of width should be done first, which should solve this problem very easil...

javascript - Check for a value in a JSON object -

I have to find out that an ID is in my JSON object, for example: "{{"} ":" General "," created ":" {{"}": "{{"} ":" 2009-07-25T14: 12: 25 + 01: 00 "," channel ": [{" id ": 1," name " 2009-07 -25 14:00:02 "}]} Especially I need to see if my ID (say, 2) would be in channels is. I .id . How can this be done? Try this: var id = 2, found = false ; For (var i = 0; i & lt; channels.length; i ++) {if (channel [i] .id == id) {found = true; break; }}

c# - Multiple endpoints under IIS -

I am trying to add a new endpoint to the service hosted under the IIS, but I am unable to understand it It is my understanding: There can be many intervals under IIS, unless they have unique addresses. You can provide an original address, but it will be overridden by the virtual directory setup in IIS. is my virtual directory & lt; Services & gt; & Lt; Service name = "WcfCertServer.Service1" behavioral review = "WcfCertServer.Service1Behavior" & gt; & Lt; Endpoint address = "" binding = "wsHttpBinding" contract = "WCFcert server. ISC1" /> & Lt; Endpoint address = "test" binding = "wsHttpBinding" contract = "WcfCertServer.IService1" /> & Lt; Endpoint address = "Max" binding = "MaxHttpending" contract = "IMAXADEXXchange" /> & Lt; / Services & gt; & Lt; / Services & gt; I can get the service using but IE or...

visual studio 2008 - VS2008 crashes with xml when in project -

After a problem with VS2008, at any time I have an XML file in a project and go to open it , Devenv crashes out Not specific XML files, but I have tried to re-install it on 2008 and have run Devon / Safemode. If I open the same XML file directly without a project, there is no problem in the devenv.exe on 0x76f76541 Exception of the verb: 0xc0000005: Location access violation read 0x0000000000. Call stack show: & gt; Ntdll.dll! 76f76541 () F981BBED.x86.dll! 35672d05 () user32.dll [frames below and / or missing, ntdll.dll may be loaded for any symbols]! 759c8d88 () user32.dll! 759c9185 () mscorwks .dll! 705fc370 () Microsoft.VisualStudio.ni.dll! 673362f9 () System.Windows.Forms.ni.dll! 67dd86a0 () System.Windows.Forms.ni.dll! 67dd8621 () System.Windows.Forms.ni.dll! 6830a167 () user32.dll! 759cf8d2 () user32.dll! 759cf794 () user32.dll! 759cf73d () user32.dll! 759d0817 () Oleaut32.dll! 75a541ec () user32.dll! 759d0a65 () ntdll. Dll! 76f899ce () user32.dll! 759d02c5 () user32...

Spiral Algorithm in C# -

How can I fill an array like this: 1 2 3 4 5 6 7 8 20 21 22 23 24 9 1 30 31 32 25 10 18 29 28 27 26 11 17 16 15 14 13 12 Spirals C # Thank You element starting with element (0,0) (top-left), and right (increase your column index). Keep a running counter that every time you fill an element, as well as the upper and lower limitations fill the rows and columns that you have to fill yet. For the M-line by the N-column matrix, your line limits must be 0 and (M-1) and your column has a limit of 0 and (N-1). Unless you obstruct your upper column, block your upper column, until you force your upper line, do not interrupt your upper line, leave it until you have your own Do not force the lower column, increase your lower column, go up until you obstruct your lower line, increase your lower obligation, and until your upper and lower punk End column borders is not your run of M * N to is not the same (or when) Repeat until then.

django - Python dictionary/list help -

This is a python application that all followers should get from a table and get their latest updates from another table. needed. Dashboard function: Result: Note: When you're done in Dashboard Div is okay for the first time, because div has to ignore 1 div in the result from the latest user position .. But as you can see that everything else is empty so basically 0 errors. S Can you please help me here ???? D: D: I fully appreciate it !!! : D Thank you !!!! There is too much code to try and work, and your explanation is special Is not clear from However, one of the obvious problems is that you get a very empty block, which is almost always a bad idea because it can be any problem that is Always use the mask before you always hopefully, except with one or more real exception classes - for example Object.DoesNotExist Secondly, you should try to do this prefix A. What is the value at the point after each assignment to see print statement to put the easiest ...

Installed Eclipse PDT, I do not have "Run As -> JUnit" -

I have installed eclipse PDT and now I want to run a JUnit test in a Java project. Java perspective is used, but no option is shown in the running menu item. "Launch New Configuration" is disabled in "Run Configuration". The test is compiled with JUnit4 (project junit4.jar, but not with junit3.jar). How can I find "Run as JUnit" option? If you take a look at the page, you will see that eclipse PHP DRRR (one with PDT features) JDT (Java Development) is not included in the device. This means that the "nature" of the projects you create will not include "java" and any "run as juneet". You will need to load another Distro (as J2EE is the same), and then include the PDT plugin on both of them.

c# - WPF Image Gallery -

I'm running a touch-screen application (not a web app) that needs to be presented to a group of images Is the users? Wish is to present a 3x3 grid of pictures with a page forward / backward capability. They can choose something and I will present those pictures. I do not think that ListView is very much what I want (although WPF is quite big that I could well remember something obvious!). I could set a grid and luggage images in grid position but I was expecting some good, more automatic, less brute force. Any thoughts or pointers? You can enter a ItemsControl / list box and Then set the UniformGrid panel to get a proper WPF bindable solution as a ItemsPanel for a 3x3 display. & lt; Listbock ScrollViewer.HorizontalScrollBarVisibility = "Disabled" & gt; & Lt; ListBox.ItemsPanel & gt; & Lt; ItemsPanelTemplate & gt; & Lt; Uniform grid rows = "3" column = "3" /> & Lt; / ItemsPanelTemplate & g...

c# - Saving user configuration options -

I am creating a winform application in c # in .Net 2. I should be able to save user configuration data and I am considering using XML file for this proposal. What is the general sense to save user configuration data? I have read that it is not in vogue rather than writing in the registry, but instead of a file Please write your thoughts. Use to store settings.

php - array structure of database results -

This can be quite a trivial question, but from these methods to structuring an array for return dB results Which method is best? Ask a list of blog posts ... Sorting and grouping posts? Or classifying and grouping elements? Array ([title] = & gt; array ([0] = & gt; untitled [1] = & gt; untitled) [ID] => Array ([0] => 8 [1] => 11)) or array ([0] => array (['id'] = & gt; 8 ['Title'] = & gt; Untitled) [1] = & gt; Array (['id'] => [['title'] = & gt; untitled]) The first is the easiest way and the way I think it is doing. I just: while ($ line = $ get result-> (PDO :: FETCH_ASSOC)) {$ post ['title'] [] = $ row ['title']; $ Post ['id'] [] = $ row ['id']; } and then $ count = count ($ post ['id']); But on the other hand, making a better understanding and information appears to be more logical. This is slightly more complex to set up, filter and work in...

Should I use the Java naming convention? -

I have been sent to a big project which is being done in Java and has been seen by some programmers on the team. I want the code to be readable and understandable, and so the naming convention reads to everyone. I am thinking that I have to use the Java Naming convention for other people, and it naturally understands that I always use a type of naming conventions which is a java naming convention. Not very different, but the C / C + naming receives from the conference The biggest difference is the variable, class and method naming. I use names such as intLargestNumber, chGet, strName for the variable for fun class, add fun, fun, add fun, getThis, setThis methods and screens, For clsplay, cls_user where Java will use something like naming for myNumber , less split () for a method and Image for class. My question is, should I use the Java Naming Convention or use my own naming convention and provide a dictionary or log for my code? Using standard for language ma...

windows - Git Status Takes a Long Time to Complete -

I am using git to manage files in the local directory on Windows machine - No network is here, I'm not pushing or dragging any other machine. My directory probably has 100 files, all test files are very small, when I run the GIT status , it takes 20-30 seconds to complete it regularly Is this normal? Is it anything I can do to make it faster, or is there a better way to see what is the position of my repository (files, untrecked files, etc.)? The other git commands begin to complete very fast. Have you tried This fits with the guit repo.

Selecting input with JQuery selector -

यदि मेरे पास निम्न है: & lt; input type = "text" id = "कुछ_टाटाइयर" / & gt; आईडी या $ ('[id] के अंत में केवल मेल करने के लिए पोस्ट टेक्स्ट "आइटमप्रॉप =" टेक्स्ट "> या तो $ (' [$ $ id = txt year] ') * = TxtYear] ') आईडी में कहीं भी मैच के लिए। आप इसे देखना चाहते हैं:, विशेषता फ़िल्टर पर अनुभाग को नीचे स्क्रॉल करें।

java - best platform for blackberry for screen tinter? -

I need to create an app for Blackberry, which will change the background color for all apps Something like this: Should I do this in Java? I have no programming experience for PDA. Which compiler will I use? You must use J2ME (Java Platform, Micro Edition) to begin the RIM's API, You may want to pay a visit to RIM. You have a development IDE with everything you need to get started. You should first understand that coding for mobile platforms is completely different from coding for a PC. What you can do is quite limited (by design, the hardware manufacturer usually does not want third-party addons to mistake the device). I do not think your project is possible.

iphone - Setting action for back button in navigation controller -

I am trying to overwrite the back button's default action in the navigation controller. I have provided an action on a custom button for a goal. The strange thing is that when it specifies, though the backbutton attribute does not pay attention to it and it only pops up the current scene and returns to the root: UIBarButtonItem * backButton = [ [UIBarButtonItem Alloc] initWithTitle: @ "server" style: UIBarButtonItemStylePlain Target: Self-action: @selector (home)]; Self.navigationItem.backBarButtonItem = backButton; As soon as I set it through the left, the barbutitan on the navigation, this is called my action, however, the button looks like a plain round rather than one Is: self.navigationItem.leftBarButtonItem = backButton; How can I call my custom actions before returning to the root view? Is there a way to overwrite the default back action, or is there a way that is always called when leaving a view (see Dude is not downloaded)? Try putting it in...

.net - Tips for VSTO Developers -

For Microsoft Word 2007, I have a personal project that I want to create as an add-in. I have prototyped it using VSTO with Visual Studio 2008 and working with object models was incredibly easy to find. I'm concerned about the deployment of my add-in. I think users will need Office and .NET 3.5 (with SP1), but they will need something else? What happens when a new service pack or office version is issued? In addition, what tips would you give to developers to start with VSTO? Do you use a third party library? Tips that make support easier? To scan the client machine for all the essential things you need to run your VSTO solution And their response status and links to resources to fix them. Customers will need at least the VSTO runtime (version 3.0 newest now) / primary interop assemblies. Your solution should work in the case of higher service packs and newer versions of the office, as long as you run against it is available. It will not work with older versions, w...

python - How do I define a unique property for a Model in Google App Engine? -

I need some properties to be unique. How can I get it? What is something like unique = true ? I am using Google App Engine for Python. / div> There is no inherent barrier to ensuring that a value is unique. You can do this though: query = MyModel.all (keys_only = True) .filter ('unique_property', value_to_be_used) unit = query.get () if entity: increase exception (' Unique_property I use keys_only = true because it will improve performance by not meeting the unit's data. A A more efficient method would be to use a different model with any such field, whose key name is of the property name + value, then you can choose one or two of these composite key names. To get that you can use get_by_key_name and if you do not get one or more - the none value, you know that there are duplicate values ​​which are not values none , you will know which was not unique.) As mentioned in the comments one billion comments, these approaches & Ndash; ...