Posts

Showing posts from July, 2014

swing - Java: Ball Collision with Frame -

How to not know how to kill it I have to kill I currently have a ball that moves diagonally downwards and on the right, When it is collided with the edge of the frame, it needs to bounce. Main: Class controlled bottle JPanel {Private int x = 70; Private int y = 30; Private bullion yes = true; Public Zero Paint Component (Graphics G) {SuperpactConant (G); Graphics 2DG2 = (Graphics 2D) G; G2.setColor (Color.BLUE); Oval 2D Double ball = new oval 2D Double (X, Y, 50,50); g2.draw (ball); g2.fill (ball); } Public Zero Step: Wright (int d) {x = x + d}} Public Zero Step Down (int d) {y = y + d;} public void gogo () {yes = true;} Public zero nono () {Yes = false;} public static zero main (string [] args) {JFrame frame = new viewer (); Frame.setSize (500, 500); Frame.setTitle ("bouncing ball"); Frame.setDefaultCloseOperation ((JFrame.EXIT_ON_CLOSE)); Frame.setVisible (true); }} Viewer category: public class viewer JFrame {JButton go = new JButton ("GO"); Jebton

objective c - NSNumberFormatterCurrencyStyle where decimals are only shown when period is used on the keypad -

I am a new obj c programmer, and I do not know what is the status of switching to the following scenario: I have UITe I am using xtField as the input field. Part of my code: NSNumberFormatter * numberFormatter = [[NSNumberFormatter alloc] init]; [NumberFormatter Settlement Style: NSNumberFormatterCurrencyStyle]; Cell.input = [[UITextField alloc] initWithFrame: CGRectMake (0, 6, cell.frame.yize.width, 80)]; Cell.input.currencyNumberFormatter = numberFormatter; Do I have to use the UITextField method Will be in the condition: (zero) textFieldDidBeginEditing: (UITextField *) textField {} Any indication which you can provide is really appreciated Will go. Thanks! Set the currency code Set minimum and maximum degrees [ NumberFormatter setCurrencyCode: @ "USD"]; [Number format maximum fracturedegit: 2]; [Number formatting set minimum fracturing data: 0];

php - How to multiply two arrays of different length? -

I have two lines of different length: $ a = array (10, 20, 30, 40, 50); $ B = array (1, 2, 3); I want to multiply them (like $ c = array_mult ($ a, $ b) ), that little serial is repeated $ C should be 10, 40, 90, 40, 100 to: 10 * 1 = 10 20 * 2 = 40 30 * 3 = 90 40 * 1 = 40 50 * 2 = 100 Is there an inherent function in PHP to accomplish this task? How can I solve this problem efficiently? There is no built-in function to do this; you can call it a foreach and Modules can be done easily with the operator, however: $ c = array (); $ Lane = count ($ B); Forex Currency ($ one $ key = & gt; $ value) {$ c [$ key] = $ value * $ b [($ key% $ lane]]; }

php - Show Custom Taxonomy Post Count by the Taxonomy ID -

I'm looking for a way to show the quantity of posts in each custom classification by ID, I want to show in my sidebar navigation The amount of posts that are not the party of any query, so I have every custom customer ID but I'm not sure how to get the calculation posted by them I see that there is a function in WordPress & lt; php wp_count_terms ($ classification, $ args); ? & Gt; Although my entire custom classification requires post counting to count each post for each of my different categories. < & Gt; Guide ',' Post_Status' = & gt; 'Publish', 'Categorization-Name' = & gt; 'Classification Category Category', 'Number Post' => 1]; Echo $ num = count (get_posts ($ args)); ? & Gt;

jquery - Drag and drop small images into a base image -

I am new to jQuery and I want to draw some images in the original image. I want to say that there is an original image and on this image, I will draw some small pictures and pull it. Please suggest some plugins. Any help is highly appreciated. You do not need any plug-ins to do this. Just do this by using JQueryUI. Please look for help, this is what you want.

uinavigationbar - setting the size of navigationbar icon ios -

इस सवाल का पहले से ही एक उत्तर है: < / P> 4 जवाब मुझे पता है कि वहाँ है नेविगेशनबार आइकनों के लिए कोई भी डिफ़ॉल्ट आकार। डिज़ाइनर को इसे डिज़ाइन करने की ज़रूरत है। क्या उन्हें इसे रेटिना और गैर-रेटिना डिस्प्ले के लिए डिज़ाइन करना चाहिए। वर्तमान में मैं इंटरनेट से डाउनलोड की गई छवियों का उपयोग कर रहा हूं जो बहुत अच्छा नहीं दिख रहा है। निम्न आकारों में नेविगेशन बार आइकन बनाएं: 44 x 44 पिक्सल के बारे में 22 x 22 पिक्सल (मानक रिज़ॉल्यूशन) अधिक जानकारी आप यहां पा सकते हैं

Spring task executor in jboss -

I am currently using the spring work executable framework in jboss 7 (I do not use jboss's java ee features I am using only servlets) and my configuration looks down When jboss starts, how is the thread managed to manage the thread pool, whether it can be unmanaged from jboss perspective or the thread pool in the standalone allocated for the WEB web. Will be made from the configured pool? Please tell me. Code snippet on a / Div> .

How to dynamically set background color in IOS? -

I have to set the background color in the iOS using string value. It should be done dynamically how is it possible? myColors = @ [@ "redColor", @ "greencolor", @ "blue color ", @" Yellow color ", @" black color ", @" cyan coral ", @" magenta cloor ", @" purple color ", @" gray color "]; // value in NSArray / int a = arc4random ()% 9; // Choose Random Value // SEL ABC = NSSelectorFromString ([myColors objectAtIndex: A]); [_canvas setBackgroundColor: [UIColor performSelector: abc]];

How to get data from a GIS server in R? -

I am using ArcMap to use GIS data on the spatial data server. I have to find out how to do this in R. I know how to read the file size in R. I used to use maploles and RGDL to open and map files stored locally (like) My problem occurs when the data is not stored locally, rather it is a The application is on the server. I believe this is an Oracle database, I have been given information about 1. Server 2. Example (number one) 3. Database 4. Users and 5. Passwords Generally, I will include an example, but it is suspicious that an external user can access the server Example How to Read and Plot Local Files Library (rgdal) ogrInfo (".", "Nw-rivers") centroids.rg & lt; - readOGR (".", "Nw-centroids") plot (centroids.rg) "." The local directory indicates how can I change this to access the data on a server? The actual syntax of code will be useful. You can read data from Oracle SPECIAL DB using GDAL / OGR: If yo

java - What is use of user defined marker interface -

इस सवाल का पहले से ही एक उत्तर है: < / P> 8 जवाब 5 जवाब मान लीजिए कि मैं मार्कर इंटरफ़ेस Kiran बनाया है और मैं इस इंटरफेस का उपयोग कैसे कर सकता हूँ मुझे पता है कि यह क्रियाओं के लिए इस्तेमाल किया जाता है लेकिन मार्कर इंटरफ़ेस घोषित करने का क्या उपयोग होता है। सार्वजनिक इंटरफेस kiran {} एक सामान्य उपयोग के मामले का परीक्षण करना है, यदि किसी वस्तु को इस इंटरफ़ेस से चिह्नित किया गया है: यदि (obj instanceof kiran) {// कुछ करें}

symfony - Global values: Define as service or define abstract Controller class? -

In my Symfony2 app, I want to get a value from my database on every template and do not want to call Each controller I know that I can define it as a service and inject it into my jogging templates (defining it as a twig global). Is this a common and recommended way? Or should I make an abstract controller class where I get that value in my constructor and then get it from all my other controllers? Note: This is not really a stable value, which is similar to all users, but this is a user-specific value that is different for each user. If these variables were used to present the same place on your page If you go then you can present one. Like this: & lt; Div id = "sidebar" & gt; {{Render (Controller ('Your bundle: User: Statistics'))}} This will apply the entire output of your bundle / user controller / statistics to the #sidebardevice. Inside this action you can remove all the information you need. If you need to use these variables in a

javascript - Angular js - optional dynamic url params -

I have set up a simple paging URL like this: . When ('/ Users:: offset /: filter /: keyword', {templateUrl: 'views / users / index.html', administrator: 'user', reloadon search: folley}). Otherwise ({redirectTo: '/'}); Now if I browse site.co/users/5/1/heykeyword but if I site I was redirected to .CO / User / 5/1 me / What's wrong? Should not the roads be moving?!! The problem is whether you have written, a required argument is included, You can get it optional by adding 'keyword' (by adding a question mark): . When ('/ user /: offset /: filter /: keyword?', {TemplateUrl: 'views / users / index.html', administrator: 'user', reloadon search: folley}). Otherwise ({redirectTo: '/'}); Offset & amp; A filter is required, but the keyword parameter is now optional. For more information: $ pathProvider From the angularjs document: The path can be optional in the named group

call a method in a java class with jsf -

यह बीन है पैकेज बीन; सार्वजनिक कक्षा अलार्मबीन {सार्वजनिक स्ट्रिंग getOID () {वापसी OID; } सार्वजनिक शून्य setOID (स्ट्रिंग ओआईडी) {OID = oID; } सार्वजनिक स्ट्रिंग मिल एडिट () {वापसी विज्ञापन; } सार्वजनिक शून्य सेटअपरिप (स्ट्रिंग एड्रिप) {this.adrip = adrip; } सार्वजनिक स्ट्रिंग मिलना () {वापसी की तारीख; } सार्वजनिक शून्य सेट डेट (स्ट्रिंग डेट) {this.date = date; } सार्वजनिक स्ट्रिंग प्राप्त विविधता () {वापसी गंभीरता; } सार्वजनिक शून्य सेट विविधता (स्ट्रिंग गंभीरता) {this.severity = severity; } निजी स्ट्रिंग ओआईडी; निजी स्ट्रिंग विज्ञापन; निजी स्ट्रिंग तिथि; निजी स्ट्रिंग गंभीरता; सार्वजनिक शून्य अलार्म () {प्रबंधक प्रबंधक = नया प्रबंधक (162); System.out.println ("पर सूची:" + manager.trapReceiver.getPort ()); manager.trapReceiver.addTrapListener (प्रबंधक); } यह क्लास मैनेजर है पैकेज बीन; आयात करें com.adventnet.snmp.beans.SnmpTrapReceiver; आयात करें com.adventnet.snmp.beans.TrapEvent; आयात करें com.adventnet.snmp.beans.TrapListener; सार्वजनिक कक्षा प्रबंधक TrapLi

shell - Close process using a file on windows -

I want to close all programs that are using a file on Windows, what I want on Linux An example is: pids = `lsof | | Grep $ fic | Grep -v "grep" | Tr-d '\ t' | Please replace the batch with the bash and install this will solve the object

jquery - How to show selected value in dropdown list -

After submitting the JSP page request, the servlet goes to the form text fields and dropdown lists to fill an item on the JSP page I need to send an object like servlet needs. The user will enter the ID value in the form and we will have to get it from the data Initially when the JSP page is loaded Then the dropdown list value should be derived from the database Problem: After submission, show how the value derived from the database in the dropdown list box. Because it is conflicting with the previous scenario (get the value dynamically from the database on load) !! / * & lt; Sql: setDataSource driver = "sun.jdbc.odbc.JdbcOdbcDriver" url = "jdbc: odbc: lab" var = "local source" /> & Lt; sql: query data source = "$ {local resource}" select sql = "cate_id, category" var = "result" /> to cate_desc & lt; Select name = "cate_id"> & Lt; C: forEach item = "$ {result.rows}&

logging - How to pass log file name through MDC logback feature -

I want to use the MDC feature logback for my log name, but I get the % PARSER_ERROR [X] itemprop = "text" In the / code> file name it is impossible to assign a name to the log file. Any help that has been passed without problems in my log file pattern parameter will be appreciated Here is my logback.xml file contents:. & lt; XML version = "1.0" encoding = "UTF-8" & gt; & Lt; Configuration scan = "true" scan Pieriod = "60 seconds" & gt; & Lt; JmxConfigurator / & gt; & Lt; Property scope = "context" name = "PATH_TO_LOGS" value = "$ {catalina.base} / log" /> & Lt; Appender name = "FILE" class = "ch.qos.logback.core.rolling.RollingFileAppender" & gt; & Lt; File & gt; $ {PATH_TO_LOGS} /app.log</file> & Lt; Filter class = "ch.qos.logback.classic.filter.ThresholdFilter" & gt; & Lt; Levels & gt; Error &

custom controls - how to create and implementing numeric key pad in android -

I have created a square, which creates the button runtime and I see that category as the key pad in the specific editing text area I want to apply in. I do this. The code for my class is given below see the public square's keyboardvision extension {LinearLayout verticalLinearLayout, horizontal linear layout; Button Button, BTNZero, BTNPoint, BTndon; Public Keyboard View (Reference Reference) {Super (Reference); // To-O Auto-Generated Constructor Stub} Public Keyboard View (context reference, AttributeSet attributeSet) {super (context, featureSat); // Tudo Auto-generated Constructor Stub} Public Keyboard View (context reference, AttributeSet attribute set, int i) {super (context, attribute set, i); // Tudo Auto-Generated Controller Stub} Public Liner Layout Adview () {Vertical linear layout = new linear layout (getContext ()); VerticalLinearLayout.setOrientation (LinearLayout.VERTICAL); Int count = 1; (Int i = 1; i & lt; = 3; i ++) {horizontal laner layout = new linear la

c - Where did getchar() go in the second run -

I am trying to create an interactive socket communication client program that sends messages to a server when the user asks it and receives it. Also the incoming message on the same socket (once connected) Since these messages can exit the order, and I am using non-blocked IO, I intend to test a flag at the end of each selection If the user Fie option has interrupted the program to enter. get_user_opts () for the first call, the function runs fine and takes the input from the user, but for later calls, this does not wait for user input. It says to run in GDB: getchar () at getchar.c: 37 37 getchar.c: There is no such file or directory. getchar.c (gdb) at 38 getchar.c (gdb) 37 at getchar.c (gdb) _IO_acquire_lock_fct () libioP.h: 984 984 libioP.h: no such file or directory is LibioP.h (gdb) 985 In libioP.h in (gdb) getchar () getchar.c: 41 41 getchar.c: There is no such file or directory in getchar.c (gdb) at get_user_opts () ../testmain.c:444 444 switch (User_opt) {(gdb) 59

python - Concurrent SAX processing of large, simple XML files? -

I have some large xml files (10 GB-40GB) that have a very simple structure: only one root root node I'm trying to parse multiple line nodes in them using Python for SAX, but for me every additional additional processing means that 40GB takes the entire day to complete the file. To speed things up, I want to use all the core together. Unfortunately, it seems that the Sachs Parser can not handle the "distorted" sections of XML, which you find for an arbitrary line in the file And try to parse from there. Since the SAC parser can accept a stream, I think I need to split my XML file into eight different streams, each with [number of rows] / 8 rows and with duplicate opening and closing tag Bale How would I go about doing this? Or a ???? Is there a better solution that I can remember? Thanks! You can not easily break SAX parsing in many threads, and you need to: If you run the parsing without any other processing, then it should be running in 20 minutes or more, focus

tkinter - How to pop up a message while processing - python -

Image
I want to know, how to pop-up messages when executing / executing the program / function I mean, def (): path = tkFileDialog.askopenfilename (filetypes = [("image file", '.jpg')]) im = skimage.io.imread (path, As_grey = true) im = skimage.img_as_ubyte (im) im / = 32g = skimage.feature.greycomatrix (im, [1], [0], level = 8, symmetically = wrong, criterion = true) cont = skimage Feature.greycoprops (g, 'contrast') [0] [0] cont_list1.append (cont) ene = skimage.feature.greycoprops (g, 'energy') [0] [0] ene_list1.append (ene) homo = Skimage.feature.greycoprops (g, 'homogeneity') [0] [0] home_list 1.append (homo) cor = skimage.feature.greycoprops (g, 'correlation') [0] [0] cor_list1.append (cor ) Dis = skimage.feature.greycoprops (g, 'difimilarity') [0] [0] dis_list1.append (dis) I want to display a message stating that the features Calculating, and once computing, the message should disappear. but I fine Button is n

Counting votes in a MySQL table only once or twice -

मेरे पास निम्न तालिका है: + ------- ---------- + | आईडी | उपयोगकर्ता | वोट | + ----------------- + | 1 | 1 | पाठ | | 2 | 1 | टेक्स्ट 2 | | 3 | 2 | पाठ | | 4 | 3 | टेक्स्ट 3 | | 5 | 2 | पाठ | + ----------------- + मुझे क्या करना है "वोट" पर भरोसा करना < कोड> SELECT COUNT (वोट), वोट से तालिका ग्रुप से वोट करें यह ठीक काम करता है आउटपुट: + ------------------- + | गिनती (वोट) | वोट | + ------------------- + | 3 | पाठ | | 1 | टेक्स्ट 2 | | 1 | टेक्स्ट 3 | + ------------------- + लेकिन अब मैं केवल पहले या पहले और दूसरे वोट को गिनना चाहता हूं उपयोगकर्ता। इसलिए जो परिणाम मैं चाहता हूं, उसका परिणाम है (यदि मैं केवल पहला वोट ही गिनाता हूं): + ------------------- + | गिनती (वोट) | वोट | + ------------------- + | 2 | पाठ | | 1 | टेक्स्ट 3 | + ------------------- + मैंने गिनती (अलग ...) के साथ काम करने की कोशिश की लेकिन यह काम कर सकता है। सही दिशा में कोई भी संकेत? आप इसे एक एकल में कर सकते हैं कुछ इस तरह के साथ SQL विवरण: का चयन करें मतदान, COUN

javascript - Set date for C1WebDateEdit control on page load -

I have a webdeadit control. On page load I want to set that control date through javascript. I have tried the following, but it is not working, var userid = '& lt;% = session ("userid"). ToString% & gt; '; // 20-Dec-2013 var strdate = dtsheet.split ("-"); Var Sheetdate = New Date (Straddet [2] + "/" + Changemand (Straddet [1]) + "/" + Straddet [0]); // changeme 12dtpdidet.edetet (sheetdate.getatet); // This is not working Design: & lt; C1i: C1WebDateEdit id = "dtpstartdate" runat = "server" OnClientdateChanged = "javascript: enable (true);" WebCalendar = "postartdate" OnDateChanged = "dtpstartdate_DateChanged" & gt; & Lt; / c1i: C1WebDateEdit & gt; What could be the reason for this? I recommend that you start by looking at the HTML produced by the C1WebDateEdit control and then find the input that That date holds the value. Once you know that it

java - How to manage class you want use via Runtime.getRuntime().exec in a web app project with Maven? -

Image
I have a web app developed with Maven, I have some classes that Runtime.gatectum (). Exec. [] command = {"java mainExternal .class "," test "}; What should be the path? I was lost enough ... Renewed: You can insert a JR file created by Maven anywhere You can insert a Maven project / source paste anywhere. You must enter a jar file on the classpath, and the best way to do this is to -cp You must specify the entry point by giving the class's fully qualified name ... No file name ".class" suffix is ​​a mistake. Assuming that the java command is on your path, the command array should look something like this: string [] command = {"Java", "-CP", "/some/path/to/MyProject.jar", "com.acme.MainExternal", "test"}; UPDATE Given that the square you are trying to run and the The dependencies of the file are in the file, you are better off except as it is, and use a s

How to store primitive data types in hbase and retrieve -

How can I archive and retrieve the primitive data types via the HBS API? My job is to save random events to hbase, which contains unexpected data types that arise randomly and whenever I want, need to get them back? Can someone please help me please please, because I'm really new to hbase and this stuff. In this way, you enter data in the HBase table: Configuration conf = HBaseConfiguration.create (); Eligible table = new HTable (conf, "TABLE_NAME"); Put P = Keep New (Linear); P.add (Bytes. Titles ("CF"), Bytes Toto ("C1"), Bytes Toto ("VALUE"); table.put (p); You do not have to worry about the type of data, however, you should keep in mind that whatever goes inside of Hbiz goes as an array of bytes . Therefore, when you bring back the data from the HBbb, you have to convert it back to the right type because you are getting the buyer every time. This can be done using different overloaded methods provided by the Byte class. B

sql - How to get multiple rows united by common column in mysql in complex select with join -

I have 2 tables, one page holding, the second with translated values ​​for some page properties: Pages -id, in_menu, created_at ... etc Page_translation - ID, page_id, locale, title, content ... Etc. ( Pages --- id - - title_en ---- Title_he --- In_Menu I have been using Larval (4.1) because I have done something: Page: (' Eg_translations ',' pages.id ',' = ',' page_translations.page_id ') -> select (array (' pages.id ',' page_translations.page_id as page id ',' page_translations.title as title_en ), 'Page_translations.title as title_he', 'pages.in_menu', 'pages.created_at')) - & gt; Where ('page_translations.locale', '=', 'N') - & gt; GroupB ('page_translations.page_id'); The result is sql (those who do not dismiss the larval) select `pages`` `` `` `` `Page_translation ' In the form of `title_en`, 'Page_ translations` .` title as`

html - font face not workibg for IE8 ?? getting @font-face encountered unknown error. ? -

I am using the font face to include a custom font named razing . The font is not working in IE8 but works well on IE9 + and other browsers I tested the console in the IE8 browser and I got an unknown error of " @ font-face. " I Tried using svg and ? #Iefix but this is not working Please provide a healthy solution to overcome it, thanks! & lt; Style & gt; @ Font-face {font-family: Razing; Src: url (fonts / azing / racing.ot); Src: URL (Fonts / Rising / Racing.it? #fix), URL (Fonts / Rising / Racing.ttf), URL (Fonts / Rising / Racing.WF), URL (Fonts / Rising / Racing.svg) format ( 'Svg'); } ABC {font-family: earning; Font-size: 20px; } & Lt; / Style & gt; & Lt; P class = "abc" & gt; & Lt; / P & gt; Try something like @ Font-faces {font-family: 'dinpromedium'; Src: url ('Fonts / Rising / Racing.'); Src: url format ('Fonts / Razing / razing.eot? # Formix') format ('embedded-opentep&

python - How can I convert list of dictionaries to list of lists? -

मेरे पास डेटा है डेटा = [['' नाम ':' a ', '' '1'}, {'नाम': 'बी', 'विवरण': '2'}] मैं ऊपर की तरह सूची की सूची में कनवर्ट करना चाहता हूं : डेटा = [['एक', '1'], ['बी', '2']] कृपया मुझे बताएं कि कैसे आप ऐसा कर सकते हैं आप उपयोग कर सकते हैं, जैसे ऑपरेटर से डेटा में मद के लिए ([ए ',' 1 '], (' बी ',' 2 ')] <[(' 'नाम' ',' विवरण ' यदि आप सूचियों की सूची चाहते हैं, तो आप डेटा में आइटम के लिए प्रिंट ([list (getter (item)) कर सकते हैं) # [[ 'ए', '1'], ['बी', '2']]

OpenCV c++ code for mexican hat operator -

Do I find myself in the Open CV c ++ code May help me locate the license plate for the Mexican cap operator, please help me please help me You can get a small image in the form of a disruption of the operation (Mexican cap). : Mat MH filtered; // Consequently (MHat-filtered image) Matt Gaussian Burlmize; Gaussian Blur (Image, Gaussian Burlarmez, Size (5,5), 1.5); // Apply first gaussian operator laplasium (Gaussian Burrard image, MH filtered, CV_32 F, 3); // Then Laplacian Note that the parameters of Gaussianblur and Laplacian will change the end result. Read OpenCiv Context to Know How They Work!

Javascript - Get real letter width and height (without line-height) -

A font-family: Arial font-size: 396.55 Adobe Illustrator (or Photoshop) PT measurement: - Width: 93.8 mm (266 px) - Height: 100.2 mm (284 px) Measuring in Javascript: - Width: 265px (matches, right) - Height: 456px No, the height of the line is caught, and this is wrong) How can I get the exact height of the letter? // 6pt ----------- ----- 8px // 96px --------------- 25.4 mm Var arial_A_upper_pt = jQuery ("# ​​arial_A_upper_pt") Html (); jQuery ("# ​​arial_A_upper") HTML ('A'). JQuery ("# ​​arial_A_upper"). CSS ("font-size", arial_A_upper_pt + "px"); Var arial_A_upper_width_on_px = jQuery ("# ​​arial_A_upper"). Width (); // px // var arial_A_upper_width_on_mm = ((arial_A_upper_width_on_px * 25.4) / 96); // arial_A_upper_width_on_mm = arial_A_upper_width_on_mm.toFixed (2); JQuery ("# ​​arial_A_upper_width"). Html (arial_A_upper_width_on_px + "px"); Var arial_A_upper_height_on_px = j

javascript - Can't get the scrollTo jQuery effect to work -

I have problems implementing one page navigation and scrollTo JQuery Plugins (looks like I need more prestige to post links, so I hope you know what plug-in I'm mentioning). I am making a complete start up for javascript and I just want the link to my navigation bar for a scrolling effect I have pasted the full code of my HTML page because I'm not sure I Where's the wrong? For now I have left in the plugins created from the functions (although I have tried only with one - and also tried to link it with 'div # nav', '#navbar', etc.). & lt; Html & gt; & Lt; Top & gt; & Lt; Meta charset = "UTF-8" & gt; & Lt; Title & gt; Deepeedesigns - Web site designer Dan Pearce's portfolio site & lt; / Title & gt; & Lt; Link rel = "icon" type = "image / png" href = "" & gt; & Lt ;! - Favicon - & gt; & Lt; Meta name = "description" content = "&

Margin left only on small screens in Bootstrap -

How can I give just 20 pixels margins on a byte to bootstrap in small screens? & lt; div class = "row mleft20" & gt; & Lt; / Div & gt; Will it apply margins on all screens, is this a way to do this for a small screen, so that I can remove the content from the edge of the screen. Thanks Use media queries pre: @ media all And (max-width: 360px) {.mleft20 {margin-left: 20px; }} Some helpful links:

vcl - Self-Assignment in Delphi -

There is a common phrase in the assignment operator in C ++, where you have to remove the object due to the copy of the object. But, in Delphi VCL (at least D-2010) it seems that it is not being handled properly. For example, the following tasks will be passed Clear to TStringList ! The process starts foo (var wire: TStringList) wire. Wire (wire); End; Is it still a problem with later versions of Delphi - or is there a common way of dealing with this problem? Self-assignment in Delphi is rare, which is why it is not commonly checked for it. Since the examples of the class should be allocated on the heap, and the assignment operator is not exaggerated in the sections, the assignment must be explicitly from one object to another, such as TPersistent.Assign () . The majority of Delphi users understand that the code is not written, which will provide the object in itself, by mistake or otherwise. Self assignment in C ++ is more common, especially when it may actu

jquery - Bxslider - change the direction of slides when direction is RTL -

I think the BxSlider plugin is capable of working when the page direction changes to RTL. body {direction: RTL; } See examples here: . Bx-wrapper .bx-viewport {Direction: ltr; }

javascript - Deleting everything inside table and replacing it - sqlite -

यहाँ मेरी समस्या है ... मेरे पास कुछ कोड है: db.transaction ( फ़ंक्शन (लेनदेन) {var optgroup = String ($ ('myselect')। Val ()); var optarray = optgroup.split (','); के लिए (var i = 0; i & lt; optarray.length; i ++) {transaction.executeSql ('तालिका 1 (कॉलम 1) \ VALUES (?)', [ऑप्टरेट [आई]], नलहैंडलर में शामिल करें;}}); यह अपने आप में एक समस्या नहीं है, यह अपेक्षा के अनुरूप काम करता है सरणी से प्रत्येक मान को टेबल की एक अलग पंक्ति में संग्रहित किया जाता है। मेरी समस्या यह है कि मैं तालिका को अपडेट करना चाहता हूं यदि उपयोगकर्ता मेरे सील से अलग मान का चयन करता है यदि मैं लिखता हूं या फिर बदलता हूं, तो जाहिर है, सरणी के माध्यम से चलते वक्त यह केवल अंतिम पंक्ति को एक ही पंक्ति में डाल देगा। क्या टेबल के अंदर सब कुछ हटाना और फिर नए मानों को संग्रहीत करने का कोई तरीका है? मैं मूल रूप से एक सिस्टम चाहता हूँ जिससे उपयोगकर्ता पिछले पंक्तियों से छुटकारा पा सकता है जो उपयोगकर्ता ने बनाया और नए उपयोगकर्ता के आधार पर नए इनपुट के आधार पर डाल दिया। मैं वास्तव मे

php - How i get data and returned in json format in zf2? -

I used the mongo odm query to get the data according to the id, I want to get query data and this Want to return the data to json format, how do I do this? Here is my code: public function loadAction () {$ id = (int) $ this- & gt; Params () - & gt; Fromoutout ('id', 0); $ Dm = $ this- & gt; GetServiceLocator () - & gt; Obtain ('doctrine.documentmanager.odm_default'); $ Data = $ this- & gt; DM- & gt; createQueryBuilder ('Calendar \ Document \ Event') - & gt; Region ('Calendar_ID') - & gt; Equal ($ ID) - & gt; GetQuery () - & gt; carry about ( ); // $ count_tags = $ eventdata-> Count (); $ Array = array (); If ($ data & amp; is_null ($ data) & amp; is_object ($ data)) {foreach (dollar's data = $ form => gt; $ value) {$ array [] = $ value; }} Return $ $-> GetResponse () - & gt; Set Content (Jason :: Encoded ($ array)); } You can call it New Jason Möldel ( Return $ array-variabl

ios - Load different viewcontroller in Xcode5 -

Image
I am working on a simple application for iOS in Xcode 5.1.1. I'm a newbie in Xcode and Objective-C, so I have a little problem. I have it: The idea of ​​my application is very simple - When user launches the application for the first time, they see the authorization form. When he enters his login and password and pressed sign in, my application requests the server, and if everything is ok - login and password are correct - to save the user login: NSUserDefaults * defaults = [NSUserDefaults Standard User Defaults]; [Default set object: self.txtUsername.text forKey: @ "SavedUserName"]; [Synchronize default]; And "It's OK!" The scene opens with [Personal Performance from Self Display: @ "Login_Success" Sender: Self]; The authorization work is great, user login works for the savings OS. But now, when the user launches app again needs to open the scene with "this is ok", if he is already authorized: - (zero) viewDidoad {N

ios - Populating user details from the contact list -

I am working on an app and I need to enter information like user, name, phone, address. It is possible to show this contact list (address book) inside of my app and the user wants to select the contact that he wants to use. I am particularly hoping to find a way out, which gives me the convenience of contacting me as well as UI and search for contacts like regular contact list. So when the user wants to enter the information, I show it to the contact list (with the same UI / functionality or its subhead) and let me choose contacts. What is a way to do this in iOS? Use this address book. This answer can help you. If you want a tutorial, then this link is

Android - How to change the color of all button when it being clicked -

What would I want to know, if there is any way to change click color on the whole activity. The next most active activity - & lt; Activity Android: name = "com.example.test.MainActivity" Android: Theme = "@ Style / Theme" is set. AppCompat.Light.DarkActionBar "android: label =" @ string / app_name "> & lt; intent-filter & gt; & lt; action android: name =" android.intent.action.MAIN "& gt; & lt ; / Action & gt; & lt; Category android: name = "android.intent.category.NORMAL" & gt; & gt; / category & gt; & lt; / int-filter & gt; & lt; / activity & As you can see, I am using the next topic for the activity - android: theme = "@ style / Theme.Base.AppCompat.Light. DarkActionbar " It makes any click color to be blue - when a button or something is being pressed, when it is clicked, turn it blue Now what I would like to know is there is a way to c

sql - How to call a stored procedure in asp.net -

मैंने insert , update , < कोड> हटाएं , और चुनें । प्रक्रिया है:। ALTER प्रक्रिया [dbo] [artdetails1] (@artdetailId पूर्णांक, @artDescription varchar (50), @artShortdesc varchar (50), @artValidity varchar (50), @ artStatus varchar (50), @StatementType varchar (50)) के रूप में शुरू करते हैं @StatementType = 'सम्मिलित करें' सम्मिलित करें INFOartdetails शुरू (artDescription, artShortdesc, artValidity, artStatus) मान (@ artDescription, @ artShortdesc, @ artValidity, @ artStatus) अंत शुरू artdetails से शुरू चुनें * समाप्त करते हैं @StatementType = 'चुनें' यदि @StatementType = 'अपडेट' अद्यतन artdetails शुरू SET artDescription = @ artDescription, artShortdesc = @ artShortdesc, artValidity = @ artValidity, artStatus = @ artStatus जहां artdetailId = @artdetailId अंत वरना यदि @StatementType = 'Delete' BEGIN अपस्टेट कलाकार SET @ artStatus = 'उपलब्ध नहीं'; END END END लेकिन मैं कैसे सी # कोड में बयान प्रकार की जांच कर सकते हैं और इस प्रक्रि

multithreading - Using volatile to ensure visibility of shared (but not concurrent) data in Java -

I am trying to implement a fast version of LZ77 and I want you to ask about concurrent programming Have a question. For now, I have a last byte [] buffer and a final integer [] result holder , both of which do the same length program: / p> The main thread writes all the buffers, then indicates the thread and wait for them to complete. The single task thread processes a portion of the buffer saving the results in the same part of the result holder. Part of the worker is unique, after which the main The thread gets notified and the worker pauses. When all workers are stopped, the head thread reads the data in the header and buffer updates, then (if necessary) the process restarts from 1 point . Important things in the manager (main thread) are declared as the following: last byte [] buffer = new byte [SIZE] ; Last MemoryHelper MemoryHelper = new memory helper (); Last Arrawlocking Quiz & lt; Object & gt; Waiting buffer = new arrawlocking quiz & l

c# - wpf print multiple pages of xaml controls -

I am trying to implement a WPF print function. This is working by the time the user fits on one page and does not want to print. My application enables users to create XML in runtime, now I want to enable them to print XML controls. I have checked the total height of all XML controls, delivered by PageHeight and reduced that number, so I know how many pages I have to print. Next I am creating a list of Framework Elements for each page (see the logic below) and store each list (stands for each page) in an array. At the end I want to make a preview that contains every page and enables the user to print all the pages. To do this, I have to put the pages together in a document, but I do not know how to please see my code: package package = package. Open ("test.xps", FileMode.Create); // Open new XPS document based on package XpsDocument document = new XpsDocument (package); // XpsDocumentWriter author = XpsDocument.CreateXpsDocumentWriter (doc) Create an example of X

python - Does range() really create lists? -

Both of my professors claim that category creates a list of values. "Note: The Range function returns only a list of numbers from y to 1. For example, the category (5, 10) gives the list [5, 6, 7, 8] , 9]. I believe this is wrong because: type (category (5, 10)) range is to run those channels again, to which I believe Is that labeling category a suo Is wrong in the form of chips. In Python 2.x, returns a list, but Python 3.x gives an irreversible sequence, type. Python 2.x: >> gt; & gt; & gt; ; Type (category (10)) type 'list'> gt; & gt; & gt; type (format (10)) type 'xrange' & gt; < Python 3.x: & gt; & gt; type (category (10)) & lt; class 'category' & gt; In Python 2.x, if you want to get an iterative object in Python 3.x, you can use the function, which gives an indefinite sequence. more category in Python 2.x xrange () Over range () is minimized (since wh

c# - Error in htmlparser cannot take string reader as input? -

निम्न कोड में, पार्स नहीं ले सकता StringReader ( Sr ) इनपुट के रूप में मैं कैसे स्ट्रिंग को पास कर सकता / सकती हूं? संरक्षित शून्य LinkButton1_Click (ऑब्जेक्ट प्रेषक, EventArgs ई) {Response.ContentType = "application / pdf" ; Response.AddHeader ("सामग्री-स्वभाव", "अनुलग्नक; फ़ाइल नाम = UserDetails.pdf"); Response.Cache.SetCacheability (HttpCacheability.NoCache); स्ट्रिंग str = "& lt; h1 title =" header ???? align = एक "केंद्र ???? & gt; पीडीएफ के लिए लेखन ASP.NET & gt; & lt; br & gt; & lt; तालिका align = एक केंद्र ???? & gt; & lt; tr & gt; & lt; td शैली = '' चौड़ाई: 100px; रंग: हरे रंग की ???? & gt; & lt; b & gt; iTextSharp & lt; / b & gt; & lt; / टीडी & gt; & lt; td शैली = चौड़ाई: 100px; रंग: लाल रंग ???? & gt; माईटेस्टपीडीएफ & lt; / td & gt; & lt; / tr & gt; & lt; / तालिका & gt; "; स्ट्रिंगरेडर sr = नया स्ट्रिंग री

javascript - Backbone click event doesnt trigger -

I was facing a very strange problem. In my HBS code, I have the next part of the code And my backbone code is as follows Define (['Marienet', 'clickthist'], function (Merineet, template) {return bayon Marionette .ememview.extend ({Template: Template: templateHelper: {}, Event: {'click .link': 'onClickLink'}, onClickLink: function {event} {event.preventDefault (); Alert ("Hi"); But, on the click, I can not see any warning. I am quite new to the spinal cord. Please tell where I go wrong I huh?

java - How should I arrange the codec handlers in Netty? -

I have a small Netty codec confused, I know I need to add some code to the pipeline But how should I arrange encoder and decoders? Anyone can give a simple explanation of the rules of how to arrange the encoder and decoder in a pipeline server-side code: Protected static zero run () throws exception {ServerBootstrap b = new serverbootstrap (); BGPP (boss group, workgroup); B.channel (NioServerSocketChannel.class); b.childHandler (New ChannelInitializer & LT; SocketChannel & gt; () {@Override public void initChannel (SocketChannel ch) throws an exception {ChannelPipeline pipeline = ch.pipeline (); pipeline.addLast ( "decoder" New HttpRequestDecoder () ); pipeline.addLast (new ProtobufVarint32FrameDecoder ()); pipeline.addLast ( "bufd", new ProtobufDecoder (PbConditions.Conditions.getDefaultInstance ())); pipeline.addLast ( "servercodec", new HttpServerCodec ()); pipeline.addLast ( "aggegator", new HttpObjectAggregator (Integer.M

garbage collection - Protect pointers on minor heap during callback from C -

मेरे पास ऐसा परिदृश्य है जहां सी-लाइब्रेरी एक फ्लोट एआरए को तर्क के रूप में लेता है और (कहीं आगे सड़क के नीचे) एक OCaml फ़ंक्शन कॉल करता है: ------------- | ए) ओकैमल | P: मान (फ्लोट एरे) ------------- || \ / --------- | बी) सी | पी: डबल * --------- || \ / ------------ | सी) ओकैमल | पी: वैल्यू (फ्लोट एरे) ------------ ओसीएमएल के चालाक स्मृति लेआउट के कारण, कोई भी value < / कोड> सी-लाइब्रेरी और सब कुछ-अभी-कार्य (टीएम) में एक डबल * के रूप में। यही है, जब तक कि भाग में कुछ आवंटन हो रहा है c)। जब जीसी मामूली ढेर को साफ करने का निर्णय करता है, तो डबल * पॉइंटर अमान्य हो सकता है चूंकि यह केवल मापदंडों में हो सकता है b), मैं जीसी को संकेत देता हूं "जो भी आप चाहते हैं, लेकिन इन ब्लॉकों में सामग्री को तब तक नहीं ले जायें जब तक कि मैं आपको ऐसा न कहूं"। क्या इसको ओकैमल एपीआई का उपयोग करने का एक तरीका है? इस समस्या को हल करने के लिए एक बड़ाअरा उचित तरीका होगा, लेकिन इसका मतलब यह है कि आप केवल सी से ओकैमल के लिए डबल * पॉइंटर, आपको कस्टम ब्लॉक का ट्रैक रखना होगा

How to update running records in SQL Server -

Here below the table, I want to open the second row with the end of the first line and update it on so much. The closing column is calculated (opening + total) ID total opening closing --------- ------------ - - ---------- 1 0 3015591.25 3015591.25 2 0 2146798.4 minus 3 0 3,015,591.25 minus 4 0 21 467 9 8.4 minus 5 0 3,015,591.25 minus 6 0 21 467 9 8.4 zero 7 0 3,015,591.25 zero 8 0 21467 9 8.4 Zero and Output should be as follows: Opening ID Total Closing --- - ------ -------- ---- ------------- 1 0 3015591,25 3015591,25 2 3015591,25 2146798,4 5162389,65 3 5162389.65 3015591.25 8177981.25 4 8177980.9 2146798.4 10324779.4 5 10324779.3 3015591.25 13340370.25 6 13340370.55 2146798.4 15487168.4 7 15487168.95 3015591.25 18502759.25 8 18502760,2 2146798,4 20649557,4 Any solution on this WHILE A related answer to the loop. - Execute your table DECLARE @tbl TABLE (ID INT, float, total float, closing float) --Testing values ​​insert in @tbl (ID, opening, total, clos

javascript - document.getElementById(tableRow_Id) is returning different object names in different browsers. Is this the expected behaviour? -

मेरे पास स्निपेट नीचे है। var i = document.getElementById (tableRow_Id); चेतावनी: (i); जब मैं इसे विभिन्न ब्राउज़रों पर चलाता हूं, जैसे मान मिल रहा है IE: [object] एफएफ: [ऑब्जेक्ट HTMLTableRowElement] मुझे संदेह है कि, इस वजह से केवल कुछ ब्राउज़र मुद्दों का सामना करना पड़ रहा है। क्या कोई मुझे सुझाव दे सकता है? मुझे लगता है कि आपके पास एक वाक्यविन्यास त्रुटि है आपका कोड: var i = document.getElementById (tableRow_Id); फिक्स्ड: var i = document.getElementById ('tableRow_Id'); यू भूलें ''

javascript - How can we take advantage of moveTo( ) HTML5 method? -

Image
Please feel confused to me, so I need your help My question is that we How can the moveTo () get the benefit of the html5 method? For example, I found this example on the stack overlay function drawSmile (CTX, X, Y, FaceRD, IRDDs) {CTX. // save ctx.fillStyle = '# FF6'; // Face Style: Fill Color Yellow CTX. Translestate (X, Y); // Now (x, y) canvas (0,0) is ctx.beginPath (); // path ctx.arc for face (0, 0, face radix, 0, 6.28); Ctx.fill (); Ctx.fillStyle = '# 000'; // Eye Style: Fill color is black ctx.beginPath (); // Path for two eyes ctx.arc (face radix / 2, - face radix / 3, eye radius, 0, 6.28); Ctx.moveTo (- fourth triangle / 2, - face radix / 3); // Second eye CTX Sub path for CR (-FlashRDs / 2, - FaceRDIS / 3, IRDDS, 0, 6.28); Ctx.fill (); Ctx.restore (); // Reference just before entering the drawSmile is fine} Dormile (C, 200,200, 60, 12); But when I removed the line number 11 in the code which uses the hilft method, nothing is changing !!!!

java - Can't get parameters via POST request -

Want to scale a module of uploading files to the server, skeleton of this project. In addition to photos, they want to make thumbnails. The size of the thumbnail is selected on the jsp page and the servlet is sent to it. The problem is that I can not get those parameters through the request.getParameter ("name") pointpoint = "upload" method = "post" enctype = "multipart / form-data "& Gt; & Lt; Input type = "file" name = "file" multiple id = "file" onchange = "check ('file')" /> & Lt; Br> & Lt; Div id = "set_stumbnail" style = "display: none;" & Gt; & Lt; Input type = "checkbox" name = "thumbnail" id = "thumbnail" onclick = "set visable ('thumbnail', 'shape template input')" /> & Lt; Label & gt; Create Thumbnails & lt; / Labels & gt; & Lt; / Div & gt; & Lt; I

jquery - auto fill textarea if dropdown option is selected -

मेरे पास एक चुनें और textarea है। I textarea भरने के लिए चाहते हैं, अगर चुनें तत्व बदल जाता है। यहां मेरा HTML कोड है (मैं इसे संपादित नहीं कर सकता, इसलिए मुझे jQuery चाहिए): & lt; div class = "event-attributes" & gt; & Lt; चयन करें नाम = "em_attributes [room]" & gt; & Lt; विकल्प & gt; कमरे 1 & lt; / विकल्प & gt; & Lt; विकल्प & gt; कमरे 2 & lt; / विकल्प & gt; & Lt; विकल्प & gt; कमरे 3 & lt; / विकल्प & gt; & Lt; / चयन & gt; & Lt; / div & gt; & Lt; div वर्ग = "घटना-विशेषताओं" & gt; & Lt; लेबल = "em_attributes [कक्ष विवरण]" & gt; कक्ष विवरण & lt; / label & gt; & Lt; textarea id = "" cols = "55" पंक्तियाँ = "5" & gt; & lt; / textarea & gt; & Lt; / div & gt; यदि मैं कक्ष 1 का चयन करता हूं, तो textarea को इसके मान को "यह एक कमरा विवरण", आदि बदलना चाहिए। मैं कोशिश

sql - Automating output from Access to Word, is it possible? -

I have access to several reports that I wanted to merge into a Word document, and when the word document is opened , But it proved to be almost impossible (at least at my level) I tried to use the macro to export to Excel, and then use that word in Word Linked. But for some reason the embedded object can no longer be a page (!), So I'm back to the ground ... I have tried to read on various sources, but I do not know Which direction is to go .. So the question is: What are the options for me in exporting MS Access reports and questions in Word? I am aiming to automate as much as possible, so that word reports are the same, but I can only update lists and statistics automatically. Thank you for taking the time to read it. I open the word, and go to the "View" menu and select "Outline". Press "show document". You now incorporate sub-documents using the "Insert" button. The report does not automatically update, but it

Maven: property to activate profile in sub-modules -

We have a multi-module maven project, and there are various platforms to run it, such as Zebus 4 and Zebus 7. We specify the platform property, and then use it as a classifier for artifacts, and for the activation of platform-specific profiles in sub-modules such as: & lt; Activation & gt; & Lt; Property & gt; & Lt; Name & gt; Platform & lt; / Name & gt; & Lt; Price & gt; Jboss71x & lt; / Pricing & gt; & Lt; / Property & gt; & Lt; / Activation & gt; In these profiles, we, among other things, specify the version of dependency provided. As we import Jbys Parent Palm: & Lt; Version & gt; $ {Dependencies.jbossas7.version} & lt; / Edition & gt; & Lt; Type & gt; Pom & lt; / Type & gt; & Lt; Scope & gt; Import & lt; / Scope & gt; & Lt; / Dependencies & gt; So when we specify the property in the form of command-line arguments ( -Dplatform = jboss71x ), the