Posts

Showing posts from September, 2013

designing database tables using JDBC -

I am creating a user table using JDBC and MySQL, each user's permission list that contains the integer value. I am surprised that I should use an array to store these values ​​and then there should be only 1 record for this user in the table, or just create a new table that includes 2 columns Are: User IDs and permissions, and then many records for each user that specify the user name in a column and specify a permissive value in the second column. The second option seems unusable because the permission value is a simple object that is similar to any other object (for example a student and course list, because the course is associated with many other objects such as grades, teacher, etc.) So, it is natural to keep many records in this case), but the first one seems a bit unnatural for me, so if someone experiences these things and I am " Natural "design? Thanks "I do not need this, like I said, the permission is only one integer value (No name or id). I

Software testing terminology -

Assume that I have written a small program that reads file_A and file_B as the input data of test_case_A and test_case_B, input to To pass in component_X which requires testing, then verify the results of the predicted hope. That component_x can be in the same process, or there may be a different process on another machine. I try to know more about the test, but take different scenarios as examples, which of these fixtures / mock / harness / stub is? Thank you. The things that you are testing over are more stunning than the sample data "stability". The whole business is a stability to test a component. In the olden days we call it "tapping" Things that are necessary for stability that you are not testing "Mox" or "stub".

django - Can a python view template be made to be 'safe/secure' if I make it user editable? -

Say I need a templateing system where a user can edit it online using the online editor. So they can put tags, looping tags, but only for specific items that I want to include in the template. Can it be protected from security problems? That is, they output to SQL connection string information or scripting things in any way acceptable tags and injection objects. Use a template engine that has sandboxing features such as < / Html>

debugging - How are clientside security vulnerabilities generally discovered? -

I mean the only way in the operating system or their applications I can think of using dangerous tasks like strcpy () Binaries are examined, and then try to exploit those people, although with compiler improvements such as Visual Studio / GS Switch, this possibility will be mostly a matter of the past. Or am I making a mistake? Do people use other ways to find weaknesses? Just load your target into a debugger, then send the unexpected input and see what happens? Can some good books or websites be recommended on this subject? Thanks in advance. There are two major issues involved in "client side security" most of today The common customer is used as "browser". Often memory corruption is responsible for vulnerabilities. ActiveX Com Objects has been a common path on the Windows system and has a good Active X phase. In the context of memory protection systems / GS is a canary and it does not end the end of the buffer to prevent overflow. It is only to

Javascript style variables with "-" in their name aren't able to be changed? -

OK, so this bug took me a lot of time and embarrassed it seems that with any style variable - in it His name can not be modified by javascript. As seen here: & lt ;! DOCTYPE html & gt; & Lt; Html lang = "en" & gt; & Lt; Top & gt; & Lt; Title & gt; Classroom test & lt; / Title & gt; & Lt; Meta charset = "UTF-8" /> & Lt; Style & gt; Body {text-line: center; Background color: #ffffff;} # box {status: complete; Left: 610px; Top: 80px; Height: 50px; Width: 50px; Background color: # FF0000; Color: # 000000;} & lt; / Style & gt; & Lt; Script type = "text / javascript" & gt; Var box = 0; & Lt; / Script & gt; & Lt; / Head & gt; & Lt; Body & gt; & Lt; Div id = "box" & gt; & Lt; / Div & gt; & Lt; Script type = "text / javascript" & gt; Box = document.getElementById ('box'); Box.style.background-color = "# 000

YouTube URL algorithm? -

How can you go about creating a unique video URL that uses YouTube? Example: < P> Using some non-trivial hashing function The probability of collision based on function, parameter, and input domain is very low. Keep in mind that cryptographic hash has very little collision rates for special non-random input (i.e. - was designed to haveh completely different for similar input). Jeff is a good observation of Atwood. And an online hash calculator that you can play with.

Problem using HTML Link Helper in Cakephp 1.3.1 -

I am having a problem using the $ html-> link helper in my view and consider this snippet ... / views / nodes / packages.ctp & lt; Li & gt; & Lt ;? Php echo $ html- & gt; Link ("Package 1", array ("Package", "Package 1"))? & Gt; & Lt; / Li & gt; Now when I click on the link, the address appears in the address bar Why is this happening? I have not changed anything in my default routing configuration file. In relation to Vikram Answer me myself ... gt; & Lt; Li & gt; & Gt; Php echo $ html-> Link ("Package 1", array ("Controller" = & gt; "Package", "Action" = & gt; "package1"))? & Gt; & Lt; / Li & gt; I forgot to write the key "controller" and "action" idiot! Regards

c# - how to dissect string values -

How can I split or retrieve string values ​​ Here is the sample code that Is now working Private Zero Splittings () {List & lt; String & gt; Listvalues ​​= new list & lt; String & gt; (); Listvalues ​​= (list & lt; string & gt;) session ["mylist"]; String [] strvalues ​​= listvalues.ToArray (); (Int x = 0; x & lt; strvalues.Length; x ++) {}} Now I'am able to get list values ​​in my session, I How can I get a different value for each list using foreach or statement? What do I want to know depends on how much the list is that according to the program the values ​​of the wire are divided. If you have a list of string values, you can do the following: private Zero splittings () {list & lt; String & gt; ListValues ​​= (list & lt; string & gt;) session ["mylist"]; // Always check session values ​​for zero if (listValues! = Null) {// go through each list item foreach (string stringElement in listValues) {// var

How powerbuilder's datawindow executes insert command -

I am new to PowerBuilder and there is a lot of problem using the datawindows. I can not get my head around the inserting system Can someone explain this to me, or at least tell me in the right direction (articles, suggestions, etc ...)? SQL generated by Datavindo controlled by updated properties (menu item rows / update attributes ...) goes. From there, you can select a single table and set the properties that will be used to generate the SQL. Where the clause ... determines which columns and their original values ​​are used in the WHERE section for UPDATEs and DELETEs. When you change the columns defined as the key (or allow the user to change), the main modification comes into play only if the updateable column is a list generating SQL (this UI can be used in one way or another Does not affect if allowed) The key column may be the primary key (which can be automatically populated with the primary key button, if you are using DBMS database Support calls to re may be), but i

javascript - how to handle large dataset like sproutcore -

I do not really have any big code to show here, in fact, it's a little bit why I'm writing: I've been surprised to see the SproutCore demo, especially on the archive demo, and loading 200,000 records so easily on the page. I used to provide 200,000 records and completely empty HTML page & lt;% @ projects.each do | P | %> & Lt;% = p.title%> & lt;% end%> which freeze on my M1530 laptop with 4 GB RAM and T7700 256 GB SSD for seconds. The sproutcore demo is not stable yet and loading takes less than 3 seconds Do you think this is a technology they are using to enable it Are you Thank you! I think the available demo is not being dynamically generated - this is static data P> Size that will be able to replicate very little system live data collection. Cadetting and AJAX are using several techniques (batch walking through records) to stream the dataset through partial loading strategy

design patterns - Separating data from the UI code with Linq to SQL entities -

If it is important to use 'away' data from business and presentation layers, then what options or approach can I take? Can SQL Entities Stay in Data Access Layer with My LINQ? So far, I just seem to repeat sections produced by sqm, and passing those objects to keep the two layers as an appetite instead. For example, I have a table in books in my DB, if a user is creating a new book through the UI, then the class class created by class class looks like the perfect fit. It is, though, I am tightening my design by doing this. I have to have all your data entry (in your case LINQ-to-SQL) in a project and its After that I have another business project that uses DataEver project, from which in your example for books, there will be a book called a book at my business level: Public class book {Private IAuthorRespository _authorRepository = New LinqToSqlAuthorRepository (); Private IBookRespository _bookRepository = New LinqToSqlBookRepository (); Public int bookId {get

mvvm - Should I use ObservableCollections in my Model in M-V-VM -

I'm totally new to MV-VM and I'm very new to Silverlight, about it today I have been reading for the first time. As a sample, I am creating a model containing a list of items in my (Silverlight 4) view, there is a list box and my view model will look at the model to reclaim that collection which will bind the list bond. . My question is, I think it would be good to use an Observative Collection to catch those items that bind the list bond. Will this be a peculiar compilation in ViewModel, should I also use this type of collection in the model, or should I use another collection type and do a SMO conversion between the model and the ViewWould? There are 3 basic scenarios (in order of increasing complexity): The model simply provides access to a backend service and does not caching any data that flows through it The model exposes the collection of objects, VMS does not have its own collection, and then the model Object is limited to the collection The model expo

java - how to use XML sent by html form? -

I have html form with textarea in which I paste some XML, for example: & lt; Network ip_addr = "10.0.0.0/8" save_ip = "true" & gt; & Lt; Subnet interf_used = "200" name = "lan1" /> & Lt; Subnet interf_used = "254" name = "lan2" /> & Lt; / Networks & gt; When the user submits the form, that data is sent to the Java server, so in the header I get something like this: get ? We =% 3Cnetwork + ip_addr% 3d% 2210.0.0.0% 2F8% 22 + save_ip% 3d% 22true% 22% 3E% 0 d% 0A% 3Csubnet + interf_used% 3% 22200% 22 + Name% 3% 22lan1% 22 +% 2F% 3E% 0D% 0A% 3Cubnet + interf_used% 3D% 22254% 22 + name% 3D% 22lan2% 22 +% 2F% 3E% 0D% 0A% 3C% 2Fnetwork% 3E HTTP / 1.1 How can I use it in my Java applications? I need to calculate that data and resubmit the newly generated XML. Displays how to use the URLDecoder / URLEncoder class to decode and encode the URL string. If you pass the 'GET' string

oracleforms - how check radio button status in oracle form -

I want to control a radio button in my oracle form. Please help me please how I can return the value of it. With any form item, you can refer to the current context: < Pre> : MYBLOCK.MYITEM (Considering a radio group named MYITEM in a block named MYBLOCK).

Licensing c program -

How do I license my C command line program, such as limited functionality without serial numbers? Depending on what licensing is ... source code in resp Write license text. If you want to prevent users from copying programs, things get complicated, you may need some hardware dongles. Or just remove GPL and remove the source code ...

ruby on rails - How to copy or clone model? -

I have a model book with the attributes ID, name, value. I have an example of a book: B1 = Book.new b1.name = "blah" b1.price = 12.5 b1.save I would like to copy B1, the product model's Make another example. I'm trying p1 = b1.clone then p1.save but it did not work. Any ideas? And my environment is: Netbeans 6.9 RC2 JRuby 1.5.0 Edited: My Temporary Product Model: Category Admin: Temporary Products & lt; ActiveRecord :: Base Df self.update_from_web_service (web_service_url) Feedback = HTTParty.get (web_service_url) Feedback ["webServiceResult"] ["Product"]. Every do Element | Until it does not exist? : Orignal_product_id = & gt; Make the element ['id']! Element ['name'],: value => element ['value'] ,: zodiac => element ['sum'],: description => element ['description Element ['id'],: image => element ['image'],: shop_account_number = & gt; element [&

Private browsing with UIWebView on the iPhone & iPad -

How do the existing apps apply this feature ??? Can I only store cookies for some sites, and only inside my app? It's my understanding that web views store cookies in shared mode ... so that they can be shared with other apps that use Safari and UIWebView. NSHTTPCookieStorage , cookies are not shared between applications: iPhone OS Note: Cookies are not shared between applications in the iPhone OS. It seems that they should be "private" by default. You can also use [NSHTTPCookieStorage sharedHTTPCookieStorage] to set cookie storage policy to not store all cookies on an object, or you can use deleteCookie: If you need to clean the method after yourself. Other content is loaded with your UIWebView when you create NSURLRequest that is loaded with your webview, as you can determine if a cache policy content will be accumulated. For example: NSURLRequest * request = [NSURLRequest requestWithURL: [NSURL URLWithString: URL] cachePolicy: NSURLRequestRel

asp.net - Once again, Is Silverlight 4 Enterprise ready? -

Is Microsoft using or using Silverlight in their web applications, such as MS CRM? Is there any risk to the Silverlight LOB application instead of ASP.NET? Silverlight 4 still does not have wsHttpBinding Is this a stupid question? There is no stupid question, but you must remember that rewriting an application Any application due to the reason too) is very expensive. Yes, I think the Silverlight 3 and 4 are enterprise-ready. There is still a learning curve, especially with services and management for large applications which may require dynamic loading. But Silverlight has arrived, and I think you will see it more.

NUnit Addins with Resharper 5 -

नवीनतम Resharper (v5) संस्करण मूल NUnit कोड पर आधारित है और NUnit addins को अनुमति देता है। मेरे पास एक NUnit addin है जो NUnit GUI में ठीक काम करता है लेकिन मैं इसे Resharper के साथ काम नहीं कर सकता। आर # संकेत के आधार पर मैंने अपने कोड को % ResharperPath% \ Bin \ addins में रखा है लेकिन मैं काम नहीं करता, मेरे परीक्षण को ignored के रूप में चिह्नित किया जाता है। > प्रश्न: ReSharper के साथ NUnit addins का उपयोग कैसे करें? दुर्भाग्यवश, रेसरार के टेस्ट रनर एनयूएनआईटी ऐड-इन्स का समर्थन नहीं करता है। यह किया गया है, लेकिन यह भी नहीं जोड़ा गया है, यहां तक ​​कि आगामी रीसर्पर 6 तक भी नहीं। (फीचर अनुरोध के लिए वोट करने के लिए स्वतंत्र महसूस करने के लिए उन्हें बताने के लिए बताना है - मैंने अभी किया है।) हम हमारे कुछ परीक्षणों के लिए एनयूएनआईटी ऐड-इन, और उन परीक्षणों को रीस्पॉर में बिल्कुल नहीं दिखाया गया है - कोई गटर आइकन, यूनिट टेस्ट विंडो में कुछ नहीं, कुछ नहीं हमारा एकमात्र विकल्प है, जब हम उन परीक्षणों को चलाने के लिए चाहते हैं, तो एनयूआईएनटी जीयूआई को आग लगा दें। यह

ios - What is best way to store long term data in iPhone Core Data or SQLite? -

I am working on the iPhone App Targeting 3.1.3 and later the SDK. I want to know the best way to store user long-term data without losing performance, stability and security. I know, I can use core data, plist, and SQL-Lite to store user data. In custom formats. But, want to know who is good to use without compromising with app performance and scalability in the near future. It depends on the "user data" word size, complexity and usage includes wide scales Each of which is included in different optimal storage strategies. (1) If the size and complexity are low and the usage is primarily controlling the app, users use the NSUser defaults to store the data in default. (2) If the size is small and the complexity can be managed by the array, the dictionary etc. then calculates the store size in a plast because all the data stored in Plast is stored in a block in memory Is loaded. (3) If the size is very large but the complexity is low, a large number of an index

gallery - Android: OutofMemoryError: bitmap size exceeds VM budget with no reason I can see -

I have an outoffime with a gallery exception of 600x800 pixels on JPEG. Environment I am using the gallery around the 600x800 pixels gallery. Since my content can only be a bit more complicated than images, I have set up each scene is a relative layout that wraps the image view with JPG. In order to "sharpen" the user's experience, I have a simple cache of 4 slots, which is left about 1 image prefet (in a loop) to display the correct image. Image and place them in the 4 slots hashmap platform I am using a 600x800 screen with 256 RAM AVD and 128 heap size. It is also on the enterprise edge target, except that it is difficult to debug with the device. Problem I'm getting an exception: Out memory memory: bitmap size VM budget And this happens when getting the fifth image. I have tried to change the size of my image cache, and this is the same. Strange: memory should not be a problem To ensure that Hep range is very important, I need i

asp.net - Forms authentication for users and Windows for Database? -

On our production server, the administrator has created a web user Active Directory account that is a user for anonymous access to IIS and It also uses database authentication with our SQL server certified security = SSPI connection connection string and identity = "true" in web.config by using . I have often come under the circumstances where I would like or even need to use form validation, however, I am using form validation, to enter the user's credentials to authenticate the integrity of the database against the database Seems to be using. In these cases, I changed the connection string instead of using the credentials of a SQL Server users. I would not want to get worse coded username and password and code worse in the connection string. Is the user able to use authentication and authentication for IIS user with Windows authentication for user authentication? What would be the best practice in such a situation? Yes, turn off impersonation (i.e.: imperson

drupal - Can I tell sitecrawlers to visit a certain page? -

I have this Drupal website that revolves around a document database. By design you can find these documents by searching the site. But I want all the results to be indexed by Googlebot and other crawlers, so I was wondering what would happen if I made a page that lists all the documents, and then the robot should see all the pages of index of my documents Ask to go on .. Is it possible or is there a better way to do this? Maybe a Google introduced Google Sitemaps so that the Web Developers can publish lists of links from their sites. The basic premise is that some sites have a large number of dynamic pages available only through the use of forms and user entries. Sitemap files can then be used to indicate a web crawler how to get such pages. Ask Google, Bing, Yahoo and now jointly support Sitemap Protocol.

ios4 - iPhone 4.0 SDK UIWebView crashes with DOMHTMLElement error -

Text after " My app is a UIWebView and I open a Twitter OAuth page with it. When I open the OAuth page, it works well. After signing in, it redirects to another page that has a zip code. And it crashes down with logs. This is a bug in the 4.0 SDK 2010-06-14 22 Is the 06-14 22: 55: 11.162 AllFx [1435: 2003] *** Except the exceptions 'NSInvalidArgumentException', the application ended due to reason: - *** 'DOMHTMLElement setHref:' on the call pile: Non-accredited selector examples sent 0x74e4040 'first throw: (0 CoreFoundation 0x02b6c919 __exceptionPreprocess + 185 1 libobjc.A.dylib 0x02cba5de objc_exception_throw + 47 2 CoreFoundation 0x02b6e42b - [NSObject (NSObject) doesNotRecognizeSelector:] 187 3 CoreFoundation 0x02ade116 ___forwarding___ + 966 4 CoreFoundation 0x02addcd2 _CF_ forwarding_prep_0 + 50 5 DataDetectorsUI 0x0bde8ac4 - [WebTextIterator (DDExtensions) dd_doUrlificationForQuery: forResults: Document: DOMWasModified: URLificationBlock:

Powershell: resolve path that might not exist? -

I am trying to process a list of files that may or may not be and yet Not yet present. In doing so, I need to solve the full path of an item, even if the item can be specified with the relative path. However, resolution-path is printed and used when used with a non-existent file. For example, what is the simplest, clear way to solve ? Note that in the "C: \ current \ working directory \ newdir \ newfile.txt" in parsers ? \ Newdir \ newfile.txt " System.IO.Path is the use of the process work directory - which is not the current location of powershell. You want: c: \ path \ exist \> $ ExecutionContext.SessionState.Path.GetUnresolvedProviderPathFromPSPath (". \ Nonexist \ foo.txt ") Returns: C: \ path \ exist \ nonexists \ Foo.txt It has the advantage of working with PSP; A system path is not a MSP can not map 1-1 in the PSPAth file system path, for example if you mount the psdrive with a multi-layer drive name. -Oisin

Git: after preparing a real merge commit, how to create a simple commit? -

git मर्ज - नो-कमम & lt; commit & gt; को लागू करने के बाद, दो (या अधिक) माता-पिता के साथ एक विलीन करें में इसके बजाय ( - स्क्वैश विकल्प के साथ मर्ज कमांड को फिर से करने के लिए) सरल कमिट बनाने के लिए कौन सी कमांड चालाना चाहते हैं? के अनुसार, --squash विकल्प $ GIT_DIR / MERGE_HEAD रिकॉर्ड नहीं करता है $ GIT_DIR / MERGE_HEAD मर्ज कमिट बनाने के लिए जिम्मेदार है; आप इसे गिट स्रोतों में देख सकते हैं, फ़ाइल builtin / commit.c : in_merge = file_exists (git_path ("MERGE_HEAD")); । (If_merge) (मर्ज_आर्मिट करें) समाधान : सामान्य मर्ज करने के बाद, मर्ज कमिट होने से बचने के लिए बस $ GIT_DIR / MERGE_HEAD से छुटकारा पाएं आप मैन्युअल रूप से $ GIT_DIR / MERGE_MSG और $ GIT_DIR / MERGE_MODE को साफ कर सकते हैं या सफल कार्य के लिए इस कार्य को Git तक छोड़ सकते हैं।

How can I check if a Resource Bundle contains a specific key in a JSF page -

I have a JSF page in which a bundle is loaded. Although I need to dynamically create a key to use the property. What I need to do is check that the property exists, so I can decide whether to render or not. I've checked that the value is empty, but it always gives output Thank you You can write a custom JSTL / Facet function which can be used for two arguments - Bundles and keys, and confirms that the key is contained or not: value = "# {cust: containsKey (msg, key) • msg [key]: 'Default'} "

unicode - How can you print a string using raw_unicode_escape encoding in python 3? -

In Python 3.x the following code should be: str, not bytes because with TypeError < Code> encoded () return bytes and print () are only expected str . #! __future__ import from / usr / bin / python print_function str2 = "some unicode text" print (str2.encode ('raw_unicode_escape')) How you can print a Unicode string using By running print () ? I'm looking for a solution that will work with Python 2.6 or new, which includes 3.x updates will work with bottom line 3.x It will not work with 2.6, attribute enters: 'file' object has no attribute 'buffer' sys.stdout.buffer.write (str2 .encode ('raw_unicode_escape')) I just use: print (str2 if you want the same code in Python 3 and Python 2.6 ( You can use repr 2.6 and in ascii in Python 3, but it is not actually "identical"; -).

c# - Get all referencing columns to a referenced column in linq -

Say you have a sales label with sales, then you have two tables, sales order headers and sales reports that The reference order order is starting with the sales tables and salesperson, is there any way to find those two tables that it is using linq? I want to add a debug Attachment to my code so that I can update the piece of code whenever any other foreign key is linked against the constraint column. select from * info_chemaka.TABLE_CONSTRAINTS where CONSTRAINT_TYPE = 'foreign key' select [name] In form FKeyName, (SELECT o1. [Name] from sys.objects o1 where o1. [Object_id] = ParentTableName, (SELECT o2. [Name] sys.objects o2 where o2. [Object_id] = fk.referenced_object_id) If you really need column names, open the system in the stored procedures sp_helpconstraint and remove the logic from there.

django, postgresql: moving dumped database data from one machine to another -

I am trying to move other data from postgrasclass database to second place. However, when syncdb is run on the dynamo, it inserts some values ​​into the database. When I then want to incorporate a dump into the database, I get conflicts. What is the correct way to move any data from another database created into another? Get rid of SyncEdb, instead dump a normal database and restore it to another database

javascript - Main page content populated on the fly? -

Is there no reason for a webpage to get the main content on the fly? For example, I have a page that has a title and footer, and there is an empty device in the middle of this page, when you click on any one of the buttons given in the header An HTTP GET is done behind the scenes and the empty divisor. HTML () is replaced with the result. I can not think of any reason because it can be a bad idea, but I think there is no page outside of it? please advise! This is not unheard of, but there are problems. Obviously some users have been javascript turned off for security reasons, and they will not be able to use your site at all. It can also have negative effects on unusual users who are using assistive technology such as screen readers. This can make your browsing the browser hard to cache its static content to slow down the browsing experience. This can make the search engine harder to index your content. The back and forward button may stop working until

c# - How do I set the ItemsSource of a DataGrid in XAML? -

I am trying to set a DataGrid property of SourceSource I am; Named dgIssueSummary should be a observation code named IssueSummaryList . Currently, when I set the ItemsSource property in my code-behind, everything is working: Public partial class home page: UserControl {Personal Observeable Collection & lt; IssueSummary & gt; Problematic list = new observational compilation & lt; Numerals & gt; Public ManPage () {InitializeComponent (); DgIssueSummary.ItemsSource = IssueSummaryList}} However, I want to set the ItemsSource property in XAML, but I can not get it to work. Here is the XML code I: & lt; Sdk: DataGrid x: name = "dgIssueSummary" AutoGenerateColumns = "False" ItemsSource = "{Binding Points Ms. List}" & gt; & Lt; SDK: DataGrid.Columns & gt; & Lt; Sdk: DataGridTextColumn binding = "{binding problem type}" header = "problem type" /> & Lt; Sdk: DataGridTextColumn b

php - Insert Values after Compiler has passed Line -

To start, I am using PHP with ob_start () and ob_flush. I have a part in the code where the parameters are projected to load dynamet at the top of a file. & lt; Head & gt; & Lt; Script type = "text / javascript" src = "javascript / ajax_objects.js" & gt; & Lt; / Script & gt; // enter more code here & lt; / Head & gt; What is what I am trying to do after ending the compiler and reaching the end of the file, I'm getting to add more libraries, there is no way where I Can add more library where it says // enter more code here? I know that it is possible to use Javascript / AJAX, but I'm just trying to do it with php. In the example # 1, what you are actually trying to do , Tells about: When you call ob_end_flush (), you can create the callback function. For example: For example: In that case the output will be: & lt; Head & gt; & Lt; Script & gt; The value you want to include & lt;

html - Hyperlink (a href) with a pound sign at the end doesn't do anything in Firefox -

I have a link that is something like this: & lt; A href = ". ------ HTML # video" & gt; Text & lt; / A & gt; It works fine in IE but not in Firefox. In Firefox it shows the new URL on the address bar but in case of content there is no updates or changes. Somehow "#" Firefox has to ignore the updating of the page. I use the javascript "window.location" and "window. Location.href "and all other types of things but it still does not work. Anyone have any idea how to fix this? Thanks! You will need to go to a different script page which then returns the browser back to the original page .

eclipse - Android API Target Level 5 and 6 for Ubuntu -

Today I have installed Ubuntu 10.4 and Eclipse Galileo. Then I downloaded the Android SDK and tried to install all the packages through Android SDK tools. But unfortunately, only target levels 3, 4, 7 and 8 were available. API level 5 and 6 are missing. Does anyone know the reason for this? I have already done a Google search and there is no such problem. I also tried to restart it, and nothing happened, the API level is still missing. Does anyone know the reason for this? They are disliked and generally unneeded on Android 2.0 and 2.0.1. It is being said, uncheck "Display updates only" in the available package area of ​​Android SDK and AVD Manager, and you will see them.

c# - Asp.Net - UserControl - Inherit from MasterPage -

Is it possible to do something like a user with a masterpiece for a user control (SSCX)? My issue is in one of my user controls (use only one type of masterpiece), I have a & lt; Asp: content & gt; I would like to use the tag, but I can not, in the page that I only use that user control ... Therefore, I have to repeat some code in every page that will Uses user controls ... Update For example, every time, I need to add something like this: & Lt; Asp: Content ID = "cntJavascript" ContentPlaceHolderID = "cphJavascript" runat = "server" & gt; & Lt; Script type = "text / javascript" src = "& lt;% = Url.Content (" ~ / content / js / ucjs.js ")%>" & Gt; & Lt; / Script & gt; & Lt; / ASP: Content & gt; So, I want all my JPS files in my masterpace in the same place and I only want to add JS I think the answer you're looking for using the Page.RegisterClientScr

android - app not working -

I have written a simple app that will tell the user any incoming message. Both programs when I does not seem to them are two different PGMs as lauched seem to fully work, but they are seen only speaker program screen to keep the same project / package and receiver PGM. If someone can help me out on that, please the speaker is PGM: package com.example.TextSpeaker; Import java.util.Locale; Import android App Import android.content.Intent; Importroid.os.Bundle; Import android.speech.tts.TextToSpeech; Import android.speech.tts.TextToSpeech.OnInitListener; Import android.view.View; Import android.view.View.OnClickListener; Import android.widget.Button; Import android.widget.Toast; // The following program msg user speech converts public class uses TextSpeaker activity OnInitListener {/ ** Called when the activity went previously created * / Full MY_DATA_CHECK_CODE = 0; Public TextToSpeech MTTs; Public button button; Override public null on @reate (bundle saved instainstate) {super.

javascript - replace commas with spaces from json array -

मेरे पास एक looping फ़ंक्शन है: & lt; li id ​​= "id1" नाम = "tag1, tag2, tAG3" & gt; & Lt; li id ​​= "id2" नाम = "टैग 1, टैग 2, टैग 3" & gt; $ .ईईच (डेटा पोस्ट, फ़ंक्शन (i, पोस्ट) {$ ('& lt; li & gt;', {id: this.id, नाम: post.tags})}); मैं रिक्त स्थान के साथ टैग के बीच अल्पविराम कैसे बदल सकता हूँ इसके अलावा, एक तरह से मैं "नाम" के बजाय टैग को एक "वर्ग" विशेषता में भेज सकता हूं। यह सफारी में काम नहीं कर रहा है। आप शायद यह चाहते हैं: $ ('& lt; li & gt;', {id: this.id, className: post.tags.join ('')}) डिफ़ॉल्ट रूप से, जब आप स्ट्रिंग में एक सरणी डालें, इसे कॉमा के साथ मिलकर मिलें जैसा आपने देखा है। join () का उपयोग करना समस्या का समाधान करेगा। इसके अलावा, वर्ग सभी ब्राउज़र में एक आरक्षित कीवर्ड है (हालांकि कुछ यदि आप इसका उपयोग करते हैं तो एक त्रुटि) , इसलिए आप वर्ग को सेट करने के लिए उपयोग की जाने वाली विशेषता को className कहा जाता है

sql server - sql 2008 query. I am trying to correct this error message -

What's wrong with this code? What will be the correct syntax? Select Employee, SUM ('more than 2 orders') orders, employee employee where MEG 8117, level 16, state 1, line 1 operator data type varchar is invalid for yoga operator. . is SM ('more than 2 orders') The part that is not understood, because the error message is trying to tell you - you do not have constant SUM a number field (or expression), a varchar (ie string). Edit : Op explains in a comment (OP, a better idea to edit your question!): I wanna know How was the order given for at least 2 orders and how the number of employees was told? Employees have "handled at least two orders" to show, for example, for each order to handle, there is a record in the table : Select the employee from the order group Number of people having the employee (*) & gt; = 2 This command does not show command handled those employees (the above explanation does not req the waste it doe

cakephp - Looking for a way to get HTTP Digest Authentication headers from incoming http requests -

I am working on a fresh implementation with my existing cake installation, and it looks good except that I Digest authentication for all requests I want to use HTTP (original proof will not be deducted) Very good, I will generate a header in the client app (which is not a cake) and will send it to my cake install. The only problem is, I can not find any way to remove that digest from the request ... I have seen something through the KP API that I can use to get digest headers . You thought the handler would be able to catch it, but I could not find anything like this. Another way to get that digestion should be what I see? In the meantime I am writing my own regex to parse it by request ... Once I am doing it, I will post it here, so that someone is more interested in hunting for it. Do not waste time. Understand this already it is already used in PHP by $ _ server ['PHP_AUTH_DIGEST'] , you can pass parseDigestAuthData ($ _ SERVER ['PHP_AUTH_DIGEST']);

c# - Passing values for method -

I'm starting to programming. Can you please show me how to pass values ​​for your compilation () method. square cl {private pronoun string clue = @ "cl. Exe"; Private prong string exe = "test.exe", file = "test.cpp"; Private string logic; Public cl (string [] args) {this.args = String.Join ("", args); This.args + = (args.Length & gt; 0? "": "") + "/ Fe" + exe + "+ + file;} public boolean compile (String content, ref string errors) {// any remove old copies if (file. Axis (XE)) file. Delete (exe); If (File.Exists (file)) file. Delete (file); file. write the text (file contents); process proc = new process (); ProckStartInfokUseShellExecute = False; ProckStartInfokRedirectStandardOutput = true; Proc.StartInfo.RedirectStandardError = true; Proc.StartInfo.FileName = Clense; Proc.StartInfo.Arguments = this.args; Proc.StartInfo .CreateNoWindow = True; proc.St Art (); // errors = = proc.StandardError.Rea

xslt - XSL: How to print an iterated node in for-each -

एक्सएमएल: & lt; कौशल & gt; & LT; कौशल & gt; पीएचपी & lt; / कौशल & gt; & LT; कौशल & gt; सीएसएस & lt; / कौशल & gt; & LT; कौशल & gt; HTML & lt; / कौशल & gt; & LT; कौशल & gt; एक्सएमएल & lt; / कौशल & gt; & Lt; / कौशल & gt; एक्सएसएल: & lt; ul & gt; & Lt; xsl: प्रत्येक चयन = "कौशल / कौशल" & gt; & Lt; li & gt; & lt; xsl: मान का चयन करें = "[क्या xpath होना चाहिए]" & gt; & lt; / li & lt; / xsl: प्रत्येक-जी & gt; & Lt; / ul & gt; यहां प्रत्येक कौशल को प्रिंट करने के लिए xpath क्या होना चाहिए? आप निम्नानुसार कौशल टैग के मूल्य प्राप्त कर सकते हैं: & lt; xsl: प्रत्येक चयन = "कौशल / कौशल" & gt; & Lt; li & gt; & lt; xsl: मान का चयन = "।" / & Gt; & lt; / li & gt; & Lt; / XSL: के लिए-प्रत्येक & gt;

How can I remove the border of a textArea in extJs? -

I'm new to extJ, I make a Texter limit invisible so that it just becomes a blank white space (my purpose is to Field is shown inside). Can I get it? Limit: None; Use Style: border: none; P> var textArea = {fieldLabel: 'test', style: 'border: none;', hide border: true};

asp.net - How do I crash the App Pool? -

Our asp.net 2 web application handles exceptions very well, we catch exceptions in Global ASAX in Application_Error. From there we log exceptions and we show a friendly message to the user. However, this morning we have appointed the latest version of our site. It was fine for half an hour, but then the app pool crashed. The site was not returned when we had not restored the previous release. How can I make an AP Pool Accident and leave the normal exception handler? I am trying to repeat this problem, but there is no luck yet. Update : We found the solution that one of our pages was screenreading one more page. But the URL was configured incorrectly and the pages ended with screen capping self infinitely, thus creating a stack overflow exception. The most common error I have seen and call the "pool accident" is the loop. public string sMyText {get {return sMyText;} set {sMyText = value;}} Just call syytext ...

R: Print list to a text file -

मेरे पास आर की एक सूची है: & gt; प्रिंट (सिर (मेरीलिस्ट, 2)) [1] 234 9 84 10354 41175 932711 426928 [2]] [1] 16 9 3237 13462 सूची का प्रत्येक तत्व अलग है इसके तत्वों की संख्या। मैं इस सूची को एक टेक्स्ट फ़ाइल में मुद्रित करना चाहूंगा: mylist.txt 234984 10354 41175 932711 426928 16 93237 13462 मुझे पता है कि मैं सिंक () का उपयोग कर सकता हूं, लेकिन यह तत्व [[x]], [y] के नामों को प्रिंट करता है और मैं इसे से बचने के लिए चाहता हूं। सूची के प्रत्येक तत्व में अलग-अलग तत्वों की वजह से लिखना () या लिखने योग्य () का उपयोग करना संभव नहीं है। परीक्षण नहीं किया गया है, लेकिन यह चाहिए काम (टिप्पणियों के बाद संपादित) lapply (mylist, लिखें, "test.txt", संलग्न करें = TRUE, ncolumns = 1000)

ASP.NET Custom/User Control With Children -

I have to create a custom / user control that is child. For example, I want to control my bottom markup: & lt; Div runat = "server" id = "div" & gt; & Lt; Label runat = "server" id = "label" & gt; & Lt; / Labels & gt; & Lt; Div class = "field" & gt; & Lt ;! - Include children here - & gt; & Lt; / Div & gt; & Lt; / Div & gt; And when I want to use it on a page I: & lt; Ctr: MyUserControl runat = "server" id = "myControl" & gt; ; & Lt; Span & gt; This is a child & lt; / Span & gt; & Lt; Div runat = "server" id = "myChild" & gt; And the second & lt; B & gt; Hair & lt; / B & gt; & Lt; / CTR: MyUserControl & gt; The control of the child in my user control will be put in my user control anywhere. What is the best way to accomplish this? The functionality is similar to a pla

c# - Test 'InvokeWebService' exceeded execution timeout period -

How do I increase the default execution timeframe for my unit tests? I have a unit test that calls the web service. It often runs for more than 10 seconds, which generates a timeout error, I am using Visual Studio Team System 2008. There is a bunch of different ways of controlling timeouts to guide the unit tests in Visual Studio See the article: (This article has been written for 2010, but I have confirmed that settings are also present in 2008.) In a different form, to call real web service from a unit test Generally not recommended you get a funny framework (like Rhino Mox) Yoga would be better by and your address so you can prepare to make a way you can test without the need for connection to an actual service.

drupal - How to show CCK field in search result? -

ड्रपल कोर खोज परिणाम पृष्ठ में कस्टम सीसीके फ़ील्ड (टेक्स्ट या छवि फील्ड) कैसे प्रदर्शित करें? आपको अपनी थीम में खोज-परिणाम- tpl.php ओवरराइड करना होगा। इसे मॉड्यूल से कॉपी / अपनी थीम निर्देशिका में खोजें, विषय कैश साफ़ करें, और आप सेट कर रहे हैं। आप देखेंगे कि 'परिणाम' नामक थीम फ़ाइल के लिए कोई सरणी उपलब्ध है, जिसमें एक नोड ऑब्जेक्ट सहित डेटा का एक गुच्छा होता है तो आपकी फ़ाइल कुछ समान हो जाती है: & lt; dt class = "title" & gt; & Lt; a href = "& lt;? Php प्रिंट $ url;? & Gt;" & gt; & lt;? Php प्रिंट $ शीर्षक; ? & Gt; & lt; / a & gt; & Lt; / डीटी & gt; & LT; dd & gt; & Lt;? Php // यहां परिवर्तन प्रिंट का परिणाम है ['नोड'] - & gt; फ़ील्ड_नाम_ओफ़_सीसीके_फ़ील्ड ['दृश्य']; ? & Gt; & Lt;? Php if ($ स्निपेट):? & Gt; & Lt; p वर्ग = "खोज-स्निपेट" & gt; & lt;? Php प्रिंट $ स्निपेट; ? & Gt; & lt; / p & gt; & Lt;? Php endif; ? &am

c# - ASP.NET MVC: How do I validate a model wrapped in a ViewModel? -

For the login page of my website, I would like to list the latest news for my site and to display some areas Also show the user log in. So I thought I should create a login view - I call it LoginVM . LoginVM in the Login model for the model and the news list is a list & lt; NewsItem & gt; . This is login model: public class login {[required (error message) "Enter username".]] [DisplayName ("User name")] public string username {get; Set; } [Required (error message = "Enter a password."]] [Datatype (datatype password)] [DisplayName ("password")] public string password {get; Set; }} This is LoginVM visual model: public class LoginVM {public login login {get; Set; } Public listing & lt; NewsItem & gt; News set; }} This is where I get trapped. In my login controller, I was passed LoginVM . [HTTP post] Public Function entry (loginVM model, form collection form) {if (ModelState.IsValid) {/? In the cod

css - Styling individual menu links in Joomla! -

Image
Using Joomla, I have a flat list menu (see image) and separate separation of menu link using the separator relationship with images I <<> "post-text" itemprop = "text "> I like the menu link (not the separator link) to styling so that they are raised slightly and more centers are sitting between the separator images. Can anyone help with this? Link each menu to a small value of margin-down .

sql server - Is AWE in SQL 2005 Ent needed on 2003 32-bit w/ 24GB? -

I have a WS 2003 32-bit system that is running with SQL Server 2005 Enterprise 24 GB RAM. / PAE switch enabled Is SQL now able to use 24 GB or need to enable AVE? You have to enable AWE and the SQL Server service account will have to give "lock page lock" privilege . Useful Reading: Consult books online documents for more concise steps: Hope this is helpful but let me know if you have more questions Are there.

html - With Jquery on page loading I want to move a div from its original place -

I am trying to do the following: get a DIV that is inside the hidden device in the page and it will be next jquery Another element through what is there an easy way to do this? Here's an approach sourceDiv = $ ('div # Your_hidden_div '). ('Div # the_other_div'); SourceDiv.insertAfter ('div # the_other_div'); EDIT: Update to reflect valid comments from Nick.

winforms - How to draw a single point with .Net? -

It should be very simple, but I do not get it. How can I create a single point in the net? If i live If I use the drone (black, 0,0,0,0,0,0), then nothing is drawn and if I use live drainline (black, 0,0,1,0) then 2 dots Along with a line is used. The same happens with g.DrawRectangle Edit: A box of 1x1 is a box of 4 pixels, which can be shown on this image: < Pre> The easiest way is to fill a rectangle that is a pixel wide, code> e. Graphics. Filarectgal (brush reed, 42, 12, 1, 1);

java - Where to store the session object in a Standalone application? -

I have a session object that does not apply java.lang.Serializable (this is a legacy application, and I no longer have Can and change the code) Is there any way where I place a session object somewhere else where a standallon application? There is an idea that use RMI . There is no better way to achieve this. EDIT: Legacy applications have APIs that give me the session object. On session object, I am implementing methods. Getting session object is really an expensive operation. Therefore, I would like to store it for any subsequent actions until the session is valid. thanks :) Suppose you want to define your position You can query your session object, and by looking at that situation, you can create a new session object which is equivalent. After this you need a supporting class, in which each installation session is attached to the object and which is serial. You write the sequence of auxiliary class to store the position of the session, and it creates the session

Is there any way to consume .NET 4.0 assemblies in Silverlight -

सिल्वरलाइट केवल इसकी v2.0.5.0 विधानसभाओं को पहचान सकता है। Silverlight में .NET 2.x / 3.x विधानसभाओं का उपभोग करने का तरीका वास्तव में मौजूद है। अगर मैं कॉल करना चाहता हूं, जैसे कि सिस्टम द्वारा प्रदान किया गया जेएसएनओ क्लास की पद्धति। समयबद्धता। सेरिअलाइज़ेशन असेंबली, जो सिर्फ नेट 4.0 में है, सिल्वरलाइट v2.0.5.0 में नहीं, मैं क्या कर सकता हूं? क्या मैं केवल क्लास और विधि को ही .NET 4.0 असेंबलियों में ही भस्म कर सकता हूं जो कि केवल एक ही समय में सिल्वरलाइट v2.0.5.0 असेंबलियों में पाई जा सकती है? एक और मामला यह है कि कुछ एचटीसी कक्षाएं और तरीके सिस्टम में हैं .NET 4.0 में वेब असेंबली और केवल सिल्वरलाइट v2.0.5.0 में केवल सिस्टम। सेवामॉडेल विधानसभा में। मैं इन वर्गों और विधियों को .NET 4.0 में उपभोग करने के लिए निम्नलिखित तरीके के रूप में करना चाहूंगा: ILDasm xxx.dll /out:xxx.il आईएल फाइल में sth बदलें (यह कैसे करें ???) इलस्म xxx.il / dll /resource:xxx.res /out:xxxx.dll < Div class = "post-text" itemprop = "text"> नहीं, आप इस तरह से .NET 4 असेंब

PHP OpenID doesn't work with Google/Yahoo and 'hacks' fix it... are they safe? -

I am experimenting with OpenID, and have set up a sample web page to use my OpenID account. I'm using it and it was not working with my Google account. A small research pointed to me, which suggests the problem that Google uses https and ... ... possibly HTTPS Setup has been bored to make a request To verify that you have a CA-certificate package installed on your PHP server. In the same thread, anyone links to people I have posted and successfully used with my Google account, other optimization for optimizing other questions ( , ...) I'm not very hot on security, so I ask; Does anyone know that this is the reason not to use hacked versions? What is the deficiency by this hack design in the original library, and therefore hack is a potential security vulnerability? Is there a qualified crypto-episode, who saw any of these solutions and "with the beard of David Chowme!" No! " If so - - and so I can not use any of these hacks - how will I chec

NVIDIA CUDA SDK Examples Compilation Unsupported Architecture 'compute_20' -

On the compilation of the CUDA SDK, I am getting an NVCC fatal: Unsupported GPU architecture 'compute_20' is my toolkit 2.3 and shared On the system (i.e. not really upgrading) and driver version is also 2.3, 4 is running on Tesla C1060 If this helps, then the problem is being called in RedxSort . It appears that some people have this problem online, but I found anywhere that actually provides solutions. I believe compute_20 is targeting Fermi hardware, which you do not have. In addition, Cuda 2.3 does not support firms or compute_20, instead try using compute_13.

jquery - image preloading problem (using $("img").load()) -

I use the load function to load the images before the hover effect is applied. $ ("Img"). Load (function () {// Image preloading // Some functions and variable settings $ listingItems.hover (function () {// effect}, function () {// back effect}}} / / load The problem is that I have the effect that only works when I reload the page when I came to the first page, the images are full but there is no hinge effect. You can see the source here: What have I done? Can someone help? What is the function Is there any other easy way to preload images before editing? load Event does not come from cache in some browsers, but to check .complete property and to make sure that load event handler only fire once A ('load', function () (// current code)). Each (function () {If (this.complete) ) $ (This) .load ();}); Hide these images If they are .complete (either actually are loaded with fast or cache), then this load event handler, if it Already runnin

c# - Cascade the MDI forms of a Splitter panel -

I am showing my MDI window inside the main form, but in a part of the splitter panel, such as: form 2f2 = new form 2 (); F2.MdiParent = this; F2.Parent = this.splitContainer2.Panel2; F2.Show (); But the problem is that if I write a code like this then I can not cure them: this.LayoutMdi (System.Windows. FormsMDLayout Cascade); "This" is the default form "post-text" itemprop = "text"> split you The layout engine will have to be overridden for the container panel. Microsoft is a good example of creating custom layout engines. Private Zero CascadeToolStripMenuItem_Click (Object Sender, EventArgs e) {//LayoutMdi (MdiLayout.Cascade); Rectangle bounding = splitContainer1.Panel1.DisplayRectangle; Point next farm location = bounding place; Leading (control se panel 1. control in this septor container 1) (if (! C. Visual) {release; } NextFormLocation.Offset (c.Margin.Left, c.Margin.Top); C.Location = NextFormHotel; C.BringToFront (); If

sql - Access is re-writing - and breaking - my query! -

I have a query in MS Access (2003) that uses a subquery part of the sub-section looks like this Is: ... from (SELECT id, dt, all_recs WHERE def_cd = "ABC-00123" statement) AS q1, ... And when I switch to the table view to verify the result, then all is OK. Then, I wanted the result of this query to print on a page header for a report (the query returns a single row with page-header content). I get an error because the query is written all the time: ... from [SELECT id, dt, all_recs WHERE data defng = "ABC-00123"; ] AS Q1, ... So that the round bracket is automatically replaced by square brackets, Access believes that it needs to be done , Okay! But in this subcategory ; Why is it adding , which makes it unsuccessful? I think that I can only create new query objects for these subqueries, but it seems a little silly that I should do this to Ah, the happiness of access. The query design does not play well with normally derived tables. In fact

php blob to picture in joomla module in 1 Script -

I have pictures in the database and I want to read it and want to display it as a picture. Although I get strangely long work as a result. My code: & lt ;? Php / ** * @ version 1.0 $ * @ package helowold * @copyright (c) 2010 BlaBlbb * @license http://www.gnu.org/copyleft/gpl.html GNU / GPL * / ** ** This file is a The original file is included from * / defined ('_VALID_MOS') or die ('Direct access to this place is not allowed'.); // Gather the query $ query = 'SELECT * from artikel'; $ Database- & gt; SetQuery ($ query); If (! $ Database-> Query ()) {echo "

streaming - Does anyone have an example of how to stream the camera to a server on android? -

I get many examples of downstreaming a video from one server to another, but I'm actually seeing my live images I want to stream a server to droid I know that claiming to do this. But as I am now reading the Wikipedia article more closely, it says that it does not actually stream live for the iPhone or Android. For the iPhone, after this recording is finished uploading starts, and for Android, there is a delay of 15-20 seconds (according to Wikipedia). It seems that even the QQ people who experience live streaming can do this, this is a very difficult problem. On the other hand, I have not tried the cuke, maybe you can install it and check it, and to sniff some traffic with the virus shark to see how they do at the network level.

ruby on rails - Allow blank on should validate_uniqueness_of -

Using shoulders, any idea how to allow the vacant during this test: must be valid_translation (: email) thanks. should allow_value ("") .for (: email) should allow_value (zero) For (: Email)

Is there a good question and answer plugin for wordpress? -

Any suggestions I want to apply to a 'stackoverflow' type of question and question for my WordPress blog? If you want to provide a service like this then you should be able to code it yourself . For information about how to get started, check the following sites: If, for some reason you want to use a pre-written plugin, I find that according to the manufacturer, the type of Has a functionality of. You should be able to customize it to your needs and preferences.

c - Pointer to current function -

Is there a way to get the pointer to the current function, maybe through the GCC extension or any other trick? Edit I'm curious that it is possible to get function pointer without explicit use of the name of the function. I thought I had a good reason for this, I realized That I was not really, but if it is possible then still curious. This is not particularly portable, Should work, where I can see the documentation; it certainly does not work on Windows which is a lack of API): #include & lt; Dlfcn.h & gt; // ... void * handle = dlopen (NULL, RTLD_LAZY); Zero * thisfunction = handle? Dlsym (handle, __FUNCTION__): null; If handles delclose (handle); // Remember to turn off! There are many other low-portable shortcuts that work on some platform but not others. It is not too fast; If you need speed, then cache it (i.e., in a local stable variable).

iphone - Two UIViews, one UIViewController (in one UINavigationController) -

UITableViewController के साथ एक आईफोन ऐप को UINavigationController पर धकेल दिया गया, नहीं एक UITableView । अब, मुझे पता है कि इस सवाल पर भिन्नता पहले से ही स्टैक पर मौजूद है ओवरफ्लो। हालांकि, इस मामले में, कि वैकल्पिक दृश्य नहीं UINavigationController पर धक्का दिया जाएगा यह दृश्यमान होगा कि वर्तमान UIViewController के तालिका को फ़्लिप करने और दूसरे दृश्य को प्रकट करने के लिए, फिर वापस फ्लिप करने में सक्षम होने के रूप में। दूसरे शब्दों में, यह UINavigationController पदानुक्रम में एक स्थान लेने का इरादा है। इसके अलावा, जो भी चयन आप अंततः किसी भी दृश्य के भीतर से करते हैं, वह सामान्य UIViewController UINavigationController स्टैक पर। अभी भी अधिक जानकारी: हम इस युग्म को संभाल करने के लिए एक अलग UINavigationController का उपयोग नहीं करना चाहते हैं विचार, और हम इन दोनों को किसी भी UITabBarController के माध्यम से विभाजित नहीं करना चाहते हैं प्रत्यक्ष रूप से और प्रासंगिक रूप से, यूएक्स का मतलब एक ही सिक्के के दो तरफ दिखाना है। यह सिर्फ यही है कि उन दोनों पक्षों को

windows - Don't display ^M characters with emacs -

I'm thinking that temporarily there is a way to display ^ M characters in the file. I do not want to remove them, I just do not want to show them. Cheers, I use the following function (forgot where I It was found: " (" defun hide-ctrl-M ") 'Unresponsive' M 'that appears in the brain-containing files' Unix and DOS line end." (Interactive) Buffer-Display-Table (Asset buffer-display-table? \ ^ M []))

C++ debugging help for C# programmer -

I'm embarrassed to post it, but it's been a while since working in C ++ Staying with C # for late I am converting old (not written by me) versus 2003 and 05 ++ code versus 08. In addition to many lots of conversions, I want to add debug logging so that I can monitor that when I engage with the Windbag I am here The search of the archives and MS and I think is using the debugger. Logs (...) but not sure. I remember a year ago that a debug monitor was launched to catch logging. So call some of the experts who have better memory than they have. What call can I make (without the Debug Compile Directive - need to see the release code) to capture logging in the air bag? I followed the debugging link from some posts but they died Thanx - Old Man Sends a string to a linked debugger.

delphi - How to simulate a dial-up connection for testing purposes? -

I have to code a server app where customers will open a TCP / IP socket, send some data and close the connection. The data packet is small & lt; 100 bytes, though it's a matter of batching their transactions and sending multiple packets. How can I simulate the best one dial-up yat connection (using Delphi and indie components, just FYI)? Is it easy Open connection Wait a while (What is the definition of "a little while"?) Close connection You can use a network emulator if you have a Linux There is a machine (an old project but still useful, used a few years ago), you can create many scanniero limited bandwidth or other features in network communication. There is an application that seems to be doing this, but I have not used it, so you can not tell whether it is good or not. If you want to emulate the modem, then you can use it which provides absolutely. / P>

compatibility - JDK 1.6 compatible with JDK 1.5? -

Image
Having a consistent issue, my project develops in JDK 1.6, but when I have to post it on the host domain, there is an issue where the host domain used JDK 1.5, how do I make my project with JDK 1.5 Can i be compatible Thank you in advance You must basically set the -target attribute. Also see also in Jawaq's document javac /? . See also javac-target 1.5 [...] / P> Updates : With the comments you are using using Eclipse, you can change compiler compliance level based on per-project. rightclick project> properties> java compiler> compiler compliance level> 1.5 . . You can download JDK 1.5 From

networking - Android: Problems downloading images and converting to bitmaps -

I am working on an application that downloads images from the url. The problem is that only some images are being downloaded properly and others are not. First of all, this is a problem code: Public Bitmap Download Image (string URL) {HTTP Client Client = New DefaultHttpClient (); HttpResponse response = null; Try {feedback = client.execute (new HttpGet (url)); } Catch (Client Protocol Expansion CP) {log. (LOG_FILE, "Client Protocol Exception"); Return tap; } Hold (IOException ioe) {Log.i (LOG_FILE, "IOE Downloading Image"); Return tap; } Hold (exception e) {Log.i (LOG_FILE, "Other exceptions download image"); Return tap; } // Try changing the bitmap object from the stream {bitmap image = bitmapfinder. Acadestream (Reaction Gates). GetContent ()); If log (image == zero) I (LOG_FILE, "image conversion failed"); Return image; } Hold (exception e) {Log.i (LOG_FILE, "Other exceptions to changing image"); Return tap; }} So I have a