Posts

Showing posts from February, 2014

web applications - Promote/advertise your web app/site on the web -

What is the best way to advertise a web application or a site on the web, specially paid ads , but if there are any great free ones, then you are welcome too. Please refrain from mentioning site modifications related to meta tags and technical SEO. Google Ad-Words In a way we all know about this but I am looking for other suggestions that are working well for you or you Know Since it is subjective, I have marked it as a community wiki. Create unique content One of the best ways to promote a product is to create unique content Articles (blogs, guides, etc.) Graphics ( Widgets If corrected, you will get links from other sites, from which to search results High ranking will be (Google, Yahoo). This will increase your long-term traffic on your website. Although you can do it for free yourself, services and freelancers who can help you write blogs, for example. I think banner ads do not even give great returns to link advertisements, and even until they are ...

ping - RSS: Does it push signals out indicating new content? -

Quick question: When I'm in Google Reader, it will pop up a new flash and The number of read items indicates that a new article has just been published (usually 1 minute after the "published date" of the blog), does Google consistently run every blog continually, or is there something "signaling in the RSS standard ", Who asked to subscribe to the agent to maintain new content? Thanks for any explanation! I am currently running an app that is based on RSS feed, but I have a cron job to run the interwab for new content, but I would love to know how the solution "I need real time" without asking more time than my API call. "Is Google only continuously pinging blogs?" " Yes . "Is there any kind of" signal "in the RSS standard that makes it" number if you are real If you want information about time, contact the seller and pay to send you the goods seriously.If there is a value of information, then ...

c# - Is this the correct syntax for auto properties? -

I've been programming for a long time, sometimes the language does not change ... It's really ok to properly set properties. Net v2 public string locale {get; Set; } Do not require an internal area? It seems that the compiler takes care of this recently? Yes, this is a new feature in C # 3.0

sql server - Copy File Job creation -

I need to share a backup file per a server every day. Actually I want to do this every day Need to make a job. I have made a bat file to do this. The problem is that I do not know how to run it in a job. There is no other way to do this. Please, suggestion. I really appreciate it. Thanks I have tried to use an agent's job Copy to share I use Net Usage to make sure that the current reference is a mapped drive, then I expose the files to that part. When I start working manually, it says that it starts but never gets completed, the amount of data is such that 10 minutes should be more than enough. I do not see any progress indicators in the agent log. Any ideas where I can see what I am doing. Using the timestamp as a sign, I believe that no file is being copied. Hmmmm .... Any ideas? Greg

functional programming - Which Function is the best in terms of Stack Usage Efficiency and Time -

I've written 3 functions, which calculate the number of times when one-element appears in one-list. I tried different inputs and made profiles but I still do not know which function is best in terms of efficiency and time efficiency of stack usage. Please help me ;; Using a Raider (Counting Count-Example 1 [One List of One-Elements] (letfn [(count-aux [list-aux acc] (cond (empty? List-aux) AC: else (if (= ( First list-aux) count-aux (rest list-aux) (inc ACC) (count-aux (rest list-aux)))))) (calculation-aux a-list 0)) ;; Normal counting (calculation example 2 [a-list e-element] (consolidated empty list) 0: and (if (= (first a-list) a-element) (+ 1 (calculation-Example 2 ( Remaining one-list) one element) (calculation-example 2 (the rest one list) an element)))) ;; Using Loop Does It Help? (Empty number-Example 3 [A-list A-element] (Loop [Meristel A-list acount 0] (if (empty mylist) acount (if (= (first mylist) an-element) (recurrence mylist) (Inc acount) acount (repetition my...

vbscript - Is there a way to do non-blocking IO in VBS or a way to signal it witout a COM event? -

I have a script that comes with Windows Media Encoder. I launch it via WSH and it is STDIN, STDOUT, and STDERR. The script starts encoding and if the encoding is encoded at the end then the encoding will check the position of the object, if the encoding knows the exit is waiting in a DO loop to have the pipe Installation (Internally loop prints just one period, and sleeps for about 2 seconds). To exit cleanly, I would like to point out the script to stop encoding, which will allow it to drop from the loop is clear. I do not want (or need) a COM object implemented in our app that has started the script - otherwise, I only trigger an event. (I think if it is easier than I would rethink to think to C ++) I just thought about sending a character through STDIN to get out But the problem is that WScript.stdin has all the methods for block. Is there no way to read from Stadin or to examine the characters? Is it possible to make a thread in VBS? As far as I can tell, you can only...

actionscript 3 - Flaky Flash buttons -

I am working on this Flash project with AS3 and for any reason the buttons I created do not always respond I have to click two or three times a few times to click through the actual click. Has anyone experienced such issues? You should see, whether clicks, mouse ups and mouse down levels will trigger, and if yes , Then what is their goal ... this should give you a good sign where the problem is ... If they are not triggered, then the only explanation that comes to my mind is that it is a The Flash Player is a bug or you are not responding to your app ... Congratulations back2dos

puzzle - Are there any programming challenges out there for R users? -

Are there any websites or blogs with programming challenges for R users? I do not know specifically for R users. But you will find a good number of R entries on the challenge. Check out this blog, for example:

mysql - Any way to improve this slow query? -

Image
Its special query goes to the slow query log for me at all times in any way to improve my ability? mov_id, mov_title, group_concat (different genres.genre_name) all_genres, mov_desc, mov_added, mov_thumb, mov_hits, mov_numvotes, mov_totalvote, mov_imdb, mov_release, side as mov_type movies left join movies.mov_id = _genres.gen_movieid left by mov_added DESC limit 0, 20 mov_id ordered by _genres.gen_catid = genres.grenre_id where mov_status = 1 and mov_incomplete = 0 and mov_type = 1 GROUP styles join _genres; My main concern group_concat function, especially film, which I have a comma-separated list of styles associated with the put through a loop output and clickable links In relation to making. Do you need a style name? If you can only do with genre_id, then you can join others. What are you indexed? You probably want index films idx_movies (mov_added, mov_type, mov_status, mov_incomplete) And most certainly join index _genres create index ind_genres_mo...

adding content to a generated tab in JQuery -

I added it to my already existing JQuery tab: function createTab (name ) {// This standard method will add a tab through $ ("# tab"). Tab ("add", "# piece-4", name); $ ("# Piece-" + name). CSS ("display", "block"); } My question is, what is syntax that allows me to create content inside a newly created tab? Just adding the devices you are adding: $ ('# Fragment4'). Html ('Content Added via JS');

javascript - Are AJAX sites crawlable by search engines? -

I always assumed that AJAX-driven content was invisible to search engines. (i.e. the content was inserted, for example, in this site, the main content is loaded by the browser via a AJAX request: . .. If you see this page with Javascript disabled , then the main content area is empty. However, after the Google cache AJAX load completed The content shows: So, apparently the search engine index content is loaded by AJAX Question: Is this a new feature of search engine? Most posting on the web shows that to publish duplicate static HTML content for search engines, Is there any move to crawl an AJAX driven content by search engines (static HTML content in addition to creating duplicates). Is it a separate subdomain AJX when loaded from The operated content will be indexed? How about a different domain? Google After this guide, AJAX sites may be crawlable:

Problem compiling C++ template code -

मेरे पास निम्न टेम्प्लेट है: टेम्पलेट & lt; class मैट्रिक्स & gt; मैट्रिक्स क्षैतिज_जोइंड (कॉन्स्ट मैट्रिक्स एंड एम 1, कॉन्स्ट मैट्रिक्स एंड एम 2) {एसरेट (पंक्तियाँ (एम 1) == पंक्तियाँ (एम 2), "पंक्तियों की असमान संख्या"); टाइपिप्पिफ़ टाइपनाम मेट्रिक्स :: मूल्य_प्रकार स्केलर; मैट्रिक्स आर (पंक्तियाँ (एम 1), एनबीओएल (एम 1) + एनबीसीएल (एम 2)); (अहस्ताक्षरित i = 0; i & lt; nbrow (m1); i ++) {के लिए (अहस्ताक्षरित जम्मू = 0; जम्मू & lt; nbcol (m1); j ++) r (i, j) = m1 (i, j); (अहस्ताक्षरित जे = 0; जे एंड एलटी; एनबीसीएल (एम 2); जे ++) आर (आई, जे + एनबीकॉल (एम 1)) = एम 2 (आई, जे); } वापसी आर; } "MATRDSE.m" नामक कुछ पुस्तकालय में परिभाषित "Matrsse.hpp" फ़ाइल में "matrsdse" नामक एक संरचना को भी परिभाषित किया गया है जो एक घने मैट्रिक्स प्रकार का प्रतिनिधित्व करता है और जिसमें कई - कॉन्स्ट्रक्टर्स, जैसे मैट्रसे (इंट एनआरआरओ, इंट एनआरकॉल्स, कॉन्स्ट मान_प्रकार * Src, बाय ()) -और तरीकों, जैसे स्थानांतरण ()। मैं अपने मुख्य फ़ंक्श...

silverlight - Is it impossible to put AutoCompeleteBox inside of DataForm? -

I tried to use autocomplete screen inside data format instead of textbox, but in the class file I had the instance name of the installation box Can not be seen. BTW, if I put the AutoComplete box out of the data format, then I can see the example of "autocompletebox", "acbEmpName". My question is, is it the impossible to put the Outlookbox box inside the data? If so, how to use the AutoComplete box inside the data format? I am using Silverlight3. Thanks in advance. AutoCompleteBox should work well with the dataform, with the only exception that the auto-integer box "IsReadOnly" does not conform to the conference, which controls some other, so your experience in read-only mode may ideally be slightly lower. Is it possible to reduce the size of a bureaucracy? Can you try to put full control inside the stackpane, or to provide a specific size - height 40 width 120, or something, to see if it looks better?

Error when using a Python constructor -

वर्ग फ़ाइल विवरण: def __init__ (self, host, usr, pwd, database): self.host = host self .usr.usr self.pwd = pwd self.database = database def __init __ (स्वयं, कनेक्शन, sql, पथ): self.connection = mysql_connection () self.sql = sql self.path = path यदि मैं कन्स्ट्रक्टर का उपयोग करता हूं तो यह एक त्रुटि देता है: onnetction = fileDetails ('localhost', 'root', '', 'bulsorbit') TypeError: __init __ () लेता है कंसट्रेटर (या किसी अन्य फ़ंक्शन के ओवरलोडिंग) में बिल्कुल 4 तर्क (5 दिए गए) __ init __ फ़ंक्शन को परिभाषित नहीं कर सकते। आप देख सकते हैं या मुख्य विचार डिफ़ॉल्ट मानों का उपयोग करना है def __init__ के लिए 'वैकल्पिक कन्स्ट्रक्चर' या बनाने के लिए संख्या और आपके आर्गों के प्रकार की जांच करने के लिए। (स्वयं, ** आर्ग्स): तब args एक पैरामीटर सहित सभी पैरामीटर वाले होंगे तो आप connection = fileDetails (host = 'localhost', usr = "root", pwd = "", डेटाबेस = 'bulsorbit') के बीच अंतर करन...

javascript - Dealing with clients behind slow connection -

I am working on the creation of an AJAX based messaging system. The idea is that the client has to call the server to get the latest message for seconds of every x number and some other important information. It relies heavily on the data to be distributed to the client. I have tested it on all types of connections and everything is working perfectly. While running a demo test, we noticed that some clients were showing "undefined" text in those places where information was to be displayed to the server. That kind of tells me that the server response is slashed or something like that was the reason for thwarting the Java script. It seems that it is common for only those customers who have reported this problem that they are behind slow connections. And about 20 of the dozen of browsers were open on different machines and all used the same switch. The bottom line is that it is having problems with customers with very slow connectivity. I have set a deadline for AJAX cal...

html - Do you think a fluid website should have limits for its width? -

Do you think a fluid should be the width of the website (for example minimum width and maximum-width, and hacks) To wit)? Well, the reason for this is that screen resolutions can be very high which is not good for reading text content. what do you say? Yes, I think that often max-width . Due to the vastness of a website, its readability may be reduced due to over-long text lines - not in all cases, but in many cases. And whether people like it or not, in order to get a really flexible layout, the information you are presenting and within the constraints of its visual design can be improperly difficult. Code> Max-width can help reach a compromise. My site is here: What you describe, and IMHO, this is a nice compromise between a narrow browser and flexibility.

user interface - Use of Frames in Delphi for GUI information hiding -

I have been learning Delphi for the past 3 years at a hobby / professional level. I am happy to say that I have progressed so much that I can look back at my initial code with scary and embarrassing. That's why I am going through some of my early apps and re-writing / reconstructing them. One of the worst habits I am trying to go away from one unit is reaching components from another form. In an effort to implement this, I am experimenting with using frames as a method of hiding information. So instead of having a form with components on it, I am creating a frame to hold all the form components, then placing it on a form on the frame, taking the frame declaration in private announcements, type TMyForm = class (TForm) Private MyFrame: TMyFrame; Process SetTimeDate (const value: TMyItem); Function Readtime: TMyItem; Then register the frame in the form initialization section Start the Initialization Registerclasses ([TMyFrame]) I, then declare the properties which ar...

javascript - How do I make my live jQuery search wait a second before performing the search? -

I have a search input that sends the data to a php file from an input as I write the PHP file to my database Finds a list and shows a list of search options. You know, AJAX is looking for style live. My problem is, if you type something very fast, then it can only stop searching for 1 or 2 characters, even if 10 others have been typed it creates some problems . My jquery looks like this: $ (document) .ready (function () {$ ('# searchMe') .keyp (function () {lookup (This.value);});}); and function lookup (search input) {if (searchinput.length == 0) {// hide suggestion box $ ("#suggestions") Hide () .; } And {$ ('# Loading'). FadeIn (); $ .post ("/ RPCsearch.php", {queryString: "" + searchinput + ""}, function (data) {if (data.lamp & gt; 0) {$ ("# suggestion") .html ) Show (); $ ('# Loading'). FadeOut ();}}); }} // Lookup So I'm just curious, how can I do this so that my script will wait...

browser - Silverlight fullscreen limitations -

When a silverlight plug-in is in full-screen mode, it disables most keyboard events, they say This is for: The aim of a user is to minimize the possibility of entering unwanted information What I do not understand Is the difference between Silverlight's full screen or any web browser fullscreen? Is not a browser also a security risk in the foreclosure? Does any browser complain about fullscreen mode? Thanks The reason for this is that a malicious Silverlight application is such a UI Which can make your banking login screen, the Windows login screen, Facebook or whatever site you wanted your login details. Only some keyboard keys are disabled, but the screen can not be added until the full screen is active. For example, the user will have to click on a button to go fullscreen, As without this the app is not able to make the full screen. This is an active-active response to known security risks by Microsoft, and although Downsides, professionals have run away fro...

php - ALT text for images in HTML -

We are working on a website that contains many images and must be ALT text for every image required ( JPG, JPEG, PNG, GIF etc). Therefore whenever HTML shows and images are written in the HTML with the ALT text IMG SRC for the image the solutions that have come up after discussion with developers 1) Create a new table to keep all these image names, and every time the image is used with DB lookup and the appropriate ALT text is added. 2) Another solution is to write some XIF information in each file and every time they use the information of EXIF, the file is read and added in the HTML as needed. Any suggestions about how to move forward are a lot of images, so we are looking for the least solution server and at least load on loading time. Additional information - We run PHP on our servers to select images etc. Thanks IIFI excludes EXIF ​​because it is PNG and Does not support GIF. The DB Looks OK (for me) and will be on the scale right (as long as you did cleverly)...

Which script editor can code-color hex color values? -

I work often with many hexadecimal color values ​​in my programs, is there a script editor, Can the color tell, which they describe? .. (like #FF0000 should be color red and 0x00FF00 should be colored) Text Editor version 20.00 From the CSS Color Tooltip feature, which is IDM Computer Solutions, Inc. According to, When the cursor is rotated above the supported color definition, a color causes "voluntary" to appear. Users can select CTRL + on "Switch" to open the OS Color Picker to choose a new color. HSL HSLA Supported in the following file types PHP PHP PHP Pearl Python / Li> Ruby This color does not highlight color color as color value according to the color value. Does not. But it displays the color in a rectangle under the mouse pointer when the mouse pointer is located on the color value in one of the supported formats. So this feature of UltraEdit is not quite right, but maybe very useful for you. In...

get - Problem passing parameters via Iframe in IE -

I am trying to execute an HTTP GET from another website on another website that is brought through the IFrame . On Firefox, you can see in the source that the correct URL is in the iframe src with the right parameter - and it works. On IE, you can see in the source that the correct URL is in the iframe src with the correct parameter - and it does not work ... What about IE? Which does not allow you to pass parameters through the iframe query? I tried to refresh the IFrame in the IRF, I tried to refresh my page & amp; IFrame in IE, and I have tried copying the URL and sticking it to the iframe src (it is forced to refresh it as if I have entered it in the address bar for that frame window) . There is still no luck! Edit: I can not give a link because the site requires passwords and login credentials for both our site and our vendor's site. . Although I can create a test account on our site, it will not do any good work for the testing process because I can not do...

xml - C# XmlElement: SelectSingleNode returns null for empty string? -

I'm new to C #, and just started using xml aliment and its ceslingnod method. My XML file contains a tag that can have a value (i.e. & lt; tag & gt; value & lt; / tag & gt; ) or empty (i.e. & lt; Tag & gt; & lt; tag & gt; ). If it is empty, select Sync Faucet Returns. I am currently using the following code to capture the value of the tag: XmlElement elem = .... string s = elem.SelectSingleNode (" Somepath ") .Value; This code clearly raises an exception for empty tags. However, an empty tag for me is a valid value, where I should have the value of my string "." " Try to select the SelectSingleNode to wrap each call ... a big waste of code hold (looks like I have many fields that can be empty), and I believe that to get it There is a better way. What is the recommended approach? Edit: After the requests, there will be a sample XML code: element> gt; element & gt; & lt; name & gt; value...

antivirus - Virus / Spam Scanner Programatically for .NET? -

I write a piece of text message, sound, fax sending and receiving message software through SSMTP (e-mail) I am here. Question: Can someone give any suggestions on a product for the use of this product? I have the ability to scan incoming and outgoing emails for viruses, spam, etc. in programming. Question:? I prefer to stay away from consumer-level software (Symantec, McFIFE etc.). My software is all C # / C ++, so it would be ideal if it has a net interface, but if it is a "C" whatever should work. Thanks in advance. Maybe you want to Otherwise, which can be integrated with spam assassin.

c# - .Net DataGridViews Bound to Same Binding Source in Different Tab Pages -

I have a winform (C # VS2008 .NET 3.5) with a tab control. Data grid views are tied to the same binding source in two pages of tab control. It works fine. However, tab pages have a bug in tab pages, the data grid view created in the tab page always shows the first column of the bound table, even if it is visible at design time. To work around this, you set the column. It worked fine when I had only one DGV binding source, with two bounds, some strange things happen I manually set the first column of both DGV to Visual = false, but sometimes only The only one actually takes, and the column is still shown in the other Also, when the column is shown before clicking on a record in DGV, the following exception has been raised: Invalid operation expedition - The operation is not valid because it results in the RENTONT call on the CTRCellCressress function.

iphone - Using NSStream to communicate with PHP? -

I am working on an iPhone project that requires data from PHP scripts to be executed during execution. My first thought was to use both ends / currents to connect to both, but I have trouble finding information about how to do this from the iPhone. Can anyone down this path, have to give me some useful resources or some advice? Official documentation is getting better than desktop applications and uses a code that is not supported on the iPhone (i.e. NSHOS). Update: Using this app is to get the log message from the execution script, so I can not use a simple HTTP request with JSON or XML. In many cases the page will be loaded by another customer, where the script relay / sends the log message to the iPhone. Voting is evil You will chew through the battery to do this. You may consider running an HTTP server on the iPhone checkout; It is an example code to use for the implementation of a HTTP server in Cocoa along with two-way communication. PHP curl library (this can not ...

WPF : using a designed vector image as a control template in WPF -

I am exploring the idea of ​​using professional vector images as ControlTemplates in my WPF application. The idea is to create many types of controls, each with a different visual design, which can then be drawn and left, this is exactly the same case-case that is a visual designer (Ella Vicio) I have the following XAML It defines a control template with a target type button, and I have a button that uses this template. I want to know how I can modify this template so that it uses the height and width of the button. I feel as though the template is related to the top-left corner renders (I take the button image moves) but it takes an account of the dimensions of the button, so it has its own "ready" shape. Do not talk about what I do & lt; Window X: class = "Euphrosyne.MainWindow" xmlns = "http://schemas.microsoft.com/winfx/2006/xaml/presentation "Xmlns: x =" http://schemas.microsoft.com/winfx/2006/xaml "title =" Window1 "h...

To calculate the sum of numbers in a list by Python -

मेरा डेटा 466.67 465.56 464.44 463.33 462.22 461.11 460.00 458.89 ... मैं पायथन में sum (/ tmp / 1,0) मुझे एक त्रुटि मिलती है। आप पायथन द्वारा मानों की राशि की गणना कैसे कर सकते हैं? के लिए पूर्व> योग (फ्लोट (i)

tsql - TortoiseSVN from the command line and "IF ERRORLEVEL"? -

I have a batch file that I'm running from a Windows XP W / Service Pack 3 workstation that changes the SQL database Implementing SQL in SQL 2005 using sqlcmd.exe I have received a command line entry for TortoiseSVN to automatically update the local copy of my repository: According to / code: update / path: "c: / svn / my code / dev / 2009.07.23" / Closeonend: / Closeonend: 3 option will discontinue the TortisSVN dialog box if there is any error, conflict, or merger during the update. If this happens, and the user closes the dialog without solving the problem, they may possibly skip the changes that we want to apply to the test database of a given branch. When the TortoiseSVN dialog box is closed in case of an error, conflict or merge after an update, then ERRORLEVEL on some nonzero values Be set up, so that the BP batch files the rest of the asses? itemprop = "text"> The old question is, but today I faced a single thing an...

version control - How to Compare source code accross TFS projects -

We have several legacy projects that were recently added to TFS version control. Now we have the issue that each of our projects contains copies of common codes which have been modified from each other and kept separate. Is there a way in TFS to compare the source with the source in the second solution on the same TFS server with a solution? - I can specify how to compare folders and files. Organizing a major reconstruction of repository reconstruction or solution due to the size and nature of the solution is not an option at this time. I am also interested in any API that probably automates this process. Thanks "itemprop =" text "> c: \ temporary> tf folderdiff / TF - Team Foundation Edition Control Tool Copyright (C) Microsoft Corporation All Rights Reserved. Displays visual representation of differences between files in a server folder and two server folders in a local folder, or two local folders. Tf folderdiff [sourcepath] TargetPath [/ rec...

Java Joda Time - Implement a Date range iterator -

I am trying to apply a date iterator with Joda time without success. I need something that should start me all day again, start to get started Do you have any idea about doing this? "post-text" itemprop = "text"> There is something for you to start, you can think about whether you want to get involved in the end or not. . Import org.joda.time. *; Import java.util. *; Class Local Deterrent applies to Iterable & lt; LocalDate & gt; {Private finals start local date; Private ending local debt end; Public Localadat Range (Local Date Start, Local Date End) {this.start = start; This.end = end; } Public Iterator & lt; Local Date & gt; Iterator () {Return the new local data exchange operator (start, end); } Private Static Class Local Dat Range Iterator Ethernet & lt; Local Date & gt; {Private local date current; Private ending local debt end; Private LocalTraderitter (local date start, local date expiration) {this.current = start; This...

c# - Casting to generic abstract class shows T as unresolved symbol -

मान लें कि मेरे पास यह है: सार्वजनिक सार वर्ग myClass & lt; T & gt; : ओब & lt; T & gt; अब मेरे ऐप्पल के भीतर परिभाषित विधि में, मैं अपने प्रकार की वस्तु का एक वस्तु बना सकता हूं और मेरे टाइप में परिभाषित विधि पर, मैं सार को पास करता हूं वर्ग myClass इसे कॉल कर रहा है। तो मेरे myType वर्ग में, मेरे पास है: सार्वजनिक अमान्य myMethod (ऑब्जेक्ट कॉलर) मेरा प्रश्न यह है कि, मैं ऑब्जेक्ट कॉलर को अमूर्त वर्ग के प्रकार के रूप में किस प्रकार डाली है जिसे मैंने कहा है? मैंने कोशिश की (myClass & lt; T & gt;) और (myClass) लेकिन दोनों विफल। जेनरिक मेरे सिर को चोट पहुँचाते हैं। आप ऐसा कर सकते हैं के रूप में , निम्नानुसार: सार्वजनिक शून्य MyMethod (ऑब्जेक्ट कॉलर) {myClass & lt; T & gt; परीक्षण = कॉलर के रूप में myClass & lt; T & gt; अगर (परीक्षण! = नल) {// परीक्षा का प्रयोग करें यहाँ}} यह कहा जा रहा है, अगर आप हमेशा ज्ञात myClass & lt; T & gt; शायद सिर्फ उपयोग करने के लिए क्लीनर हो सकता है: सार्वजनिक शून्य ...

osx - Need help in compiling lighttpd on MacOSx -

I try to download the lighttpd 1.4.23 source, and compiling it on MacOSX 10.5.5. This is what I am getting the error: $ ./autogen.sh ./autogen.sh: Running `libtoolize --copy --force './autogen.sh: Line 19: libtoolize : No command I tried to ask the same question on the lighttpd forum, but I can not find any help. Thanks in advance. libtoolize is part of GNU Libto, package for making libraries portable. On Mac, one option to get this is to use MacPorts, which is a package manager that works just like similar and FreeBSD, in which it prepares packages on your machine. See. However, be careful, that it will be installed in the form of Gbblol, i.e. prefixes with 'G' This is a standard way that GNU tools reside in parallel with the Unix tool of the same name, which can be present (even if there is no one in this particular case). The command to install libtool is from MacPorts: sudo port install libtool To view the output output, after the 'port' ...

javascript - Facebooker gem does not seem to work with jQuery -

I tried to work with the Facebooker gem with jQuery, but it does not present the Facebook Connect button, once I use prototype.js instead of Jquery.js and use the init_fb_connect "XFBML": js => "jquery" I tried it with the example Is there any clue if this is required prototype or am I really doing something wrong? When you call the init_fb_connecthelp method in your view, you can use JS or prototype to Type can tell: JS options, like ...: Jquery% & gt;

custom FILE type in C/C++ -

Is it possible to create my own custom stream in FILE (stdio.h) in C / C ++ Can be done with example? If your "custom stream" is nothing, you handle file descriptor or file, then you are destined Out of the FILE type is implementation-defined, so there is no standard way to associate the other with one. If you can get the C file descriptor, then whatever you are trying to write, you can change it to a FILE * . It is not standard C or C ++, but it is provided by Pausix. On Windows, it's spelling. If you are using Windows and you have handle , you can use it to associate the file descriptor with it, and then _fdopen From . Are you really tied to fputs ? If not, replace it with the use of a C ++ IOStream. You can then provide your descendant of std :: basic_streambuf , wrap it in std :: ostream , and use standard C ++ I / O on it Please.

jquery - Blur event doesn't fire when navigating away from input field -

Blurred functions do not fire when I exit my input field. Any ideas? & lt; Input type = "text" value = "test" id = "webshop_product_url_part" name = "setting" class = "is" /> Jquery ("input.is"). Live ("blur", function () {console.log ("2"); conslole.log ("asdf");}); live uses event delegation to work This means that only events that bubble can take advantage of are incidents that do not bubble, and therefore can not use event deletion (jQuery Live), which include Blur and Focus. The only way around this is to pair the event into each element when you add and make the element, then tie it up, you can also write a plugin which can be used in the form of jQuery's attachment , you can specify an event, and it adds the handler to all the elements that match your selector.

wpf - Finding specific pixel colors of a BitmapImage -

I have a WPF bitmap image, which I have loaded from .JPG file, as follows: This.m_image1.Source = New bitmap image (new URI (route); I would like to ask what is on color specific points. For example, what is RGB value on pixels (65,32)? How can I go about this? I was taking this approach: ImageSource ims = m_image1.Source; Bitmap image bitmap image = (bitmap image) IMS; Int height = bitmapImage.PixelHeight; Int width = bitmapImage.PixelWidth; Int nStride = (bitmapImage.PixelWidth * bitmapImage.Format.BitsPerPixel + 7) / 8; Byte [] pixelbatteryre = new byte [bitmap image. Pixelight * ns tride]; Bitmap image Copy pixel (pixelbieter, ns tride, 0); However, I will admit that there is a monkey - see, monkeys go with this code. Anyway, is there a direct way to process this array of bytes to convert to RGB values? Interpretation The source of the resulting byte array depends on the pixel format of the bitmap, but the 32 bit, the ARGb image In the simplest case, each pix...

serial port - C#: SerialPort communication -

I want to write serialport com1 01 00 00 02 37 30 04 This is the command for initialization. When I have a four array or byte array c [0] = (char) 01; // c [1] = (four) 00; C [2] = (four) 00; C [3] = (four) 02; C [4] = (four) 37; C [5] = (four) 30; C [6] = (four) 04; Serial port 1 Write (C, 0, C. Lang); Byte [] BB1 = SystemTek Encoding.Default Getbytes (c); I can see the serial port in the monitor: 01 00 00 02 25 1 E4 is clearly converted from 37 to 25 and 30 to 1 a ... I have 37 more How to cross 30 and not hex values ​​... I tried many ways ... The serial port monitor is showing values ​​in hexadecimal, therefore They match those values ​​that you actually send. No conversions are running, decimal value is 37 in hexadecimal, and decimal value is 1E in 30 hexadecimal. When you create an array, use hexadecimal notation (0x) for literal values, then you see that the value is expected in the serial port monitor: Byte [] c = new byte [] {0x01, 0x00, 0x00, 0x02, 0x37...

performance - Datareader or Dataset in Winform with long trips to database? -

I've got a Winform app that will be used in the US and China. SQL Server 2005 database is in the US, so data access to people in China will be slow. I am making a decision between using a DataReader and a dataset for best performance. Data will be loaded into business items on immediate recovery. Question: Which is performing better (Detarider / Dataset) pulling data from a distant database? I have read that DataReader goes back to the database for each. (), So if the connection is slow to start with, what dataset would be a better option? Thanks Datasets may use more memory, which can be a concern if you are working with too many data.

asp.net - Why would a child control of a child update panel update both parent and child if each is set to conditional? -

We have a structure that has 3 main update panels, each of which is the nested update panel (but only one of the nesting victims Level.) All panels are conditionally set with childastridge, so it looks almost identical: & lt; ASP: Update panel kids aggregator = "wrong" onload = "update_office" id = "update call 2" updatemod = "conditional" runat = "server" & gt; & Lt; ContentTemplate & gt; & Lt; ASP: UpdatePanel ChildrenArchiger = "Incorrect" updatemode = "conditional" id = "updatedFeedd" runat = "server" & gt; & Lt; Trigger & gt; & Lt; Asp: AsyncPostBackTrigger ControlID = "btnSubmit" EventName = "click" / & gt; & Lt; / Trigger & gt; & Lt; ContentTemplate & gt; & Lt; ASP: Button onclic = "Function" id = "BTN submit" runat = "server" /> & Lt; ContentTemplate & gt; & L...

c# - How should I include external libraries in an open source project? -

I have created an open source project that runs from Visual Studio. But it also depends on some external libraries so that the work can be done. These libraries are also open source questions I am thinking that I should point to these libraries to users and download them to source code and then add them to the project Indicate the users Include DLL directly in the project Include the source code of these libraries directly in the project The best way to do this What is the method or the standard way? There are guidelines that are not open source but I think they apply. I always source control of all external libraries (except standard people like system files), in this way, people who check the source code can immediately create this project. Apart from this, I can easily switch to the old version of the project and there are immediate dependencies in those versions that were used to make that revision - it is very useful when the old release of the software is debugg...

internet explorer - IE Page rendering Speed -

I am currently struggling to find out where an enterprise web app is interrupted. App is extremely javascript heavy & amp; It runs on IE only, not on my design or architecture, but to improve my work. I know that IE6 is very slow for Javascript, there is no other IE tools other than Fiddler, I can use the page rendering speed to measure or see normal low hanging fruits. I can? Does anyone know whether IE8 has huge improvements in JavaScript processing time? Will IE 8 be recommended on IE 6? There is also a JavaScript profiler in IE8 so you can get an idea that some of your JavaScript code Taking the most of the parts is time consuming and customizing accordingly.

In erlang/OTP how do I start appmon to monitor an existing node? -

I have an ongoing erlang application, it has started with the command line Erl -boot start_sasl -config config / cfg_qa -detached -name peasy -cookie peasy -pa ./ebin -pa ./ebin/mochiweb-s peasy start If I have a new node Let's start and run apon: start (), 'pessie node' will not appear, even if using the same cookie happens with webtotal: start () Anyone? found. / P> Always talk to each other to have two nodes, with ARL, you have to ping: 1> Net_adm: ping (other_node_you_want_to_monitor). Pong 2 & gt; Appmon: start (). {OK, & lt; 0.48.0 & gt;} and you can go :)

Carabiner not working--Codeigniter library -

I have trouble doing Carabiner work ... There is no error - / P> I have not changed the functions. I have in my function: $ this-> Load-> Library ('carabiner'); $ This- & gt; Carabiner-> Display (); This should produce all CSS and JS in my ATS folder, right? I have also tried to move the folder of assets around. Right now there is an application / property Is something wrong with me ?! It seems that you have to catch JS and CSS using the car-generener object: // Add a JS file $ --- carabiner-> gt; Js ('scripts.js'); // a css file $ this-> Carabiner-> CSS (add 'reset.css'); // a mediatype $ this- & gt; Add a css file with carabiner-> css ('admin / print.css', 'print'); View

html - Layout issue with website when in compatibility mode -

I saw that the layout of a website is raised in compatibility mode in IE8, everyone is picked up (this means That IE 7 and / or IE6 also) compared to seeing it in IE8 and Firefox. Since the site works well in IE8 and Firefox, I think that means that I need to override certain style for IE6 / IE7. What CSS settings have been jacked in IE to analyze whether there is any device that I can use in Firefox like firefox? Website [link according to site owner's request] ... Any ideas as to what settings should be targeted here? Edit Just got developer tools in IE8 ... I have found that this CSS setting appears to be criminal, but I'm not sure why. "Three Column "is the name of the class applied to the bottom of the website. HTML & gt; the body. Three-column {height: auto; You can use IE8 Developer Tools: I Instead of relying on IE 8's compatibility mode for IE 8 and IE 7 virtual PCs, I can suggest downloading from the link below: 0px The thr...

sql server - SQL Concat field from multiple rows -

I would like to create a function that gives the given string of given fields in a given query. Here is what I did. And this gives me an error The table variable "@qry" should declare. Prefix function dbo.testing (@qry varchar (1000), @fld varchar (100) create, @separtator varchar (15) = ';') back to varchar form Initial announcement @rslt varchar (1000) set @rslt = '' @rslt Select = @rslt + @separator + varchar (160 as cast (@fld)) @qry returns @ Rslt END What I am trying to do is pass this query to a query and receives a stored string for certain fields of the query. Is this possible? What I'm doing wrong Edit: BTW I have MSSQL Server 2005, You can not trust FROM @ You need to use dynamic SQL and make your cookie a derived table or something of that nature. However, I think that is not really the best way to believe I believe this is what you are trying to do: Comments are also optional for XML Be sure to also read on the solut...

c# - How do you parse multi-level "nodes" in text? -

I have a configuration format similar to * .sln format, so do the following as an example: Start the DCOM Productions configuration file, Format Version 1.0Display: Global GlobalKeya = Answeron .: Global Configuration Key :: Store for Applications. This key is used to: Save the current state of the application: as well as to prevent GlobalWeek 3 = AnswerUtvo. See above the secondary key installation GlobalKeyC = AnswerThree BeginSection: UpdateSystem NestedKeyA = A NestedKeyB = 2 NestedKeyC = {A set of multi data, where we will see how to write a multiple paragraph} NestedKeyD = System.Int32, 100 EndSection EndSection BeginSection : Application InstallPath = C: \ Program Files \ DCOM Productions \ BitFlex EndSection I know that I need a recursive function that probably takes a segment of text as a parameter so that , For example, will pass an entire section to do this, and Are re-used in parsing this way. I can not seem around my head to do this. Each section has potentiall...

c# - Inconsistent DataContractAttribute behavior -

Based on my understanding, WCF's data contract model is opted in from the old opt-out approach of the AMX web services. I went. You must explicitly include all the fields and types you need to use using DataContractAttribute and DataMemberAttribute . My experience is different though. Take a look at the following examples, /// Case: 1 /// remains as unconscious bull value but string value is emitted [DataCentrett] Public Class Composite Type {[Database] Public Bull Boulevavil {Received; Set; } Public String StringValue {get; Set; }} /// Case: 2 /// contains all the elements, as if everything was marked. Public class composite type {public; Set; } Public String StringValue {get; Set; }} /// case: 3 /// MyEnum type is included even if MyEnum is not marked. [DataContract] Public Class Composite Type {{Datamembr} Public Balls Bowel Value {Receive; Set; } [Datamember] public string string value {received; Set; } [Datamember] Public MENEM ENVALUUE {Received; Set; }...

asp.net - Difference between ../ and ..// in a file path -

I am using a relative file path in the CS file to get the space to save an image . There is a difference in the use of ../and ..// to get the path. I do not know whether your slash actually has backslash, but in C # you have to avoid backslash . var path = ".. \\ file.txt"; The value of the path is actually .. \ file.txt, because "\" is actually a (saved) backslash. However, if it is: var path = "" ... .. file.txt "; then This is the same. @ Means that you want the string without any escape, so both "path" variables are the same.

c - Dynamic modules with DLLs on Windows -

I am writing an application in C, which can be extended through the module / share objects / DLL on runtime. Those modules can use the existing program's API, but can also provide new functions for use in the loaded modules later, so the module is expected to have dependence on each other. My current view under Linux is that each module defines a dependent () function which gives a list of other module names that it depends. In this way, I can compile and link each module for myself, can load a module with the depletion () and RTLD_LAZY , first resolve your dependencies and then fix it Fully load with RTLD_GLOBAL . It works just fine and what exactly do I want This allows me to change a module without composing again all the other modules. The real problem occurs when first of all when porting Windows, I have not found any way to link any DLL without providing any of its dependencies with the export symbol tables. . Did anybody ignore me? Second, LoadLibraryEx does not ...

macros - Is there anyway to have vim not count special characters as words? -

I am using VIM using the matrix. The column has lots of text and I want to move the macro between the columns easily by pressing the w key to "move on to the beginning of next word" for example To: DataSourceName string "extension" [strings] string DynamicControlBorder boolean may be empty; zero projection boolean True FetchDirection long 1000 FetchSize long 12 filter string "" group string string "" havingClause string " Code> However when I do this The front, VIM only for letters; Whenever it is interpreted as "[" or "another word, it grows the macro, because now it appears that there is an additional column. Do I have any settings Can I change so that I neglect VIM and behave like a letter by skipping them on a special letter? [Update] I got a better response to this question in SuperSyar.com: You can do special part of the word word, see the iskeyword option. In your case, you can just try...

Perl: recomended method to plot(x,y) pixels to a monochrome bitmap -

I should plot for home project (x, y) coordinates on 400x400 black and white-bitmap. What Pearl module would you recoment and what would be easy to handle on image format (GIF ?, PNG? Other?) OS X, Windows, Linux? Edit My solution is based on GD, as recommended by Brian Agnew Strict ; Use warnings; Use GD; My $ Bitmap = GD :: image- & gt; New (400,400); My $ white = $ bitmap- & gt; Color alarms (255,255,255); My $ black = $ bitmap- & gt; Color alarms (0,0,0); # Frame bitmap $ bitmap- & gt; Rectangle (0, 0, 39, 9, 39, $ black); # Transparent image, white background color $ bitmap- & gt; Transparent ($ white); # For some conspiracy, to show that my $ x (0..100) {my $ y (0 .. 100) {$ Bitmap- & gt; Set pixel (250 + 100 * sin ($ x) - $ for y, 150 + 125 * because ($ x) + $ y, black $); }} Open my $ FH to open the file # $ PH, "& gt;", "test.png" or "$!" Die; Binmode $ fh; Print $ FH $ Bitmap- & gt; Png; Close ($ FH)...

mod rewrite - Renaming PHP URLs with HTACCESS -

I am preparing a web app that puts a link like the following: I want to see something like this: Is it possible to have HTACCESS? -b To restart the URL, first of all: Make sure that you have mod_rewrite Is enabled on your server. Make sure you have the appropriate permissions to add rules to your .htaccess file. ( AllowOverride must be set to all or FileInfo to be included) Then the following .htaccess file in your web root: RiverEngine on RAVR Rule ^ ([\ -_ 0- 9A -ZA-Z] +) $ index .php? A = $ 1 [L] You can customize as many as RewriteRule . The first parameter is a regular expression matching the REQUEST_URI (again to get the folder in .htaccess ). The second parameter is that you want to rewrite it, $ n if you have your mail group

tortoisesvn - SVN: locally ignore files when updating -

I would like to delete / replace some files in my local SVN repository and then will not attempt to update during updating SVN (Just for me on my local machine) I have to do a specific bug test with this customer data, but 12 of them are GB, so I would like to replace some DB file with dummy (empty with empty structure (MDB)) Is this possible? Thx, Milan and I want SVN to update these files to ignore (especially not to bother with conflict). This is not possible though, you can update all other files you select.

java - Confusion in line about Body Content -

I'm really confused about the BodyContent class in the following code, which I have taken From Zawadok: Note that the content of bodycontent is the result of evaluation, so it will not include actions and similarities, but the result of their being spoken I do not really get it, what do they mean in the top row If anything that is evaluated / rendered in the body (i.e. code executed), then it will be executed and results will be included in the content. In order to keep it in another way, the materials will be included without performing the functions.

ruby on rails - How do I create a more meaningful error message in this case? -

बोलो मेरे पास निम्न मॉडल है: class information & lt; ActiveRecord :: बेस ... validates_length_of: नाम,: न्यूनतम = & gt; 3,: message = & gt; "3 वर्णों से अधिक लंबा होना चाहिए!" ... मुझे एक त्रुटि के रूप में क्या करना है: 3 वर्णों से अधिक जानकारी होना चाहिए! (या समान) और नहीं "सूचना नाम 3 वर्णों से अधिक लंबा होना चाहिए!" । मैंने देखा दो संभव समाधान हैं: human_attribute_name विधि (उल्लिखित): मेरी रेल 2.3.2 के साथ काम नहीं करता। : - ( सीधे एक Info.errors.add "", "..." यदि information.name.length & lt; 3 : हालांकि, यह validated_length_of पद्धति द्वारा ट्रिगर कई उपयोगी गुणों को हटा देता है विशेष क्लास-टैग्स (सामान लाल रंग के लिए)। कोई विचार? आपके समय के लिए धन्यवाद। मुझे लगता है कि आप full_messages विधि के माध्यम से त्रुटि प्रदर्शित करते हैं, जो कंसोल के लिए होती है, वेब अनुप्रयोग उपयोग के लिए नहीं। आपको त्रुटि_ संदेश_ऑन या error_messages_for इसके बजाय सहायक (देखें उदाहरण: & lt;% = ...

c# - .net library (dll) optimization -

I am trying to use the PDF library ITextSharp in my project. Iitchshops have so many features, I am not even using 5% of them. I'm just thinking, why should I send the entire DLL file, when I use it only 5%. Is there any way to permanently link the library to my site and remove all unused methods? , Library features? There is no benefit to static linking. NET DLS. It is not easy to decide that you are using only 5% of the library, the library may be using too many internal codes to do very little things, with naked eyes. Although iTextSharp is open source, you can create a strip-down version of iTextSharp to ship with your project. The way iTextSharp is small enough compared to the earlier DLL on non-day.

php - Regular Expression To Extract Lines Not Containing HTML Block Tags -

I'm looking for a regular expression to remove all the adjacent lines containing HTML block tags Yes, but HTML can be inline tags . For example, if I have the following text ... bla bla bla bla bla & lt; Code & gt; Bla bla & lt; / Code & gt; Bla bla bla bla bla & lt; Img src = "" alt = "" / & gt; Bla bla bla bla & lt; Div & gt; Bla bla bla bla bla bla ... I just want to remove the following lines ... bla bla bla bla bla & lt; Code & gt; Bla bla & lt; / Code & gt; Bla bla bla bla bla & lt; Img src = "" alt = "" / & gt; Bla bla bla bla Is it possible to do this with regular expressions? Update: I am also working with PHP and I have a variable named Block Tags block tag is an open tag or closed tag, then It does not matter. "h1" | Div "; Stop exploring Your task requires an analyzer, Can open and close, and it is something that can not do classic...

c++ - How to divide a string into parts - Roman numerals -

I am trying to divide a string into parts to read Roman numerals. For example, if the user enters "XI" I have to understand the program that I am 1 and 10 in order of 10 Such a data verification for if (string roman == "X") int roman + = 10; e.t.c. To access the character of a person from a string, use square brackets Do: Integer number = 0; Four R = Roman [0]; If (R == 'X') {num + = 10; } There is no one complete example above, but you must be sufficient to begin. This example looks like the first letter of the character in the string Roman (letters are started on the left with numbered index 0). Checks to see if the character is 'X' , and if so, then 10 num increases the variable by 10.

c# - CrystalReport Load report failed -

I have a window application project (C # and .NET 2.0) which used crystal report 2008. But I get an error sometimes (it seems to be wrong) in the loading report. This error is: CrystalDecisions.Shared.CrystalReportsException: load report failed. System.Runtime.InteropServices.COMException (0x8000020D): Unable to load reports. CrystalDecisions.ReportAppServer.ClientDoc.ReportClientDocumentClass.Open CrystalDecisions.ReportAppServer.ReportClientDocumentWrapper.Open (Object & amp; DocumentPath, Int32 option) on CrystalDecisions.ReportAppServer.ReportClientDocumentWrapper.EnsureDocumentIsOpened () on the OpenObject (Object & amp; DocumentPath, Int32 option) Internal end upstream stack trace --- CrystalDecisions.ReportAppServer.ReportClientDocumentWrapper.EnsureDocumentIsOpen () CrystalDecisions.CrystalReports.Engine.ReportDocument.Load (string filename, OpenReportMethod openMethod, Int16 parentJob) CrystalDecisions.CrystalReports.Engine.ReportDocument.Load (string filename )...

subsonic3 - Subsonic 3 Guid as PK always gives me 00000000-0000-0000-0000-000000000000 -

Using subsonic 3, add simple repository always gives me 00000000-0000-0000-0000-000000000000 for my PK Which obviously causes an error in my DB, I see that the definition of my PK made by Subsonic is using new (), but still this is a problem. Anyone else having this problem? FYI I am using a local Sql Server 2005 DB in an AppData directory. When you use Guid's subSonic, you expect them to be set. Your best bet is Guid.NewGuid () in the manufacturer Remember that SimpleRepo is "POCO-first" thinking DB is just a place for data.

memory - Can I programmatically view the managed heap contents from a .NET application? -

Is this one? It is possible to reach the managed pile in the NET application and eg Currently calculating the allotted items? I know that there are many tools that allow you to do this, but I will do it myself with the code so that I can use it in automatic testing, as if after closing a form, all Some settlement becomes clear and clean. The source is a profiler with code available.

Jquery Jqgrid + Asp.Net don't work too easily? -

I am struggling with this JQgrid to work with Asp.Net. I found Asp.net samples online ... but if I am modifying them according to my database then it is a flop. Do I need to convert datatel into JSON functions too? Out of my search, I found that these 2 articles make me very close ... But if I use my own data table If you try a sample project then it just does not work. For ASP.NET we have ASP: Gridview Control Server-side components with similar programming experience / APIs have been created. Note that the server side component is not free though. You can see more than 30 examples of jqGrid ASP.NET here Download more components and sample projects. Rumen Stankov jqGrid

javascript - Help with regexp to extract values from inside brackets -

I would like to get a regexp that will remove the following. I have a regexp to validate it (I've mixed it together, so it can not be the best or most efficient). some.text_here: [12,34], [5678] The first part of the colon may include a period or underlining The bracketed numbers after the colon are directing [x1, y1], [x2, y2] ... I just need a number from here. And here is the regexp validator I was using (for javascript): / Pre> I'm quite new to regexp, but I can not know how to extract values ​​so that I get name = "some.text_here" x1 = 12 y1 Can do = 34 x2 = 56 y2 = 78 thanks for any help! Try this regular expression: / ^ ([ \ W \ d -_.] *): \ [(\ D +), (\ d +)], \ [(\ D +), (\ d +)] / var str = "some.text_here: [ 12,34], [56,78] "; Var match = str.match (/ ^ ([\ w \ d -_.] *): \ [(\ D +), (\ d +)], \ [(\ d +), (\ d +) ] /); Warning ("name =" + [[1] + "\" "\ n" + "x1 =" + match [2] +...

ruby on rails - Calculating item counters for a set of selected categories -

There are many classification criteria for recipes in our Ruby on railway projects, such as cook method, opportunity etc. Each recipe is one or several of these categories when one starts browsing for recipes, then it can reduce a set of specific categories. So we need to calculate the number of recipes in all categories accessible from this set ("accessible" means that there are dishes in the category which are of the selected categories). This is similar to how Amazon search works: Someone enters the 'software' and the menu on the left is called "books (200)", "movies (300)" etc., so that users can click on these links Can go deeper. We have implemented it now: create a set of selected categories from the URL; Make a query that matches the category IDs from all the recipes that are currently in selected criteria; Create an index that maps all the category IDs for the count of recipes, and present only those who have zero-zero counter...

iphone - How to render text with clickable hyperlinks where you can control the action for click? -

I'm trying to display some text in my app where the text may have some URL. I want to highlight URLs as hyperlinks and clickable. Also, when it is clicked, I want to provide a callback where I can perform a custom action. Of course the URL should be returned to my callback so that I know what to do with it (an in-app Open it in browser etc.). It may look complicated, but basically all IM applications (more than 30) in AppStore have this functionality where the user can send the URL to the IM and the receiving end can click on it And open the page in the in-app browser How is it done? I can not understand it if you have a solution, please provide the sample code. Thank you. BTW: The answer is not a UIWebView (because it is too slow to present many examples is). The answer is also NOT A UITextView , although this URL is capable of parsing, a custom callback can not be set on this click. So it ends up opening the safari. The answer is also not a TTSTLead text ...

c - Pointer to struct within the nested structs -

I am trying to run the following code (in GCC 4.3 on fedora 11 i586): #include & lt; Stdio.h & gt; # Include & lt; Stdint.h & gt; # Include & lt; Stdlib.h & gt; Straight s_smallstruct {int smallstruct; }; Struct s_test2 {char * test2; Struct s_smallstruct * smallstruct; }; Struct s_test3 {char * test3; Struct s_smallstruct * smallstruct; }; Struct s_test1 {char * test1; Struct s_test2 * test2; Struct s_test3 * test3; }; Int main () {struct s_test1 * test1 = (struct s_test1 *) malloc (size testof 1); Test1- & gt; Test 2 [0] .smallstruct [0] .smallstruct = 123; Intuit = Test 1- & gt; Test 2 [0]. Smlstruct [0] .smallstruct; // straight s_smallstruct * smallstruct = (straight s_smallstruct *) malloc (size smallstruct); // small edit [0] .smallstruct = 12; // integer number = small structure [0] .smallstruct; Printf ("% d \ n", number); Return EXIT_SUCCESS; } But I've got a sygfault on test1-> test2 [0]. [0]. Smaltstruct [0] .smalls...

printing - Is there a way to use the same CSS stylesheet for print media and the default layout? -

I'm looking for a method to use the same stylesheet for print media for the on-screen layout by default It will be advantageous that whenever I update the CSS, I do not have to update 2 files. I have to like a stylesheet and have to specify special rules by telling them some way to print media ... this may not be possible, but I thought I would put a question from there. @Media Print {Body {background: #fff; Color: # 000; } / * Etc * /}

How to get subset of string using Javascript/JQuery/JSON? -

I want to get a subset of a string in javascript. Currently, I only know how the entire string is stored: I have this as a JSON variable, which is called foo: Foo ({"result": ["& lt; div id = \" the following \ "& gt; & lt; span & gt; & lt; a href = \" http: //twitter.com/barackobama \ "& Gt; Obama & lt; / a & gt; & lt; / span & gt; & lt; / div & gt; "]}) and this is my callback function: function foo (o) {var wholeDiv = o.results [0]; } How do I archive tags in the form of a string in javascript " ...? With jQuery, you can parse a piece of HTML in the form of another argument You can. Then, update your foo function: $ j = jQuery.noConflict (); Function Fu (O) {var JustTheLink = $ j ('a', o.results [0]). Parent (). Html (); } Update: To handle with multiple links, you can: function foo (o) {$ j ('a', o result [0]). Each (handle SRC); } ...