Posts

Showing posts from July, 2011

jquery - Hover + Mousemove, how could I reduce the repeated code? -

I looked at StakeVarf Flo, and I'm not a programmer, I'm sure that I have some basic knowledge, and jquery context is unavailable. The website is not helping it. I have to use both mousewov and hover, to find out that it is running on a mouse (which can be an animation) at the top of an image. My problem is that I want to reduce the same code I am using to mystuff , but at the same time I have the option of myotherstuff . How should I write codes? $ ("# central .img"). Mousemove (function () {* mystuff *}); $ ("#incent.img"). Hover (function () {* mystuff *}, function () {* myotherstuff *}); Thanks for your help Reuse. function myfunction () {* mystuff *} $ ("# central .img"). Mousemove (myfunction); $ ("#incent.img"). Hover (myfunction, function () {* myotherstuff *});

operating system - How to use a page table to convert virtual address to physical address -

निष्पादन कार्यक्रम के लिए निम्न पृष्ठ तालिका पर विचार करें वर्चुअल पृष्ठ #: 0 1 2 3 4 5 पृष्ठ फ़्रेम #: 8 3 9 x 0 1 इस कार्यक्रम में 32 बिट वर्चुअल पतों को बनाया गया है और इसमें 512 शब्द प्रत्येक के पन्नों के होते हैं। कार्यक्रम निम्नलिखित आभासी पता 1749 उत्पन्न करता है। क्या भौतिक पता इसे मैप किया गया है आप पहले क्या काम करते हैं वर्चुअल पृष्ठ जो उस पते से है, उस वर्चुअल पृष्ठ से ऑफ़सेट, और फिर समतुल्य भौतिक पता देखने के लिए अपनी पृष्ठ सारणी का उपयोग करें। वर्चुअल पता स्थान मानते हुए कोई छेद नहीं है, पते से रूपांतरण पृष्ठ पर पेज आकार (आपके मामले में 512) द्वारा विभाजित करके किया जा सकता है। पृष्ठ के भीतर ऑफसेट वर्चुअल पता और वर्चुअल पृष्ठ प्रारंभ पता के बीच का अंतर है। ऊपर दिए गए उदाहरण में, वर्चुअल पृष्ठ 213 के ऑफ़सेट के साथ पृष्ठ 3 होगा। फिर आप भौतिक पृष्ठ देख सकते हैं जो आपके पृष्ठ तालिका में आभासी पृष्ठ 3 से मेल खाती है। यहां, यह x है तो भौतिक पता होगा (पृष्ठ का प्रारंभ का भौतिक पता एक्स + पृष्ठ में ऑफसेट होगा), अर्थात (पेज एक्स की शुरुआत) +213। पेज की शु...

java - graphical visualisation of twitter data -

What method can I use to get location from messages on Twitter All of the Twitter API calls return to the tweets, returning GO Latitude as part of the data for the tweets. But only a small percentage of tweets contain this data, because people do not turn on the option to add this cell. The collections I have collected, in most of those sets, the geo code rate was 0.5% or less. Each tweet given by the API also includes the user's full profile, in which he has typed in the location field. This is usually some strange jokes, like "here"

jquery - How to create a sequence of functions? -

मैंने करने की कोशिश की myfun (params, function () {// something happen }); लेकिन यह काम नहीं कर रहा है, और मैं बिल्कुल नहीं जानता क्यों, और मैं पागल हो रहा हूँ। मैं अभी भी कई हफ्तों के बाद एक समस्या पर मेरे सिर की पिटाई कर रहा हूं, और मुझे वास्तव में एक मदद की ज़रूरत है क्योंकि मैं जेक्जरी सिंटैक्स में बहुत अच्छा नहीं हूं। मैं क्या हासिल करने की कोशिश कर रहा हूं: आप एक सर्कल क्षेत्र के अंदर होवर कर रहे हैं, यदि आप फ़ंक्शन के क्रम को ट्रिगर करते हैं, तो एक दूसरे के बाद (इस मामले में एनीमेशन की श्रृंखला दिखा रहा है)। और मैं "एक के बाद एक" नहीं कर सकता। मैं ऐसा करने की कोशिश कर रहा हूं, क्योंकि सफारी में जब आप त्रिज्या-सीमा के साथ एक लिंक बनाते हैं, और आप तत्व पर मंडराना चाहते हैं, यह अभी भी व्यवहार करता है एक वर्ग के रूप में और मैं छवि-नक्शे का उपयोग नहीं करना चाहूंगा। के रूप में अच्छी तरह से मैं एक ही फ़ंक्शन का उपयोग फिर से नहीं कर सकता एक चक्र क्षेत्र में एक बार से अधिक होवर को देखने के लिए (मुझे मत पूछो क्यों, मैंने समझने की कोशिश की लेकिन मैं समझदार या पर्य...

multithreading - what is the best multi-threading technique in c# -

I am developing an application that is running a lot of TcpListener functions, with C #. Listening to getting an xml message Read an ID from Li> A special camera based on ID takes snapshot and stores it in the folder This is to run within 1 second, so I can take a snapshot with the camera. Using the following code, I have been delayed in executing this task: private threads listen_thread; Public zero start_listen () {this.listen_thread = new thread (new threadstart (save_data)); This.listen_thread.Priority = ThreadPriority.Normal; This.listen_thread.Start (); } Private Zero save_data () {// work done} Is this the best multi-threading technique to use? This app is running on the Dell Powerz 2900 with 2 quad-core professors, and I think it can be fast, how can I be able to improve the latency of this code? Code for TCListener Int32 port = controller_port; Try {// this server IP IP address LocalADR = IPADressesPers (IIP); Server = new TCPListener (localader, ...

php - How to delete all shopping cart items of all customers in Magento? -

I want to remove all shopping cart items (added products in the cart) from all Magento customers. How can I do this? In detail : - Suppose, I have 10 registered customers in my shop. The item (product) may be added to the car. I want to clear all items added to the cart for all 10 registered customers. My first guess would be something like this, $ items = mage :: getResourceModel ('Sales / Quote_tam_collections'); Forex Currency ($ item $ item) {$ item- & gt; Remove (); } The cart item is stored as part of the 'quote'. The look may slow down among all these, doing so is fast in SQL, but not secure. TRUNCATE `sales_flat_quote_item`;

wpf - how to print strings on definite number of bits in C#? -

I 2010 - WPF - C # I do not know how to know the number of bits that will be reserved for the string when printed on the screen. We used to write back the code in Pascal ("some string here"): 20 - and the string will be printed on only 20 bits. How do I do this in C #? then in WPF:

How to replace the current Java process in Windows using JNA/JNI? -

I want to change the current Java process in something new as it does already, but I might have something Want to consume a solution in the form of memory (recommend using the ClassLoader s, which can lead to memory leaks; using similar solutions should be just one To begin the proper process) it is definitely the sub-JNI By doing yoga can be done on a platform-dependent basis, and I think I can do it for Unix (and already exists for Unix), but I do not know almost anything about the related Windows API Should Windows Phone Call Me? Has anyone already done it? There are many sub-systems running on the base OS with Windows, so it's what you want to do It helps in understanding something about it. For example, if you can use the C run-time library, then you can only use the family of functions which are similar to their Unix cousin. Maybe you can modify jniexec to work with windows by using these.

iPhone - How add a final line in a UITableView to add items, preventing rearranging of this line -

मेरे पास एक UITableView संपादित मोड में डाल दिया है। Self.tableView.editing = हाँ; इस तालिका दृश्य में, मुझे कस्टम कक्ष में कुछ पंक्तियां दिखाई देती हैं, और मैं अंत में एक जोड़ना चाहूंगा जो उपयोगकर्ता को एक आइटम जोड़ने की अनुमति देगा (दूसरे दृश्य का उपयोग करके) ) तो मैं कुछ लाइनों ने लिखा है: - (NSInteger) tableView:। (UITableView *) tableView numberOfRowsInSection: (NSInteger) अनुभाग {वापसी "लाइनों की संख्या" + 1; } - (BOOL) तालिकादृश्य: (UITableView *) तालिकादृश्य चाहिए चाहिएखबरएडटिंग RowAtIndexPath: (NSIndexPath *) indexPath {वापसी हाँ; } - (UITableViewCellEditingStyle) tableView: (UITableView *) tableView editingStyleForRowAtIndexPath: (NSIndexPath *) indexPath {if (indexPath.row + 1 = [tableView numberOfRowsInSection: 0]!) ​​{वापसी UITableViewCellEditingStyleDelete; } और {वापसी UITableViewCellEditingStyleInsert; }} - (शून्य) tableView: (UITableView *) tableView willDisplayCell: (UITableViewCell *) सेल forRowAtIndexPath: (NSIndexPath *) indexPath {if (ind...

javascript - Getting User Input for Yahoo Pipes Script -

I'm a little bit of a Noah on some of these, so I was thinking that if someone hopes that What can I do is the simple question? I have developed a Yahoo pipe, which takes the name of the input (label) as input. After this, the Yahoo pipe should be run to produce the output. The snippet of code below is given when I run Yahoo pipe from the Yahoo Pipes page. Now my question is, I want to run this pipe from my site and instead of leaving the site and going to the Yahoo Pipes page, I want to get the desired label input. & lt; Script src = "http://l.yimg.com/a/i/us/pps/listbadge_1.4.js" & gt; {"Pipe_id": "6c3a35f3d8e3cdb8ef270a3565d64ca3", "_btype": "list", "pipe_params": {"tag": "cooking beef chicken"}, "width": "600", "height": "500"} & Lt; / Script & gt; I want to get a simple form that fills the user and wants to generate the code ab...

c++ - recursively check if number is a prime -

I am trying to check that the number is a major (all numbers below it by dividing by n) here My attempt is: bool isPrime (int n, int d) {if (d == 1) the truth comes back; Other {if (n% d == 0) {return false; } And return (N, D-1); }} n - Number to check whether the head is the number given below when calling the D-function n-1. Please help me understand what I am doing wrong. You are not calling your function again. Return (n, d-1); should be return isPrime (n, d-1);

Search on developer.android.com from Firefox search bar? -

Is there ADN available for this? (Hopefully, with full functionality) search developer.android.com can be interesting on that. No auto-complete, though: - (

Keeping track of time in Java -

संभव डुप्लिकेट: जावा में समय की एक निश्चित अवधि में मैं शेष समय का ट्रैक कैसे रख सकता हूं उदाहरण के लिए, मैं इस आउटपुट को प्रत्येक दूसरे उपयोगकर्ता को प्रदर्शित करना चाहता हूं: आपके पास 50 सेकेंड हैं, आपके पास 1 सेकंड के बाद / सेकंड के बाद आपको 2 सेकंड के बाद 48 सेकंड / और इसी तरह। आप Thread.Sleep को उपयोगकर्ता की प्रतिक्रिया के समय के लिए एक तंत्र के रूप में उपयोग कर सकते हैं, लेकिन मैं उलटी गिनती में सटीकता के लिए उस पर निर्भर नहीं होता। Thread.sleep यानी 1000 मिलीसेकेंड के बाद धागा सक्रिय हो जाता है, लेकिन धागा वास्तव में दोबारा चलने से पहले थोड़ा अतिरिक्त समय लग सकता है। इसके बारे में कैसे: इंट शेषटाईम = 50; लंबे समयबाह्य = System.currentTimeMillis () + (शेषटाइम * 1000); जबकि (सिस्टम.currentTimeMillis () & lt; टाइमआउट) {Thread.Sleep (1000); System.out.println ("आपके पास:" + (टाइमआउट - सिस्टम क्वॉर्टंट टाइम मिलिस ()) / 1000 + "सेकंड शेष"); }

debugging - CSS Debuggin for IE -

I see really strange CSS float behavior in IE and I am trying to diagnose this issue. Is the firebug or chrome an "integrated inspection" element in ISE? How do you usually debug CSS positioning issues in IE? Some options are available, in IE8, a decent developer toolbar has been created, by pressing it F12 or Are not going to the Options menu and can access it using Developer Tools. Does not work with firebug only, but once you are able to select an element, you can easily change the styles. Firebug Lite is another option, although I have used it in IE.

PHP array in $_SESSION - weird result -

Can anyone explain this to me?: if (isset ($ _ session {Pack}]} {{if_array ($ _ session ['pack'])) {foreach ($ _SESSION ['pack'] as $ pack) {// code}}} I get: Warning: invalid argument has been provided for foreach () and if I dies (var_dump ($ _ session ['pack'])); find me array (1) {[0] = & gt; String (2) "16"} I'm really laughing with this one, I need to get ready for it tonight and I'm stuck with it. .. foreach ($ _SESSION [p> 'pack'] $ pack form If you have enabled, then $ _ session ['pack'] will be the same as $ pack . This can produce strange results, either make sure that register_globals are disabled or replace $ pack with something else.

html5 - Link with time tag -

क्या सही होगा? & lt; a & gt; & LT; समय & gt; TIME_HERE & lt; / समय & gt; & Lt; / a & gt; या & lt; समय & gt; & Lt; a & gt; TIME_HERE & lt; / a & gt; & Lt; / समय & gt; या शायद ऊपर के कोई भी मान्य नहीं है। विनिर्देश इंगित करता है कि बिना दिनांक समय विशेषता सामग्री एक मान्य दिनांक या समय स्ट्रिंग होनी चाहिए, इस प्रकार एंकर को समय तत्व को बजाय लोड करना चाहिए रिवर्स। यदि कोई दिनांक समय विशेषता मौजूद है, तो सामग्री को किसी तिथि या समय को निर्दिष्ट करने की आवश्यकता नहीं है और आप संभवत: एक एंकर टैग को अंदर रख सकते हैं। नोट करें कि विनिर्देशन में से कोई भी उदाहरण तत्व तत्वों (पाठ नोड्स के अलावा) के समय के तत्व में है।

iterate through alphabet in prolog -

मान लीजिए कि मैं आइसिन (0, _)। आईएसआईएन (एन, लिस्ट): - सदस्य (एन, लिस्ट), लिहा (एन), एन 1 एन -1 है, आईएसआईएन (एन 1, लिस्ट)। लेकिन सूची में वर्णमाला प्रतीकों होंगे (उदा। [A, b, d, e, h])। मैं पुनरावृत्ति के लिए अगले तत्व कैसे भेज सकता हूं? (इसलिए एन एक प्रतीक है, एक संख्या नहीं है)। और अगर यह संभव नहीं है, तो मैं कैसे ऐसा कुछ कर सकता हूं? धन्यवाद अग्रिम! @ जूलकिइविज़ लगभग वहां है: आइसिन (ए, _) आईएसआईएन (चार, सूची): - सदस्य (चार, सूची), चारकोडा (चार, कोड), लिखना (चार), कोड 1 कोड -1, चारकोडा (चार 1, कोड 1), आईएसआईएन (चार 1, सूची) है। ध्यान रखें कि विधेयिक हमेशा a पर सफल रहेगा, जैसे आपका मूल संस्करण हमेशा 0 पर सफल होता है। आप इसे आधार क्लॉज जैसे कि isin (char, _): - चारकोडा (ए, ए), चार ए-1 को बदलकर रोक सकते हैं। (लेकिन यह वास्तव में एक बदसूरत हैक है।)

mysql - Hotel Booking Rates SQL Problem -

Hello, after reading other questions here on stack overflow, try to get your own system to check room rates I am doing My query works fine and produces correct dates when there is no overlap in reservation dates, but when one overlaps, I get an extra day on my second row of results . For example one person arrives on 2011-04-14 and leaves 2011-04-16 (2 days). Rates vary between 66 to 70 at the rate of 15, so it should be at 1 day 66 and at 1 day 70. I have tried without time - just like this on DATE. query SELECT rates.rate_id, rate_start_date, rate_end_date, rate_price, (DATEDIFF (IF (rate_end_date> '2011-04-16 14:00:00' , '2011-04-16 14:00:00', rate_and_date), IF (rate_start_date) '2011-04-14 12:00:00', '2011-04-14 12:00:00', rate_start_date )) +1) by WHERE rate_start_date at rates of days & lt; = '2011-04-16 14:00:00' and rate_and_date & gt; Rate As per APC ASC Order table rate_rate rate_stat_data rate_and_date...

plugins - Send email with sfForkedDoctrineApplyPlugin on symfony framework -

मैं sfDoctrineGuardPlugin & amp; SfForkedDoctrineApplyPlugin मेरे symfony ऐप पर। जब मैं एक नया खाता साइनअप करने की कोशिश करता हूं, तो यह काम करता है क्योंकि: मुझे यह संदेश मिलता है जो दिखाई देता है: "आवेदन करने के लिए धन्यवाद यदि आप उस ईमेल को नहीं देखते हैं, तो कृपया अपने "स्पैम" या "बल्क" फ़ोल्डर की जांच सुनिश्चित करें। " लेकिन मेरे पास है मेरे मेलबॉक्स में कोई मेल नहीं है। और जब मैं लॉग फाइलों को देखता हूं, तो मैं इसे देख सकता हूं: sfMailerMessageLoggerPlugin ईमेल भेज रहा है "कृपया MYPROJECT पर अपना खाता सत्यापित करें" Email@test.com " जानकारी: यह मेरा कारखानों है। आईएमएल की फ़ाइल: मेलर: वर्ग: sfMailer param: लॉगिंग:% SF_LOGGING_ENABLED% वर्णसेट :% SF_CHARSET% delivery_strategy: वास्तविक समय परिवहन: वर्ग: स्विफ्ट_Smtp ट्रांसपोर्ट परम: होस्ट: smtp.gmail.com पोर्ट: 465 एन्क्रिप्शन: एसएसएल उपयोगकर्ता नाम: email@gmail.com पासवर्ड: पासवर्ड स्थानीय एप्लिकेशन में मेरे ऐप का उपयोग कर रहा हूँ एसएसएल एक्सटेंशन php.ini ...

java - What applications or libraries are available for screen scraping applications on Windows? -

We develop applications that use customers with side-by-side in-house custom software. One of our clients has requested that we check the use of two scrolling software so that one type of integration can be provided between two applications. Our software is written as a Java (QTJ) desktop application, which hosts a web browser control, which runs the application in JavaScript. Client software is a Windows desktop thick client, make sure what's written in it (managed .NET or unmanaged Win32? Maybe even Java). We need to get data from our application, and input it into our application. Their application can not be modified under any circumstances. They have suggested using screen scraping to read information from our app, and have suggested input in the text field within my app. Is there a screen scrapping application that can be used for this purpose? Is there a library which is used in any type of OCR technology? I think I want to avoid hook type in WM_Messages, but why...

Help with PHP MYSQL Select Statment -

I think how can I record the record when a user records multiple rows. Here is the table schema. user_id key value -------------------------- ----------- ----- 1 Lesson This sample text is 1 text_status 0 2 text This sample text is 2 text_state1 From the above table / row you can see that each user has multiple lines So how can I select this case "all id, text value where text_status is" 1 "? And take it 1 step forward, I need an email address of accounts that are on the other table. I am also in the email address How can I write a selection statement for 1? I know that there is an assembly statement for this, but for me this is a bit complicated, especially I am unable to understand the first part. Added note I must say that this table schema is a WordPress default table. Wp_usermeta .. SELECT t1. * Tbl t2 from INNER t1.user_id = t2.user_id and t1.key = 'text' pair on tbl t1. T2.key = 'text_status' and t2.value =' 1 '

ruby on rails 3 - rails3 migration to add new column does not save values to table -

अतः, मैंने निम्नलिखित माइग्रेशन बनाया: class AddAclToUsers & lt; ActiveRecord :: माइग्रेशन डीएफ़ self.up add_column: उपयोगकर्ता, एसीएल, पूर्णांक अंत डीईफ़ self.down removal_column: उपयोगकर्ता, एसीएल एंड एंड हालांकि, विभिन्न ईआरबी फ़ाइलों को संशोधित करने के बाद दृश्य, edit.html.erb में दर्ज किए गए मान डेटाबेस में सहेजे नहीं गए हैं। मैं मैन्युअल रूप से SQlite3 प्रारंभ कर सकता हूं और तालिका का चयन कर सकता हूँ और देखें कि कॉलम बनाया गया था लेकिन कोई भी मान दर्ज नहीं किया गया है। मैं मैन्युअल रूप से अद्यतन या नया कॉलम जो कि नियंत्रक प्रश्नों और सही ढंग से प्रदर्शित करता है में शामिल कर सकते हैं। चौखटे udate / save ?? में क्या गलत हो सकता है पर कोई सुझाव - डैनियल कृपया attr_accessible की सूची आपके उपयोगकर्ता मॉडल यदि आप Devise की तरह प्रमाणीकरण के लिए मणि / प्लगइन का उपयोग कर रहे हैं तो आपके पास मॉडल में attr_accessible की एक सूची होगी। attr_accessible सूची में नया एट्रिब्यूट ( acl आपके मामले में) जोड़ें। अगर यह मामला नहीं है, तो मैं आप अपना दृश्य, नि...

regex - "eager" regexp matching -

I have to remove the string between two delimiters, i.e. "123XabcX321" I need "123321". For a simple matter, I am fine with the following: $ _ = & gt;; S / X (. *) X //; Print; But if there is ambiguity in input like "123XabcXasdfjXasdX321", then it matches X before the previous X and I get "123321" but I need "123asdfj321" Is there a way to specify a "curious" match that matches the first valid delimiter and is not the last one? This is usually called "unbound", do you put one? After Quantifier: s / x (. *?) X //;

model view controller - MVC vs HMVC for web application development -

Now, I am using MVC pattern for web development. I use Codeigner Framework I found and, they are using HMVC, I am still not clear from HMVC and why should we use HMVC instead of MVC? I am confused after reading the HMVC pattern and it is not very different with MVC. Can you understand why we should use HMVC for web application development? The hierarchical-model-view-controller (HMVC) pattern is a direct extension of the MVC pattern Which manages to solve many scalability issues already mentioned, HMVC was first described in a blog post entitled on the JavaWorld Web site in July. Most of the articles focus on the benefits of using HMVC with a graphical user interface. It has been done that the authors actually re-interpreted another method called Presentation-Abstract-Control (PAC), described in 1987. JavaWorld's article provides detailed explanation how HMVC can assist in the design of desktop applications with GUI. HMVC can be used to create scalable web applications t...

c++ - How to check if there is a file input using pipe -

How can I know the command line: ./main or: ./main & lt; Generally you should not take care or care, but if you really need it, you can use it. If something is going to be input from a console (possibly (filename (stdin)) // // is probably getting input from a file, Neither is a standardized part of isatty or fileno , but both are included in posix (if memory works) and is available most non -Possix system also (like, on Windows, although MS dislikes these names, and advised to use _isatty and _fileno Ete are).

Customize Tab in Android -

I only want to customize the tab through height when I do it through my text After decreasing the height, how can it make up or middle? I tried between android: gravity = "top" and it is not working, what should I do? You can try it, I hope that it is U

Nhibernate: Get real entity class instead of proxied class -

Is there any way to return nhibernate to my class instead of its proxy class? I will not feel that it is not lazy or can not be updated. You can unproxy class with this code session . Precision Correspondence Unpredictable (Proxyized Instance)

selecteditem - Implementing a menu's "selected" links in Yii -

I have two templates to integrate in my front website and my CMS. My end-to-end website is a high menu generated by the CMS CMS top menu which is the constant menu by me ("Manage page", "manage user", "manage products") Although this menu is still stable, I still want to assign an appropriate class to the appropriate top menu item. Example: If I'm managing some pages on the site then the "Men Pages" link should be highlighted and selected. How would I go about this? Something I need to code myself or is there an existing function in yii that I need to refer to? Thank you in advance Yii Newbie My Controller ( AdminController's Extension Controller ) I have several "menu" functions in the class. I make an active set on every need, and based on what I am getting active on the basis of that work, I have an active set. For example: secure function getAdminMenu ($ activeTitle) {return array (array ('label...

php - Displaying values in FPDF -

This is my code for using FPDF in PDF PHP. I want to display semester, bill month and bilayer in PDF file. I do not want to display values ​​in the table. I want to display at the top of the page How can I do this? Any remedy? Thanks in advance. Cheers. & lt ;? Php session_start (); ('Fpdf / fpdf.php') is required; // Connect to your database $ R1 = $ _ session ['cm1']; $ Thor = mysql_connect ('localhost', 'root', ''); If (! $ Con) {dead ('Unable to connect'. Mysql_error ()); } Mysql_select_db ('hostel', $ con); $ Result = mysql_query ("selection r.hosteladmissionno, r.student_name, r.semester, r.blockname r.branch, m.billmonth, m.billear, (s.days_mess * perdayrate) AS mess_charges, m.perdayrate, s Days_mess , Registration from s.nv_tokens r, student_months, messexp m WHERE s.hosteladmissionno = r.hosteladmissionno and r.mess_type = m.messtype and m.billmonth = 'march' and m.billier = '2014'); $ nu...

javascript - Make my new cloned div as readonly in dialog -

I send div content in jquery after the modifications on the page as a preview of that page in the dialog box Now I want to create a clone diva which is read as a preview in the dialog. how can I do this? Help me function call preview () {$ ('# main container'). Clone () AppendTo ('# previewDiv'); Document.getElementById ('previewDiv') = disabled = true $ Fx.speeds._default = 500; $ (Function () ($ ("(#previewDiv") .dialog ({autoOpen: wrong, width: 600, height: 800, auto close: false, show: "fold", hide: "core", again : $ ("#previewDiv") .dialog ("open"); return false;});})} If read only means that there is no input from the user, but then Also, select and copy the user text, you have to read in the div for each 'input' element, Attribute ('readable', true);

What does the error "unrecognized selector sent to instance" mean in Xcode -

What it means "sent to unrecognized selector for example" in Xcode ? This means that the method is not defined or on the other side, on which a method is calling the wrong object . The classic example of this error is missing from ':' in the selector's call. UIBarButtonItem * doneBtn = [[UIBarButtonItem alloc] initWithBarButtonSystemItem: UIBarButtonSystemItemDone Target: Self-action: @selector (DatePickerDoneClick)]; here, verb: @selector (DatePickerDoneClick :) is expected Actions: @selector (DatePickerDoneClick)

.net - Window owner in WPF without always-on-top behaviour -

Do all the windows without getting everything Is it possible to get some functionality of the owner ? There are two windows, window A and window B. I want to make it so that the selection of any one leads them to the top of other applications, but can either overlay someone else (in reality, there are only two, but they should behave like this.) If I set A from window B to owner , then switching on both sides of the stretch will be of other applications (which I want), but B will always have to be placed at the top of A ( Which is not me Should). I actually have code that is tracking the window hierarchy independently owner / proprietary window , so I probably solve that activation problem So if this simplifies the problem, then I am looking for an alternative answer: How do I really "When this window becomes active by the user, the windows Bring a specific set of All I have is an app for z-order just by protecting my existing z-order relative to each other? ...

How to configure log4j and Selenium Grid? -

When I launch a grid hub using ant, it is by default on the long console. I would like to know that there is a way in which I can change the build.xml file of Selenium Grid and include a log4j logger in it. I understand that I can specify a log file for the ant by using the --logfile option, but this would be the reason for overwriting the log file every time this grid is launched. I want to make sure the log file is automatically named so that there is access to the threshold for better maintenance. Some examples will be appreciated on how to do any help and if possible, (i am new to using log4j , that is why i demand some samples for this specific requirement I'm here). You must specify its configuration file along with the location of the Log4j archive when launching Selenium . In the following example, I entered the log4j.hub.properties / etc / selenium directory and the log4j.hub.properties configuration file located in log4j Updated the classpath to loa...

php - etomite: function eregi() deprecated ... but it isn't anywhere? -

Can anyone help me with this error? I've searched all web files for "Eagle" and it's not really anywhere ... what's going on with this error? : O 574 if (is_are ($ parameter)) {575 extract ($ params, EXTR_SKIP); 576} As you can see here /data/web/lubela.sk/web/index.php(576): eval () 'd code this is not in your code as a concrete function call , But somewhere in a string, which you send to eval "Eval is evil" anyway;) Find out that the code from that row comes from the wire and Then you should know where you want to see eregi . / P>

data binding - Accessing underlying ViewModel properties within a WPF DataGrid GroupItem DataTemplate -

I have a grouped WPF DataGrid (Standard Microsoft is one) to represent some data on the UI for our users. To show the sum in the grouped areas, we are overriding the group item datappler, as in XAML: & gt; Style Target Type = "{x: Type GroupItem}" & gt; & Lt; Setter Estates = "Template" & gt; & Lt; Setter.Value & gt; & Lt; ControlTemplate TargetType = "{x: Type GroupItem}" & gt; & Lt; Border Borderbrush = "DarkGrey" BorderTrains = "1" padding = "12,0" & gt; & Lt; Expander VerticalContentAlignment = "Center" IsExpanded = "{Binding., Converters = {Converters: Extended Group Converter}}" Extended Direction = "Top" & gt; & Lt; Expander.Header & gt; & Lt; Canvas & gt; ** & lt; TextBlock text = "{binding} /> ** gt; & lt; /Expander.Header & amp; mj; ItemPresenter / & gt; & lt; / Expander & gt; & ...

How to set My Application instead of default android contacts's Application -

When I click the contact icon in the menu list, open my application instead of creating. Just tell me what I do in the manifest ... Plz thank me in advance. Plz give me your gold time for this .. If we are in Android We are looking at Android in Android contacts in Android, then we find it & lt; Activity ..... & gt; & Lt; Intent-Filter & gt; & Lt; Action Android: name = "android.intent.action.VIEW" /> & Lt; Category android: name = "android.intent.category.DEFAULT" /> & Lt; Data Android: mimeType = "vnd.android.cursor.dir / person" android: host = "Contact" /> & Lt; Data Android: mimeType = "vnd.android.cursor.dir / contact" Android: host = "com.android.contacts" /> & Lt; / Intent-Filter & gt; & Lt; / Activity & gt; Which intention filter is what they use inside the activity, when they display a contact. You may have to walk around a few hours to ...

concurrency - Scala: How is Barrier Synchronization implemented? -

Anyone have any idea that barrier synchronization has been implemented internally? I'm guessing that this is using semaphaurus , but I'm wondering how does it actually work, do anyone know? I think a Samphar can create an array for each process in a simple way to consider it. Any better / more efficient implementation? OK, sorry for this people, I've found it after all. Here is the case that anyone is interested. class barrier (n: it) {emphasis (nacety; 1); Private Enough = 0; // Waiting for the number of procedures currently waiting for the private val wa = new semaphore; WaitSem.down Personal Val mutex = new semaphore; Def Sync = {Mute x Down; If (wait == N -1) {waitSem.up; } And {wait + = 1; Mutex.up; WaitSem.down; Wait until wait -1 = 1; If (wait == 0) mutex.up; And wait em.up; }}}

java - Code for searching in a String if it contains a Char[] array? -

I am developing an app to find a text ( searchString ) in Arabic There is a feature language if it is in .txt file (.txt file is also in Arabic language). Since Android Arabic does not support 100%, String.indexof () does not work properly, I thought, I have searchString in a four [] array and instead of comparing the whole word, I compare each character. So I put searchString in a char [] and started comparing the array in the string Is it available code available anywhere Finds that the sequence is in this four [array] string? Example: char [] = {T, E, S, T} string 1 {qqwtestq} string 2 {qwqtqwe} - & gt; String 1: True String 2: Fells Thanks IndexOf and in and you can use characters that have not been used for example in your character encoding. That is, these tasks are ignored. All String.indexOf () and include the character for the character, I'm not sure what you are hoping for 100% Arabic support. Here is a simplified version that is ...

iphone - How to open file's under my app's document folder with other app on ios? -

I found that some apps can open files with other apps on iOS. Such as open an avi file with other video player. How can I do this? Will copy the iOS file into another app's sandbox? I suggest reading this first answer;

path - Solution for loading hook modules on riak cluster restart -

I have applied several hooks for the rack which are currently in modules which are not in the rickety path. Whenever I want to install a hook for a special bucket, I was loaded before loading the load, to make sure that the rock node can call the hook. The problem is that if one of the nodes goes down and then backs up, then he will still try to call the hooks, but the module will not be accessible. What is the recommended way to handle it? One thought I thought was that ERL_LIBS was being modified, like hooks were included in its path, this is the right approach? / p> "post-text" itemprop = "text"> simply -pz / path / to / hook / module / Put file at the end of vm.args (this is the / etc / riak / on my installation)

how to read a video file placed at server in php - video file's name includes http wrapper -

I am using the following code, but the warning appears with fseek and its Instead -1 gives 0's. $ file = fopen ("http://www.example.com/public_html/data/video/temp.mov", "r") or exit ("Unable to open file "); Fees ($ file, -128, SEEK_END); The file is definitely opened but fseek does not work is there any other way to read the server from the video? The error message is: filesize () [function.filesize]: status failure warning: fseek () [Function.fseek]: stream This should be supported by some platform dependent problem: try this code: $ filename = "www.example.com/public_html/data/video/temp.mov"; $ File = fopen ($ filename, "r") or exit ("unable to open file"); Fseek ($ file, filesize ($ filename) - 128); The HTTP cover does not support asking if you want to search through a remote file via HTTP, then you need to get the size of the file. One possible way to interpret in the directory list, or ...

linux - Pushing local repo to remote does not push submodule files using GIT -

I am new to GIT and I am struggling with it. I have a website that is stored in a repository Website requires a Theme folder which is setup as a separate repository. I have used the git submodule add command to successfully add a theme repository to my website. So now I have a website report with a theme readro files for the subdomain are displayed inside my website folder. I am trying to reprint the whole main website on a remote server which works, but the files of the subject do not push the submodule like an independent respository - it's something Do not even know whether it has been included as a subdomain or not. The parent repository does not know that much about everything - just where It should be in the tree, which submodule should be in it and which URL should be cloned at the beginning ... I don you think there is no such order that all your subdomains should be sent to your Push for - When you update some files, the investment should be sequenced A:...

PHP Email: To, CC -

I have PHP scripts which automatically sends an email to me, it is good to do this work, but when I add a CC I try, so it does not work. Below is my code for email: $ email_to = "$ theData2"; // Who is the email, $ headers = "From:". $ Email_from; $ Fine = @ email ($ email_to, $ email_sbank, $ email_message, $ header); I have made the following efforts to get the CC to work, but I have no luck. $ email_cc = "example@info.com"; $ Headers = "Cc:". $ Email_cc; And also tried it: $ headers = "Cc: sombodyelse@noplace.com"; I can not get it for both emails: to & amp; CC Any help would be greatly appreciated. Thanks! You forgot your new line. $ headers = "\ R \ nCc:". $ Email_cc;

javascript - Overlapping menu tabs -

I am working on a new website project which is for the hospital, I have done everything, but I have problems in the menu Coming up, which seems simple but it is very complex .. The problem is that the menu tabs overlap with each other that I had achieved and after giving the ul margin it is completely It was overlapping, but this thing which I am not able to achieve is that on a tab After clicking, it should change its background image to a new background image (from the blue image to the green image) and it should be popped up and by default the homepage should be selected. How to get any advice or guidance or this menu will be greatly appreciated in order to correct or in proper order. Thanks in advance. Check this web link as I think it will solve your problem and hope for That it helps you .....

c# - Calling parent UserControl method from a child UserControl in Silverlight -

I have a C # Silverlight Application This application has a UserControl with a 2x2 grid. Each of the cells in the grid has a UserControl; Each of these children has a button in the UserControl elements when a user clicks the button in a child, then I want to execute a method that is in the parent user control, then the other Sends information to three children. How do i do this Thank you! If you are using binding, you tie a model to the following model such as master control datacentext Action: Action for class MasterViewModel {/// Child User Control 1 Zero DoUserControlAction1 () {// //. .} /// Action for Child User Control 2 zero zero DoUserControlAction2 () {// ...} // ... / Action for Child User Control n zero DoSuserControlActionN () {// ...}} Then each child is in control, as its datacontact is derived from the parent data control of the parent user control: class UserControl1 {public void HandleButtonClick (Object Sender, EventEurge E) {(MasterView Model) Datac...

c# - Conditionally Display TabPanels? -

Just wondering if this is possible or not: Say I have a panel with 2 panels The TabContinentear has got over there. In most circumstances, I want the user to have the ability to select the tab. Now, in some special scenarios, one of those tabannals will not be visible or will not be empty. Is it possible that in these situations, will the entire Taektontenier be "invisible"? (I.e. the headers are not visible, and displays the tabs populated only) Ideally, I want to use AJAX TabContainer, but if this is not possible; Thank you! This is possible and quite possible. It's simple if you insert the contents of the tab page that you want to show / hide in a dynamic way that you describe in a different user control. Then what you have to do is switch from the tab page into the control of the original container of control which is hosting the tab container, while the tab is also hiding the container.

iphone - Socket Timeout - Need Help -

I tried to connect to a server socket, when I enter a non-existent socket server Is using this implementation to connect to? An endless loop, how can i set a timeout + (zero) getStreamsToHostNamed: (NSString *) hostname port: (NSInteger) port InputStream: (NSInputStream **) inputStreamPtr outputStream: ( NSOutputStream **) OutputStreamPrint {CFRDstreamRefStream; CFWriteStreamRef WriteStream; By emphasis (hostName! = Zero); Emphasis (port> 0) & amp; amp; (port Thanks in advance! If you want, schedule a timer if the timer NSStreamEventOpenCompleted If you set fire before, you are out of time. Answer as appropriate (turn off currents etc)

actionscript 3 - Adobe Flex Builder 3 : Cannot add any method/function to any class of an existing project? -

I'm totally new to Adobe Flex Builder. I have been assigned a fully functional project, but when I want to add is the simplest task for any class, I always get the same error: the constant type For example, with a reference to a possibly undefined method, some random classes have function defined in such a way: public function GetID (): String {return m_strID; } If I try to define a new one below: public function GetIDFoo (): string {return m_strID; } And then I try to call both of them like this: trace ("this line is fine:" + oPhysicalScreen.GETID ()); Trace ("This line gives me an error:" + Oficialscreen. GetIDFu ()); Any clues? Regards, Michelle PS: The complete code where I am calling: Public function updated physical screen data (Oscronnode: XML): zero {if (M_vPhysicalScreens == empty) {Return; } Var oScreenList: CMultyList = m_rBasicScreen.GetPhysicalScreensPanel (). GetScreenList (); Var OFFICIALSCREEN: CPhysicalScreen =...

c# - using string format for a credit card number -

I try to display a credit card number such as #### ######## String I am doing #### I tried: txtbox.Text = string.Format ("{0: #### ###### ######} ", ccNumber); And it was not working any thoughts? string format ("{0000 0000 0000 0000}", number) Edit I paste my comment here to paste: ccNumber an int or wire? If it is an integer, then it should work if it is a string, then you must string format ("{0000 0000 0000}", (Int64.Parse ("123456781245645678" )))

iphone - UITableViewController loading inside a UIViewController inside a UIViewController issue -

I do not really know what I'm doing is the right way to do it. At the moment it seems that unless it is at a certain point with the message of EXC_BAD_ACCESS, we have to work. I suggest that I am saying with the best and most relevant details: I have a calendar viewer that is loading from a .xib file (CalendarViewController.xib) which inherits the UIViewController is. The class which I created and I started with another nib file based on a class which is inherited from the UIViewController is called a UIView contentView: - (zero) viewDidLoad { [Super viewDidLoad]; CalendarView = [[View all calendar] initWithNibName: @ "Calendar view" bundle: zero]; [ContentView addSubview: calendarViewView]; } (CalendarView is class UIViewController and viewDidLoad inherited from CalendarViewController. That is a UITableViewController associated with CalendarView.xib. This table is connected to a view controller CalendarTableController which I also have to generate a .xib fi...

camera - how to set framelayout to landscape even if my activity is in portrait mode in android 2.3.1 -

I have an activity where I'm opening the camera. I am using framelit for camera preview but I have a portrait In the mode, the camera has to be opened, which is causing many problems, like a small screen, the problem of rotation, can I set my framelay in landscape, even if my activity is in Paint Mode Or if someone opens In the portrait portrait mode, the camera will be appreciated effectively thanks in advance API level includes 8 (v2.2), a method called set display in the camera. Call this method with 90 to rotate your camera's display in portrait mode.

add - cakePhp adding record problem -

मेरे पास 3 टेबल हैं: आइटम {name, id, category_id} category {id, नाम, section_id} वर्गों {आईडी, नाम} जैसा कि आप देख सकते हैं, प्रत्येक आइटम एक श्रेणी से संबंधित है, और प्रत्येक श्रेणी किसी सेक्शन से संबंधित है मैं सेंकना विकल्प का इस्तेमाल किया और इसे सब बेक किया गया, ठीक है, सभी नहीं .. क्योंकि श्रेणी.नाम को दोहराया जा सकता है, क्योंकि यह प्रदर्शित फ़ील्ड है, मैं एक ऐसी स्थिति में अपना आत्म ढूंढता हूं जिससे मुझे पता चले कि किस श्रेणी में मैं सचमुच उपयोग करें। कोई विचार? आप ऐसा कुछ कर सकते हैं अपने श्रेणी मॉडल में जोड़ें: var $ virtualFields = array ('category_unique_name' = & gt; 'CONCAT (श्रेणी.नाम, "-", श्रेणी.id)'); Var $ displayField = 'category_unique_name'; यह आभासी फ़ील्ड आप यह बता सकते हैं कि किस श्रेणी को इसके आईडी और नाम के संयोजन पर आधारित है। आभासी क्षेत्रों में कुछ सीमाएँ हैं, हालांकि इसके बारे में यहां पढ़ें:

c# - WIF with multiple STS's -

Image
Sorry for the awesome quality of the image, but it shows my scenario of what I am trying to achieve And what is the best possible solution for this? I have a test project setup, one Using RP in single STS - which works fine, RP is directed to the Scheduled Tribes for approval and then returns a token back, simple. However, I have to say, there is a drop-down list on my RP that you choose "mode" and depending on this mode, you will redirect to one of the STS providers for authorization again. . Obviously I can not straighten the STS directly to it and so it will have to be dynamic, and the web Conflict settings have been removed for immediate removal, so that NIT projects have been automatically put there. Can anyone guide you on this? Read more about this (click 'Access Control' on the left):

drop down menu - CSS 'Dropdown' Fix -

In the afternoon, I have an issue with CSS. The third dropdown is incorrectly placed and I have no solution . Here's what I want: Before: After: Here is the CSS: ul.dropdown, ul.dropdown li, ul.dropdown ul {list-style: none outside none; } Ul.dropdown {background: url (".. / img / nav_bg.png") Any repeating scroll left top-transparent; Swim left; Padding: 0 3px; Status: Relative; Width: 9 70px; Z-index: 100; } Ul.dropdown li {float: left; Font size: 1.2mm; font-weight: bold; Line-height: 1.2m; Margin: 0; Padding: 0; Status: Relative; } Ul.dropdown li a {color: # 000000; Display area; Padding: 7px 0; } Ul.dropdown li a: Hover {color: # 0971BA; } Ul.dropdown li a duration (border-right: 1px solid # d6DBE0; display area; padding: 8px 12px;) Ul.dropdown li a.active {color: # 0971BA;} Ul.dropdown li.drop a span {background : Url ("../img/new_icons.png") Any repeat scroll right 13px transparent; minimum height: 0; padding: 8px 25px 8px 12px;} Ul.dro...

php - Finding base path of URL's in item src -

मुझे खोजना होगा src = "http: //www.domain Com / wp-content / uploads / 2010/12 / 6a00e54fa8abf788330147e0622c2e970b-800wi.jpg " और प्राप्त करें " http: //www.domain चूंकि मुझे नहीं पता कि स्ट्रिंग कितनी देर तक मुझे आखिरी / से लेकर सब कुछ पाने की आवश्यकता है I / पर एक नज़र डालें ईटीए संपादन प्रश्न के कारण: @ क्रिस: आप जो करने की कोशिश कर रहे हैं वह पार्स डीओएम है और स्रोत एट्रिब्यूट्स के मूल्यों को निकालता है। यह करने के लिए सबसे आसान और सबसे आसान तरीके एक DOM पार्सर का उपयोग करना है DOMDocument वर्ग पर एक नजर डालें और बाकी को देखें।

windows - KeyPress with multiple modifiers not working in QWidget -

I have added an override to the key press event of my main widget: Void MainWindow :: keyPressEvent (QKeyEvent * E) {If (e-> Key () == Qt :: Key_F11) {if (e->; modifiers () and Qt :: AltModifier & amp; E-& gt; Modifier () & amp; Qt :: ControlModifier} {// do stuff}}} The problem is that it does not work if I'm alone If I try AltModifier or ControlModifier then it works (whereas the second condition changes), but not the key for both () Qt :: Key_F11 In the while I am using windows I press F11. Edit : checked with logging and the result is that Ctrl + Alt + F11 and Ctrl + Alt + F12 do not send a key event (while others Ctrl + Alt + Fxx keys). Ok, so I managed to solve it, though I am not happy with the solution. There is at least no secret and it works :). I did not get hotkeys Ctrl + Alt + F11 and Ctrl + Alt + F12 Reasons I'm a partner stack of global hotkeys as member mood swords (thanks a lot for this!) Managed to find it using the program o...

php newbie question: global variables for web -

I want to set some global variables to store many things. I liked it: function init_web () {$ webname = "myweb"; $ Web ['webname]] = $ webmail; $ Web ['server_root'] = $ _SERVER ['DOCUMENT_ROOT']. "/ $ Webname /"; $ Web ['lang'] = "n"; } The problem is that I can not see those variables inside the function. I have tried to use the global $ web; but did not help. When you stop the normal "global variable bad", here The basics are: $ web = array (); // var outside any function / class, define the "top level" of the code tree init_web () {global $ web; // show this function in the $ web ['lang'] = 'en'; // Create some settings} Basically, you did it, but did not define the variable outside the function. Just saying 'Global' within the function, they will not be able to magically create it outside of the function - before you can present the function "internal...

php - How to do a calendar appoinment scheduler on website? -

What is the best way to calendars on my website for client scheduling? Do I basically call the hard code a php app Or is there something better that I can do? any idea? Thank you. If you want to keep the calendar in PHP, then you can try a solution that is already created. If you want to do something in the browser, there are other options like dotpickers on something like jQuery on front-end.

c# - Queries about validating xml with XmlReader -

My experience with the XmlReader class is mixed now, with validation of Xml data using the XmlReader class I have I want to clarify some basic doubts. I know that to set up some settings to use the XmlReaderSettings class, whether setting up the validity type, etc. and / or create a XmlReader with the XML object. I also know that you need to use all your schema files in the verification XmlSchemaSet class unless the schema is present inside the XML document (inline schema) XmlSchemaValidationFlags is a property in the class called XmlSchemaValidationFlags.ProcessSchemaLocation , so if the xml file contains the location of the specified xsd file, do I have to add the xsd file to the XmlSchemaSet class? I have placed the XDD file in the same diary as the XML file. & lt ;? Xml version = "1.0" encoding = "UTF-8"? & Gt; & Lt; Value_tables xmlns = "blur: value-schema" xmlns: xsi = "http://www.w3.org/2001/XMLSchema-instance" ...

linux - how to store and serach for an ipv4 ipaddress in c more efficiently -

I have a requirement, such that in C, an efficient data-structure IPv4 address should be taken as input and Store it, search it in. Datastrost stored on demand basis Can we convert the ipadress into string and store it in the data structure and check its existence? If so, how can we achieve it! Can you please give me your valuable information in order to proceed. Thanks in advance. If you need to store and search a whole lot of IP address, You may want to use. I believe that the Linux kernel uses its own version of the Radix Tree Data Structure for code related to its IPs as routing tables, as you might want to look for it for ideas. If you have some addresses or want to use a hash set to just a bit, use the hash set. If this is for a real application and if you want to look forward, you should also include support for the IPv6 address. As time goes on to more computer systems, IPv6 addressing will be addressed as backup only with IPv4 NAT each year.

How to run perl script on linux server, which is operated by cPanel? -

Can someone tell me how to run a Perl script on the server? I am uploading it using FTP script Does not work by adding .pl to the CGI-bin folder. I also tried to upload it with CPNL. BEGIN $ my $ base_module_dir = (-d / / home / username / perl '?' / Home / username / perl ': (getpwuid ($>))) [7] . '/ Pearl /'); Unshift @INC, Map {$ base_module_dir $ _} @ INC; } I also for the last option #! / Usr / bin / perl You might Execute bit set is required: chmod + x filename.pl

security - Are there any serious problems with this technique for generating symmetric keys? -

I am using borrowed techniques from books from Bruce Schneier and Niels Ferguson. Basically, it boils down to this: Bob does this: pubk_A = Alice's public key Entropy = Byte cryptographic PRNG to Quality Encrypted_Netropp = RSA_Encrypt pubk_A (entropy) hashed_netroopy = SHA2-512 (Entropy) encrypt_key ba = hashead_transpot [0:32] encrypted_napes BA = haschendropopopie [32:48] hmac_key ba = hash_intropi [48:64] Bob then ali Sends encrypted_trropy to S Then Alice does this: privk_A = Alice's private key enterpp = rsa_drycrypt personal_a (Encrypted_entrophy) hash_droppy = Shah-2-512 (entropy) encrypt_key BA = hashead_intropy [0:32 ] EncryptedAnpes BA = hashed_intropy [32:48] hmac_key BA = haschendroppy [48:64] This Works great to generate the key that Bob interacts with Alice Area can be used for. But I need those keys which I can use in both directions. I was thinking of modifying the algorithm like this: Bob enters wi...

c# - Web browser control display plain text mail -

I have a C # app, which is to display the email Email can be HTML or plain text, but in both cases I am using web browser controls. The problem is web browser control which is ignoring all escape characters of plain text and the mail appears as a line. The work I am using is "escape \" or \ "\ r \" & lt; Br> There is no other good way to do this. Thanks in advance. You can & lt; Pre & gt; and & lt; / Pre & gt; (stands for "preformatted" tag) can surround the text. Check here:

ruby on rails - How to fix "error exists on this page" PDF error from prawn generated documents? -

I am generating PDFs in my Rail application using shrimp PDF library. Everything is working very well, but when Acrobat or Acrobat Reader is opening PDF as a result, the message is shown below: There is an error on this page. Acrobat can not display the page correctly. Please contact the person who has created a PDF document to fix the problem. Adobe lists its Acrobat 8.1.3 release notes as being fixed. 1810668 When printing large documents with memory leak images: â? ¨ & gt; When a large document is exported to PostScript or printers are sent to print "There is an error on this page. Acrobat can not display the page correctly, please contact the person who has the problem PDF document to be corrected "could be. This problem was encountered on some documents with large number of monochrome images, but it has been improved in 8.1.3. Route: Problems fixed in 8.1.2. But I see the problem in all current versions of Acrobat Professional and Acrobat Reader. M...

c# - Regular expression replace -

I need a reg X script Delete all symbols Example: Mike & amp; Ike Output Mike Iki is the output: Mike-Iki Mike-Ike-Jill The output is: Mike-Ike Ike-Jill Mike - Ike-Jill Output is: Mike-Ike-Jill Mike - IK-Jill Output is: Mike-Ike-Jill Mike.K.Bill Output is: Mike Ikeley Mike ** * which is Output: Mike Jo Mike 123 Output is: Mike 123 You can do something with many passes. This is the usual kind of normal type that can be reduced by using look-bihund. (Not all Reggae flavors support this) Delete multiple - with reg - {2,} Remove symbols except -. with regex [^ - \. A-Za-z0-9] Change to the first . with a floating character! Change and the rest . ! Use from to the last step Li> update .) string str = "Mike and Ike .. .... "; Str = Regex. Change (str, @ "- +", @ "-"); Str = Regex. Replace (str, @ "(? & Lt; = \.) (. *?) \.", @ "$ 1"); Str = Regex.Re...