Posts

Send innerHTML text in URL in JSP -

To send innerhtml text of a tag to the URL on the onclick event handler on the JSP page and how to value it in another JSP page get receive? Here is my code & lt; A href = "DocumentViewer.jsp" & gt; Hello & lt; / A & gt; I want to send hello to url. help? You should assume the URL onclick event and use it JSP page In request.getParameter () example code below & lt; A href = "DocumentViewer.jsp? Proces = something" & gt; Hello & lt; / A & gt; And get it in JSP in this way. string supporters = request.getParameter ("proces");

php - Extract records for 1 Week Time interval and Them start the next timer when the new week starts -

I'm using the query given below 1 week time interval. To remove the record for mysql_query ("t1.username", SUM (t2.points), select total actcontest t2 to t1.userid = t2.userid user t1, where Between (CURDATE (t2.date - INTERVAL 1 week) and CURDATE () GROUP TOTAL DESC LIMIT 20 "by t1.username ORDER BY;); I have been using different queries for this award bonus to top 3 users who have received the record. This works fine. Problem: Once the bonus has been awarded last week, the top 3 members will start starting dates from the new week, where the last week ended, :. We started the timer on the date: [dd / mm / yay] week 1 = {01-01-2010 to 07/01/2010} Week 2 = {07-01-2010 to 14/01 / 2010} Week 3 = {14 -01-2010 to 21/01/2010} Week 4 = {21-01-2010 to 28/01/2010} Do you Please help me in making this argument my script is using php and mysql. What do I want to do? I have given a bonus to a winner in the week. I want to start bringing the members to th...

udp - The relationship between MTU and size of skb in xmit function -

I encounter a problem when I develop a network card driver in Linux. As we all know that the MTU fragment refers to the maximum size of the IP packet. And the squad will be sent to the exclamation function, which will include 14bytes including DST MAC Adrer, SRC MACEdre and LNG. But it is very strange that when I use different values ​​for MTU, the pair size is different, sometimes it is 10bytes, sometimes it is 14bytes, it is based on the size of the MTU For example, I use 7828 as the size of the UDP payload, when MTU is 7700, the size of the scab in the XMT function is 7714, while when MTU is 7800, the size of the scalable is 7810. Can anyone explain this? I think there are some aligned boundaries for the IP packet, but I did not find it. I searched the answers from the Internet, and I found that there is a line limit for the payload field. The frame payload field must be aligned to 8 bytes. So if MTU is 7700, then the correct size of the IP frame should be 7680 + 20 = 7700 ...

Search and replace html tags in sed recursively -

I am trying to write a script to search and delete HTML and HTML tags from all files. The starting point is given in the form of input in order to run the script. As a result, the file should be saved in the new file in the same place that ends with _changed. E.g., Start.html> start.html_changed I have written so far the script. It works fine, but prints out on the output terminal, and I want to save it in the file, respectively. #! / Bin / bash sudo $ 1 -name '* .html' type f -print0 | Xargs-0 sed -n '/ & lt; Div /, / & lt; \ / Div & gt; / P 'sudo $ 1 -name' * .htm '-type f -print0 | Any help is appreciated. The following script: works just fine, but it is not recursive how can I make it recursive? #! / Bin / bash for L in /$1/*.html sed -n '/ & lt; Div /, / & lt; \ / Div & gt; / P '$ l & gt; "$ {L} _nobody" / $ 1 / * HTML is used for M-sed -n '/ & lt; Div /, / & lt; \ / Div & gt...

c++ - #pragma omp barrier inserted by preprocessor? -

मेरे पास ओएमपी #pragma omp महत्वपूर्ण के साथ कोड है, लेकिन कोई #pragma omp बाधा । फिर भी, विजुअल स्टूडियो 2008 में डिबग बिल्ड में मेरे प्रोग्राम में क्रैश हो गया घातक उपयोगकर्ता त्रुटि 1002: '#pragma omp बाधा' अनुचित तरीके से '#pragma omp गंभीर' में नेस्टेड क्या यह संभव है कि ऐसा कोई #pragma omp बाधा स्वचालित रूप से डाला जाता है, हो सकता है कि एक प्रयास / पकड़ ब्लॉक में या तो? क्या अधिक निदान संबंधी जानकारी प्राप्त करने का कोई तरीका है, उदा। जहां वास्तव में समस्या मौजूद है? संपादित करें: यह कोड की संरचना है मैं अपवादों को पकड़ने और याद रखने के लिए और साझा किए गए चर तक पहुंचने के लिए omp महत्वपूर्ण का उपयोग कर रहा हूं यह सभी एक-लाइन ब्लॉक है। std :: vector & lt; RunResult & gt; runResults; मूल्यांकनकर्ता मूल्यांकनकर्ता; std :: वेक्टर & LT; std :: runtime_error & gt; exceptionsDuringParallelExecution; कुछ प्रकार के कुछ वैरिएबल; // निजी डेवलपर के रूप में बाद में #pragma omp समानांतर {#pragma omp के लिए निजी (कुछ वैरिएबल) के लिए (इंट मो...

javascript - Improving code quality/organization of event-heavy riot applications -

I am creating an application using riot.js and jquery. Everything works as expected, but as the code grows, my concern is that nothing in the code is triggering and managing events in the random / unexpected places (.trigger / .on) To keep my code organized and quickly understandable My questions are: (1) I would like to keep a clean and well-organized code for such an application (event namespace one thing My mind ) And (2) I want to keep events on the model different from the event on DOM clearly in the presentation. I riot these targets. How can I get in the application based thanks you can see one Are there. - Another popular FRP library - insteresting less popular but FRP library

Is there any potential performance issue if I make many storeviews in Magento -

I run an MLM business (www.mysitename.com) which reaches 1000 amateur business owners. My site is based on Magento. I intend to give each of them a customized store view (such as partnername.mysitename.com), so that they can promote again. The view of the store is basically a replica of my original store scene, which has small UI tweaks. All store views are mapped to the same root category (again similar to my main store view). Does anyone see any negativity to it? If I make 1000 such store views, then my main concern is potential performance problems. I hope if Magentoga can run thousands of sites with different catalogs, then this magician is able to deliver it for me. (Especially since this list is similar in my case). But what I do not want to do is avoid all this and it is launched, only to understand that 1 20 sites work great, but when the number reaches hundreds, the performance is complete Decreased in kind Any suggestions / suggestions about best practices will be...