Posts

Showing posts from September, 2014

java - Tomcat page is not coming up when run from eclipse -

I am using Tomcat 7 and when I am also using it via eclipse. When I run a tomatoes from the terminal (using ./startup.sh), it runs the '' Localhost: 8080 '' with the Tomcat page, but when I try to do it via eclipse So this page does not start. Any point which I am missing thanks try Http: // localhost: 8080 / instead of localhost: 8080 /

android - How can I change the color of a line loop in OpenGL? -

I am drawing a simple rectangular line loop using this call: GLES20 .glDrawElements (GLES20.GL_LINE_LOOP, Numbers, GLES20.GL_UNSIGNED_SHORT, getIndicesBuffer ()); Now, the color of this line loop is black, how can I change it to any other color? Red, for example. You have to change your piece, I would agree that you want to change the loop color per line. Change your piece shader to: Uniform vec4 colors; Main () {gl_FragColor = color; } And before each glDrawElements, you must GLES20.glUniform4f (colorLoc, r, g, b, a); can call. The return value of colorLoc GLES20.glGetUniformLocation (program, "color") is; and r, g, b and A are red, green, blue and alpha values ​​that you want to have the color range in 0-1.

javascript - How to update the sharing url inside onclick event for the AddThis button? -

I am using to present a group of social media icons. What I am trying to achieve is only to update the sharing URL, when a user clicks on any social media icon - this is important because I do not already update the URL I have tried the jquery click function to update the URL. $ ("addthis_sharing_toolbox"). Click (function () {theUrl = window.location.origin + currentStatus; addthis.update ('share', 'url', theUrl);}); I have also tried to add a listener addthis.addEventListener ('addthis.menu.share', addthisShare); The problem with all of these is that they are running after the adithis click event, so the sharing URL has not been updated. Any ideas to be resolved will be appreciated.

jquery - PrettyPhoto Auto play Slideshow not working -

I have installed WordPress on my local machine and used a theme called Happy Health, there was a default Flex slider. Subject, I have configured the slideshow and want to make this slide show auto-run without clicking on it manually I checked in the directory C : \ Xampp \ htdocs \ mainstreetpt \ wp-content \ themes \ happyhealth \ script I just jqu I saw ten files for ery and found two files for the flex slider, they are jquery are Flexslider.js jquery.prettyPhoto.js (function ($) {$ .prettyPhoto = {version: '3.1.5'}; $ .fn.prettyPhoto = function (pp_settings) {pp_settings = jQuery.extend ({hook: 'rel ', Attribute tag to use for beautiful photo hooks. Default:' Reliance '. For HTML5, use "data-relay" or similar. * / Animation_speed:' fast ', / * fast / slow / Normal * / ajaxcallback: function () {}, slideshow: 5000, / * ms Wrong or interval time in the / autoplay_slide show: incorrect, / * true / wrong * / this is sample...

windows - Batch for insert/replace in a txt file in a fixed position -

I need to replace a batch file (.bat), using an empty character, 13) from each line In a .txt file, with another set character. Example of My File: 1000588141025 00LEOTOURING SRL VIA FILADELFO CASTRO, 1 LENTINI I have to: 1000588141025A00LEOTOURING SRL VIA FILADELFO CASTRO, 1 LENTINI @ECHO OFF :: Version 1 -" Replace interconnected "SETLOCAL ENABLEDELAYEDEXPANSION (FOR / f" delims = "%% a IN (q26733113.txt) DO (SET" Line =% % A "ECHO (Line: ~ 0,13! A! Line: ~ 14!)) Gt; New File. Txt :: Version 2 -" Can be found only in the status, change only if "SETLOCAL ENABLEDELAYEDEXPANSION (FOR / F "Delims =" %% an IN (q26733113.txt) DO (SET "line) = %% an "IF"! Line: ~ 13,1! "==" "(ECO (Line: ~ 0,13! A! Line: ~ 14!) ELSE (ECHO (%% A)) gt ; Newfile2.txt GOTO: EOF I used a file named q26733113 .txt is adding your data to my test.production newfile.txt and newfile 2.txt - Changing columns f...

java - Android tcp socket set etimedout value -

I have a TCP socket client on Android, besides I have a TCP socket server on NodeJS, which every 2 seconds customer tests Sends a message when I launch the application, then it receives a test message from the server. But when I close the Wi-Fi connection, my client socket closes SocketException (etimedout) and throws, and if I switch to Wi-Fi, then I can not get a server message. But server messages are already queued in the server and are waiting to send to the customer. As I know, if TCP loses connection to the customer, then he should try to repair the connection and receive the server message. But in my case, clients can not retrieve messages, because the socket is closed. With Windows and Linux Socket client on my PC, I am doing the same thing, but when I turn off Wi-Fi, Client socket does not stop, and when I turn on Wi-Fi I got the message, who sent it, when Wi-Fi is disabled Question: Why in Android, it stops at the time of the socket? Can I set a deadline for the s...

ruby on rails - Derive ActiveRecord model field from id -

I am writing an application to parse my iTunes xml library in a database in Ruby and I'm having a problem .. I have a wrapper model in which there is a field, file name, which I need to get from another field, album_id in that field file name = Album_ID 10 '0 and jpg extension Is frustrated by ... but field ALBUM_ID, as the name suggests Security is a foreign key to another model, album. I only get ALBUM_ID while saving the album ... Is there a way to get my file name folder to get ALBUM_ID using callback, I do not know, maybe BEFORE_SAVE or AFTER_SAVE? - == UPDATE == - Make me clear ... I have a field in the table name FILENAME ... this field The file name of the cover is in this format ID 1 = 0000000001.jpg for album with id = 5600000056.jpg Cover the album model There is a HAS_MANY relationship with the model ... When I save the album, I have to get the saved value in ALBUM_ID in the cover model and create a string in that format and Must use the file nam...

php - Magento CE 1.9 - How can I add the register newsletter signup checkbox to the edit page? -

मेरे पास वर्तमान में न्यूजलेटर चेकबॉक्स सक्षम है: / app / design / frontend / नया / डिफ़ॉल्ट / टेम्पलेट / ग्राहक / फॉर्म / register.php ऐसा लगता है कि टेम्पलेट फ़ाइल में निम्न कोड का उपयोग करना है: & lt; php यदि ($ this- & gt; है NewsletterEnabled ()):? & Gt; & Lt; इनपुट प्रकार = "चेकबॉक्स" नाम = "is_subscribed" शीर्षक = "& lt;? Php echo $ this- & gt; __ ('न्यूज़लेटर के लिए साइन अप करें')? & Gt;" Value = "1" id = "is_subscribed" & lt;? Php अगर ($ this- & gt; getFormData () - & gt; getIs सदस्यता लिया ()):? & Gt; चेक = "चेक किया" & lt;? Php endif; ? & Gt; वर्ग = "चेकबॉक्स" / & gt; & Lt; लेबल = "is_subscribed" & gt; & lt;? Php echo $ this- & gt; __ (न्यूज़लेटर के लिए साइन अप करें)? & Gt; & lt; / label & gt; & Lt;? Php echo $ this- & gt; getChildHtml ('customer.form.register.newsletter')? ...

java - Comparing two unknown strings and finding match -

यदि मेरे पास स्ट्रिंग x = "test"; स्ट्रिंग s = "tastaegasghet; आप स्ट्रिंग के अंदर परीक्षण पा सकते हैं। एक ज्ञात स्ट्रिंग के साथ ऐसा करने का सरल तरीका ऐसा कुछ होगा: । * टी +। * ई +। * एस +। * टी +। * अगर हम अक्षर परीक्षण क्रम और किसी भी वर्णों को पा सकते हैं तो यह सत्य वापस आ जाएगा Inbetween। मैं एक ही बात करना चाहता हूँ, लेकिन दो अज्ञात स्ट्रिंग x और s के साथ या अन्यशब्दों में, स्ट्रिंग एस और एक्स कुछ भी हो सकता है। मुझे कुछ कड़ी मेहनत नहीं चाहिए लेकिन इसके बजाय सामान्य उपयोग के लिए कुछ। फ़ंक्शन (सुई, / / ​​/ एक्स हयस्टैक / div> आपको केवल हरे स्टैक्स स्ट्रिंग में प्रत्येक कैरेक्टर के माध्यम से लूप की ज़रूरत है और सुई में पॉइंटर को अग्रेषित करना है स्ट्रिंग जब आपको कोई मिलान अक्षर मिल जाएगा यदि सूचक सुई स्ट्रिंग के अंत तक पहुंचता है, तो इसका मतलब है कि सुई स्ट्रिंग को हरे स्टैक्स स्ट्रिंग के बाद के रूप में देखा जा सकता है। एक छोटा अनुकूलन जो आप कर सकते हैं वह सुई लम्बाई & lt; = हेज़स्टैक लम्बाई लूप शुरू करने से पहले। मज़े के लिए यद...

javascript - Trying to get form validation working with jQueryUI image array -

Image
I am only trying to allow the user to submit the form when verification has been returned and they The correct order is drawn in the pictures At the present time, I have the form input elements, but it seems that the user can create a bug, where the user can still submit the form even if the image is in the wrong order. I have two submitted buttons that again order all the images in the array and the one that I want to validate if all the data is correct. I currently have the onclick button on the onclick = "return valid (); .on submit button. I'm not sure what I'm doing wrong. It is possible that I am new to JavaScript and jQuery. HTML: form action = "https: // Stackoverflow.com" method = "POST "OnSubmit =" class = "a" & gt; name: & lt; input type = "text" class = "text" name = "name" id = "name" /> ; Address: & lt; input type = "text" class = "text...

css - Polymer grid with fixed rows and cols -

For an application that uses "post-text" itemprop = "text"> I need a 3x3 grid. It is not necessary to be responsive because it always has a fixed screen Should be displayed on any device with Currently it looks like my grid: & lt; Div flex style = "height: calc (100% / 3);" Horizontal Layout Flex & gt; & Lt; Div flex style = "height: 100%;" & Gt; Content & lt; / Div & gt; & Lt; Div flex style = "height: 100%;" & Gt; Content & lt; / Div & gt; & Lt; Div flex style = "height: 100%;" & Gt; Content & lt; / Div & gt; & Lt; / Div & gt; & Lt; Div flex style = "height: calc (100% / 3);" Horizontal Layout Flex & gt; & Lt; Div flex style = "height: 100%;" & Gt; Content & lt; / Div & gt; & Lt; Div flex style = "height: 100%;" & Gt; Content & lt; / Div & gt; & Lt; Div flex style = "height: 1...

How to expand command-line arguments when debugging in Visual Studio? -

Before extending * to the Visual Studio file name (and directory name) Is there any way to implement the debugger? When I write, for example, *. In the form of a command line argument, only one entry ( "* .txt" ) in args [] variable, an entry for each mail file Instead, do I have to write my own code to this extension? If you view Visual Studio such as: * .txt ' and in your program Pars and answer must be (Just like you did without the debugger program).

AngularJS model not updating inside javascript array -

I have a simple issue with AngularJS: properties outside the usual array of updates, but the array elements (those is bound to properties) No one Plnkr to show it: var vm = this; Vm.topLine = {netWrittenPremiumLastFye: 1000000, Netwaritprimiam Ytd: 123000} vm.grossColumnChartData = [[ 'Previous EA', vm.topLine.net] written premium RAM), [ 'YTD', vm.topline.net] Likitpratiami Utility] ]; We can use the $ scope. $ Watch ( 'something', function (old value, new value) {...}), but in my case it is not a good choice in my choices also appreciate any help or suggestions Thank you! I want to take advantage of two-way binding in any way as repetitive. I think you can do this without using the $ clock, the html binding directly to the array By updating / P> {{Gross column chart data [[[Previous EAE, vm.topline.net] Written Premium RAM, ['YTD', vm.topline.net] Written Premium 2)]}} & Lt; Br / & gt; Gross column chart data {{gross c...

php - if selected value = 1 do this, if selected value = 2 do this -

To use a selection form element, to ask the user, who wants to use it. My problem is really low: 1 form element: PHP document & lt; Choose php $ = $ _POST ['inputQuest']; // Select 1 if ($ select = '1') {$ ch = curl_init (); Curl_setopt ($ ch, CURLOPT_URL, 'POSTURLHERE'); Curl_setopt ($ CH, CURLOPT_POST, 1); Curl_setopt ($ CH, CURLOPT_POSTFIELDS, 'POSTFIELDSHERE'); Curl_setopt ($ CH, CURLOPT_RETURNTRANSFER, 1); Curl_setopt ($ CH, CURLOPT_COOKIEFILE, $ global ['cookie']); $ Response = curl_exec ($ ch); Curl_close ($ ch); Echo "work 1 successfully"; } // selection 2 if (choose $ = '2') {$ startValue = 0; $ End value = 10; ($ StartValue; $ startValue & lt; = $ endValue; $ startValue ++) {$ ch = curl_init (); Curl_setopt ($ ch, CURLOPT_URL, 'POSTURLHERE'); Curl_setopt ($ CH, CURLOPT_POST, 1); Curl_setopt ($ CH, CURLOPT_POSTFIELDS, 'POSTFIELDSHERE'); Curl_setopt ($ CH, CURLOPT_RETURNTRANSFER...

php - Joomla 3 user_usergroup_map table set a group_id=9 after registration -

I had to face a problem in Joomla 3. When I put a name, username and email in my site and then it was redirected to the page that I want, but my problem is user_usergroup_map after the registration of the table Set a group_id = 9 . thanks thanks thanks / Html>

PHP - Number of units between two numbers -

I am trying to find the number of units between 2 numbers, which is between 0 and one border between zero and that Exceed the limit. Here's my job, it works fine till I have to work with some big numbers which takes a lot of time to process. I am trying to find a way to execute this code without loop. getBetween public function ($ num1, $ num2) {$ limit = 500000; $ Array = array (0,0,0); If ($ num1> = $ num2) {$ lower = $ num2; $ High = $ num1; } And {$ cum = $ num1; $ High = $ num2; } ($ I = $ lower; $ i & lt; $ high; $ i ++) {if ($ i & lt; 0) {$ array [0] ++; } Otherwise ($ i & gt; = 0 & amp; $ i & lt; $ limit) {$ Sir [1] ++; } And {$ array [2] ++; }} Returned the $ array; } I have started dividing my loop into the elife statement, but it is actually messing up and I'll eventually be able to set more than one boundary which Will be impossible in If ($ lower lt; 0) {} elseif ($ lower 0 & amp; high> gt; = $ range) {} Otherwise ($ min...

freepascal - Pascal - size of array -

I have a code in which I write each number in 1 line until I write it. I am confused about the size of the array In the beginning I have declared that the array with the A1 to 5 is array. But when I keep writing and put more than 5 numbers, it seems that it is still left and then the latter is used for bicycles. How is that possible? I thought I would get an error if I was out of the index. Programmasters; Var Hermes, I: Integer; A: array [1. 5] of integer; I started: = 0; Repetitive Inc (i); Readln (a [i]); If A [i] = 0 then HMEs: = I-1; Until one [i] = 0; I: for = 1 hmez do writeln (a [i]); End. You are overwriting memory which is a variable This can be a leak of memory due to an unrestricted exception (run-time error) or any other "strange" behavior sooner or later, in run-time probes of array indexes in 'managed' languages ​​such as C # or Java in parcel Optional feature is not mandatory, applicable language facility. Pascal compilers usually have...

Set both normal and hover style with SASS -

It looks like a basic question, but I can not find the answer anywhere. How can I set both Normal and both styles for links with SASS? I want to control the default and hover styles for all links in one place and in my CSS, different selectors have to pass this 'variable' (or whatever is the correct word) capable. is similar to the code below, but I want to control the default and hover style on the first line. So later if I want these links to have one: active style then I will add it at the top of the page once. $ Primary-Color: # 333; . Some classes {color: $ primary-color; }. Some class-other-orbit {color: $ primary-color; } You can try: A {& Amp ;: link, & amp;: hover {color: $ primary color; } And: active {color: $ other-color; }}

javascript - Dividing item.price in shopify -

I want to divide {{item.price}. Money_without_currency}} 1.21 I'm calling the item. Value in a hidden input value & lt; Input type = "hidden" name = "PRODUCT_PRICE _ {{forloop.index}}" value = "{{items .price | money_without_currency}}" & gt; When I do this below, this value shows that my test product is 100 as "100 / 1.21". Since understanding HTML does not do math. & Lt; Form name = "addToFavorites" method = "post" action = "contoso.com" & gt; & Lt; Input type = "hidden" name = "PARTNER_KEY" value = "34234234234234" & gt; & Lt; Input type = "hidden" name = "TOTAL_DOMESTIC_SHIPPING_CHARGE" value = "0" & ​​gt; {% {Input type = "hidden" name = "PRODUCT_ID_ {{forloop.index}}" value = "{{item.sku}}" for item in {Cart.items%} & Lt; Input type = "hidden" name = "PRODUCT_NA...

linux - Apache 2.2.3 reverse proxy issue -

After I have a self-signed certificate using a website to set up. I have Apache 2.2.3 on Redhat Linux. But the home page of that website should come from working on a remote server application ie the glassfish. When I write in the browser it opens on my Apache 2.2.3 now open I have to enter your httpd.conf call after the remote proxy through: - & lt; Virtual Host *: 443 & gt; Server name xyz.abc.co.in SSLCertificateFile /etc/*/redhat.crt SSLCertificateKeyFile /etc/*/redhat1.key on SSLEngine SSLProxyEngine on SetOutputFilter Proxy-HTML ProxyPass / http ProxyPreserveHost at ProxyRequests: //10.x1.x2 . X3: 7080 / App / ProxyPrevers / http: //10.x1.x2.x3: 7080 / App / & lt; / VirtualHost & gt; Now when I use the browser, this error returns "no data". I also load modules proxy_html. When I remove the instruction "SetOutputFilter proxy-html" then returns this error: - /app_web/login.html Epipa 2.2.3 is not found at port 80 (although it host...

Will upgrading Sonarqube from 3.3.2 to 4.5.1 cause DB table changes -

I'm looking to upgrade from 3.3.5 to 4.5.1 up to the Sonnackbe. However, will it cause a change in the database? Yes. I do not know how to make a better answer, besides pointing to whether you want to peer at or consistently or if you are done under the hood. Note that 3.3.2 is a fully up-to-date upgrade path 4.5.1 fully supported, so you do not have to apply the Intermediate upgrade manually.

jquery - Javascript Datetime Time only gives "Uncaught TypeError: undefined is not a function" -

I only want to fill in one time (hh: mm). I have tried some things but i have "unco Type error: Undefined not a function "I keep. My AJAX GET call works fine. var id = 0; Var URL = "http: // localhost: 58510 / api / request /"; Onload = function () {showRequestDetails (); }; Function showRequestDetails () {var query = window.location.search.substring (1); Var value = query.split ("="); Id = value [1]; JQuery.support.cors = true; $ .exx ($ url: url + id, type: 'get', datatype: 'jason', success: function (data, textstatus, exhaor) {$ ("#ddarr_text") .Wal (datetimetime_recovery) ;}, Error: function (xhr, textStatus, errorThrown) {console.log ('request failed by id.');}}); }; Function date breakdown (d) {if (d! = Null) {var timonely = (d.gethors () + ":" + d.getMinutes ()); Return time only; }}; Get the response example: & lt; Request & gt; & Lt; ID & gt; 2 & lt; / Id & gt; & ...

regex - C# split after "{" and before comma -

How to split after the first bracket and before commas {Brazil, 340, Argentina, 39} String: {England, 120, USA, 30, 40} {Spain, 23, India, 45, 23} East I get England, Spain and Argentina from a different ceremony Want to Any ideas how to write the regex method or alternative methods? This is probably easier to use matching foreach ( Match omeach in regex match (string, @ "\ {([^,] *)") console. Light (omac group [1]. Value)

SQL query to Access format -

I have a SQL query that works for my solution in SQL Looking at my current location and software, I am unable to use my Oracle software I am currently traveling and trying to do some extra work. I have a SQL query: SELECT tt.supplierId, products from tt.Price tt INNER JOIN (selection provider ID, MAX (price) AS [Prices] Products Supplier ID by Group) Group TT. SPLIID = Grouped. SPLIID and TT.Price = GroupGrade.Pris In Access while trying to run it, I get many errors, from 'Parameter Value Enter', for unavailable expansions. I have not reached a long time and have used 'rusty' on syntax. I have tried several ways to work in Access, like no luck. Use and in the ON section Between two situations ON tt.SupplierID = Groupedtt.SupplierID and tt.price = groupedtt.price Use the object to name the field name anytime while trying to reuse the field expression. If this segment causes an error ... SELECT SupplierID, MAX (value) AS value ... use on...

Asana project export via bash / curl / etc example -

I am trying to create a shell script to export all projects out of a postal account. I have got to work temporarily to use a huge cookie description in this title, but it does stop functioning while restarting or otherwise otherwise. I am aiming for an automatic export script for all projects. Please show me an example code for bash / curl / wget or similar, that exports a project to a postal account one folder. Exporting a project would be great. For example: script.sh Backup * backup1.csv, backup2.csv, ... Logfiles * logfile_p1, logfile_p2, . .. Scheduling like dates, scheduling is not a problem. I need an example of a link that works permanently for exporting a project. Asan provides an export function for this, but I am doing very little to use it correctly in a script. What I did, I found the http website as a secure website: curl-u Div>

FileWriter in java not writing to txt file -

इस सवाल का पहले से ही एक उत्तर है: 8 जवाब मैं इनपुट प्राप्त करने का प्रयास कर रहा हूं जॉप्शनपैन से और उपयोगकर्ता को एक टेक्स्ट फ़ाइल में जो कि FileWriter वर्ग का उपयोग करते हुए टाइप किया गया है। यह सुनिश्चित करने के लिए कि उपयोगकर्ता द्वारा टाइप किए गए इनपुट से इनपुट संग्रहीत किया जा रहा था मैंने एक सिस्टम लिखा था .आउटआउट और जो मैंने जॉप्शन पेन में टाइप किया है प्रकट होता है। दुर्भाग्य से जब मैं .txt फ़ाइल को खोलता हूं, तो मैंने दर्ज किया हुआ कुछ भी नहीं दिखता! वैसे, मैंने जो फ़ाइल पथ दर्ज किया है वह सही है। यह मेरा कोड है I मुझे मदद करो! स्ट्रिंग का नाम = JOptionPane.showInputDialog ("आपका कैरेक्टर का नाम क्या होगा?"); Println (PlayerName); {FileWriter charectersname = नए फ़्रीवेयर ("/ उपयोगकर्ता / एलेकस्टैंटन / डेस्कटॉप / नाम। टेस्ट /") का प्रयास करें; बफ़रेड विरे आउट = नया बफ़ेड वाइटर (charectersname); out.write (PlayerName); } पकड़ (IOException ई) {// TODO ऑटो-जेनरेट कैच ब्लॉक e.printStackTrace (); } बफरेड लेखक केवल जब वे पूर्ण हों य...

php - How to detect when a user has been logged out automatically by the deletion of its session? -

I know whether a user has been automatically logged on by Laravel or not. If the user is not logged in after some time remember_token session But the session has come to know how to find out? Thank you in advance.

libreoffice - Goal Seek in User Defined Function for Libre Office Basic -

I am trying to use Libre Office Basic to write user-defined functions for LibreOffice Calc Instead of running the function, I click on the menu and click What I want to be able to do is pass a cell as the first argument for the formula, the second argument is that I I want to set up the formula, and the third argument is to be the cell Ahia which can be used to manipulate variables. For example, I want to type in cell A3 in calc = GSeek2 (A1,5, A2) , where = A2 + 1 and starts from A2 0 and 4 is equal to A3. I think that there is a need to act as an address in order to manipulate formula and cell, but I'm not sure. I have tried the following code, but I'm getting "basic syntax error. Unexpected symbol: target." Does anyone know why I am going wrong? Function GSeek2 (form in the form of the form, double as the target, as the wise range) form = form. Var = Address.Address ("Sheet1") with Wordsheets GSeek2 =. Range (form). GoalSeek _ Goal: =. Val...

why java is returning positive infinity when it exceed Double.Max_Value? -

When I try to execute this code, the result is more than double. MAX_Value? Overflow / Underflow will affect double data types in Java? Code: Results = Double. MAX_VALUE * double. MAX_VALUE; If the (result & gt; double.mx_avna) {// some return details} From The result is the floating point multiplication set based on IEEE 754 arithmetic rules: [...] If the volume of the product is too large to represent, then we say operation overflow ; The result is then the eternal sign of the appropriate sign Since Double.MAX_VALUE * Double.MAX_VALUE It is big, its value becomes infinite.

java - wrong ELF class: ELFCLASS32 When using Linux -

Image
मैंने इन सभी को देखा है, लेकिन मेरा समाधान वहां नहीं है मैं अपने गेम में लिनक्स समर्थन जोड़ रहा हूँ यह विंडोज़ (32 और 64 बिट, विंडोज 7 और 8 का परीक्षण) पर ठीक काम करता है, हालांकि जब मैंने इसे एक परीक्षक को लिनक्स पर दिया तो उसे यह त्रुटि मिलती है: अपवाद में थ्रेड "टाइमर- 0 "java.lang.UnsatisfiedLinkError: /home/jai/Downloads/res/linux/liblwjgl.so: /home/jai/Downloads/res/linux/liblwjgl.so: गलत ELF वर्ग: ELFCLASS32 (संभावित कारण: वास्तुकला शब्द चौड़ाई java.lang.ClassLoader $ java.lang पर java.lang.ClassLoader.loadLibrary0 (ClassLoader.java:1890 पर java.lang.ClassLoader.loadLibrary1 (ClassLoader.java:1965) पर NativeLibrary.load (मूल निवासी विधि)) में बेमेल) .ClassLoader.loadLibrary (ClassLoader.java:1851) java.lang.Runtime.load0 (Runtime.java:795) java.lang.System.load (System.java:1062) पर पर org.lwjgl.Sys $ 1.run पर org.lwjgl.Sys.loadLibrary (Sys.java:95) पर org.lwjgl.Sys.doLoadLibrary पर java.security.AccessController.doPrivileged (मूल निवासी विधि) (Sys.java:66) प...

javascript - using attr of the value of child element in a list to change css of div class -

I am preparing the ranking bar, I have 9 times, though I want the height of the bar at 0 And the times are the longest in 8 I use the value of the option of choosing to manipulate my jquery selector to change the CSS style of the bar. Below is my code. css: .rating-c .br-widget {height: 60px; Display: Inline; } .teaching-c. BR-Widget A {display: inline; Width: 20px; Height: 60px; Swim left; Background-color: #FFFFFF; Margin: 2px; Text-decoration: None; Font-size: 16px; Font-weight: 400; Line-height: 2.2; Text align: center; Color: # 444444; Border: thin concrete # B6B6B6; } .rating-c .br-widget a.br- active, .rating-c .br-widget a.br-selected {background color: # 59a6d6; White color; } html: & lt; Div class = "rating-c" & gt; & Lt; Label class = "rating label" & gt; & Lt; Select ID = "Rating-C" name = "Rating" & gt; & Lt; Option value = "" & gt; & Lt; / Options & gt; & Lt; Optio...

ITextSharp - get image at a particular location -

I need to do a 2D Datamatriks (bitmap) bar code extract and read it. I can do this work, but I must loop through all the images on every page. It's taking a long time when I have 1000 pages, so I was wondering if it was possible to define the location of the image (barcode) where the image was? The bar code is always the same place I note:. Thanks for any help I am able to use Code Spire.Barcode from RenderFilter piece> Public class MyRegionTextRenderFilter: RenderFilter {/ ** to allow text from region / / Personal RectangleJ filterRect; Public pdfImageObject image; / ** * Creates a filter * @PRAM Filter by highlighting the rectangle to filter the text Note that this is a java.awt.Rectangle! * / Public MyRegionTextRenderFilter (RectangleJ filterRect) {this.filterRect = filterRect; } / ** * Creates a filter * @param filter, outline the rectangle to filter the text. * / Public MyRegionTextRenderFilter (iTextSharp.text.Rectangle filterRect) {this.filterRect = new Rect...

javascript - Last element in Backbone collection add / reset? -

How do you know that a model in the batch is final? / / inside scene collection = new ObjectCollection (); This.listenTo (collection, 'add', added); Added: function (mod) {//} (mod.position.last)} collection.add ([{'name': 'human'}, {'name': 'cat'}]); added: function (mod) {If (this.collection.at (this.collection.length-1) == mod) {// do stuff}}

asp.net - How to configure SSRS without using my Windows login and password? -

The way the SSRS works in my project, the ASP's Web The config file requires Windows user login and password. The net application that calls the report is a problem because I have to change the password as 90 days per security. Is it possible to configure the SSRS without any employee login and password? This is the part that concerns me & lt; Add key = "ReportServerUsername" value = "me" /> & Lt; Add key = "ReportServerPassword" value = "my password" /> & Lt; Add key = "ReportServerDomainname" value = "my domain /"> Yes, Set it to use the cloned / accredited credentials. You have to configure the web application to use integrated authentication, then set the correct attribute in the config file. & lt; authentication mode = "windows" /> gt; & lt; identification impersonation = "true" /> gt; if this is done, then each Users To create a DB login ...

java - Http Server speeds -

I have an application where I am making several requests to a server, through HTTP requests, to confirm the feedback I'm trying to bench. I do not know what to expect in terms of speed. I have written this sample program for testing. What should I expect from this program? About 4000 requests per second is getting which I think is less, please help. HTTPClient: package my.service; Import java.io.biteArrayOutputStream; Import java.io.InputStream; Import java.net.HttpURLConnection; Import java.net.URL; Import java.util.Date; Public class test client {public static zero major (string [] args throws exceptions {date date = new date (); For (Int i = 0; I + response); }} Date d1 = new date (); System.out.println (d1.getTime () - date.getTime ()); } } HTTPServer: package my.service; Import java.io.IOException; Import java.io.OutputStream; Import java.net.InetSocketAddress; Import java.util.concurrent.ExecutorService; Import java.util.concurrent.Executors; Import com.s...

Wordpress ReferenceError: jQuery is not defined -

I keep getting this error. I just call my plugin which has been installed on my wp site .js files with jquery and jquery-ui-core as dependency I have them Believe it: wp_enqueue_script ('vkrwpsprojs', plugins_url ('/js/vkrwpsprojs.js', __FILE__), array ('jquery')); Wp_enqueue_script ('fancybox', plugins_url ('/js/jquery.fancybox.js', __FILE__), array ('jquery-ui-core')); The main part of my page (where .js files begin to contain) looks like: & lt; Script src = "https: //ajax.googleapis.com/ajax/libs/jqueryui/1.10.4/jquery-ui.min.js?ver=4.0" type = "text / javascript" & gt; & Lt; / Script & gt; & Lt; Script src = "http: //l/demorwpspro/wp-includes/js/jquery/jquery.js?ver=1.11.1" type = "text / javascript" & gt; & Lt; / Script & gt; & Lt; Script src = "http: //l/demorwpspro/wp-includes/js/jquery/jquery-migrate.min.js? Ver = 1.2.1" type = ...

c - What is the address of buf (the local variable in the main function)? -

I had exercise with programming in c or classes and I followed the question: Is Buf (local variable in main function)? Either enter the answer in hexadecimal format (like 0x 8 "digits" 0-9 or A-F, 0xbfff0014) or in decimal format. Note here that we want the address of the buff, not its content. The code looks like this: int main (int argc, char * argv []) {while (1) {four buff [1024] = {0}; Int r; .... I then started the code and put the built code in the buff [1024] line and in Typed Gdb p & amp; Buf and it gives me results: 0xbffff0f0 But when I use it in this quiz it gives me the result that this value is wrong. My question is this: Is this the name of the Buff variable (P & E)? Or if not, why not? Exercise is done on the virtualbox machine, so I think everyone should be the same address There is no correct numerical answer, the address may vary from one time to another, it is a programming drill that you say the following three...

javascript - Add buttons inside li in dynamically created listview in phonegap JQM -

I should make a presence application in PhoneGap ... I want 2,3 button list in the list of students' names Below its name in ... a Ull will be where Lee will be the name where the name will be shown ... I can not understand how this button can be added to the Li button! Must be a list view in which the name is li & amp; Just below the name should be a tick button, a cross button and more than 2-3. Another name after thata with another name under this name ... Please help me, how do I get this thing in HTML, Css, javascript, jquery, mobile jquery ... If anyone can write code at the beginning, it would be very useful ... thanks, .. Just add a button to a control group: & lt; Ul data-roll = "listview" data-inset = "true" & gt; & Lt; Li & gt; John Smith & lt; Div data-role = "control group" data-type = "horizontal" data-mini = "true" & gt; & Lt; A href = "#" class = "ui-bt...

polymorphism - Rails 4 : has_many through association on an belongs_to polymorphic association -

I try to do is_many through an association on an as_to_to polymorphic association through the union, I created for it, class 3: Opinion RB: class opinion & lt; ActiveRecord :: Base has_many: opinion_types has_many: through name_applications,: opinion_types, source: typeapplication, SOURCE_TYPE: "NameApplication" accepts_nested_attributes_for: opinion_types end opinion_type.rb: class type name_application.rb: class NameApplication & LT; ActiveRecord :: Base has_one: as opinion_type,: typeapplication has_one: through the opinion,: opinion_type end My OpinionsController: class OpinionsController & LT; ApplicationController def new @ opinion.new 3.times do @ opinion.name_applications & lt; & Lt; NameApplication.new end end def make @opinion = Opinion.new (parameter [opinions_params]) @ opinion.save redirect_to root_path end private def opinions_params params.require (: opinion) .permit (opinion_types_attributes: [name_applications: [...

How can I pass variables between DRY templates and ncludes in Jekyll -

I have a simple blog site where the home page index is a list of posts, not sorted as individual pages and Has been rendered. I have index page setup and work: --- layout: default --- Div & gt; {% Included post / post.html%} {% endfor%} & lt; to post in {% Post.posts%} / Div & gt; Where there is a post layout using Post / PostWhite using the post variable: & Lt; Articles & gt; & Lt; Header & gt; {% Include / title.html%} {% include / post metadata. Html%} & lt; / Header & gt; Includes & lt; Div class = "entry-content" itemprop = "text" & gt; {{Post.content}} & lt; / Div & gt; & Lt; / Article & gt; Now, on a specific post page, I want to include it in the layout so that I can keep my code DRY, so I have post.html layout (Different from posts / post.html ): --- layout: default comments: true --- {% include post / post) Html%} But the problem is that the included file is expecte...

module - Python Can't Find Importlib -

I am trying to import imported Lib module but I get this message: & gt; & Gt; & Gt; Importlib traceback (most recent call final): File "& lt; string>", line 1, & lt; Module & gt; Name: Error: The name 'importlib' is not defined I have manually imported Lib file in the Python folder, so I know that I have it. I'm running Python version 3.4.1 I also tried to install the importer, but did not even get it. What's going on? You must use a statement to load it: & gt; & Gt; & Gt; Import Import & gt; & Gt; & Gt; Importlib & lt; Module 'importlib' from 'C: \\ Python 33 \\ lib \\ importlib \\ __init __.py' & gt;

apache - Set up htaccess redirect to an identically titled directory on a subdomain -

If example.com is my primary domain, how can I redirect 301? I have tried the following but getting a redirect loop error message when trying to go to the page: RewriteRule ^ holiday $ http://referrals.example.com/holiday/ [L, NC, R = 301] Thanks! You need to use RewriteCond before this rule: RewriteCond% {HTTP_HOST} ^ (www.) At RewriteEngine? Example \ .com $ [NC] RewriteRule ^ (leave /?) $ Http://referrals.example.com/$1 [L, NC, R = 301]

cmd - WinSCP script will not exit after error, even with "option batch abort" -

For any reason, my network will not stop when my script is closed. Here is the command: "% ~ dp0 \ winscp.exe" / console /script="script.txt "exit and script.txt: Option Batch Abort Option open ftp: // Confirm User: pass@ftp.site.com/ cd / directory / local exit Synchronize When I pull my network cable (to test for network drops), I get: The requested name is valid, but the requested type No data found. connection failed. (A) BORT, (R) ENCNETT (5S): .. (A) BOURT, (R) ENCNETT (0S): RECONNECT Try it indefinitely And will continue to connect again. Why does the script not automatically abort? I am using the option batch mutation . Am I missing something? This error is recoverable, so WinSCP tries to resume with the transfer Option batch abort as: ... When the batch mode is set to on , then an option prompt is automatically Is responded negatively until a second default response of the prompt (such as the answer to a "reconnec...

mongodb - Complex Meteor Publication Isn't Reactively Updating As Expected -

I am working on a meteor app that uses many collections that will allow each other to have a tree-style organization In context. However, they all represent as flat collections in my database structure. For example, I have a high-level car collection, a parts collection and a seller collection that looks like this (pseudo code) : Cars {_id: make: model: year: etc ...} Parts {_id: carId: Cars._id type: desc: etc ...} Seller {_id: partId: Parts _id Location: Name: etc ...} The way they refer to each other in the tree, they will look like this: Car | ---- & gt; Part | | | ---- & gt; Seller | | | ---- & gt; Seller | | | ---- & gt; Seller | ---- & gt; Part | ---- & gt; Seller | ---- & gt; Etc ... The problem is that I use many top-level publications where I pass Car._id and I want to see all the codes. Sellers sell parts for that car . So in my path I have a subscription that looks like this: wait: function () {mention Meteor.subscribe ...

Updating multiple complex array elements in MongoDB -

I know that has been asked before, but I have not found a solution that works efficiently so far. I am working with the MongoDB C # driver, though it is more of a general question about MongoDB operation. I have a document structure that looks like this: field 1: value1 field 2: value2 ... user: [... .. User 1 sub-document ...}, {... user2 sub-document ...}, ... Some facts: Each user subdown contains further sub-array & amp; Sub-documents (hence they are quite complex) The average user array consists of only 5 elements, but the worst case may exceed 100. In this system, several thousand update operations can be done to many users per day. At one time, the large arrays on one document will receive more frequent updates due to their data size. I am trying to explain how to do it efficiently. From everything I've heard, you can not set many array elements directly to new values ​​together, so I had to try something else. I tried to remove the old array usin...

python 3.x - When using cx_freeze, what files have to be updated to update the application? -

I want to apply an autoupdater to my Python application. This is not a problem in the source version; Python does not care about everything that the ongoing script is trying to overwrite itself. However, an XE tries to overwrite itself, though Windows is my question, do I have to overwrite myself too? Or EXE is just an interpreter, and I only have to overwrite the library. Zip? If this happens then is there any alternative to launching an updater application and closing the main ANSE? In addition, exe becomes stamped with the version number associated with your application (you can view it in the file property). If you do not replace it, the number of that version will not change. If you need to replace the exe, then I believe that this trick is to be copied to the temporary folder and to run it again so that it can replace the original. You can also look at the update framework, which you have to handle these types of details. I have not used it, so I do not know how it w...

class - Redefining vs. Overriding in C++ -

I am confused about the differences between redefining and overriding functions in derived classes. I know that - In C ++, redefined functions are statistically bound and override functions are dynamically binding and the virtual function overrides, and a non-virtual function is redefined . When a derived class "redefines" a method in a base class, it is considered to be redefined but when a derived class is virtual, it is no longer defined, but it is overridden Does. So I understand the logistics of the rules but I do not understand the bottom line. The SetScore function is redefined in the example below. However, if I set the set virtual virtual (virtual word by adding virtual) set in class virtual set then setScore will be overridden in the generated class. I do not understand the bottom line - what's the difference in SetScore? base class: class categorized activity {protected: four letters; // Letter grade double score; // set numerical score zero grid...

c++ - Passing a Vector of a Vector with variables to a function -

I was trying to create an array with the variable for size (i.e. array [x] [y]), The work that I stumbled on a post which suggests using a vector vector: vector & lt; Vector & lt; Int & gt; & Gt; Grid (GetGridXComponent (), vector (GetGridYComponent ()); GetGridXComponent () and GetGridYComponent () receive private variables from a class. The code works inside the function, but I need to be able to reach the vector, to class out "grid", I tried to make a public example: vector & lt; Vector & lt; Int & gt; & Gt; Grid (GetGridXComponent (), vector (GetGridYComponent ()); But of course, GetGridXComponent () and GetGridYComponent () will not work because it thinks that I am creating a function and I want to make a type of announcement for GetGridXComponent () I am Is there any way to go about this? Am I making this difficult by making? thank you in advanced. Class Simulator {Private: int s_iGridXComponent; Int s_iGridYCompo...

What/when are the laravel storage/cache, storage/sessions, and storage/meta directories used for? -

I am setting up a master-replication setup in load balanced cluster and trying to figure out which Exclude directory is to sync other machines I do not want to sync the storage / log folder naturally and want Due to sync the visual cache folder (as is running on "php artisan optimization" master), But i'm afraid About Ikaon used in a tough looking Getting information app / storage appreciate an explanation. Well, storage / cache and storage / session , as their names suggest, cache and session storage. Specifically, when using the file driver for those components, you probably do not want to include it. Storage / Meta keeps information about the structure of your own purse, such as which components you are offered by service providers, you may want to include, But I do not think this is important.

java - Getting started with EHCache -

I am starting with EHCache and downloading the required .tar file from this location:. I removed the .tar file and added jar down into my class. Ehakas-2 9.0 Sulf 4 J-API-1.7.7 Sulf 4J-JDK 14-1.7.7 From the above mentioned jar I'm unable to find CacheManager.java in any Is this something else. If the file is located in? AHSK-2.9.0.jar is not included in the Java source file though in net.sf.ehcache The compiled class file for .CacheManager is included. If you want the source file, it can be found in the src directory of unpack distribution.

how to install android studio 0.8.14 -

I'm trying to install Android Studio 0.8.14 from this page. I am downloading a zip file and it is a directory and run studio. Opening in Exe (as described in the documentation on the Web site) But when I'm studio. Exe runs, I found out that Android SDK was not installed. This link, and "an existing IDE Look at the section called "Get SDK", download it to a known location and use that folder when Android Studio asks you to point to SDK location

algorithm - Is it possible to implement linear time BFS in Haskell? -

I have a guided graph as given in the list of instructions list: Newtype Graph Int = Graph [(Int, [Int]] In G has n sectors and m edges, I am trying to implement the BFS algorithm in Haskell which o ) Runs in time (maybe refined), but the best solution I was able to run in O (M * log n) and data Map Module My idea of ​​a linear solution is as follows: Use the structure as the efficient FIFA queue from Data.Sequence and make any compulsory BFS Do as much, but I'm stuck at that point. I have to visit the nodes. My question is: Is it possible to implement BFS in HSKS (or any other purely functional language) that runs in O (M)? And if it is not so, what logic can you use to prove such a statement? I believe your problem is that you can not apply a good line. Take a look at Data.Sequence - it should be fixed for the double queue queue because the sequences are incredibly fast adding an element in any form O (1) and removing an element from any side is O (1...

Confluence giving weird exception "Invalid file name for use with -Xloggc" while running on ubuntu EC2 -

I have set Attlsian association -5.6.3. Tar.gz on my Ubuntu server hosted on Amazon EC 2 has been done. Whenever I am trying to start the confluence except the above file, so it looks: +++++++++++++++++++++++++++++ ++++++++++++++++++++++++++++++++++++++++++++ run confluence +++++++++++ + foreground, start-confluence.sh -fg current user if you start the server with executing as trouble started confluence, please View the installation guide The servers are located in the startup logs using CATALINA_HOME /home/ubuntu/atlassian-confluence-5.6.4: / home Use of /ubuntu/atlassian-confluence-5.6.4 CATALINA_TMPDIR /home/ubuntu/atlassian-confluence-5.6.4/logs/catalina.out CATALINA_BASE: JRE_HOME use /home/ubuntu/atlassian-confluence-5.6.4 / temp: / use CLASSPATH usr: /home/ubuntu/atlassian-confluence-5.6.4/bin/bootstrap.jar:/home/ubuntu/atlassian-confluence -5.6.4 / bin / Tomket-Julikjr Katliniapiaidi Using: /home/ubuntu/atlassian-confluence-5.6.4/work/catalina.pid Tomcat started. ++++++++...

c# - "The Image passed to the ImageVisualManager cannot be frozen" WPF exception -

I am trying to present the view for a WPF RenderTargetBitmap I cache in the window view. Renderizitbuiltmapmart RTB; In my window constructor, public FooWindow () {rtb = new RenderTargetBitmap (500, 500, 96, 96, pixelformats.pibra32); } The user-request code (request for a screenshot) - // ... window window = window.getwindow (this) ; Rtb.Render (window); Rtb.Freeze (); // rtb Next bitmapFrame bmpFrame = BitmapFrame. Create (renderTargetBitmap) used; // ... However, I get the following exception (.) on RTB.render [System.ArgumentException]: {Image ImageVisualManager This can be done for the first time though. The problem is freeing RenderTargetBitmap and then trying to reuse it, you can do one of two things to fix A new render target for each request Create another bitmap Do not render target static bitmap ( 'rtb.Freeze (Remove)) line and keep using the same example). By trying to cache an example and reuse it, you do not want to freeze it at all....

angularjs - angular ng-repeat isolated scope -

I have a button on the repeating item, which is clicked, the URL should be changed and the current item's The situation needs to be changed. The button which was clicked. I have a Yuri-CRF that is connected to this button and there is a custom instruction on the ng-repeating element whcih to make an opportunity for the current item on which the button was clicked. This code is ... & lt; Div open-prices open = "ui-sref" data-ng-repeat = "talk in things" & gt; The code for the button is ... & lt; A ui-sref = ". Price ({priceId: price._id})" type = "button" & gt; Click & lt; / A & gt; The code for the custom command is app.directive ('openprises', [function ()) {return (restricted: A ', link: function postlink (area, element, etter) {}, area: {open:' = '}};}]); My problem occurs when the button is clicked, the status of all repeat items varies, but I want the status of the current...

soap - If I take the time to make a Java bean class, will it always work over Axis2? -

I really like programming at wild in the world of java at least one noob (out of my first 5 years in college delphi But most of the college programming Java - sometimes there will not be a problem with the beans ...) So, I'm wondering why such a cache is, using my WSDL (RAD Studio XE2 ) I used to be in my old textbooks One has probably stumbled (maybe java for 1.5 days), where it tells me what is happening in Bean's standard and I'm thinking, not because of thinking, but because I really do not want to shoot myself this year Legs for the 7th, if I make a legal bean, is it definitely going to work with Axis 2? I ask because I was putting it: private final quartered & lt; Runnable & gt; UpdateEvents; In the class I wanted to run through SOAP and I had a feeling of drowning like that in the Delphi TRemotable not working as well as the object. having had .

statistics - How to calculate Log Hazard Ratio in SAS -

proc freg data = analysis; Class C diabetes / descending; Model Day * Ind (0) = C diabetes ID / RL; ID = C * diabetes; Risk id; Run; I am trying to run a simple Cox Regression in SAS. I can not seem to find a way to calculate the log-risk ratio for my variables in the model Risk ratio statement and RL options have a risk ratio with 95% CI, but with 95% CI boundaries Want a log-risk ratio. Please help You only log-high ratios by logging the risk ratio Can be obtained, computation is done with the logs and estimates of logs in the last step of the estimate (please see an example here). This is the same for Wald and PL CIS (e.g. Profile-likely confidence limitations for risk proportions come from the expansion of these confidence limits

ruby - Whitespaces not escaped by /\s/ -

I am working with some strings that behave in a weird way. Some spaces are not recognized in Ruby in a regex / s by "175 75 16C 101/99 R" .gsub (/ \ s / , 'X') = & gt; "175 x75 x 16 c x101 / 99 xR" It is expected that every white spot is changed to 'X' I have a UTF-8 On string but this is not working either I need a regedge that matches every type of white spot in my string and converts them to whitespace regularly. Edit: str.encode ('utf-8') Chars.each {| C | Puts c.ord} 49 55 53 160 32 55 53 160 160 32 49 54 67 160 32 49 48 49 47 57 57 160 160 160 32 82 [\ t \ r \ n \ f] (only one If your pattern contains letters with other white space, such as non-breaking spaces, you \ s to \ p { Z} , which will look for Unicode separator character property and thus will match everyone.