Posts

Showing posts from March, 2015

jquery - grab all divs which does not have a class -

I am trying to capture the div elements which do not have a specific class, which active . The code is: $ (currentcontentive) .addClass ('active'); Now, there is also a square slidingDiv in currentContainerDiv and now I want to capture all the other div slidingdiv , where active is not attached How can it be obtained? I tried it, but it does not work: $ ('slidingDiv'). No. (Current Contraction) .removeClass ('fried'); Try it: $ (' SlidingDiv: no (.active) '.) RemoveClass (' folding '); As you said in "Current ContainerDive" also there is class = "Sliding Div" so there is no need to add any filter for this.

How to create Error log in PHP Codeigniter Framework -

इस सवाल का पहले से ही एक उत्तर है: 4 उत्तर त्रुटि लॉग इन कैसे करें PHP Codeigniter फ्रेमवर्क? स्थानीय लॉग में त्रुटि लॉग बनाने के लिए संभव है? हाँ आप स्थानीय होस्ट के लिए सक्षम कर सकते हैं बस applications / config / config.php पर जाएं और $ config ['log_threshold'] = 1 पर जाएं; $ Config ['log_path'] = ''; // अपना पथ जोड़ता है $ config ['log_path'] = '' डिफॉल्ट एप्लीकेशन / लॉज़ डीर होंगे 0 = लॉगिंग को अक्षम करता है, त्रुटि लॉजिंग बंद 1 = त्रुटि संदेश (PHP त्रुटियों सहित) 2 = डीबग संदेश 3 = सूचनात्मक संदेश 4 = सभी संदेश अधिक के लिए: -

How to set default values to specific component in Trac? -

I want to set the 'confidential' flag as the default for a specific component in my Trac system as correct I am how can I do this? I have tried with the trac.ini section [ticket_custom] , but I can only set the 'confidential' value as the default all The component is not what I want. In addition to this, I was thinking of creating a MySQL query to manually update all the tickets of my component and set the sensitive value for the 'Confidential' field . But this is not a clear perspective, though. Thank you! Support version 1.2.6 (see) case of your use (no 0.12) branch Will need to be installed from. Here is an example: Custom Ticket = Sensitive checkbox sensitive. Set_to_tra_v_component = component 2 ( component2 selected).

jquery - How make two <ul> facing each other asp.net -

I want my list to look like one another register About Home Log In I can do it only like this About Login Register This is my code & lt; Div id = "wrapper" & gt; & Lt; Div id = "banner" & gt; & Lt; / Div & gt; & Lt; Div id = "navigation" & gt; & Lt; Ul id = "nav" & gt; & Lt; Li style = "text-align: left" & gt; & Lt; A href = "~ / default.aspx" runat = "server" style = "font-weight: 700; text-align: left" & gt; Home & lt; / A & gt; & Lt; / Li & gt; & Lt; Li & gt; & Lt; Div class = "auto-style1" & gt; & Lt; A href = "#" & gt; Reviews & lt; / A & gt; & Lt; / Div & gt; & Lt; Ul & gt; & Lt; Li style = "text-align: left" & gt; & Lt; A href = "#" & gt; Books & lt; / A & gt; & Lt; / Li & gt; & Lt; Li sty...

encoding - Using Knitr engine in TeXshop but pdf plot labels with accented letters are incorrect -

I want to compile the following Rnw file which has the R plot of the normal density function. \ documentclass {amsart} \ usepackage [a4paper] {geometry} \ usepackage [Italian] {babel} \ usepackage [utf8] {inputinc} \ usepackage [T1] {fontenc} \ usepackage { Lmodern}% ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ~~~~~~~~~~~~~~~~~~~~~ & lt; & Lt; Setup, include = FALSE, cache = FALSE & gt; & Gt; = Opts_chunk $ set (dev = "pdf", comment = NA, fig.align = 'center', cache = FALSE, message = FALSE, background = 'white') option (replace.assign = TRUE, width = 85) knit_hooks $ Set (fig = function (first, option, environment) {if (before) par (mar) = c (4,4, .1, .1), cex.lab = .95, cex.axis = 9, Mgp = c (2, .7,0), tcl = - .3)}) @ & lt; & Lt; Ready-to-Data, Include = FALSE & gt; & Gt; = @% ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ \ Start {document} This is an Italian caption `` There ...

swift - Scanning all/specific arrays values when filtering an array of arrays -

यहाँ नमूना कोड है: var myArray = [["एक", " दो "], [" तीन "," चार "]] var filteredArray = myArray.filter {मान मान [1]! =" चार "} फ़िल्टर किए गएअरेरे // [[" एक "," दो "]] यह कोड "चार" वाले किसी भी सरणी को फ़िल्टर करना माना जाता है। यह ठीक से करता है, लेकिन केवल इसलिए कि मैं मूल्य के साथ विशिष्ट सरणी को लक्षित करता हूं [1] क्योंकि मुझे पता है कि इसमें "चार" है मैं इस कोड को पुन: स्वरूपित कैसे करूँ, इसलिए मुझे विशिष्ट सरणी निर्दिष्ट करने की आवश्यकता नहीं है, इसलिए इसमें सभी मान स्कैन करेगा? "लूप के लिए" का उपयोग करते समय, हमने एक घोषित "i" चर का उपयोग कर सकते हैं। लेकिन फ़िलटर फ़ंक्शन के साथ ऐसा कैसे करना है? इसके अलावा, और भी विशिष्ट, मैं इस कोड को पुन: स्वरूपित कैसे कर सकता हूं ताकि मैं सरणी को फ़िल्टर कर सकूं और "चार" [1]) और नहीं, अगर उनकी पिछली आवश्यकता के अनुसार किसी अन्य इंडेक्स स्थिति में "चार" हैं। फिर "i" चर के अभाव में, मुझे नहीं...

asp.net - Phishing attack Azure Website -

We have a website published in Azure (not free). Which was just working fine but sometimes I can try to steal your information (for example, passwords, messages or credit cards) in Chrome and Mozilla on example.com, getting ahead of the example, getting "examples" People tell me what is the problem? And why is the message coming? Please note that the website is working locally. Google Chrome warns you The site you're trying to visit is suspected of phishing or malware by using Google's Safe Browsing technology. To protect you from dangerous websites, Google's list of websites that give you malware Or phishing. Google also analyzes website content and warns that a site is dangerous. Source: The following are your questions But it can be useful: You can report the wrong phishing warning to Google. Report the wrong phishing warning: If you've received a phishing warning but believe it If this is actually a valid page, please complete the for...

java - How to get CSS selectors which contain specific colors? -

First of all, sorry I did not put any code here because I did not know how to do this. What I want is to get all the CSS selectors (in the CSS file), which has a special color ... let's say for example, # 3C3C3C. Example: Read a CSS file . First-selector div {color: # 3C3C3C; } .second-selector span {background-color: # 3C3C3C; }. Thread-selector {limit: 1px solid # 3C3C3C; }. Fourth-selector Nothing {color: # 00000; Expected Result - Remove it in the array (only with a specific color style) array [0 ] ['Selector'] == "first selector div" array [0] ['style'] == "color" array [1] ['selector'] == ".second-selector span" array [1] [ 'Style'] == "background color" array [2] ['selector'] == "thread-selector" array [2] ['style'] == "border" What should be the reason for the selectors to search for specific color and put them in the array? Note This will be proc...

how to update openstreetmap (OSM) with android app -

I see how one can easily contribute to openstreetmap. That's why I was searching an app on Android that could take my GPS track or when I travel, OpenStreamMap should be updated. I checked and much more but this functionality could not be found. But I think there should be something simple app through which I can contribute to OpenStreamMap. A GPX track can not automatically lead to OSM data updates Fixes as an additional data source when editing. In addition to both OSMand and OSMtracker, I am able to upload a track to the OSM as far as I know. For more questions or to read the trip.

how can i get all review from google+ using api -

I'm the beginner of the google + developer API and I want to get user review from any page for example I tried to use curl call but did not get success for all the reviews. Also saw the content of the document: Can you give me the same idea about Google APIs to get the review data? You have to use it on Google+ platforms.

ios - how to play video with native player instead of web player for a <video> tag? -

We have UIWebView that loads html pages with video tags. When a user taps the video element, a fullscreen movie player is presented. There is some logic in the web page in this form that handles the event and there is a need to stop and stop the movie player. Is there an API to do this? (Stop the web movie player and get out of fullscreen)? Anyone have to do this? Even more, we want to find taping here on the video element, then we need to provide our own custom player instead of the system web player. Any way to do this? Thank you! This might help, if you want to control HTML5 video with js: I'm running on mobile devices - Javascript is running in full screen mode - I'm not right.

php - http file upload using cURL in linux(command line) -

मुझे लिनक्स कमांड लाइन में कर्ल HTTP POST का उपयोग करके फ़ाइल को स्थानीय सिस्टम में अपलोड करना होगा । मैंने इन कमांडों का उपयोग सफलतापूर्वक नहीं किया है: कर्ल-एफ "image=@/var/www/fbapp/images/registration.png" http: //localhost/xmlcreate/curlupload.php curl --form "fileupload=@/var/www/fbapp/images/registration.png" http: //localhost/xmlcreate/curlupload.php कर्ल -X पोस्ट-डी @ / var /www/fbapp/images/registration.png http: //localhost/xmlcreate/curlupload.php कर्ल --डेटा-बाइनरी @ / var / www / fbapp / images / पंजीकरण.png http: // localhost / xmlcreate / curlupload। Php मैंने इन सभी आदेशों का इस्तेमाल किया लेकिन इनमें से कोई भी काम नहीं करता। यह मेरी PHP फ़ाइल है जहां मैं अपलोड की गई फ़ाइल (कर्ल का उपयोग करके) और इसे किसी अन्य निर्देशिका में सहेजें: & lt;? Php $ uploadpath = "images /"; $ दायर किया गया = $ _FILES ['छवि'] ['tmp_name']; $ Filename = $ _POST ['फाइलनाम']; अगर ($ दावेदार! = '' & Amp; ...

iOS 8 iPad AVCaptureMovieFileOutput drops / loses / never gets audio track after 13 - 14 seconds of recording -

I have the following code that is available in iOS 6 & amp; 7.x In iOS 8.1, I have a strange problem, where you capture a session for about 13 seconds or more, resulting in AVAsset only 1 track (video), not an audio track yet. is. If you record for a short duration, 2 tracks (video and audio) in AVAsset hope I have many disk space, the app is allowed to use the camera and microphone I have created a new project with a minimum code, re-presented this issue. Any ideas will be highly appreciated. #import "ViewController H" @ Interface View Controller () @ and @ Implementation View Controller {en RecordingState {recording, paused}; Enum recordingstate recordingtate; AVCapture session * session; AVCaptureMovieFileOutput * Output; AVPlayer * player; AVPlayerLayer * playerLayer; Bull audiegrated; } - (zero) viewDidoadload [[Super Viewedload]; [Auto setup]; Recording location = closed; } - (zero) setupAV {session = [[AVCaptureSession alloc] init]; [Starting session...

php - How to solve the error-Error loading file "Excel2007": Could not open Excel2007 for reading! while reading excel file using PHPExcelFile? -

try {$ inputFileType = PHPExcel_IOFactory :: identity ('myfile.xlsx'); $ ObjReader = PHPExcel_IOFactory :: createReader ($ inputFileType); $ ObjPHPExcel = $ objReader-> Load ($ inputFileType); } Hold (exception $ E) {dead ('Error loading file'. 'Pathinfo ($ inputfile type, pathhinfo_ BASENAME).' ':'. $ E-> getMessage ()); } $ RowIterator = $ objPHPExcel- & gt; GetActiveSheet () - & gt; GetRowIterator (); $ Array_data = array (); Forex Currency ($ line indicator as $ line) {$ celliter = $ line-> Millicilator (); $ CellIterator- & gt; SetIterateOnlyExistingCells (wrong); $ RowIndex = $ row- & gt; GetRowIndex (); $ Array_data [$ rowIndex] = Array ('A' => gt; '' 'B' = 'gtc:' 'C' '=' gt; '', 'D' = & gt; E '=>' ',' F '=> gt;' G '=>' '); Foreign currency ($ cell ifrator $ cell) {If ('a' == $ cell- & gt; m...

Python IMAP - Read Gmail with '+' in email address -

I previously used imaplib in Python 3 which removes email from Gmail. However, I want to generate a script to separate the email at the same address with different strings after the plus sign. For example, the base email address may be: example @ gmail .com Then I want to read different email addresses with addresses: example+test1@gmail.com, example + test2 @ Gmail.com, example@gmail.com. So I will end up with a dictionary of lists containing specific emails, it only works for example@gmail.com . For example: {'example': [], 'example_test': [], 'example_test2': []} Currently I I can retrieve the emails I want from a class with this function: def get_emails (self): "" retrieve email "" self. M = imaplib.IMAP4_SSL (self-propelled) self M.login (self.emailaddress, self.password) self.M.select (readonly = 1) self.M.select ('INBOX', Readonly = True) # YorkTard Date Date = (datetime.date.today () - Dtetime.timedel...

c# - How to map 8 directions to 1D array -

Image
मेरे पास स्क्रीन पर 8 दिशाओं के लिए 8 कर्सर हैं। मैं उन्हें सरणी में रखना चाहता हूँ और उन्हें दिशा वेक्टर के आधार पर चुना गया क्रम कोई फर्क नहीं पड़ता है, लेकिन मुझे ऊपर दिखाए गए प्रत्येक वेक्टर के लिए 1D सरणी में i समन्वयित करना होगा मैं इसके लिए सूत्र का आविष्कार करने की कोशिश कर रहा हूं, लेकिन कुछ भी काम नहीं करेगा। वेक्टर में मान 0,1, -1 हो सकता है। छद्म कोड: कर्सर प्राप्त कैसर (int x, int y) {int i = theFunctionINeed (x, y); वापसी कर्सर [i]; } ध्यान दें: क्योंकि बहुत से लोग मुझे क्या चाहते हैं, मैं निम्नलिखित बेला बनाने में उलझन में था: इसमें 9 तत्व हैं, मैंने सादगी के लिए (0, 0) जोड़ लिया है। a = {(- 1, -1), (-1, 0), (-1, 1), (0, -1), (0, 0), (0, 1), (1, -1), (1, 0 ), (1, 1)} शून्यबीज इंडेक्स (एक्स, वाई) = (एक्स + 1) * 3 + (y + 1)

javascript - How do I get my ionic side menu button working? -

I have recently tried to create an Ionic side menu. I had a problem when I swipe the main body and then open the menu. But I stopped the swipe function and now I can not open the menu. I want to be able to click on the Navy icon to be able to open the menu, but do not know how to do it. Here's the JavaScript: .controller ('TodoCtrl', function ($ scope, $ timeout, $ ionicModal, projects, $ ionicSideMenuDelegate ) {$ Scope.toggleLeft = function () {$ ionicSideMenuDelegate.toggleLeft ();}; Here is the header code which is the button: & lt; body ng-app = "TODO" ng controller = "TodoCtrl" & gt; & lt; ion side menu & gt; & lt ;! - center content - & gt; & lt; ion Side menu content & gt; & lt; ion header bar class = "bar-dark" & gt; button class = "button button-icon button clean ion navicon" ng-click = "toggl ELeft () "& gt; & lt; / button & gt; & lt; h1 cl...

multithreading - Re-Entrant or Thread Safe -

I have applied this code to hailing many customers. I doubt it. Is this function re-entering function? zero * connection_handler (zero * socket_desc) {// socket descriptor int sock = * (int *) socket_desc; Int read_size; Four * messages, client_meas [2000]; // Send some messages in the client message = "Hello! I'm your connection handler \ n"; Write (sock, message, strangel (message)); Message = "Now type something and I'll repeat what you type \ n"; Write (sock, message, strangel (message)); // When sending a message from the client ((read_size = recv (sock, client_message, 2000, 0)); {// send the message back to write client (sock, client_meme, strangel (client_message)); } If (read_size == 0) {puts ("client disconnected"); Fflush (stdout); } And if (read_size == -1) {false ("recv failed"); } // Free Socket Indicator (socket_desc); Return 0; } If it manages multiple clients, it means how is it synchronized? I call this funct...

javascript - Grunt - plugin folder disapper after build dist -

I'm new to Yemen, Grunt and Bower, and of course I have some difficulty in making the distribution. I added a external plugin to scalphold a webpad, added an external plugin (not on the verge, there was no package for that plugin, so I copied the plug-in folder and my Index.html reference in the index.html) jshint errors about that external plugin (missing semicolon Etc. ... little stuff), so just me ghurghur - force the construction of my district. In the distinction, the external plugin folders and files were missing, so the folder that was deleted in the building process (but there were all the references to the files in the index.html file). Then with the distant service: dist I was in my distant browser but at this point without the plugin I copied the plugin folder to the correct location of the Deliver folder, reloaded the page, and the plugin was working. Then this process was killed, and then I went again grunt serve: dist After this c...

file - Angularjs get single item -

My code works like this in ng-repeat: & lt; Li ng-repeat = "Items in Uploader." & Gt; & Lt; Div ng-thumb = "{file: item._file, height: 100}" & gt; & Lt; / Div & gt; & Lt; / Li & gt; But I only need to use it once, for example I want a thumb of another item in one line. I expected this to work like this: & lt; Div ng-thumb = "{file: uploader.queue [1] ._file, height: 100}" & gt; & Lt; / Div & gt; What am I doing? Looking at the above, maybe it should be? & lt; Div ng-thumb = "{file: uploader.queue [1] ._file, height: 100}" & gt; & Lt; / Div & gt;

nested loop array reference in perl -

I have 2 files with the same lines in this file For example File 1 string1: string2: string3 string4: string6: string6 string 7: string8: string9 file2 string 1: string 2: string 3 string 4: string 6: string 6 string 7: string 8: string 9 I have to do some work with this file, but I I am at the beginning of writing, so first I made it foreac H My $ firstFileString (& lt; FILE1 & gt;) {my @firstArray = split (/: /, $ firstFileString); My $ secfilestring (& lt; FILE2 & gt;) to my foreach (My @secondArray = split (/: /, $ secondFileString); Print "$ agoAre [0] \ n";}} Before continuing on the program, I have the print "$ firstArray [0] \ n"; in this line with the output in this problem always string1 I string1, string4, string7 How is this possible? Thanks in advance. ago "post-text" itemprop = "text"> for each line Program print string1 When the internal loop is removed, and the...

c# - Asp.NET MVC : redirect to another controller with POST Action -

इस सवाल का पहले से ही एक उत्तर है: 6 जवाब मेरी समस्या यह है कि मैं चाहता हूं डाक डिटेक्टर के साथ दूसरे नियंत्रक में कार्रवाई करने के लिए रीडायरेक्शन बनाने के लिए रीडायरेक्ट टाईएक्शन ("जेनरैलेई एक्सपोर्ट पीडीएफ", "एक्सपोर्ट कंट्रोलर", नया {स्क्रेन्डेटा = जेसन, मोनिटिर = मॉनिटर, फ़ाइल = फाइल, ब्लॉक 1 = ब्लॉक 1, ब्लॉक 2 = ब्लॉक 2, ब्लॉक 3 = ब्लॉक 3, ब्लॉक 4 = ब्लॉक 4}); इस उदाहरण को रीडायरेक्शन एक्सपेलाइन करें लेकिन GET एक्शन पर। जैसा कि आप देख सकते हैं, रीडायरेक्ट टाईएक्शन ब्राउज़र को एक HTTP 302 प्रतिक्रिया देता है, जिससे ब्राउज़र को निर्दिष्ट क्रिया के लिए GET अनुरोध करने का कारण बनता है। पुनर्निर्देशन और रीडायरेक्ट पर्मनेंट आपकी समस्या को भी हल नहीं करेगा उनके बीच का मूल अंतर यह है कि पुनर्निर्देशनपरिर्मेंट ब्राउज़र को एक HTTP 301 (स्थायी रूप से स्थानांतरित) स्थिति कोड भेजता है, जबकि पुनर्निर्देशन एक HTTP 302 स्थिति कोड भेजता है। आप POST के साथ रीडायरेक्ट नहीं कर पा रहे हैं आप पृष्ठों के बीच डेटा को संग्रहीत करने और भेजने ...

php - Zend Framework password field rendering as 'text' instead of 'password' -

I'm following with Zend Framework 2.0 by example, and I'm working on a chapter chapter. Everything is working fine, except that my 'password' and 'password-confirmation' fields do not seem to be rendering properly here is a fraction of my RegisterForm.php file where I have the password field Define class RegisterForm form {public function __construct ($ name = null) {parent :: __ creation ('register'); $ This- & gt; Set attribute ('method', 'post'); $ This- & gt; Set attribute ('encrypt', 'multipart / form-data'); ... $ this-- (array ('name' = & gt; 'password', 'attributes' = & gt; array ('type' = & gt; 'password',), 'options' = & gt; Array ('label' = & gt; 'password',), 'attribute' => array ('required' = & gt; 'required'), 'filter' = & gt; array (array ' = & Gt; 'Strin...

function - Adding / grouping classes in php -

I'm integrating a built library My main issue is that I'm completely It is not known how to use or even reference these sections. Here's what I have done, but I get an error (listed below) and my PHP reporting is on error Fatal error: class 'Dave Child \ textstatics \ Textstatics / Users / Mac3 / Documents / Sites / Text -Statistics-Master / Ind.xp.pp did not match in line 10 And here's a simple The code is ini_set ('display_errors', 1); Error_reporting (~ 0); Use \ DaveChild \ TextStatistics as TS; $ Textstatics = new TS \ textstatics; $ Text = 'Quick brown fox to jump on a celestial dog.'; Echo 'flesch-kincaid easy to read:' $ TextStatistics- & gt; FleschKincaidReadingEase ($ text); And the location of my file which is index.php is in the main directory. So if I need to include class or reference, then I have to link it like this src / dev child / textstatics for your input thanks a lot! I think you ne...

webview - Sharper Google Maps Circles for mobile devices -

I am creating an Android app that uses webview to show a Google Map Canvas (JavaScript API v3) Does. (Using webview to do this for reasons) I am adding something to this map at specific places in the map. There is a problem; Check out this screenshot that are not as sharp on the "regular" screen of the board: I tried scaling and zooming using CSS, but with unsatisfactory results. Do these squares have to be presented with a high pixel density for the mobile screen? Or any other solution for this problem? Thanks, Stef

c++ - Easiest way to get textualized binary (0s and 1s) for a simple C/CPP program on OSX -

First of all, I know this is a very strange request. I want it as a teaching aid in a computer classroom. It's good to be able to display an instruction in its binary form, which are going to bits in opcode, logic, etc. Full hex is fine, but I am looking for binary if possible. I am using OSX (Mountain Lion). I used the following commands (different) to get the assembly: clang -emit-llvm -s sum CAP clang -S-mllvm - I used the following command to get some hex values: otowal sum. O -tV But I would really like to get a complete line of binary copy instruction in some way. Some would be ideal to be underlying, but maybe it's asking too much. I think I could only see the obj code in a hex editor, but did not believe that they would be correctly aligned properly to read or understand "easy". I can talk only for Linux, but perhaps it still helps. For example (sum.cpp): #include For example, to get an interspersed source-hex-asm-output, Objdump...

internet explorer 11 - How to simulate Entry in html code - c# webbrowser control is only ie11? -

I have a SAP website in which I want to enter data with the AC # application that I have to write. At this time, I try to use webbrowser control, but it is only IE11 (or better to say: it uses the latest installed version, it is IE11 on my server ). Unfortunately SAP web page is provided in header through header-meta-entry in IE11 mode, which is ignored by webbrower control. So, any ideas how to get my application?

sql server 2008 - Determine column data type from actual data values -

I would like to run the SQL stored procedure to evaluate the data type of a column based on the data. I have loaded a text file and all the columns are of four / worker types, I would like to know numeric, date and string data types in basic form. Did anyone write some code in SQL? Thanks and you check the data to see it It may be a numerical or dated datatype.

javascript - formatCurrency not working after AJAX call -

I am using the Format Currency jQuery Plugin to add a $ to some numbers I also have a table that uses an AJAX call to sort the table. When the page is initially loaded, then $ is appended correctly, but when I sort the table, the function is not called and my number is $ Is lost, is there anything like $ (window) .load for AJAX calls? I should mention that table sorting is also done through a plugin, so I do not want to edit it in the plugin files, in my main.js file I would like to add, just get the plugin updated. Even so far I have not been working with AJAX calls: (function ($) {$ (window) Load (function () {$ ('currency. -blue-apply'). FormatContinency ({roundToDecimalPlace: 0});});}) (JQuery); AJAX calls should be defined in the table of the callback function. If so, this is where you want to format your format () Call $ (window). Aload () does not come after AJAX call. Which plugin are you using to sort the table? If you tell us in the right dir...

android - How to use button in activity to jump to information in same activity? -

I would like to know whether it is possible to make a button in the activity to jump to scroll weave according to the information given below. Sort like: Button 1 button 2 button 3 paragraph 1 paragraph 2 paragraph 3 So when the button selects 1, you start the paragraph In 1 further, this does not have to scroll down to user relevant paragraphs / information or to start a new activity. (To move related information on the same page as many pages with titles at the top on the page.) OK, I have tried sofar: Last View Routeview = Inflator.In Flat (R. Late Fragment_SNnex, Container, False); Button Button = (Button) rootView.findViewById (R.id.Button1); button.setOnClickListener (New OnClickListener () {public void onClick (final scene v) {mScrollView = (scrollview) rootView.findViewById (R.string.TextView1); mScrollView.smoothScrollTo (R.id.TextView1, 0);}}) ; Then I get this error: 11-05 09: 28: 43.722: E / Android time (30741): java.lang.NullPointerException 11 - 05 0...

javascript - How to upload several files into different servers at a same time using html -

In my HTML form, I'm uploading several files to the server: & Lt; Form action = "$ {uploadUrl}" method = "post" encrypt = "multipart / form-data" & gt; & Lt; Input type = "file" name = "myFile" multiple & gt; & Lt; Input type = "submit" value = "submit" & gt; & Lt; / Form & gt; However, I want to add a condition to the size of the uploaded file. If the file is less than 1 MB, then I want to upload it to a different uploadUrl and if it is larger than that, then I would like to upload it to another URL. How can I achieve this? When I upload many files at the same time, it becomes even more difficult.

javascript security concern (jQuery DataTables) -

I am creating a web application for presenting data to our team and our customers in datatyla. When a customer is logged in, I want to hide all the data except for all of them. Some lines, some columns, when the team is logged in, I want to show all the data. If I create a page and hide the content based on the log in using the DataTables columnss.visible options, then the customer will just open the browser's developer tool And can be able to modify JavaScript, so that all hidden data can be shown? If this is true, then leave me the server before ( Json via AJAX )?

hql - Setting the sortorder using hibernate -

I am working on Spring-MVC I am using Hibernate as an ORM tool. The table in which there is a column called 'note order', so for any CRUED operation, the order of data in the database is managed by the note order. Question: After any CRUD operation, I want to start the Notarder with 1 and I want to increase it till the end of the table. How do I use hibernate queries I did something similar, find any I am posting the code below for reference. I function returns a list. @ Override public list & lt; Notes & gt; ListNotesBySectionId (Int Sected, Individual) {int personid = person.getId (); If (session == zero) {session = this.sessionFactory.openSession (); } And {session = this.sessionFactory.getCurrentSession (); } Query query = session.createQuery ("n.person1.id =: id and n.sectionid =: n.noteorder by sectionid order"); Query.setParameter ("id", personid); Query.setParameter ("sectionid", sectionid); & Lt; Notes & gt; Note...

Share xaml resource among multiple buttons in c# -

I am developing a photo editing application to the surface of the window SDK are many resources I have in my xaml Meri Sis file In, I want to create resources similar to many buttons content. But only one button can use resources at the same time. Processing: & gt; Grid x: Key = "EraseButtonImage" background = "transparent" Vrtiklelinement = "center" height = "38" width = "38" & gt; & Lt; Grid.RowDefinitions & gt; & Lt; RowDefinition height = "0.25 *" / & gt; & Lt; RowDefinition / & gt; & Lt; RowDefinition height = "0.25 *" / & gt; & Lt; /Grid.RowDefinitions> & Lt; Grid.ColumnDefinitions & gt; & Lt; Column width = "0.25 *" /> & Lt; ColumnDefinition / & gt; & Lt; Column width = "0.25 *" /> & Lt; /Grid.ColumnDefinitions> & Lt; Path x: Name = "Path" Stretch = "fill" = "{dynamic re...

javascript - Mysterious "undefined is not a function" -

I am pulling my hair to try to solve this error, it creates an uncheck type error Is doing: there is no undefined function : trange [abs] [i] = benton (E1, z1, pa1, pI_pot, pz2, PA2); Here's my job: Function Benton (e1f, z1f, a1f, I_potf, z2f, a2f) {// My content BENTON_return = (( A1f / tu) / (z1f * z1f) * (pringlow [q] + bzz * cz [n]); Return BENTON_return; } It is, who has not shed any light on this issue. I know that the question has been asked before the variation, but I hope the general example of this error will be some use for other people who are learning JS. Any input would be appreciated. update In the interest of clarity, here are some codes which hopefully will put this problem in better context: Function Dreamweaver () {"strict use"; ... transform = new array (1); For (i = 0; i & lt; trange.length; i = i + 1) {trange [i] = new array (MAXE); // Create a new 2-D array} ... i = 0; Do {e1 = tenerg [i]; Trans [AB] [I] = Benton (E1, G1...

.net - Alias uppercasing with Dapper -

मेरे पास OracleConnection पर नवीनतम क्वेरी है (नवीनतम odp.net.managed पैकेज)। const स्ट्रिंग sql = @ "MyCol का चयन करें, MyCol द्वारा T समूह से गिनती (1) गणना करें ; गतिशील [] पंक्तियाँ = डीबी । SQL (एसक्यूएल) .ओएआरआरए (); यह ठीक चलाता है, हालांकि परिणामस्वरूप गतिशीलता को COUNT नाम से दूसरी संपत्ति है। क्यूं कर? मैं इसे कैसे ठीक कर सकता हूं? दोहरा उद्धरणों में आपका उपनाम दोहराएं और ओरेकल आपके द्वारा निर्दिष्ट किए गए मामले में जो भी हो। const स्ट्रिंग sql = @ "MyCol चुनें, गिनती (1)" "गणना" "टी समूह से" MyCol ";

javascript - Chart plotted with inverted fill -

Image
I'm getting strange behavior in my chart. When I am plotting a partial chart, the blue fill has been reversed like the image below. The monthly chart is all right. Chart Code var data 2014 = []; Var result = [[[1388534400000, 120371436.81027323], [1356998400000, 187385608.24066913]]]; Var p = 1; Var i = 0; For (i = 0; i and lt; results; lb; i ++, p ++) {data2014.push ({label: "received", data: results [i], xaxis: p}); } Var dataMaxSplines = (New Date (New Date). GetFullYear () + "/ 1/1"). GetTime (); Var graficoTipoSpLines = {Series: {splines: {show: true, stress: 0.19, lineview: 1, fill: 0.4}, number: {radius: 2, show: true}, shadow size: 2}, grid: {hoverable: True, clickable: true, tick color: "# d5d5d5", border width: 1, color: "# d5d5d5"}, color: ["# 00508f", "#F 47920"], xaxes: [{mode : "Time", Tick: [1, "year"], tick: length: zero, color: ["# 838383", "# 838383...

javascript - Transitioning "width"property while DOM is changing -

I want to make a transition to the width of a container, which is equal to the breadth of the container width and content by dom Changing Here is a link Ward by code: var container = $ (". Container"); Var nav = $ (". Nav"); Var menu = $ ("menu"); $ (".sth1") (function () {nav.detach (); menu.appendTo (container); menu.show ();}); $ ("Button") click (function () {menu.detach (); nav.appendTo (container);});

c# - Set request Content-Type on WinRT HttpClient -

I am developing a Windows 8.1 store app with C # and .NET Framework 4.5.1. I am trying to make a POST on a REST API but I get an unsupported media type with this code: public async works & lt; HttpResponseMessage & gt; Post (string url, string jsn content) {Uri Resource Yuri; Resources URI = Valid URI (URL); HTTP Client HTTP Client = New HTTP Client (); HTTPRPS Pensions Message Response = New HTTPRPS Pacemases (); HttpRequestHeaderCollection Header = httpClient.DefaultRequestHeaders; Try adding the User Agent to the Header Header (Header. User Agent, Trainee Perez Ad (_User Agent)). User Agent. Perseid (_user agent); // Add content-type and content-length header headers. accept. Add (New HttpMediaTypeWithQualityHeaderValue ("application / json")); Feedback = Wait httpClient.PostAsync (resource URI, new HTTP string content (JSN content)); Return feedback; } If I change this line: feedback = wait httpclient.PostAsync (resource URI, new HTTP string content...

php - Take value from array which is in array -

इस सवाल का पहले से ही एक उत्तर है: 2 जवाब मुझे यह यूआरएल मिल गया है : तो मुझे इस तरह सरणी मिल जाएगी: [identifiers] = & gt; Array ([mc] = & gt; Array ([nick] = & gt; name1) [cs] = & gt; ऐरे ([निक] = & gt; नाम 2 [पासवर्ड] = & gt; mypass)) मैं वैल्यू name1 कैसे ले सकता हूं और वैरिएबल $ mc_name में डाल सकता हूं? यह एक साधारण सरणी है जिसमें अन्य सरणी शामिल है ताकि आप केवल शामिल एरे के लिए एकाधिक अनुक्रमित निर्दिष्ट कर सकें: $ mc_name = $ _GET ['identifiers'] ['mc '] [' निक ']; यह कैसे काम करता है इसे समझने के लिए पहले की तरह एक चर में प्रत्येक सरणी असाइन करने की तरह लगता है: $ identifiers = $ _GET ['identifiers'] ; $ Mc_array = $ identifiers ['mc']; $ Mc_name = $ mc_array ['निक']; जो अनिवार्य रूप से एक ही बार एक ही बार ऐसा करेंगे, बिना कई चर और एरे को निर्दिष्ट करने की आवश्यकता होगी।

Send additional data to Java server-side using Dojo file upload client-side -

When uploading files with dojo, I need to send additional data to server side. How do I do it? I am using the Dojo file uploader's upload method. My Javascript code: function (uploader), file list, dom, on, carousel, content pen, swap view) { Dojo.ready (function {var form = dojo.byId ("myForm"); var Uploader DDO = dojo.byId ("Uploader"); Up = New Uploader (Upload), Name: 'uploaded file [ ] ', Url:' / testserver / rest-services / submitForm ',}). Place (uploader); and my server side code: @ path ("/ submitForm") @ POST @Consumes ( "Multipart / form-data") @ products ({MediaType.TEXT_HTML, MediaType.APPLICATION_JSON}) Public Response Upload File (MultipartFormDataInput Input) {string filename = ""; Maps & lt; String, list & lt; InputPart & gt; & Gt; FormParts = input.getFormData map (); I recommend using Apache file upload here because it Too many In my implementation of simpli...

javascript - jQueryMobile - Scroll to a position onLoad -

In jQueryMobile, on page load, I want to scroll to a given position. I know how to do this in classic jQuery, but there is an auto-scroll top on page load in jQueryMobile. I tried to: $ (document) .ready (function () {$ .mobile.silentScroll (1000);}); This does not work My page remains blocked at the top of the page. However, if I click on the link with "code" onclick = "$. Mobile.silentScroll (1000)" " then works perfectly! I want to scroll to page load on yposition! ======= Edit ============ After the suggestions of White Raven and Omar, I Trying to do this: $ (document) .delegate ("# pagePkmn", "pageinit", function () {$ .mobile.silentScroll (1000);}); or this: $ (document) .one ("Page Container Show", function () {$ .mobile.silentScroll (1000);} ); But still no effect ... Thanks for your attention. pageinit is recommended. === EDIT === You can always use the ghetto: setTimeout (f...

json - Aggregating array of values in elasticsearch -

I need to collect an array as follows Two document examples: city array to know all city to traveler Code "has gone in: I want something like this: {" passenger ": {" name ":" patrick "}," cities ": {" sapolo ": 2, "Total": 3}} Where total cities is the length of the array zero, II "Droodgeeniro": 2, "Curitiba": "Total" Accumulation of words and try yoga Minister, but could not output the desired output. Document structure can be changed, so if something like this will help me, I would be happy to know " Cities were posted above In the document, "There is a Jason array, it is a Jason object if there is a possibility to change the document structure Then I will replace cities in the form of an array of objects in the document Example document: Everybody: [{"name": "sopolo" "visit_count": "2",}, {"n...

Apple receipt validation using Scala/Java -

I have a scanned back where I want to validate the in-app purchase receipt, without trusting the remote App Store service , Which offers additional delays and additional points of failure. Therefore, I want to get locally accepted PKCS # 7 signature included in the receipt. There are some documents on this topic on the link below the apple, but it has got some trouble trying to map the Java API - API API, and I have to map the Java security API. Code entry from 1-4: bio * b_p 7; / * PKCS # 7 Container (Receipt) * / PKCS 7 * P7; / * And production of verification. * / Bio * b_x50 9; / * Apple root certificate, raw * / X509 * apple; / * In the data and its OpenSSL representation * / / * Root certificate for chain off trust verification * / X509_STORE * store = X50 9_STORE_new (); To capture / * Receipt payload * / BIO * b_out = BIO_new (BIO_s_mem ()), start the B_out as output bio; / * Capture the contents of the receipt file. * / P7 = d2i_PKCS7_bio (b_p7, null); Apel = D2 E...

javascript - Get all messages by label from gmail account -

I want to make a reporting tool based on export from the google gmail API. So the main thing I want to do is to get all the inbox messages from my account through labels in Gmail, and display it in custom custom form in my custom e-mail document. I want to do it with php or javascript I did some research in Google API, but did not understand how to start working, where? I think it would be nice if JSON data can be obtained from this URL How can I, which GS Libs need to include me, how to work with Google AP? I have never worked with it before, can someone show me some simple full examples? Here is a Google API JavaScript client loading, loading Gmail APIs, and labels and inbox messages Showing the way to call two API methods for the list of For every API call, there are a lot of JavaScript code snippets in the GMI LAPI docs so that you can add whatever code snippet you want to get the structure of the code given below to whatever you want. and lieutenant ;; DOCTY...

javascript - Link and hover not working in jumbotron -

I am using the bootstrap framework and what I am trying to do, Applying: Jammotron {Location: Relative; Padding: 60px 30px; Margin-down: 30px; Color: #fff; Text align: center; Text-shadow: 0 pixels 1 px 3px rgba (0, 0, 0, 0.4), 0 px px30px rgba (0, 0, 0, 0.075); Background: Linear-Slope (45deg, # 020031 0%, # 6D3353 100%) Scroll 0% 0% Transparent; Box-shadow: 0 pixel 3px 7px RGBA (0, 0, 0.2) inset, 0px-3px 7px rgba (0, 0, 0, 0.2) inset; } .jumbotron: {After content: ""; Display area; Status: Completed; Top: 0 pixels; Correct: 0 pixels; Bottom: 0 pixels; Left: 0 pixels; Background: url ('css / bs-docs-masthead-pattern.png') repeat scroll center center transparent; Opacity: 0.4; } The problem I am experiencing is that when I type in position: absolute property in jumbotron: after all Link and hover (but I can get an image on the shield) property remains present. And when I do not use it, I do not get an image (but the link and hover property works). Is t...

java - How to access form parameters using RestEasy REST.Request? -

मेरे पास मेरा फ़ॉर्म नीचे है: & lt; form id = "form1" name = "Form1" & gt; & LT; fieldset & gt; & LT; ol & gt; & Lt; li & gt; & LT; लेबल & gt; परियोजना: & lt; / लेबल & gt; & Lt; चुनें आईडी = "प्रोजेक्ट" नाम = "प्रोजेक्ट" आवश्यक & gt; & lt; / select & gt; & Lt; / li & gt; & Lt; / ol & gt; & Lt; इनपुट प्रकार = "बटन" onclick = "अनुरोध ();" & gt; & Lt; / fieldset & gt; & Lt; / प्रपत्र & gt; मैंने इनपुट बटन के onclick ईवेंट पर एक अनुरोध () फ़ंक्शन बनाया है। मैंने इनपुट प्रकार को बटन में बदल दिया क्योंकि मैं पृष्ठ को पुनः लोड नहीं करना चाहता था। एक कस्टम बाकी अनुरोध बनाने के लिए अनुरोध फ़ंक्शन RestEasy REST.Request वर्ग का उपयोग करता है। मैं REST.Request ऑब्जेक्ट पर setEntity इस्तेमाल किया है, लेकिन मुझे नहीं पता है कि सर्वर पक्ष पर उस जानकारी का उपयोग कैसे करना है। नीचे अनुरोध फ़ंक्शन है: अनुरोध: फ़ंक्शन () {var ...

javascript - promise js function call another function in same class -

इस सवाल का पहले से ही एक उत्तर है: 5 जवाब मैं एक कस्टम लॉगर और मैं एक स्क्रीनशॉट लेने के बाद जो भी करने की कोशिश कर रहा हूं, मैं छवि नाम को लॉग करने के लिए अपने लॉगर फ़ंक्शन को कॉल करना चाहता हूं। जब मैं वादा करता हूं तो यह कक्षा में सभी कार्यों को नहीं देख सकता module.exports = {takeScreenshot: function (driver, filename) {driver.takeScreenshot ()। फिर ( फ़ंक्शन (डेटा) {name = filename} 'ss.png'; var screenshotPath = 'results / screenshots /'; fs.writeFileSync (screenshotPath + name, डेटा, 'base64'); वापसी स्क्रीनशॉट पाथ + नाम;})। फिर (फ़ंक्शन (e) {this.logger (e, "true");}); }, लकड़हारा: फ़ंक्शन (लॉग, स्क्रीनशॉट) {isScreenshot = screenshot || "असत्य"; Var obj = {}; अगर (isScreenshot == "true") {obj [testName.replace (/ / g, '')] = {लॉग्स: "", स्क्रीनशॉट: "& lt; img src = \" "+ + + +" \ "class = \ "परीक्षण-आईएमजी \" / & gt; " }; logger.push (obj); } ...

sql server - freetds and pyodbc failing to connect -

I am currently a Microsoft set up a connection to SQL Server from a Linux box I FreeTDS Linux box and pyodbc set Have done I have installed the following files: /etc/freetds/freetds.conf [sqlserver] host = & lt; IP Address & gt; Port = 1433 TDS version = 8.0 client charset = UTF-8 ~ / .odbc.ini [sqlserver] Description = FreeTDS MSSQL driver = FreeTDS Server name = & lt; Like IP & gt; Database = Report TDS_Version = 8.0 /etc/odbcinst.ini [FreeTDS] Description = FreeTDS MSSQL driver = / usr / lib / x86_64-linux -gnu / ODBC / libtdsodbc.so Driver64 = /usr/lib/x86_64-linux-gnu/odbc/libtdsodbc.so setup = /usr/lib/x86_64-linux-gnu/odbc/libtdsS.so Setup64 = / usr / lib /x86_64-linux-gnu/odbc/libtdsS.so UsageCount = 1 CPTimeout = CPTimeToLive = DisableGetFunctions = DontDLCLose = ExFetchMapping = threading = FakeUnicode = IconvEncoding = trace = tracefile = TraceLibrary = when I Trying to run Tsql -S sqlserver -U user-P password, I get the following erro...

php - Email $_FILES['name'] as list -

After a user uploads multiple files, I display files uploaded to the screen. I am also trying to include the same list in an email body. Everything works perfectly, including displaying each file on the screen, leaving the $ message, only lists the last file name in the array. Any ideas ?? & lt ;! DOCTYPE html & gt; & Lt; Html & gt; & Lt; Top & gt; & Lt; Title & gt; Uploads & lt; / Title & gt; & Lt; / Head & gt; & Lt; Body & gt; & Lt ;? Php if (isset ($ _ POST ['ship-it']) and $ _POST ['ship-it'] === "yes") {$ yesupload = $ _POST ['ship-it']; Preg_match ("/ yes /", "". $ Yesupload. ""); ($ I = 0; $ i & lt; calculation ($ _ files ['tray'] ['name']); $ i ++} {$ filename = $ _FILES ['tray'] ['name'] [ $ I]; $ S_name = $ _FILES ['tray]] [' tmp_name '] [$ i]; Move_uploaded_file ($ s_name,' https://example.com/i...

qt - How to unset all custom QStyledItemDelegates from QListView? -

I have set some custom reps on my list. When I reset the model QListView :: reset (); but delegates are not reset. Is this a bug, if not, how can I reset all the delegates? To change all the rows and set the delegate to nullptr , but this is not a proper solution. A map of the custom row delegates Qt, but it does not acces to it. Zero QAbstractItemView :: setItemDelegateForRow (int row, QAbstractItemDelegate * Representative) I need to use, so I have a list myself Maintaining ended and unset them all. As a representative with a nullptr ;

pagination - Django: Paginate by sorted SerializerMethodField -

मुझे जेसन डेटा को paginating के साथ एक मुद्दा रहा है जो कि rest_framework कोड> SerializerMethodField । इससे पहले कि मैंने अपनी सूची दृश्यों में पृष्ठांकन जोड़ना शुरू किया, मेरे पास एक संदर्भ वैरिएबल में सॉर्ट किए गए जेएसएन डेटा था: वर्ग ExampleList (ListView): ... def get_context_data (स्वयं, ** kwargs): संदर्भ = सुपर (ExampleList, आत्म) .get_context_data (** kwargs) संदर्भ [ "उदाहरण"] अनुसार क्रमबद्ध = (ExampleSerializer (प्रस्तुतियाँ, कई = सच, संदर्भ = { 'अनुरोध': self.request}) .data, कुंजी = लैम्ब्डा x: x.get ("score"), रिवर्स = ट्रूक्स) रिटर्न संदर्भ ... यह पूरी तरह से काम करता है, क्योंकि लैम्ब्डा फ़ंक्शन ने स्कोर को पकड़ा था, और इसका आदेश दिया था , बिल्कुल कैसे सॉर्ट किया गया () को काम करना चाहिए समस्या पृष्ठ पर अंक लगाना शुरू हुई मैंने कुछ दिनों के लिए शोध किया है, और जेसन डेटा द्वारा पाउंड करने के लिए कोई भी तरीका नहीं है जो मुझे मिल सकता है केवल क्वेरीसमूहों द्वारा जब मैं paginating, यहाँ मेरे दो Serializer वर्गों रहे हैं शुरू कर...

visual c++ - Intellisense error when using `__FUNCTIONW__` -

मैं __ लाइन __ , __ FILEW __ और __ फ़ंक्शन W__ का उपयोग कर रहा / रही हूं। एक कस्टम अपवाद वर्ग के लेखन और कार्यान्वयन में सहायता करने के लिए मैक्रोज़। जैसा कि अच्छी तरह से ज्ञात है, वे स्वचालित रूप से लाइन नंबर, स्रोत फ़ाइल नाम और कोड में स्थान के समारोह का नाम प्रदान करते हैं, जहां से उन्हें कहा जाता है। इसके अलावा, जैसा कि मैं विशेष रूप से यूनिकोड में काम कर रहा हूं, मुझे ... w स्ट्रिंग परिणाम में विस्तार करने वाले विस्तृत वर्ण संस्करणों का उपयोग करना चाहिए। उदाहरण के लिए: CEString (CEString :: ERROR_INDEX_OUT_OF_BOUNDS, __LINE__, L "प्रारंभ सूचकांक प्रारंभ सूचकांक की तुलना में छोटा है", एल "इंडेक्स बाउंड्स से बाहर", __FILEW__, __FUNCTIONW__, L "CString"); जहां CEString एक कस्टम अपवाद वर्ग है जिसका कन्स्ट्रक्टर दो पूर्णांक तर्कों को लेता है और फिर उस त्रुटि का पता लगाने और उसका वर्णन करने के लिए पांच सरल चौड़ी स्ट्रिंग्स लेता है। / P> मेरे पास हैडर फाइल iostream , नया और crtdefs.h ठीक से शामिल है। दस्तावेज़ से उत्तरार्द्ध को ...