Posts

Showing posts from August, 2015

php - Can I use name of the column as parameter in PDO? -

I am trying to execute it: $ colparam = 'abcd' ; $ Stmt = $ db- & gt; Ready (select "Select?" $ Stmt-> Operate (array ($ colparam)); $ rows = $ stmt- & gt; Get all (PDO :: FETCH_ASSOC); And it is not working (no error, just empty array as a result). Instead it works fine: $ Stmt = $ db- & gt; Ready (select "Coal order of coal ASC as ACCD ASC"); $ Stmt-> Executed (); $ rows = $ stmt-> Get all ( PDO :: FETCH_ASSOC); So what's the name of the column in the PDO Is there a hold with the use of parameters in the form of? No, you have a database object in MySQL ( Table, column etc.). When you think that what exactly is a prepared statement, it is considered complete as MySQL prepares a query execution plan. This can not be done when the database is included in objects. I can certainly The more documentation will actually be covered which actually makes a prepared statement (beyond its apparent use for the paramati...

coldfusion - outputting variable in the URL -

I want to print my dates as variables in the URL: I have the following url : & lt; cfset urladdress = "https://abc.xyz.com/start_date=2013-04-01&end_date=2014-04-22&data_type=123"> I have set my dates as follows: & lt; cfparam name = "startdate" default = "# dateFormat (dateAdd ('D' -1, now ()), 'yyyy-mm-dd') #" & gt; & Lt; Cfparam name = "enddate" default = "# date format (add date ('d', 0, now ()), 'yyyy-mm-dd' #" & gt; And now, I'm trying to print it like this: & lt; cfset urladdress = "https://abc.xyz.com/start_date =" & lt; cfoutput & Gt; # StartDate # & lt; / cfoutput & gt; "& amp; end_date =" & lt; cfoutput & gt; # ENDDATE # & lt; / cfoutput & gt; "& amp; DATA_TYPE = 123" & gt; And I get the following error: Invalid column was found on 123 column 123 in line 12...

javascript - Get object property name -

इस सवाल का पहले से ही एक उत्तर है: 18 उत्तर मेरे पास निम्न ऑब्जेक्ट हैं: 2, "4 डी": 3, "5 डी": 4, "6 डी": 5, "2 डी": 1, "2 डी": 2, "4 डी" "7 डी": 6}; फ़ंक्शन SomethingElse (obj) {this.2D = 0; This.3D = 0; This.4D = 0; This.5D = 0; this.6D = 0; This.7D = 0; के लिए (obj में var सहारा) {यह [सह] = obj [prop]; }} मेरे पास एक पूर्णांक है जिसमें से मैं संपत्ति प्राप्त करना चाहता हूँ something का नाम (उदाहरण के लिए, अगर मैं 2 में से गुजारें तो मुझे वापस स्ट्रिंग " p> सरल समाधान एक फ़ंक्शन बनाने के लिए होगा जो कुछ के सभी गुणों के लिए (... में ...) के साथ दोहराता है और देता है पहला मिलान संपत्ति या अन्य नल । फ़ंक्शन खोज (मूल्य) {के लिए (कुछ में सहारा है) {if (something [prop] === value) { वापसी प्रोप;}} वापसी नल;}

event handling - WPF: Get underlying element inside adorner in PreviewMouseLeftButtonDown of a Canvas -

Element with Edner in the canvas uses Edgar's visual evaluation, and places a thumb in a specific place of the decorated element. is. I would like to click on the adonant, preview the canvas preview mouse-left buttondown element and get the underlying element inside the adornor. But in this case I get main window as ESOs. Could you please help? I'm a newbie in WPF. Public class connector Edward: Adornor {private readonly connector thumb _thumb; Private Readonly Visual Collection _ Visual; Public Connector Edner (UIElement Beautified Element): Base (Decorated Element) {Focusable = True; _ Visual = new visual evaluation (this); _thumb = new connector thumb (); _thumb.Background = Brush Transpain; _visuals.Add (_thumb); } Secure Override Size Arrange Override (Size Final Size) {Double elHeight = AdornedElement.DesiredSize.Height; Double Edender Width = desired size. Wide; Double ederHeight = desired size. Light; _thumb.Arrange (New Rectangle (0, -Highight / 2, Brilliant Wid...

Maven Plugin for Validating JSON Files -

I'm looking for a maven plugin that will simply compare a JSON file to an associated JSON schema file. Basically we are suffering from invalid configuration files that only run in the same environment. Therefore the test of the "Dev" environment will be passed with flying colors, however, when the application launches with the "Prode" configuration, then this application fails to start, if the config says that a comma is missing or not JSON does not parse. To check a non-intrusive solution, this configuration file is in the least expected form to succeed (say inside a CI environment). The posting Maven plugin for this completion was opened by Groupon and can be found here:

Twitter get followers/ids curosr not working -

I am trying to get the full list of follower ID for a Twitter user. This user has 170,000+ followers, I am using Code Birds Library. Here's the code: \ Codebird \ Codebird :: setConsumerKey (TWITTER_CONSUMER_KEY, TWITTER_CONSUMER_SECRET); $ cb = \ Codebird \ Codebird :: getInstance (); $ Cb- & gt; Settoken (OAUTH_TOKEN, OAUTH_SECRET); $ Cb- & gt; SetReturnFormat (CODEBIRD_RETURNFORMAT_ARRAY); $ Next_cursor = -1; While ($ next_cursor) {$ result = $ cb-> Follower_ids ("screen_name = some_tw_name", "count = 5000", "cursor = $ next_cursor"); $ Next_cursor = $ result ['next_cursor_str']; } The first call returns 5000 ids, because it is considered. Later calls (while through the loop) return 5000 IDs, but they are almost like all previous calls (each new call I get about 10 news IDs from 1, with the rest like before). Anyone run into this issue? oath? I think the problem is that you are not actually combining results with each ...

amazon s3 - serverSideEncryption with chunking (multi-part) -

Correctly using uploader 4.3.1, and access to Amazon S3 denied when using server seyd encryption and checking Ran into the reaction. I think that I had a problem with this problem, but I do not have any bucket policy that requires encryption: Check one's conscience that Chanking And do server-side encryption work together? Thank you! If you are using Amazon S3 server side encryption again, then you are also assured You will need to have that your cos configuration on the bucket allows proper header. If your Corus configuration contains a wildcard to allow all the headings, you do not need to change this part if you win but if you are trying to be more secure and you are special If you are defining your allowed headings in the form, it is necessary to avoid the "Access Denied" feedback. Enter your Amazon AWS S3 Management Console and navigate under the bucket permission for your S3 bucket properties, edit the CORS configuration. Insert this line betwee...

sql - MySQL - join table if x is not null -

मेरे पास निम्न प्रश्न है जो सही परिणाम उत्पन्न करता है यदि प्रत्येक main menu , यदि इनमें से कोई भी रिक्त है, तो कोई भी परिणाम नहीं लौटाया जाता है। मैं बाएं जुड़ने का उपयोग नहीं करना चाहता हूं क्योंकि इससे जुड़ने वाले मेनू में निष्क्रिय होने पर परिणाम निकलेगा। से चुनें * कहानियों से जुड़ें मेनू मेनू पर s.mainMenu = m.id और m Menu_active = 1 JOIN सबमेनू एम 2 ऑन s.subMenu = m2.id और m2.submenu_active = 1 जॉइन सबमेनू_एल 2 एम 3 ऑन s.smMenu2 = m3.id और m3.submenu_L2_active = 1 WHERE s.story_id = 198 और s.story_active = 1 क्या तालिका में शामिल होने का कोई तरीका है यदि कहानियों की तालिका में प्रासंगिक कॉलम शून्य नहीं है? तो ऐसा कुछ: SELECT * कहानियों से अगर s.mainMenu नल नहीं है तो मेन्यू यू पर मेन्यू = एम.आईडी और एम.मेनू_एक्टिव = 1 अंत में जुड़ें, अगर सम्मिलित हों तो मुझे ... मैं मुकुस के साथ सहमत हूं। लगता है जैसे आप एक बग़ल में शामिल होना चाहते हैं। एक बाएं जोन तालिका 'कहानियों' और तालिका 'मेनू' के डेटा से सब कुछ लौटाएगा जहां वे शामिल होंगे। ...

javascript - JSON Call JS Display Date formatting -

Using JSON, I was able to successfully display the file with the loop path and date through a directory However, I'm not sure how to change the output. I just want to show months and years instead of day-to-month year. $ GetJSON ( "http://www.houston.org/api/v1/forms/dir", function (data) {DatakforEach (function (o, i) {Adiand ( '& lt; div & gt; & lt ; a href = " '+ o.phath +' / '+ n.Name +'" & gt; '+ new date (o. Created) .toDateString () +' & Lt; / a & gt; & lt; / div> ';);});}); & Lt; Div id = "arChives" & gt; & Lt; / Div & gt; View my sample In addition to this question (if I do not want to ask this question separately, then it is definite), to capture the date I created the file wish or last modified date as I add new docs / dir / folder, so the date is finally attached to each file propounded the same ... even if you clear the last modified date January K ...

hadoop - pig counting distinct leads to scalar has more than one row in output error -

I have a pig relation that reads some things - Description A; A: {Header: (member_id, field_2, ..)} Now I just want to tease members so that I do this - A1 = A generated dealer. Member_id; A2 = limited A1 10; A2; This error runs for a very long time to finish - Backend Error Unable to open Iterator for aka A2: There is more than one line of scalar in the output. What am I doing? The issue is with this line: A1 = A Aadder for the product. Member_id; You should not reference A in A.header.member_id . The pig is operating in each code A so that it only sees the value in each tuple (in this case only header ) because the pig is in this area A does not see, checks to see if it can use a relationship (in your example A , A1 , and instead of A 2 relationship) However, it can only use that connection if it has a line; If this does not happen, then the error happened to you. The solution is to change only A1 : A1 = FOREACH A GENERATE header.member_...

android - TextChanged Listener -

Image
I'm still new to Android development and what I want to do is create a listener, which will include two textview objects. Area and perimeter width and height edit text objects are when I have entered the width and height, the circumference and area value should be shown in real time based on the methods of calcarea and calc parameter. The code I used for the listener is an example that I found here. My code: package com.jtryon.rectanglecalc; Import android.support.v7.app.ActionBarActivity; Import android.support.v7.app.ActionBar; Import android.support.v4.app.Fragment; Import android.text.Editable; Import android.text.TextWatcher; Importroid.os.Bundle; Import android.view.LayoutInflater; Import android.view.Menu; Import android.view.MenuItem; Import android.view.View; Import android.view.ViewGroup; Import android.widget.EditText; Import android.widget.TextView; Import android.os.build; Public Class Main Activity Extends ActionBarActivity {//} in the fields / variables that t...

c++ - OpenMP vs C++11 threads -

Take approximately 50 seconds to execute C ++ 11 threads in the following example, but OMP threads only 5 seconds no idea Why? (I can assure you that if you are doing actual work instead of doNothing , or if you do it in another order, etc.) I am also on a 16 core machine. I #include & lt; Iostream & gt; # Include & lt; Omp.h & gt; # Include & lt; Chrono & gt; #include & lt; Vector & gt; #include & lt; Thread & gt; using namespace std; Zero doNothing () {} int run (int algorithm torran) {auto startTime = std :: chrono :: system_clock :: now (); For (Int j = 1; J & lt; 100000; ++ J) (if (Algorithm TORU == 1) {Vector For Thread; (Int i = 0; I Elapsed_seconds = endTime - startTime; return elseed_seconds.count ();} int main () {int cppt = run (1); int ompt = run (2); court & lt ; & lt; cppt OpenMP (and also) tearing down OpenMP (and also) is costly. OpenMP avoids this overhead, so all this is doing real work and the mini...

c# - How to open a database in asp.net web forms? -

I need to open a pre-existing database in C # with ASP.NET web form is. How to do the new database and how to create a table I If anyone knows how to do this, please let me know. > Thank you Open connection to the database. You will need the proper connection string The place to go is SqlConnection conn = new SqlConnection (yourConnectionString); Create a command string yourSQL = "SELECT FirstName FROM employees"; Perform a DataReader Fill out a table with a data adapter This is the basic pattern.

android - No empty constructor error, SurfaceHolder.callback -

I'm trying to display the camera view using a class surfaceview and applies surfaceholder .callback . In my main activity, ViewActivity , which you set below as a scene using the illustration of an object and setContentView (myCameraSurfaceHolder) from SurfaceHolderActivity ; . While running the app on the device, it crashes and Lockat says an error is not an empty constructor Please help me find the error. See Activeivity: Personal PageFolderHold Attachments myCameraSurfaceHolder; Personal android.hardware.Camera myCamera; Override public null on @reate (bundle saved instainstate) {super.naught (savedinstenstate); Centricized Orientation (activity information. SCREEN_ORIENTATION_LANDSCAPE); RequestWindowFeature (window.FEATURE_NO_TITLE); . GetWindow () setFormat (PixelFormat.TRANSPARENT); GetWindow () Setflag (Window Manager. LayoutParams.FLAG_FULLSCREEN, WindowManager.LayoutParams.FLAG_FULLSCREEN); MyCameraSurfaceHolder = New Surface HolderActivity (this); SetCon...

How do I evaluate bool in a IF statement between a positive and negative integer in C++? -

I am comparing a variable in my program that is against a negative number in my Arduino project. The scratch code is as follows - int y = 40; If (y & lt; -100) {do something; } However, when I try to verify my code in the Arduino IDE, I have been greeted with this error message, sketch_apr23a. Ino: 'zero loop' in function: sketch_apr23a: 32: error: '0000' was not declared in this scope I'm assuming it because - negative of 100 Contrary to the signal, some types of operators probably? If one statement in C ++ is the best way to compare an integer against a negative integer? Thanks !!!!!! > Edit - I do not believe that I had typed an El there, sorry to waste my time with me some time! However, I really appreciate you for your help, and my code is verified right after right, thank you very much! After completing my 12 minutes, I will accept my first answer! I think you are confused l00 and 100 .

regex - string match using awk -

I have a separate file from the tab that contains the rows: field1 field2 field3 field4 field 5 Field 6 1 ABC 2 Words: Add, Word: Text String 2 XII 2 Remove Word: Change, Word: Modify Message String 3 Lmn 1 Word: Add Message Numeric 4 Cncn 2 Phone: Add, Phone: Remove Message Message Number 5 Lmn 2 words: add msg text I want to write an awk program / oneliner which I In the other words, it should be first filtered and then "add" or "remove" in field 4 and field3 == 2 and field 4 and, 1 abc 2 words: add, word: remove text string 2 xyz 2: change, word: modify msg string 4 cncn 2 phone: add, phone: remove message numerical 5 lmn 2 words: Add msg msg They should be filtered in the second step 1 ABC 2 words: add, After: Remove the text string 4 cncn2 phone: add, phone: delete message numerical 5 lmn 2 words: add msg text I can get the first step right Use: cat test.tsv | Awk -F '\ t' '$ 3 == 2' How do I match the substrings f...

python - How to convert a matrix of strings into a matrix of integers using comprehensions -

I have matrix [['1', '2'], ['3', '4']] I want to convert to a matrix of integer. Is there a way to understand this? [[int (a), int (b) ]]

swing - Can't Load Image in Java -

I want to load an image and want to use it as a back ground for my zenith, No error or result I also tried to use the buffard image and tried to set the file space on the path of the image, but I got an error "The input file can not be read! "After some research, I found this method and an easy choice. Import javax.swing.ImageIcon; Import javax.swing. *; Import java.awt. *; Import java.awt.image. *; Import java.io.file; Import java.io.IOException; Public Sector Draerea extends JPNail {Public Dyeria () {init (); } Private zero init () {setPreferredSize (new dimension (570, 570)); SetVisible (true); } Private Zero initializeGrid (Graphics G) {Graphics2D g2d = (Graphics2D) G; Image img = new imagen ("/ linear aquisition / src / exit.png"). GetImage (); G2d.drawImage (IMG, 0, 0, this); } Public Zero Paint Component (Graphics G) {Superpact Component (G); initializeGrid (g); }} thanks in advance never read in one Image in Paint or Paint Component Method. ...

Using Boost library with Borland C++ Command Line Tool -

There is a problem compiling the C ++ code booster (1.55.0) using the Borland C ++ Command Line Tool (Borland C + 5.5.1) I I test the example from the Boost Start Page, e.g. cpp: #include I have modified the header that promoted the bcc32.cfg file as follows: -i "c: \ Borland \ Bcc55 \ include "-i" C: \ boost_1_55_0 "-L" c: \ Borland \ Bcc55 \ lib " Then, I compile using bcc32 example I try .cpp , get the following errors: Error E2221 C: \ boost_1_55_0 \ boost / static_assert.hpp 62: Macro Logic Syntax Error Error E2221 C: \ boost_1_55_0 \ boost / static_assert .hpp 182: Macro Logic Syntax Error Error E2238 C: \ boost_1_55_0 \ boost / tuple / detail / tuple_basic.hpp 429: 'length & lt; Tupal & lt; Multiple declaration for null_type, null_type, null_type, null_type, null_type, null_type, null_type, null_type, null_type, null_type & gt; & Gt; 'Error E2344 C: \ boost_1_55_0 \ boost / tuple / detail / tuple_basic....

How to use Visual Basic, Mindstorms NXT and USB communication Altogether? -

I am researching for a few days, and I am not getting anything that I can send directly to the instructions I understand. USB I have found that all the tutorials are based on Bluetooth communication, and the information I received about US always "better changes in Bluetooth" or "think of com port" I had previously ordered those Bluetooth , But the connection often fails to prove useful, and is slower than the USB. The USB connection is not found as a COM port, but I know that it is correct to control motors, get sensor input with a USB connection, because Lego software does this It has a remote control feature that allows the user to activate motors from the PC, and can also read sensor input. So, my question is, how can I send and receive those direct orders through USB? And, is there any way to do this in Visual Basic 2008? You can use the Monocharic Communication Library to do this. See. Alternatively, you can use the Fantom driver from the offi...

windows phone 8 - No pushpin when using MapsTask on WP8 -

I can not see pushpins using mastsct, map is fine, but there is no pushpin on the map, no one knows why ? Thanks! if (ground! = Null) {map toggle map task = new maptask (); Map Tasks Center = geographic; Map Tasks Zoom level = 15; MapsTask.Show (); } You can use mapTask.SearchTerm, the first result will show on the map pushpin . There are some APIs for more work in the map task if you want multiple pushpins or want to customize for more information, then it is called XML and. Use and design in CC file. Here's a good example: Hope this helps.

forms - Setting values for multi select elements in magento custom module -

I am developing a custom module in Magnomen and having difficulty defining options for multi-select elemets $ this-> _addFieldsToFieldset ($ fieldset, array ('cities' = & gt; array ('label' = & gt; $ this- & gt; __ ('city'), 'input' = & gt; 'multiselect', 'required' = & Gt; true, 'option' => $ zone solver-> getAvailableCities (),),)); Like ... and getAvailableCities (), $ read = Dana :: getSingleton ('core / resources') - & gt; GetConnection ('core_read'); $ Result = $ read-> Receive (choose from all "districts"); $ Option = array (); Forex currency ($ result as $ line) {$ option [$ row ['city_id']] = $ line ['city']; } Return the $ option; } But multi-selection element is shown but there is no population in the form. But if I wanted to set it as a general select element then it would be populated. For anyone else on the same issue ...

iphone - Can I implement localization manually in ios? -

I have implemented localization in my iPhone app to support four languages ​​English, French, German and Spanish. So when the app starts, it detects the local language of the device and if it is one of four, it changes the app into a local language otherwise it supports the base language i.e. The English app requires that the user select and change the language from the app's settings, not on the device, so the app must not depend on the local language on the language device. it's possible? If so, how to do it? Please suggest me Let's try: NSString * NSCustomLocalizedString (NSString * key) , NSString * comment) {NSString * rs = nil; // Change the [[NSUser Defaults standard user defaults] fullCorrect: key_language] with dissection in your language. If ([[NSUserDefaults standard user default] fullCorrect: KEY_LANGUAGE] == e_language_japanese) {rs = NSLocalizedStringFromTable (key, @ "Localizable.strings-ja", zero); } Else {rs = NSLocalizedStringFromTabl...

c++ - What is the preferred way to read from a file into a char array? -

apology for the original question; I am relatively new to C ++. I have looked around and have seen many different suggestions how to read from a file to four arrays, for example, makes a four array of size 10000, but it is sub-symmetrical (or Not wasted space, or adequate space). What is the simple and most used method from a file to a string, or a string-like sequence? This is a normal operation; There should be a standard way to do this. Is there no one liner for this? I usually use it (like when we do not not a loop Read thousands of files in!): std :: ifstream file ("data.txt"); Std :: string data {std :: istreambuf_iterator & lt; Char & gt; {File}, std :: istreambuf_iterator & lt; Char & gt; {}}; No need to use std :: copy (like the other answer, now deleted!). If you want vector, then use it instead: std :: vector & lt; Char & gt; Data {std :: istreambuf_iterator & lt; Char & gt; {File}, std :: istreambuf_ite...

Windows Authentication not working in ASP.NET MVC 5 web app -

Image
I have an ASP.NET MVC 5 app and I am trying to enable Windows authentication. Development Machine Windows Server 2008 R2, IIS Express 8.0, Visual Studio 2013 & amp; .NET Framework 4.5 Whenever I browse the app I get a 404 error App http: // localhost: 63455 / account / login / return url =% 2f with one Redirect enters the loop. Eventually, ReturnUrl is getting very big because it gets attached to each redirect. My web Configured looks like this: & lt; System.web & gt; & Lt; Authentication mode = "Windows" /> & Lt; /system.web> I have tried to set the Anonymous authentication and Windows authentication setting on development server properties. I have the following app settings : & lt; Add Key = "AutoFormat" value = "False" /> & Lt; Add key = "enableSimpleMembership" value = "false" /> How can I work with Windows authentication properly? ConfigureAuth metho...

jquery - Show or hide a div in javascript -

स्क्रिप्ट कोड: & lt; script type = "text / javascript" & gt; फ़ंक्शन स्वैप (वैल) {var elem = document.getElementById ('tablepanel'); If (val == 0) {elem.style.visibility = 'hidden'; } अन्य {elem.style.visibility = 'visible'; }} & lt; / script & gt; .aspx कोड & lt; div id = "tablepanel" runat = "server" & gt; & Lt; तालिका शैली = "चौड़ाई: 901 पीएक्स; ऊंचाई: 22 पीएक्स;" & gt; & LT; टीआर & gt; & Lt; td align = "left" & gt; & Lt; एएसपी: बटन आईडी = "बीटीएन बैक" रनैट = "सर्वर" ऊँचाई = "28 पीएक्स" ऑनक्लिक = "बीटीएन बैक_क्लिक" शैली = "कर्सर: पॉइंटर;" पाठ = "& amp; amp; एलटी; & amp; lt; पिछला" टूलटिप = "पिछला प्रश्न" का उपयोग करें सबमिट करेंवहारकर्ता = "गलत" चौड़ाई = "75px" / & gt; & Lt; / टीडी & gt; & lt; td align = "center" & gt; ...

How does Python 2.7.3 hash strings used to seed random number generators? -

This is true in 64-bit Python 2.7.6, although in 32-bit Python 2.7.3 this is incorrect: random. Random (hash ("a") random () == random Random ("a") Random () So how does Python 2.7.3 hash strings are used for random number generators? The reason for 32bit hash random module seeds () function : Will pass or use this PyNumber_Absolute () for long One object (one string) code> PyLong_FromUnsignedLong ((unsigned long hash) signature bit cut and stomach give different results Example: abs (-10) = 10 ((unsigned long) -10 ) = 4294967286

java - Android onCreateOptionsMenu is not displaying -

Image
In my Android activity, I removed the action bar using this theme & Lt; Style name = "theme." Parents = "@ Android: Style / theme. Any title" & gt; & Lt; / Style & gt; But my problem is not displayed on "Create Option Manage", I have tried this method to create that PLS View Private Zero GetOverflowMenu (see {configuration config = ViewConfiguration.get (Home.this); Field menu field = field combination Class.getdcloidfield ("sHasPermanentMenuKey"); If (menuKieField! = Null) {menuKeyField.setAccessible (true); MenuKeyField.setBoolean (config, false); }} Hold (exception e) {e.printStackTrace (); }} The "Create Option Manage" is not showing on this please help me but it is displayed in Samsung Because: Samsung Mobile has its own hardware menu button, but the Nexus is not in the other Please refer to the image > AndroidManifest.xml I just deleted Finally I got the answer this line An...

java - doFilter method is not running? -

यह login.jsp पृष्ठ है & lt;! DOCTYPE html & gt; & LT; html & gt; & Lt; शीर्ष & gt; & Lt; मेटा http-equiv = "सामग्री-प्रकार" सामग्री = "पाठ / html; वर्णसेट = यूटीएफ -8" & gt; & lt; शीर्षक & gt; जेएसपी पृष्ठ & lt; / title & gt; & Lt; / head & gt; & LT; बॉडी & gt; & Lt; फ़ॉर्म क्रिया = "चेक लॉगिन" विधि = "पोस्ट" & gt; & Lt; h2 & gt; लॉगिन टैब & lt; / h2 & gt; & Lt; br & gt; लॉगिन आईडी: & amp; nbsp; & amp; nbsp; & amp; nbsp; & amp; nbsp; & amp; nbsp; & Lt; इनपुट प्रकार = "टेक्स्ट" नाम = "लॉगिनिड" & gt; & lt; br & gt; & lt; br & gt; पासवर्ड: & amp; nbsp; & amp; nbsp; & amp; nbsp; & amp; nbsp; & lt; इनपुट प्रकार = "पासवर्ड" नाम = "पासवर्ड" & gt; & lt; br & gt; & lt; br & gt; & Lt; इनपुट प्रकार = "सबमिट करें" मान = ...

android - erroe in importing volley in project -

I'm trying to import volley in Android application. For example, here! And completed all the steps asking in the project, but I can solve the line to get the 'error' method JsonObjectRequest jsObjRequest = new JsonObjectRequest (Request.Method.GET, url, null , New response.Listener () Please help me solve it, what is the problem, I am not able to understand it. Cloning Volley Library Open command prompt, go to the location where you want to clone the volley. And want to execute the following command, it will download a copy of the volley library in your local drive. git clone https://android.googlesource.com/products/ frameworks / Volley See how to integrate the volley in your project here and here:

regex - MySQL - REGEXP for matching a number preceded by '#' and NOT followed by another number -

I think I have already explained in the title, I want to select all rows in the table of a REGEXP pattern A typical column is needed This pattern is complete: Characters '#' after the given number, e.g. For example, the given number '5': (# 12 + # 55-), '5' must be present at least once, and not from any other number. # 8) / # 2 - & gt; Pattern should not match (# 12 + # 5- # 8) / # 2 - & gt; Pattern must match (# 12 + # 55- # 5) / # 2 - & gt; Pattern should match Unfortunately I'm not a regex expert and I have already wasted a few hours without much success. Any help is very welcome. In that case, the following will work: ^. *? (# 5) ([^ 5] | $). *? $

How to get src path from TV image in ModX? -

Image
The following is sitemation: I have a TV of an image called [ image-news ] is . When I call it in a portion, it & lt; Img src = "Assets / Pictures / Gallery / оР± Ñ ?? л ÐμÐ'овР° ниÐμ (2). "& Gt; Is it possible to get src-url of template variable or change its CSS-property? Just change the "output options" in the text -

html - Where should i use rel="nofollow" -

We have a URI date based link structure where last year's news content is free, while the current year and any year prior The net effect is that when searching for the name of our company in Google, the first thing that needs to be contacted, about, login, etc., standard non-essential ingredients is fine, but ideally We have our free content in the pages we preach. Want to show in the first search engine results? For this closing, the link structure now generates "follow-up" for the relay content that we want to promote, and rel = "nofollow" and contact for all payment materials. , Logs, etc. Screen which we want SEO search results below the ladder. rel = "nofollow" should be placed on links that you It seems that Google should not follow. Example case: Your site may have earned a good reputation if someone posted a link to example.com , which If there is a bad site, Google follows the link and knows it is a bad site. In this proc...

python - Why won't my file print? I keep getting an I/O error -

print ('test.csv') # This is where all the data will be in the CSV format import CSV fp Open ('test.csv', 'wb') as the #csv = csv.DictWriter (fp, ['f1', 'f2']) test_file = 'test.csv' csvfile = 'test.csv' Field name = ['some field'] test_file = open ('test.csv', 'wb') csvwriter = csvfile = csv.DictReader (test_file, 'rb'), delimiter = ',', quotechar = '' '' Csv syntax (test_file, delimiter = ',', fieldnames = fieldnames) csvwriter.writerow (for fp in field names dict ((fp, fp)) for line in test_file: csvwriter.writerow (line) test_file.close () line In line: csv.writerow (line) When I run this code IOError is found: The file is not open to read on "for line in test_file", what's the problem here? I like I open it up Given. At the beginning of the file, you are opening trial .CCV In write mode It will erase what it wrote. Also, you are openi...

javascript - How to center a dojo gauge -

I want to create the position of a gauge in the center of the page. Currently I "margin-left: 130px;" But then it appears differently on different devices. If I use "margin: 0 px auto;" (Which works for the html table for example) it does not work. Is there something "clever" to do this? Thank you, I do not think this dojo is unique, but more than a CSS question. to answer your question; You can try the position of the gauge with the position: complete, and set all offset to 0, like this: Status: Absolute; Border: 0 pixels; Left: 0; Correct: 0; Top: 0; Bottom: 0; Margins: Auto; The HTML element (for example a div) that has a gauge, should be relative then.

erlang - why lager design this way? -

When I use leगर I get a problem. In the leaguer source code, the lager_backend_throttle.erl file handle_event ({log, _Message}, state) - & gt; {message_queue_len, Len} = erlang: process_info (self (), message_queue_len), case {le & gt; State # state.hwm, state # state.async} {true, true} -> gt; %% need to flip in sync mode lager_config: set (async, false), {ok, state # state {async = false}}; {False, false} - & gt; %% need to flip on Async mode lager_config: set (async, true), {ok, State # state {async = true}}; _ - & gt; There is no need to change anything at the end of {well, state}; When message_queue_len is over thresholds, it will flip in sync mode. When message_queue_len is less than Thershold, it will flip in async mode. I think that when there is a lot of message, then this message should be converted to Async so that the message can be processed more quickly soon. Why laser designs this way? I think the reason is message length in the message...

autohotkey - Authotkey, Conemu and pycmd -

I am using conemu, pycmd and autohotkey. Send :: / artask :: Send, D: {Enter}, send CD \ {ENTER}, send CD projects {Enter}, send CD R-Doon {Enter}, CD agenda {ENTER} Return Typing / artask After this returns returns some time but most of the time is not there. I often get some output like cd a-drone cd taskist .. It seems that the single character is lost It seems OK to test it with the "MS dos" shell. I like CONMEMU and PECMD, so how does any idea work? If you are in Conmeu, you can do whatever you want and the right way - just one key Execute the command instead of ConEmuC-GUIMACO: 0 print "D: \ ncd \\ projects \\ ar-drone \\ agenda \ n"

android - Using DataProvider on different package . -

यह मेरा प्रकट होता है: प्रदाता एंड्रॉइड: name = "DataProvider" android : प्राधिकरण = "com.LiveResults.zizo_apps.widget.provider" / & gt; लेकिन मुझे यह त्रुटि मिलती है: प्रदाता कॉम प्राप्त करने में असमर्थ। LiveResults.zizo_apps.DataProvider: java.lang.ClassNotFoundException: वर्ग नहीं मिला "Com.LiveResults.zizo_apps.DataProvider" वह कक्षा में क्यों देख रहा है com.LiveResults.zizo_apps के बजाय com.LiveResults.zizo_apps विजेट जैसा कि मैंने मैनिफेस्ट में लिखा था? कोशिश करो एंड्रॉइड: name = "। Widget.DataProvider" एंड्रॉइड: name = "DataProvider"

asp.net - how to select the last 8 row and Sum other column in Database SQL Server -

I'm a newbie help me with this problem. I want to select the last 8 lines and other columns from the database. I have column week, date and value 1. I want to add the value 1 group to the week and only want to display the last 8 records. I can display the last 8 weeks, but can not add value1 My code is here to display the week: select the week (weeks by the LAW ordinate / pre> This gives me the last 8 weeks, then I change it to change the amount in it (value 1): as SELECT SUM (Value1) TValue1, week FROM (SELECT Top 7 week TBData By order by week, by DESC), but it gives me an error Invalid column name 'value1'. What should I do to fix this ... Thanks in advance .. .. there is no value1 column in your subquery. I hope That you want to do something like this: TVallue1, week FROM (SELECT Top 7 week, sum (Value1) as SELECT SUM (Value1) Diissi week by order of 1 somewhere on the week TBData Group)

php - Is anything excecuted after using "return" in a function -

I appreciate that this is a very basic question, but I want to confirm something. I have started working on a web application that has already been worked on. My understanding of return is that it immediately terminates the immersion of the function. Please correct me if I am wrong. But by this understanding, $ myVariable return; Sqlsrv_close ($ connection); Can not turn off SQL Connection? Then I understand that this is PHP 101, but I just want to check it twice. If the call is made from within the function, back statement Ends the execution of an instant function, and the function gives its logic as the value of the call. So in this case, this code will not execute, sqlsrv_close ($ connection); Ref:

mysql - Query two databases in the same server -

I have two databases in the same server and I need it: table1 Choose from (in database 1) id field where notific1 = 1 but only user_id list where in table 2 ( Database2)) enabled field = 1 Being a user_id field in both tables. I tried: SELECT table1 [Database 1]. [Dbo] [Dpa]. [Table 1] such as user INNER JOIN [database2]. [Dbo] [Table 2] On subs on users. User-id = subs.user_id where the user Anotif 1 = 1 and where subs.enabled = 1 is throwing this error: . # 1064 - There is an error in your SQL syntax; To use near [database 1], check the manual related to your mess SQL Server edition for the correct syntax. [DPO]. [Table 1] such as user INNER JOIN [database2]. Note: I am using MySQL "Text"> You did not have 2 as you did, (because you tagged your question with Mysql) WHERE users.notific1 = 1 AND WHERE Subs.enabled = 1 should be where users.notific1 = 1 and subs.enabled = 1 2 is also syntax when joining the database select *...

php - Write to file but not erase -

is a function of writing I have .txt file I my problem is that it writes only on the first line, So, eliminating the old line for the new line. I want to add new lines to the file. function log ($ log, $ filename = '') {$ logfile = "log /" date ('YMD') $ Filename. "txt."; If ($ FH = FOPAN ($ logfile, 'W')) {Fraite ($ FH, date ('H: I: s'). "|". $ Log. "\ N"); fclose ($ FH); Return 1; } And false return; } You have to search before posting your question. north anyway, it fopen ($ logfile, 'w') with fopen ($ logfile, 'a') Change

vb.net - Sorting listview using combobox -

How can I sort a list view value using an external component? This means that users do not click on the top of the list view, but select the Combobox value, which provides a specific header to the user who can sort the user. I have around 6 columns on the list. I just need to sort out this list view by choosing the combobox and I will go to Congobox 1. I will write a code to sort the list view based on the text value. Any ideas? You must write a class that implements System.Collection.IComparer, and based on your dropdown value But there are your comparative rules. You need to set the listview ListViewItemSorter property with the list of comparisons you have written, and call it the sort method.

c# - Using Reflection to fill a GUI for rule creation -

To create business rules I want to create a GUI application (MVC ASP Web Application) which can be used for my business rules. For this, I have many objects (request objects) that can be used to create these rules. Because these request items are also used in the recognition of these rules. For example, I have a TripRequest object with a strip variable 'airline' and a variable 'value'. I want in my GUI that when you choose 'TriperX' from a different drop-down menu from various request objects, this second dropdown menu is filled with all its areas (airline, price, etc.). Then when you select one of these fields, then its type (string, int) is required to read so that the GUI is suitable for commercial rules (equal, equal, large, small, etc.) ). My idea is to use reflection to read the names of all the fields and method from various objects to create such GUIs and use them to fill the GUI. Is it a good practice to use this reflection? I have not refl...

Magento: How to import orders from another DataBase -

I'm looking for the best way to import old orders from the database (old website) Magento database It is known that: - The Mageto site is functional. - Many products are present in the old database but are not present in the new Magnu database. Please, can you help me to know the best method for importing these commands? Thank you. Hello You can go with the following steps: All Export Export all these Customers and Sales_lists from your source database (These tables are required by your DB product. Import products for new DB (so that you Old and new DB similar) Before importing the phase - 3 tables to your new DB before you check the foreign key obstacle axis To disable: STT FOREIGN_KEY_CHECKS = 0; Import all your tables into new db Update the eav_entity_store table for columns / last_id (this step is required to specify to enable to enable: SET FOREIGN_KEY_CHECKS = 1; You can for more information

java - Image J 16 bit Signed Buffered Image -

Image
So my question is how to get 16 bit buffed image from ij.ImagePlus ...? If trying to use a smallprocessor then it changes my signed image to unsigned, so I can not find the original image ... Thanks in advance, anyone can provide the solution. How ImageJ is in your audience Displays the 16-bit signed image..and we only receive 8-bit buffed image or 16 bit unsigned BufferedImage so how can I get 16-bit signed BufferedImage? Type the imageJ using signed 16-bit special calibration function isigned1bit () The method indicates that when the specific calibration function is in use, it is a linear M * x + b calibration where m = 1 and b = -32768; It can be possible. ImageJ provides a way to get the getImage () method from a BufferedImage to a ImagePlus . However, this is it. Then create your first BufferedImage with type DataBuffer.TYPE_SHORT , which is the same short [] array which The original ImagePlus takes the object back, unfortunately, due to the inter...

eclipse - NoClassDefFoundError found for Vuforia upgrade -

Vuforia has upgraded its library to patch a bug and I have to update it in a hurry. I went from 2.5.7 to 2.8.8 and I have followed the following steps: Eclipse global > to indicate the new directory adjust the variable; To add "-o" to the old directory name, make sure I do not accidentally refuse obsolete libraries; Added jar to external jar reference to point out my project to the new jar and for the Orders and Exports tab (Yes, I checked it!); Changed the makefile to point to the new location; Converted reference to QCAR :: tracker :: IMAGE_TARGET to QCAR :: ImageTracker :: getClassType () (a header has changed); Armebe build was removed from the memphile so that only the Armebei-V7A was operational; Completely clean and reconstruct everything; Reclaim eclipse. When I try and run the app, then QCAR :: onResume () causes a NoClassDefFoundError . I can not really remember the one step I missed and / bin / dexedLibs / a Vuforia-4e3d24...

php - How to create routes for the following URL's in Laravel -

localhost / public / products-product-name1 // उत्पाद नाम अल्फ़ान्यूमेरिक लोकलहोस्ट / सार्वजनिक / उत्पाद-उत्पाद- यूआरएल के उपसर्ग के निम्नलिखित के लिए सिंगल रूट कैसे देना है? नाम 2 स्थानीय होस्ट / सार्वजनिक / उत्पाद-उत्पाद-नाम 3 स्थानीयहोस्ट / सार्वजनिक / उत्पाद-उत्पाद-नाम 4 ...... उत्पाद - रूट :: पोस्ट ('उत्पाद -', 'उत्पादकंट्रोलर @ getProducts'); क्या कोई मुझे सुझाव दे सकता है। आप बस का उपयोग कर सकते हैं: रूट :: पोस्ट ('उत्पाद- {उत्पाद}', 'उत्पादकंट्रोलर @ होप प्रोडक्ट्स'); और अपने नियंत्रक के अंदर: सार्वजनिक फ़ंक्शन getProducts ($ product = 'product-name1') {...}

visual c++ - Shared memory size calculation c++ -

Image
I am placing two objects in the shared memory , one of them is the class which: / P> class GlobalObj {public: unsigned integer counter; Unsigned int label; BullExist; Globals (zero) {} ~ globe (zero) {}; }; and another is a boost :: mult_index_container that holds that object: class TestObj {public: long Id; Unsigned _int64 track 1; Unsigned _int64 track2; Int label; Metadata (zero) {}; ~ Metadata (zero) {}; }; So when I am creating shared memory, I calculate the size like this: // TEST_CONTAINER_SIZE is a constant that is / The maximum number of records that the multi_index container size_t will containerSize = TEST_CONTAINER_SIZE * sizeOf (TestObj); // Shared shared shared shared managed_memory segment (create_only, "SharedMemory", Container Size + Size (GlobalObj)); So when I TEST_CONTAINER_SIZE = 10000; I hope I can include the 10000 TestObj in the multi_index container in the shared code. But when I run the program, it raises an exception with...

php - phpDoc and Code Completion via '->' T_OBJECT_OPERATOR in NetBeans 8.0 -

How can code be completed with PPDoock blocks, using T_OBJECT_OPERATOR without prescribing the variable without showing going? Only a class that matters parentExample as it is necessary $ cc is set, which provides a working solution but it This way is not desired for the preset variable. The example code shows undesired solutions and many non-working endeavors. As the code is based on information previously set, it is not like to use the full example script, not just the pieces. Also, because this phpDocumentor is related to the original phpDoc blocks were also included as well. It is desirable that these dock blocks are filled in as part of the code completion, not just the object name. & lt ;? Php / ** * This is a parental class * * packages of @ * @ packages; Double class * / parent example / {$ $ parent example / / public $ a; / ** * This name is a name b * @ var $ b Parent example / public $ b; Public $ c; $ Cc public // notice ^ & lt; --------------------...

hadoop: limit number of concurrent map / reduce tasks per job -

I want to submit a research work to a production cluster. As I do not need this job to finish quickly, and I do not want to delay production jobs, I want to limit the number of tasks that are executing for that job at any time. Can I do this in Hadoop 2? To limit resources to Hadoop (reducing mappings / slots) proper scheduler can be used, you can create a new mailbiller pool by setting the maximum number of better mappers and the maximum reducer and job can be deposited in that newly built Meleshadular pool.

php - zend framework2 issue while installing composer.phar -

I downloaded the zf2 skeleton application and after that, WHile is running php composer.phar Install the following error [Composer \ Downloader \ Transportation Execution] "http://packagist.org/p/zendframework/skeleton-application$65da2ae415c0 9e4b944964efe964f41b27e5b8bbe9cd7345515b4d2eea8ee5e6.json" File not downloaded Could: To open the failed stream: HTTP request failed! Please give me some advice This is an open problem You can find it here: Perhaps some solutions in the comments can help you. Try: Update composer.phar Composer.php Self-update

java - Once I've written a builtin, what do I need to do to make the reasoners aware of it? -

I have written a custom biston to use in my project but I do not know how I can use it. I have written two classes, one of them is construction made by me (using BaseBuiltin ) and in the second I have registered the new Biltin (using BuiltinRegistry ) . I have already tried to use default bilitans, using written rules, which are used in Eclipse readable text files using Java. I have no problem in this matter. How can I use built Biltin? Do I need something (imported or included) in some files? First you Builtin , typically BaseBuiltin , And then you can use the BuiltinRegistry.theRegistry.register (Builtin) as a rule-based conclusion. Once you do this, you will actually use a rule that will reference to trigger your Builtin . BuiltinRegistry.theRegistry.register (New BaseBeltin () {@Override public String getName ()} {return "example";} @ Override public zero head action (last node [] ARG, final Full length, final rule reference reference) {System.out.pr...

cuda - Read data in a proper way -

I have a CPP file where I am creating an image and storing the data on my output pointer: / P> int rows = 80; Int Coles = 64; For (int i = 0; i & lt; rows; i ++) {for (int j = 0; j & lt; cols; j ++) {X = 1.0f * (float) i - (float ) Rows / 2) / (float) rows; Y = 2.0 F * (Float) j - (float) cols / 2) / (float) cells; ..... myOutput-> Ri = cough (......); MyOutput-> Im = sin (.......); ++ myOutput; }} Again, in Kuda I am reading: int bx = blockIdx.x, by = blockIdx.y; Int tx = threadIdx.x, ty = threadIdx.y; Int RowIdx = ty * * TILE_WIDTH; Int ColIdx = tx + bx * TILE_WIDTH; Index = roidx * coles + choledax; // Copy the input data for shared input memory [ty + 1] [tx + 1] = * (devInputArray + index); (That's why, myOutput generated from CPP is loaded in devInputArray). Now, I want to process several images at once. , in CPP, the following should be made (for example 2 images): int ImagesNb = 2; For (Images ID = 0; Images IXx; Images; Images; Images Id...

ios - Assertion failure Custom Segue -

I'm trying to work with Edge swipe display classes created by Robert Ryan When I was using it I changed the controller with the new controller, which showed me an error on the NASSassar line Here Edge SweepSave M code is @implementation EdgeSwipeSegue - (zero) display {UIViewController * source = self.sourceViewController; Id & lt; ParentControllerDelegate & gt; Parent = (id) source.parentViewController; If (guardian == blue) {nslog (@ "parent is zero"); } NSAssert ([Parents conformsToProtocol: @protocol (ParentControllerDelegate)], @ "Parents do not regulate parents; parents =% @", guardian); [Guardian PushBold VUI Controller: Self Distinction Visual Controller]; } I have a barbut, on which I pull the second view controller and choose Seag on the edge, but maybe I'm missing something Why fail this ?? Let's try: // I think your Near NewViewController // has NewViewController. H @ interface newview controller: UIViewControl...

javascript - Trying to get a bit of jQuery to work on IE7 -

This code will be sent to each menu item. NAV is to take in the bar and place them across equally shipping it is currently nothing in IE7. $ (document) .ready (function () {var a = $ ('.nav & gt; li & gt; a'). Length; var b = $ ('# navholder ') (Width) - $ ('. NAV '). Width (); var C = (B / A) / 2; $ ('. NAV & gt; Li '). CSS (' margin ',' 0 '+ Math Floor (C3) +' PX ');); Do anyone know? Try this: var b = $ ('# navholder '). CSS ('width') - $ ('. NAV'). CSS ('width'); Instead of : var b = $ ('# navholder'). Width () - $ ('. NAV'). Width ();

Variable declaration difference in Objective-C -

I was reading a tutorial about core image in iOS 6. In that tutorial I found something like this: @implementation ViewController {CIContext * context; CI Filter * Filter; CIMES * Start Image; UIImageOrientation Orientation; } // Some methods @end After the @implementation statement, the variable has been declared in .m file in a consolidation. I am looking at these types of variable declaration for the first time. Is there any difference between the above variable declaration and the following code @implementation ViewController CIContext * context; CI Filter * Filter; CIMES * Start Image; UIImageOrientation orientation; // some methods @end There is a big difference. Variables inside parentheses directly after @interface or @implementation example variable . These are the variables associated with each instance of your class, and thus are accessible anywhere in your instance methods. If you do not insert brackets, you declare the global variable . Any va...

php - Download all images from a website url -

I need to download all the images from a URL. I am searching but I never got the right answer for it. I have a page that will accept the website URL in the input box, and after submitting it will download all the images from that website. I have received this code from the Web, but I do not know where to put the usage or web URL, for example I $ url = $ _REQUEST ['webUrl'] Want to download all images; $ String = FetchPage ($ url); $ Image_regex_src_url = '/ / lt; img [^ & gt;] * '' Src = [\ "| \ '] [\ (*.)" | \ '] / Ui'; $ Image_regex_src_url = '/ / lt; img [^ & gt;] * '' Src = [\ "| \ '] [\ (*.)" | \ '] / Ui'; Preg_match_all ($ image_regex_src_url, $ string, $ out, PREG_PATTERN_ORDER); $ Images_url_array = $ out [1]; Forex Currency ($ images_url_array as $ pica) {echo & lt; Img src = "'. $ Pica." "& gt; '$ filename [] = $ pica;} $ _SESSION [' filesArr ']...