Posts

Showing posts from January, 2014

php - Wordpress Post's Category Name without capitalisation -

I am using the following code in WordPress to retrieve the names of the squares, although this is the name of the class Is capitalizing. / P> & lt ?? Php foreach ($ categories as category $):? & Gt; & Lt; Button Data-Filters = ". & Lt ;? Php $ echo $ class-> Name;; & gt; & Gt; Button & lt; / Button & gt; & Lt ;? Php endforeach; ? & Gt; The output I am getting is & lt; Button Data-Filter = ". Category" & gt; Button & lt; / Button & gt; but I need it & lt; Button Data-Filter = ". Category" & gt; Button & lt; / Button & gt; Thank you and hopefully I'm getting the solution. This should work: & lt ;? Php foreach ($ Category as Category $):? & Gt; & Lt; Button data-filter = ".. & Lt ;? php echo strtoolier ($ category-> name) ;? gt; & Gt; Button & lt; / Button & gt; & Lt ;? Php endforeach; ? & Gt; strtolower () ...

c# - Ping client LAN from Azure -

Using some code from the CodeProject, I changed a LAN scanner to ASP.NET web application. The app tries to ping all the IPs in a given user input range. The app works fine at the local level However, I wanted to make online app online. Using free AZUR subscription, I keep the site online. However, it does not scan the user's LAN. This could be because the server is trying to scan the LAN of the computer on which my app is deployed. I would like to know that it is possible to scan the client's LAN instead of server LAN, using ASP.NET. If you need a code for a webpage, please comment on the website should be online. Please comment if any other information is necessary. No, it is not possible to use a server-based scanner, because the server There is no way to access the private IP address used by the network. You can do this only from within a network, which means the client-side code is in some way. The problem is that your local network address (192.168. . , 10. . . ...

css3 - Jquery how to add attribute to father object? -

तो यहां स्थिति है मेरे पास यह jquery कोड है $ ("Li")। क्लिक करें (फ़ंक्शन () {var चेकबॉक्स = $ (यह) .चिह्न ("इनपुट [प्रकार = 'चेकबॉक्स']"); यदि (चेकबॉक्स.प्रॉप ("चेक") == "") {चेकबॉक्स.प्रॉप ("चेक"), (यह) .addClass ("on");} अन्य {चेकबॉक्स.प्रॉप ("चेक किया गया", गलत); ("ली")। RemoveClass ("पर"); }}); और यह html & lt; ul id = "id_priori" & gt; & Lt; li & gt; & lt; लेबल = "id_priori_0" & gt; & lt; इनपुट आईडी = "id_priori_0" नाम = "प्राथमिकता" प्रकार = "चेकबॉक्स" & gt; होला & lt; / लेबल & gt; & lt; / li & gt; & Lt; / ul & gt; मैं क्या करना चाहता / चाहती हूं इस आधार पर वर्ग को जोड़ना / निकालने पर निर्भर करता है कि क्या चेकबॉक्स को चेक या अनचेक किया गया है, लेकिन यह काम नहीं करता है आप इसे बस सरल बनाने के लिए $ ("li") क्लिक कर सकते हैं। (Function () {var ...

windows - How to get the creation time for each file and format it -

I can format the time of files with the following command: Go- ChildItem Dropbox | Received-date-format "yyyy-MM-dd hh: mm" I can get the creation of files with the following command: received -ChildItem Dropbox | Selection-object creation time When they connect them together they fly. How do I get the creation time in a format? You property: Go-ChildItem Dropbox | Selection-Object-Expand Property Creation Time | Received-date-f "yyyy-MM-dd hh: mm"

c++ - How does size work with memcpy? -

मेरा प्रश्न निम्नलिखित कोड से सुरक्षित है: #define ARRAY_SIZE 10 std :: सरणी & lt; BYTE, ARRAY_SIZE & gt; myArray; Char * string = "this_sentence_is_longer_than_10_bytes" मेम्क्पी (& amp; myArray, स्ट्रिंग, ARRAY_SIZE); परिणाम: myArray को [0- 9] के साथ "this_sente" से भरा है सुरक्षित होने के नाते, मुझे यह जानने की आवश्यकता है कि बाकी 'स्ट्रिंग' के साथ क्या हो रहा है क्या इसे पूरी तरह से दिए गए आकार की वजह से अनदेखा किया जा रहा है या क्या इसे सरणी के अंत में फेंक दिया जा रहा है? संपादित करें: अब #define ARRAY_SIZE 10 std: : सरणी & lt; BYTE, ARRAY_SIZE & gt; myArray; Char * string = "this_sentence_is_longer_than_10_bytes" अगर (स्ट्रेलन (स्ट्रिंग) & lt; ARRAY_SIZE) {BYTE स्पष्टअरेरे [ARRAY_SIZE] = {0}; Memcpy (& amp; myArray, साफ़अरे, ARRAY_SIZE); Memcpy (& amp; myArray, स्ट्रिंग, स्ट्रेलन (स्ट्रिंग)); } और {memcpy (& amp; myArray, स्ट्रिंग, ARRAY_SIZE); } यह अब एसडीडी को बाहर कर देता है: शू...

c# - WPF Determine the link I clicked -

मुझे एक मार्कअप मिला है: & lt; UserControl x: Class = "NeoClinic MAS.ConfigurationsList "xmlns =" ​​http://schemas.microsoft.com/winfx/2006/xaml/presentation "xmlns: x =" http://schemas.microsoft.com/winfx/2006/xaml "xmlns: एमसी = "Http://schemas.openxmlformats.org/markup-compatibility/2006" xmlns: डी = "http://schemas.microsoft.com/expression/blend/2008" xmlns: mui = "http://firstfloorsoftware.com / आधुनिक यूआई "एमसी: अनावश्यक =" d "x: नाम =" कॉन्फ़िगर नियंत्रण "& gt; & Lt; ग्रिड शैली = "{स्टेटैटिक रिसोर्स कंटेंटआरूट}" & gt; & Lt;! - TODO: सेट @SelectedSource - & gt; & Lt; mui: आधुनिकटैब एक्स: नाम = "मोडटैब" लेआउट = "सूची" पूर्वावलोकनमॉइस लेफ्टबूटन्यूप = "मोडटैब_प्रेव्यूउपमाउसेउल्टबूटोनअप" & gt; & Lt; mui: आधुनिकटैब.लिंक्स & gt; & Lt;! - TODO: सेट @ सोर्स - & gt; & Lt; mui: लिंक x: नाम = "ब्रैडलिंक"...

c# - Nullable object must have a value datetime -

डेटाबेस EmbarkDate [] allowNulls जाँच DisembarkDate [] allowNulls [dbo] अद्यतन की जाँच की। [t_CrewContract] सेट EmbarkDate = बातिल जहां cc_ID = 'AEDAEC31-6108-CE8F-97DF-114FD87A6257' अद्यतन [dbo]। [t_CrewContract] सेट DisembarkDate = बातिल जहां cc_ID = 'AEDAEC31-6108-CE8F-97DF-114FD87A6257' सी # सार्वजनिक तिथि टाइम? एम्बर्कडेट {प्राप्त करें; सेट; } सार्वजनिक तिथि समय? डिज्म्बर डेट {प्राप्त करें; सेट; } ContractItems.Add (नई ContractItem {EmbarkDate = item.cc_EmbarkDate.HasValue = अशक्त item.cc_EmbarkDate.Value:? Item.cc_EmbarkDate = अशक्त, DisembarkDate = item.cc_DisembarkDate.HasValue = अशक्त item.cc_DisembarkDate.Value:? मद। Cc_DisembarkDate = null,}); अगर (activeContract.EmbarkDate == नल) {} //...codes त्रुटि: Nullable वस्तु एक मूल्य क्या समस्या धन्यवाद आप एम्बर्कडेट = आइटम.सीसी_एम्बारडेट.हास्लाव! = नल? item.cc_EmbarkDate.Value: item.cc_EmbarkDate = अशक्त, DisembarkDate = item.cc_DisembarkDate.HasValue = बातिल? item.cc_DisembarkDate.Value: item....

jquery - JavaScript calling a function without parenthesis -

A few weeks ago I was able to dynamically add the button of an HTML dom object to a dynamically, which has its own .on (click on 'click). Use the handler, and e.stop promotion to prevent these new baby elements from firing incidents. The strange thing I did was call the function without any bracket. I do not know why I did this or why it works, or why it does not work when I give brackets. I want to know that I am doing something temporarily and do not design (and now I will add a comment for it). Like: // Container is the basic element / var button collects buttons with 'button' $ ('container'). ('Click', function () {$ (button) .appendTo ($ (this)). FadeIn (500) .find ('button.). Click (table button);}); Function table button (e) {e.stopPropagation (); // do stuff} I do not understand why I did not write the column to call, there is no dispute or why it works completely. E syntax .find ('.button'). ('Click', function (e) {t...

Chainsaw and plaintext log4j -

I'm trying to learn how to use the chain I have a text log4j file in SystemOut.log that contains rolling The files are: I have set the file URL to file in a file pattern receiver: /// C: /AppDev/prodlogs/SystemOut.log, where I copied the output log pattern [TIMESTAMP] THREAD * LEVEL [*] (File: Line) - The message is. Timestamp format MM / dd / yyyy HH: mm: ss: SSS EDT However, when I set it all, nothing happened. No tab is pop up, even if I try to restart the receiver or manually try File-> Load Log4j File menu. No error pop ups or nothing just ... nothing. What am I doing? I really know why this does not work, even then it happened sometime ago The chances are that no updates have been received: The last version was made v1.99.99 in 2006. Instead of (or some of its clones), you simply have to keep your log-466 pattern (or any other pattern) in its configuration (i.e. the new "parser"), in parallel time, parse, view, filter, To be able to search, monitor...

combobox - Populating a combo box from MS Access Database -

Hey guys, I'm really new to this but I need to populate my combo box with access data base Because I'm trying to make a cheap little checkout system and it does not seem to work if someone can help me codify my combo box and explain how it works wonders. Because me To personally search for items, to make a query technically and to get value from DB and to be able to be able to select each person individually, to get the change etc. You should start in the right direction. This tells about the steps needed to populate your combo box and the value of selected items. Basics you should know: Data source: This data source is used to fill the item collection of the combo box if we have data sources As the database is, we can use the table binding source as a data source for the combobox. Performance Member: This is shown in the Property List as the item collection of the Combo box in the list. Price member: This value is returned from the data source when using the ...

image - How do I animate a set of PNG's in HTML? -

I have this picture: and I have to convert it to HTML, how would I have to do this? You can revive the image using CSS3 HTML & lt; Div id = "robot" & gt; & Lt; / Div & gt; & Lt ;! - Image container - & gt; CSS #robot {width: 150px; Height: 150px; Background-image: url ("http://plug.dj/_/static/images/avatars/themes/default/space05.1e8c0ce.png"); Background-position: 0; Repeat Background: No Repetition; Animation-name: move; Animation Duration: 1s; Animation-timing function: step-by-step; / * Changes the background-position at the beginning of time / animation-walking-count: infinity; } @Keframe running {0% {background-position: 0;;} 10% {background-position: -150px 0;} 20% {background-position: -300px 0;} 30% {background-position: -450px 0 ;} 40% {background-position: -600px;} 50% {background-position: -750px;} 60% {background-position: -900px;} 70% {background-position: -1050 Px 0;} 80% {background-position: -1200px 0;}...

Python: MySQL DELETE issues -

I'm trying to delete a value with 2 columns in one column; Twitch and names . This is the code: cur2 = db.cursor () cur2.execute ("Select wicker Choose from winner 45wmzYGCc5C7TIMCdczrel.whitelist (select pinch from Alan45wmzYGCc5C7TIMCdczrel.followers)" ) Results = cur2.fetchall () db.commit () for the result in line: unfollowers.extend (line [0]) unfollowers_join = '\ N'.join (unfollowers) to unforcers_joint cur3 = db.cursor () x For the following: Remove from cur3.execute ("Alan45wmzYGCc5C7TIMCdczrel.whitelist where twitch = (% s);", (x,)) data_unfollower = (Unfollowers_join) db.commit () The result must be deleted, and the results is Cur2 unmatched Query to find scholars.

macros - Fiji (is just ImageJ) memory issue -

Just a bit of background: I created Fiji (image only) macro which takes scan A folder of images (combine 6 mm plates into 3 * 4 fashion) recognizes these ROIs and separates them into separate pictures. These single images are then compared with the difference image analysis. And the results are stored as Excel spreadsheets. It has been prepared to be active at the end of the day and it has been left over for the process overnight. My point is that Fiji's memory slowly recruits, throws an error, to stop the program. I have a garbage collection in my code but it does not fully clean the memory So, the capacity is gradually filled up. I really should work on most machines (so much more RAM being purchased is not really an option) In my current testing machine, 8 GB RAM and 3/4 FII have been allocated. Below is the code that I believe is rooted on this issue. (This is the last step of the macro where individual images are compared) Any help is greatly appreciated :) func...

graphviz - Edge label overlap -

Image
डीओटी भाषा में, मैं एक साधारण भारित अप्रकाशित ग्राफ का प्रतिनिधित्व करने की कोशिश कर रहा हूं। लेकिन यह सुनिश्चित करने का कोई तरीका है कि बढ़त लेबल किनारों के साथ ओवरलैप नहीं करते हैं। उदाहरण के लिए, मुझे निम्नलिखित चित्र मिल रही है, जहां बढ़त लेबल किनारों के साथ ओवरलैप करते हैं, और यह अनुमान लगाने में मुश्किल है, कौन सा किनारा किन लेबल से मेल खाता है हम इन दो समस्याओं को कैसे ठीक कर सकते हैं? और क्या कोई अन्य तरीका है जिससे हम आउटपुट में सुधार कर सकते हैं। डॉट फाइल की सामग्री इस प्रकार है निम्न प्रकार: ग्राफ़ जी {लेआउट = एफडीपी; splines सच =; ओवरलैप = scalexy; सितम्बर = "+ 10,10"; रंग = नीला; नोड [चौड़ाई = 0.05, ऊंचाई = 0.05, फोंटिसेज़ = 10, शैली = भरा] 1 - 5 [लेबल = "1", फोंटिसेज़ = 10]; 1 - 6 [लेबल = "1 9", फोंटिसेज़ = 10]; 1 - 7 [लेबल = "2", फोंटिसेज़ = 10]; 1 - 8 [लेबल = "3", फोंटिसेज़ = 10]; 2 - 5 [लेबल = "8", फोंटिसेज़ = 10]; 2 - 6 [लेबल = "13", फोंटिसेज़ = 10]; 3 - 4 [लेबल = "10", फोंटि...

Need matching PHP encryption function -

I created a multi-piece app 3 years ago which encrypts on the NAT side and decrypts on the PHP side. I have never created this encrypted function because I do not think I'll need it. Now I do, and I do not remember where I got the PHP decry. I do not know the php encryption well to make it from scratch and it works with my existing PHP decrypt () function. I need someone to indicate in a PHP Encrypt () function that my PHP decrypt () decryption will correct all the details below. .NET encrypt function: Private string encrypt (string plain text) {if string string (. String) is returned. Empty; String passphrase = "secret1"; String nosed = "secret 2"; Int PasswordTestation = 1000; String initVector = "pOWaTbO92LfXbh69JkYzfT7P465TNc0h"; Int keySisson = 256; Byte [] initVectorBytes = encoding. ASCII.GetBytes (initVector); Byte [] SaltVolibits = Encoding. ASCII Gatebytes (saltvalue); Byte [] Plain Textbits = Encoding. UTF8.GetBytes (Plain Text); ...

Gradle cant find support lib, Android -

I have script scripts from this project here: But when I try to run the project, I get this error: * What was wrong: a configurable project 'gr8confagenda' & Gt; Not all dependencies can be resolved for configuration: 'gr8confagenda: _debugCompile' & Gt; Com.android.support:support-v4:19.1.0 could not be found. Required by: gr8confagenda: gr8confagenda: unspecified Where is I making a mistake?

php - Detecting XSS using url validation -

What is a good URL verification function in php to find xss? I used the FILTER_URL function Php, but it's still like URL: http://example.com?<script></script> You can try these four tests with: // We will test against $ pattern = array set pattern (// "on" or xmlns '# (& lt; [^ & gt;] + [\ x00- \ x20 \ "\' Match any attributes that begin]]] (^ Xmlns) [^> gt; *] # iUu ', // match Javascript:, transliteration:, vbscript: and motcha: protocol'! (( Java | live | VB) script | MOCHA: (\ W * * IUu ',' # -mose-binding [\ x00- \ x20] *: # U ', // match style attributes' # (& l T ^ [^ & gt;] + [\ x00- \ X20 \ "\ 'style = [^ & gt;] * & gt; # iUu', // match unnecessary tag '# & lt; / * (Applet | meta | xml | blink | link | style | script | embed | object | isifame | frames | frameset | iiler | layer | bjsound | title | base] [^> gt;] * gt; # # ' ; And instead of tryi...

directory - vbs file to save the current dictionary in txt file -

I want the batch file to save the existing dictionary in the txt file for example CurrentDirectory = Left (WScript.ScriptFullName, (Lane (WScript.ScriptFullName)) - (Lane (WScript.ScriptName))) WScript.Echo Current Directory Existing Directory & gt; Current.directory.txt If you want a batch file, use wscript There is no need to do Just a cd is sufficient: cd> Using C: \ currentDir.txt and cscript and VBS : currentDirectory = Left (WScript.ScriptFullName, (lane (WScript.ScriptFullName)) - (lane (WScript.ScriptName)) set objFSO = CreateObject ("Scripting.FileSystemObject") set objFile = objFSO.CreateTextFile ("currentDirectory.txt" ObjFile.WriteLine (current directory) objFile.Close

Button toggle-topbar not working in Foundation -

क्यों मेनू बटन काम नहीं करता? वह क्लिक पर प्रतिक्रिया नहीं करता। ब्राउज़र कंसोल में जेएस त्रुटियां नहीं है। मेरा कोड: & Lt; nav class = "top-bar" डेटा-टॉपबार = "" & gt; & Lt; ul class = "title-area" & gt; & Lt; li वर्ग = "नाम" & gt; & Lt; h1 & gt; & lt; a href = "/ testtop /" & gt; गेमिंगटॉप & lt; / a & gt; & lt; / h1 & gt; & Lt; / li & gt; & Lt; li वर्ग = "टॉगल-टॉपबार मेनू-आइकन" & gt; & lt; a href = "#" & gt; & lt; स्पैन & gt; मेनू & lt; / span & gt; & lt; / a & gt; & lt; / li & gt; & Lt; / ul & gt; & Lt; अनुभाग वर्ग = "शीर्ष-बार-अनुभाग" & gt; & lt; ul class = "left" & gt; & lt; li & gt; & lt; a href = "/ testtop / tops" "gt; पुनःविज्ञापन & lt; / a & gt; & lt; / Li & gt; & lt; li & gt; & lt; a hr...

language lawyer - How is 'block' granularity in Haskell defined? -

मैंने देखा कि यह हास्केल में कानूनी नहीं है: foo :: [a] - & gt; [A] foo [] = [] बार = 3 foo (x: xs) = x: foo xs हालांकि, यह है: foo :: [ए] - & gt; [एक] बार = 3 फू [] = [] फू (एक्स: एक्स) = एक्स: एफू एक्सएस यद्यपि एक फ़ंक्शन के लिए मिलान किए गए पैटर्न को एक सेट के रूप में एक साथ समूहीकृत किया जाना चाहिए, ऐसा लगता है कि प्रकार के हस्ताक्षर भटक सकते हैं लेकिन कितनी दूर? मुझे बताया गया था कि यह एक ही "ब्लॉक" में होना चाहिए ... लेकिन तकनीकी रूप से बोलना, "ब्लॉक" क्या है? प्रत्येक फ़ंक्शन के लिए घोषणाएं एक साथ होनी चाहिए, अन्य घोषणाओं को किसी भी क्रम में फ़ाइलों में हो सकता है। , अनुभाग 4.4.3.1 में, कार्य बाइंडिंग, कहते हैं ध्यान दें कि किसी फ़ंक्शन को परिभाषित करने वाले सभी खंड सटे होने चाहिए, और प्रत्येक खंड में पैटर्नों की संख्या समान होनी चाहिए। प्रत्येक मैच के अनुरूप पैटर्न का सेट रैखिक होना चाहिए --- कोई चर पूर्ण सेट में एक से अधिक बार प्रदर्शित होने की अनुमति नहीं है। आपके पास चार शीर्ष-स्तरीय घोषणाएं हैं: बार बार = 3 के ...

version control - Separated branch for each bugfix vs graft from dev branch -

I have an application with 3 environments - Dev, Forum and Production. Bug fixes and features typically have 2/3 commitments. Currently I use the Mercurial Project for myself, but I can not decide how to go, it is best to use named branches, but I do not know that 1/2 / This is right for 3. I think grafts also look promising. So I have a question that if I need to be able to separate the different changes, then what do I need? easy in the future (if necessary) find out the part of the history of the repo, which has been completed. WIP related to the job (only That's because the name of the unique branch in each branch is permanent metadata, and The common name is shared with other names in the form of shared parents / branch / bookmark-driven / history and other changes in history). Single defect of intensive use of named branches After some time, HG branches I like to use nominated branches because it gives a recoverable history and more polluted log of change: ...

bash - curl returns error (6) occasionally -

I have a script that downloads some files from an FTP file. The problem is that sometimes the curl returns error 6 (the host can not resolve) randomly! I can open the FTP through a web browser without any problem. I have also noticed that the first of all errors are errors first. Any ideas? In addition, I should know that when these errors occur, how can I curl to download again I used the code: curl -m 60 --therith 10 - delay-delay 10 - FTP-method multicwd -C - FTP: // some_address / some_file --output ./some_file Note: I also tried without code - multicwd OS: CentOS 6.5 64bit while ["$ ret" = "0"]; Curl [your options]; Retired = $ ?; Sleep 5; Done

php - Get dominant colour from image to use as a background whilst image pre-loads -

I am trying to recreate the effects used to preload images at this time. When you go to page, you will see that each image has its own color background which is selected from the pre-loading image. How would I go about making this effect? Any jsfiddle examples of possible solutions will be highly appreciated Interesting ideas. It may not be what you want, but PHPthumb creates a thumbnail of an image on the fly. A very small thumbnail which is blurred will only whiteness, background or color tone of the image. Obviously, to remove potential performance issues, the color images will need to be cached. ImageMagick will need to do image processing on the server, with phpthumb. Other PHP image processing options are documents

amazon web services - EC2 and AMQP: strange TCP issue under load -

Our app is supported by the cluster of EC2 examples, one of them is running RabbitMQ, and all the example messages from the message queue Read and write. It worked perfectly, until yesterday when we had a significant traffic spike, the messaging system started to fail: the services were able to make the queue, but they could not write or message Could read It may be from time to time, then all the time. I rebooted RabbitMQ but it did not help rebooted examples: either did not help. I stopped the whole stack, then started it again and after some time it became normal. What I can tell (but I'm not sure), the problem failed to communicate with each other (Rabbit MQ sends other TCP messages to a specific port). I'm worried that it will happen again because I'm not really sure who decided it. And I do not even know where to look. Is communication between AWS throttling / examples limited if there is too much traffic going on? Any other suggestions? ...

c# - Get Option set label in LINQ -

मुझे लगता है कि CRM 2011 का उपयोग करके LINQ शुरुआती बाध्य में। मैंने फ़ॉर्मेट किए गए वैल्यू ["फ़ील्ड_नाम"] का उपयोग करने की कोशिश की है, लेकिन मुझे निम्नलिखित त्रुटि मिली दिए गए कुंजी मौजूद नहीं थी शब्दकोश में । var query = (उपयोक्ता नाम से context.SystemUserSet का चयन करें नया user name.FullName, manager = (username.ParentSystemUserId == null) string.Empty: उपयोगकर्ता नाम। ParentSystemUserId.Name, DepartmentValue = username.new_Department, डिपार्टमेंट = यूज़रनेम। फ़ॉर्मेट वैल्यू ["new_Department"], यूज़रनेम। सिस्टम्स यूसरआईडी}); अग्रिम धन्यवाद। आपको विकल्प चुनना होगा फ़ॉर्मेट किए गए मानों तक पहुंचने में सक्षम होने के लिए फ़ील्ड सेट करें: var query = (संदर्भ में यूजरनेम से)। SystemUserSet नया उपयोगकर्ता नाम चुनें। FULName, username.filed_name Manager = (username.ParentSystemUserId = = नल)? String.Empty: username.ParentSystemUserId.Name, DepartmentValue = username.new_Department, Department = username.FormattedValues ​​["new_Department...

sql - ORA-00904 "Invalid identifier” for an identifier in a group by clause -

I am trying to show ro with compiere database between two dates. Column: Designation Sales of a Client Sales (Depot) Clients Quality-Sale Selling Deliver Sales - Total Why is this query Designed as SELECT p.name, p.M_PRODUCT_CATEGORY_ID, IL.PRICEACTUAL forms of value In the case of bp.C_BPARTNER_ID idpartner, this is the case when i.IsReturnTrx = 'N' then yoga (il.linenetamt) and yoga (il.linenetamt) * - 1 is the case as the netHT, when i.IsReturnTrx = 'N' then yoga (il.linenetamt + (il.linenetamt * t.rate / 100)) and yoga (il.linenetamt + (il.linenetamt * t.rate / 100)) * - 1 end netTTC In the form of , Qtydepot as (from il.qtyinvoiced selection C_InvoiceLine il ou bp.ISCUSTOMER = 'y' and bp.ISACTIVE = 'y' and bp.C_BPARTNER_ID = 19999), (qtyinvoiced from C_InvoiceLine il ou bp.ISCUSTOMER = 'y' Selection and bp.C_BPARTNER_ID = 18,888) qtyliv, org.description ORGNAME, loc2.address1, loc2.address2, loc2.address3, loc2.address...

javascript - Nivo slider displaying numbers instead of background image -

I'm running a very strange situation I've added a nivo slider to a site, but when I click on the slide navigator Controlnav is made up of turn numbers. The thing is that I want to use bullets instead of those numbers. I have tried to add text indent: -9999px but it does not work I have used Nivo many times before, this is the first time the script is new and as far as I can see that no scripting or CSS There is no issue because of which it can be The site is here: Why any thoughts may be happening? Thanks! Displays the nivo slider number by default. To show them pure and to show bullets instead of numbers, which you can use the theme or you can alternatively write your CSS in style. See the topic to include. You have to change the html a bit. See these 2 JS Fiddles for the purpose and without any examples. - Without - with in the default-theme CSS file, it includes the following styles that display the link as a bullet. .theme-default. NivoSlider A ...

c# - Set method does not set the properties of an abstract object through Moq -

मेरे पास SetRange विधि है, जो StartDate और समाप्ति दिनांक गुण: सार्वजनिक वर्चुअल शून्य सेटरेंज (डेटटाइम? स्टार्टडेट, डेटटाइम? एंडडेट) {this.startdown = startDate; This.EndDate = endDate; } मेरे स्टब ऑब्जेक्ट पर टेस्ट में, नीचे StartDate और EndDate गुण सेट करेगा: var dateRangeEntityStub = नया नकली & lt; दिनांकरेंज एंटीटीबेस & gt; (); dateRangeEntityStub.SetupAllProperties (); // कम से कम 1 तारीख सीमा एंटीटीस्ट। ऑब्जेक्ट .सेटरेन्ज (डेटटाइम.अब। जोड़े गए साल (-1), डेटटाइम.Now); // अपमान 2 तारीखकौजइन्तिटीस्टब .सेटअप (x = & gt; x.SetRange (दिनांकटाइम.अब। जोड़ा गया युग (-1), दिनांकटाइम.अब)); लेकिन सामान्य सेटर काम करेगा: dateRangeEntityStub.Object.EndDate = DateTime.Now; क्यों SetRange विधि स्टब पर गुण सेट नहीं करती? Moq प्रत्येक आभासी विधि / संपत्ति को ओवरराइड करता है और उसके लिए इसके स्वयं के क्रियान्वयन का उपयोग करेगा इसलिए यदि आप अपने SetRange विधि का मूल व्यवहार रखना चाहते हैं, तो आपको CallBase से true को सेट करें मॉक जो आपके मूल...

linux - udev rules not working -

I am using Ubuntu and when my USB stick is connected then I should have a date log. I have created sudo vi /etc/udev/rules.d/60-my.rules where Sub == "USB", action == "add", kernel == "sd? 1", ATTRS {serial} == "11353000000006E5", run + = "/ usr / local / bin / myusbrule.sh / dev / Sdb1 " Where there is a 11353000000006 E5 serial number my shell script of my pen drive is myusbrule.sh #! / Bin / bash date & gt; & Gt; /home/nilesh/log.log But when I am adding pen drive, nothing is being updated in the log file, am I wrong anywhere? "itemprop =" text "> udev can not run your script on any active terminal, and it is under the context of a shell It does not execute: you can not expect any standard output to appear on your terminal, you can try to write a log file or something like this. Source:

java - Why is throwing a checked exception type allowed in this case? -

I saw from accident that it was compiled by the throw statement (removed from some more complex code): / P> void foo () {try {} catches (throttle t) {throw t; }} For a brief but happy moment I thought that the exceptions had already been decided to die already, but it still gets excited: zero foo () {try {} catches (throbbles) {throbable t 1 = t; Throw T1; }} Try the block should not be empty; It appears that the code can be in such a long time, unless the code throws that check exception. It sounds reasonable, but my question is, which rules in the language specification describes this behavior? As far as I can see, it explicitly restricts it, because t is an exception to the type of expression, and it is not announced to be caught or thrown. (?) I think the word that has been used is a mistake in JLS & Mdash; The text which should be updated with Java SE7, and was not. JLS is a bit of text that describes the behavior that is desired: A Throw ...

php - Error creating table: You have an error in your SQL syntax near 'order( order_id INT UNSIGNED NOT NULL AUTO_INCREMENT, user_id ' at line 1 -

इस सवाल का पहले से ही एक उत्तर है: 1 उत्तर मैं 2 बनाने की कोशिश कर रहा हूँ प्राथमिक कुंजी 'user_id' के साथ तालिका 'उपयोगकर्ता' और प्राथमिक कुंजी 'order_id' के साथ तालिका 'उपयोगकर्ता' और 'उपयोगकर्ता' तालिका से विदेशी कुंजी 'user_id' तालिका (1 से कई रिश्ते) के साथ एक ही MySQL डाटाबेस में टेबल )। टेबल उपयोगकर्ता बिना किसी समस्या के सफलतापूर्वक बनाता है: $ sql = "टेबल बनाओ उपयोगकर्ता (user_id INT अनलाइन अनावश्यक नहीं है AUTO_INCREMENT, प्रकार ENUM ('सदस्य', 'व्यवस्थापक ') नल नहीं, उपयोगकर्ता नाम VARCHAR (30) नहीं, शून्य VARARAR ईमेल (80) नहीं, VARBINARY (32) नहीं, नाराज first_name, VARCHAR (40) नहीं, पिछले last_name VARCHAR (40) नहीं, तारीख _expires नहीं,Date_created TIMESTAMP नल डिफॉल्ट CURRENT_TIMESTAMP, दिनांक_संकेतित TIMESTAMP नहीं शून्य डिफ़ॉल्ट '0000-00-00 00:00:00', प्राथमिक कुंजी (user_id), अद्वितीय (उपयोगकर्ता नाम), अद्वितीय (ईमेल)) इंजन = InnoDB DEFAULT CHARSET = utf8 "; हालांक...

php - Callback function -

Then in javascript, I used to be able to start a call request when AJAX sent some data back to the server Sent, successfully made a callback function. Now I'm experimenting with Ruby for OAuth2 Gem, and I'm looking for the callback to not be the same; I have a web server and Facebook app installed, and I have a small PHP script that writes the file to the current URL (for example, with athletic code), there is no problem. All the settings are set in the Facebook app, and if I put it in the URL in the browser: http://graph.facebook.com/oauth/authorize?client_id= [My_client_id] And redirect_uri = http: //localhost/oauth/callback/index.php it successfully redirects to the script, which then writes the authorization code in a file that I then I can use the access token to get the problem The problem is that I can only process it manually I; By using Net :: HTTP.get (URI (address)) the command in Ruby does not seem to initialize PHP scripts. Is the Ioine having any ide...

Execute PHP in a HTML file without PHP language -

I want to execute a PHP file in my HTML code. I can not use the PHP language such as: Because the site is working with templates, and it is impossible to rename them in php So I have PHP at the specific place of the HTML code ), So that everything in the PHP file will be visible there. P> For example: & lt; Tr & gt; & Lt; Th & gt; Table: & lt; / Th & gt; & Lt; TD & gt; !! PHP executed here !! & Lt; / TD & gt; & Lt; / TR & gt; Any ideas? If the problem is that you can not rename the file to * .php, but the server on PHP Has been installed on. You can create all your .html files in .htaccess file to execute as .php. See this answer; .

java - Can not instantiate value of type from json string -

I have bidirectional relationships between users and groups. @ ) @ Generated Values ​​(strategy = generation type, sequence, generator = "user_porter") Private Long ID; Private string user name; Private string password; @ManyToMany private list & lt; Groups & gt; group; } @ Entity @Table (name = "GroupTBL") public class group {@Id @SequenceGenerator (name = "group_janerator", serial name = "group_sec", allocation size = 1, initial value = 1) @ generated value (strategy = GenerationType. Sequence, generator = "group_guitar") private long id; The name of the private string; Private string description; @ManyToMany (mapped = "group") private list & lt; Users & gt; Users; } I am developing an angular JS application with Java jax-rs web service and I'm using Jason Binding on Jackson but I'm getting this exception: JSON can not instantiate the value of type [ordinary type, class com.blog.models.Grou...

Get value from a javascript function in a php variable -

Then I have this javascript function which is on my page which calculates the date now, I throw the function by fax I want to use the results that are made so that I can insert that variable into a value in the database. The function should be called on page load. I am trying to complete it for the past 4 hours but there is no solution, no suggestions and solutions are welcome. My JS Code: - & lt; Script language = "JavaScript" & gt; // To calculate a local city / local time // // UTC Offset Function of the City is given to Calxack (City, Offset, Seledet, Silbers, Selminets) {// Alert (Settat); // warning (selHours); // warning (selMinutes); // warning (offset); Var str = selDate; Var res = str.split ("/"); // 07,26 / 2014 // 0,1,2 var d = new date (res [2], res [0], res [1], selHours, selMinutes, 0, 0); // Create date object for current location // Warning (D); // var d = new date (); // warning (d); // Convert to MSEC / Add local time zone offset ...

javascript - How to continuously check the value of an input using jquery? -

I have an input that is empty after page load, and if a user suddenly sums up the value on it My problem occurs when I fill an input, if the condition result does not change in real time. script: $ (document) .ready (function () {var countTimerEmailName = setInterval (function () {emailName ();}, 500); function emailname () ($ ('$ EmailCodeResult') Val ()! = '' || $ ('# email'). Val () == '') {Clear interval (countTimerEmailName);} $ .aex ({ Url: "view.php", type: "GET", data: {word: $ ('# email'). Val ()}, datatype: "JSON", success: function (result) {}});} ;}); Change your work on fire $ ( '#inputA, #inputB'). Change (function () {if ($ ('# inputA'). Val ()! = '' || $ ('# inputB'). Val () == '') {Warning ("true");} Other {warning ("false");}})

javascript - AngularJS directive to display/hide either templates -

I have a checkbox as follows, and when I am checked or not, showing / hidden taxid input or CKNA input I have To do this, I have written an instruction as follows, but it is not working. What exactly is the problem in my direction? app.directive ('chkNo', function ($ COLLECTION, $ LOG) {var template_taxid = "& lt; label id = 'taxidlbl' & gt; Tax ID number & lt; / Label & gt; & lt; br / & gt; Input You can only use ng-show ng-hide & lt; Input type = "checkbox" ng-model = 'chucks' & gt; & Lt; Div ng-show "chks" & gt; & Lt; Label & gt; Tax ID Number & lt; / Labels & gt; & Lt; Br / & gt; & Lt; Input type = text 'name =' taxid 'placeholder =' tax id number 'ng-model =' taxid 'required & gt; & Lt; / div & gt; & lt; div ng-hide "chks" & gt; & lt; label & gt; check number & lt; / labels ...

create phonegap app in eclipse/cordova vs 'Adobe phonegap build' -

I created an app in 'Adobe PhoneGap Build'. This app was running slow (pushing buttons etc.) A few years ago, I had created the PhoneGap app using Eclipse with Cordova. This app was also a bit slow but I I thought I had made a fast using this 'Adobe Phonegap Build'. Has anyone tested or read the document that says 'Adobe Phonegap Build' with its Cordova in Eclipse By making one slow Shudha '? Already, thanks for your reply. From my experience, I know that if you build a jQuery mobile app + Phonegap is slow May be, but not always. But if you use good design patterns, and the low DOM manipulation app will be very fast: -)

Uploading File without any extarnal gem rails 4 -

After watching the train guide 4 I am trying to upload an image without any gem, but when my button field My image field is empty if it's ready. Here's my controller: Class Image Controller & lt; ApplicationController before_action: set_image, only: [: Show, Edit, Upload, Update: Delete] #GET / Images # GET /images.json DNF Index @ iGues = Image. All #GIT / Image / 1 # GET /images/1.json def Show End # GET / images / new def new @image = Image.new end # GET / images / 1 / def Edit Edit end # POST / images # POST /images.json def @image = Image.new (image_params) If the consultation [: image]. Displayed? File = param [: picture] [: picture] file. Open (rail .. rot.joint ('app', 'assets', 'image', file.originalfilename), 'wb'). F | F.write (file.read) to end the response_. Format | If @ image.save format.html {redirect_to @image, notice: 'Image was created successfully.' } Format.json {Render Action: 'Show', Status :: C...

redefine $susy values at breakpoint container -

I am trying to redefine a $ susy property container within a media query. I'm trying to run Include @ breakpoints ($ mobile) {$ susy: (container: 100%,); } When I compile the CMD then try using $ suspect: (container: 100%)! Instead global! I tried and it does not work. Any thoughts? Thanks As I understand, $ susy is the global setting in which you Set the basic layout of the site, for the layout of the breakpoint, I use new maps, e.g. $ Tablet, $ desktop

ios - Modify the value of an object in an array in Swift -

I have a problem specifying an object inside an array. Let me know what I did. Archive is a straight: Collection collection {var selection: Int = -1} Object is an object that contains an array of archive objects, and it is also a straight: structure object {var archive: [archive] If I am using the following code, then the value is not specified: Selection on the fun (index int, selected index int) {var collection = Self.object.collection [ind Bus] collection. Selection = selected index} This is probably because I have a value type in array swift. Then I changed my code: selected on the fun (index, selected index) {self.object.collection [index] .selection = selectedIndex} Then I received a compilation error, the error message is: / version / Macintosh HD / User / Public / Projects / Test / Controller / MyViewController.swift: 214: 9: '@lvalue $ T8' is not equal to "int" What happened? What should I do to assign the value of ...

Elasticsearch - startswith filter? -

I am trying to get a simple start-up functionality in elastic services. For example, I want to match the query "char" to "charlotte", but I do not want it to match "Darlolote". After using an edge Ngram filter gave me the results. I only want to match the results that start with the query terms, they have not only them with them {"query" : {"Prefix": {"name": "char"}}}

ruby - Understanding coercion -

I submitted one, which modifies the matrix class so that the joints are real The number can be: matrix [[25, 93], [-1, 66]] + 5 matrix The class is a way of + () , which is said in this case. I would also like you to be able to change the order of operation 5 + matrix [[25, 93], [-1, 66]] Matrix seems to support this command of operation * () method and I call it + () method is unsure of how to implement force course Method is controlled. This method is to return two elements, for which the operator / method has to retry. matrix defines shutdown as: def corse (other) case when other numerical return Scalar.new (other), self Increase TypeError, "# {Self.class}" can not be terminated at the end Note that this order of operands is not changing , But converts them to a scaler in the numeric value in the class. Therefore, Ruby will see 5 + matrix [...] Scalar.new (5) + matrix [...] . The scaler class is defined in the same file ...

portability - SublimeREPL for Python on a portable version of Sublime Text 3 and portable Python? -

I am trying to work on SublimeREPL on Python code which is being edited in the portable version of succeeding text 3 is. I want to setup a SublimeREPL by using the portable version of Python installed on a USB stick but I'm not sure how ... Besides, I do not know how to use Python version of SublimeREPL to setup Have to install on my windows desktop My setup: I am running a portable version of Python 2.7.6.1 () on a USB stick, I have a USB stick Running a portable version of Sublime Text 3 Build 3059 (): " H: Python \ Portable Python 2.7.6.1 " , installed under: " H: Sublime \ 3 " So far the only thing I have tried is updating SublimeREPL user settings to: {" default_extend_env ": {"PATH": "{PATH}: H: \\ Python \\ Portable Python 2.7.6. 1 \\ idle-portable.exe "}} Thanks! This will do the trick: {"default_extend_env": {" PATH ":" {PATH}: \\ Python \\ Portable Python 2.7.6.1 \\ IDL...

ios - How to ignore time in NSPredicate? -

There is a datetime field in my class called date_time In the lower loop I would like to find all the examples that have the same date That's where time will not be taken care of. for (int day = 0; day & lt; days.length; day ++) {[Component set day: day]; NSPredicate * predicate = [NSPredicate predicateWithFormat: @ "date_time ==% @", [Cal date format: component]]; } The above will not work though, because time also includes time in time. Is there a way to do this? I think this will work for you: [ Component set day: day]; NSDate * dateFromComponents = [cal dateFormat: components]; NSDT * Next Deedet = [NSDT date with timer: 24.0 * 60.0 * 60.0 Email: ડેટફોર્મ কম্পোনেন্টস]; NSPredicate * predicate = [NSPredicate predicateWithFormat: @ "date_time & gt; =% @ and & date_time

ios - How to make the spritenode's velocity work the same when making a universal app in sprite kit -

When I am making a universal game, I apply an impulse to a subject. It works very well in the iphone simulator but when it comes to iPad simulator, the impulse is very small. Then I change the impulse to be applied directly with the speed, it works a little better, but not enough, can anyone tell me why it works differently?

java - Objects in an immutable class as member variable -

I have a class X which keeps the employee object I want to make Class X ineffective. Even if I declare the purpose of the employee as a final form, then the employee class is freely available and people can reach the setter methods of that particular employee. Can it be an ordinary class employee and another unchanging class X, which keeps employees, but once the employee is handed it, the value of the employee can not be changed? Public Last Square X {Private End Employee Employee; Public X (employee E) {this.emp = e; } Public Employee getEmp () {return emp; }} Employees, I do not want to make it irreversible, just want to make Class X unchanged. After assigning an employee, it should not be allowed to change it. Is it possible that, without making the class employee irreversible, I want to be able to be freely available to the class employee, so it does not want to privatize my own construction. You do not have to expose the employee member of the immutable class. You ...

Jena TDB , see how many triple stored during tdb creation -

Is it possible to see the number of triples in storage during tdb creation with Hi-Java API? I run the TDB factory with a RR file in Turtle, but while creating a file in my directory, I can not see how many triples it has stored. How do I solve this problem? "post-text" itemprop = "text"> You can view the bulk codes via a Java code (triples are presented for viewing): final dataset tdbdataset = TDBFactory.createDataset (/ * location * /); Try (in the last inputstream = / * Get input stream for your large file * /) {TDBLoader.load ((DatasetGraphTransaction) tdbDataset.asDatasetGraph ()). GetBaseDatasetGraph (), in, right); } If you have multiple files in your archive (for simplicity, I will not rear, rather a zip), then you can customize the performance by adding files together One file before passing the bulk loader Until all triples are presented, the delay in construction of the index raises better performance. I'm sure there are other formats t...

zip - Windows phone 8 download then unzip to isolated storage -

I am writing a Windows Phone 8 application which has the following functions A ZIP Download the file from the Internet Remove it in separate storage I am looking for a solution to deal with it, but not found once. Please help if you have any suggestions. Thanks in advance! Edit: I've divided it in several steps: Check whether storage Available - Done Check if the file is compressed - Background to download in the local folder and display the information to the user Use the transfer (or other method) (percent, ect.) - not now not yet Do After that I ... - for step 4 Some scripts modify the file to remove the separate storage (SharpGIS.UnZipper lib) to be removed: by using public async zero UnzipAndSaveFiles (stream stream, string name) {IsolatedStorageFile IsoStore = IsolatedStorageFile.GetUserStoreForApplication ()) {(Var zipStream = New Azper (stream)) {Foreach (string file in zipStream.FileNamesInZip) {string fileName = P...

javascript - ng-repeat using scope function return value not calling function -

I'm having trouble using the return value of the function because ng-repeat in a custom command. The code is very simple: . Directional ('triro', [function] {return function created () {var treeController; return (restriction: 'e' is required: '^ treegrid', radius: {line: '='}, template url: 'components / TreeGrid / template / line.html.html, link: function (area, element, etter, grid controller) {tree controller = grid controller;}, controller: function ($ scope) {$ scope.getColumnDefinitions = function () {return treeController Template: ; Td ng-repeat = "getColumnDef Columns in inions (columns) & gt; {{row [column.key]}} & lt; / td> & lt; / tr & gt; debugger usage By doing, the getColumnDefinitions function is never actually called in the template, inspecting the code, the function is present. Just fine, however it works in the template: & lt; T & gt; TD & gt; {{getColumnDefinitions ()}}...

sql - NoSQL for searching millions of pages? -

I have been provided with aprox 4-5 million images of old documents which my company has decided to remove. We are trying to go paperless but I am facing a problem which I am unable to fully understand. I have always used SQL for the amount of this data but now I have only images. I have already bought ABBYY Fine Reader OCR and it is currently working on OCR for all the files on Word or PDF. The problem is that they want to search this data in less than 7-10 seconds within this large scale and want to get all the results with the download link in the original image of the file. I do not have any SQL but I think this is not the best way because I do not need to create a table with any schema and just the entire text of each image is the same page number and the link to the original file Will have to be linked with. According to my knowledge this age will take birth, what other solution can I use? A document to search on a set, usually the best to create a reverse index The so...

jquery - Html5 video toggle fullscreen lost filename and display poster -

I'm trying to "play" with html5 video balance and I find it difficult to toggle fullscreen Want to The Src file name is full of JQuery and is running fine, but when I click on the fullscreen, the poster is displayed on full screen and I have lost my video. Here's my code: & lt; Html & gt; & Lt; Top & gt; & Lt; Meta charset = "UTF-8" /> & Lt; Link rel = "stylesheet" href = "web / css / jquery-ui.css" & gt; & Lt; Link rel = "stylesheet" href = "web / css / mp4.css" & gt; & Lt; Script src = "web / js / jquery-1.11.1.js" & gt; & Lt; / Script & gt; & Lt; Script src = "web / js / jquery-ui.js" & gt; & Lt; / Script & gt; & Lt; / Head & gt; & Lt; Body & gt; & Lt; Div id = "video" & gt; & Lt; Video id = 'videoplayer' control = "control" poster = "web / picture / poster.jp...

python - Subclassing django model doesn't carry the Manager -

अगर मेरे पास एक Django मॉडल है: वर्ग व्यक्ति (models.Model): नाम = मॉडल.कारफिल्ड (अधिकतम_ लैंग = 45) सरनेम = मॉडल.कारफिल्ड (अधिकतम_लांबी = 45) ऑब्जेक्ट = PersonManager () और उसके प्रबंधक: वर्ग P> उस वर्ग को विस्तारित करना: वर्ग अभिनेता (व्यक्ति): पास के पास एक ही प्रबंधक वस्तु नहीं है, लेकिन डिफ़ॉल्ट एक है। में [5]: person.objects.create_person बाहर [5]: & lt; बाध्य विधि PersonManager.create_person & lt; xxx.PersonManager ऑब्जेक्ट 0x10297d190 & gt; & gt; में [6]: अभिनेता.बाइजेक्ट्स.सेंट_परिवेटर ---------------------------------------- ----------------------------------- विशेषता अभिलेख ट्रेसबैक (सबसे हाल ही में कॉल अंतिम) & lt; ipython-input-6 -468f84e48664 & gt; में & lt; मॉड्यूल & gt; () ---- & gt; 1 अभिनेता.विज्ञानी.कुटेंट_परेटर एट्रिब्यूट: 'मैनेजर' ऑब्जेक्ट में 'create_person' कोई विशेषता नहीं है ऐसा क्यों है और मैं मैनेजर को सभी उपवर्गों में कैसे प्रचार कर सकता हूं? आप इस बारे में यहां अधिक प...

c# - How to display values in a dictionary? -

How do you list the values ​​in a dictionary in which the key is a string and the value is a string array? Dictionaries & lt; String, string []> Item = New Dictionary & lt; String, string []> (); String [] Products 1 = {"Item 12", "Item 13", "Item 14", "Item 15"}; String [] products2 = {"item 1", "item 2", "item 3", "item 4"}; String [] Products 3 = {"Item 12", "Item 22", "Item 23", "Item 42", "Item 52"}; item. Add ("Products 1", Products 1); item. Add ("Products 2", Products 2); item. Add ("Products 3", Products 3); I would like to print the following: products1: item12, item13, item14, item15 products2: item1, item2, item3, item4 products3: item12, The key to list only related items: item22, item23, item42, item52 string .join (",", item [key]); To list all products and all items:...

Java load plugin jar ClassNotFoundException -

I'm new here and sorry for my bad english;) I try to load the plugin jar in Java with this code: package testing program; Import java.io.file; Import java.net.URL; Import java.net.URLClassLoader; Import java.util.HashSet; Import java.util.Set; Public Class Training Program {Private Stable Set & lt; Plugin & gt; Plugins = New Hashet & lt; Plugin & gt; (); Private stable test program example = new test program (); Public static zero main (string [] args) {System.out.println ("test program v0.1"); File plugins directory = new file ("plugins"); If (pluginsDirectory.exists () and pluginsDirectory.isDirectory ()) {file plugin file: plugins directory .list files ()) {if plugin plugin.exists () & pluginfile.implex () & amp; PluginFile .getName (). EndsWith (".jar")) {try {URL} URL = New URL [] {pluginFile.toURI () ToURL ()}; Class loader loader = new url class loader (url); Class c = loader.loadClass ("src." + PluginF...