Posts

Showing posts from May, 2011

Setup Cloudera Quickstart behind proxy -

While running behind the proxy in my organization, I can not get a quick start job (when it runs right at home So I believe it's firewall or more likely proxy). Loading the QuickThat Hue, but complains that Ozzy, Impla, HBS (goes ... in the list) has problems. For example, the Hbase server "can not connect to the localhost: 9000" This location lists the location in / var / but this location can not be used due to permissions. I have also tried to set up a proxy which allows the sandbox to connect to the internet but it does not start the color at all but rather "loading". I have also tried both with NAT and Braded Adapter Please Try to make a SST tunnel, it is used to go through the firewall to connect the hi-fi on the actual cluster. To do this: ssh -l 9000: 127.0.0.1: 9000 [ip_of_hue_host] Then your web browser In settings 127.0.0.1, the proxy changes on port 9000. If you are on windows, you use putty or slab to do this, if you are on

Jquery toggle link not working on phone/tablet -

I have a link that toggles the visibility of a certain text element on a webpage. Example can be seen here: (Near the text plus icon "Last Nosti izdelka"). It works fine on desktops, but does not work on any phone (android) or tablet (Android). Not yet tested on the iPad, but still ... it should work anywhere. The link has been written as follows: & lt; A href = "javascript: zero (0)," style = "display: block" onClick = "toggleFeature ()" & gt; & Lt; Img id = "togglePic" src = "/ images / plus.png" border = "0" & ​​gt; & Lt; / A & gt; and togglefactory is a function that is defined: function togglefeature ($ {$ ('# features-container'). Toggle ( 400); Pic = $ ('# togglePic'). Attr ('src'); If (pic.indexOf ('plus')> 0) {$ ('# togglePic'). Attr ('src' '/ Images / minus.png');} and {$ ('# togglePic'). Attr ('src

set value in javascript class -

I have written ia class for practice, can someone tell me why 2 prints instead of 1? function hnclass () {var h = 1; Function print () {console.info (h); // Printed 1} return {item: h, printout: print}} HC = new HClclass (); Hc.item = 2; Hc.printout (); Console.log (hc.item); // print 2 with hc.item = 2; I am changing the value of item , after which, when I am calling a print function, it should print 2 . I was wondering if the setter function in such a class is possible without the set price? Anyone can tell me why it prints 2 instead of 1 Because setting the value of a variable or property never changes the value of any other variable or property, here is a simple example: < Pre> var a = 1; Var B = A; A = 42; Assigning a new value to to a does not change the value of b , even if b is basically A . In your case, simply assigning a value to hc.item just h . I was wondering if a setter function is possible without such a set value in this

how to disable php warning mk.dir() -

This is about this script: when uploading a file, first check that the directory "upload" exists or not If not: directory. When a directory is already present and uploading a file, a warning comes: WARNING: mkdir () [function.mkdir]: File exists .... How to disable this warning? Array Export $ Exits = Array ("gif", "jpg", "jpg") with {// permission ($ _ server ['REQUEST_METHOD'] == 'POST') {// with permission , "Png", "zip", "html", "html", "js", "css", "low", "tctt", "php"); $ Temp = Explosion (".", $ _FILES ["file"] ["name"]); $ Extension = end ($ temp); // map "upload" if $ root = '/ upload /' does not exist; If (! Is_dir ($ root)) {mkdir ("Upload /", 0777); Echo 'map upload is created!'; If (($ $ _FILES ["file"] ["type"] == "image / gif&q

average - AVERAGEIF in Excel with irregular range -

I know that this is a very basic question, but surprisingly, I can not find a solution for this. . I'm looking for the average of every 10th cell that does not have 0 values ​​but for some reason the syntax does not work. I just can not take a border between the first and the last cell because there are other values ​​in it, which I do not want to be part of the average. I have something to expect to work properly, but it returns an error message. = AVERAGEIF (C4 + C14 + C24 + C34 + C44 + C44, "& lt;> 0") Any thoughts? Thanks a bunch. I have solved my question (in case anyone comes to this in the future). Instead of using AVERAGEIF, you can use a combination of SUM and FREQUENCY functions. To find the average of these cells, [C4 + C14 + C24 + C34 + C44 + C44] but exclude all 0 values, it looks like: = SUM (C4 + C14 + C24 + C34 + C44 + 54) / Index (Frequency (C4 + C14 + C24) + C34 + C44 + C54), 0), 2) Credit the blog:

c# - Calling pageload after some operation -

मेरे पास निम्न कोड के साथ एक aspx.cs फ़ाइल है सुरक्षित शून्य पेज_लोड (ऑब्जेक्ट) प्रेषक, इवेंटएआरजीएस ई) {// कुछ कोड} सुरक्षित निकास निकालाकब (ऑब्जेक्ट प्रेषक, इवेंटएआरजीएस ई) {// कुछ कोड} निकालेबैक की अंतिम पंक्ति में मैं पृष्ठ को पुनः लोड करना चाहता हूं और फिर से पेज_लोड को कॉल करें कृपया आप उपयोग कर सकते हैं < कोड> Response.Redirect (Request.RawUrl); यह आपको एक ही पृष्ठ पर पुनर्निर्देशित करेगा और पेज_लोड () को कॉल करेगा।

c# - Wcf service Host on another computer -

I've got some topics about this but I can not find any solution for this. When I host my WCF service on the same machine, everything is fine. But when I host it on another machine compared to the client then the problems are visible When I open the Open function from the client side, then the timeout exception occurs. Server Side Config: & lt; Service name = "connectors appconnector" & gt; & Lt; Endpoint address = "" binding = "custom binding" binding configuration = "messaging" contract = "contracts.isc contract" & gt; & Lt; / Endpoint & gt; & Lt; Endpoint address = "Max" binding = "MaxHttpending" contract = "IMAXADEXXchange" /> & Lt; Host & gt; & Lt; BaseAddresses & gt; & Lt; BaseAddress = "& lt; ADDRESS & gt; / Messenger Service" / & gt; Add & lt; / BaseAddresses & gt; & Lt; / Host & gt; & Lt; / Se

sql - Classic ASP check with result set changes -

I hope I can tell the meaning! I have a SQL query that was created as a view to make data easier to pull. However, I have a one-week number column that gets the date and then calculates the week number. I have everything in an FPDF document, but after changing the number of weeks I need to divide the cells, then display the total for the number of that week. How will I check when changes in the column of the week? I can not think about its solution This is the code that does not currently work, there is a very high likelihood that this is not correct. If iCounter & gt; 1 then Newsm = RS ("W"), the RSSSSS SSS SSSSSSSS. Sss (Newsum, RS ("W")) = 1 Then PDF.CL 15,5, "EOM", 1,1, "C", 1 other RS.movenext pdf.Cell 15,5, "", 1,1 , "C", 1 end if the end In this scenario, There are different ways for me personally, I've always found it to be much easier and more efficient and using ADODB.Recordset by using

How to display a MySQL column value with PDO in PHP? -

I want to display a column in PHP. For PDOs, I use this code: $ db1 = new PDF ('mysql: host = localhost; dbname = db; charset = utf8', 'root', '' ); $ Db1- & gt; Set Attribution (PDO :: ATTROOSACLENLLS, PDO :: NULLOSOTOTTI); And this code does not work: $ qry = $ db1-> Prepare ("select user_data where user_id = $ userid"); $ Line = mysql_fetch_array ($ sql); Echo ['user_name'] per line; How to do that? Thank you! Edit: My code: $ db1 = new PDO ('mysql: host = localhost; dbname = db; charset = utf8 ',' Root ',' '); $ Db1- & gt; Set Attribution (PDO :: ATTROOSACLENLLS, PDO :: NULLOSOTOTTI); $ Qry = $ db1- & gt; Prepare (select user_id from user_data; user_id =: id range1 '); $ Qry - & gt; Execution (array (': id' = & gt; $ userid)); $ Line = $ sth - & gt; Bring (); Echo $ qry - & gt; User name; And it's not eating anything and I want to search by $

Arelle automate small procedure to trasfer data to Excel by using Python -

If we take these simple steps, then we will use the SEC Edgar database to bring data into ARL program. These steps are: Open the ORLL and open the icon-button at the top of the ORLLL click on Open Web File. Enter a box URL Pop up above Please provide a URL in which the XBRL example (you can) and click OK. When the download is finished (it takes ~ 10 seconds), click on the Scale button, which has the icon-buttons of a scale, from the top left side of the Arial screen to the second sketching. Here is a simple process that I want to do in Python automatically: There is a tab in the Arl, which is called The fact table is named in which there are some items that can expand in a tree by clicking on the plus sign beside them. Without if you open any of these right click for one of them 0110 - Statement - Consolidated balance sheet which is another item, you can copy it to clipboard and then click on table . Now please go to Excel and select Cell A1 and

.htaccess - AMRQ (Another mod_rewrite rule quest) -

Reference here: I know, to modify the URL inside my php code, to get into the address bar Instead of http: //website.tdn/somepath/news-246-some-title.html : http: //website.tdn/somepath/lireNews.php? Idnews = 246 and titre = some-title (I mean both URLs are working but lireNews.php? Blah will have to restart news - ### - title .html) My HTACS file here: option + rewrite engine on follow-up clerks ^ lirnewsfip? IDNews = ([0- 9] +) In fact, this code is not working at all, thanks to the news-246- . A few header APIs give me a 404 error and lireNews.php? Idnews = 246 and titre = some-titles, giving me a webpage without redirection. With your comment in mind, you can put this code in your htaccess (i n some paths folders) RewriteBase / somepath / RewriteCond% {THE_REQUEST} /lireNews\.php\?idnews= ([0-9] +) on RewriteEngine ; Titre = ([^ \ s] +) [NC] rewritable news-% 1-% 2.html? [R = 301, L] RER RT. ^ ^ - ([0- 9] +) - (. +) \ Html $ lireNews.php? Idnews = $ 1

java - Using multiple keystores in Tomcat -

I have several major stores: 1 of the stores are common keys used by my application to connect to external SSL services. Also I have the main stars K2 that include the certificates used by the client application, when it connects to my server application. I use -Djavax.net.ssl.trustStore = & lt; Path for K1 & gt; and & lt; Connector port = "8443" SSLEnabled = "true" maxHttpHeaderSize = "8192" protocol = "org.apache.coyote.http11 .Http11Protocol" maxThreads = "150" minSpareThreads = "25" maxSpareThreads = "200" enableLookups = "false" disableUploadTimeout = "True" Accept count = "100" scheme = "https" secure = "true" clientAuth = "false" sslProtocol = "TLS" keystore = "& lt; K2"; KeystorePass = "..." keystoreType = "JKS" key alias = "tomcat" /> In my tomcat config When I conne

Loading a file from res folder in android test project -

In a test case I must load the picture that is available in the folder in my test project / myproject / res / drawable-hdpi / attachment.png I used it by using InstrumentationTestCase and before saving the file in the / res / raw folder and loading it with it I have tried, but my attachment in the R file is not enclosed. Reference test consensus = getInstrumentation (). GetContext (); InputStream input = testContext.getResources (). OpenRawResource (R.raw.exe) Any ideas? Thanks You should not use raw, used to save pictures Known asset;)

Add using MicrosoftResearch.Infer.Maths; directive to C# Visual Studio 2010 project -

I have already asked this question already, but maybe I added too many details. I'll tell it as well: I want to add it: using MicrosoftResearch.Infer.Maths; The Visual Studio 2010 Professional does not recognize it in my C # project and I can not find it in Net Notes. Update: Update: After installing the Infer.NET 2.5 library, I was able to use MicrosoftResearch.Infer instructions. Microsoft Research Name the name, replace it with only graphs, models, transforms and visible sub namespaces. In it there is no sub-namespace in which the method should include Gamma Lane. How do I add Math sub namespace? I would like to see a very simple whole C # project which has a gamma lane method and is actually compiled with Visual Studio 2010.

c# - NancyFx and unit testing Response.AsFile(...) fails with NotFound -

यह मेरी (सुव्यवस्थित) मॉड्यूल है सार्वजनिक वर्ग MyModule: NancyModule {सार्वजनिक MyModule ( ): बेस ("/ पथ") {जाओ ["/ {filename}"] = x = & gt; {Var फ़ाइलनाम = (स्ट्रिंग) x.filename; Var पथ = पथ। कंबाइन ("फाइल", फ़ाइलनाम); अगर (! फ़ाइल। एक्सिस (पथ)) नई फ़ाइल नॉटफ़ाउंड अपवाद फेंकें (); वापसी प्रतिक्रिया। एफ़फ़ाइल (पथ); }}} यह कोड काम करता है और ब्राउज़र में सही फ़ाइल को सफलतापूर्वक बचाता है। मैंने एक परीक्षण नहीं लिखा है: [TestMethod, तैनाती इत्यादि ("file.txt", "फाइल")] सार्वजनिक शून्य CanDownloadFile () {var पथ = @ "फाइल \ file.txt"; Assert.IsTrue (File.Exists (पथ)); Var बूटस्ट्रैपर = नया MyBootstrapper (); Var ब्राउज़र = नया ब्राउज़र (बूटस्ट्रैपर); // नैन्सी से। टेस्टिंग var परिणाम = ब्राउज़र। ("/ पथ / file.txt", के साथ = & gt; {with.HttpRequest ();}); Var बॉडी = रिजल्ट। बॉडी.एस्टस्ट्रिंग (); आश्वासन। आरईपी (एचटीटीपीटीटस कोड। ओके, परिणाम। स्टेटस कोड); } इस कोड के साथ मेरा परीक्षण विफल हो जात

c# - How to connect but wait to send any header using HttpWebRequest? -

I want to request an https but I want to start the connection first without sending the header, even < Code> GET / Something / HTTP / 1.1 In other words I want to keep the connection ready and send as much as I want. I would have done this by using a simple TCP / IP, but I am currently running. I've tried the SendChunked property but it only sends the post to post the data. Edit Send a web request now I have practiced the waiting part and therefore need a detailed explanation on this. is not. short answer before pre-warming the connection to the HttpWebRequest request Do not show any interface to allow. Inspiration The reason for this is because the operator has to wait an RTT before sending any data to open a TCP connection and because HTTPS To be able to perform another RTT wait may be the key exchange. If you had an RTT from the client's data center of 50ms, then this kind of connection was received from 125 ms (2.5 RTTs for sending requ

angularjs - Is there a way to populate a angular-ui-bootstrap dropdown-toggle every time I open it? -

I want to toggle a dropdown like Facebook has made for notifications. I need to populate a list of notifications on dropdown-toggle every time I open it with $ Http or $ resource. I can not find any events or any variables to see. This document is here: Whatever I have found is that the CSS class is removed / removed from the "open" dropdown when it opened / closed I could see it, but it Sounds like an ugly hack. Is there a better way to do this? Thank you. If you have the dropdown.js () of the Connular-U that GitHub repository In, they have unearthed a incompatible attribute that you can use to find out when you open the dropdown. It seems that this angular-eye is not in the 0.10 release of bootstrap, so you have to build your own custom. Although there is a toggle function in it, but it is a small bug where it is not the first time you open it, then remove it, I have made a fix for this which is in the planker, which I later Will link. to angular.i

C How to exit the command prompt -

I am trying to write a program in C that executes another program and even appears I do not give it, but the way I made the code for some reason does not stop at all, only when I press the red X button on the top right, if you know that it is, then here is the code I have used Hope you can help. # include & lt; Stdlib.h & gt; Int main () {system ("% appdata% / file.jar"); Exit (0); Return (0); } As you can see, I am not very skilled in this particular programming language. OK This can only be done with a simple start or just a batch script here's an example Is: #include & lt; Stdlib.h & gt; Main () {system ("start% appdata% / file.jar"); Return (0); } is batch scripting: start% appdata% / file.jar I'm not quite Understand why it is necessary to be a complete binary, but it should solve your problem (believe it is Windows) The author changed the path, it seems that editing credits in order to obtain. Updated with i

javascript - IE 10 not respecting z-index -

My page has a div with relative size and position. (Unfortunately I do not have permission to share this code, so bear with me if you can) I wanted to be an incompetent input when I was disabled, but as you can see that disabled inputs do not like the events that click on the fire I came up with a solution in which to put a input Which is positioned inside a relatively located container with exactly the same conditions and position, with a perfectly located div , I double-click the div's display none And would like to change. It works well in other browsers but IE 10 does not respect z-indexes that I have placed on the device and input. There is a z-index of 2 in the div and 1 in the input is z-index , but IE ignores this and lets me through "to" and "through "Allows you to click on In the form of input if the div were not there I am not saying to debug your code for any reason because i can not show it, but if i have a common problem / bug, then fo

c# - Search a row from a table which starts with asterisk symbol -

I am uploading an excel file using c # and I select the name column from that excel file I am here. A very string in the column starts with the number symbol (*). I need a query to select all the rows. Please help me in this. I tried the sample code below but it is not working properly. A lot of it is returning, which does not have an icon (*) secure void btnUpload_Click (Object Sender, EventArgs E) {// String FilePath = ConfigurationManager.AppSettings ["FilePath"] Upload To get the path from the web.config file. ToString (); String file name = string Empty; // To check if the file is selected or not then uplaod (BrowseFile.HasFile) {try {string [] allowdFile = {".xls", ".xlsx"}; // Here we are only allowing Excel files to verify the selected file PDF, or fileX = System.io.path.gate extension (browse file.posted.file.philname); // Check whether the selected file is valid extension or not, is bool; ValidFile = allowdFile.Contains (FileExt); If (!

Cassandra CAS DELETE does not work? -

I am using Casandra 2.0.6 with the datastax java cassandra driver 2.0.0 in the cluster of three nodes: I am inserting one immediately after deletion: "Where to delete key from x =? IF version =?" And then a quick check whether DELETE was successful. The result is that sometimes it happens and sometimes it does not happen. So I'm wondering if CAS Delite is actually implemented in these versions? Just like "if possible," it seems to be implementing CAS Daily ... it is not sure which edition can it be found or is it going to continue?

javascript - Mapbox GeoJSON loaded via local URL: icons not showing popup properties -

In my web site, I am using a mapbox map to load icons from such URLs such as: / * myMapbox.js * / map = L.mapbox.map ("map", "somemap.hhlj93e3"). Setview ([47.60, -122.33], 13); ... .someAjaxCall {allMyIcons = L.mapbox.featureLayer () .loadURL ("/ updated ecommons"); AllMyIcons.addTo (map); } The icons loaded through / updatedIcons are visible, but they were not clickable. I solved the problem of clicking on this, however, even when I click on the icon, the properties for each feature (icon) received through / updatedIcons calls do not show as a popup (When I click on the icon) Note that the mouse created for the somemap on the Mapcode site is shown on the map, and they are clickable, and a popup looks happily for those the same map At . Here's a sample of my GeoJSON loaded through / updatedIcons : [{"type": "feature", " Geometry ": {" type ":" point "," coordinate ": [-

JavaScript: Looping through a prototype function's variable -

I am trying to do something like this: var MyFunction = function (name ) {Var handles = this; the handle. Name = name; } Var LoopThroughNames = function () {for (name in MyFunction) {// it does not work console.log (name); }} Var Handle 1 = New MyFunction ("Hello World!"); Var Handle 2 = New MyFunction ("Test"); LoopThroughNames (); Sorry for the lack of code tags, I am on my phone. You are confusing class with this example: Name Property Example: has been created with new ones. The function MyFunction itself is not affected by those changes, therefore, myfunction does not have any assets. EDIT: After the idea of ​​zoommands, if you want to keep all the examples prepared, you can put them in an array and why this array is stored as my simplified property Do not. After some name changes and so on, I suggest: function myclass (name) {this.name = name; MyClass.instances.push (this); } MyClass.instances = []; Function printInstancesProperty (targ

vba - ACCESS List Box user input -

Okay, what am I trying to do here I have to take a list box in column A which is a preset val and the user is allowed to enter values ​​in columns B and C. I will take any line that is updated to the user and it can be saved in the other access table using Revision_Reason_CD and package_ID. Package ID will be provided by the form table 1 tbl_Revision_Codes fields Revision_Reason_CD Revision_Reason Table 2 field Package_Number Revision_Resion day to resolve the number of items I'm fine with updating Table 2 I need help setting the list box, user can enter value.

Association Hibernate mapping -

I want to create one-to-one relationship in hibernate (XML mapping). There are so many examples showing how to do it. A popular example is an address with such a person. Person has got a foreign key to know the table. To be able to make a person's record without any such address, you make the foreign key faucetable. It does not want me to. I want to contrast my database with a table "merchants" and a table "merchant settings". Each merchant's remittance record is for a merchant and has received a foreign key merchant ID for this. (In this way, I can add the merchant record without any setting.) In my code, I have a class merchant with the property's settings, what should I see mapping? (I do not want to use 'component'. The table "Merchant Settings" has got its own private key.) Does anyone know how to do this? [Update] Because now I want to use the same primary key proposed by Kiribsappa GC, I decided to add a foreign

Is it possible to associate an Elastic Network Interface to an Opswork instance? -

I want to use the elastic network interface with pre-configuration examples created in AWS Opsworks so that I have some candidates Internal IP When I configure all of my services, to use it, I still do not see a way to do this in the UI, whether to do this through a recipe or custom JSAN That came from the smart way? You can add an elastic app with Opus Works through the Opsworks API. Boto; Which is a dragon library for aws api that will allow you to do exactly what you are looking for. The specific method to do this is: associate_elastic_ip (elastic_ip, instance_id = none) < / Div>

node.js - Remembering a value -

I have a nodes application that is applicable to it. This app has a counter variable. Every time a certain event occurs, this counter variable has increased. Now, I do not want to lose the value of this counter. This is the situation that the NodJS app is restarted, I want the value of this counter set before it was restarted. In other words, I should remember a value Is there an add-on or is it possible to set environment variables or something in it? You have to save the price somewhere else. You can save it in a file or in a database. Given that your app is not looking super complex, a file probably makes the most sense. Use found in node core. var fs = need ('fs'); // save the counter value to the file. Function Saving Counts (calculation) {fs.writeFileSync ('counter.dat', counting); } // Recover counter values ​​from file function getCount () {return parseInt (fs.readFileSync ('counter.dat')); } If you want to go with a simple name /

r - Is there any way to fit a `glm()` so that all levels are included (i.e. no reference level)? -

Image
कोड पर विचार करें: x & lt; - read.table ("http: / [/ Data.princeton.edu/wws509/datasets/cuse.dat ", हैडर = TRUE] [, 1: 2] फिट & lt; - glm (शिक्षा ~ उम्र, परिवार =" binomial ", डेटा = x) सारांश (फिट) जहां आयु के चार स्तर हैं: "& lt; 25" "25-29" "30-39" "40-49" परिणाम निम्न हैं: तो डिफ़ॉल्ट रूप से, स्तरों में से एक एक संदर्भ स्तर के रूप में प्रयोग किया जाता है क्या सभी 4 स्तर + अवरोधन (अर्थात कोई संदर्भ स्तर नहीं है) के लिए glm आउटपुट गुणांक है? एसएएस जैसे सॉफ्टवेयर पैकेज डिफ़ॉल्ट रूप से करते हैं, इसलिए मैं सोच रहा था कि इसके लिए कोई विकल्प था। धन्यवाद! सूत्र , विशेष रूप से, + 0 को अपने मॉडल विनिर्देशन में शामिल करने का अर्थ देखें ... < कोड> # नमूना डेटा - व्याख्यात्मक चर (सतत) x & lt; - runif (100) # स्पष्टीकरणीय डेटा, 3 स्तरों के साथ कारक एफ & lt; - as.factor (नमूना (3, 100, TRUE)) # परिणाम डेटा y & lt; # इंटरफ़ेस सारांश (जीएलएम (y ~ x + f + 0)) के साथ # मॉडल: (# 100)

php - Using PayPal Integration Wizard: Problems with empty variables -

What do I do: The client defines a very difficult product. The price is calculated by javascript according to different parameters. The customer tells that he wants to pay with PayPal and sends the form. While examining the contents of the form, I want to respond to their wish to pay through PayPal. Integration Wizard I have applied paypals expresscheckout.php and paypalfunctions.php I set the variable at the beginning of paypalfunctions.php (sandbox). Tracked and tracked the remaining code in the code given to PayPal-call. PayPal is called in its own function "hash_colc", where they use these variables. But they are empty. Code paypalfunctions.php defines all global variables and wrapper functions ***************************** ************************ ******************************************* ****************************************************************************** '127.0.0.1'; $ PROXY_PORT = '808'; $ SandboxFlag = true; // '---

homebrew - How can I make a private (i.e. not hosted on GitHub) brew tap? -

I want to do a personal brew faucet for homebrew that was not hosted on GitHub. I have tried cloning the Tap's repo in / usr / local / library / taps but do not see anyone working to find out this? Code> Any time the tap brewing contains the decoction / private> private GitHub, then any repository should now be supported < . Code> Liquid Tap prevents users on GitHub and checks for private repo. I made the breed any time tap to support a wide variety of taps. With very small changes (and without any extra flags!), This PR taps any time user with GitHub They can use either the decoction of the decoction or can add an additional logic and exploit any of the reserves of any kind from anywhere. tl; Dr. Alcohol user / name # This was the same as ever Tap the user name / name URL # YouTube, whatever Happens

javascript - Is it possible to apply css to text in a canvas tag -

has provided me has come within a canvas tag text (by a jqplot chart): & lt; Canvas id = "myCanvas" width = "578" height = "200" & gt; & Lt; / Canvas & gt; Is there a way that I can read inside canvas red? I have tried to add CSS like this: & lt; Canvas id = "myCanvas" width = "578" height = "200" style = "color: red;" & Gt; & Lt; / Canvas & gt; What I think from the canvas is almost like an image, does it mean that I am not able to select things in that canvas? Since you Jqplot you to learn how to change the color of text Looking at the documentation. The following webpage looks like a promise that refers to a textcolor property. $ Jqplot.CanvasAxisLabelRenderer It was well supported <. $ Jqplot.AxisTickRenderer Actually I try to find an event (hook) which is said before every tick is ready. Figure out which tick is to be prepared, then change the

python - Kivy- Building an APK -

initial problem I wrote an app in Python using Pyro libraries, and to that stage Where I want to open an APK to run on my Android device. After following the advice on the KV website, I run the following: buildozer android debug But get this traceback: traceback (most recent call final): the file "/ usr / local / bin / buildozer", the pun B 9, & lt; Module & gt; Load_entry_point ('buildozer == 0.15-dev', 'console_scripts', 'builder') () file "/usr/local/lib/python2.7/dist-packages/buildzer-0.15_dev-py2.7.egg/buildzer /scripts/client.py ", in line 13, main builder (). Run_command (sys.argv [1:]) file "/usr/local/lib/python2.7/dist-packages/buildzer-0.15_dev-py2.77.egg / buildozer / __init__.py", line 9 7, Self.target.run_commands (args) file in run_armand "/usr/local/lib/python2.7/dist-packages/buildzer-0.15_dev-py2.7 .egg / buildozer / target.py", line 85, run_smonds funk (Args) file "/usr/local

php - Is there a way to remove multiple attribute to a doctrine ObjectSelect? -

I have 3 tables, users, roles and UserRoles. The I user can have only one role, but I I did not want to add a column for the role in the table, the problem is that I want to add an object selection as a user, but it is printing as a multiple selection, which I do not want, I have been removed Attribute ('multiple') Tried to add but I get an error saying: "Form Selects does not allow multiple selected values ​​to be specified when the element has no multiple attribute Multiple additions: False, neither does it work, so I am trying to explain it, this is the code. User Unit: / ** * @ORM \ manyToMany (targetEntity = "AUTH \ unit \ user \ roles") * @ORM \ JoinTable (name = "userRole", * joinColumns = {@ ORM} JoinColumn (name = "idUser", referenced column name = "id", exclusive = true}}, * Inverazonge column = {@ ORM \ JoinColumn (name = "idRole", referenced column name = "id")} * * @ annotation * @ Annota

c# - How to change error description for custom MSBuild ToolTasks? -

Image
I have created custom tooltasks for MsBuild using C #. This function is used to execute a nodeJs script as part of a Visual Studio Project Build. This task correctly renders any error output from the tool in the Visual Studio error list, but it is unclear whether the error has originated from custom work. I am worried that the prospective user, can not have a clue that there is a real error in the custom work Does any property or meta information (or output) Is there a way to set up so that the task can be named as part of the error statement? See the examples given below: If you have typed a custom task (C #?), It should be easy to add additional text to the error message.

c# - Application unresponsive when highlighting matched string in richTextBox1; input large .txt file -

I am creating a simple log parsing / reading application that aims to highlight a matching string (user-defined input) When trying, it becomes unresponsive and the log file line string for the large file file (1.5 MB or greater) was found within richTextBox1 small text files work fine matching lines look ok Match string There exists a problem while trying to light (when matching string is found more and more). // Select the user in the app * .txt file and process the content for the string [], not the file streaming. // The list of matching strings is created // Matched strings are displayed in RichTextBox1 stringbilder RTBtext = new stringbilders (rich textbox 1. text); If (displayMatched! = Null & amp; DisplayMetched.Length & gt; 0) {// shows the row of the log file which entered for (int s = 0; s & lt; displayMatched.Length; s ++) String corresponds to {RTBtext.Append (Displaced [S] + Environment. NewLine); }} RichTextBox1.Text = RTBtext.ToString (); / / // New

apache - Remove parts of a URL using .htaccess -

मुझे यह यूआरएल है: http://mydomain.com/ [some_id] /[some_number]/[post_title].html और मैं उसे इसे बदलना चाहूंगा: http://mydomain.com/ [post_title ] और मैं समझ नहीं सकता कि इसे .htaccess का उपयोग कैसे करना है

Rails generate slug before saving based on other field -

I have a site with model name and slug The parameter protects the user every time I change the site , but if slug wants to be unique, then the rail app will want to generate specialty to ensure the specificity. I have a validation for. The challenge I have is that when a user creates another site with the same name, then a similar slug is generated. Like name = "hello and name =" hElLo " both hello generated before_validation: create_slug personal def Create_slug self.slug = self.name.parameterize end I tried to add a time loop, which was a site with a single slug or not, and as long as Each loop "1" was unique. The problem is that if I update a site then it will be loop that a site with the same slug is in existence, and to increase the slug, Lake The site that already exists was the same site. Here's the code: def create_slug a = self.name.parameterize while site.where (Slug: a). Count> 0 do a = a + "-1" Finall

c++ - Why isn't my fstream opening correctly? -

I think this is a silly question, but I do not know why my file is not open most First I tried to pass the file name alone because it was in my working directory, and when I did not work, then I supplied the entire path that did not work either. Is there a reason that my file will not open in the following code? Maybe it's something very easy that I am missing, and I thought that a new eye can be helped. There is no error code because it is a runtime error when I debug, my code does not take action before if (f.is_open ()) line Am I forgetting something? My path should be correct because I paste it directly from the file explorer. Any help is welcome, and an explanation will be appreciated. Note: My subtraction argument may be wrong, but do not worry about that part of the code. zero QuizKey :: readFromFile (string path) {fstream f; F.open (path); String line; If (f.is_open ()) {while (getline (f, line)) {int periodLocation = line.find ("."); Int firstPip

Visual Studio 2012 installation stuck at Microsoft Web Deploy 3.0 step -

When I try to install Visual Studio 2012 Ultimate on my Windows 7 machine, apply Microsoft Web Depression 3.0 step Is stuck in: I am downloading package source on the process Please help me overcome this problem Thank you. According to Visual Studio 2012 may fail October 7 Install After 2013 You have to download the package externally For further information, they are providing solutions to resolve this issue. You can download

javascript - The element's readyState is HAVE_NOTHING -

I am trying to load a video and then run that video on the basis of window scrolling. I have currently worked in Safari and Firefox, but not Chrome. The error I get in Chrome is as follows: Unrecognized Invalid StateError: Failed to set the 'Current Time' property on 'HTMLMediaElement': The prefix of the element is HAVE_NOTHING Does anyone know what I do wrong Am I Function Update Video (Video) {var video = $ ('# trees'). Get (0); Var video length = video.duration; Var scrollPosition = $ (document) .scrollTop (); Video.currentTime = (scrollposition / ($ (document) .ite () - $ (window) .hite ())) * Video length; // (scrollposition / scroll_scrub_spied)% video lamp; } $ (Window) .scroll (function (e) {updateVideo ();}); & Lt; Video id = "tree" & gt; Source src = "/ topic / pmc / files / video / trees_all.mov" type = "video / quicktime" & gt; & Lt; Source src = "/ topic / pmc / files /video/trees_all.webm&

sql - display price from two tables without eliminate products -

itemprop = "text"> I have this query: select ITEMNAME, FrgnName, onhand, value as Regular_Price ITM1, OITM where <(where oitm.ItemCode = oscn.ItemCode and itm1.ItemCode = oscn.ItemCode and oscn.CardCode = 'test' and select itm1.PriceList = 2) P> This question is for a certain customer to get all the products related to the regular price (7 products). Now I would like to add the fourth table (specialial_presses table) containing only 6 products of this customer's special price. The problem is that if I add a special_computer to the query, then my result will be 6 products and I want to show all customer items with both prices, though one of them is 0. I think your query can be written in SQL92 syntax this way : select i.ItemName, FrgnName, o.OnHand, i.Price from ITM1 I join the inner at OITM o i.ItemCode = o.ItemCode on Inner OSCN OS O.ItemCode = os.ItemCode where O.CardCode = 'test' and i.priceList = 2 to add the 4th table

ios - Double notification on contact in spriteKit -

When my SKSpriteNode contacts with the WorldCatter, I get a double notification, how is it? This problem arises when I want to take action on touching the world class, because the action is being triggered Here is my bitmask in the intuitive system method Mover.physicsBody .categoryBitMask = birdCategory; Below. Physics Body Character bit mask = world category; Mower.FixixBodyContactTestBitMask = WorldCategory; And the contact method here is: - (zero) done Thabin contact: (SKPSisCactact *) Contact {if (contact.bodyA.categoryBitMask == worldcategory) {Mower.Textic = [Skeleton Texture with Image: @ "Birddid 1"]; NSLog (@ "Contact"); Self.scene.paused = yes; [Pausabutan removal prospewview]; }} Two lines are shown with "Contacts" in my logs Set the restitution property to zero in your object such as: self.physicsBody.restitution = 0; // This is the name of yourself or your object If it does not solve your problem, then see the m

c# - Add rows to @html.Textarea -

इस सवाल का पहले से ही एक उत्तर है: < / P> 5 जवाब मैं पंक्तियों को कैसे जोड़ सकता हूँ यह सहायक: @ html.extAreaFor (x = & gt; Model.xxx [i] .xxx, html सामग्री: नया {@class = "form-control"}) < / Pre> ऐसा लगता है कि डिफ़ॉल्ट 2 पंक्तियाँ हैं, मैं इसे जोड़ना चाहूंगा। < P> पंक्तियों विशेषता का उपयोग करें नया {@class = "form-control", पंक्ति = "10"} का उपयोग करें 10 को आप जो पंक्तियों की इच्छित संख्या के साथ बदलें बदलें

f# - Load a resource from an assembly without locking the dll file -

I am trying to load the resource from an assembly without locking the dll file. The meter is trying the following, which is similar to something that I used earlier in C #: type IEmbeddedResourceReader = Abstract ReadResource: referencedAssemblies: string [] * AsmName: string * ResourceName: string - & gt; String Option Type EmbeddedResourceReader () = MarshalByRefObject (with member) Interface IEmbeddedResourceReader Heres __ ReadResource (referencedAssemblies, asmName, ResourceName) = try asmLocation = referencedAssemblies Go | & Gt; Array.tryFind (Fun (X: String) -> gt; EndsWith (asmName + ".dll", String Communications, Inventory Culture Ignore Seas)) asm = Match with ASM Allocation. Some asmLocation - & gt; No assembly - & gt; Assembly.Load (asmName) sr = Use new streamrider (asm.GetManifestResourceStream (resourceName)) (sr.ReadToEnd ()) with _ - & gt; Any static member rersers (referenced problems, resource names: string) = match resource

java - Can't generate table form entity with eclipse and eclipselink -

I try to generate database structures with my organizations. To do this, I use the Eclipse Tool. I have Kepler version, but I have also tested with Juno "right click on project -> jpa tool -> table from generating institution". But assuming it fails with strange error: thread "not found exception: the main" javax.persistence.PersistenceException 'javax.persistence.provider 'Map' but property in value is not a string Objects Found: 'clear' javax.persistence.Persistence.createEntityManagerFactory org.eclipse.jpt.jpa.eclipselink.core.ddlgen.Main.buildEntityManagerFactory (Main.java:94) to (Persistence.java:131) org.eclipse.jpt on .jpa.eclipselink on .core.ddlgen.Main.execute org.eclipse.jpt.jpa.eclipselink.core.ddlgen.Main.main (Main.java:80) (Main.java:68) This is my firmness. XML & lt ;? XML version = "1.0" encoding = "UTF-8"? & Gt; & Lt; Persistence version = "2.0" xmlns = "h

javascript - Google Maps API - unexpected redirection -

I met the unexpected redirection for the local host: after executing this piece of xxxx / home / null code. What is the reason? Here's my HTML: & lt; Div id = "userConsentSection" & gt; Can we use your geographic location? & Lt; Br / & gt; & Lt; Input type = "button" id = "yes" value = "yes" /> & lt; Input type = "button" id = "no" value = "no" /> gt; & Lt; Br / & gt; & Lt; Br / & gt; & Lt; / Div & gt; & Lt; Div id = "setCustomLocationSection" & gt; Enter your address manually & Lt; Br / & gt; & Lt; Input type = "text" id = "customLocation" /> & Lt; Input type = "button" id = "setCustomLocationButton" value = "show" /> & Lt; Br / & gt; & Lt; Br / & gt; & Lt; / Div & gt; & Lt; Div id = "map" style = "height: 450px; width:

email - SMTP settings for Office 365 in Rails application -

I have an office 365 with Godaddy, I'm trying to set up SMTP settings for my rail app : config.action_mailer.delivery_method =: smtp config.action_mailer.smtp_settings = {: address = & gt; "Smtp.office365.com" ,: port = & gt; 587 ,: user_name = & gt; ENV ["OFFICE_USERNAME"] ,: Password = & gt; ENV ["OFFICE_PASSWORD"] ,: Authentication = & gt; 'Login',: domain = & gt; 'Example.com' ,: enable_starttls_auto = & gt; True} But when I try to submit a message from my contact page to those settings, I get this error message: 550 5.7.1 The client does not have permission to send this sender. How did the SMTP setting for the Office 365 account be set in Rail Application? I found the answer to this question here: Relevant parts: config.action_mailer.delivery_method =: Smtp config.action_mailer.smtp_settings = {: address = & gt; 'Smtp.office365.com',: port = & gt; '587',:

zend framework2 - ZF2 regex router params mapping -

मेरे पास निर्धारित मार्ग निम्नलिखित है 'kategoria' = & gt; सरणी ('प्रकार' = & gt; 'ज़ेंड \ एमवीसी \ राउटर \ एचटीपी \ रेगेक्स', 'विकल्प' = & gt; सरणी ('regex' = & gt; '(। *) / ([0- 9] +)। एचटीएम ',' चूक '= & gt; सरणी (' नियंत्रक '= & gt;' कोर \ नियंत्रक \ 'सूचकांक,' क्रिया '= & gt;' इंडेक्स '),' spec '= & gt;'% full_path% /% nodeID% एचटीएम ',),), मैं कार्रवाई में दोनों पैरामीटर प्राप्त करने की कोशिश कर रहा हूं, लेकिन कोई सफलता नहीं $ nodeID = $ this- & gt; पैरामीटर () - & gt; fromRoute ( 'nodeID'); $ पूर्ण_पाठ = $ this- & gt; पैराम्स ('पूर्ण_पाथ', ''); ZF2 में रेगेक्स रूटर से मिलान किए गए पैरामीटर कैसे प्राप्त करें? मैं ZF1 में इस रूटर का उपयोग कर रहा हूं। ZF2 में, आप पैटर्न मिलान में चर नाम शामिल करते हैं , तो आप ऐसा कुछ चाहते हैं: 'regex' = & gt; '(? & Lt; full_path &

java - IntelliJ IDEA says that the localhost port is already busy -

I'm new to Intelis consideration I started debugging an application that was previously eclipsed Was written inside. I have configured Tomcat to startup and open chrome to contact the run configuration. However, many runs occur following: The source file is being updated Intel claims that The local host port is already busy How do I stop local hosts running from Intel when the stop option (change + F2) is grayed out? And how can I update sources? It seems that only one computer reboot resolves this problem, I can not reboot the computer every 10 minutes right now. itemprop = "text"> Intel claims that the local host port is already busy => This means that this Programs opened for Shravan Monkey are still running. Now, it appears that you are starting a program from Interlude, but after that it is running after IntelliJ disconnected. Find out if this is still the case.

css3 - How to position 2nd element center when 1st element pushing to right in CSS -

I am very new to CSS and I created a call directory which displays an icon on the left and the person's name next to it. It does this I am printing my phone number in the next line. The phone number is allocated in the center but not always the name To make it a center, I wrap all my stuff in a div & lt; Div class = "container thumbnail" id = "all1" tabindex = "5000" align = "center" & gt; & Lt; / Div & gt; I have created a JSFDial: How can I focus on the person's name when it presses the small icon name correctly? As you learn more, you will find that you really want to use a real IMG tag Are there. In this situation, the image should be the background of the element next to it, in this way, you can position it wherever you want without pushing it around your position. When you are changing it, you want to make markup more semantic (as defined by the function as possible and rather than the style). I gi

Transparency overlapping in Java -

So I am making a simple break function in my game, and I have to have a gray transparent background, problem is, rectangle Keeps overlapping and only one fade out is visible. I've tried g2.dispose, and it works, but I can not draw anything else on it. My render method, which is being called 60x seconds (I release that the rectangle is being drawn in 60x seconds) Public Zero Render (Graphics G) {Graphics2D g2 = (Graphics2D) G; G2.setColor (new color (0, 0, 0, 50)); G2.fillRect (0, 0, RPG.getWidth), RPG.getHeight ()); G2.drawImage (paused, 0, 0, empty); } Thanks! EDIT: I feel like an idiot ... let me just under my INGEM Have to draw the screen!

f# - Executing a Powershell Script in Fake -

What is the best way to execute a scriptscript in the fake build automation tool? I think there should be a clear answer to this question, but nothing is available through search. As you mention in your comment, use the PowerShell class By making it very easy. #r "FakeLib.dll" #r "System.Management Automation" open duplicate open system. Management. Operation Target "Running Power Shell" & lt; | Funny _ - & gt; PowerShell.Create (). Escritation ("(Process | Process Tasks - Au 'Chrome' | Work-Set-Averages Measure |). Average"). Invoice () | & Gt; Seq.iter (printfn "% O")

Alternative to Reco4j for Neo4j -

Are there any recommendation engines or ML libraries such as Mahawat, Jubatus etc which can be integrated with NEO 4J. It was one where anyone can integrate clustering and recommendation libraries (such as collaborative drawing), but it is not currently working and it does not appear in the near future. Any other engine that can be used with Neo4j? graphite rico simple structure for creating a general recommendation engine Some classes in it Which are produced directly by using nodes and relationships, for Neo4j . By the way, this project works for versions of Neo4j over 2.1.5, but you can also use the same structure for previous versions.

postgresql - How to get random posts in Wordpress heroku -

I am using WordPress heroku and am trying to display random posts in the sidebar. I have the following code: & lt; H2 & gt; Random Post & lt; / H2 & gt; & Lt; Ul & gt; By & lt;? $ Args = array ('posts_per_page' => 5, 'orderby' = & gt; 'rand'); $ Rand_posts = get_posts ($ Args); ? & Gt; By & lt;? $ Posts = get_posts ($ Args)? & Gt; & Lt ;? = $ Posts === Tap? "truth": "". Count ($ post)? & Gt; & Lt ;? Php foreach ($ post as $ post) {? & Gt; & Lt; Li & gt; & Lt; A href = "& lt ;? php the_ermelink () ;? & gt;" Title = "& lt ;? php the_title () ;? & gt;" & Gt; & Lt ;? Php the_title (); ? & Gt; & Lt; / A & gt; & Lt; / Li & gt; & Lt ;? Php}? & Gt; & Lt; / Ul & gt; This code is giving error like this: [28-Apr-2014 23:56:59 UTC] WordPress database error error: function rand () I be

java - Wicket, How can a DropDownChoice select change the options of another DropDownChoice? -

There is something in the wicket to drop the two option so that the first selection of the first Doprdownchoice Does the option change all the options? You must use the value of the first choice to determine the value of the second one. I used this example to select a AjaxFormComponentUpdatingBehavior that triggers Ajax updates and changes the value to use. I am providing a simple example of popularizing the second DropDownChoice with the federal states of the country, which is selected in the first one. Note that I am using the wicket in 1.4. This example, although in newer versions, should not be very different. // two country final string aut = "AUT"; Last string ger = "ger"; // their final list of states & lt; String & gt; AutStates = Arrays.asList (new string [] {"V", "T", "S", "W"}); Last list & lt; String & gt; GerStates = Arrays.asList (new string [] {"NRW", "B"

Arduino. Why does my code work with a delay -

I have written a code that works for some reason when I delay it is considered a traffic light < / P> int switchState = 0; Zero setup () {pinomoda (5, output); // red light pinomoda (4, output); // Yellow Light Pinomoda (3, Output); // green light pinnedoda (2, input); // button, when pressed lights digital dual switch (5, high); } Zero loop () {switchState = digitalRead (2); If (switchstate == HIGH) {if (digitalRead (5) == HIGH) {// if light is red digital (5, less); // Turn off the red light digital (3, high); // Turn ON the Deer Light Delay (500); // it is late} and {// light is green digital (3, less); // Close the Green Light Digital White (4, high); // Turn on yellow light delay (500); // Yellow light is turned on for a little like traffic light digital wight (4, lo); // Write Off Yellow Light Digital (5, High); // Turn on the red light}}} I thought it was because I had placed a "very long" button and ran the loop twice and adding delay I had made enough

Import RPT (Output from Select command) to SQL Table -

I am trying to add some lines from the table to another table. I want to use the SQL command to get the rows and Microsoft SQL Server Management Studio has output in the format of the RPT. So I want to add this SPT to my SQL table. Is there a way to convert RTP to SQL, so that I can import it? If not, how do I download database tables from SQL on a Windows server, then I can put it on my Linux SQL Server and do everything with PHPMyAdmin? I'm new to hosting Windows, and I'm taking everything back to Linux. I was able to open or manipulate it RPT file in Excel,, then imported into PHPMyAdmin Save as CSV.