Posts

Showing posts from May, 2011

scripting - How to debug an AWK script -

What are the tips for debugging any ANK script? To print back values ​​of the variable by using a print statement in your code / values ​​and Print on so much. If you are using, you can use the -w dump-variable [= file] option to dump the variable in a file for debugging. In addition, the option -W Lint [= value] may be of interest see the documentation for more. Other versions of AWK, such as pgawk provides profiling. sed / awk book on debugging for your reference.

PHP image color analysis with transparency -

I am currently working on an application for which many images need to be analyzed and find out They are close to what color. So I got a code snippet that actually does: function analysis image coils ($ im, $ xcount = 3, $ yCount = 3) { // get dimension image for $ imWidth = imagesx ($ im); $ ImHeight = Images ($ IM); // Find the dimensions of blocks that we are going to make $ blocks = quart ($ imWidth / $ xCount); $ Blockhit = round ($ imHeight / $ yCount); // Now get image color ... ($ x = 0; $ x & lt; $ xcount; $ x ++) {// X-axis for cycle ($ y = 0; $ y & lt ; $ YCount; $ y ++) {// cycling via y-axis // This is the starting x and y number that will make the block $ blockStartX = ($ x * $ blockWidth); $ BlockStartY = ($ y * $ blockHeight); // Create the image we'll use for block $ block = imagecreatetruecolor (1, 1); // We will put the section of the image that we want to get a color in the block imagecuperatespled ($ block, $ im, 0, 0, $ blockStartX, $ blockSta

objective c - With Cocoa how do i check that given file is owned by current user? -

How do I check that this file is owned by the current user while viewing a file path? Currently I have been able to get it: [[NSFileManager defaultManager] attributesOfItemAtPath: filePath error: outError] fileOwnerAccountID]; Return NSNumber *. But how can I get an existing user account id to compare it with, it can not be for Google. Apart from this, all this looks messy, there is no better way to do this, is not it? You can get the current user's ID with Getuid (). The reason is that you want that there is no single-call method of obtaining information that it is unusual for a program that the user is the owner of the file; OS X, like Unix in general, is more about permissions than ownership, so usually you are using calls like WRitableFileAtPath: or isDeletableFileAtPath:

javascript - subclass.prototype = new superclass() vs. subclass = new superclass() -

मैं जावास्क्रिप्ट में object = new class () का उपयोग कर subclasses instantiating गया है < / Code> लेकिन मुझे लगता है कि कुछ लोगों का प्रयोग करने का इन्स्तांत है object.prototype = new class () प्रश्न: क्या है अंतर? मुझे ऐसा लगता है कि उत्तरार्द्ध विरासत श्रृंखला का सम्मान कर रहा है क्योंकि अगर वर्ग () में " this.variable = x " विवरण का एक गुच्छा है, और ऑब्जेक्ट कुछ है वर्ग की एक आवृत्ति के बजाय इसे से वारिस करना चाहते हैं, तो आप सटीक रूप से ऑब्जेक्ट के प्रोटोटाइप को ऑब्जेक्ट के मुकाबले पूर्व संस्करण के रूप में निर्दिष्ट कर रहे हैं। तो क्या यह वास्तव में ऐसा है? वस्तु = नया वर्ग () | बनाम | | हालांकि, कार्यात्मक रूप से कार्यक्रम में दोनों समान हैं? साइड प्रश्न: इसके अलावा मैं ' जैसा कि नया ऑपरेटर वास्तव में करता है, उस रूप में थोड़ा अस्पष्ट नहीं है I ऐसा लगता है कि मुझे कुछ करने के लिए बस एक खाली वस्तु बनाने और इसे proto संपत्ति असाइन करना है? अंतर यह है कि जब आप करते हैं: var subclass = नया सुपरक्लस (); आप superclass का ए

operating system - When they say OS requires modification, what do they mean in Virtualization? -

I'm reading an article about a virtual machine monitor Xen. They say that to work as a guest OS at the top of Xen, an operating system requires some modifications. Now, for an OS like Linux, I can understand what "modification" can mean. But in the case of OS such as Windows XP, what does that mean? I mean, XP is off proprietary OS right? Zen was originally a university project working with a researcher (or security of infrastructure) As a government agency), you can get Windows Sources from Microsoft, you do not have permission to distribute your version of Windows. This is what they did: They had a source code of Windows XP and then they ported XX into XAd, just to show that if Microsoft had ever officially supported Xen For, this would be possible.

c# - How to Duplicate Rocket Dock functionality -

I recently added and loved it in my computer. It limits the dock functionality from OS X. I want to add this docking / hiding feature to one of my C # programs. How do I show the ability to hide and show the dock while rolling in a certain place on my desk top? I think it can be very difficult to find the right direction all I really am looking for. Right now I do not know what to see even. I would say, in fact, whatever codepacks already has, it is ... Not sure how good it is.

ActiveMQ publisher and subscriber in multiple languanges(C++ Java) -

I want to use ActiveMQ as a process broker, which has two processes between the C ++ component and the Java process Communicates in. for example. C ++ is a component publisher and a Java component client (there may be many members) I look at the ActiveMQ website and mention it in Tools OpenWire and ActiveMQ-CPP. However, all examples on the website are using the same language for both the manufacturer and the consumer. My questions are: 1. Can the MQ of active users work in different languages? 2. In various processes? Lily = "text"> OpenWire is a protocol and therefore Theoretically can be applied anywhere, but this does not mean that there is complete implementation for every language. The fine print of the C ++ client says: "According to version 2.0, Active MQ-CPP supports OpenWire V2 protocol with some exceptions. Object message - Can not vest in an ObjectMessage in C ++, so if your application subscribes to a queue or topic in which the objec

google app engine - It's appropriate use AppEngine for serve only static pages? -

In order to develop simple static pages I have received some job offers (with only one contact form) and have been pleased to suggest me Appengin for hosting, however, is this an apppriet? I do not want to see Epengine in new GOCTs. I think so. It's free after all, worth a shot, you can use anything like a drogrup () to make it super easy to manage.

php - How do I echo selected in a while loop? -

There are a blog and question sections on my site, which contain categories when a user creates a question or a blog, a drop down The menu that allows you to choose your category. When you edit one of these, you have the option to change your category through the dropdown. When you edit a blog, the category drop down is a standard style dropdown, and I have the & lt; Option value = "1" & lt; Php if ($ blog- & gt; category == "1") {echo "selected";}? & Gt; & Gt; Art & Literature & lt; / Option & gt; I'm picking up to show the pre-selected category where another developer has been left out, so for the question that has been down in the loop. Being a newbie I do not know how to "selectively select" in the loop to pull the last chosen cat. Here is the loop & lt; Select name = "category" & gt; & Lt; Option value = "zero" & gt; Select category & lt; / Options & gt;

java - Better to use TreeMap or order by? -

What will be a better programming practice? Is the client better to use commands in SQL or results for things like dropdown in drop vs. hasp? If you are thinking about performance, then better results in the end of the database Is solved, especially when the columns you sorted are indexed. The performance difference for small data sets may not be significant, but I think that the order of the SQL command will be a simple approach in most cases. Anyway you still have to use LinkedHashMap instead of plain Hasham if you should store previously pre-sorted data before using it in Maps. Since LinkedHashMap will place the data in an inclusion order, the hashmap will not be there. If you want the data to be automatically sorted because it is placed in the map, then you will need a treemark or other sorted map implementation.

css - Can non styled HTML elements make any type of problem in document flow or any cross browser problem? -

Should we write CSS in each element or just to style those elements? Like for example & lt; Div id = "first" & gt; & Lt; Span class = "one" & gt; & Lt; A href = "#" & gt; Content text & lt; / A & gt; & Lt; / Span & gt; & Lt; / Div & gt; & Lt; Div id = "second" & gt; & Lt; Span class = "two" & gt; & Lt; A href = "#" & gt; Content text & lt; / A & gt; & Lt; / Span & gt; & Lt; / Div & gt; & Lt; Div id = "third" & gt; & Lt; Span class = "three" & gt; & Lt; A href = "#" & gt; Content text & lt; / A & gt; & Lt; / Span & gt; & Lt; / Div & gt; I just want to show link text with one color. Can I write CSS for all elements? If I only write CSS (....) and nothing defines for # and. If you only need to apply the style to the link, you only have to t

c# - Functions should start with "Get"? -

I am trying to see C # coding standards to make my code more beautiful and standard, and I have There is a question: According to the C # coding standards, should the work (methods which are not viable) start with "gate"? For example: " GetSongOrder () ", " GetNextLine () " etc? Thank you. There are two cases: If without the side effects in the routine code, Get the value, I recommend using a property recipient, and leaving the name "GO": public song order song order {get; This.songOrder; } // i.e.: an enum} If the required processing is required, then a method is appropriate with the name "Receive ...". This suggests that there may be side-effects to call this method, such as additional processing, or changes in some state: public string GetNextLine () {string line = this.stream. ReadLine (); // This can be a long lasting task, especially if this disk is using IO / etc // do other work? Return line; }

C# hashing and looking up images -

I am currently at the point where I can convert bitmap to byte arrays Suppose I have 26 images in one- With J, 26 byte arrays have been represented. Looking at an image, I want to use the byte array to see the correct letter instead of 26 comparison. Are there some ways to create byte arrays to prepare a hash code, which can be stored in the configuration file? Alternatively, if there is a better (faster) approach than images of swans (assuming I have no access to underlying text representation) I would like to know a lot about them. For clarification purposes, assume that I have "a.bmp", "b.bmp" etc. Now I have an unknown image on the screen. I would have thought that image palm and a single lookup display would be the fastest way to identify positive. It should be faster than 26 different comparisons. If this assumption is wrong, then I appreciate the outline of optimal methodology. Note: This is not the classic OCR problem (handwriting recognition etc.) b

php - How to select multiple fields in the same row? (MySQL) -

I'm about to use MySQL for matching results for a survey. Now my question is, if I had a host of survey questions, a table of survey options, and a host of users in response to those survey questions, I would ask that all of the survey How do I choose a survey question with options? question table question_id (int) question (text) option table Choice_id (int) option_id (int) option_text (varchar) answer table answer_id (int) question_id (int) choice_id (int) In the same question, what should I do to get survey questions with all the options of that survey (known or unknown amount)? (If possible, do math too, in my second question, within the same question) I am not so advanced with MySQL. Thanks Edit: Sorry, what I meant, I am trying to get a SELECT statement to choose the question, and All options in line with that question are all options. I select something like < question_id, question, choice_id, using option_text LEFT option by JOIN (qu

c# - ListView that imitates Windows Explorer -

मैं कैसे ListView बना सकता हूँ ListView को Windows Explorer में दाहिने तरफ़। जैसे मैं ListView में आइकन कैसे प्राप्त कर सकता हूं और तीरों को प्राप्त कर सकता हूं? आप Google छवि खोज का उपयोग करके आइकन पा सकते हैं। सूची दृश्य बनाने के लिए, आप कुछ ऐसा कर सकते हैं जैसे XAML: & lt; ग्रिड & gt; & Lt; ListView ItemsSource = "{बाध्यकारी सूची दृश्यसूत्र}" & gt; & LT; ListView.View & gt; & LT; GridView & gt; & Lt; GridViewColumn Width = "25" & gt; & LT; GridViewColumn.CellTemplate & gt; & LT; DataTemplate & gt; & Lt; छवि स्रोत = "{बाध्यकारी चिह्न}" / & gt; & Lt; / DataTemplate & gt; & LT; /GridViewColumn.CellTemplate> & Lt; / GridViewColumn & gt; & Lt; GridViewColumn हेडर = "नाम" DisplayMemberBinding = "{बाध्यकारी फ़ाइलनाम}" चौड़ाई = "250" / & gt; & Lt; GridViewColumn हेडर = "दिनांक संशोधित" DisplayMemberBinding

php - How to configure CodeIgniter to automatically detect development machine and real machine? -

I am developing from my Windows laptop but need to test my development on my shared Linux hosting. I have the usual $ application_path = "application"; put together at the bottom of the line. $ env ['laptop'] ['ip'] = '127.0.0.1'; $ Env ['laptop'] ['host'] = 'mat-window 7'; $ Env ['laptop'] ['path'] = 'private'; $ env ['mattpotts'] [' ip '] = '12 .34.56.78'; $ Env ['mattpotts'] ['host'] = 'my.webhost.com'; $ Env ['mattpotts'] ['path'] = '../private / blah'; $ ip = $ _SERVER ['SERVER_ADDR']; $ Host = php_uname ('n'); Foreign exchange ($ en $ as $ E) if ($ E ['ip'] == $ ip & amp; $ e ['host'] == $ host) $ application_folder = $ e ['path']; Not set ($ env); If (! Isset ($ application_folder) dies) ('Application folder is not set'); ... which works fine to set the a

easy layout for graphic border in css? how to stop misaligned border graphics? -

CSS is not one of my strongest points! I'm trying to find a tutorial or something that will give me a premade div and css system if I have repeated head, left, bottom and right graphic, I think I'm just closing so close , But then something bad happens. I do not want to use the new CSS 3 implementation. Edit: To be ambiguous, I just want to use an image in the form of a border. I have to repeat the graphics with the teeth, top, bottom, bottom right, and left and right and up and down. There is a graphic I thought the HTML tables were excluded, so I stayed away from them, but I still have problems aligning boundaries correctly. I have a slight difference in some way, and / or I can not force the boundary to repeat every x pixels so that the corner graphics line up with top / bottom and left / right graphics. EDIT: I am very close, but still the ugly problems with the repeating graphic have not started or ended in the right place, and the background inside has a solid col

Google Calendar API: can i retrieve entries changed/created after a specified date? -

Can I retrieve entries created / changed after the specified date? Regardless of the date of the event - only according to "modified date". To wit. If I modify an old man also want to be able to retrieve it using a query (without its ID) "post-text" itemprop = "text"> I You have not tried it yourself, but as per the documentation, you see the standard data API query parameters Update-Min and Updated- : and: < P> I'm not sure that you can access the Google Calendar API by using a code library Hey, so I can not comment further.

ubuntu - SSH cannot authenticate to git@github.com -

Recently, I sign up for a free plan at Github.com. I follow their instructions to generate an SSB key to add to my account. However, when I try to ssh -v git@github.com , I get this error: debug1: accepts the server key: Pkalg ssh-rsa blen 277 Failure to sign agent using acuse key Debug1: Trying Private Key: /home/phuongnd08/.ssh/identity debug1: Trying Private Key: / home / phuongnd08 /.ssh/id_dsa debug1: no more authentication methods to try anymore Permission denied (publisher) When I got the error I am a strange thing, that .ssh / id_rsa was not tried, just tried .ssh / identity and .ssh / id_dsa. How can I fix this error? Thanks Check file permissions on your key if they are very generic then using this key Can be declined, make sure that you only have persasion (0700) for you.

addressbook - iPhone Address Book custom property -

I am developing an application that is similar to the iPhone's native contact book app. In addition to the original iPhone Address Book database I want to add property / field. Such as the network carrier of each contact (AT & T). How to access the database of the original address book from our app? Is it possible to do this? You can not add custom fields You can add notes fields to the data field, but any custom fields Addressbook can not be added to the individual category. You can expand the address book, but you will need to save some more data and the person has to link to the data you have saved. You can access the data from the address book by using the data.

.net - Client side validation of multiple radio buttons groups -

यह मेरा कोड है: & lt; html & gt; & Lt; शीर्ष & gt; & Lt; title & gt; स्कोरबोर्ड & lt; / title & gt; & LT; स्क्रिप्ट & gt; कार्य गणना () {var sum = 0; Var कुल = 0; (Var i = 0; i & lt; document.questions.group1.length; i ++) {यदि (document.questions.group1 [i]। चेक) {sum = parseInt (document.questions.group1 [i] .value) कुल = पार्सआईंट (कुल + योग);}} के लिए (var i = 0; i & lt; document.questions.group2.length; i ++) {यदि (document.questions.group2 [i]। चेक) {sum = parseInt ( Document.questions.group2 [i] .value) total = parseInt (कुल + योग);}} के लिए (var i = 0; i & lt; document.questions.group3.length; i ++) {if (document.questions.group3 [I]। चेक) {sum = parseInt (document.questions.group3 [i] .value) कुल = parseInt (कुल + योग);}} अलर्ट (कुल)} & lt; / script & gt; & Lt; / head & gt; & LT; बॉडी & gt; & Lt; फ़ॉर्म का नाम = "प्रश्न" & gt; एक: & lt; br & gt; उत्तर 1: & lt; इनपुट

c++ - OpenGL: GL_LINE_SMOOTH not supported on all cards; wont even draw the lines, unless -

सबसे पहले, इस कोड का उद्देश्य क्या है? glHint (GL_LINE_SMOOTH_HINT, GL_NICEST ); मैं वहां GL_DONT_CARE डाल सकता हूं लेकिन यह मेरी रेखाएं तैयार नहीं करता, जब तक मैं glDisable (GL_LINE_SMOOTH) का उपयोग नहीं करता तो मुझे यह पूछने पर विचार करना चाहिए कि किसी तंत्र में कुछ निर्मित तंत्र बनाने के लिए उसे लाइनें खींचने दें, भले ही चिकनी रेखाएं समर्थित न हो जाएं (तो यह उन्हें एंटीलेसियोज़ के बिना खींचना ...) या क्या मुझे इसके लिए खुद का कार्य करना पड़ता है और जांचना है कि क्या चिकनी लाइनें आदि समर्थित हैं ... और हर बार जब मैं चिकनी रेखाएं बनाना चाहता हूं, तो मुझे इस फ़ंक्शन को कॉल करने की ज़रूरत है जो यह जांचती है कि इसकी समर्थित है या नहीं? अरग। संपादित करें: मेरे दूसरे कार्ड पर लाइनें चिकनी होती हैं, मेरे दूसरे कार्ड पर वे भी दिखाई नहीं देते हैं, जब तक कि मैं चिकनी लाइनों को अक्षम नहीं करता तो यही समस्या है, ग्लिनबल नहीं है (जीएल_BLEND) glHint के रूप में नाम का अर्थ है ड्राइवर को एक संकेत । यह कुछ हासिल करने की आवश्यकता नहीं है। glHint का वास्तविक क्रियान्वय

How can I merge two images in PHP without GD? -

How can I merge two images in PHP without GD "post-text" itemprop = "text"> PHP Built to ask does not support. Another command-line script / program will need to be executed Install one of several image manipulation libraries And Perhaps find a third party API that you can send a request and get answers to the merged images? As Emil's suggestion (requires to be installed)

iphone - UIView subclass won't autoresize -

I am looking for background information about resizing, but I can not find much. I know that I need to set the Autorisizasubues and Autoricing Mask on the subview. I did this, and my UIImageViews have to resize properly, but my custom UIView subclass is not. Code for UIImageView: UIImageView * newX = [[[UIImageView alloc] initWithImage: dot] autorelease]; [NewX Setautorizing Mask: UIViewAutoresizingFlexibleWidth]; [NewX Setframe: CGRactMake (0, 0, Self W. Bounds Skies, Wide, 1)]; [Self.view addSubview: newX]; Code for the custom UIView subclass: trace = [[traceview light] initWithFrame: self.view.bounds]; [Trace setautorizingmask: (UIViewAutoresizingFlexibleBottomMargin | UIViewAutoresizingFlexibleRightMargin)]; [Self.view addSubview: trace]; What can I tell, the scene revolves around as expected, but its size is not changing now I can not see it below, and it does not fill the screen on the right To change the work properly, do anything in the UIVUE sub-classro

activerecord - Rails: Getting an array of values from a model for a time period -

Therefore, I have two models, users and things. User's_meas: things ended thi is_to: end of user talk date associated with it is a user zero one day Things can add, and 4 next, and 7 days after that, then zero for a few days. You get this idea. Now, what I want to achieve is the array of values ​​for the last 7 days. How many things does the user add? I want to make sure that it contains zero for those days, where nothing was added. For example, this can return [0, 4, 7, 0, 0, 11, 2] . This is another example which I'm sure it is quite easy to do, but my google-fu is failing me: -) Thanks! Rob suggestion will result in 7 questions How to do this in a query: things_by_date = user.things.count (: group = & gt; 'DATE (created_at)' ,: conditions = & gt; ; ['DATE (created_at) & gt ;?', 7.days.ago]) (1..7) .collect {| D | Things_by_date [d.days.ago.to_date.to_s] || 0}

Setting width as a percentage using jQuery -

How can I determine the width of a div as a percentage by using jQuery? Function usage: $ ('div # somediv' ) Width ('70% '); will be turned on: & lt; Div id = "somediv" /> In: & lt; Div id = "somediv" style = "width: 70%;" />

Linq to Entities Multiple left outer Joins in VB.NET -

I am using linux for organizations that do not allow the default effects method. I should know how to use the units in VB.net to link to the following multiple left outer joins with select * from the capital reserve query to the left to connect external capital to the queue Crq cr.ID = crq.CapitalRequestID on the left Crc.vendorid = lv.id External La_Windler LV, where cr.id = '84D6A08D-5D59-47F9-BF0C-F41F9F5A6FF9' < / Div>

apache - PHP Kohana CentOS 5 -

Trying to deploy Kohana based project in CentOS 5. PHP 5.3.1 is installed but still the following error is occurring. WARNING: preg_match () [function.preg-match]: compilation failed: this version of PCR offset PCR_UTF 8 support at 0 / usr / local / apache2 / htdocs / icarus / system / Core / utf8.php Fatal error on line 30: PCRE has not been compiled with UTF-8 support. See PCRE Pattern Modifiers for more information This app can not be run without UTF-8 support. I have been trying since the last 2 days, I upgraded my PHP from 5.1 to 5.3, but still getting / usr / local / apache2 / htdocs / Icarus / system / core / utf8.php The same error. According to me, the problem is that PPIR module of PPINA (2004) is CEP 2004. Below is the real line PCRE Library version 5.0 13-Sep-2004 Can someone tell me how to upgrade it or problem Solution wats Thank you. Perhaps the very last post gives you at least one starting point. I am not a drupe, but the most informative info

class - How can I access the contents of this PHP array? -

The files below are in PHP, I am trying to include a file that has an array in my class And then access the array. If I run print_r () on it, I get results, but if I try to access the array individually, then I do not get anything, can anyone help me? & lt ;? Php // config.class.php/ * example $ config = config :: getInstance (PATH_TO_CONFIG_FILE, FILE_TYPE); Echo $ config- & gt; Url; Echo $ config- & gt; exam; Echo $ config- & gt; Ip; * / Class configuration {private constant $ example = zero; Private $ option = array (); / ** * Retrieves PHP ARA file, JSON file, or IIi file and creates ARM * Full URL * @ PRAM $ filepath for the file path where the file is located, @ PRM $ is the type of file "ARRAY" JSON "" INI "* / Private Function __Composition ($ filepath, $ type = 'ARRAY') can be {switch ($ type) {case 'ARRAY': $ this- & gt; Option = $ filepath; break; Case 'INI': $ this-> Option = parse_ini_file ($ fi

c# - OwnerDraw ComboBox is not "styled" anymore -

I have created a custom combo box with DrawMode = OwnDrawVariable, all is well, except that the drop down menu in the dropdownlight mode Does not use it, that is, it looks like the old boxbox How can I use visual styles? I examined the visualization class, but I could not find anything there that could help me. Does this mean that ownership can not be dragged with proprietary combobox ??? I do not see anything in the 7.0 version of the SDK that allows that style to be drawn is. Combo Box Renderer does not care about class dropdown style at all. I think you're stuck.

optimization - What is the Fastest Way to Check for a Keyword in a List of Keywords in Delphi? -

I have a small list of keywords that I should really have done: Case 'Child' Myken word: (code for CHIL); 'HUSB': (code for HUSB); 'Wife': (code for wife); 'Sex': (code for sx); Other (code for everything); End; Unfortunately, the CASE statement can not be used for string. If I can directly use, for example: if MyKeyword = 'CHIL' then (code for CHIL) otherwise if MyKeyword = 'HUSB' Then (code for Huesby) and if the mickeyword = 'wif' then (the code for the wife) otherwise if the mikeen = 'sx' then (code for sx) other (code for all else); But I heard it is relatively incompetent. What I was doing instead: P: = pos ('' + + + '' + '', 'CHL Hesab vive sex'); P: of case 1 (code for CHIL); 6: (code for HUSB); 11: (code for wife); 17: (code for sex); Other (code for everything); End; This is definitely not the best programming style, but it works fine for me and there has

Vim: moving the cursor to a string in a source file without error messages if it doesn't exist -

When I have a file *. I use vi to open C, so I want to move the cursor to the "main" string. If there is no "main", then I want the cursor to go to "zero" without an error prompt. I have set up my .vimrc : autocmd BufRead * .c 1; / Main But it can not apply all of my requirements, especially if there is no "main" in some opened source file, "error can not be found in main Is .... "I want to remove what I am dealing with. I have also tried to add & lt; Silent & gt; or : silent that autocmd is on the line, but this is not what I want. Can somebody help me out? Thank you. Just use : Quiet! Messages, but errors too Anyway, I recommend you use BufReadPost ( run your command later will load a buffer) and do the search < As a whole word for code> main Then try this: : autocmd BufReadPost * .c: Quiet! 1; / \ & LT; Main \ & gt;

better xml in php -

Is there a way of output XML in PHP without the user, know that XML is to use PHP? Yes course. Use .htaccess to redirect an XML URI to a php file. Output XML through that file.

css - How do I create a fade in effect on a rotating background image using Jquery -

I am currently using a small jquery script to rotate through background images on a portfolio site. The portfolio site here is the code: counter = 1; Num_images = 9; Dir = "Image Director URL"; Function Rotate Header () {var background_img = 'url (' + dir + '/ image' + Counter + '. Gif)'; JQuery ('Category'). CSS ('background image', background_EMG); Counter ++; If (counter> number_image) counter = 1; } SetInterval ("rotateHeader ()", 5000); You can see it working here: What do I want to do in the picture and or the color fades and exits me It seems that I have to preload the images in order to do this and then add some type of fade property when the images are loaded. How do I do this? Something like this should Vir counter = 1, number_inces = 9, diamond = "image indicator URL"; Function Rotate Header () {var background_img = 'url (' + dir + '/ image' + Counter + '. Gif)&

jquery - add an element AFTER another? -

When I add an element inside an element it adds, I want to add an element after an element. For example. & lt; Div class = "link" & gt; & Lt; Input class = "link" type = "article" value = "scrial link" /> & lt; Br / & gt; & Lt; / Div & gt; How do I add an element after 'input', but before 'br'? $ ("input"). After ("& lt; p & gt; Hello "); You also have: $ (" Lt; / p & gt; ") .insertAfter (" Input "); will work just fine.

oracle - creating insert trigger error -

I am trying to create a trigger that sets the ID with a predefined sequence. Start with the increment of the frequency of 1 to 1; For each line, select seq_list_status.nextval at list_status: double by new.id; Create or change trig_list_status_insert trig_list trigger before the list. / << Code> I'm getting the error while creating the trigger Error starting with line 1 in the command: triggered triggers before intrapat on list_stats Select or change seq_list_status.nextval for each line: new.id Dual error on command line: 4 column: 4 error report: SQL error: ORA-04079: Invalid trigger explanation 04079. 00000 - "Invalid trigger explanation" * Reason: Build Trigger Statement Aman The * Action: Check the details for the correct syntax. I googled it but it seems all right what could be wrong? You can start end / p < Pre-> Create or Change Triggers Select list_status for each line before the list of triggers in seq_list_status.nextval:

java - Why is the access to a private field not forbidden? -

For my study at the university, I am compelling some ugly Java basics to work, such as work without encapsulation The main method is to do the same class etc. (I do not want to open a discussion on a Java style guide, I just want to clarify that I will not write anything outside the university) I have a behavior that I can not understand for myself: / P> public class person {// field personal interval age; Public static zero main (string [] args) {person foo1 = new person (); Foo1.age = 40; Println (foo1.age); }} Why does this piece of code compile and run without error? How is it possible that I can use private sector? Strange behavior due to being the main method in the same class? Because of the static method main class person Member and thus can access any private sector or methods in person . What are you worried about? Can a person write a class and then access those methods from their class? If you are going to be worried about anything, then be conce

php - Using Wordpress, can some one tell me the best way of sanitizing input? -

I am developing an application using Wordpress as a CMS. I have many input fields that need to be cleaned before storing it in the database. I want to stop SQL injection, javascript and PHP code injection and other harmful code. / P> Currently I am using my method to process the data, but I think it would be better to use those functions that use WP. I've looked into Wordpress, but I'm unsure at how much I should use these functions, and in what order nobody can tell that what's best to use WP functions is? Currently I am "sanitizing" my input by doing the following: Because the character with the accent (É, ô, æ, ø, a ) Is stored in a strange way in the database (although my table is set to ENGINE = InnoDB , DEFAULT CHARSET = utf8 and COLLATE = utf8_danish_ci ), I am now changing the intent field, which can be accented using the harness (). When creating the SQL string to input data, I use mysql_real_escape_string () . I do not th

Django: Is there a way to add a model instance method to the admin? -

I would like to add a method that my ticket model is called a process, so that I can click on a link in the list view In, and "model" for example "process" (do an API call behind the scenes). To clarify: class tickets (models.Model): Title = models.CharField (max_length = 255) def process (self): ... hardcore Processing action ... I need to add process () method to admin directly without using a different function You just need to provide a small method in your ModelAdmin class that points to the viewer calling your model methodLink lets add the method name modeladmin the list_display tuple will need to clearly define the scene here, and will point to the url.

iphone - How to log an long long value with NSLog? -

How can I do this? What is the format specifier? For example, I have: long long = = value value here NSLog (@ "% f", very long); // Definitely wrong ... section of string programming guide for cocoa There is a great bookmark for your browser ...; -)

c++ - Ok to provide constructor + trivial operators for behaviorless aggregates? -

यह एक अनुवर्ती प्रश्न है। निम्नलिखित पर विचार करें: स्ट्रेट डेटाबंडल {std :: string name; इंट उम्र; डेटाबंडल (): उम्र (0) {} डेटाबंडल (कॉन्स्ट स्ट्रोड :: स्ट्रिंग और नाम, इंट उम्र): नाम (नाम), उम्र (उम्र) {} शून्य स्वैप (डेटाबंडल & amp; rhs) {name.swap (rhs.name) ); Std :: swap (उम्र, rhs.age);} डेटाबंडल & amp; ऑपरेटर = (डेटाबंडल आरए) {स्वैप (आरएएस); वापसी * ​​यह;} बूल ऑपरेटर == (डेटाबंडल और आरएएस) कॉन्स्ट {रिटर्न (नाम == छः नाम) और amp; amp; (उम्र == rhs.age);} bool ऑपरेटर! = (डेटाबंडल और amp; rhs) const {return! (* यह == rhs);}} शासन की भावना में # 41 कोडिंग मानक (संबंधित देखें) # 41, क्या यह अब भी एक व्यवहार रहित कुल मिलाकर माना जाएगा? मुझे अधिकतर प्राप्तकर्ताओं / सेटर्स के साथ "गूंगा" कक्षाएं लिखना पसंद नहीं है, और यह केवल एक "बंडल-ओ-डेटा" का संकेत देने के लिए सभी सार्वजनिक संरचना का उपयोग करना होगा लेकिन उपरोक्त उदाहरण में, क्या मैं इस बिंदु पर हूं कि मुझे गेटर्स / सेटर्स के साथ एक डाटाबंडल वर्ग बनाना चाहिए? < P> नहीं, अभी तक गेटर्

.net - How to know if Email failed to reach its receivers -

After I am sending the email using the following utility class if receiver foo@foo.com does not exist or email to him Never reach for one reason or another, I want my application to be notified. This only works when smtp customer failed to connect to the SMTP server, I am an exception in this case; otherwise, the only way is by checking the client account to the email client To know if unsuccessful to reach. EmailUtil Public Stable Class {/// & lt; Summary & gt; /// string is empty or empty, if exception of fire goes /// & lt; / Summary & gt; /// & lt; Param name = "param" & gt; Absolute value & lt; / Param & gt; /// & lt; Param name = "paramName" & gt; The parameter name shown in the exception message & lt; / Param & gt; Private static void CheckStringParam (string parameter string ParamName) {if (String.IsNullOrEmpty (parameters)) (paramName String.Format ( "{0} can not be null or empty")) {throw n

C++ compilation problem -

How to forget too much C ++ code Anyway, here's the problem. I am trying to load the class defined in a CPP file. In the main function: ... ... #include "loader.h" ... ... model load_model ("TechnologyEnterpriseFacility_Day_Gregor / TechnologyEnterpriseFacility_Gregor.model" ); The header file looks like this: #ifndef LOADER_H_ #define LOADER_H_ class model {public: int texture []; Float corner [] [3]; Float triangle [] [13]; Model (const char *); // constructor}; #endif / * LOADER_H_ * / and here CPP file is: #include & lt; Iostream & gt; # Include & lt; Fstream & gt; #include & lt; String & gt; # Include & lt; Sstream & gt; #include & lt; Typeinfo & gt; # Include "loader.h" using the namespace std; Model :: model (const char * filename) {... ... When I compile the main function, I found the error message: Gcc -o glrender glrender.cpp -lglut /tmp/cc3sWIgb.o: `__static_initialization_

dojo datagrid custom sorting server side -

I am using dojo.data.ItemFileWriteStore shows a dojo datagrid (which works fine) and shows the grid properly is. I was using client side sorting and it was working fine too. But now I need to change the sorting and side of that server, for that I am trying to use on the headerklick event, which I am able to use to run the javascript function .. GridInfo = {store: myJsonStore, structure: myStructure onHeaderCellClick: getSortedTable}; Now here is the getSortedTable function that I want to use to make another call on the server - pass cell name, table name and sort order (acc or camp). function getSortedTable (e) {var selename = e.cell.name; Var tableName =? Var sortOrder =? // getSortedTablefromServer (cellName, sortOrder, tablename)} But I can name only the thihng cell name and able to exit the 'e' parameter. How can I retrieve or track the weather, whether it will be required by the user to be mounted or it is descending order. In addition - How will I sho

email - PHP Mailer - Attachments not sending properly -

When I send a message with a string attachment, then opens the string attachment which returns only 1 and in the email it Says - b1_5a1a74831dfa0ce86353d222b95078c6 Content-Type: Text / html; Name = "epile-invoice-2001. html" content-transfer-encoding: base 64 content-disposition: attachment; File name = "epile-invoice-2001. html" MQ == - B1_5 A1A 74831 DFFCTCCECADAM MB9080 CCA - Using this code to add this attachment Has been: $ Mail & gt; AddStringAttachment ($ invoicehtml, $ filename, 'base64', 'text / html'); See it here: Based on the fact that you are getting base 64 results, I think you need to decode the encoding method or decode 8-bit or $ invoicehtml before.

ruby on rails - Can delayed_jobs create delayed_jobs? -

I'm trying to figure out if I'm able to use delayed_job . Do I have the ability to add a job to the queue within the delayed_job methodology method is it possible? According to my tests, they can: model Machine : class machine & lt; ActiveRecord :: Base DF Delayed :: Job. Make! << Code> Model Secondary : class secondary < ActiveRecord :: Base DF logger.info display ("Inside Secondary Display Method (WIN)") Proof Create! End of End of Console : Delayed :: Job. Enquew machine. Create! This completes making an example of proof and log in "Secondary ...".

Automatically reload rails module -

I am developing a Ruby module that I include in my Rail app. I want to reload it automatically when it changes I have done wide goggles, and here are the various questions that we have discussed here, but they all seem to be wrong or wrong. How do I get an external module to reload the rail when I change? I tried to add its name to ActiveSupport :: Dependencies.unloadable_constants , but in the console I reload! After typing , I need that symbol without the name: error: undefined constant foo , even if I do another then 'foo_module' is required . Does anyone know the way to do this work? Note: Note the 'answer' in the comment here that it has never solved the problem for this module. There is also a dead link in the north, and in the end, which also does not solve it. How do I do this: Make sure FooModule is in the lib / foo_module.rb . Use need_dependency for your external library requirement in lib / foo_module.rb . Both of these steps

Using SHIFT+Arrows to select text in vim / MacVim -

One of the best features in MacVM is that it is possible to use normal OS commands to copy and paste text (I.e. Command + C and Command + V) This is especially good in situations when you have worked in another editor in a minute and your brain is not ready yet, write the real thing. However, there is one thing that needs to be thought of to my mind a little bit: this is the way to select the text. In non-Vi editors, I will use Shift + Arrow for it and it is trying to not work in MacVM. But on the other hand, I do not see that Shift + Arrow is being used for something else. Is it possible to remix keys to make it possible? (Ideally, the text will still be in entry mode even after it is selected; it will leave some extra key strokes.) manual: Text editor on Mac OS X lets the user capture the downward change to expand selection + movement Key as well, by selecting the current selection with that character, pressing the printable key McWim can emulate this kind of behavio

Post data from VBscript -

I have a function that needs to accept two parameters- Users and folders! I say that function to VBSScript, and send the parameter with the post method. This is the VBScript function code from which I want to post the data: subload document () Const HOST = "http://192.168.0.144/webservice13/service1.asmx/Lock?User = "& Amp; PC \ User & amp; "Folder =" & amp; Set c: \ foldername xmlhttp = CreateObject ("Microsoft.XMLHTTP") xmlhttp.open "POST", HOST xmlhttp.send "" end sub Now when I execute this function Trying to get an error message that I have a syntax error! I think the error is in this line: console = "http://192.168.0.144/webservice13/service1.asmx/Lock?User="& PC \ User & amp; "Folder =" & amp; C: \ foldername How can I solve it, how can I post two variables to this function? Thanks! I think you can not declare with variable parts with a constant variable. Change li

directory - Why does my Perl open() fail with "Unsuccessful open on filename containing newline"? -

I tried to put $ {date] [0]} in my directory 01252010 but @hits is not printed How can I open directories to get the desired output? Thank you. ERROR: The filename contained in the new line failed / /. Total line line 11, line 1 #! / Opt / Pearl / Bin / Pearl - W strict use; Open (FH, "/ home / daily / scripts / sms_hourly_stats / date.txt"); My @date = & lt; FH> Print date $ [0]; My $ path = "/home/daily/output/sms_hourly_stats/${date[0]}/TOTAL.txt"; Open (file, "$ path") or dead "Unable to open $ path: $!"; My @ hit = & lt; FILE & gt; Print @ hits; Close the FH; Close the file; You need to remove the lines that end the line. Use: chomp (my @date = & lt; FH>);

Exchange server - Save copy of outgoing email message in a public folder -

What I would like to achieve: Automatically copy one of all outgoing (sent) emails Save messages sent to a certain public folder on the name of some specific users (MyUserInPR@MyServer.com). Its purpose is a read-identifying view of all email messages sent to all other email. What would be the best way to get the above described in Microsoft Exchange 2003 and 2007? Thanks in advance! SP1 for Exchange 2007 and the biggest way is to use Exchange Web Services on my blog () An article that can help otherwise is a great place to ask for an exchange forum.

python - Django and SSL question -

I plan to sell products by charging credit card using SJR, it will be important for Django-powered website . And I'm very naïve for this. My initial demo setup plan was using Apache as a webserver and using mod_wsgi to communicate with the demo, I used to change the user account configuration pages I'm using the SSL protocol, the whole shopping sequence and maybe even good on Django adamenet. I have official documents checked and gone, but the answers are confused instead. What will be the recommended method of implementing this setup SSL? Any suggestions on the SSL Applicant website for the first time? It seems that they have included the NGX on the stack. Without this, can not it be done? Thanks I read mod_ssl and mod_wsgi I'm not an Apache expert, but here's how SSL is setup for a site (in the httpd.conf file in the instructions below or in the file referenced from that file , For example, has been put in the site-enabled directory,

java - Generating Unit Tests Automatically -

I have a web tool, based on the arguments given in the URL, the return generated by the Java class being generated is. We change the classes we receive from the webserver every day and we need to ensure that they can still process known inputs. Note that these classes do not test the webserver, they run locally and convert XML to a custom format. I am not checking the webserver. These sections should be kept in a specific package structure and should be run against known input data and compared with known output data. To ensure that each generated category is correct, prefer to do this each night automatically. What is the best way to get it? What's the best way to do this: Get the code from a webserver and keep it in a file Collect the code and then Call it I'm sure a mixture of Janet and Ant will be able to get it, but is there a standard solution / approach for this? First of all, to answer your question: No, I do not think that a < Em> standard

Declare in C == define in C++? -

संभव डुप्लिकेट: क्या यह सही है कि सी में घोषित करने के लिए सी ++ में परिभाषित के बराबर है? int a; / * को सी में दर्ज करें * C * / int b = 2; / * को C * / int c में घोषित करने और आरंभ करने के लिए; // में परिभाषित करने के लिए सी ++ int d = 4; // नहीं "post-text" itemprop = "text"> कार्यों के लिए, मैंने सिर्फ हेडर लिखने के लिए "घोषित" का उपयोग किया है, जबकि "परिभाषित" का उपयोग शरीर को लिखने के लिए किया जाता था। हालांकि, यह सभी प्राकृतिक भाषा है "घोषित करें" जैसा कि आप में सी उदाहरण सी और सी ++ दोनों के लिए सही है।

Accessing an object of a tabitem in Silverlight -

I have a Silverlight user contract where I have a tabotron that uses some tabs. Now each tabtime is another user contract I was wondering if there is any way to use one of these user control tabits. For example, if I have xaml in my main user: & lt; Control: TabControl x: name = "TabControl" grid. Roll = "1" grid. Column = "1" foreground = "# 234 BC3" & gt; & Lt; Control: TabItem header = "Prestige" x: name = "tabperous" visibility = "abridged" & gt; & Lt; NSL: PrestatiesUC & gt; & Lt; / NSL: PrestatiesUC & gt; & Lt; / Control: TabItem & gt; & Lt; Control: TabItem header = "Protocol" x: name = "tabprote" visibility = "abridged" & gt; & Lt; NSL: ProtocollenUC & gt; & Lt; / NSL: ProtocollenUC & gt; & Lt; / Control: TabItem & gt; & Lt; Control: TabItem header = "ADT" x: name = "tab edit" v

Setting Java Classpath to Load a Class File -

I'm new to Java, and I have no doubt that to issue a different file program in a specific file . For example, I have to load MyClass located in a third party jar file, which is / mylib / MyClass.class, so I tried to turn to: java -jar mainprog .jar -classpath "/ mylib" MyClass but I get this error: Thread exceptions "main" java.lang.NoClassDefFoundError: MyClass due to: MyClass on java.net.URLClassLoader $ 1.run (URLClassLoader.java:221) on java.security.AccessController.doPrivileged (Native method) for Java: java.lang.ClassNotFoundException. On net.URLClassLoader.findClass java.lang.ClassLoader.loadClass (ClassLoader.java:324) to (URLClassLoader.java:209) sun.misc.Launcher $ AppClassLoader.loadClass (Launcher.java:294) on java.lang.ClassLoader Cloud Loader on Java .lang.ClassLoader.loadClassInternal (ClassLoader.java:337) What am I doing wrong? Text after "div class =" itemprop = "text"> When you use "- jar"

c# - FullName of generic type without assembly info? -

I have a database table where I store windows' height, width, state and so on. As an identifier for windows I use the full type of name. It works well, but I found out that some form of generic names are found that are incredibly long, the reason for this is that the general assembly of the general type is listed with the information. Is there a way to do this? For example, the full name of a regular form will look like this: something. Name.Space.NameOfForm but a generic The full name of the form looks like this: something.Name.Space.NameAfform` 1 [[Something other names. Space. Generic Type, Assembly Name, Version = 1.0.2.0, Controller = Neutral, Public K-Token = Null]] Why does it get so long? Can I get a small version? For example something like this: some name. Name 'Forms 1' [[Something other names. Space. Generic type]] Any clues? I agree with dbemerlin that your ultimate goal seems odd but I want to say that < / P> GetType (). ToStrin

Where are my svn files? -

I have created a svn repo on my web host server and have successfully uploaded it and sent it to the updated files I actually find the files on the server! My svn is in repo ~ / svn / my-first-repo / that has the following: ./../ README.txt conf / db / format hooks / Locks / . But where are the files I'm actually doing ?! This is definitely working because I was able to check the same remote repo in another local directory and all the files looked magic! Such as from anywhere ... The files are themselves within the repository if you want to see them , Then you have to do a checkout. Because launch keeps complete change history for all the files in your project, you will not see a copy of the fully renovated work under the structure of the repository. In fact, what is happening is "versioned filesystem" that is at the top of your host file system you should probably read in more detail so that you can understand what happens when you make changes to y

How can I match a function signature without getting type erasure compiler warnings in Scala -

Can anyone rewrite this code to do the same thing, but without any compiler warning: - Object TestTypeErasure {def main (args: Array [String]) {def myFunction (myObject: Any): Boolean = {true} val myVariable: (Any => Boolean) = myFunction MyVariable match {case function: (any => Boolean) = & gt; Println ("match")}}} thousand thankyous Keith update !!!!. Sorry, making a real hash of this. My first question is on SO Just to tell the master that I have not tried anything in any of its forms: - (It can not be compiled) Object TestTypeErasure {def doTest (parameter: any) = {parameter match {case function: Function1 [_, _] = & gt; I get the error: - Test type ("whatever")} def main (arg: array [string]) {}} Erasrasecoll: 6: Error: Type mismatch; Found: java.lang.String ("whatever") is required: _case function: function 1 [_, _] = & gt; Function ("whatever") ^ An error occurred thanks again Keith You

css - Absolute positioning. Need help displaying 3 images instead of 1 -

& lt; / div & gt; & Lt; div शैली = "स्थिति: निरपेक्ष; शीर्ष: 160px; बाएं: 535 पीएक्स;" & gt; & lt; आईएमजी src = "स्प्लैश पेज" & gt; & lt; / div & gt; & Lt; div शैली = "स्थिति: निरपेक्ष; शीर्ष: 160px; बाएं: 535 पीएक्स;" & gt; & lt; आईएमजी src = "स्प्लैश 2 पेज" & gt; & lt; / div & gt; & Lt; div शैली = "स्थिति: पूर्ण; शीर्ष: 160px; बाएं: 535 पीएक्स;" & gt; & lt; आईएमजी src = "स्प्लैश 3 पेज" & gt; & lt; / div & gt; & Lt;! - प्रेस लोगो - & gt; & Lt; div align = "center" & gt; कैसे मैं तीनों छप छवियों को क्षैतिज रूप से प्रदर्शित कर सकता हूं ... 'क्षैतिज प्रदर्शन' के द्वारा, क्या आपको लगता है कि वे एक पंक्ति पर एक दूसरे के पास बैठते हैं? मार्कअप में छविएं स्वाभाविक रूप से ऐसा करती हैं जब तक कि पर्याप्त जगह न हो, जिसमें वह खाली जगह पर लपेटता है। & lt; div & gt; & Lt; img src = "splash.png&q

Using django.db.connection.queries -

I have a Python / DJ ango application that runs many SQL statements. For the purposes of debugging, I thought that should make a simple view for me which only lists all the SQL statements. According to the documentation, this code should be sufficient to do this: DJ Angia DB import connection from connections.queries Unless the DEBUG truth is. However, this is not giving me anything. DEBUG is definitely set to the right, what is the connection in this regard. Treasured archived? I mean, I should be able to execute a page that executes a lot of SQL statements, and then just made the view that I created and saw that SQL statement, okay? Of course, using the same browser session ... I checked whether DB.reset_arcaries () was running anywhere in the code, it seems that it is not so. Questions are always empty? Ben is right that you will only see the query from the current process. You can use it in the same scene or console, but not between ideas. The best way to see

Merge multiple javascript functions into one -

I have these two JavaScript functions and wish to "merge" them in one. I will combine some of these and later converting functions and keep it simple and cleaner which will repeat the function. & lt ;! - Convert to PD - & gt; & Lt; Script type = "text / javascript" & gt; Function init () {document.getElementById ('kg'). Onmouseup = function () {ifNaN (this.value)) {Warning ('number only !!'); . Document.getElementById ('kg') value = ''; . Document.getElementById ('PND') value = ''; Return; } Document.getElementById ('pnd'). Value = (this.value * 2.2046) .tfixed (1); }} If (window.addEventListener) {window.addEventListener ('load', init, false); } Else {if (window.attachEvent) {window.attachEvent ('onload', init); }} & Lt; / Script & gt; & Lt ;! - Convert feet to feet - & gt; & Lt; Script type = "text / javascript" & gt; Start function () {

Django: How would one organize this big model / manager / design mess? -

Before I get into bad examples, et al: I'm trying to create an application where I don 'To limit options in the current log-in account, all the models have to write the code (I am not using ath, or facilities created for account or login). That is, I don class tickets (models.Model): account = models.ForeignKey (account) client = models.ForeignKey (Client) # of Do not want to do anything: a customer will be owned by an account. Content = model.carfield (max_length = 255) class ticketform (forms.modelform): class meta: model = ticket exited = ('account',) # first sign of bad design? Self __init __ (self, * args, ** kwargs): super (OrderForm, self) .__ init __ (* args, ** kwargs) if self.initial.get ('account'): # is where it is ugly IMHO gets it almost as bad as coding difficult data seems like it does not dry itself either. Field ['customer']. Queryset = Client.objects.filter (account = self.initial.get ('account')) My idea is a acc

windows - Application to help explain a GUI -

When a graphical user interface is documented, then it usually includes a screenshot in the screenshot of various buttons and interactive objects Is marked in a list, and in a sheet below, it describes what "button marked with red A" really does. I currently do this myself in paint. Nat, it looks really good to make it really hard, surely it should be a better tool for it? I'm looking for a program that lets me load saved screenshots, click five times, each position gets a unique letter clicked, with a circle around it, in a nice color < P> Edit : To clarify, the screenshot is easy to generate / generate real (there are tools for me) pointing to its specific number / sign in < / Em> Insot I need help. What do I do in paint. Use text tool, type a unique letter next to it, I want to show that using a button, circle tool, draw a circle around the letter (to make it stand out). It looks great and it eats so much time I just felt that there should be a q