Posts

Showing posts from March, 2014

query string - Getting querystring parameter value in wordpress -

I am creating a WordPress plugin, in anchors to load the content based on the link I clicked on the user Add_query_string () is used. Now I need to know the best way to get the parameter value in the current URI. This is probably a very basic and stupid question, but I'm new to programming, so I'm sorry if I have something wrong if (current_user_can ( & Lt; li & gt; & lt; a href = "'Add_query_arg (' adminoption ', 1).' '' Manage_options ')) {echo (' & Gt; Option 1 & lt; / li & gt; & lt; li & gt; & lt; a href = "'. Add_query_arg (' adminoption ', 2).' '& Gt ; Option 2 & lt; / a & gt; & lt; / li & gt; & lt; / ul & gt; & lt; / div & gt; ';); // if adminoption == 1 load content A // if adminoption == 2 load content b} I think that you are asking for the ceremony in your case you should use get_query_var ('adminoption'). H...

node.js - Trouble installing tower module - ws module crashes -

I am new to node and I have installed it by running the installation from the node website. I had a drama to set up a package globally (for example), but now I'm trying to install the tower module on my Mac , such as: sudo npm installer tower This installs a bunch of stuff and then crashes, with output npm Http 304 https://registry.npmjs.org/ Tinycolor npm http 304 https://registry.npmjs.org/zeparser/0.0.5 & gt; Ws@0.4.20 install /usr/local/lib/node_modules/tower/node_modules/socket.io/node_modules/socket.io-client/node_modules/ws & gt; Node install.js shell-init: Error retrieving current directory: getcwd: Can not access parent directory: permission denied node Js: 520 var cwd = process.cwd (); ^ Error: EACCES, Startup at Function (node.js: 54:13) node.js: 611: 3 startup at startup on NPM ERR. Permission denied on ROLVARGV0 (node.jes: 520: 23). Ws@0.4.20 Installed: `node install.js` NPM ERR! "Shaw" -a "node install.js" failed with 11 NMR ER...

java - Monthly jobs on every 30th day using Quartz -

People, I have monthly schedules (use quartz) jobs by users I start users First date to run or run the date, it can be any day of 1-31 months My question is how is it scheduled to use the Cron trigger, keeping in mind that 31,30,29th day in all the months. In such a case, the job should be run on the last day of the first of the month. So, it says that there are only 30 days in April, so the job will be run on 30th April. Can this single cron trigger be used? Or should it be a combination of triggers? I have tried to play with CronExpression to see how it handles such cases: CronExpression CE = new chronexpress ("0 030JAN-DEC? *"); Next date validTime = ce.getNextValidTimeAfter (** ** 27 February ** //); I got nextValidTime equal to 30 March , so any help from Kronon "left" in February will be very much appreciated. thank you in advanced. The letter 'L' for the month of the month is allowed and the fields of the week This character ...

- Where Developers Learn, Share, & Build Careers

I'm trying to install Grails from sources I started 3 days ago, and there are still some problems. Every effort ends with the message: : grails-bootstrap: compileGroovy [ant: groovic]> gt; & Gt; & Gt; A serious error occurred: grails / util / BuildSettings [ant: groove]> gt; & Gt; & Gt; Stacktrace: [ant: groovyc] java.lang.NoClassDefFoundError: grails / util / BuildSettings [ant: groovyc] [ant: groovyc on java.lang.Class.getDeclaredMethods0 (Native Method)] java.lang.Class.privateGetDeclaredMethods (Class .java: 2440) [ant: groove] java.lang.Class.getDeclaredMethods (class Java: 1806) failed to execute the operation: 'grails-bootstrap: compileGroovy' & Gt; Forked Groovy returned error code: 1 I am using Ubuntu 12.04 LTS 64bit What did I do: Install Java Java version "1.7.0-ea" Java (TM) SE Runtime Environment (Build 1.7.0-AA-B76) Java Hotspot ( TM) 64-bit server VM (build 17.0-B05, mixed mode) Install Jarozi Groovy...

- Where Developers Learn, Share, & Build Careers

I have a variable that has a string of text and html tags such as: Code Some text more text here & lt; / span & gt; & lt ; / P & gt; & lt; p & gt; Also & lt; / p & gt; "; I would like to remove all tags of a certain type. For example, we all call p and span . This is the best I can come up with: Some text More Text Here & lt; / span & gt; & lt; / p & gt; & lt; p & gt; Also & lt; / p & gt; ; Var $ temp = $ (temp); $ ("P", $ temp) .replacewith ("foo"); Warning ($ temp.html ()); // Returns "some text" The closest response I can find is this answer by Nick Craver. demo: $ ('span, p'). . Content (open) (); Each such element will receive elements and text, and each content will remove the element by wrapping the section. Based on your current perspective, it will look something like this: ; / P & gt; "; Var $ temp = $ (temp); $ Temp....

c - What are high performance alternatives to LMAX disruptor queues? -

I am working on the execution test of the internal implementation of Disruptor Queues, and I would love to benchmark other similar methods Non-thread event is slightly on Google for processing the stream, so any signal or suggestion is highly appreciated. There is a simple implementation: Please Note about performance in README.

.net - Simple T4 template doesn't work in Visual Studio 2010, but does in MonoDevelop? -

I'm having all kinds of visual studio 2010 to compile my T4 template, I'm pretty sure that this The template worked on 2008 but I can not confirm it right now. I'm sure it works on MonoDevelop. Anyway, here's my template's title: & lt; # @ Template language = "C # v3.5" Hostpecific = "true" # & gt; & Lt; # @ Output Extension = "CS" # & gt; & Lt; # @ Assembly name = a ???? System.Coreâ ???? # & Gt; & Lt; # @ Import Namespace = "System. IO" # & gt; & Lt; # @ Import namespace = "System.Text" # & gt; & Lt; # @ Import Namespace = "System selection.Generic" # & gt; & Lt; # @ Import namespace = "system" # & gt; & Lt; # @ Import Namespace = "System.Link" # & gt; Visual Studio 2010 complains that the first line, template instruction: An instruction was specified in the wrong format. Changes will not run. Please type in...

- Where Developers Learn, Share, & Build Careers

I'm using vmalloc_to_pfn () to get a physical address on 32-bit PAE Linux I'm the system It seems that vmalloc_to_pfn () returns a "unsigned long" which means that it is 32 bit system on 64 bit 64-bit system on 32-bit systems, 64-bit Linux is unsigned long 64 bit and I have there is no problem. Problem: Use this function to convert virtual to physical: VA: 0xf8ab87fc using vmalloc_to_pfn: 0x36f7f7fc . But I really expect: 0x136f7f7fc . The physical address is between 4 and 5 GB, but I can not find the exact physical address, I only have 32-bit addresses cut off. What is another way to get a real physical address? I'm reading myself, and am 32 bit - so it's absolutely There is no answer. But digging through the same stuff, I can see the source for vmalloc_to_pfn : / * * map vmalloc () - the location for the physical page frame Virtual address number * / Unsigned long vmalloc_to_pfn (cost watched * vmalloc_addr) {return page_to_pfn (vm...

c++ - Why does std::stof not throw when passed an argument it cannot convert? -

I am working on a project where I input the form {float} {single-letter-identifier} , for example 15.6E , or 10W . To do this, I thought I could take the input string, strip it from the last letter and then check to see if using std :: stof Can be converted to float. It will be nested in the try-catch block, and I will be allowed to inform the user of invalid input. The STL Open-Standard (page 653) states that std :: stof throws: invalid_argument If wcstod or wcstold reports that no conversions can be done. However, when it can not be changed, nothing is passed, for example "48East" . To recreate this behavior, a code sample is below: std :: wstring szString = L "48East"; Try {float f = std :: stof (szString); } Hold (...) {std :: cout & lt; & Lt; "Exam" & lt; & Lt; Std :: endl; } It has been compiled on MSWC10 in debug mode with / ode , so I'm assuming that the call has not been optimized. I appreciat...

jar - How to create a maven repository that others may use? -

I have a project that is hosted on Zithub, now what I want is that some lines like this By including, anyone can use my library in my Maven project. & gt; & Lt; Dependency & gt; & Gt; & Lt; Group & gt; Org.anahata & lt; / Group & gt; & Gt; & Lt; ArtifactId & gt; Anahata Kor & lt; / ArtifactId> & Gt; & Lt; Version & gt; 1.0 & lt; / Edition & gt; & Lt; / Dependencies & gt; I'm new to Maven, so please tell me the exact steps. Can this be hosted by Gitub? You can host your project in the Mayven Central repository, post tips, and also see and. Edit: Besides it is suggested as khmarbaise (it is referred to by the guide given above).

extjs - Extjs4: Customize dropdown menu in grid column header -

I want to customize the dropdown of each column header in a grid panel. Each column must contain a filter (example: Grade (dropdown menu shows the checkbox with K, 1,2,4 as a filter) K 1 2 K 4 I have found this solution to manipulate the loopdown menu, but the problem is that it changes all the dropdowns and not every one. I have any suggestions Thank you I finally "grid filter feature ux" I use it, some more road setup by ACC.

c# - Need to pull path info from file to create new file at same location -

I'm trying to cross a directory with thousands of sub-directories. Each subdirectory has an .nfo file D: \ Test \ D: \ Test \ Deira 1: D: \ Test \ DRI file 1. NO D: \ Test \ DER 2D: \ Test \ DR2 \ file2.nfo D: \ Test \ Dir3 \ D: \ Test \ Dir3 \ file3.nfo I I'm using Xdocument to parse some information, and I need to create a new file at the same place. As the NFO file. D: \ Test \ D: \ Test \ Dira 1 \ D: \ Test \ DRI \ file1.nfo New File: D: \ Test \ Dear 1 Info .nfo D: \ Test \ Dir2 \ D: \ Test \ Dir2 \ file2.nfo New File: D: \ Test \ Dir2 \ info.nfo D: \ Test \ Dir3 \ D: \ Test \ Dir3 \ file3.nfo NEW FILE: D: \ Test \ Dir3 \ info.nfo I think I have all the basic parts, but I did not know how to create a new file in the same place as the source file . Even I have so far: string strID = null; String [] filesNFO = directory Get files (@ "D: \ test \", "* .nfo", searchoptions, all directories); Fresh (string file NFO files) {var doc = XDoc...

osx - PHP unable write to sys_get_temp_dir() on Mac -

मैंने यह वास्तव में सरल किया है: mkdir (sys_get_temp_dir ()। '/ Test', 0777); जो त्रुटि देता है चेतावनी: mkdir () [function.mkdir]: अनुमति अस्वीकृत निश्चित रूप से क्या हुआ है मेरे मैक के साथ हाल ही में कुछ समस्याएं) हालांकि ऐसा प्रतीत होता है कि यह एक साधारण अनुमति समस्या है। sys_get_temp_dir () = / var / folders / aP / aPaKHnXDGqG-75bSdcDjkk +++ TI / - टीएमपी-एसएच-3.2 # एलएस-डीडी / var / फोल्डर्स / ड्र्वाक्सआर-एक्सआर-एक्स 4 रूट व्हील 136 12 जुलाई 00:51 / var / फ़ोल्डर्स / श-3.2 # एलएस-डी / var / फोल्डर्स / एपी / ड्रड एक्स-एक्सआर -x 3 रूट व्हील 102 12 जुलाई 00:40 / var / फ़ोल्डर्स / एपी / श-3.2 # एलएस-डी / var / फ़ोल्डर्स / एपी / एपीएकेएचएनएक्सडीजीजीजी -75 बीएसडीसीडीजेकेक +++ टीआई / ड्रड एक्स-एक्सआर-एक्स 4 माइयूजर स्टाफ 136 12 हिम तेंदुए 10.6.8 का प्रयोग Memcache के साथ MAMP प्रो जुलाई / बजे / फरवरी / एपी / aPaKHnXDGqG-75bSdcDjkk +++ TI / एक्सटेंशन। अपना टर्मिनल खोलें आपका मैक और टाइप करें: chmod-R 777 / path / to / directory चेतावनी: हालांकि यह...

networking - Assigning IP Addresses to a Physical Location -

Can an IP address be connected to a specific port on a 3 port Cisco switch on a computer? I would like to create a network map that can recognize that computers where physically located in our building based on our IP address. If a computer takes the space, then it gets a new IP address, in this way an IP address has been assigned to the physical location, and is not a MAC address or computer. Other suggestions for being able to identify this computer are physically located, if my IP address idea is absurd, You need an IOS that supports your switch; You should also issue DHCP with your switch Let's say you got Vlan120 in Fa1 / 0/1 and Fa1 / 0/2 . IP uses DHCP client-ID client -IP IP DHCP customer-ID interface-name IP DHCP out-of-address 192.0.2.1 192.0.2.10! IP DHCP Pool VLAN120 Network 192.0.2.0 255.255.255.0 Default Router 192.0.2.1 DNS-Server 192.0.2.5 Reserved-Only Address 19.0.2.101 Client-ID "FA1/0/1" ASCI Address 192.0.2.102 Client-ID "FA1 / 0...

colors - ansicon -i not working in Windows 7 x64 -

I have downloaded the ansicon for tracing on this site so that I can keep the color of text in my command line. I have a 64- I run Windows 7 on bit system. I removed the downloaded zip files from my download directory to C: \ escon. When I cd to the asyncon directory and type "acon-i" then the answer is 'AcCon' is not recognized as an internal or external command, operative program or batch file. What's going wrong here? Okay, the instructions on that page are a little misleading, in the directory a subdivision in ansicon For X86 (32 bit) and for one x64 (64 bit) c: \ ansicon \ x64 and execute Uttacon -i

java - Regular Expression to preserve quotes , single quotes , hyphens and split at white space -

I use the Java pattern class to specify regex as a string. For example, I should spider-man: "Peter Parker" list Spider-Man and "Peter Parker" as a separate token. Thanks Try {Buffford Reader br = New buffed reader (New Flamerdder (F)); Stringbilder sb = new stringbiller (); String line = br.readLine (); While (line! = Null) {sb.append (line); Line = br.readLine (); } String everything = sb.toString (); & Lt; String & gt; Results = New Arreelist & lt; String & gt; (); Pattern pat = Pattern.compile ("([\" ']. *? [\ "'] | [^] +)"); PatternTokener pt = New PatternTonager (new stringreader (everything), Pat, 0); While (pt.incrementToken ()) {result.add (pt.getAttribute (CharTermAttribute.class) .toString ()); }} Hold (exception e) {new runtime exception (e); } So I think why "some words" is not working, because each token is a string, is any signal? This is what you want: "([ \ "']...

editor - "Preload additional info" error -

For some reason, I get pop-up warnings every time I start up the Apache Studio: A TIA! Internal error occurred during -Text" itemprop = "text"> Your project file is corrupt. I had only one problem after moving my workspace into a dropbox folder and accessing it with two computers. Solution: Within eclipse: Remove old project from eclipse (do not cancel files!) Within Finder / Explorer: Older Rename the Project folder for some backup names Within Eclipse: Create a new project under the old name Within the Fader / Explorer: .py-files (NOT .PYC !) And Supporting projects for your project The new project folder (3) / div>

c# - load aspx file into xmldocument -

I want to be able to load the aspx page in XmlDocument variable. How do I do that? Here's what I have tried and expect .xml file and not an .aspx page. Change the excel page to XML document and load it? Thanks string filepath = @ "C: \ WebApplication1 \ webform4.aspx"; XmlDocument Document = New XmlDocument (); Document.Load (filepath); I get the following error: The name can not start with the '%' character, hexadecimal value 0x25. Line1, position 2 The reason you get this error is: The name can not start with a '%' character, hexadecimal value 0x25. Line 1, position 2. This is because the .aspx pages often do not contain valid XML ASP.NET .aspx pages include instructions such as: & lt;% @ Page language = "C #" [possibly other stuff]%> and %> and %> is not a valid XML, so you can not load raw ASPX pages Now, even if you want to break these instructions, then there is a great chance that You ar...

html - add bottom border to all table data cells -

Anyway, can I avoid writing glasses in every table data cell? & lt; Table width = '800' bgcolor = 'gray' cells = '0' style = "border-bottom-style: solid; border-bottom-width: 1px; border color: black" & gt; & Lt; TR & gt; & Lt; Td style = "border-bottom-style: solid; border-bottom-width: 1px;" & Gt; First name: & lt; Td style = "border-bottom-style: solid; border-bottom-width: 1px;" & Gt; {$ Info ['firstname']} & lt; / TD & gt; & Lt; / TR & gt; & Lt; Tr & gt; & Lt; Td style = "border-bottom-style: solid; border-bottom-width: 1px;" & Gt; Last name: & lt; Td style = "border-bottom-style: solid; border-bottom-width: 1px;" & gt; {$ Information ['aliases']} & lt; / TD & gt; & Lt; / TR & gt; & Lt; Tr & gt; & Lt; Td style = "border-bottom-style: solid; border-bottom-width: 1px;" & Gt; ...

postgresql - PostqreSQL in Rails: How do I make the server run locally AND accept connections on the Unix domain socket? -

Then I'm a newbie for the rail which only uses the first SQLite3, and I also run a simple rake command I'm struggling for when using PostgreSQL. I am just trying to follow the first 5 minutes of this screencast while setting up Postgrad: But whenever I gave directions, even when I ran rake db: create: all I get a universal error message: Could not connect to the server: Permission is denied Whether the server is running locally and unix Accepts connections on domain socket "/var/pgsql_socket/.s.PGSQL.5432"? I see it everywhere, but did anyone surely answer it, once and for all (if such a task was very easy)? I posted Homebrew to PostgreSQL When I run which runs psql , it says that I am using one of the usr / bin / psql Which I believe is the origin of Mac OSX Lion (is not it a bad thing?) How can I switch to any one installed by the Homebrew, which can be found in the usr / local / bin / psql Is in). I'm pretty sure the postgrace is runn...

android - How to send notification from AsyncTask while main Activity is not started? -

I have an asyncTask that starts on boot (called by a service) in some cases i I would like to send a notification to get started. My problem comes when I try to make a call: Notification Manager No Manager = (Notification Manager) getSystemService (ns); Where Eclipse shows me an error because AsyncTask is not foundSystem System Service Because the getSystemService reference class is a method. See it. Before calling the function, create a reference variable in your AsyncTask. Then start it in your constructor, that is, context reference; Public MyAsyncTask {context = contextin;} Then use this reference variable to call your function: NotificationManager notManager = (NotificationManager) reference .getSystemService (ns); When you are performing asyncTask, do not forget to input your reference: MyAsyncTask mytask = New MyAsyncTask (getApplicationContext ()) ; Mytask.execute (); I also felt that an IntentService would be more suitable for your needs.

rdbms - Any tips on how to design a db (mysql) that should store data about multiple types of posts? -

Image
OK, so data about several types of posts (common post and complicated with many form fields, assuming DB Preformated post). It is clear that the data of these posts should be stored in separate tables. The problem is that all these post tables should have some additional choices / comments that are linked to them. This will mean more than tables / queries ... Would you recommend top organizations in this reply? Or this image: But another with polymorphic assoc The problem is, there can not be comment in all the posts (entities). And if I only have to do a search to post, then this is only the information of the object (from the comment table), I have to find a table of all the posts to find it ... or you would recommend it to the solid aproach and a lot Have more tables and inquiries? PS: Any suggestion will be very unfair :) As you do not paint it, consider getting a good database book and reading part about general forms. In the very wrong context it is the idea that ...

eclipse plugin - Are required plug-ins automatically installed when installing a plug-in that has dependencies? -

I am developing a plug-in which depends on CodePro and sonar plugins. I added these plugins to the "required plug-in" section of the Plug-In Manifest Editor. When I try to install my plug-in on a new eclipse example, I get an error: "Neutrality requirement: XYZ plug-in requires bundle 'ABC', but it is not found." Is it a requirement that the user must manually install these required plug-ins before installing my plug-in? Or can an update manager automatically download and install these required plug-ins before me? If there is a way, how can I do this? I have read many articles, blogs and stories, but there is no clear response on it. I appreciate any help. P2 relies on all the required plugins (or attributes, configured) If you select help & gt; If you use new software installed , then the updates site of all plugins should be available, and check "Contact all updated sites during installation to find required software" check. When us...

Salesforce-to-salesforce round trip field update issue -

I had to integrate an S2S, but it has been a double release, but I have an unexpected problem which is expected That someone I have two orgs, sharing contacts on S2S. The contact in each organization is the same schema, this is the standard field and custom field. I have repeated a base case with just two custom fields: checkbox field A, and number (18,0) field B. The organization publishes Field A, and subscribes to field B. Organization 2 subscribes to Field A, and Field B publishes. Organization 1 Starts all S2S workflows by sharing contacts on OR2 on S2S Organization 2 has automatically accepted. Before establishing a trigger, Organization 2 has a contact, which uses Field A to calculate the value of Field B. Example If field A is checked, populate Field B with 2, if unchecked, 0. (This is definitely a huge sur-simplification that I really need to do, but this base is copyable.) All work in ORG2 is fine - contact with field A Come right, and I think the result of ...

- Where Developers Learn, Share, & Build Careers

I can not establish a connection between two players using automatic matching and GKMachaker ViewController. The behavior is didChangeState is never called The player gets disconnected after an extended period of time. Is anyone solving this problem? Thank you! The correct number of players connected to make sure that you get your GKMasterest Set up correctly. In this example, I have a game that is connected to only two players, so I work min and amp; Maximum players are counted to 2: GKMrerest * request = [[[GKM trackoffAloc] INT] AutoArques]; Request.minPlayers = 2; Request.maxplayers = 2; GKM Changer VUI Controller * mmvc = [[[GKMachaker Week Controller ALOOS] InitvethMatureRequest: Request] Autorege]; Mmvc.matchmakerDelegate = self; Then, everything you saw as a work expected. Edit: After reading your question again, also make sure that you have the GKMatch object You have been given: - (zero) matchmakerViewController: (GKMatch...

- Where Developers Learn, Share, & Build Careers

I am trying to install PostgreSQL and I need to allow more shared memory configuration. Post GraceQL documentation here: I just want to find a file named /etc/sysctl.conf , but I have a hard time getting it. But I think that you can say that I'm new to computers, and I do not know how to find this file on Mac, and Google is not helping it. Any and all help is appreciated. First you will need to start the terminal, press cmd + space to start the spotlight search again Enter the term and terminal will be one of the top moss matches. Click it to start it. At the terminal you will have to start an editor using the root account and open the file. You can do this by typing: sudo vi /etc/sysctl.conf This will require your password before raising the root account . After that the editor vi will open the specified file or create a new file if it is not already present. Now they are a bit difficult to use for those people who do not know here, so this is a very quick ...

c - Can using sem_trywait() cause a deadlock -

You can use sem_trywait () Can you join Deadlock or LineLock? If you have multiple threads, almost any function can be a potential subsistence or deadlock (or both). sem_trywait that can not be responsible for creating a live or deadlock, but with the exception of the function alone, it is difficult to respond with any specificity.

- Where Developers Learn, Share, & Build Careers

I have a client test app and a server app, both are hosted on GAE Client is a simple web front end Server hosts hosted resource protected by OAuth Authentication is done through OpenID and support of applications Federated Login The problem is that after the user logs in, the user forgets who they are (the browser has an ACID cookie, therefore Remember it ). Here is the flow (from the GAE log) ... The user starts by entering cktestclient.appspot.com (Client app) in the browser and pressing the ShowMyCommitments button. After this, the following are visible in the server side logs (ppi.epspot dot com). 9: 10: 22 AM: / Oath / Authorize? Response_type = code and client_id = webappclient and redirect_uri = we are 'logged in so far, so we will be redirected to 9:10:22 AM: / login /? Continue = I login again using url generated byLoginURL 9:10:33 AM: / oauth / authorized? Response_type = Code & amp; Client_id = webappclient and redirect_uri = Oeth dance continues and we see...

mfc - Zoom/Scale CWnd Controls in Visual C++ -

We have got a CWD on which it has many controls (CBT, CEDT, CITETIC etc.) and want to find it One way to allow the user to zoom in and out is that the controls are large / small, as well as changing the size for the control, the text labels (such as button text) are required in the control. I was watching Sejesi Setaimamoda in the CZoomView documented on the web at MM_ISOTROPIC, but it seems that in fact only is useful on any ondroid method because since it is implemented when applying the drawing code There is TODO in CZoomView. Because they are Microsoft controls, we are letting them attract themselves. Is this also possible? It seems that I should be able to adjust the context of the device, to think that the device is different from the logical unit scale, but how can I get control over it? int previousMode = pDC-> SetMapMode (MM_ISOTROPIC); Previous variant = pdc-> Set windowo (100,100); Previous series EXT = pDC- & gt; SetVivounceAxt (M_JUMM, M_JUMM); thou...

ffmpeg - VideoCapture is not working in OpenCV 2.4.2 -

I recently installed OpenCV 2.4.2 in Ubuntu 12.04. CAP = Video Capture (0) is working but I can not take frames from some video source. cap = videocapture ("input.avi") img = cap.read () gives me an oval with all the zeros elements. I have also installed ffmpeg 0.11, the latest snapshot of x264, v4l-0.8.8 (all the latest stable versions) Cmake -D with_qt = ON -D With_FFMPEG = ON -D WITH_OPENGL = ON -D WITH_TBB = ON-DE BUILD_EXAMPLES = OFF WITH_V4L = ON. SUDO INSTALL When I cmake, I get it - GNU GCC detected version: 46 (406) - OpenXR found: /usr/lib/libIlmImf.so - Discovery of Linux / Videodev.h - Linux Looking for / videodev.h - Not found - Search for Linux / videodev2.h - Search for linux / videodev2.h - Found - Libavformat / a Looking for vformat.h - looking for libavformat / avformat.h - is found - search for ffmpeg / avformat.h - looking for ffmpeg / avformat.h - not found -> not found -> Check for module 'TBB' - Package 'T...

Nosetests TypeError and Attribute Error in Python (LPTHW, exercise 48) -

I'm working on Python in a difficult way, exercise 48, using nosetests to test tuples I am determined that the following types are: def test_directions (): assert_equal (lexicon.scan ("answer"), [('direction', 'answer']]) However, I get the following error every time: ... line 5, test_directions assert_equal (lexicon.scan ("answer"), [ ('Direction', 'answer')] Type type: unbound method scan () first Should be called with a Lexicon example as a (got RR frequency instead) If I present just above @staticmethod "def scan (self):" I would rather This error is found: line 24, in the scan words = self.sentence.split () attribute error: 'str' is not an attribute of the object 'sentence' and the code I am testing it is below. What am I missing? class glossary T): def __init __ (self, sentences): self.sentence = sentences self.direction = "direction" self.verb = "verb" s...

html5 - Different types of Apps Developed in Sybase Unwired Platform -

I know that Siege's Avward wants to know different kinds of apps developed in the platform. Please send me any content or web link related to the SUP. Thanks in advance ........ Sybase Universe Platform Application Supports two main modes of development: native application development and hybrid web development. Basic application development is understandable when the user interface expectations or app performance depend on device-specific capabilities. Hybrid web development is best for cross-platform applications that run on multiple devices. It provides low cost of development to expand workflow processes such as approval or request. You can find everything about it in the information center. With Midhun >

- Where Developers Learn, Share, & Build Careers

im एक स्ट्रिंग मान प्रतिगमन के रूप में regression = (सत्र ["प्रतिगमन"]) हो रही है। ToString (); में .aspx.cs फ़ाइल है, तो मैं इस मान को .aspx फ़ाइल में SqlDataSource संपत्ति के SelectCommand में नीचे का उपयोग करना चाहता हूं SelectCommand = "SELECT [issue_oid], [issue_num], [ प्रतिस्थापन], [स्थिति], [परीक्षण_बी], [परीक्षण_ऑन], [पैच_नाम], [आगमन_ऑन], [पिछले_इनफ़ो], [टिप्पणी], [is_duplicate] से [itt_monthly_patch_issue_list] जहां स्थिति = 'परीक्षण नहीं' और 'प्रतिगमन =' & Lt;% # regression% & gt; `` .aspx.cs फ़ाइल पेज_लोड विधि निम्नानुसार है संरक्षित शून्य पृष्ठ_लोड (ऑब्जेक्ट प्रेषक, इवेंटआर्ग्स ई) {यदि ((सत्र ["उपयोगकर्ता नाम"]। ToString ()) == string.Empty {Server.Transfer ("regressionType.aspx"); } प्रतिगमन = (सत्र ["प्रतिगमन"])। ToString (); Usrname = (सत्र ["उपयोगकर्ता नाम"])। ToString (); DataBind (); } कृपया मुझे सुझाव दें कि मैं यह कैसे कर सकता हूं? पहले से धन्यवाद ... आप अपने SQLDa...

preventing routing to folders in asp.net routing -

Trying to implement the expanded url in the asp.net webform using Route Add ("Myrouting", new route ("{PagePath}", New MyRouteHandler ("~ / Default.aspx"))); This extensionless URL works properly, but in some cases it is happy that the routing path actually exists in the form of real physical path. Example: Localhost / Service 404 throws an exception because the root has an actual folder called service. How do I exclude routing of directories? Thanks The following code may be that you get close control of that URL Need be Public static zero register routs (example: with interval routes with this file extension and later with any additional text. Ignoreroute ("{resource} .axd / {* pathInfo}"); ... // Example: New way to modify a URL and remove .aspx extension roots MapRoute ("UrlManagerRoute", "{* url}", new {controller = "microcontroller", action = "myaction"}, new {url = @ ". *...

c - Alternative to g_variant_lookup_value when the key is not an string type -

Is there an option for g_variant_lookup_value when the key is not the string type (i.e. the key is an integer)? I have a function that takes a "i.e." dictionary like "gearient". I want to get arrays of stars related to a key (which is an integer value ). I do not already know about something created in the glib (although I'm giverite Not familiar with API), but seeing this, it will be petty to make a modified version of your code. Such treats.

- Where Developers Learn, Share, & Build Careers

कृपया देशी ऐप का चयन करने के बाद अवरोधन एसएमएस के लिए समाधान खोजने में मेरी मदद करें से चयनकर्ता , जबकि एसएमएस भेजना , मैंने इस समस्या के लिए R & amp; डी किया है और पाया है कि हम उस पर जावक एसएमएस नहीं रोक सकते चुनेदार से देशी ऐप चुनने के बाद का समय। इसलिए यदि किसी को इस मुद्दे के बारे में अनुभव है तो कृपया इसे साझा करें और इसे अत्यधिक सराहना होगा। धन्यवाद यह आवेदन के नजरिए से संभव नहीं है क्योंकि एसएमएस भेजने से SMSManager द्वारा नियंत्रित किया जाता है टेलीफोनी स्तर पर भेजने के साथ काम करने वाले फ्रेमवर्क के साथ संपर्क करता है, जो कि नहीं एक एप्लिकेशन परत से सुलभ है। हालांकि; आप आपूर्ति की टिप्पणी के सुझावों में से किसी एक का उपयोग कर डेटाबेस में डेटा का उपयोग कर सकते हैं।

Writing HTML code in C# -

मुझे क्या करना है; के लिए (int i = 0; i & lt; thexfiles.Length; i ++) {tosend = tosend + "& lt; tr & gt; & lt; टीडी & gt;" + thexfiles [i] + "& lt; / td & gt; & lt; टीडी & gt; "+ thexdates [i] +" & lt; / टीडी & gt; & lt; / टीआर & gt; & lt; टीआर & gt; "; } Mail.Body = tosend; मैं सी # कोड में एक तालिका में डेटा सम्मिलित करना चाहता हूं (html का उपयोग करके?), इसलिए जब यह मेल किया जाता है तो यह साफ दिखता है। आपको बस ऐसा करना होगा: के लिए (int i = 0; i & lt; thexfiles.Length; i ++ ) {Tosend = tosend + "& lt; tr & gt; & lt; td & gt;" + thexfiles [i] + "& lt; / td & gt; & lt; टीडी & gt;" + thexdates [i] + "& lt; / td & gt; & lt; / tr & gt; "; } Tosend = "& lt; html & gt; & lt; तालिका & gt;" + Tosend + "& lt; / table & gt; & lt; / html & gt;"; Mail.IsBodyH...

objective c - Monitor keyboard events by adding observer in RunLoop -

मेरा रन लूप प्रेक्षक निम्नानुसार लिखा है: शून्य पर्यवेक्षक कॉलबैक (CFRunLoopObserverRef पर्यवेक्षक, CFRunLoopActivity गतिविधि, शून्य * जानकारी) {println ("% u", गतिविधि); } // ----------------------------- शून्य इंस्टॉल ओब्सकर्वर () {सीएफआरुनऑलओब्सर्वर रीफ myObserver = NULL; Int myActivities = kCFRunLoopEntry; MyObserver = CFRunLoopObserverCreate (नल, मेरी गतिविधियां, हाँ, / * दोहराने * / 0, और पर्यवेक्षक कॉलबैक, नल); यदि (मायऑब्सर्वर) {सीएफआरन लूप एडऑब्सर्वर (सीएफआरन लूपगेट कंटेंट (), माइऑब्सर्वर, केसीएफआरन लूप कॉमन मोड्स); }} हर बार जब मैं अपने आवेदन में कोई भी कुंजी दबाता हूँ, तो प्रेक्षक कॉलबैक को 4 बार कहा जाता है सवाल यह है कि: मैं प्रेक्षक कॉलबैक के अंदर कुंजी कोड कैसे प्राप्त कर सकता हूं? धन्यवाद। आपके प्रश्न पर टिप्पणी के आधार पर, आप एक स्थानीय इवेंट मॉनीटर चाहते हैं, AKA: + [NSEvent addLocalMonitorForEventsMatchingMask: हैंडलर:] :

entity framework - ASP.NET MVC calculate week -

Image
I have an ASP.NET MVC4 project with ESP. In my (create) view I have a week of current year I want to show in front of an editor for the date. I have a helper: @ Model Helios model. Tablename @ helper week (date time dt) {CultureInfo ciCurr = CultureInfo.CurrentCulture; Int weekNum = ciCurr.Calendar.GetWeekOfYear (DT, Calendar WeekRule.FirstFourDayWeek, DayOfWeek.Monday); @weekNum} ... & lt; Div class = "editor-field" & gt; @ Html.TextBoxFor (model = & gt; model.date_birth, new {onchange = "?"}) @Week (date_birth?) & Lt; / Div & gt; I'm not sure that this may be a complete razor, but if I change the date Q : How can I display any number of weeks. Next to Datepicker And if the date has changed? week number. But it all depends on it if you plan to install it on the server If the customer can change the date, then you will need JavaScript instead. function (d) {var day = d.getDay () ; If (days == 0) day = 7; D.setDat...

playframework - SecureSocial on Play 1.2.x behind Apache -

I run SecureSocial on a 1.2.x installation (port: 9000). Apache access to the application is through Apache httpd: 80, which will then forward the requests. For SecureSocial, the URL in the request is now localhost: 9000 (see securesocial.provider .Auth2Provider.doAuth (map & lt; string, object & gt;): 111 ) , The authentication call will fail. I search for a clever solution to this problem which is not included "post-text" itemprop = " Conf , parameter XForwardedSupport in the All , or list of allowed proxies.

- Where Developers Learn, Share, & Build Careers

In the matlab, if there is one mile by 3 matrix which are present in all the large 3 by the matrix, how can I create Am 3 by a matrix (nm) in which there are no rows of the first (m3) matrix? For example if the first matrix [1 4 6] and the second matrix [1 2 3; 1 4 6; 8 7 4], how can I come up with the matrix: [1 2 3; 8 7 4]? This is a job for the 'rows' option: a = [1 4 6]; B = [1 2 3; 1 4 6; 8 7 4]; Eq_rows = ismember (b, a, 'rows'); Results = B (~ eq_rows, :)

xml - Refactoring Old code from J# to C# -

I have some old J code that I'm going to C # XmlNodeList ItemTransferOutNodes = strxML .GetElementsByTagName ("ItemTransferOut"); XmlElement itemInfo = itemTransferOutNodes.Item (itemTrOutNodesCnt) .ChildNodes.Item (0) .get_Item ("itemInfo"); I do not see the API c # API XmlNodeList method called get_Item . get_item in c # . Thank you. There is no support for properties like H #, so they use methods instead Are "fake". You can find more information on If some of the property names are named in the C # object: public class dummy {public string SomeProperty {get; Set; }} In J #, you will need to call get_SomeProperty () and set_SomeProperty (string value): public class dummy {private string something credentials; / ** @ Property * / Public unwanted setprop property (string value) {someProperty = val; } / ** @ Property * / Public string get_SomeProperty () {someProperty return; }} And the other side is true. If you f...

c - Redirecting standard input\output in Windows Powershell -

What is the syntax required to redirect standard input / output to Windows PowerShell? On Unix, we use: $ / Programs & lt; Input.txt & gt; Output.txt How do I execute the same task in PowerShell? You can not hook the file directly to stdin, but you can still access stdin . Go-content input. Txt | ./program & gt; Output.txt

button - FaceBook Share Counter Issue -

My Facebook-Share button was working fine, but for the past two days, its counter went to zero for all the positions. Like my most popular post now shows 25 shares, which was 400 days two days ago. Why? I used the plug-in Social Usage plugin to show share buttons with share, twitter, and others. I use the WordPress - Genesis Framework on News Child Theme. I've added the FB-jvascriptSDK code after the tag, but have not tagged through simple nerves. I know that FB is using the FB-share button but I think it is not optional for this? And many popular sites like dailymail.co.uk or HuffingPost.com are using FB-share and all of them are okay with it? Please help me to fix the problem of FB-share or make any alternative suggestions. The share button has been deprecated ... maybe they are still closing the counter Are you Check out this question:

android - cannot use GCMRegistrar? -

gcm.register can not be used with gcm.jar which I've added to create a path, but still I'm getting this message in the logcat. 07-12 14: 29: 08.825: I / dalvikvm (23536): The method can find com.google.android.gcm.GCMRegistrar.getRegistrationId, the method referred to com.example.registration_id Main activity. Create Make a / libs Folder and copy it to gcm.jar and then create it.

java - rowcount in flexTable in GWT -

I'm learning in the first line of the GWT flexTable Gone, Text Box, AddButton, Remove Button The addButton 2 line is added to the FactTable withe similar component as before on the event. (Tell, told, text box, addButton, remove button.) private button getAddbutton () {addbutton = new button (""); Addbutton.addClickHandler (New ClickHandler) {Public Zero onClick (ClickEvent Event) {int i = flexTable.getRowCount (); println ("I" + i); i ++; flexTable.setWidget (i, 0, getPropertyList () FlexTable.setWidget (i, 1, getConditionList ()); flexTable.setWidget (i, 2, getKeyWord ()); flexTable.setWidget (i, 3, getAddbutton ()); flexTable.setWidget (i, 4, getRemove ()); Remove.setStyleName ("CMIS-button-removeOn"); remove.setTitle ("" + i);}}); Addbutton.setSize ("25px", "25px"); Addbutton.setStyleName ("CMIS-button-couple"); Return addons; } I used to produce 1 of 3 I 5 i7 Why is ROWCOUNT Growing up to...

uri - CRM 2011: Using Organization Service returns metadata reference issue -

I am using the Organization Service URI to upload documents from notes and attachments to our SharePoint site. I am using code and all are working from where I set up Organization RI. I get an error in " Metadata has a reference that can not be resolved " I have tried to type this link again and whatever I can think of, but always me This error is detected. The strange thing is that it was working just fine a few days back, but when I tried it the next time, in the morning she refused to work and now she does not want to do anything. Before this error, I am getting an error saying that the URI scheme is not valid. I do not know what might be the reason for it being stopped, but I have tried everything that I thought and helped. Need thanks Edit: The error message has changed "A proxy type with the name account is defined by another assembly" yet not sure what it means, but I The text after this I hope it can be easy to fix, not sure that this is the ...

virtual machine - Arista EOS VM stucks during booting -

I am trying to boot an Arista EOS image at Ubuntu 12.04. The QMU-KVM package is installed but there is no command like qemu-kvm , so I am using the kvm command. VM becomes, starts to boot, but this boot stage root @ addanother-dr: ~ / qemu # kvm -nographic -vga std -cdrom Aboot-veos-qemu-serial-2.0.6.iso -boot d -hda EOS-4.9.0-VioS. VMDK-USB-M 1024-NIT NIC, MacDrue = 52: 54: 00: 01: 02: 03, model = E-1000 -NET NIC, MacDrue = 52: 54: 00: 01: 02: 04, model = e1000 -net nic, macadr = 52: 54: 00: 01: 02: 05, model = E 1000 -NET NIC, MacDrue = 52: 54: 00: 01: 02: 06 models = E-1000 -NET NIC, MacDr = 52: 54: 00: 01: 02: 07, Model = E 1000 Warning: Valen 0 is not connected to host network ISOLUX 4.02 2010-07-21 Copyright (c) 1994-2010 h. Peter Envin et al loading Linux ... Loading initrd .... Ready Aboot 2.0.6-689124 Press Able to boot Aboot Open Now Press Control-C Booting Flash: EOS-veos.swi Starting a New Kernel If someone can tell me what is wrong I am running 32-bit Ubuntu...

selenium - how properly delete cookies? -

I use Selenium WebDriver , I need clear cookies before I execute the test I use the code from the 'Selenium' site. This code is: cookie cookie = new cookie ("key", "value"); Driver.manage () addCookie (cookie). Set up & lt; Cookie & gt; Allcookies = Driver. Management (). GetCookies (); (Cookie loaded cookies: all cookies) {System.out.println (string format ("% s ->% s", loaded cookiejetname), loaded cookie.get value ())); } Driver.manage (). DeleteAllCookies (); But I get a notification: - The cookie can not be sorted in a way, the set can not be sorted in a way java.util is of the package. is of org.openqa. Selenium package. You need to import those two sections to work your code: import java.util.Set; Import org.openqa.selenium.Cookie; In order to make pain less painful, every modern Java IDE has an automatic function for it: In the eclipse, it "imports" Systematic "and sit under Ctrl...

- Where Developers Learn, Share, & Build Careers

I am thinking that a person has made a responsive design by using High Churches to make their chart good on both mobile and desktop Has successfully implemented By default, when you change the size of the browser screen, the upper chunks again scale, the X-axis tick marks are soaked in text and bar graphs, and very thin (very compressed). . To get an idea of ​​what I mean, you can change the size of the browser and go to it. I think that these issues could possibly reduce the amount of data points to say 1/3 of the original number, though I'm wondering how this program would be used for Hi-Tech's APIs. If it does not look like a good idea, then I am interested in other ideas or solutions, people may be using HighTech on mobile (or perhaps different Js charting libraries where multi-device solutions are easy to implement Ho. ?). The solution seems rather simple simply do not give a fixed width of the graph , That is, do not set the width or set the width: 100% a...

ios - How to localize mail app? -

Image
I have an iPhone app that sends an email with a report using MFMailComposeViewController. I have transferred the app to 6 different languages, both storyboard files and localization. However, when I test it (in both simulators and on the device) all mail applications buttons (cancel, send, draft, deleted, topic, etc.) are not localized. How do I solve this problem? I am creating a new taget language file. Simply create one for each localization: after going to the settings and after trying to change the language -> General: And from there you go to international: From there to the language: And the pint you that the default language you want, and you change the localizations. For example: it You should help.

javascript - jQuery input value focus and blur -

I have the following code, when a user selects the input box, the value will disappear, but the default value will be Once the user is re-inserted after closing it. $ (function () {var default text = ''; $ ('input [id = input]'). Focus (function () {$ ('input' [id = input] ). $ (This). $ (This) .val (); $ (this) .val ('');}); $ ('input [id = input]'). DefaultText);})}} ; However, this is not exactly how I want it. If a user inserts the text, then I do not want to override the default text on the user that the user has inserted. I'm also quite new to jQuery so that any help would be greatly appreciated. Your focus () method should be checked to see if Before clearing it, it is equivalent to defaultText , and in your blur () function, you have to check whether setting the defaultText First val () is empty If you are going to work with multiple inputs, it is better to use Class instead of ID, so your selector will be inp...

c - Using same array to store data repeatly -

I am reading data from a file word with the word and to store between each word in the same buffer with space I am trying. But the words are coming out of space without space. Please tell me what is wrong? AnaljiswalWikwikkumanini When I arrive in Kumarindia, I need a space between each word. int main () {four buff [200]; Int l = 0; File * FP; FD = Faucet; `` FP = FOPN ("Header C", "R"); Memset (buff, 0200); Whereas (1) {fscanf (FP, "% s", buff + l); L = strlen (fond); Printf ("word of string =% s \ n", buff); Printf ("length of string =% d \ n", l); If (FIF) {break; }} Fclose (fp); Return 0; } To ignore the fact that you are aware of the buffer overflow, Location can be added: fscanf (FP, "% s", buff + l); L = strlen (fond); Buff [l] = ''; L ++;

matlab - Defining an anonymous function using a symbolic expression in a vector that's already defined -

So here's the problem I'm having trouble. You symbolize the engine, but it is parametrized by some z now you want to create the function for this expression with the variable. Here is the code: sys a1 a2 a4 b1 b2 b4 c1 c2 c4 [a1, a2, a4, b1, b2, b4, c1, c2, c4] = ... solution ('a1 + a4 = 1', ... 'a1 * a4 - a2 ^ 2 = 0', ... 'b1 + b4 = 7', ... 'b1 * b4 - b2 ^ 2 = 10 ', ...' c1 * c4 - c2 ^ 2 = 55/4 ', ...' c1 + c4 = 8 ', ...' C1 = a1 + b1 ', ...' c2 = A2 + b2 ', ...' c4 = a4 + b4 '); Now I can do something like this a1 = @ (z) 13/18 - (- (35 * z ^ 2) / 81 + (280 * z) / 81 - 1 925/324) ^ (1/2) / 2 - z / 18; To define A1 is the first entry of vector A1 that was already defined ... But I like something like this instead a1 = @ (z) a1 (1) and then in that expression to plug values ​​for a1 (2) or a1 ( 4) Be able to type. How can I do this? Ah, just browsing around the stack excha...

java - Applying a custom CharTokenizer in Solr4 -

I have just typed a custom CharTokenizer , and I want to use it in my solar server . In Solr3, I can only increase the TokenizerFactory and return to my tax code forming the CharTokenizer , but TokenizerFactory So, I came to know that I should change the TokenizerFactory with the TokenFilterFactory , but in this situation, I did not return my custom CharTokenizer , because the parameters do not match. I also search for some documents, but it seems that nothing is really useful in it. So, how can I work it out? Example: The public class expands MyCustomTokenizer CharTokenizer {char anotherSpace = 24; Public MyCustomTokenizer (version matching edition, reader in) {super (in Milan version,); } Protected Boolean isTokenChar (come C) {return! Character.HisSpace (C) & amp; Amp; IsToken ((four)); } Private boolean isToken (char c) {if (c == Other Space || c == ',') {return false; } Back true; }} Public class MyCustomTokenizerFactory token filterfactor (pu...

configure eclipse indigo cvs for one workspace referencing two cvs servers with differing cvs_server -

I have to keep a workstation connection from two CVS servers running on a Solaris and do a setting in Windows and GT the wanted; Preferences & gt; Team & gt; CVS & gt; Extension Connection Method & gt; CVS_SERVER "/ opt / csw / bin / cvs". The other CVS server runs on Linux and for this, the Settings window & gt; Preferences & gt; Team & gt; CVS & gt; Extension Connection Method & gt; CVS_SERVER "/ usr / bin / cvs" (In fact, the Linux server probably does not require this setting at all, it will probably work with the default path. But the path to the CVS in the default path for SSH login on Solaris does not include So that setting is necessary for Solaris connection. ..) Is there a way to create specific "CVS_SERVER" setting for connection so that a workspace can support two different settings? Of course, I know that symbolic links can be seen both paths similar to CVS to both servers or both servers, but I ho...

- Where Developers Learn, Share, & Build Careers

! [ The image tells me what the console output gives me I checked the error file and there are no errors? Was it working 5 hours ago? When I run them, I give exact identical console output to different types of programs. This is AquawileTystem executing the main method Stderr output

File Upload to Slim Framework using curl in php -

संभव डुप्लिकेट: पीएचपी में एक फाइल अपलोड करने के बाद, मैं उस फाइल को मेरे बाकी एपीआई में कर्ल का उपयोग करने की कोशिश कर रहा हूं जो स्लिम फ्रेमवर्क का उपयोग करता है। हालांकि, स्लीम में फ़ंक्शन पहुंचने के बाद $ _FILES हमेशा खाली रहता है sender.php यदि (move_uploaded_file ($ _ फ़ाइलें ['myFile'] ["tmp_name"], $ अपलोड डायरेक्टरी। $ _FILES ['myFile'] ["नाम "])) {$ Ch = curl_init (); $ डेटा = सरणी ('नाम' = & gt; 'परीक्षण', 'फ़ाइल' = & gt; $ अपलोड डायरेक्टरी। $ _FILES ['myFile'] ["नाम"]); Curl_setopt ($ CH, CURLOPT_URL, 'http: // स्थानीयहोस्ट / स्लिम-स्थान / अपलोड /'); Curl_setopt ($ CH, CURLOPT_POST, 1); Curl_setopt ($ CH, CURLOPT_POSTFIELDS, $ डेटा); curl_exec ($ ch); } और स्लिम में अनुरोध प्राप्त करने के लिए फ़ंक्शन: $ ऐप- & gt; पोस्ट ('/ अपलोड /', फ़ंक्शन () का उपयोग करें ( $ App) {if (isset ($ _ FILES)) {// गणना हमेशा शून्य गूंज गिनती ($ _ FILES);}}) है; क्या...

tfs2012 - Chutzpah integration with TFS 2012 -

मेरी टीम चुट्ज़पा को टीएफएस 2012 बिल्ड प्रक्रिया में एकीकृत करने का प्रयास कर रही है। हम अपने शुरुआती बिंदु के रूप में इस्तेमाल करते हैं। उच्च स्तर पर व्यावहारिक मुद्दा यह है कि बिल्ड एजेंट टेस्ट रनर बिल्ड एजेंट संदर्भ में बस चुटज़पा हुक को नहीं खोज रहा है। इसलिए जब हम ** * * * जेएस को एक परीक्षण स्रोत के रूप में परिभाषित कर सकते हैं, चट्सपा बूटस्ट्रैपर बिना वास्तव में पाया जा रहा है और आरम्भ किया जा रहा है, टेस्ट रनर इन फ़ाइलों के साथ कुछ नहीं करता। अधिक विस्तृत स्तर पर, हम तीन संबंधित संदेश प्राप्त कर रहे हैं जब हम बिल्ड नियंत्रक के लिए कस्टम असेंबलियों को लोड करने के लिए लॉग की जांच करते हैं: सारांश: 0 विफलताओं, 2 त्रुटियां थीं और 1 कस्टम गतिविधियों और सेवाओं को लोड करने वाली चेतावनियां त्रुटि: विधि विधानसभा 'Chutzpah.VS2012.TestAdapter, संस्करण = 2.2.0.171, संस्कृति = तटस्थ, PublicKeyToken = 1ca802c37ffe1896' से प्रकार 'Chutzpah.VS2012.TestAdapter.ChutzpahAdapterSettings' में 'ToXml' एक कार्यान्वयन नहीं है। त्रुटि: एपीआई प्रतिबंध: विधानसभा '...

- Where Developers Learn, Share, & Build Careers

I have installed a jQuery slider in WordPress and the plug comes with an API. API information that has been given to me The API methods are trying to make me my previous and next button: Previous slide: revapi1.revprev (); Next slide: revapi1.revnext (); I think I need to use two ways about it thanks jamie Maybe you can try it. Place this in your header: $ (document) .ready (function () {$ ("# revNext"). Click (function () { Revapi1.revnext ();});}); Put it in your body & lt; Div id = "rev nextext" & gt; Next slide & lt; / Div & gt;

wordpress - jQuery slider buttons api methods -

I have installed a jQuery slider in WordPress and the plug comes with an API. API information that has been given to me The API methods are trying to make me my previous and next button: Previous slide: revapi1.revprev (); Next slide: revapi1.revnext (); I think I need to use two ways about it thanks jamie Maybe you can try it. Place this in your header: $ (document) .ready (function () {$ ("# revNext"). Click (function () { Revapi1.revnext ();});}); Put it in your body & lt; Div id = "rev nextext" & gt; Next slide & lt; / Div & gt;

java - No output from JFrame? -

So I'm trying to create a tectonic board, though it is not showing anything. (A main square but it just makes "GameBoard") Any help will be greatly appreciated, thank you in advance. So I said that the component can not believe I forgot that, I should be tired. But now what I get is a red square. Public GameGord () {GeFrem Frame = New GeFram (); Frame.setDefaultCloseOperation (JFrame.EXIT_ON_CLOSE); Frame Setbacks (0, 0, 195, 215); Frame.setSize (new dimension (300, 400)); Int count = 1; Rectangle board [] [] = new rectangle [3] [3]; For (int row = 0; line; lt; board.length; row ++) {for (integer col = 0; col & lt; board [line] length; cola ++) {if (count == 2) {board [row] [Col] = new rectangle (1,1,1,1); Board [row] [col] .setBackground (Color.RED); Frame.add (board [row] [col]); Count--; } Else {board [row] [col] = new rectangle (1,1,1,1); Board [row] [col] .setBackground (Color.BLACK); Frame.add (board [row] [col]); Count ++; }}} Frame.pack (); Frame....

c# - How to insert a file g.resources into an Assembly -

I need to change a resource by changing a legislation. I have already removed the resource and amended it But now I can not find a way to embed it again in the assembly. I have tried with ildasm but it seems like it wants a .res resource file and I only have a xxx.g.resources file. Any thoughts? Thank you It's just an idea: maybe you can create a new assembly Where you can include new resources, and other "things" that you do not modify may be able to remove other "things" in the way you can remove resources ...

sql - pivoting rows to columns in tsql -

I have the following sample data in the following table ID language question SubQuestion SubSubQuestion TotalCount Kulprasar 3 E 9 0 1 88527 73% 3 E 9 2 2 1 9 684 16% 3 E 9 323 9 60 11% 3 e 9 9 9 33 1% Let me In the row everything should be like this: id language TotalCount901 TotalPercent901 TotalCount902 TotalPercent902 TotalCount903 TotalPercent903 3E 88,527 73% 19,684 16% 12960 11% I Tired, but it is not ready to work for me. I have made some assumptions based on your column names, but it seems that you Want to use something similar from This is applied to both UNIVIS and then a PIVOT to get the value in the column you requested: Select from (Selection ID, Language, QL + Cast) (as the Varchar (10)) + cast (subsurface as Worker (10)) + Cast (Submitted Question as varchar (10)), Call value (Selection ID USRC unpivot (in (TOTALCOUNT, totalpercent)), language, artist (varchar (10)) as TOTALCOUNT, totalPercent, question, subquestion, yourtable (SubSubQuestion...