Posts

Showing posts from April, 2010

c++ - Where can I find a working winnt.h? Rubenvb's appears to be very wrong -

4.7.2 of rubenvb downloading by looking at the definitions in winnt.h (c ++ .exe --version rubenvb- 4.7 .2-release) Inline assembly, many routines are detected which do not work properly. At least they are not on their i7 processor (have they been coded for any other processor?). However, given the nature of the development of GCC, it seems that some other implementations have a better job with this file. So, 2 questions: Does anyone know where better winnt.h is? Do anyone know how to contact RebianWeb? Windows XP SDK is a free download, you can get one for Windows 8, Or can use Windows 7 to stick with targeting. Naturally, this includes all the headers needed to call the Windows code, in which WinNT.h .

Using PHP to create Json adding arrays -

I have the following php script as an example $ stockline = array ( "Details" = & gt; "This will hole all data for the entire page"); $ Date = "2013-20-20"; $ Name_array = array ("date" => date $); $ Name_array ["vehicle"] [] = array ("vehicle" => "i100-1", "driver" = & gt; "jack", "event" => "boat race"); $ Name_array ["vehicle"] [] = array ("vehicle" =>> "i100-2", "driver" => gt; "paul", "event" => "boat race"); $ Named_array ["vehicle"] [] = array ("vehicle" = & gt; "i60-2", "driver" => gt; "Andrew", "event" => gt; "popping"); $ Stockline ['day'] = array ($ named_array); // I can not add this next data as an array for "day" $ date = "2013-20-21"; $ Name_array = arr...

C# determining if an IP address represents a real host -

Problem: In an input field there is an input field where the user can enter the host name or IP address. I need to tell if the entered address matches the actual host. I'm not talking about a simple regular expression check or an IPAddress.TryParse or Uri.CheckHostName. I do not have difficulty checking a hostname: If it can not be resolved on an IP address, then DNS.GetHostEntry will throw an exception. This is a piece of cake though . If I get an IP address input, then if I call a Dns.GetHostAddresses, it will always be successful, even if I enter a stupid IP, like "1.1.1.1" ("1.1.1.1" is an IANA reserved IP Address, our DNS server reports "non-existent hosts / domains") DCS. GetHostAdWords immediately leaves the IP immediately, which I just pass, like everything will be fine. Ahh. I can not use DNS.GetHostEntry, because some IP addresses (like my virtual machines on the local network), do not have any DNS host names associated with them. But th...

rmarkdown - embedding plots into html using knitr -

One of my co-workers showed me a good way to use Rustadio and convert a Markdown R script into an hmtl. All the plots from the script are embedded in HTML, so an HTML file can be shared and in one file Full documents may be included. I'm trying to duplicate it outside the Rustio Gui, so that the html is automatically created (not by the user with the GUI). I've tried knit () and knit2html (), they make an HTML file for me, but they also create a "figure" folder which I had to pass with HTML. How can I embed plots and everyone in a single HTML file? Woven HTML is in RSTDO (supposedly) Knit2html () is equal to knitr . You will actually see a data directory, but you can safely ignore it - all your plots are embedded in the HTML file by default. When you share an HTML file with your colleagues, you have to pass the HTML file. To verify it, just delete the data directory and see that the plot is still in the HTML file.

Wordpress MySQL Query for category pages -

I have been using this question to display posts on my WordPress index.fpp and sort them according to date I am (oldest first ASC). I use this database query because query_posts does not work for me for some reasons. Now I want to use exact query on my class pages. Do anyone have any solutions? OK, depending on your information that you posted, you use something like this You can: $ args = array ('post_status' = & gt; array ('published', 'future'), 'post-type' = & gt; 'post' 'Orderbie' = & gt; 'date', 'order' = & gt; 'asc'); $ The_query = New WP_Query ($ Args); While ($ the_query-> is_pause ()): $ the_query-> The_post (); The_time ('L, FJS, Y'); material(); The_category (); Endwhile; Wp_reset_postdata (); Update with request get_header (); ? & Gt; & Lt; Section id = "primary" class = "site-content" & gt; & Lt; Div id = "c...

java - Basic generic methods and how to call a method from non-generic class? -

I really need help with generic methods and generic Here I'm imagining: In the MyPets class, in the above, add a method that takes T as the parameter. This method is called myGenericMethod, it will call for Manoj. Call the menoise method for both of your pets inside this method. The question is how do I call the menyois method from the animal class (non-general category). Do I have to use Reflection? Public category MyPets & lt; T & gt; {// T is creating myGenericMethod as its parameter in the form of its parameter Public Zero myGenericMethod (TT) {// How do I call Mena Niez () from the Animal Class? }} thanks to extend animals to you Your usual type of announcement is required: public class mappings & lt; Tee Extend Animals & gt; {Public Zero myGenericMethod (tt) {t.makeNoise (); }}

c# - Color excel cells using winforms -

इस सवाल का पहले से ही एक उत्तर है: 2 जवाब हाय मैं निर्यात करना चाहता हूँ कुछ बटनों का रंग एक्सेल करके बटन ग्रिड का प्रतिनिधित्व करते हैं और गतिशील रूप से बनाए जाते हैं। मुझे लगता है कि मुझे रंग का नाम देना है, और एक्सल को निर्यात करते समय सेल का वास्तविक रंग नहीं है। (For int i = 0; i & lt; पंक्ति; i ++) {for (int j = 0; j & lt; col; j ++) {worksheet.Cells [i + 2, j + के लिए 1] = (बटन [आई] [जे]। बैक कोलर); }} आपको निम्नलिखित कोड का उपयोग करना चाहिए: के लिए (इंट आई = 0; आई & lt; पंक्ति; i ++) {के लिए (इंट जे = 0; जे एंड एलटी; कोल; जे ++) {रेंज रेंज = वर्कशीट। सील्स [आई + 2, जे + 1]; श्रेणी। बाहरी। रंग = बटन [i] [j]। बैक कॉलर .ओएआरगब (); }}

sql server - SUM within SQL Query - Left Outer Join -

यहाँ परिदृश्य है: टेबल्स: ** CallMain: ** Call_ID = पीके (INT) परित्यक्त (INT) या तो 1 या शून्य ** CallHold: ** Hold_ID = पीके (INT) Call_ID = FK (INT) StartTime (INT) eNDTIME (INT) कॉलमैन तालिका में आयोजित प्रत्येक कॉलम में या तो 1, 0 या कई धार रिकॉर्ड हो सकते हैं। हर बार जब कॉल पर हो जाता है तो एक रिकार्ड बनाया जाता है जिसे एफके द्वारा धारण के स्टार्टटाइम और पकड़ का एंडटैम के साथ संदर्भित किया जाता है। अब, कॉल करने के लिए एक क्वेरी में और इनकी कुल जानकारी वापस करने के लिए बार पकड़, मेरा मानना ​​है कि एसक्यूएल इस प्रकार हैं: CallMain.Call_ID, CallMain.Abandoned, IsNull का चयन करें ((CallHold.EndTime - CallHold.StartTime), 0) के रूप में CTIStatCall बाएं से HoldPeriodSeconds कॉल करने के लिए कॉलमॉल पर कॉल करें। कॉल_ऑफ = कॉलहोल्ड.कॉल_आईडी इस क्वेरी से उन कॉलों के लिए रिकॉर्ड्स वापस करनी चाहिए जिनके पास कोई धार रिकॉर्ड नहीं है और उन्हें नल के रूप में वापस करना चाहिए। एकल पकड़ रिकॉर्ड वाले कॉल सही तरीके से दिखाई देते हैं। शून्य से बाहर आने वाले नलों को ISNULL () फ़ंक्शन ...

BSON library for Java/Scala that reads content right from disc -

I am looking for a BSON library for Java / Scala which can actually read larger (larger than RAM) BSON file. This means that I do not want to read the entire file at a time, but only fragmented pieces Is there anything like this that I need to read more? Charly

Multiple PHP variables in MYSQL query with AND condition -

This is my first code-question! I'm starting both on MySQL and PHP, so it can be really simple! This is my code: This is a file included in my index.php ... And these are the defined variables with the $ _GET function: & lt ;? Php $ type = $ _ GET ['type']; $ Fruit = $ _ receive ['fruit']; $ Country = $ _ received ['country']; ? & Gt; And then later I will bring the array and work with it. The problem is that my $ query works just fine with '$ type'-variable, but not with $ country- -able - - - - - - or I have tried any other Variable I use Microsoft Webmatrix and it tells me that this problem arises very momentarily in $ $ - Sign in to the second variable ... So much confused In! Hope you can help a newcomer :) Edit: I came to know that the problem was with "ticks" around my variable, with the backing up (``) is. In addition, I started using my SQL instead of PDO and MySQLi. For beginners, MySQLi is probab...

c - reading strings to a char array and then getting the size of the strings -

I am working on a project and I am stumped on this part. I need to read from words Stdin and place them in a four array and use an array of signals to indicate each word, because they will become denticular. Where numbers read an integer in representing the number of words. Four words [10000]; Four * word [2000]; The problem is that I can use only the indicators to add words. I can not use [] for help now * wordp = word; // Set the first pointer at the beginning of the four arrays (T & LT; MMRDAs) {scanf ("% s", * (wordp + t)) // This is the part that I do not know wordp = words + charcounter; // charcounter is the number of characters in the preceding word t ++; } For (int i = 0; word + i! = '\ N'; i ++) {charcounter ++; } Any help would be great, when I talk about points and arrays, I get very confused. If you use an additional pointer reference and increment directly, then your code will be more manageable. You do not have to do any menta...

javascript - JQuery works in JSFiddle but not Live site -

Here is JSFiddle: Here's the live site: And yes, My index is properly linking to the JQuery library and my .js files Other javascript is working from all files, this is the only part I did in JSFDell which does not appear to be working. This is actually the opposite which is going to do it. Here's a screenshot on the live site: var skincare = []; $ ('Skincare'). Click (function () {var value = event.target.className.split ("") [0]; var index = skinCare.indexOf (value); if ($ (this) .hasClass ('selected')) { // $ ('.skinCare'). RemoveClass ('selected'); skincare splice (index, 1);} and if ($ .rowre (value, skin care) == -1) {SkinCare.push (value );}}); $ ('Html') Click (function () {Alert (skincare);}); $ ('Circle'). Mouseover (function () {$ (this) .addClass ('hover');}); $ ('Circle'). Mouseout (function () {$ (this) .removeClass ('hover');}); $ ('.multi'). Click (function () ...

backbone.js - Is there a way to change Marionette ItemView template dynamically with RequireJS? -

I am trying to manipulate item views dynamically in the merchant collections. The archive is the same model, but I define template name logic inside the model. The question is, can I manipulate the item view template with this argument? Item view: Define (['text! Templates / ComponentItemViewTemplate.html', 'Model / ComponentModel'], Function (template, model) {var ItemView = Backbone.Marionette.ItemView.extend ({template: _.template) (template), model: model}); Item item; Return;}; View collection: Define (['views / ComponentItemView', 'views / LoadingView'], function (item view, loading ) {Var ComponentListView = Backbone .Marionette.CollectionView.extend ({emptyView: loadingview, id: "component-list", item view: item view, events: {click on the title: 'show'}, append html: function (See collection, item view, index) {/ I would like to present different templates for different models. ItemView. $ El.draggable ({Helpfu...

hiveql - MULTIPLE INSERT OVERWRITE in HIVE -

I am trying to overwrite multiple inserts in the hive by the following commands. Select the tap, race, faucet, faucet from the result of the INSERT overwrite table, where the field = 'title'; and after the first command, the content of the table of results_3 tap up on crawl creek (2000 digital remasters), nail nail null the weight (2000 digital remasters) Rainfall (LP version) zero zero zero I Alaska zero zero zero to zero zero zero zero against zero zero zero Lyin 'eyes zero zero zero Answer Who will stop zero zero zero zero of zero Rhythm me a ma Nten The narwhal is faucet Knight found out the result of nail tap Invert Owhrrrait table. Select the tap, faucet, race, tap from the result where the field = 'album'; and another order zero zero the zero zero zero the zero zero zero the Cascades zero zero zero after the Creedence Clearwater results_3 Table of contents revival Zero Zero Zero Johnny Cash Zero Zero Bob Sager Zero Zero Eagles Zero Zero Zer...

string - jarvis-like ai python app -

So we've seen the iron man, right? As a private project, I am trying to create an Jarvis-like AI. I do not need to be refined in any way as Jarvis; It's just the best descriptor I can come up with. I started by looking at the conversation's A - Chat Bots - but I do not need it. I think that with that method, user input is processed in a much more complex way than what I am seeing. All I need is to give a command to AI and for AI to match that command and run the appropriate code. That's why I stumbled on Libidif. But it does not adequately serve my purposes Libdiff, as far as I'm able to use it, wont match the wire where wont is out of order. As far as I know, at least, in order to match the sequence of words in both stars, libdiff should be similar. For example: User input: "What time is it?" Will not match the command will match it: "What is the time?" I am not asking for the spoon code, but should anyone tell me in the right direc...

php - Doctrine PreUpdate never worked -

I have searched, and there are so many questions with the same problem, but none of them solves my issue is. / P> I have a unit, here is the code: / * * @ORM \ HasLifecycleClallbacks * / class MyEntity {// Some prints are here ... / * * * @ORM \ column (type = "text", tap = true) * @ esset \ maxelambenth (limit = "500") * / private $ distribution = zero; / ** * @ Dollar Delivery Bull * * Virtual Field which is used for the $ $ Delivery Asset Organization * / Private $ distributionon = false; / ** * @ORM \ preppersist () * @ORM \ PreUpdate () * / Public Function Preset Delivery (if ($ this-> Distribution ON == incorrect) $ this- & gt; Delivery = zero; } / ** * @ORM \ PostLoad () * / Public Function loadDeliveryOn () {If ($ this-> Distribution! = Zero) $ this-> Distributionon = true;}} loadDeliveryOn method works completely all the time. But when preset delivery was removed only when I first got the unit I want to say that I am continu...

java - Methods onLocationChanged -

I'm trying to run a method when the current location changes occur. It calculates the distance of change in the current location every time and then shows it in the textview. public GoogleMap googleMap; Override public null on @reate (bundle saved instainstate) {super.naught (savedinstenstate); SetContentView (R.layout.activity_main); // Final Media Player mPlayer = MediaPlayer.create (FakeCallScreen.this, R.raw.mysoundfile); // Get status of Google Play availability status = GooglePlayServicesUtil.isGooglePlayServicesAvailable (getBaseContext ()); // If you want to show status (status! = Connection result.UCCE) {// Google Play services are not available int requests codes = 10; Dialog dialog = GooglePlayServicesUtil.getErrorDialog (status, this, requestCode); Dialog.show (); } Else {// Google Play services are available // Getting activity_main.xml in the context of SupportMapFragment. SupportMapFragmentfm = (SupportMapFragment) getSupportFragmentManager (). FindFragmentByI...

sql - Count of Intersection Returns Unexpected Value -

I have a table, called A and B, and a normal column X, which is not faucet . Question 1: from Sext COUNT (*) to AEX (SELECT BFA) B) Question 2: Query 3: SE from SE (*) B in BX SELECT COUNT (*) A, B WHERE AX = BX query 1 result 5990. Q2 and 3 results 6222. The removal of the isolated or the different test results on the top does not change Can anyone explain why the results are not similar to all questions, because they all count the intersection intersection? Suppose A has the values ​​of ABC Assume that ABCEDE Value is In this case, A will be calculated as 3 (QR1), whereas B will be counted as 4 because C will be repeated (QRY2) when you use C join, then all of C The prices will be more duplicate than A. A can be duplicated, but less of them. 4 then (QRY3)

asp.net - I'm having trouble querying an XDocument using LINQ -

I am new to LINQ so that I gather, I have some syntax wrong. I have seen many examples online, but everyone seems to have their own style. Here is the XML data I ask: & Lt; / Reaction & gt; & Lt; Reaction type = "object" id = "unknown" & gt; & Lt; Normal phenomenon = "position" privilege = channel = "sip / 452-000006fc" "call" calleridnum = "452" calleridname = "which" connectedlinenum = "430" connectedlinename = "device" accountcode = "" channelstate = "6" channelstatedesc = "Top" context = "macro-dial-one" extension = "s" priority = "37" seconds = "54" bridgedchannel = "br /> 430-000006fd" bridgeduniqueid = "1363822334.1829" uniqueid = "1363822334.1828" /> ; & Lt; / Reaction & gt; & Lt; Reaction type = "object" id = "unknown" ...

svn - How exactly do you reintegrate a branch into a parent branch using TortoiseSVN? -

Therefore, I got this problem again and decided to listen to the experts (only they know what they are talking about are doing ). I created a branch (dummy-branch) from the other branch (which has been called UAT_BRANCH and it is a main branch for the main test release). I made changes in dummy-branch and examined those changes until I was satisfied with those changes, then it came to merge my changes back into the main branch, in this case UAT_BRANCH, and I went ahead and To complete it, TortoiseSVN opened. I opened the online manual, and again tried my hand when the merger was correct. I have specified UAT_BRANCH as FROM (start URL) and dummy-branch as T (and URL). I tested the merge and then finally merged the actual. When I refresh UAT_BRANCH and checked to see if changes in my branch have been re-integrated, then I found out that it was not. Now after the switching to the FORA and URL, no result was found, probably damaged or something else (I think reunion has already been ...

svg - What does ''arbitrary shape'' mean? -

I have started some work on SVG graphics and I have always come across the word "arbitrary shapes". What is an arbitrary shape? A arbitrary size is just one .. an arbitrary shape. The word arbitrary in this context means any like: not a specified, or specific type of size . This is not really a programming question. It is a question of English language.

c# - Do I need to close SQL Server connection with the using keyword? -

I am looking for conflicting results for this question. See this C # code of running SQL queries: using (SqlConnection cn = new SqlConnection (strConnectString)) {cn.Open (); (Using SqlCommand cmd = new SqlCommand (strSQL, cn)) {cmd.ExecuteNonQuery (); } // do I need to call? Cn.Close (); } Do I have to call that last cn.close () ? I'm asking that in a heavy traffic web application I run out of connections in a pool. Using as the keyword : Using (for SqlConnection cn = New SqlConnection (strConnectString)) {// Stuff} : SqlConnection cn = null; Try {cn = new SqlConnection (strConnectString); // Stuff} finally {if (cn! = Null) cn.dejas (); } cn.Dispose () after immediately will be out of the scope of cn By using Code>> , which in turn closes the connection (because SqlConnection.Dispose () does). UPDATE This should not be confused with garbage collection. GC is non-determinant in NAT, which is why the integration and presentation of IDis...

search for multiple keywords with php and mysql (where X like) -

I have a code that dynamically searches for data using Ajax in database Can only search for 1 keyword. I would like to modify it so that I can find many keywords. Now, if I type 2 keywords different from one place and database, then the data is not separated from one location, there will be no results if the database has data: ' Playstation3 'or' play cool station3 ' and I searched for: play station any result Will not done. I would like to know whether it is possible to modify my code so that I can divide 2 or more keywords or words into one place or another word or a DOT or underscore or (-) or (+) or (%) . Or (some more worthy) I know that I should use pedo or mysquely but I am using it only for testing! $ queried = $ _POST ['query']; $ Search = mysql_query (like '% $% queried' from the 'Select * link);; while $ searche = mysql_fetch_array ($ search)) {echo "". $ Searche [' link ']. "& Lt ; / Br> ...

indexing - Where is Index Agent Admin Console -

I need to find out where I can access the Index Agent Admin Console in the EMC Document. I see many posts online, none of them tells me how I can get it. One of the suggestions: 1 Http: // localhost: (Index agent port number.) / IndexAgeent (number.) / Login.jsp Login to the Index Agent Console through I do not know what the indicator is the port number of what they are talking about and how can I find it. Can anyone help me on this? It depends on the port number set by the user when the portfolio index is installed . It also depends on what you are talking about Fast or Explore. I believe the default port for fast index agents using the above URL is 9081 . > To explore, the default configuration URL http: // . You want to take a look here, if it does not help you:

html - Open a local file in browser by just typing a keyword mapped to the file's address -

I have spent a great time but could not find any answer. Probably not using the right words to search that is not helping. This is what I want to do: 1. I open a browser (especially interested in IE8 if someone wants to know) 2. I type 'games ' , and nothing else, in the address bar and press Enter. 3. The HTML file Game.html , which is present on my desktop, opens in my browser. Can it be done? if so, how? I believe that with a heavy shell-driven-registry-manipulation, maybe you want to chew (I may be wrong, you can be happy in C ++ ...) DEFAULT] BASEURL = url [{000214A0-0000-0000-C000-000000000046}] Prop3 = 19,11 [InternetShortcut] URL = file: \\\ C: \ path \ to \ game.html IDLIIS = Show command = 3 mark index = 1 IconFile = C: \ WINDOWS \ SYSTEM \ url.dll HotKey = 1601 [MonitoredItem] PreviewSize = 320x240 IsLivePreview = false Save it with the given file name: C: \ user \ [user name] \ favorites \ links and then type in the address bar...

Client-Server Program, can conncet from Java client but not from Android -

I have a Java client / server program that is very straightforward and original, but it works fine though, now I have an Android I'm trying to write clients, and I'm unable to connect to the server from my Android client. I'm using almost identical code for the Android networking code as I use for the general customer. My Android code is simple, it all starts this thread with onCreate: Private Full Serverport = 8889; Private string server IP = "192.168.5.230"; Private socket socket = null; Private threads ClientTrade = New thread ("ClientTread") {@ Override Public Wide Run} {try {socket = new socket}) Socket.connect (New InetSocketAddress (Server IP, Server Port), 1000); DataInputStream din = New DataInputStream (socket.getInputStream ()); DataOutputStream dout = New Data Optical Stream (socket.getOutputStream ()); While (true) {string message = din.readUTF (); SetPicture ("picture1"); }} Hold (unknownhostexception e) {// Todo auto-gener...

java - thymeleaf submit button code -

Can anyone explain how to use the Timileff button to work in the following code? Submit? & lt ;! DOCTYPE html & gt; & Lt; Html lang = "en" xmlns: th = "http://www.thymeleaf.org" layout: decorator = "master" & gt; & Lt; Top & gt; & Lt; Title & gt; LoginPage & lt; / Title & gt; & Lt; / Head & gt; & Lt; Body & gt; & Lt; H1 & gt; Login page & lt; / H1> & Lt ;! - You place any content in a piece below - will appear on the page - & gt; & Lt; Div class = "container" & gt; & Lt; Div class = "row" & gt; & Lt; Div class = "span8" & gt; & Lt; Pth: if = "$ {loginError}" & gt; Wrong user or password & lt; / P & gt; & Lt; Form th: action = "@ {/ new}" th: object = "$ {messageForm}" method = "post" & gt; & Lt; Label = "user" & gt; Username & lt; /...

regex - Split column by last word in sentence -

orarq (still another regex question) I divide the following column into two columns How to go about, make sure that the last column contains the last word in the sentence and everything in the first column occurs. X & lt; - c ("This is an exam", "1,2,3 Hello testing", "Foo Bar", "Random 214274 (% * (^ (* Sample", "Some Hyphenenet-Thing") Ends with me like this: col1 col2 This is a test test 1,2,3 Hello Foo Bar Random 214274 (% * (^ (* Sample of some hyphenate-thing This looks like a job to look forward to Find the spaces after things which are not spaces. split

sql - Group by clause to get name of highest paid employee -

I have a table worker with field department, employee wage salary, I pay the salary of the department and the employee's salary I need a query for the list of names I know it is simple I googled but got the answer like this, which only list of department and salary SELECT DEPT, SUM (salary) from staff group department; Supports SQL Server 2008 Window Functions It helps you do what you want. In the form of an archive list (Selection department, employee name, salary, DNSERA) (Department by Department of DESC Salary by the Department) RN From the employee) Selecting department, employee name, payroll from WHERE rn = 1

django - Exception Type: TemplateDoesNotExist -

पर्यावरण: अनुरोध विधि: जेगोनो संस्करण प्राप्त करें: 1.5 पायथन संस्करण: 2.7.3 इंस्टॉल किए गए अनुप्रयोग :( 'डीजेंगो Contrib.auth ',' django.contrib.contenttypes ',' django.contrib.sessions ',' django.contrib.sites ',' django.contrib.messages ',' django.contrib.staticfiles ',' allauth ',' Allauth.account ',' allauth.socialaccount ',' allauth.socialaccount.providers.facebook ',' allauth.socialaccount.providers.google ',' allauth.socialaccount.providers.linkedin ',' django.contrib.admin ') खाका लोडर त्रुटि: Django इस क्रम में इन टेम्पलेट लोड करने का प्रयास किया: लोडर django.template.loaders.filesystem.Loader का उपयोग: /var/www/testapp/templates/account/login.html (फ़ाइल मौजूद नहीं है) लोडर का उपयोग कर django.template .loaders.app_directories.Loader: /usr/local/lib/python2.7/dist-packages/django/contrib/auth/templates/account/login.html (फ़ाइल मौजूद नहीं है) / var / www / testapp / al...

html - Preload font HTML5, JS, Kinetic.js? -

I have a custom font ( * ttf ), that I use to write text I am using Kinetic. HTML canvas using JS Unfortunately, on the first shipments of the page it is not using my custom font, when it is good to reload the page. Can I pre-load CSS TopePrint-Override "> @ font-face {font-family: "barcode"; Src: url (../font / IDAutomationHC39M.ttf);} Thank you in advance for your support! I still had the same problem today ... I have finished it & lt; style & gt; @ font-face {font-family: 'archive black-regular'; Src: url ('../fonts / archivoBlack-Regular.ttf');} & lt; / Style> gt; style = "font-family: 'archivio black-regular'" & gt; & amp; nbsp; & lt; / div & gt; ; After that you can do normal kineticsjs stuff .. actually it is necessary to load the font before using it ..! I am not good in English, but I hope See that link also:

mysql - SQL join to get records that do not fall between two dates -

मेरे पास निम्न तालियां हैं: डिस्काउंट तालिका: आईडी नाम विवरण राशि डिस्काउंट _ एक्सक्साशन आईडी from_date डिस्काउंट_आईडी (डिस्काउंट टेबल के लिए विदेशी कुंजी) छूट अपवाद तालिका का उपयोग उस तिथि सीमा को स्टोर करने के लिए किया जाता है जहां डिस्काउंट को उपयोगकर्ता के लिए उपलब्ध नहीं होना चाहिए और इसलिए उसे प्रदर्शित नहीं किया जाना चाहिए। नोट करें कि डिस्काउंट और डिस्काउंट / अपवाद के बीच 1: M रिश्ते हैं दूसरे शब्दों में, एक डिस्काउंट में कई अपवाद हो सकते हैं। अभी, जिस तरह मैंने एसक्यूएल लिखा है, वह सभी डिस्काउंट ले लीजिए, फिर उनके माध्यम से एक सरणी में लूप करें, और डिस्काउंट_ एक्सप्शन तालिका का पता लगाएं अगर प्रत्येक डिस्काउंट एक विशेष तिथि सीमा के भीतर आता है मैं एसक्यूएल को संशोधित करना पसंद करता हूं ताकि एक डाटाबेस कॉल सभी डिस्काउंट को हड़प कर सके जो अपवाद दिनांक नहीं है जो एक निर्दिष्ट दिनांक सीमा के भीतर आते हैं। उदाहरण के लिए, अगर कोई उपयोगकर्ता 5 दिन की सेवा खरीद रहा है जो 2013-5-1 और 2013-5-5 के बीच चलता है, मैं यह पता लगाने के लिए कि डिस्काउंट के अपवाद जो 2013-5-1 और 2013-...

visual studio 2010 - DBGhost with TFS -

We are currently using dbigost from our SQL server database. The current version is the control tool VSS with which we are using dbigost. Now, we want to get rid of TFS and ask some questions about using DBSO with TBS. What can TDS work with? If so, is the output expected from TFS? A check in a database file (table, stored procedure, .sql file etc.) is similar to VSS b or after files are checked to run the build TFS is required and then sees the results of DBOHost Build? What do I have to say, to use DB, ghost with TFS, is it okay to put all this code from VSS to TFS or use it before SSDT Should be converted into a visual studio database solution and then put in TFS and then define the build in TFS which must be run after every checkin? DB Ghost works well with TFS and we have many customers using it. In short you just have to pull a command line from TFS Respository to a local folder and then point to DB Ghost on that set of folders, the rest are the same. ...

mapreduce - oozie hive hadoop jobs -

Hello I am able to run a hive command in the hive terminal, but when I try to run it through OoZ Then it finds some error ans log file to run it looks like the bottom 2013-03-21 11: 55: 48,973 information ActionStart X Command: 539 - User [Baidamin] Group [ -] token [] APP [hive-wf] job [0,000,005-130314190356094-oozie-biad-W] Action [0,000,005-130314190356094-oozie-biad-W @hhota node] Start operation E [0,000,005-130314190356094-oozie-biad-W @ Hive Node] -retry state with the user: userRetryCount [0], userRetryMax [0], userRetryInterval [10] 2013-03-21 11: 55: 57,940 warning HiveActionExecutor: 542 - user [Biadmin] Group [-] tokens [] APP [Ctta- WF] 55: 57,940 HiveActionExecutor warns job [0,000,005-130314190356094-oozie-biad-W] action [0,000,005-130314190356094-oozie-biad-W @ Chhatta node] Credit operation 2013-03-21 is vacant for 11 - 542 - User [Baidamin] Group [-] Token [] APP [HAW-WF] Job [0000005-130314190356094-OZY-Baid-W] Action [0000005- 130314190356094-O Could not fin...

Highcharts format -

I am trying to do the work of the format for the hierarchies. In a demo, there is the following call: $ .getJSON ('http://www.highcharts.com/samples/data/jsonp.php?filename = Range.json & amp; callback =? ', Function (data) {code to make charts When the call is made, the data similar to the following is returned: callback ([ / * 2009-01-01 * / [1230771600000, -5.8, 0.1], [1230858000000, -4.1, 1.4], [1230 9 44400000, -0.5, 4.1], [1231030800000, -8.9, -0.7], [1231117200000, -9.7, -3.7], [1231203600000, -3.4, 3.2], [1231290000000, -3.9, -0.2], [1231376400000 , -2.4, 6.7], [1231462800000, 3.8, 6.9], [1231549200000, 3.1, 6.8]]; The problem I am having is that I call my own AJAX I want to distribute the data through the medium, as a result, despite the graph data and some other things, I do not think the format is correct, so HC can read it, but there is no luck about the I formats. I think the problem 'callback ([]);' The container needs to be remov...

c# - Inserting the content to the colume in sqlite -

मेरी स्क्वाइट टेबल इस तरह है content_id content_no content_1 content_2 1 1: 1 NULL 1 : 1 पाठ 2 1: 2 NULL 1: 2 पाठ अब मैं "content_1" में सामग्री सम्मिलित करना चाहता हूं Content_1 के 1: 1 से सामग्री_ कोई मेल है। मेरा प्रविष्टि कोड इस तरह से है: cmd.CommandText = "सामग्री (content_1) मानों में डालें (?)" ; SQLiteParameter Field3 = cmd.CreateParameter (); cmd.Parameters.Add (फ़ील्ड 3); Field3.Value = नोड। इनरटेक्स्ट; लेकिन यह इस तरह की सामग्री को सम्मिलित कर रहा है content_id content_no content_1 content_2 1 1: 1 NULL 1: 1 पाठ 2 1: 2 NULL 1: 2 पाठ 1: 1 पाठ 1: 2 पाठ मुझे ऐसा नहीं करना चाहिए पिछले 2 लाइनों को पहली 2 लाइनों में जाना चाहिए का उपयोग कर (SQLiteTransaction SQLiteTrans = connection.BeginTransaction ()) ({SQLiteCommand सीएमडी = connection.CreateCommand ()) {cmd.CommandText = ("सामग्री अद्यतन सामग्री content_1 = '" + paraNode + "' जहां content_id = '" + + गणना "" "); SQLiteParameter फ़ी...

java - Looking for JDOM2 XPath examples -

I am using JDOM2 for the first time and I am looking for some XPATH based instances. Ex: My XML looks like this & lt; Root & gt; & Lt; Generic ID = "1" & gt; & Lt; Child id = "1" /> & Lt; Child id = "2" /> & Lt; Child id = "3" /> & Lt; / Parent & gt; & Lt; Generic ID = "2" & gt; & Lt; Child id = "1" /> & Lt; Child id = "2" /> & Lt; Child id = "3" /> & Lt; / Parent & gt; & Lt; Generic ID = "3" & gt; & Lt; Child id = "1" /> & Lt; Child id = "2" /> & Lt; Child id = "3" /> & Lt; / Parent & gt; & Lt; / Root & gt; My background. NET & amp; XPATH trussing system. XML is very easy with I am working on a new Java application where I need to use XML. I am planning to use JDOM2 I use DOM parsing I do not want to and I do not. I'm ...

tkinter - How to divide two user inputs? Python 3.3 -

I am creating a simple countdown clock at this level I have my GUI (I have already programmed) I want to take two user entries and want to do the value_a / value_b operation. Every time I do this I get type code: type / unsupported operand type (s) for: 'intervara' and 'interver' Here is the question in question: def mineTime (): mtime = ueAV / ueMY label_mtime = Label (text = mtime, fg = 'white', bg = 'gray'). Pack () Return # GUI object mGui = Tk () ueAV = IntVar () ueMY = IntVar () Any help will be highly appreciated! As with this example, use IntVar.get () method mtime = ueAV.get () / ueMY.get () You probably want to convert to the first float if you are on Python 2 Or it will only complete the integer division. mtime = float (ueAV.get ()) / UeMY.get () As a result, you change the result for the label into text This line needs to be changed label (text = str (mtime), fg = 'white', bg = 'gray')...

javascript - Check if a field of type string/number is empty -

I am working with my application. I have columns that differ on numbers from string datatype, I am facing some problem while one grid is valid for the vacuum of cells. It seems confusing and frustrating as easy as It is that I'm using to check if the field is empty: If (value == "") {// work here} This works fine for columns with the string datatype, but when the datatype If the number is the value of , then it fails to check the value as at that time nan I have mentioned several methods, lake Neither in vain, I also want to avoid nested or unnecessary IFS in this case .. As a check can be done to check as if (! Value) {// work here} Which is true 0 , "" , zero , undefined , false and > nan or if you want to test, the field is empty not you only have one authenticity Values ​​ If (value) {// works here} Which evaluates true If the value is not not false (none above)

If div doesn't have img tag, add a "no image" img to div (Javascript or Jquery) -

I am trying to include an IVG tag in a div element if the div element does not already have an IMG tag What is the best way to use? I want to see the answers in javascript and jquery so that it helps me learn but one is ok either. I have used some jquery efforts. (Not) and .empty () But I think I am not thinking it correctly. Try this: if ($ ('$ your_div' ). ('Img'). Length == 0) {$ ('# your_div'). Prepaid ('& lt; img src = "img / your_image Jpg" / & gt;'); }

ios - An Xcode macro for creating property setters -

I have a class with many properties when each property is set, I need to update the UI of my application is needed. Sets look something like this: @ synthesis tracklightlight color = _trackHighlightColour; - (zero) setTrackHighlightColour: (UIColor *) trackHighlightColour {_trackHighlightColour = trackHighlightColour; [Self update UI]; } Instead of typing it 10 times, I would like to use the macro. This is what I have done so far: #if! Defined (PROPERTY_SETTER) #define PROPERTY_SETTER (PROPERTY_NAME, UPPER_PROPERTY_NAME) @ synthesis (PROPERTY_NAME) = _ (PROPERTY_NAME); \ \ - (zero) set (UPPER_PROPERTY_NAME): (UIColor *) (PROPERTY_NAME) \ {\ _ (PROPERTY_NAME) = (PROPERTY_NAME); \ [Self update UI]; \} #endif Unfortunately, this is something problems. Required to repeat (miner) property with repeat name The compiler does not allow me to name the property, instead I have to pass it one As a string: @implementation FooClass PROPERTY_SETTER (@ "trackHighlightCo...

javascript - Basics for a .click(function) with jQuery? -

I'm very new to both jQuery and HTML in general. I was just wondering if someone wrote me from this small jQuery script trying to. I have in my HTML document: & lt; Body & gt; & Lt; Div class = "banner" & gt; & Lt; NAV & gt; & Lt; Ul & gt; & Lt; Li id = "home" & gt; & Lt; A href = "#" & gt; Home & lt; / A & gt; & Lt; / Li & gt; & Lt; Li id = "about" & gt; & Lt; A href = "#" & gt; About & lt; / A & gt; & Lt; / Li & gt; & Lt; Li id = "Contact" & gt; & Lt; A href = "#" & gt; Contact & lt; / A & gt; & Lt; / Li & gt; & Lt; / Ul & gt; & Lt; / Neo & gt; & Lt; / Div & gt; & Lt; Script type = "text / javascript" src = "my_script.js" & gt; & Lt; / Script & gt; & Lt; Script type = "text / javascript" src = "http...

c# - Replace entire text with XXX using RegEx -

How can convert entire text to XXX using C # in regx? This will change the number of x which will be equal to the length of the string. For example xxxxx has the original text apple XX with high XXXXXX with cricket > outstanding With XXXXXXXXXXX string mytext = "apple"; // I get regexp to get string output = "xxxxx" for the following line; // Apple will replace with 5x x because without the apple Long = 5 without regex: string S = "The original text for example is replacing the apple"; Var ChangeWord = "Apple"; Var s2 = s.Replace (replaceWord, new string ('X', replaceWord.Length)); The new string ('X', replaceWord.Length) creates a string with 'X' characters with the same string as replaceWord .

css - Html email align text and image -

Image
I'm having trouble aligning an image with some text. The problem is only Outlook 03.07 & amp; 10. To get a better understanding of my problem, see this picture: This is my code: & lt; Td valign = "middle" style = "color: #fff; font-size: 18px; padding-left: 3%;" Width = "600" height = "34" bgcolor = "# 1a292f" & gt; & Lt; Span class = "nonmobile_content" & gt; Ondag & lt; / Span & gt; & Lt; Span style = "font-weight: bold" & gt; 21.03 & lt; / Span & gt; & Lt; Span style = "color: # 87 bcd8;" & Gt; 2013 & lt; / Span & gt; & Lt; Span style = "color: # 87 bcd8;" & Gt; Uke 11 & lt; / Span & gt; & Lt; Period & gt; & Lt; Img src = "retriever-logo-top.png" align = "right" & gt; & Lt; / Span & gt; Is there any reason that you are putting all of this Are instead of p...

get to all attribute value using xpath -

यह मेरी एक्सएमएल फाइल है: - & lt; परिणाम मान = "1" & gt ; & Lt; परिणाम मान = "111" & gt; & Lt; Country_Code मान = "IN" / & gt; & Lt; देश_नाम मान = "भारत" / & gt; & Lt; क्षेत्र_नाम मान = "गुजरात" / & gt; & Lt; शहर का मूल्य = "राजकोट" / & gt; & Lt; loction lat = "13.060422" lng = "80.24958300000003" / & gt; & Lt; / परिणाम & gt; & Lt; परिणाम मान = "222" & gt; & Lt; Country_Code मान = "केई" / & gt; & Lt; देश_नाम मान = "केन्या" / & gt; & Lt; क्षेत्र_नाम मान = "विहिगा" / & gt; & Lt; शहर मूल्य = "काकामेगा" / & gt; & Lt; loction lat = "0.1182473" lng = "34.7334515999997" / & gt; & Lt; / परिणाम & gt; & Lt; / परिणाम & gt; यह मेरा कोड है: - & lt; html & gt; & Lt; शीर्ष & gt; & Lt; स्क्रिप्ट ...

ruby on rails - Override method with an empty one -

What is the emptify method in Ruby? That is, in one sub-class, if I want to override a method with some method, then there is another syntax from this: class Adx xx [..a few ..] End and class B & LT; A def xx # dot notthing and end I would like to know if there is such a keyword ... class B & lt; A void_method: XX termination ... because this code is clear for maintenance. It is not, and it really does def xx There will be more keystrokes; However you can easily add this method to class A def self.void_method name define_method (name) {} end end Or you can add it to an object if you are going to use it in more places.

perl - Single sign on with windows login -

Now, I am developing on a single sign so that the windows login can be used to reach the local website, I'm writing a code in Pearl, I have no experience in doing something, because there are some complex steps in it; Authenticate user and password with Kerberbors I do not know what to do, can someone give me a tutorial link or share ideas? Or do I have to teach that what I have to do? I do not know about Pearl, but I did it using curl to urlconnect in java Since you want SSO with Windows login credentials, you want to use your default credentials. This means that you do not have to use the Kerberos API directly to get a credential and convert it to a GSSAPI credential. What do you want to have access to Gssapi credentials then you use: - To make reference to GSSAPI and pass the required token for authentication Can be used for. In the case of the SSO, use the default credential (GSS_C_NO_CREDENTIAL) in the credential argument. As far as the URL is used, you have...

windows phone 7 - How to check if user have already used the app for 3 days sequenced -

I am writing a Windows Phone 8 application and I want to know that the user has already sent my app for 3 days For consistent use or not at least once in a day. If they do this, then I give them a tip about the present. Here I want to know how can I check that the user has used my app for 3 days continuously (at least my app is required to use Store time in your app storage. Update: / Strong> This will make 4U: Private zero application_Launching (Object Sender, LaunchingEventArgs e) {EnsureCheckThreeDaysInarow ();} Private Zero Application_Activated (Object) Sender, Activat EdEventArgs e) {EnsureCheckThreeDaysInarow ();} Public Bull Ensure Checkthread () {Separate storage settings settings = isolated storage settings. Application settings; if (settings.Compatible ("three magicals") {var data = new list & date; date time & Gt; (); if (data. Count ()> gt; = 3 & amp; !! data. Any (a = & gt; a.Date == date time.Net.Det)) data. Remove (data....

ClassNotFoundException when trying Speech Recogniton in Java -

सार्वजनिक स्थिर शून्य मुख्य (स्ट्रिंग [] args) {try url; If (args.length & gt; 0) {url = नई फ़ाइल (आर्ग्स [0])। ToURI ()। ToURL (); } और {url = हैलोवाल्ड.क्लैश.गेटरेसोर्स ("helloworld.config.xml"); } System.out.println ("लोड हो रहा है ..."); कॉन्फ़िगरेशन प्रबंधक = नया कॉन्फ़िगरेशन प्रबंधक (यूआरएल); System.out.println ("सफलतापूर्वक कॉन्फ़िगर किया गया"); पहचानकर्ता पहचानकर्ता = (पहचानकर्ता) cm.lookup ("recognizer"); // मुझे इस लाइन में अपवाद मिला System.out.println ("पहचानकर्ता तैयार"); माइक्रोफ़ोन माइक्रोफोन = (माइक्रोफ़ोन) सेमी। दृश्य ("माइक्रोफोन"); System.out.println ("माइक्रोफोन तैयार"); / * पहचानकर्ता के लिए आवश्यक संसाधन आवंटित करें * / recognizer.allocate (); / * माइक्रोफ़ोन रिकॉर्डिंग को तब तक जारी रखेगा जब तक कार्यक्रम से बाहर निकलता नहीं * / if (माइक्रोफोन.स्टार्टरटिंग ()) {System.out.println ("कहें: (सुप्रभात | हैलो)" + "(भिक्शा | इवानोडो | पॉल | फिलिप | रीटा | विल) "); जबकि (सच...

css3 scale transform on parent div but keeping constant size in some of the associated divs -

I am using a conversion on a css3 scale to scale a div in which the other divs are in. The problem I feel is that I need to keep some internal devices, basically as if they were not scaled, they should not be resized, although I have everything in between to the parent department Scale is required. How can you reverse the scaling in some of the divs? I'm trying to implement an inverse scaling. If the overall dev has implemented the value of 1.5, then I want to know what I should respect now to scale back to other devices visually, to return them to see how they were already seen. If the parent is scaled with a factor of , Then you have to scale the children to keep the size of 1 / 1.5 = 0. (6) . In general, the conversion on a scale applied to parents to cancel a child element is done on a scale that is done on a scale of a , you need to apply conversion on baby scale to another scale of factor 1 / a . You need to: Before you do anything, calculate the ...

enthought - Is Pandas included in EPD Free -

The excited site says panda is included, but I have installed both windows and linux and doing an 'import pandals' Is "import error: no module named pandas found" Do Ponds include EPD Free 7.3? Update: OK I was slightly misguided with the EPD free download page, which says that the EPD includes Panda, but if you go to the detailed list of libraries EPD free 7.3 installer did not ship with Panda, and hence import error . However, if you have registered EPD free account, you can use pandas to install enpkg . For more information see this

multithreading - C++ - init & destory of mutexes and spin-lock -

Is it possible to assign it and it is possible to process a mute in one thread and transfer it to another ? Thanks Yes mutex process resources are shared between threads . Just make sure that any other thread can be reached or after that Mute X is reached. This is a very common pattern in which an object with a Mute X is formed and later destroys the Mute X when the object is destroyed. It will be very upset if you have to ensure that the same thread has destroyed the Mute X - this thread can not be present any more. If this is a mutux shared process, then the process of making it can not exist any more.

Can PHP write SOAP function base on sample XML file? -

I have a sample XML file that is connected to the SOAP server and "category" for "user1" for "pkg01" Setting Attribute When running this XML file on the SOAP UI, it works. And I want to make SOAP function for this task via PHP. But I do not know how to start, and how many functions do I have to call? Anybody please help. & lt; Soapenv: envelope xmlns: soapenv = "http://schemas.xmlsoap.org/soap/envelope/" xmlns: ws = "http: // ws .subscriberservices.sandvine.com" & gt; & Lt; Soapenv: header xmlns: svsec = "http://services.sandvine.com" & gt; & Lt; Svsec: username & gt; Username & lt; / Svsec: username & gt; & Lt; Svsec: Password & gt; Password & lt; / Svsec: Password & gt; & Lt; / Soapenv: Header & gt; & Lt; Soapenv: body & gt; & Lt; Ws: SetSubscriberAttributesRequest & gt; & Lt; Debug & gt; False & lt; / Debug & gt; & Lt; Bul...