Posts

Showing posts from June, 2014

branch - How can I get a list of files in a git commit? -

इस सवाल का पहले से ही एक उत्तर है: 23 उत्तर मैंने कुछ फ़ाइलों को प्रतिबद्ध किया है मास्टर पर और कुछ स्थानीय शाखाओं को मास्टर शाखा के साथ विलय कर दिया। मास्टर शाखा पर प्रतिबद्ध फाइलों की सूची कैसे प्राप्त कर सकता हूं? मैं मास्टर शाखा पर प्रतिबद्ध फाइलों की सूची कैसे प्राप्त करूं? git ls-tree की सूची एक पेड़ ऑब्जेक्ट डिफ़ॉल्ट रूप से, यह ट्री ऑब्जेक्ट में संदर्भित प्रत्येक ऑब्जेक्ट की अनुमति, प्रकार, हैश, और संबंधित फ़ाइल नाम सूचीबद्ध करता है, लेकिन आप इसे केवल को प्रिंट करने के लिए - केवल -नाम विकल्प का उपयोग करके बता सकते हैं । git ls-tree --name-only master संपादित करें (धन्यवाद एलेक्स): आप भी शायद चाहते हैं उपशीर्षक (उदाहरण के लिए, आपके प्रतिबद्धता के शीर्ष वृक्ष वस्तु के अंदर "नेस्टेड" पेस्ट ऑब्जेक्ट्स) में recurse करने के लिए -r फ्लैग का उपयोग करें। git ls-tree -r --नाम -मास्टर मास्टर

spring login by social account -

Is it possible to allow users to apply to use their social account in Spring Social? I think users can add their account to social account in the user account, if there is a user who is not registered in the application and we want to allow him to enter the application, then it It is not possible because we made user connection after creating the connection replayer. Do you have the definition of @Bean (name) = "ConnectionFactoryLocator") public Knekshnfinetrloketr Knekshnficrllaoketr () {ConnectionFactoryRegistry registry = new ConnectionFactoryRegistry (); Registry.addConnectionFactory (New FacebookConnectionFactory (facebookId, facebookSecret)); Return Registry; } @Bean public UsersConnectionRepository SocialConnectionRepository () {new SocialConnectionRepository return (data source, UserRepository, connectionFactoryLocator ()); } Where the user stores example is for spring data JPA stores / write to your users in DB to read in the table. Then you can us...

Javascript only when cursor focus within textbox -

Is it possible to run a JavaScript function when cursor focus is in a specific text? I want to do one thing on the keypress of the enter key, however I do not want to place this event listator normally on the page, but only when the cursor contains Textarea I have (id postcontent ) As an example, the function I am using is: function OnEnter () {if (characterCode == 13) {console.log (press "press"); }} Just as a start when I issue Focus ... In my settlement I also have jQuery. div1.onfocus = function onEnter () {if (charactercode == 13) {console .log (press "press"); }}

c# - The operation is not valid for the state of the transaction. Something wrong with TransactionScope -

I have applied the transaction scope in my application. But I got the following error Operation is not valid for transaction status. Here is my code try {using (System.Transactions.TransactionScope scope = new) system. Transnaces. TransactionScope ()) {Update Database 1 (); UpdateDataBase2 (); // This line throws the scope. Complete (); Both databases are on the same server (Server 1) (running MSDTC service). My application is on a different server (Server 2). I googled around and found two posts with the same problem. and I found that there are 2 main reasons for my problem (1) MSDTC service and (2 ) Transaction scope can not be used to open the connection. But when I test the same scenario in the local area it works, the work of the above 2 possible reasons is very good.I do not know what happens when I host them? > Help me.

javascript - Testing Angular Controller As with Jasmine -

I'm new to Jasmine / angular testing and I'm trying to test a controller. The control code is given below (function () {'strict use'; angular.module ('app'). Controller ('action events'), action events CTRL. $ Injection = ['$ log', 'action events']; function action events citation ($ log, action events) {/ * jshint is valid: true * / var vm = this; // getActionEvents (); vm.ActionEvents = [{"Details" : "Second", "Type": 4, "Detroit": "2014-10-17T00: 00: 00", "Hanotified": True, "Status": 0, "User": zero, "id" : 6}, {"Details": "Third notification", "Type": 2, "Date Ridge": "2014-10-18T 00: 00: 00", "Hanotified": True, "Status": 1 , "User": blank, "id": 7}]; vm.init = getActionEvents (); function getActionEvents () {var userId = 1; ActionEvents.get (userId...

nginx - Return html file depending on parameter -

I want the NGN URL to give different HTML based on parameters: url I want to send /var/www/mysite/pages/page1.html for browser file - /var/www/mysyte/pages/page2.html and I want to see the user URL in my browser is it possible? This should work for you (page1.html along with fallback requirement): server {root / var / www / mysite / pages; Place / blog {rewrite ^ (. *) $ / Page $ arg_page.html break; Try_files $ uri / page1.html; }}

php - Matching all strings of the format Names#Age#Gender#City -

I have some strings in the string, such as format name # , or name # or name # age # gender or name # age # gender # city I just want to match that string It satisfies name # age # gender # city # . I want to regex this cron job for the job I will be using in this question Select text_message from incoming_sms where text_message REGEXP '^ \ w + (? : $ \ W +) + $ My regex ^ \ w + (?: $ \ W +) + $ does not seem to work. How can I fix my code name # age # gender # city okay ?. ^ ([^ # \ n] + #) {3} [^ \ n #] + $ Try it out. See the demo.

php - How to calculate total hours and minutes in a week of an employee -

Image
I ask to get an employee's date and time from the database. Then I am calculating the total hours and minutes working in one day. At present I am stuck at a point where I need to calculate the total hours that an employee has worked in one week. Please help, how do I calculate total hours and minutes in an week by an employee. Code & lt; Php $ Sql ​​= "SELECT * from records where record_state = 'expired' and record_crited & gt; DATE_SUB ('' 2014-10-19 ', 7-day interval)"; $ Query = $ db- & gt; SELECT ($ sql); ? & Gt; & Lt; Width of table = "39%" range = "1" & gt; & Lt; Tbody & gt; & Lt; TR & gt; & Lt; Td style = "padding: 8px;" & Gt; & Lt; Strong & gt; Day & lt; / Strong> & Lt; / Td> & Lt; Td style = "padding: 8px;" & Gt; & Lt; Strong & gt; Total hours & lt; / Strong> & Lt; / Td> & Lt; / TR & gt;...

TriadicCensus JUNG 2.0 getCounts() returns negative value for motif 003 -

मेरे पास विभिन्न महानगर सड़क नेटवर्क के नौ निर्देशित आलेख हैं I जब मैं तीन मामलों में से तीन में TriadicCensus.getCounts (myGraph) का उपयोग करता हूं, तो नकारात्मक अंकों को 9 में से तीन मामलों में दायरे के लिए वापस भेज दिया जाता है। जैसा कि मैंने एपीआई से समझ लिया है कि getCounts विधि एक गिनती वापस करनी चाहिए, इसलिए मुझे समझ में नहीं आ रहा है कि यह कुछ नेटवर्कों के लिए नकारात्मक मान क्यों दे सकता है। क्या मैं त्रैरासिक जनगणना वर्ग के बारे में कुछ ग़लत समझ रहा हूं? लौटाई गई सरणी 1-आधारित है, 0- आधारित। मेरा अनुमान (अपने ग्राफ को देखे बिना) यह है कि आप 003 के लिए गणना के रूप में इंडेक्स 0 की व्याख्या कर रहे हैं; सूचकांक 0 में मूल्य वास्तव में अर्थहीन है (प्रलेखन देखें:)

html - How can i center a div and fill it with other divs so that it fits all the resolutions? -

I'm building my website on the 1280 * 800 resolution computer and unless I use any other computer separately Until it works fine it resolves Please help me solve this problem. Use something like this: # iddive { Margin-left: auto; Margin-Correct: Auto; Width: 80%; // For example height: 80%; // for example} This will look the same on all offers. It will be split horizontally.

javascript - How to intercept error when expect fails? Jasmine and frisby -

I'm making a HTTP test with frisby.js which works on top of jasmine.js. I have also made some mongodibi objects to test against it. The problem is that when I want to clear these DB objects. When one of the expectations fails, I want to stop it and call my own cleanup function. This is what it means. Is then failed each test, I do not support does not afterEach function work properly will not be able to remove the objects tested dB Jasmine and Jasmine afterall or beforeAll So far That's why I have them today as made test This (function "with the correct userID and expect the return userform test", () {var innerUserId = userID ;. Frisby.create ( 'right userform must retrieve and return 200 when using a valid userID') .Get (url.urlify ( '/ API / userform', {id: innerUserId})) .expectStatus ( 200) .afterJSON (function (userform) {// If any of these fails, then the function will not run after. // I want to stop the error so that I can make sure ...

python - Passing different arguments to c# dynamic library -

I am using Pythonnet in CPython, and I'm able to install it import Any member in my C # code Public zero operations (Double Freak, Double Channel Space, Bull RifDbiller, Bull Ref02, Double Reconenter, Int Device Indand) {... // something done} If I try now (in Python): Double Import System , Int 32, Boolean Class. From the association import class to the action (double (3000), double (10), boolean (false), boolean (false), double (10) It always complains and says: type error: no method matching logic P> Why? Since the method is not static, you have an example of class inviting it, i.e. From the assembly import class obj = square () obj.Action (...)

database - How to know how much space on tablespace will the creation of an index take -

I have to create an index on a specific table space on the oracle database. I would like to know how much space would be in the area of ​​the table, So the pointer will be created, so I can assure that my tables are capable of dealing with this kind of index. dbms_space is a process in the package that will tell you the number of bytes that That will be allocated to the index segment (which is probably what you think if you are trying to decide that it will fit in your table space) and the number of bytes of that allocation that will actually be used. This process relies on data that is collected in the underlying table, however, if these figures are wrong, then the estimation of the process is also false.

ios - Custom Cell for UISearchController -

I'm trying (but not in) a custom style for a UISearchController Cell Defines it. By running the code below, EXC_BAD_INSTRUCTION error cell.textlabel? .text shows results in the line. Am I completely forgetting something here? function table view (table view: UITableView, cellularright indexPath index: NSIndexPath) - & gt; UITableViewCell {var cell = tableView.dequeueReusableCellWithIdentifier ("cell") as UITableViewCell! If (cell = zero!) {Cell = UITableViewCell (style: UITableViewCellStyle.Value1, reuseIdentifier: "cell")} if (tableView == self.searchDisplayController .searchResultsTableView?) {The data: AnyObject = self.searchResults.objectAtIndex (indexPath Krow) as AnyObject println ( "Search results: \ (data) as") cell.textLabel .text = data.valueForKeyPath ( "name")? String cell.detailTextLabel? .text = data.valueForKeyPath ("Placemark") as? String} return cell} If you are a cell dequeuing with the ident...

.net - Using SimpleInjector with NServiceBus to inject IBus Bus property -

मैं अपनी निर्भरता इंजेक्शन कंटेनर का उपयोग करके NServiceBus 5 से प्राप्त करने की कोशिश कर रहा हूं, और SimpleInjector , जो चुनाव के बारे में हमारी कंटेनर है एक तरह से NServiceBus बताने के लिए ibus बस {मिल; सेट;}। सभी ASP.NET MVC ApiControllers में संपत्ति (या कहीं और) एक कस्टम का उपयोग कर NServiceBusControllerActivator और NServiceBusDependencyResolverAdapter । हालांकि, हम SimpleInjector का उपयोग करना चाहते हैं, और इसमें कोई MVC अनुप्रयोग नहीं है, और हम बस को नियंत्रकों में सीधे इंजेक्शन नहीं करना चाहते हैं। नियंत्रकों को हल्के वजन होना चाहिए, इसलिए तर्क "सेवाओं" के अंदर है, जो बदले में बस। भेजें (संदेश) । आप कैसे पूरा करेंगे इंजेक्शन लगाने बस संपत्ति SimpleInjector का उपयोग कर? मैं जानता हूँ कि NServiceBus साथ SImpleInjector को विन्यस्त लेकिन वे सिर्फ एक साथ काम नहीं करते। जैसा कि आप पढ़ सकते हैं, मुझे और किजाणा ने एनएसआईएसआरबीएस के साथ सरल इंजेक्टर को एकीकृत करने के लिए एक पूर्ण समाधान के साथ आने की कोशिश की थी। किजाणा ने हालांकि समस्या (संग्रह...

sql - Find parent based on child table keywords -

I'm trying to get parents based on the matching keyword using a child's table: AssetKeyword ============ AssetID (int) KeywordID (int) I find the property with the entries in the table I'm trying to, for example keyword 3 and 4 and 5. I have tried subqueries and aggregates but my head can not get around it. Thanks for any help they have Friday ... This is not very dynamic, I think .. Choose AssetID, separate from AssetID, select KeywordID from AssetKeyword, where AssetID contains (*) = 3

Android webview I can't show -

I can not open this website in Android webview Web settings settings = mWebView.getSettings (); Settings.setJavaScriptEnabled (true); Settings.setUseWideViewPort (true); Settings.setSupportMultipleWindows (true); Settings.setAllowFileAccess (true); MProgressDialog = ProgressDialog.show (it, "Uygulama Yükleniyor", "... yükleniyor ..."); mWebView.setWebViewClient (New WebViewClient () { mWebView.setWebViewClient (New WebViewClient () { public boolean shouldOverrideUrlLoading (see WebView, string URL ) {view.loadUrl (URL); return true;} to see public void onPageFinished (WebView, string url) {if (mProgressDialog.isShowing ()) {mProgressDialog.dismiss ();}}}); mWebView.loadUrl ( "https: / /mobilogr.uludag.edu.tr/Login.aspx"); Please check as the Internet permission appear on your Android android; Yoga is permission android: name = "android.permission.INTERNET" / & gt;

undefined - Why is there an isNaN() function in JavaScript but no isUndefined()? -

Why is a isNaN () function in javascript whilst isUndefined () This should be written as: typeof (...)! = "Undefined" Is there an issue that I do not see? In my opinion this is actually ugly just isUndefined (testValue) . Usage case var === undefined works almost everywhere, Except for those cases, where either undefined is assigned to a value, or var is undefined. Due to such a ceremony can not be present, it is clear from the latter case. If var is undefined, then it is assumed that calling the function isUndefined (var) will result in ReferenceError . Although the introduction of a new keyword, e.g. Asunderfinder Verge can solve this problem. But despite being valid, both of the above cases are poor use of Javascript, which is why I believe that such a keyword does not exist.

linux - My Ubuntu gives a "process exited" rather than segmentation fault -

I am currently studying return-oriented programming and I only have basic knowledge of daily use for Linux. I am using Ubuntu 32-bit Server 12.04. While I am disabling the ASLR and trying to make a segmentation mistake on the program (just inserting it as 400 A), it only shows me the following in gdb: [inferior 1 (process 1965) Code 015] Edit: The code is simple: #include & lt; Stdio.h & gt; Int main (int argc, char * argv []) {four buff [256]; Mempie (Buff, AGRV [1], Stellen (RGR [1])); Printf (buf); } When I do it on the command line, it does not show me anything. How do I create it, which gives me a split error? Also, does anyone know that this is the appropriate OS version for running CTF problems? Thank you.

android - click on image that has a layout above -

Why can not I click this image? I am trying for a little while but this does not work. This idea is to set up a ScrollView with a View Pager, which is making clickable but I am not able to do this. So I started with this simple example - and also code @TargetApi (Build.VERSION_CODES is not able to do this GINGERBREAD) @ Override Protected Zero (Bundle Saved InstantState) {Super. Contents (Saved Instantstate); SetContentView (R.layout.activity_main); Final Imageview ivView = (ImageView) findViewById (R.id.test); ivView.setOnClickListener (New View.OnClickListener () {public void See onClick (v) {Toast.makeText (MainActivity.this, "toast", Toast.LENGTH_SHORT) .show ();}}); } layout file & lt; Fremleaut xmlns: android = "http://schemas.android.com/apk / res / Android" xmlns: device = "http://schemas.android.com/tools" Android: layout_width = "match_parent" Android: layout_height = "Match_parent" tool: Reference = ...

c++ - implemenation of sets using bits -

I'm reading about the set set as bits in the following location Sequence SetAsBitVector: Public Set {typedef unsigned int Word; Enum {wordBits = bitsizeof (word)}; The & lt; Word & gt; Vector; Public: Set-up vector (unsigned integer); // ...}; SetAsBitVector :: SetAsBitVector (unsigned int n): set (n), vector ((n + wordBits - 1U) / wordBits) {// here question? For (unsigned int i = 0; i To insert any item in the set, we have to change the appropriate bit in a bit array. The ith bit bit bit of bit array is mod w of the word roof (i / w). Thus, the insertion function is implemented using the beetwold or operation so that it is shown in the above program. Although this is slightly more complex than the SetAsArray class for this operation, the time to run for this operation is still (1). Since w = word bits have the power of two, it is possible to change the division and modulo operations, and with%, such shifts and masks: vector [items] changes | = 1 & lt; ...

PHP PDO SQLite3 issue using "WITH" clause -

I am working on a PHP project where I have to execute the query in the SQLite3 database. I use PHP PDO for this. I am doing all my questions except for any one act as a charm. What I'm talking about is a recursive SQLite CTE. Here is a statement: with data (select1as level, id, number_of_ processor, nop, processor_type devices from pt union all select levels + 1, Data from ID, NOP, PT, Data Inner Genomes on On (Data.ID = DID) where Level & Lt; NOP) Select from ID as Processor_type ID, Level, by PTR ID, Level I have "SQLite Manager" (Firefox extension) Tested the statement where it works but not with PDO rather work with php_sqlite3.dll. My environment is configured like this: Windows Server 2012 R2 Apache website 2.4.10 PHP 5.4.28 for Windows The related PHP class is: Use \ PDO; Use \ PDOException; Classic SQLiteDBConnector {Private $ dbname = NULL; Private $ db = null; Public function __ composition ($ dbname) {$ this- & gt; Dbname = $ ...

DrawImage in canvas with Node.js -

I'm actually trying to get the data of each images but to do this, Need to pull in The node interpreter says that my image is not fully loaded, but I do not know why. ctx.drawImage (IMG, 0, 0, IMGWith / 4, IMG. / 4High); ^ Error: The given image has not been able to complete the loading on the function. Check img Load image (c: \ *** \ SearchWong image. JS: 44: 6) in C: \ *** \ Searchwang image. JS: 26:25 at FSGS: 271: 14 Object. Complement (fs.js: 107: 15) Does anyone know what is wrong with my program because I searched but I could not find an address, here is my code: var fs = is required ('FS'); Var path = requirement ('path'); Var canvas = is required ('canvas'), ImageCanvas = Canvas.Image; Var dir = 'images /'; Function checkIMG () {} module Exports = checkImg; Var img = new canvas Image; CheckIMG.BrowseFolder = function {fs.readdir (dir, function (err, files) {If (mistake) is a mistake, then files.forEach (function {fs.readFile ...

How and where is the OWIN pipeline run in ASP.net 5? -

Given that the oven pipeline is currently pure on traditional ASP.NET pipeline, where and how integrated with ASP? Is it implemented as an ASP.NET Header / Module? There is a class marked with OwinStartupAttribute in my project, but what is the specialty and what is the opportunity to look for it? It all starts with the assembly Microsoft. Owen.Host The System Web PreApplicationStartMethod attribute has been applied to this assembly, which means that code in this assembly is accurate even before class, Application_Start. This class adds an HTTP module (OVIN HTTPS module) in the IIS integrated ASP.NET pipeline. It detects the HTTP module startup class, and plugs the Owin pipeline into the IIIS pipeline. When the final owin middleware forwards in the pipeline, then the IIS pipeline continues.

python - Why is very time consuming to transform a pandas-series with pandas-datetime values into a list? -

I had a panda data frame with the date given in the strings as a column (xmpell "2014- 10- 17 ". I wanted to keep these values ​​as python date objects. I decided to make this change in two steps: df.col = pandas .to_datetime (df.col) Df.col = df.map (lambda x: x.date ()) before the first stage, after the first phase and after the second phase The same operation to check The contents of the used column: df.col.tolist () [: 5] I have seen that when the date is string or datetime.date On the contrary, when the date was given in the form of the code pandas.datetime , the operation was quite slow. Can anyone explain this behavior?

process - Run External Programms in Java -

I want my Java program 3 to run external programs but they should not run in parallel. Program 1 should make a file, this file is input to program 2, should be input for output program 3 for program 2. And the Java program should not end, when the external program ends: This is my code, but it does not work. Can anyone help me out! boolean var = true; ProcessBuilder processbilder = new processbender ("CMD", "/ c", "start", "c: \\ user \\ rosana \\ desktop \\ riaas \ wins \ riss3g64", "c: \\ user \\" Rosa \\ Desktop \\ out.cnf "," C: \\ User \\ Rosa \\ Desktop \\ pruv.txt "); Process process = process builder. Start (); While (program.available () & var) {ProcessBuilder processBuilder3 = new processbender ("CMD", "/ c", "start", "c: \\ user \ \ rosanna \\ desktop \\ \ riss \\ Winlibs \\ riss3g64 "," C: \\ user \\ Rosa \\ Desktop \\ out1.cnf "," C: \\ user \\...

.net - AddRowEvent in DataGridView Adding Extra Row -

I have an infinite DataGridView. I'm trying to finish the extra line being added at the end. I have set AllowUserToAddRows to false. // This code is adding more than two rows to this.dataGridView1.AllowUserToAddRows = false; This.dataGridView1.Rows.Add (New DataGridViewRow ()); DataGridView1.NotifyCurrentCellDirty (true); DataGridView1.CommitEdit (DataGridViewDataErrorContexts.Commit); DataGridView1.NotifyCurrentCellDirty (wrong); I have this setup when users click on a line, they can add an additional line. . However, if I click on the correct last line, it will add two rows in it Private Zero addRowBelowToolStripMenuItem_Click (Object Sender, EventArgs e) {if (_selectedRow & lt; dataGridView1.RowCount - 1) { DataGridView1.Rows.Instert (_selectedRow + 1, 1); } And {dataGridView1.Rows.Add (); } DataGridView1.NotifyCurrentCellDirty (true); DataGridView1.CommitEdit (DataGridViewDataErrorContexts.Commit); DataGridView1.NotifyCurrentCellDirty (wrong); } " ...

angularjs - 'Unexpected token' in AJAX upload of multipart/form-data in angular.js 1.3.0 -

The following code for texture upload was working in angularjs 1.2.26, but when I got my web application 1.3.0 . HTML code & lt; Input file-model = "file" name = "file" type = "file" & gt; The file modem director App Directional ('file model', ['$ parse', function ($ paras)) {return {restricted: 'A', link: function (scope, element, ethers) {var model = $ parse (attrs.fileModel); Var modelsetter = model.Singgi; Element Bind ('change', function () {radius. $ Apply (function () {ModelSetter (field, element [0]. Files [0]);});}). $ ("Reset", function () {element.val (null);})}}}}}]); The content type will not work by selecting "Multipart / Form-Data" in Upload Function - 1.2.26. But with "undefined", there will be some magic in the form of an angle of content-type that it will work. var upload = function (textureUploadUrl) {var formData = new formData (); FormData.append...

microphone - Recording audio - too low loudness differences -

I am trying to record sounds from the microphone when something is happening (maybe someone is talking Or just moving things - basically anything is not just random noise) So far, my view has been recorded for 1-2 seconds, check whether the recording is "Anything Is passed ", if so, then I could record new 1-2 seconds Ikording did not pass the exam. Now my problem is test. What I am doing now is basically setting up a threshold, so it basically looks like this: for (uint32_t i = 0; i Unless I tested the application on a very weak microphone, all were doing good and good work. The problem is that on a civilization built into a microphone, background noise "loudness" (or more like, sample value) (which is not happening at all, is basically equal to 130), and when you speak, So far how far are you microphones, values ​​go up to 160-135 (up to now). But there is a difference, and you can cross the border. This is the fact that prices do not change with w...

java - How to Write exceptions into Log file...? -

I have used Spring MVC ... After sending the Sender Servlet, I'm getting the exception file in the log file ... I'm getting the error ... TCP / IP connection for Host 192.168.100.178, Port 1433 has failed. Error: "Connection timed out.Verify connection properties.Make sure that an instance of SQL Server on host is running and accepting TCP / IP connection on port.Make sure that the port in the TCP connection firewall I can not write in the log file ... Can anyone help? Thank you You can create your own custom exception, after catching all TCP / IP connection exceptions Is thrown away. Once your custom exception is thrown, you can just type the log in the file you specify.

Google Product Forums › Google Analytics › Number inflation issue in tracking referral and direct traffic to PDF files via the API -

I was hoping that you can help me with this. We are trying to track PDFs for a customer, but the one we are trying to capture is not a PDF link click (we are already fixing it!), But referrals for PDFs or Direct Traffic For example if PDF shows in Google search, we want to be able to track it, if someone clicked on PDF and opened it. We have partially achieved this by using the API, but we are seeing a number of inflated numbers - for this incident - can be considered as much more reasonably reasonable. I suspect that this issue is related to bot / crawlers; However, when I look at referral traffic, I think that either reference (direct) or Google is theoretically for the most inflated numbers because we are collecting referral data, did not exclude bots / crawlers anyway should go? Am I missing something? We are using Google Tag Manager and Universal Analytics. Here are the variables we are setting up. v - Google Edition -> "1" Bid - Google Analytics ID ...

Deploying Django with Docker on Amazon Elastic Beanstalk -

I have a conceptual question - I am trying to deploy a Jaguaro application on an LCD beanstock (which I have successfully Have done the first) using a docker (which I have been successful so far). I know that elastic Beanstock uses a pre-blend with Docker, which I have already deployed the degegoo, but I've lost something when I finish on Elist Beanstock. I have used Amazon's documentation and using its code successfully deployed Elastic Beansstock to a dockfile, but so far it does not have to go on its own. Has anyone succeeded with this? Can someone tell me in the right direction how to accomplish this specific task? Thanks OK, so stack overflow is a pain about posting this answer ( Not everyone likes the Config snippets) So here's the link to Github. Originally README is the post that I tried to add to the stack overflow, but failed.

jquery - style.backgroundImage javascript method not working for me on any browser (FireFox, Chrome, IE, Safari) -

I can change background image with CSS but in this situation I need to use javascript, imga name " BTN is in 1-1. PGN "and its" IMG "directory (Child Directory) where my HTML index file is in the root directory, the image path is working in CSS, but javascript & Lt; Input type = "button" id = "btn_1" class = "btn_hidder" value = "notification" /> & Lt; Input type = "button" id = "btn_2" class = "btn_hidder" value = "document" /> And here is the JavaScript code ... document.getElementById ("btn_1"). Style.backgroundImage = "url ('img / btn1- 1.png')"; Also check the screen shots. Parent Directory (HTML File): Child Directory (JS File): My script has been fully added because working with its Alert () and all other JavaScript Codes are working. I tried the internal way of javascript but nothing happened. I know that you did ...

php - Using AJAX to insert lat/long into SESSION variables not working -

I have a site with directories for those businesses that have links to cities, which users can click and Find businesses near the city. So far, I have completed the process of using a GET variable on the link and with the PHP and Google Maps API. Unfortunately, the site is starting to generate more than 2500 questions per day, so I tried to use the Javascript API, when YouTube clicks the link and then sets it on the session using AJAX. I thought I was on the right track but it is not working. It seems that either does not work at all, or only after clicking on a link several times the session variable changes Any ideas? This is my test page: ex> And this is the setLoc.php file: I added the template because I thought every time it makes a difference it makes a difference, but I was able to get my desired results by using: & lt; Script type = "text / javascript" & gt; Function setLoc (lat, lng, address, href) {$ .ajax ({type: 'POST...

precision - Is it possible to print a large number of digits of a floating point number with gmp? -

मैं प्रिंट करना चाहते हैं 1589128402970546000515214676475308953824987995059891920501615931630880 : 33877456965431938318210482471113262183356704085033125021829876006886584214655562/27714219875802356822746928595231875152809132048206089502588927 मैं इसे जीएमपी पुस्तकालय के साथ करने की कोशिश करता हूं: // gcc pc -lgmp #include & lt; stdio.h & gt; # शामिल करें & lt; gmp.h & gt; Int main (int argc, char ** argv) {mpf_set_default_prec (1024); // सेट बिट्स में डिफ़ॉल्ट सटीक // declare mpz_t zn; Mpz_t zd; Mpq_t q; Mpf_t fn; Mpf_t fd; Mpf_t f; // f = फ्लोट (q = n / d) // init mpz_init (zn); Mpz_init (zd); Mpq_init (q); Mpf_init2 (fn, 794564201485273000257607338237654476912493997529945960250807965815440); Mpf_init (fd); Mpf_init (f); // सेट mpz_set_str (Zn, "33877456965431938318210482471113262183356704085033125021829876006886584214655562", 10); // // mpz_set_ui (n, 33877456965431938318210482471113262183356704085033125021829876006886584214655562); चेतावनी: पू...

T4MVC: System.InvalidCastException: Unable to cast COM object of type 'System.__ComObject' to interface type 'EnvDTE80.CodeClass2'. -

By using T4 MVC and trying to run 'custom tools' I get this: Walking Change: System .invalidCastException: Type 'COM. Unable to insert object 'in the COM object' Interview type 'EnvDTE80.CodeClass2' IAD '{295ADCD4-B052-49EE-934E-C6B36862A7C6}' Interface with QueryInterface call failed due to the following error: No such interface supported Is (Exception from HRESULT: 0x80004002 (E_NOINTERFACE)). This affects the whole machine, not a personal project. I have tried: reinstalling Uninstallation VS restart Machine Restart Understand this. Remove the project from the solution and add it again.

r - how to use gather_ in tidyr with variables -

After I am using tidyr together and need to use dynamic value in tidyr operation with shiny and therefore. Although I have trouble using the collected (), which I think was designed for such a case. At least the example below: Library (tidyr) df & lt; - data.frame (name = letter [1: 5], v1 = 1: 5, v2 = 10: 14, v3 = 7 'quantity' dyn_err & lt; - -; v3) dyn_1 & lt; - 'remedy' dyn_2 & lt 'v1: v3';: 11, stringsAsFactors = false) #works fine df% & gt% (measure, volume, v1 collect dyn_err_1 & lt; - 'v1' dyn_err_2 & lt; - 'V2' #Error df% & gt;% gather_ (dyn_1, dyn_2, dyn_err) #Error df% & gt;% gather_ (dyn_1, dyn_2, dyn_err_1: dyn_err_2) something After debug I realized that there was an error in the faulty measurement part of the part, but I do not know how to work with ':'. Please help with the solution and understand a little bit more You can learn more. After come You are saying the collecte...

mysql - How to properly isolate an element from a SQL table in a PHP script -

I run this PHP in my PHP script: choose $ sql = " As a u id id, lastpaymentdate as ul.meta_value, rd.meta_value include wp_users as noemails, on the left wp_usermeta road include rd.user_id = u.id and rd.meta_key = 'noemails' left. Ul.user_id = u.id at wp_usermeta ul and ul.meta_key = 'last payment date' WHERE u.user_email = 'testemail@domain.com' "; $ Rs = $ db- & gt; Execute ($ sql); Here is the data that will output it if I run it in an SQL console: + ------ + ---- - ------------ + ---------- + | ID | Last payment date | Nomiles | + ------ + ----------------- + ---------- + 2523 2013-10-30 0 I need to get the lastpaymentdate (2013-10-30) array $ lastRenewalDateParts What I've come up with. $ final reinvolved pars = explosion ('-', $ rs-> data [0] [1]); However, this is not working properly. This is giving me an empty array where I can be wrong. Edit: mysqli_driver_ResultSet object ([connectionId] =>...

javascript - Absolutely Position Element Around a Circle -

Image
I have some HTML below with embedded SVG & lt; Section id = "deck-head" & gt; & Lt; Svg xmlns = "http://www.w3.org/2000/svg" width = "250" height = "250" & gt; & Lt; Ch & gt; & Lt; Title & gt; Marker & lt; / Title & gt; & Lt; G id = "marker-frame" & gt; & Lt; Path across = "white" D = "M 133.300003,64.800003l0, -33.500004 L-16.100006,0 l0.3339999 9C-30.799995,3.700005-53.499996,29.599998-53.499996,60.800003c0,33.900002 27.600002,61.299995 61.299999,61.299995C61 300003, -27.399994 61.300003, -61.299995c0, -30.900002 -23.600006, -56.599998 -53, -60.599998zm-53.5606099997c0, -24.900002 20.299995, -45.199997 45.199997, -45.199997 S 45.199997,20.299995 45.199997,45.199997s-20.199997, 45.300003 -45.199997,45.300003-45.199997, -20.400009 -45.199997, -45.300003z "/> & Lt; / G> & Lt; / G> & Lt; / Svg & gt; & Lt; Marks & gt; 90 & am...

ruby on rails - Why won't devise update an attribute in my DB? -

We have copied / pasted the Device Registration Controller and there are some ways to improve things. General Update method looks like this: def update self.resource = resource_class.to_adapter.get (send ( "current _ # {RESOURCE_NAME}"). to_key) prev_unconfirmed_email = resource.unconfirmed_email if resource.respond_to (? unconfirmed_email) AP that block_given resource_updated = resource.update_attributes (account_update_params) produce resources account_update_params? If resource_updated if is_flashing_format? Flash_key = update_needs_confirmation? (Resource, prev_unconfirmed_email)? : Update_needs_confirmation: Update set_flash_message: notice, sign_in RESOURCE_NAME, processing, bypass flash_key inter really respond_with resources, location: after_update_path_for (resources) and clean_up_passwords resource respond_with processing end end I put AP Khata_apdet_prm it To make sure that I'm getting all the right stuff before the update: {"email" =...

javascript - XMLHttpRequest readyState is equal to 0 -

Image
I can not find any data with XMLHttpRequest, because its return location returns 0. I have this code: Function chargerresendiments () {var xhrArrond = new XMLHttpRequest (); Exhausted.OndestateBangze = Charger Around Callback (Exor Arrayed); Var lienDocArrond = 'PHP / script_load_arrondissements_get.php'; ExhaRndand.Open ('GET', Leon Dockerend, True); Console.log ('Arrangement Charges Dan's Le Fisher XML'); XhrArrond.send (zero); } Function charger Aroundcodeback (warning) {Warning (excerpt. Fredstate); } The warning window shows 0. I tried to open XHR before setting the handler, but still returned 0. Now, the strange thing is that I have several XHRs on that page, and they all work very well, leaving one, and why I can not explain BTW, my PHP path The path is: http: //localhost/TP2/PHP/script_load_arrondissements_get.php . In addition, you should know that this file gives a correct XML content. This console says about my request: Nobody ...

regex - Mild language processing of csv file in javascript -

I use a specific search or phrases of words (approximate to me) on an approach to the processing line of text and Seeing the suggestions for moving in a CSV, for example, such lines: The South China-based trading firm introduced the goods of low voltaile coking coal on a 15% basis, in which the level of November Was $ 167 a tonne. A Hong Kong-based trading firm receives mid-volatile coking coal on the 24% basis with 145% / t, with the delivery of November beginning of November. Seamless information such as: South China trader, seller, low-volatile, 15%, November, but, $ 167 Hong Kong trader, buyer, mid-volatile, 24%, early November, delivery, $ 145 Arrays to set up Streptus ("\"). But after that ... what coding approach would you recommend word / phrase match within a line, and then the surrounding information Delimited line with a similar comma (a spreadsheet) I am an editor who is looking to accelerate the data entry, that is why I have a more general approach t...

sql - how to add more rows to a existing table -

There are many columns in the table trainer for column only name Want to add more values ​​and get the value table from student The condition is that the student's name with tot_cred & gt; 100 is chosen My attempt is down but this error returns back. How can I solve this problem? Update Instructor Set ID = (Choose ID from student where tot_cred & gt; '100'); The error is that returned more than the subkey1 value. When subquery =,! =, & Lt;, & lt; =,>,> = Or when the subquery is used as an expression is not allowed. update trainer set a.name = (student name name) Where id = a.id) where exists (where the student 'Select' id is = A.id and tot_cred & gt; '100');

javascript - Programmatically pass query param name to Ember's link-to component -

I'm trying to create a query the ultimate link component. The layout looks for something like: {{Link-to routeName (query-parameters filter = paramValue)}} {} {{text}} {{/ link-to}} routeName and paramValue are fine for my component class "bound". But I would also like to specify the query ultimate name for my component (in this case it's "filter" Is strict in the form. I query for the value of my component How can I share the name of Rum (I want "filter" variable)? Should I forget this method and any method like a transitionTo ? P>

Error Connecting to Existing Database with PHP and MySQL -

I am trying to connect to a mysql database with PHP. My code in pho file is: try {$ pdo = new PDO ("mysql: host = localhost; dbname = BurgerBar", "root", "root"); } Hold (PDOException $ e) {$ response = "Failed to connect:"; $ Response = $ E- & gt; incoming message (); Die ($ reaction); } I failed to connect to when I run the code in my browser: SQLSTATE [42000] [1049] Unknown database 'burgerbar' However, when I log mysql in my terminal using the root password as root and run the show database; I get + -------------------- + | Database | + -------------------- + + | Information_schema | | Burgerbar | | Mysql | | Performance_schema | | Test | + -------------------- + So it shows that it exists in mysql I am using mmp And I can not understand it. You must replace your connection string with a local host instead of the IP that MAMP uses instead of the local host And connects to the port on which the MMP tal...

Replacing double quotes with html quote tags for a given string in C# -

By looking at a C # string like this: var str = "in this string" \ "double Quote. "; I want to change it: var str = "this string is I have found a solution that strings through strings and does string. & lt; Q & gt; Transfers double quotes with , followed by I loop and every other & lt; Q & gt; A termination & lt; / Q> tag I think there is a better way or more sensible way to do this. I will use regedx var str = "this string \ "In \" double \ "aaaaa \" quotes. "; Var str2 = Regex.Replace (str, @ "" "(+.)" "", M = & gt; "& lt; b & gt;" + m.Groups [1]. Value + "& lt; / B & gt; ");

image - PDF Form - Allow Reader to insert Jpegs -

I am working on an adf form for my clients so that they can put photos in PDF form. I am currently using event.target.buttonImportIcon () which allows me to keep an image if I have complete Acrobat, but when I only Going to the computer with the reader (version 11) it will only let me choose to select PDFs. I need a browse option to be able to select JPG from the drop down menu. Please help. It is not possible in the reader, only in Acrobat. You can read more here (and some potential work-around):

.net - Office Word Interop issue caused by Microsoft Update -

I have a problem in a windows form application written in VB.Net (I did not want to write it, troubleshooting it To try). Part of the application uses the Word Interop assembly to merge mail between a Word document and a text file containing the data. A update was made for Microsoft Word a few days ago, due to the fact that the mail merge was stopped working. Word document prints only with no data, I am stumped about what I can do to resolve this issue. I tried to run the application as an administrator, I tried to copy the interop DLL directly into the project folder, but neither of the differences actually thought that what actually And did not know what to try). The only thing to work was to actually uninstall the update, but it is going to happen again next week with the next round of automatic updates. The code for the mail merge is below, any advice would be greatly appreciated, I do not even know where to start the issue, where to start. Word documents and data files are...

Android screen navigation issue -

मुझे एक स्क्रीन नेविगेशन सवाल मिलता है। 1. गतिविधि ए-> गतिविधि बी 2. गतिविधि बी पर, गतिविधि ए (गतिविधि बी-> गतिविधि ए) पर वापस जाने के लिए एक एक्शन बटन पर क्लिक करें 3. गतिविधि ए पर, गतिविधि बी पर वापस जाने के लिए एक रद्द करें बटन पर क्लिक करें गतिविधि ए-> गतिविधि बी)। मैं गतिविधि बी को दो बार नहीं बनाना चाहता हूं। क्या दूसरे चरण में गतिविधि बी को बचाने का एक तरीका है? धन्यवाद। क्या कुछ बड़ा है जो बी में आरंभ होता है जो संक्रमण को धीमा कर रहा है? मैं सिर्फ सिस्टम को इसकी बात करता हूं, आप onSavedInstanceState और onRestoreInstanceState । के साथ एक गतिविधि में स्थिति का अनुकूलन कर सकते हैं

Java Character change of a String -

मेरे पास जावा स्ट्रिंग व्हेरिएबल्स फॉर्मेट हैं (रिक्त स्थान सम्मिलित करें) स्ट्रिंग आईडी = "सीए टी 4443" मुझे अपने स्ट्रिंग मान को id = CA4443 के रूप में टी और रिक्त स्थान को हटाने की आवश्यकता है। मेरे मान सरणी CA T 4443 सीबी टी 4562 सीजी टी 6365 डीए टी 5552 सीएक्स टी 9875 सीएस टी 5454 आरए टी 2377 दूसरी चुनौती सीएएफ टी 444352 सीएबीडी टी 4562 सीजी टी 636535 डीए टी 555255 सीएक्स टी 98755665 सीएस टी 545455 आरए टी 237766 मुझे इसे प्राप्त करने की आवश्यकता है (केवल 1 2 बार और अंतिम 4 अंक) CA4352 CB4562 CG6535 DA5255 CX5665 CS5455 RA7766 यदि यह हमेशा दो लेटेज़, एक स्थान, एक टी और एक नंबर होता है तो आप ऐसा कर सकते हैं: स्ट्रिंग आईडी = " CA T 4443 "स्ट्रिंग परिणाम = id.substring (0, 2) + id.substring (5, id.length); या आप बस ऐसा कर सकते हैं: स्ट्रिंग परिणाम = id.replace ("T", "");

iphone - glDrawElements massive cpu usage on iOS -

Hardware: iPad 2 software: OpenGL ES 2.0 C ++ About 25% of glDrawElements P.U. When I do not use an index buffer and does not use glDrawArrays, then this speed and glDrawArrays appear on the Barley Profiler. Everything else is the same, more of the glDrawArrays because I have to duplicate in VBOX in duplicate without index buffer for copy. So far: Almost the same state changes between two ways The top structure is two floats (8 bytes). IndexBuffer is 16 beats (tried with 32 bit) GL_SATIC_DRAW for both buffers Do not change buffers after load The same VBO and IndexBuffer render frames many times, with different offset and size No open-gull errors It seems that It's a fallback of some kind of software, but I do not know how to cause OpenGL to fallback. There are some things that come in immediate attention which can affect the speed you have described. . For one, several commands are released in an effortless manner to reduce the number of bus transfe...

MVC vs N-tier architecture - Singletons vs Objects (Django/Python) -

I have a class in Django which is responsible for speaking to any other service through http. It is being used as a singleton. However, each method requires 2-3 pieces (from the user's session) similar to the data to run. Additionally, each method has to make a number of calls to other methods in the class, which means that the data is often passed in the form of debates class MySingletonClass (): def get_user_group ( Request for #def_user_picture (auto, email, token, pick_id): service request #def get_user_item (auto, email, token, item_id): # request for service all about 14 ways and they have a simple API layer Area through the contact. Instead of passing email and token every time, I could just pass session but then I would either need to set up a scrolled war or Too many characters must be typed def get_user_group (auto, session): email = session.get ("email") token = session.get ("token") It seems to be repeatable that my solution was...

javascript - Binding dc.js to Google Maps with crossfilter -

Question: This device could provide toy examples using any DCJS + Google Maps Is where I brush on a dc.js chart, the map marker is updated in accordance with the selected / brush in the chart? What I have so far: Full repo has given me this good example, but it uses this sheet. I was trying to avoid the sheet if possible. I am trying to force Google Maps to dc.js (crossfilters). I have seen it and I am capable of optimizing the example. However, when I try to customize it to use dc.js , then I can not put the crossfilter back to Google Maps. (I can still tie Maps with CrossFilters / DCJs, not just around). That is, when scrolling on the map, the chart is adjusted, but when I brush the chart, I can not seem to do my updateMarkers () function. function init () {initMap (); InitCrossFilter (); // Litemd = ndx.dimension in the Light / LNG NADX dimensions to map range (function (p) {return p.lott;}); LngDim = ndx.dimension (function (p) {returns p. Lg;}); Google.maps.event...

Copy scratch canvas data to KineticJS layer -

I have a small image editor using kinetic JS: For this webpad, Color 'image using the second image I use globalCompositeOperation = source-in for this, it works great This color I do in a popup (click on the color wheel in my example) in a different canvas. When the user finishes applying his ink, I want to add this scratch-pad-like canvas data as the layer of your main kineticjs canvas. I can not get to do this work. I can add the reference directly to my main canvas, but then I cover my layer management and transparency. You will see that when you press the 'Inkt toepassen' button. For this, I use these lines: // Get the reference of the main canvas: var context = layer.getCanvas (). GetContext (); // Get image data from scratch pad: var imgData = inkContext.getImageData (0, 0, inkCanvas.width, inkCanvas.height); // Copy the image data in the main canvas context. InputJagadata (IMGDTA, 0, 0); How can I create kinetic JSs layer from data on my scratch pad? ...

java - Get all offers for todays date -

Say that I have a unit representing the offer and highlighting the offer a crude replletry. How to get all the proposals for today? Naturally my property unit has a date feature. Reception in offer. Java: Public Interface Offer Repository Crude Resorgetry and Late Offer, Long & gt; {LIST & amp; Offer; Offer & gt; Find All Date (Date Date); }; When you want data: list & lt; Offer & gt; Offer = offer repository.findedbudate (new date ()); Update: In fact, you can also: Public Interface Offer Repository Crude Resposatory & lt; Offer, Long & gt; Select {@Query ("Choose from Proposition o, select date between CURRENT_DATE and CURRENT_DATE + 1") & lt; Offer & gt; FindAllByDateToday (); };