Posts

Showing posts from February, 2015

c# - RadWindow AlwaysOnTop -

Does anyone have any experience with wpf control from radwindow telephrint? My problem is that when I open Radwindo and reduce my application then when I maximize the application Radwindo does not appear, I can use Alt + Tab to get code> Radwondo , but I really would like to avoid doing this. I am doing the following to display rad window : this.theWindow.ShowDialog (); Where theWindow is an example of a class that is derived from radwindows . Any thoughts? I got a solution to this problem. In the main window of my application, owner Red Wondo had to set up the property.

iphone - how to set UITableViewCell background tranparent? -

कैसे UITableViewCell पृष्ठभूमि tranparent सेट करना है? मैं कोशिश कर रहा हूँ सेल। बैकग्राउंड रंग = [UIColor clearColor]; लेकिन वह काला रंग दे रहा है। धन्यवाद & amp; सादर। कृपया यह पोस्ट देखें:

Python# screenshot failure -

I am using PIL (Python Imaging Library) to grab the image. IGG = ImageGrab.grab () file "C: \ Python26 \ lib \ site-packages \ PIL \ ImageGrab.py", line 47 , In the size of the grab, the data = blurring () IOError: failed to grab the screen My browser shot is installed in a VM in the factory Win 2003 server. I am doing a remote desktop to see the browser shot factory console. There is a very common question - there are some options and solutions, and (as Adam Bernier ), ImageGram only works on Windows

iphone - Add backslash to String in Objective-c -

I have a problem similar to this problem. I also want to change the infromation of the same type (it is a date / time for asp.net) ... whenever I try to add backslash I have since received two backslashes. In the thread above, everyone has claimed that this is a problem with NSLog and treats NSString as \\ as \ is. I have checked it to check the packet by sending a webserver to a webserver using a packet sniffer and I can confirm that it is sending a double backslash instead of a single backslash. Do anyone know how to add a backslash to an NSString? The strings and NSLog are working fine for me: NSLog (@ "\\"); // Output is a backslash NSLog (@ "\\\\"); // Output Two Backslash is NSLog (@ "\\ / Date (100034234) \\ /"); // output / date (100034234) \ / What am I missing?

Creating dynamic region content in wordpress as in drupal -

I am using Drupal to create a website for about 2 months. I feel that it is very easy to create Views or Block , which can keep my dynamic content up-to-date with the latest photos, comments, and so on. Now, I have started using WordPress and how does this work to me? As such, how to create a site like this: Should I create a .php file that I want and then include the file in related locations? There are some options that you can find that the easiest way to include your own block of content; To make full use of this, you have to understand WordPress Loop so that you can get and enjoy the post from DB. Another method, though it involves more coding and setup, but in the long run more scalable, it is. Check introductory articles for what you can do with it.

c# - When is it OK to catch an OutOfMemoryException and how to handle it? -

Yesterday I was dedicated to OO Outauri Expression and participated in discussions on professionals and opposition to handle this (). The fact is that OutOfMemoryException was thrown; it generally does not mean that the status of a program was corrupted; According to the documentation, "throw outofformary expansion to the following Microsoft Intermediate (MSIL) instructions: Box, Newery, Nubeb" which only (usually) means that CLR has given a given size block of memory Tried to find and unable to do so; No This means that no bytes were left in our nature; But not all people agreed with this and after the exception the unknown program predicted the state and so my question is: OutOfMemoryException What are the serious reasons to handle and leave it immediately when this happens? Edited: Do you think OOME performance engineer is fatal as an exception? We all write different applications in the WinForms or ASP.Net app, I probably log exception, I suggest to

stored procedures - C# ExecuteQuery null value -

I have some code: using (OAZISDBDataContext ctx = new OAZISDBDataContext () ) {IEnumerable & LT; DBContactDetail & gt; Details = ctx.ExecuteQuery & lt; DBContactDetail & gt; ( ". Passing the executive [dbo] [zna_contact] {0}, {1}", "test", "19,601,023",} I also though store empty values ​​methodology If you want to be able to, because it does not use them. now with strings it is easy, I just can not have string. empty and it will work. but if I have free dates it the problem is to have I obviously tried: the Using (OAZISDBDataContext ctx = new OAZISDBDataContext ()) {IEnumerable & LT; DBContactDetail & gt; Description = ctx .. ExecuteQuery & LT; DBContactDetail & gt; ( "Executive [dbo] [zna_contact] {0}, {1}. "," Test ", null,} but this does not work 'error: System.Exception: a queryparameter type system. Object can not be done After reading something I found that ExecuteComm

security - Setting cookie in iframe - different Domain -

Our site is integrated into another site as an iframe that runs on a separate domain. It seems that we can not set cookies before anyone has faced this issue before? Any ideas? Since your content is being loaded from the remote domain into an iframe, it is a third Party cookies . The vast majority of third party cookies are provided by advertisers (they are usually anti-malware software as tracking cookies ) and many people attack them Believe in Consequently, most browsers offer the convenience of blocking third party cookies, which may be the cause of the problem that you may encounter.

c++ - Visual Studio linking error LNK2005 and LNK2020 -

I am using Visual Studio 2003 and I am getting the following linking error in my project: < to pre> link ... link: warning LNK4075: ignoring due to '/ EDITANDCONTINUE' '/ INCREMENTAL: No specification msvcrtd.lib (MSVCR71D.dll): error LNK2005: _fprintf already LIBCMTD.lib define (fprintf.obj) C: \ documents and Settings \ mz07 \ Desktop \ projects \ HLconsoleExample \ debug \ HLconsoleExample.exe: fatal error LNK1169: found one or more times Cir Asit symbols I joined the line libcmtd.lib "specific library neglect" and got another error: link ... Link: Warning LNK4075: ignoring due to '/ EDITANDCONTINUE' '/ INCREMENTAL: No specification link: error LNK2020: unresolved token (0A000037) _CxxThrowException link: error LNK2020: link removed unresolved token (0A000039): fatal error LNK1120: 2 unresolved external < / Code> This is the beginning of my main category: #include & lt; Cstdio & gt; # Include & lt; Iostream &

objective c - Testing enum gives warning: comparison between pointer and integer -

I'm getting this warning: Warning: Comparison between pointer and integer < Which is defined below: enum menu type type {linksInnalNL = 0, linkEctional = 1, image = 2, movie = 3, map = 4}; Enum Menu Type eMoon Type * Menu; I think I just need an artist but what is the syntax? As your menu is an indicator of type ANUm value, you can rewrite your status : If (* (menuItem.menuType) == LinkExternal) but why do you need to store this value by the indicator? You can not do now: menu menu type menu type;

user interface - How to add objects to a already instantiated JList in Java? -

I want to add objects to a JLIS which has already been interned by Netbeans Joint Code. I can not give my own list model in the Jellist constructor because I can not modify Netbeans derived code. How can I add objects to that jellist? According to my comment nfechner, it really depends on how you built your JLIS If you have used JList (ListModel) or JList constructor, then you could potentially call getModel () through your call Modify the consent of the model , or in the case of vector , simply maintain the reference of vector and modify it (Leave an event behind to inform any model listeners). However, I am definitely making sure that the "hook" in Netbeans IDE is to allow specifying a particular model implementation, after which the code is included in the auto-generated to include it Will be done.

JavaScript / ExtJs : TreePanel / TreeLoader : how to handle load errors? -

Almost everything is in the title;) You can add a loader when you create a trippan By the way: Loader: New Ext.tree.TreeLoader ({dataUrl: '../myurl.php'}); But how to handle load errors? For example, if the user is not connected then I want to display a login box. An example was not detected for how to control loading errors with TreeLoader and / or TreePanel . text "itemprop =" text "> Try to find the answer here;

html flash embed -

I use js file AC_RunActiveContent.js or swfobject-1.5.js in html without using the code given below for my jQuery Lightbox File. It works fine for IE and Firefox Just want to know if there is a problem not to include AC_RunActiveContent.js or swfobject-1.5.js Whether to display Flash in different browser versions AC_RunActiveContent.js or Must be swfobject-1.5.js? & lt; Object class = "clayed: d27cdb6e-ae6d-11cf-96b8 -444553540000" codebase = "http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=9,0,0,0 "Width =" 789 "height =" 617 "id =" loader "align =" medium "& gt; & Lt; Param name = "allowScriptAccess" value = "wahid" /> & Lt; Param name = "allowFullScreen" value = "wrong" /> & Lt; Param name = "movie" value = "en_MAIN.swf" /> & Lt; Param name = "quality" value = "high" /> &

multithreading - What are the "things to know" when diving into multi-threaded programming in C++ -

I am currently working on a wireless networking application in C ++ and it is coming to a point where I I want to understand multi-threading, rather than a separate piece of multi-thread software, all of them, rather than the different processes, but I have not yet practiced dive. When writing a multi-threaded code in C ++, every programmer Or should you know? I will focus on designing that thing as much as possible, so you have Threads have the least amount of things shared. If you make sure that you do not have statics and other resources shared between Thayer (the others you share, then you will design it with procedures instead of threads) then you will be fine. So yes, you need concepts like locks, sackphars, etc., the best way to deal with this is to try to avoid them.

javascript - Parse boolean arithmetic including parentheses with regex? -

Is there a regular expression that can parse the string (in Python and / or JavaScript, it does not need the expression ) Which represents the ordinary boolean arithmetic? For example, I want to parse this string: a and (b and c) and d or e and (f or g) Assume that: * do not nest brackets * Terms A, B, ..., Z are not sub-expressions The resulting capture should be grouped by the parentheses first, Which I parsed again? Any thoughts? Any ideas? Normally you will use this for example, but You can hold all the parts (tokens) with regex: x = 'a and (b and c) and d or e and (f or g)' import again Is = re.findall (r '\ (. *? \) | \ W +', x) Print ','. Included (mail) Operators usually have different variants. The evaluation of the parentheses will be done with the correct sequence from the left in the case of first, then and expression, and finally or expression, in the case of equal precedence. You say that you want to return the mai

Drupal: customizing user registration workflow for communicating with another webapp -

I am new to Drupal6 and have long searched for how to implement the following feature without success: I have a Dupl / Dock board for front-web apps, and I will be able to create all user accounts, updates and updates on this web-app. I want to mirror the deletion, i mean to send the user name and password. I have started coding the small module implementing the hook_user (), but I still think of many questions related to this hook: 1) I can not find a doctor related to the field $ account , and thus it is not known how to recover the user name and password. 2) The insert operation indicates that "user account is being added". Does it start when a user asks for the account or has approved the account creation of its account? 3) User management on 'slave' webpage is done through a URL interface. I only know the php primitive header ("location: http: // webapp / users / add" user = martin & pwd = bla ") , but I'm afraid it's just on

flex - Flash Preloader with dynamic/random text from file -

I have to be a preloader, which displays text in a random order from a text file. So suppose I have 15 lines in the file, and the preiler displays every 3 seconds (until the app's loading). I only find solutions where you always need to compile the preloader when the text file changes ... this is what I want to save any thoughts? thx, Martin If your preloader is loading from external to dynamically Text file from, I'm not sure why you need to recompile the preloader. This happens when the structure of your text file does not change. I will put all the explore texts in an XML file and will load the XML file dynamically to the preloader.

javascript - setAttribute is not working for 'style' attribute on IE -

I'm keeping a piece of JS code for Firefox in Internet Explorer. I had to face the problem of changing the style of an element by using setAttribute method which was working on Firefox. button. SetUvit ('style', 'float: right;'); I tried to set the style member of the button and it does not work either. This was the solution for setting the onclic event handler. button.style = 'float: right;'; First of all, I want to know the solution to the problem above and second, there is no maintained list for these differences between browsers? Because the style itself is an object what you want: Button.style.setupviet ('cssFloat', 'right'); But if IE does not support setAttribute for style object, then use fully cross-browser: button.style.cssFloat = ' Right '; For reference, I always go to www.quirksmode.org. Specially:. Click on all DOM related goods. And finally, to set several attributes, I usually use

jquery - ASP.net viewstate changes validation and jQquery AJAX -

OK, then the problem is as follows: I use jQuery AJAX to create behind the visible call inside the page (Like items to vote on such incidents) and change the content in the appropriate element. The problem occurs when I combine AJAX with ASP.net's AJAX, and more accurately when I use jQuery on the page to perform an action, I try to postback. The approach of the page changes and verification fails (which appears to be something as normal as a matter of fact). My question is: Can I somehow disable the recognition so that I can combine the postback with the Cheez page page? So far, searching for about to disable it did not get any results. A more practical example is on a comment page where I allow comments to vote and post new comments. Therefore a user should give a comment and then post to his post, the content of the page changes, and thus the verification fails. Also, I have tried to keep the comment form in an update panel because the whole page to stop posting, but it

php - Select over multiple databases -

I have to improve performance in a project at work. The app's data has spread to many databases. I was told that whatever is better to organize the data Is there an execution penalty when I make a selection on some tables spread in many databases, rather than selecting those tables in a database? Depending on whether those databases are on the same physical server or not

android - Highlight Text in TextView or WebView -

क्या यह TextView या WebView में टेक्स्ट हाइलाइट करना संभव है? मुझे लगता है कि यह EditText में संभव है मुझे TextView < / Code> या WebView । क्या संभव है? सक्षम करें TextView के Spannable भंडारण! डिफ़ॉल्ट रूप से EditText में Spannable storage सच है। ऐसा TextView myTV = (TextView) findViewById (R.id.textView1); स्ट्रिंग टेक्स्टस्ट्रिंग = "स्टैक ओवरफ्लो रॉक्स !!!"; Spannable spanText = Spannable.Factory.getInstance ()। नया सशर्त (टेक्स्टस्ट्रिंग); SpanText.setSpan (नया पृष्ठभूमि कल्वरस्पैन (0xFFFFFF00), 14, 1 9, स्पैनबल। SPAN_EXCLUSIVE_EXCLUSIVE); myTV.setText (spanText);

Jquery Thumbnail Pager with Captions? -

I know that there should be an easy solution for this! I have a thumbnail image pager, I just want each slide to have a description below the big picture. It can be done, is not it? help please!! I suggest that you make a list of links. Each link corresponds to a panel below. The panels are located at the top of each other. When you click a link, it fades all non-related panels, and shows its own address. Example:

command line - Running Java program from Python -

I have noticed, and, They were not sufficiently adequate when they were informative. To know the root cause of my problem, my code is not within a jar file and the customer has requested that we should not ship it. I made an application in Alps and it is running fine from there. I have established a script which will modify the main method of one of the Java files for testing purposes. I want to run the application using a call from Python after modifying it. However, when I use java or java -cp If I try to call the program using , I get the following error from the command line: Exception in the formula "main" java.lang.NoClassDefFoundError: java.lang .ClassNotFoundException: java.security.AccessController.doPrivileged in Java due to DemoAPIFunctionality (Native method) at java.net.URLClassLoader DemoAPIFunctionality .net.URLClassLoader.findClass (unknown source $ 1.run (unknown source)) Java Java sun.misc.Launcher java.lang.ClassLoader.loadClass (unknown sou

General Sharepoint Development Question -

My company is rolling out to Sharepoint 2007 Enterprise. I do not have to use the administration of the server to use it An account will be given so that I can create a website for my department. Will I be able to use all SharePoint features (workflow, search, content management, developer level modifications) in the website I'm building? Put another way, will I be able to develop any type of dynamic website which I want my department to do, "Share" establishes SharePoint? You have two approaches: as a feature To install your application; You will probably need to run some administrator permissions to run some stsadm commands and activate it. This is a recommended approach. To tell your web application on a virtual directory, where you will need only one file sharing permission to copy your files, it makes the life of the developer easier.

netbeans - Creating ANT script to deploy to glassfish, run junit tests and then un-deploy -

Hey guys, I have a J2A app that I'm making with Netbeans. My work is to modify build.xml so that after app creation, ANT deploy an app on a server, run Junit jobs on the app, and then the app is un-deployed so far I have deployments and un I am preparing to deploy, but I am working in some difficulties which are running old tasks. I have a client project in Netbeans where my joint work lies. My Trouble is that when this project is created, it does not compile my Janet tests into .jar. These problems arise when I run my Entente Janet work and the ANT can not find the appropriate classificial file for the Junich Test. It allows me to set "source package folder" and "test package folder" in Netbeans project properties. If I add "test package" to "source package folder" and build the project then it compiles the tests and adds them to the jar. This works, though it works as a test in Netins Prevents your junit tests from running, which

asp.net mvc - mvc return Json() vs. JSON based Web Service -

I want to expose a service on my site that a user can make a call and get a JSON response . Lastly, I want users to use this service as much as possible. My site was created using the ASP.NET MVC framework and I was wondering what is the best way to do this ... I think most of People say that it is clear to use a web service (* .asmx) that gives the JSON format, but I know that I can only create a URL that the user can call and it is a JSON format Can return well (eg: calling "" JSON list Apas will come). Returns in ASPN.net using the Jason () method. In this way, this is a web service versus advantages / disadvantages, which has been specifically done for it? I do not know that most people use an .asmx web service. Personally I have been in a while. The command web service is not created and I must go for the MVC approach. Only those things should concern me: Changes in the future in data, URLs, and / or standards. To make the controller bigger or deplete

can a UIImageView be warped? (iPhone) -

If I find it possible to taunt UIImageView on iPhone I'm curious to think of dragging an image around a curve Was it possible or not? Yes, the use of texturemapping in OpenGL ES is probably the easiest way. Setting core graphic references using quartz is a bit difficult.

java - Permission to write to the SD card -

I would like to store my app DB in an SD card. In my code, I check whether the directory canwrite () is present, and if not, throw IOException in this particular example, I will send the DB file to the root directory on the SD card I'm trying to copy, but it's throwing a IOException . How can I change the permissions of a folder / file to be able to write it? Again, the SD card's directory is / sdcard but you It should not be difficult coding. Instead, call to get the directory: file sdDir = Environment.getExternalStorageDirectory (); If you have not already done so, then you have to give your app the correct permission to write on the SD card by adding the line below your manifest: < Code> & lt; Usage-permission Android: name = "android.permission.WRITE_EXTERNAL_STORAGE" />

pickle - Python pickling after changing a module's directory -

I recently changed the directory layout of my program: Before that, all my modules were inside the "main" folder. Now, I have taken them to a directory in the name of the program, and put __init __.py to create a package. Now I have a single. My main directory is used to launch my program, which is very cheap. Still, the attempt to load spicy files from previous versions of my program is failing. I'm getting, "Import Errotor: Tool's No Name Module" - which I think is because my module was in the first main folder, and now it's in whyteboard.tools, not just plain device, however, in the tool tool module Importing is in the same directory, so I suspect that the package needs to be specified. Then, my program directory looks something like this: Why-board -0.39.4 - & Gt; Why - & gt; CHANGELOG.txt / P> ----> Why the Board / ---- > Why board / __init __ Py ----> Why board / gui.py ----> Why the board

php - How to show different homepage based on the user's Country? -

My two domains were Rajicir.com and Rajasekhar. What do I need to do, When a user of India writes the URL in the address bar as www.rajasekar.com then it should open www.rajasekar.in When the other country user should open www.rajasekar.com www.rajasekar.com as the URL in the address bar I think it has been implemented in GOOGLE. Please help me get it You attempt to estimate the country based on the country's remote address can do . The following is the work solution, you will need to work again with the diagnostic logic: $ remoteAddr = $ _SERVER ['REMOTE_ADDR']; $ LookupUrl = sprintf ('http://api.hostip.info/country.php?ip=%s', $ Remote Eder); $ Country = trim (file_get_contents ($ lookupUrl)); If ('IN' === $ country) {$ newUrl = 'http://www.rajasekar.in/'; Headers (Sprint ('Location:% s', $ newUrl)); Printf ('& lt; a href = "% s" & gt; moved. & Lt; / a & gt;', $ newUrl); Go out(); } K

Sharepoint wss 3.0 authentication -

I have developed a site in SharePoint wss3.0 when I type in the URL, i.e. the first username and password Successful login to (I have created user from sharepoint central admin site) I have been redirected to my site's login page. Then I login to use my site. Now what do I want to do is to combine both the log-that is, when I login to my server using SharePoint user's username and password, then I redirect my site to the home page Want to I should not be redirected to my site's login page What should I do? Do I need the code in Sharepoint's default login page in the _layouts directory? If so, how do I use login.aspx.cs ?? Plz help your application (assuming it's ASP.NET API) The _layouts of SharePoint should be deployed specifically to a custom subfolder in the directory, so that the session status and sharing authentication can be availed. 12 / TEMPLATE / LAYOUTS / Yourapp / default.aspx - OSIN

php - mysql_real_escape_string() for $_SESSION variables necessary? -

क्या मुझे $ _ session MySQL क्वेरी के लिए mysql_real_escape_string () फ़ंक्शन का उपयोग करना चाहिए < / कोड> चर? सैद्धांतिक रूप से, $ _ सत्र चर $ _ GET या $ _ POST चर के विपरीत अंत-उपयोगकर्ता द्वारा संशोधित नहीं किया जा सकता है? धन्यवाद:) चाहे उपयोगकर्ता डेटा को संशोधित कर सकता है, आप शायद बचाना चाहते हैं वैसे भी यदि आपको कभी भी ऐसे वर्णों को शामिल करने के लिए डेटा की ज़रूरत होती है जो एसक्यूएल (उद्धरण, आदि) को तोड़ देंगे। बेहतर अभी तक, बाउंड पैरामीटर का उपयोग करें और आपको इसकी चिंता नहीं होगी।

Force Makefile to execute script before building targets -

I am using makefiles. However, there is a command (zsh script) to execute any goal. How do i do this Thank you! There are several techniques in which code is executed before the goal, which one should you choose, in fact What do you want to do, and why you want to do it. (What does the Zsh script do? Why do you have to execute it?) You can either @ John suggest; By placing a zsh script as the first dependency, you should mark the zsh target as . PHONY Unless it actually generates a file named zsh . Another solution is to open $ (shell ...) function as part of a variable assignment: at least ZSH_RESULT: $ $ (shell zsh Myscript.zsh) As soon as the makefile is parsed, and before executing the any target The script will be implemented. This script will also execute if you invite makefiles recursively.

c - How do I get per-cpu stats (system, idle, nice, ...) like the "top" command does? -

On the linux, I want to know that the "C" API has to call to get per-CPU stats I can read and read / proc / loadavg from inside my app, but this system-wide load is top, not per-CPU information I want to tell different CPU or core. As an example of such an application, when I run head and press "1", then I can see 4 or 8 processors / core By way: CPU: 4.5% us, 0.0% SE, 0.0% NI, 95.5% ID, 0.0% wa, 0.0% Hi, 0.0% C, 0.0% cp 1: 42.2 % Us, 6.2% SE, 0.5% NI, 51.2% ID, 0.0% W, 0.0% High, 0.0% C, 0.0% C CPU 2: 3.0% Us, 1.5% SE, 0.0% NI, 94.5% ID, 0.0 % W, 0.0% Hi, 1.0% C, 0.0% cpu 3: 7.0% us, 4.7% SE, 0.0% NI, 88.3% ID, 0.0% wa, 0.0% Hi, 0.0% C, 0.0% St. I tried to do strace top , but it led the rat nest. The file you want is / proc / stat . (You can refer to fs / proc / stat.c in the Linux kernel source.)

java - Google App Engine - how do you handle a DatastoreTimeoutException? -

I created something on Google App Engine, which acts as a backend for an iPhone app. In the app, there are interactions that are pushed into social networks through their APIs. The typical workflow is like this: User uses the iPhone app to "do something" The app engine app is notified via HTTP < / Li> App Engine warns social network which user did "something". If users were checking their profile on that network, their activity will be displayed through the app. Therefore, as long as the user is concerned, what did they do? The app engine requires some persistence on its side, but when it tries, a datastore time off is thrown away. And now the data is in a funky state. So what is a good way to handle it? From the nature of the problem I would love to wrap it in "transactions", but there is no way to roll back the roll sent to the social network. So, how do I deal with Gettar Time Expansion? Should I wrap it in a try block and give it a

linq to sql - IQueryable to DataSet -

I have seen many methods and tricks around the net today. I am reporting my queries to SQL in my databases to SQL queries (IQueryable results) There is a need to convert for the purposes. The reporting tool is XtraReports from DivXpress. I have a promising solution in each other. I still worry about the whole object graph, if I need all the hierarchical data for my report, then the affiliate association data will be uploaded to the content of the Data Entityset, EntityRF ( Just like I've loaded customers with all orders and order details). Is it necessary to change some of it to convert it to the appropriate dataset with the related data tab and all the data I need to create several reports from several data tables with many values? I understand that I can use the previous device and can convert data related to the data of a dataset into one and one and datasource in the report. [edit] DataContext.GetCommand (IQueryable) looks another useful solution I am looking for more

c# - Possible to calculate MD5 (or other) hash with buffered reads? -

I need to calculate the checksum of large files (gigabytes). It can be completed using the following method Is: private byte [] calcHash (string file) {System.Security.Cryptography.HashAlgorithm ha = System.Security.Cryptography.MD5.Create (); File stream fs = new filestream (file, filemodel open, fileaccess read.); Byte [] hash is =. Compact hash (FS); Fs.Close (); Return hash; } However, files are usually written in a buffer manner (32MB at a time writes) I am very confident that I saw the override of a hash function Which allows me to write MD5 (or other) hash at the same time, i.e.: calculating the hash of a buffer, feeds the hash resulting in the next strike. Something like this: (Pseudocode-IIS) byte [] hash = new byte [] {0,0,0,0,0,0,0,0,0 , 0}; While (! Eof) {buffer = readFromSourceFile (); WriteFile (buffer); Hash = calash (buffer, hash); } What's going to be done by running the ChessShash function on the hash file now? Now, I can not get any override i

php - String contains any items in an array (case insensitive) -

How can I check if any $ string is expressed in the array in any object is? $ string = 'My NEM is Tom.'; $ Array = array ("name", "tom"); Any ideas? Did you want it? I hope code is being compiled :) $ string = 'My NEM is Tom.'; $ Array = array ("name", "tom"); If (0 & lt; count (array_intersect (array_map ('strtolower', explosion ('', $ string), $ array)) {// do sth}

Google app engine and custom subdomain -

So, I have written my own application that is hosted on Google App Engine, and so arrive at URL Can: - Where "myapp" is the name / id of my application. I want this app to be accessible to subdomains, which I do not have (myapp.somedomain.com), and want to administer somedomain. That information needs to be set up. There is a lot of information about this, but googling after a few hours I'm still not sure that I need to tell the administrator. There are so many things about signing up for Google Apps that are supposed to be free but I've only found that this is about setting a trial period or $ 50 / year and a CNAME Someone can give me simple instructions - where can I tell my administrator (other than URL), and what do I need to do in my Google App Engine control panel? You definitely do not have to sign up for Google Apps for Domains, but if this is something This is what you are doing anyway, so it provides an extremely simple and straightforward integ

php - Collecting Recurring Payments with Paypal -

I'm reading a lot of documents around recurring payments and PayPal. Sometimes it can be disappointing to set up PayPal, especially if you do not know the requirements and restrictions that apply to those PayPal services you are trying to setup because I want to set up recurring payments because I would like to provide alternatives for my clients. I am located outside and some of my clients are in the US Is it possible to set recurring billing for a vendor account, which is not a US bank? I have no problem if this facility is available only to US businessmen, but what I have to do, this information is that this information is not finding and showing everyone. I know that we are likely to be in the form of merchants, use our common knowledge but little information can not hurt anyone. I am checking the sandbox account, the seller and the buyer on my site In the form, but after almost two disappointing weeks, someone associated with PayPal has not told me that I am using a sand

recursion - Reversing line from an input using a recursive function -

In my textbook, this is an example which is similar to reversing one line from an input file: zero reverse (ifstream and inFile, int level) {int myInput = inFile.get (); If (myInput! = '\ N' & amp; amp; amp; My input! = EOF) / / It does not understand, line 4 reverse (infile, level); If (myInput! = EOF) cout.put (myInput); } The line I did not tell is the comment I made. Because of these input files: ABC \ ndef \ 0 When \ n is equal to my input, it does not line up 4 The conditional statement will be false (my input! = '\ N') false before being false, and the second part (MyInput! = EOF) will come true, make the whole line wrong, and then do not call the reverse function? Thank you. To understand the rehearsal of a very basic level, find out the execution of execution and execute the sequence of calls You will be helped to understand how it works. I placed each call on Rickers () and included line numbers that are executed. 3: myInput = 'A

c# - designing virtual methods -

I wonder which situation you will choose first or second design: The first design: The child method has to call the base method public abstract class base {public virtual zero enabled () {IsEnable = true; } Disable Public Virtual Zero () {IsEnable = false; } Public Child Elastic (Receive; Private Set;}} Public Square Child: Base {Enabling Public Override Zero () (*) * * * / base.Enable ();} Disable the public override zero () {/ * Do not forget to call the base / P> Public intangible class base {Enable Public Zero () {IsEnable = true; OnEnable ();} Disable Public Zero () {IsEnable = false; OnDisable ();} Public Child Eligible (Receive; Private Set;} Public Virtual Zero OnEnable () {} Public Virtual Zero On-Disk Basic () {}} Public Class Child: Base {Override Zero Onable () / / Work * Overwrite Zero On Disabling () * / * Work * /}} Thanks < / Div> It depends if you really want to make sure isEnable gets set Whether or not you can visualize scenarios in whic

osx - Cannot connect to svn server (svnserve) -

I have installed a repository on my Mac using svnserve web and using many tutorials. But I can not see it from the internet If I call the following command then everything goes fine: svn co svn: //192.168.1.10 / work_copy / myproject - and if I I call the following: svn with svn: // my_external_ip / work_copy / myproject - name name I get an error: the host ' My_external_ip ': Connection refused Of course, instead of my_external_ip, I type in my external IP address which I got from whatismyip.com I got the port 3690 A has set up port forwarding on its router for its local IP-192.168.1.10 svnserve is running I launched it: svnserve -d I have tried to check that the port is open using 3690 and it says that the harbor is open. What could be the problem? I am trying to understand it all day and the reason can not be found. Thank you in advance. If you try the "svn co svn: // my_external_ip" command, where are you? It is likely that wh

ruby - Configuring Postgres in Ubuntu 9.1 Rails dev-box for Cucumber testing -

I am trying to install Postgres 8.4 for Rails dev-box and I'm having some problems. I have installed Postgradge and PG-Admin 3 through an apt-dot. Using the latest rails 2.3.5 and the latest Ruby 1.9.1 The configuration is bothering me now for the user, the Postgrad user (which I think is a postgraze There are some documents about what I did. sudo -u postgres psql postgres \ password postgres Before I get an error ... < Code> FATAL: Authentication failed for user To manage it later, I managed to create a database in PG-Admin 3. An auto-generated database. Updated to see this like this. Evolution: Adapter: PostGrasek Encoding: Unicode Database: Rail-Box_ Development Pool: 5 Username: Postgrease Password: ******** Host: Localhost Port: 5432 After this, Rake DB: Create works if I remove the host and the port, then it does not work. My question is ... What is the default configuration for those developers who uses Rail and Post Grass for developmen

security - Key Generation/Validation, What's out there? -

I have been asked to develop a major generation / verification system for some software. They will also be open for a developed open source or business system, but they will prefer a system from scratch to make online activation optional, because it is possible that some establishments will be on separate servers. I know that there is a user / security complex with many anti-piracy techniques. So I guess what I'm asking is software, libraries, and techniques out there? I appreciate personal knowledge, web sites, or books. If you take the ashes of something, the result (ideally) in an unexpected string of characters Will happen. For example, if you use "1" (your first license key) and an algorithm long enough to take SHA1 of some predictable numbers (such as sequential numbers) and If you take SHA1 of a super secret, then your keys will be really safe, as long as your salt is not a permanent secret. Salt "stackoverflow8as7f98asf9sa78f7as9f87a7", you ge

help with clone and appendTo in jquery -

यह मेरा DOM है: & lt; div class = "group" & gt; & Lt; div वर्ग = "टिप्पणी" & gt; & Lt; button class = "addLink" & gt; लिंक जोड़ें & lt; / बटन & gt; & Lt; / div & gt; & Lt; div class = "link" & gt; & Lt; button class = "removeLink" & gt; लिंक निकालें & lt; / button & gt; & Lt; / div & gt; & Lt; / div & gt; मैं बटन पर क्लिक करना चाहता हूं.ऐड लिंक और यह div.link की प्रतिलिपि बनायेगा और इसे डिविग ग्रुप में अंतिम बच्चे के रूप में जोड़ें। मैंने इस के साथ शुरू किया कोड है लेकिन अटक गया। $ (यह)। Parent ()। माता पिता ()। (': आखिरी')। क्लोन ()। AppendTo (); मैं अपेंड लिखने का तरीका नहीं जानता क्योंकि मैं इसे div.group में जोड़ना चाहता हूं लेकिन मैं इसे 'div.group' के रूप में टाइप नहीं कर सकता क्योंकि अन्य div.group बहुत अधिक हो जाएगा, इसलिए मुझे इसे रिलेशनल पॉइंट ऑफ़ से चुनना होगा। क्या कोई मेरी मदद कर सकता है? $ (यह)। Parent

html - Is it necessary to put INPUT elements in a DIV element? -

क्यों W3c html मान्यता में त्रुटि देते हैं? मैं HTML 4.01 सख्त कार्यप्रणाली का उपयोग कर रहा हूं। & lt; form method = "get" action = "/ search" id = "search" & gt; & Lt; इनपुट प्रकार = "टेक्स्ट" मान = "खोज" अधिकतम लंबाई = "80" वर्ग = "पाठ बॉक्स" & gt; & Lt; / प्रपत्र & gt; और यह नहीं है? & lt; form method = "get" action = "/ search" id = "search" & gt; & Lt; div & gt; & Lt; इनपुट प्रकार = "टेक्स्ट" मान = "खोज" अधिकतम लंबाई = "80" वर्ग = "पाठ बॉक्स" & gt; & Lt; / div & gt; & Lt; / प्रपत्र & gt; यह त्रुटि है दस्तावेज़ प्रकार यहां "INPUT" तत्व की अनुमति नहीं देता; "पी", "एच 1", "एच 2", "एच 3", "एच 4", "एच 5", "एच 6", "प्री", "डीआईवी", "पता" स्टार्ट-टैग / Blockq

.htaccess - htaccess mod_rewrite:- products.php?cat=1 to /myfolder1/myproduct1/ -

मेरे पास एक यूआरएल प्रकार है: - http://www.example.com/products.php? Cat = 1 जिसे मैं पुनः लिखने में सक्षम हूं: - http://www.example.com/myproduct1 निम्न .htaccess नियम का उपयोग कर: - RewriteRule ^ myproduct1 $ उत्पादों .php? Cat = 1 । अगर मैं फिर से लिखना चाहता हूं तो मुझे किस नियम को दर्ज करना होगा: - http://www.example.com/myfolder1/myproduct1/ किसी भी मनमाना मार्ग सेगमेंट एक और बी में / a / b / , आप इसका उपयोग कर सकते हैं: रिवेराइटियम ^ ([^ /] +) / ([^ /] +) / $ Products.php? खंड 1 = $ 1 और amp; खंड 2 = $ 2 संपादित करें आपकी टिप्पणी के जवाब में: बस अच्छा लगाएं

wcf - How to setup spring.net dependency injection for a web service? -

I've got a wsdl file + several types of xsd type definition files - the service I need to code against My question is, how do I set up dependency injection, so far I need to prepare a fake service (called a stub or fake). Whenever it comes with the new service, can I add a service reference or web context and simply edit the spring.net config file to swap into the service in the consumer? Is this also possible? I found, specific to WCF, it is very good, but it starts reaching service code and it is injected dependency on the service side rather than the consumer side - in my case I have the highest URL Will get it, I have to swap it with fake local and go from there. In addition, the way I use the service, but the way the service was put together, there is only one way to depend on it? I mean, I should not pay any attention to this that as long as I get the URL for the WSDL, the technology was used to use this technique. Any hints given! Just create an interface t

php - What's your all-in-one web resource optimizer? -

I am working with SmartOptimizer : Reduce JS and CSS, CSS Data URI Use remove, remove headers and other attributes, () this works fine, but I do not know if there is a similar application with the same or best equipment (such as Google Closer, CSSCold, ..) < / P> If you are not sure whether the witch is better, then < P> YSlow ( ) will tell you where you can at least customize, though it will not solve your problems.

php - no value from $_POST -

No value is sent in the value $ _ POST ['addEdit'] , please Help please HTML code: & lt; Form name = 'frm' method = 'POST' verb = '' & gt; & Lt; Table cellpadding = "0" cellspacing = "0" range = "0" width = "100%" & gt; & Lt; Tr class = "heading" & gt; & Lt; Td style = "width: 5px;" & Gt; & Lt; Input type = "checkbox" name = 'check_all' onClick = 'checkAll ();' / & Gt; & Lt; / TD & gt; & Lt; Td square = "head" & gt; App name & lt; / Td> . . & Lt ;? Php // some embeded php (here is addEdit component). Echo '& lt; Td id = "row_ '. $ Line [' id '].' 'Style =" display: none; "& Gt; & lt; input type =" text "name =" addEdit "id =" addEdit_row _ ' $ Line ['id']. "" Value = "" size = &

ios - How can I get color space from a CGContext? -

I want to create a bitmap CGContext with the same color space as an existing CGContext . How do I get the location of UIColor to a CGContext You need to call CGBitmapContextGetColorSpace to get the color space of the given bitmap reference, but if you are talking about a general reference then the question is not properly defined Because CGContexts has two color spaces: stroke and fill.

java - Why are modifiers allowed for a package when they don't seem to do anything? -

I can declare the following package with modifier but it does not show any effect on anything: Private public protected static final package com.stackoverflow.mangodrunk // ... whatever whatever {// ...} So my question is, A modifier adds anything before the package annotation and why it will be allowed by the compiler? Update : There seems to be a problem with the compiler bundled with Eclipse because others have mentioned that it is a compiler error using Sun's JDK is. They are not what compiler are you using? $ javac com / stackoverflow / mangodrunk / whatever.java com / stackoverflow / mangodrunk / whatever.java: 1: class, interface, or enum required private public protected static final package com.stackoverflow Mangodrunk; ^ 1 error

user experience - Smallest recommended button size -

Is recommended the smallest button size recommended ? "Recommended" I mean by some documentation: Apple HCI Guideline Windows UX Guidelines Or Some ISO standards .. I mean by "normal" conditions: Desktop / Office usage Standard 96dpi monitor resolution The standard "theme" (no large fonts / icons) Mouse / touchpad for pointing (no touchscreen No) non-disabled or Visually users Recommend: "Click target Make at least 16x16 pixels so that they can easily be clicked by any input device. For the touch, the minimum minimum size of the control size is 23x23 pixels (13x13 DLUs). & nbsp; & nbsp; & Nbsp; Where "A Dialogue Unit (DLU) is a tool-independent metric where a horizontal dialogue unit is equal to one-four. Tman width of character font and a vertical dialog unit is equal to one-Atvand character height for the current font. Since the characters are broadly roughly twice as high, a horizontal DL

WPF/BackgroundWorker and BitmapSource problem -

I am the first with WPF and am trying to get a home project to become familiar with technology. I have a simple form where the user selects an image file, then I will display the EXIF ​​data with the thumbnail of the image. I'm working fine, but when I get a raw image file (~ 9 MB) If I select, then there may be a slight delay in the loading of thumb, so I think I can use the background player to decode the image and the user can see the EXIF ​​data, then when the image is decoded , It is displayed. > BitmapSource object has been declared in the Background Workers Druver method: worker.DoWork + = delegate (Objects, Duplicate Avent ARG) {String filePath = args.Argument As a string; Bitmapcodecoder BMPDcoder = BitMapDiCoder Create (new yuri (bitpip), bitmapcreate option. Non, bitmap options. Bitmapsource bmpSource = bmpDecoder.Frames [0]; BmpSource.Freeze (); // As suggested by Paul Bates. Result = BMPSOS; }; The problem I am running is when I try to set the source of

c - Is sending data via UDP sockets on the same machine reliable? -

If I use UDP sockets for interprocess communication, can I expect that all sending data is the same In order to be obtained from the second process? I know that this is not true for the UDP in general. No, I have been cut before me. You may wonder how this might fail, but You will take part in issues of buffers filling pending packets, and as a result the packet will be removed how the network subsystem packet drop is implementation-dependent and is not specified anywhere.

c++ - Windows drag and drop problem with console app -

I have a program that creates a file and writes it using offsm. I need the program to be able to parse the command line parameters later. But for some reason, this does not create a file when I drag and drop a file on the compile executable, even if the program does not include any command-line parameters. If executable is run normally, then it works, so I'm completely left confused. Here's the source: #include & lt; Iostream & gt; # Include & lt; Fstream & gt; using namespace std; Int main () {ofstream outfile; Outfile.open ("test.txt"); If (outfile.is_open ()) {outfile & lt; & Lt; "testing"; Outfile.close (); } And cout & lt; & Lt; "unable to open file"; Return 0; } Do anyone have any ideas? I appreciate any help. You are not using command line arguments at all. To look like this, repeat your main method: int main (int argc, char ** argv) {if (argc! = 2) {cout & lt; & Lt; "Usage: blah

Update database when file is added -

Being a server (ISH), I have to keep track of the files in some folders with a web-interface. I have already done most programming, basically parsing folders through each weight (not in the most customized way), as well as its advantages). But now, due to keeping the files in a database, they are too much. So - how can I do this in the best way. The way in which I thought that a script is running and adding a database entry whenever I was listening to a file I was listening to a file was an easy way to accomplish this? Or will you solve this problem completely in different cases? EDIT: OK Sorry. The operating system is a bit difficult - not really. But at the moment it's written on an OS X machine but eventually it's running on a Linux, so I should be completely uninformed. Do you know anyone else to say OS X. One way to do this is to use the Windows service (which runs all the time) which has a file waiter component (I think it's called it). When you find a

javascript - Wait for a particular image to load completely using jquery? -

I am using the code below to load the images but I can load the image load completely Before, I want to show some kind of loading of GIF. $ ('# addimage'). Attr ('src', src [i]); $ ('# Addimage') Show (). Since I am using it in an animated mediaboxes, it does not look good to load images in blocks, as long as the image is loading, I want to change it by loading loading GIF . $ ("# addimage") ) .load (function () {$ (this) .show ();}); Edit: To show an image until other loads are slightly more complex but not entirely possible. See.

c# - Practices for hiding the executable code of compiled applications -

This is a standard practice, which dissociation and reverse engineering .net assemblies. I want to release some plug-ins assemblies that will add to existing applications, but I do not want them to be used by others How do I hide the source of these assemblies? Can i It is impossible to achieve 100% security in theoretical manner unless you control the target hardware. If the CPU is able to execute it, given enough time and knowledge, then a person can read it too. It's not limited to C # (though it's usually done in easy managed languages), you can use offfacescuts such as Dotfusceter or Xnodod so that the code is difficult to understand. If you are really worried, you should go to a server-based application.

How to display URL parameters in PHP script? -

I want to redirect my browser to a PHP page, such that when the page loads, Current URL will display substrings For example, suppose I have a page called substring.php. My browser forwards me to: Is it possible to write some PHP code, which will display the user, "123456"? If so, how can someone do this to me? Thank you! & lt; Php echo $ _GET ['oauth_token']; ? & Gt;

sitemap - How to renew Google's information about my site -

I have changed the structure of my site I have changed a sitemap file on googleWebmasters. But Google still gives me old information on search old links How can I solve this problem? I mean, how to show Google new information from the site? When did you make this change? It takes some time until Google indexes your site! If you have already submitted a new sitemap, you can not do anything else just wait and see because your page is being re-evaluated.

iphone - Why can I not receive touch events within my custom UIScrollView subclass? -

I have a UIIL view with the UIM view. I have uiscrollview subclass, but I can not get touch to touch work is not said. What should I do to call Iuitouch? What's wrong? .h #import & lt; UIKit / UIKit.h & gt; @ Interface myScrollView: UIScrollView {} @end .m #import "myScrollView.h" @implementation myScrollView - (zero) touches the brinjal: (NSSet *) touches the event: (UIEvent *) event {UITouch * touch = [[Event All Tables] Any Object]; CGPoint Location = [Touch Location Invoice: touch.view]; If (touch.view.tag> 0) {touch.view.center = location; } NSLog (@ "tag =% @", [NSString stringWithFormat: @ "% i", touch.view.tag]); With the 2.0+ compiler, everything works as expected, but now I have the 3.0+ compiler to use, my UISCLoglance no longer receives touch events. I got an answer to the problem here: Originally, this capability in Apes removed 3.0 2.2.1 In and earlier, it was possible to prevent UIScrollView from scro

ruby - Rails: Split and wrap each character in a string? -

I have something like this: & lt;% = @ votes% & gt; ; Outputs just like a string: 123 Is it easy to wrap each letter Some HTML with the helpful way? & lt; Span class = "outerclass" & gt; & Lt; Span class = "innerclass" & gt; 1 & lt; / Span & gt; & Lt; / Span & gt; & Lt; Span class = "outerclass" & gt; & Lt; Span class = "innerclass" & gt; 2 & lt; / Span & gt; & Lt; / Span & gt; & Lt; Span class = "outerclass" & gt; & Lt; Span class = "innerclass" & gt; 3 & lt; / Span & gt; & Lt; / Span & gt; You can make such a helper: def wrap_each_char (string, and block) string.each_char.map (& block). Add End Then use it like this (erb): <% - @votes = "123" -%> ; & Lt;% - wrap_each_char (@votes). C | -% & gt; & Lt; Span class = "external" & gt; & Lt; Span

Face morph and recognition -

I have two requirements: Members of a social network face the other member's face Choose an average face of them The faces of other members are found in the website, which look similar to the face appearing in the order of equality. Is there any script that can do this? I think the item is 1 but they do not license their tech Please help already, thank you very much. First of all, the characteristics of the face need to be aligned: you get the active presence model to achieve that one To see. Once you align the faces, you can get the meanings, then you can compare the face using PCA to get the closest match.

Is it too early for .net 4 beta 2 migration -

Just wondering whether it is too early to migrate to .NET FY Beta. We have a WPF app that uses graphics to flash images, shapes and even faster in it Just wondering how others have experienced Thanks N This depends on the actual audience for your app - and your timecale. I do not think you should have your software under 4.0b2, but it seems appropriate to go through verification of porting and make it valid for it to continue. For example, if you want to add some nat 4-specific features, then it's OK to develop them now. I believe the release candidate should be shipping soon, so you want to stop May to avoid another uninstall / install cycle for this, but NET 4b2 and VS2010b2 are very stable IMEs. At this time the structure gives me VS. Looks more stable than, but this is always the case. One big question is, do you want your app to start with NET 4? Run your app? Consumers do not have this (but if they are running 7 windows then 3.5 may be), but it may be ready t

design patterns - Why are they called the "gang of four"? -

The author of the Dragon Book is called gof, why is it so? Are there any type of clicks that are always hanging together? itemprop = "text"> Goef refers to the author of "design pattern" to gamma, helm, johnson and willis. Four of them were. This is a parody related to Mao.

segmentation fault - how to parse URLs in c using sscanf()? -

This is my C code that reads a list of URLs from a file, and attempts to isolate different parts of the URL Does. . It's just parsing roughly, I'm not worried about special cases .. I think there is something wrong with the sscanf () statement, when I run it, I get a "partition fault" and moreover , The full URL is being assigned to the "Prot" string .. Anybody can help you understand the problem .. Please, it is necessary. # include & lt; Stdio.h & gt; #to & lt include, string.h & gt; #to & lt include, stdlib.h & gt; # BAG_SIZE defines 14-character bag [117] [30]; Zero initbag () {strcpy (bag [0], "account"); Strcpy (bag [1], "audit"); Strcpy (bag [2], "advertising"); Strcpy (bag [3], "advertising"); Strcpy (bag [4], "marketing"); Strcpy (bag [5], "application"); Strcpy (bag [6], "banking"); Strcpy (bag [7], "barter"); Strcpy (bag [8], "busine

c++ - Sorting digits of an integer -

You are given an integer 51234 (say) to sort a digit of numbers The need to output will be 12345 . How to do this without using the array? You can remove each digit using a loop and % 10 You can. From 0 to 9, the external loop can be tested if the points are present. If it exists, then print it. In pseudo code: n = for integer // 51234 = 0 to 9 temp = n repeat if floating% 10 = points again print digit / 0 = Edit: Edit: This test shows in GCC that it handles zero and repeated digits: $ Include cat sortdigits.c # & lt; Stdio.h & gt; Main () {int n, number, floating; N = 43042025; If (temp% 10 == points) for printf ("% d", for digits) (for points = 0; numerals; 9; numeral ++) (temp = n; temp> 0; temp / = 10); Printf ("\ n"); } $ ./sortdigits 00223445

Javascript, with dynamic form Action, does not submit on (true) of confirm dialog -

I do not have a simple (no fancy frameworks) javascript, which asks a user a question when presenting a form element . If the answer is correct, then the script determines the form of a fixed URL (which contains some server-side logic inside it) and calls the invitation method of that form. Or at least, in principle, what it means! But it is not .. It just does not do anything, it appears to be presenting the form, but if this happens, then the server will have to ensure the server-side logic (which is set as the value of the action property) in the second file. That the user has been taken elsewhere. My form here: & lt; Form name = 'myForm' id = 'myForm' method = 'post' on submit = 'annoyTheUser (this);' & Gt; Here is my javascript function: function troubles (form) {if (confirm ("blah?")) {TheForm.action = ' Savequestion .asp '; TheForm.submit (); }} Your JS should appear: < Code> function troubles (f

asp.net - Showing a DataPager for a ListView only when there are at least 30 records -

I am using listview and datapager controls. In my list view, I have estimated 30 records for thirty records to show more often, then paging arrives, where the rest suspension is shown. Problem: When I have only 5 records, my paging is shown ( the last 1 next ), though the link buttons are disabled for paging. If I do not exceed the third record I do not want to show paging Paging should be shown only when one page is more than the records shown, I do not want a ping option thanks "post-text" itemprop = "text"> You set a FrontPage property to false on a NextPreviousPagerField in a DataPager control Can hide objects. You can also hide Personal Buttons (First Page, Previous Page, Next Page, and Last-Page Button) by setting the ShowFirstPageButton, ShowPreviousPageButton, ShowNextPageButton, and ShowLastPageButton properties false. Good luck try it out;) This will probably be (results & lt; 30) {DataPager1.Visible = false; }

javascript - Stop reload when using window.location -

On clicking a button, I am changing window.location.href , that is, I am adding a The query string parameter can be refreshed by this page (as I am changing window.location.href ). I want to know that it is possible to refresh this page and add a query string to the URL? no You can change #hashstring , but the query string can be reloaded.

c# - Why isnt Properties.Settings.Default being saved? -

I wrote to test quickly Why is my settings not being saved? For the first time I have 3 (old) / 3 (current) elements to run it. Second time I get 3 (old) / 5 (current), 5 times for the third time (old) / 5 (current). When I close the app, the settings completely disappear. Its 3 again when i run it I did not make any changes to the app. Why not saving my settings Private Zero Button 2_Click (Object Sender, EventArgs e) {MyApp.Properties.Settings.Default.Reload (); Var saveDataold = MyApp.Properties.Settings.Default.Context; Var saveData = MyApp.Properties.Settings.Default.Context; SaveData ["user"] = textbox1.Text; SaveData ["pass"] = textbox2.Text; MyApp.Properties.Settings.Default.Save (); Instead of putting your data in context, you should use highlighted properties: var saveData = MyApp.Properties.Settings.Default; SaveData.user = textBox1.Text; SaveData.pass = textbox2.Text; The reference provides relevant information that the provider c

iphone - how to convert the nsstring value of text into CLLocationCoordinate2D in objective-c for google map -

I want to give the user the option to provide a location name, which he wants to search for from the iPhone in Google Maps. When the user gave the name of the place which should be the special map. Now I am doing this by fixing the value of coordinating its object latitude and longitude. CLLocationCoordinate2D location = mapView.userLocation.coordinate; Location.latitude = 19.14; Location.longitude = 73.10; Is the value of this coordinate in text and it is converted into the value of CLLocationCoordinate2D? I am not completely clear on your question, but if you NSString To change the CLLocationCoordinate2D you can use the following: {[self useLocationString: @ "19.14,73.10"]; } - (zero) useLocationString: (NSString *) loc {// place object that we want to start based on the string CLLocationCoordinate2D location; // Split the string by commas NSArray * locationArray = [loc componentsSeparatedByString: @ ","]; // Set our latitude and longitude