Posts

Showing posts from April, 2010

php - WP Query Results into 3 lists -

I am trying to run a query that keeps my lists in groups of 3. For example ... & lt; Li & gt; & Lt; Div class = "col-md-12" & gt; 1 post & lt; / Div & gt; & Lt; Div class = "col-md-12" & gt; 2 posts & lt; / Div & gt; & Lt; Div class = "col-md-12" & gt; Post 3 & lt; / Div & gt; & Lt; / Li & gt; & Lt; Li & gt; & Lt; Div class = "col-md-12" & gt; 4 posts & lt; / Div & gt; & Lt; Div class = "col-md-12" & gt; 5 posts & lt; / Div & gt; & Lt; Div class = "col-md-12" & gt; 6 posts & lt; / Div & gt; & Lt; / Li & gt; & Lt; Li & gt; & Lt; Div class = "colonel-MD-12" & gt; Post 7 & lt; / Div & gt; & Lt; Div class = "col-md-12" & gt; Post 8 & lt; / Div & gt; & Lt; Div class = "col-md-12" & gt; 9 posts & lt; / Div & gt; ...

android - How to make app as a default system launcher? -

I have developed the Launcher application, the first time I installed it on the Android Android system, Amp; just one time. I've selected "Always" Now my app becomes the default launcher but when I update the app, the system re-pops the same selection dialog, I do not want to show that pop up. How to make the app as the default system launcher? To achieve this, do I need to create a system level app? I have used the following permission to make the app a launcher & lt; Intent-filter & gt; & Lt; Action Android: name = "android.intent.action.MAIN" /> & Lt; Category android: name = "android.intent.category.HOME" /> & Lt; Category android: name = "android.intent.category.DEFAULT" /> & Lt; Category android: name = "android.intent.category.MONKEY" /> & Lt; / Intent-Filter & gt; It is not possible to change user preferences, Google does not allow developers to change user preferences....

sockets - video streaming from an android phone to another android phone over a WiFi connection -

I am using a code that is available on a WiFi connection for streaming video from another Android phone to another Android phone http://stackoverflow.com/questions/14401340/live-stream-video-from-one-android-phone-to-another-over-wifi This is the server code: // This is your network socket parcelfile descriptor pfd = parcel file descriptor. Frame socket (socket); MCamera = getCameraInstance (); MMediaRecorder = New MediaRecorder (); MCamera.unlock (); MMediaRecorder.setCamera (mCamera); MMediaRecorder.setAudioSource (MediaRecorder.AudioSource.CAMCORDER); MMediaRecorder.setVideoSource (MediaRecorder.VideoSource.CAMERA); // This is the informally supported MPEG2TS format, suitable for streaming (Android 3.0+) mMediaRecorder.setOutputFormat (8); MMediaRecorder.setAudioEncoder (MediaRecorder.AudioEncoder.DEFAULT); MMediaRecorder.setVideoEncoder (MediaRecorder.VideoEncoder.DEFAULT); MMediaRecorder.setOutputFile (pfd.getFileDescriptor ()); . //mMediaRecorder.setPreviewDisplay (m...

Minimization of App Data(android) in Cordova -

Image
I am trying to develop an app for GPS tracking in Cordova for Android users, including Android users Has been included, which they have very little internal memory So I want to reduce my app size as much as possible. The external resource is Google Maps API, even though I am using it, my app data is more than 3 MB. I searched in Google but I could not find it. Can someone give some guidance to reduce my app data? I would like to know where this app data is included, where it can get a detailed explanation. problem The problem is, whatever Cordoba receives App_webview / cache and why not know, but nothing like this Which controls this well. With this plugin you can help to clear data: it is compatible with Corodova 3.3.1 and above. It works with my Cordova 4.2.0 app.

opencv - strange cvSaveImage behavior -

I've recently started using opencv and it has baffled me // data four [height * Width] {char fName [200] = "c: void saveImageSnippet (char * imageName, int height, int width, zero * data, int nChannels) \\ testimg \\"; FILE * fptr; IplImage * img; Sprintf (fName, "% s% s.bmp", fName, imageName); Img = cvCreateImageHeader (cvSize (width, height), 8 / * deeply * /, NChannels); Img-> ImageData = (unsigned char *) data; CvSaveImage (fName, IMG); // Unsolicited exception cvReleaseImage (& amp; img); } On cvSaveImage: unwanted exceptions vc2008_1x.exe in 0x6e8e871d: 0xC0000005: what access violation reading location 0x745c3a63'm something that I do not? Now an interesting part is, if I add some unused variables, cvSaveImage works just fine zero saveImageSnippet (char * imageName, integer height, int width, Void * data, int nachanal) {int var1, var2; // unused variable char fName [200] = "c: \\ testimg \\"; FILE * fptr; IplImage * img; ...

Xpages repeat control division by zero -

Image
I'm using a repeat control display names. Content is checked in, but I need a pager because it can be more than 30 entries. As soon as I add a pager to this repeat control and press the partial refresh button on the site. I get a "zero division" error. This is my repeat control: & lt; Xp: repeat id = "repeat1" rows = "30" var = "namesList" repeat control = "true" indexVar = "line index" & gt; & Lt; XP: Table & gt; & Lt; XP: TR & gt; & Lt; XP: TD & gt; & Lt; Xp: link escape = "true" id = "employee" & gt; & Lt; XP: this.text & gt; & Lt; [CDATA [# {Javascript: namesList.getItemValueString ("employee")}]]! & Gt; / XP; & Lt: this.text & gt; & Lt; / XP: Link & gt; & Lt; / XP: TD & gt; & Lt; / XP: TR & gt; & Lt; / XP: table & gt; & Lt; Xp: this.value & gt; & Lt ;! [CDATA [# {Javascri...

java - Network error using eclipselink with internal connection pool (solved) -

This post is just about helping other people with similar problems. We have configured the default pool to use the minimum 1 and maximum of 10 connections to use JavaS with EclipseSlot with its internal connection pool feature. We have faced the following exceptions on many sessions after installing this application on windows terminal server and running 50 yug passes for stress testing. Serious []: [Eclipse-Link 4002] Eclipse Persistence Service - 2.4.0.v20120608-r11652): org.eclipse.persistence.exceptions.DatabaseException Internal Exception: java.sql.SQLException: Network Error IOException: A buffer Location is not available (Maximum connection reached?): Connect We use jtds as drivers to connect to MS SQL Server. Using the netstate, it was shown that all the dynamically available TCP ports (more than 16,000) were used by the connection of SQL Server at state TIMED_WAIT. Does jtds or EL leak ports or connections? No. It has been found that our pool configuration proble...

magento 1.7 - add discount amount field after apply the coupon code in cart page -

Image
I want to add a discount after applying the coupon code to the cart page. I have the output as follows: Now I want to add Dsicount Sub-Yoga thanks in advance with its related amount! If you are using a discount in the cart in the cart: Lt; Input type = "hidden" value = ". 50" name = "discount_anman" & gt; & Lt; Input type = "hidden" value = ".50" name = "discount_comm2" & gt; If you are using discount at the rate of adding to the cart form: & lt; Input type = "hidden" value = "50" name = "discount_rate" & gt; & Lt; Input type = "hidden" value = "50" name = "discount_rest2" & gt; You can try this solution. Regrets, Shahaha

68000 Assembly Language - CMPI.B -

What is the content of CCR and D3 after the sequence of following commands? Calculate by hand and show off your work. MOVE.B # 7, D3 CMPI.B # 11, D3 I know that the content of the D3 register will remain unchanged, I do not know how to calculate the CCR Flags Can you tell me how you did it and which flags were closed and why I really have a hard time understanding it. D3 CMPI , But surely its less byte will be MOVE due to 7 . (Thanks to @Windand to indicate this.) The directive set reference will tell you that CMPI works by subtracting operands before the second. It also says that the X flag is not affected, and the other results are set as follows: N : 7 -11 & lt; 0 , therefore N = 1 Z : 7-11! = 0 , therefore Z = 0 V : 7-11 = -4 , that number For the signed numbers, V = 0 : C : 7-11 = -4 , Which is outside unsigned numbers, C = 1 . This is the human version for the flag, the CPU actually uses bitrift logic: N : the result...

unix - Can excel execute a cmd command then put the output on a cell? -

What I'm trying to do here is that I have a log file of execution time on the program. Generally, if I have a quick finding that the functions of a program are executed, then the average / maximum performance is to use a combination of grep, gawk, wc, sort and uniq. i.e. Maximum execution time: grep "execution time" console.log | Singer "{Print" $ 8 "," $ 11 "} | Grep" "[FUNC NAME]" | Singer "{Print" $ 1 "}" | "Max == 0 || $ 1 & gt; Max {max = $ 1} END {print max} "I have to know what to do to remove max / average performance of all functions and time and event found in logfile and data is an excel I should be in the format like this: (I'm doing it manually to get these values ​​at the command prompt) How can I do this in VBA? Some googling and test and error Afterwards, after the management of what I want to do in Excel VBA How do I solve it? I create 3 custom functions ca...

java - ClassCastException: android.widget.EditText cannot be cast to Models.EditTextMonitor -

मेरे पास मॉडल पैकेज में वर्ग EditTextMonitor है, उदाहरण: सार्वजनिक वर्ग EditTextMonitor EditText { निजी अंतिम संदर्भ mcontext; // सिर्फ एक नया संपादन टेक्स्ट बनाने के लिए कंसल्टर्स ... सार्वजनिक EditTextMonitor (संदर्भ संदर्भ) {सुपर (संदर्भ); This.mcontext = context; } सार्वजनिक संपादन टेक्स्ट मॉनिटर (संदर्भ संदर्भ, AttributeSet attrs) {सुपर (संदर्भ, attrs); This.mcontext = context; } सार्वजनिक EditTextMonitor (संदर्भ संदर्भ, AttributeSet attrs, int defStyle) {सुपर (संदर्भ, attrs, defStyle); This.mcontext = context; } @ ओवरराइड पब्लिक बूलियन ऑनटक्टेस्टोंटेन्टेसमेनूइटम (एन्टी आईडी) {// तुम्हारी बात: बूलियन का उपयोग किया जाता है = सुपर। टेस्टकॉन्टेक्स्टमेन्यूइटम (आईडी); // प्रतिक्रिया: स्विच (आईडी) {केस android.R.id.copy: onTextCopy (); केस एंड्रॉइड। आर.आईडब्लैश: ऑनटेस्टकॉपी (); } वापसी खपत; } सार्वजनिक शून्य onTextCopy () {((TextEditorActivity) mcontext)। स्टार्टआमोड (); }} मेरे जावा वर्ग में: EditTextMonitor संपादक = (EditTextMonitor) findViewById (R.id.texteditor); XML दृश...

android - VideoView not visible if height is WRAP_CONTENT -

I videoview your application, it is a small videoview, not fullscreen. This I found videoView see a non-: mVideo.setLayoutParams (New LinearLayout.LayoutParams (200, LinearLayout.LayoutParams.WRAP_CONTENT)); mVideo.setOnPreparedListener (New OnPreparedListener () {@Override public void onPrepared (MediaPlayer mp) {mVideo.setLayoutParams (New LinearLayout.LayoutParams (getIntWidth (), LinearLayout.LayoutParams.WRAP_CONTENT));}}); And I got videoView a fully visible: mVideo.setLayoutParams (New LinearLayout.LayoutParams (200, 1)); mVideo.setOnPreparedListener (New OnPreparedListener () {@Override public void onPrepared (MediaPlayer mp) {mVideo.setLayoutParams (New LinearLayout.LayoutParams (getIntWidth (), LinearLayout.LayoutParams.WRAP_CONTENT));}}); Why do I have to put 1 pixel of Ajie in the initial height size of the videoview? Thanks If you are using it for video, then As long as you do not start playing any video, wrap_content does not have any content to w...

Java String Manipulation into Columns -

I need to have been working on a tool to split me the text column. For example - 1 2 3 4 5 6 7 8 9 1 If the duration of 2 - 1,3,5,7,9 and 2,4,6,8 , 1 if duration is 3 - 1,4,7,1 and 2,5,8 and 3,6 9 etc. I am struggling to build this algorithm, any help is appreciated! How about best to build these types of algorithms? I wrote it on paper, but can not be moved to the code! I am stuck on creating another loop to increase the duration. Here is an example that I have done so far string to_test = "1234567891"; Stringbilder sb = new stringbiller (); Int duration = 2; Int startAt = 0; Int verbatim check = 0; While (startAt & lt; span) {for (int i = 0; i & lt; to_test.length (); i ++) {if (i% period == 0) {sb.append (to_test.charAt (characterToCheck )); } CharacterToCheck ++; } // string has been created system.out.println (sb); Sb = new stringbilder (); StartAt ++; CharacterToCheck = startAt; }} Try it out. import java .itil.Arrays; Public category tes...

php - Yii JWPlayer playlist issue -

I'm still new to Yii, I need a video player in the designing website, so i yii To get JWPlayer: I can put a video in my Yii application using the file path option, but I want to keep more than just one video. The example of a playlist does not work for me, but I really need a playlist! My videos are in the video folder (www.myWebsite.com/htdocs/videos).

web applications - Google BigQuery, redirect uris to the UNC path -

I am creating a web application which uses Google BigQuery, which can gain access and refresh the token My web application will be hosted in intranet, say it under http: // mywebapp / to access it Client ID is required, so I went to console.developers.google.com and tried to create "Client ID for web application". I have to enter two things in there javascript orinjin and redirect uris and here is my problem: Google accept http: // Refuses to do Mywebapp / oauth2callback as Redirect Yuri, but acceptes as http: // mywebapp / javascript. Error: Invalid Redirect URI. Google accepts " http://mywebapp.com " and " http: // localhost ", but this is my Does not help. Is it from a bug or design? This issue can be found here by original and redirection There is a difference between Basically this is where the relationship comes from. This can be your own local network, localhost or intranet, as long as the real initial add...

AngularJS calculate a dynamic number of variables in braces -

I want to calculate the total amount of dynamic number of variables within the brace syntax of an angle. I would look for the commonly used loop: var total = 0; (Total = = Objects [x] .num;} I will call it {{total} for (x = 0; x & lt; objects; long; x ++) }} or {{total ()}} and update anytime, whenever the one of the variables is changed. Here's what you want: HTML ng-app = "myApp" ng-controller = "ctrl" ng-strict-di> {{total ()}} & Lt; input type = "text" ng-model = "item.num" ng-repeat = "items in items" /> JS: Angular. Module ('myApp', & gt; [] Controller ('ctrl', function $ Scope) {angular.extend ($ scope, {objects: [{num: 7}, {num} 8}, {num: 9}], total: function () { Var res = 0; for (var i = 0; i & lt; $ scope.objects.length; i ++) res + = parseInt ($ scope.objects [i] .num); return ridge;}}); }); Update to update is to test that the new update u...

node.js - Key Pair wont get associated with the EC2 instance -

I wrote a code that creates KeyPair (the MakeOpair function), creates an example (run instance) and then assign it Tries to do key combinations (for example) with example The parameters that I have passed for the run instruction: var params = {ImageId: 'myami', Instance type: 'T1' micro ', minimum number : 1, MaxCount: 1}; The parameters that I passed for the description: var p = {InstanceIds: [instanceId], filter: [{name: 'key- Description The Instance function gives me: {reservation: []} [Mykey]}]} P> And when I check in the console, it shows "Example is not associated with a key pair. This example is not associated with any key pair. Without a key pair, you can use a valid username and password combination Tax Area must enter this instance. " . What am I doing wrong? Am I not using the correct (/ implementation) functions? You can not be allocated RunInstances, description of the description only describes your curren...

stofdoctrineextensions - Symfony 2 - Generate Slugs with Gedmo\Slug -

I have now installed theory extensions to use sluggable. I do it: Composer. Jason "stof / doctrine-extensions-bundle": "1.2.*@dev" AppCernel.php new staff \ sinstituteia extension bundle \ staff doccr Extension Bundle (), app / config / config.yml stof_doctrine_extensions: orm: default: Lazy: true Dju \ Applebundle \ unit \ Nomenclature.php name space jade \ applebundle \ existence; Use the theory / ORM \ mapping as an ORM; Use the principle \ DBAL \ types \ SmallIntType; Use \ Mapping \ Annotation as Gedmo; / ** * Naming * * * @ORM \ Table (name = "app_nomenclature") * @ORM \ unit * / class naming {..... / ** * @ver string * * @ORM \ Column (name = "Titre", type = "string", length = 200, faucet = wrong) * / private $ title; / ** * @Wer String * * @ORM \ column (name = "fossa", type = "string", length = 10, faucet = true) * / private $ uprooted; / ** * @Gedmo \ slug (field = {"titre...

jquery - How to make a function run only in a certain area (div) -

Thanks for this forum I found my code to work :-) Although it requires some financing. The function can work only when the mouse gets trapped on top of the image This is my first attempt, with the hover function, though there is something strange about displaying mouse coordinates. You can work here (for example, can work on the whole page): (open in Chrome) & lt; Head & gt; & Lt; Script src = "jquery-1.11.1.js" & gt; & Lt; / Script & gt; & Lt; Script type = "text / javascript" & gt; $ (Document) .mousemove (function) {var relative x = monastery .CEL (event.pagex / 23); var current step = relative x * -230; $ (".model"). Hover (function () $ {"(" .model "). CSS (" background-position "," 0+ "+ (current step) +" px "); // $ (" span ") to know just what's happening. Text ("X:" + Event.pageX + ", Y:" + event.pageY)});}); & Lt; / Script ...

javascript - How to parse HTML that is being returned by JSON object -

Image
How to parsize HTML which is being returned by JSON object. Image URL: How can I parse just "deal price" from HDML? It is a shame that the value is not well defined in an HTML element. Perhaps your best bet is a bit of dirty Reggae string extraction should work something like the following: var match = aGoldboxdeals [5] .content.match / Deal Price: \ $ ([0-9] + \. [0-9] +) /); If (match) {var dealPrice = match [1]; // do something with value here on the Flat etc ... ... and {// could not parse the value}} It may be better than ever that a more specific Elements should work first but something above.

get autocomplete to recognise object type python (wing ide) -

I takes a custom object as a parameter to a function. I need to use several of the members of the objects inside the function. I get how IDE to identify / claim that the object type is right so that it will allow AutoComplete for members of objects. class MyClass: variable1 = 1 def function1 (self): out of print ( "Hello") top class def myNewFunction (themyclassobject) from # Function: try: # will work in, but Will not auto complete, because the Python does not recognize the parameter type. themyclassobject.function1 () except e exceptions, such as print (themyclassobject.variable1): print (e) #create object MyInstance = MyClass () #this myinstance.function1 () Print (myinstance.variable1) autocomplete #for perfection myNewFunction (MyInstance) # Paithon worry that it might be my Nuvankshn ( "Hello")

merge array and increase int value when key match in php? -

How do I merge two arrays, and raise values ​​when keys are complete? Both arrays may have keys that are not present in the other, and both have more or less keys than the other. So I can not just take an array and loop trough and compare it with the second time since the "other" array can have more value, it is free from time to time. The array merge is not working until it overwrites the old value. I need to return all the unique keys to both the arrays, but whenever a key is matched, then I have to add only two values ​​together. Array_a: ["BMW-B2"] = & gt; Int (1) ["BMW-N-115"] = & gt; Int (5) ["BMW-N-143"] = & gt; Int (3) ["BMW-N-13"] = & gt; Int (10) ["BMW-N-184"] = & gt; Int (4) array_b ["CR 220036"] = & gt; Int (3) ["BMW-N-13"] = & gt; Int (9) ["Cr 220822"] = & gt; Int (7) ["BMW-B2"] = & gt; & Gt; Int (7) [...

c# - Edit CS file on webserver -

I'm running a website (.net 4.5) on a Windows Server 2008 R2 standard with IIS 7.5 I I have a web site I am using Visual Studio 2012 to create and I published it from Visual Studio 2012. Now my point is that the key person in my job wants to be able to directly edit CS files, without changing the Visual Studio, make changes on the website or compiling DLL and copy it to the web server Is for. I know this is not the safest way, but I have no choice to do this work. That was the establishment of our old website / web server. I wanted to make it more secure, so I ran the compiled route and not even told it. How can I change my current setup to allow this? Do I have to republish everything? The site is live and I can not interrupt it in use. I have a class that manages the database connection. Can it be edited again without compiling it? Direct it to this thread where everyone is saying it's a terrible, horrible The idea is I mean, even in dynamic languages ​​(...

actionscript 3 - Mouse Event Click Problems -

When you click on the ageImg button (pink image in SDF), it calls the next function, which is to hide everybody It should take other words and words above the age of the stage, but for some reason it becomes empty after one second and the age flash function again produces the whole animation to start from the beginning. I do not know why it loops. Import com.greensock.TweenLite; Import com.greensock.TimelineLite; Import com.greensock.plugins *; Import flash.events.MouseEvent; Miscellaneous Ordnance Timeline: Timeline Lights = New Timelines (); Function Init (): Zero {ageFlash (); AgeImg.ageism.visible = false; RacImg.racism.visible false =; HatImg.hate.visible = false; SexImg.sexism.visible = False; } Function Age Flash (): Zero {ageImg.visible = false; AgeImg.buttonMode = true; AgeImg.addEventListener (MouseEvent.CLICK, stopPicLoop); TweenLite.delayedCall (1, racFlash); } Function racFlash (): zero {racImg.visible = false; TweenLite.delayedCall (1, hatFlash); } Function hatFl...

javascript - Why following test doesn't pass? -

I have the following EmberJS / Konacha code. Does anyone have any clue why does not pass the test? Edit: I've added a test case that checks the attribute value instead of the context. # = Required ../spec_helper "Zaptax.v2014.App.AnswersLookup", - & gt; First of all (-> Test.store = TestUtil.lookupStore ()) it gets 'answers by context', - & gt; Page = Test.store.push Zaptax.v2014.App.PageModel, {id: 666, sequence: 123} assert.equal Test.store.find ('Page', 666) .get ('sequence'), 123 returns: unsuccessful: reference zaptax.v2014.App.AnswersLookup provides answers by reference: Undefined expected 123 equals It seems that you are trying to test the similarity of two objects - it will always change false. For example: var a = {}; Var B = {}; Emphasis (A === B); // false What you probably need to do is check that the value of the properties of the object is equal to the series of claims instead. var a = {name: ...

Parsing MS Word file into Excel using C -

At work, I have been given a large MS Word file that has many data entries, all of which are formatted in the same way: / P> 01- FOOBER Random Company Name PO Box 2482424 Olahoma City, OK 22498-12937 United States United States Actually copies and pasting this information has been done in the Excel spreadsheet, but it seems that more than 1000 There are entries that can take days. I have some experience in C, but not a comprehensive programming experience, and I am running a basic Dev dev environment very soon. Can it be done easily in C? Should I look elsewhere? I really need to run this program only for one file. Try regular expression like this: ^ \ d {1,4} - (. * \ N) {4} ^: Start line \ d: any digit {1,4}: One to four digits ( Because you have more than 1000 entries) (. * \ N) {4}: Four rows for address

java - Android MediaMetadataRetriever OPTION_CLOSET not working for some videos -

itemprop = "text"> I'm just starting on Android development I am trying to take some time to frame the video files I have on my phone: MediaMetchData retrieve = new mediamatetitriver (); Retriever.setDataSource (getApplicationContext (), linkToVideo); // linkToVideo Uri ImageView FrameView = (ImageView) findViewById (R.id.video_frame); FrameView.setImageBitmap (retriever.getFrameAtTime (frameTime, MediaMetadataRetriever.OPTION_CLOSEST)); // FramesTimeMicrosoft this is 640x480 Works for mp3 video, but my camera has not recorded for 1280x720 .3gp files It just takes a terrible long time and ultimately the app stops responding. When I use OPTION_CLOSEST_SYNC, everything runs smoothly, but I'm interested in getting more than sync frames. How can I solve it? I was trying to avoid video encoding, but if there is no other option then I would support it. Try to help me in advance Try: import wseemann.media.FFmpegMediaMetadataRetriever; ... FFMPMMedia...

Excel VBA ComboBox1_DropButtonClick Event -

Text after " I got the macro below which twice in the fire (twice showing the same MessageBox). Firstly when ComboBox1 opens and the second when ComboBox1 closes. Private Sub ComboBox1_DropButtonClick () If Me.ComboBox2.Text = "" then fill the MsgBox "text box" remaining Fill the End End Sub End Is there any way to show him a message box once? I want to select the value in ComboBox1 before the user first clicks on ComboBox2 DropButton. After Here is a very unelegant using a "count" variable, which is the first time the messagebox And secondly does not integer combo box 1_DropButtonClick () count = count + 1 if Me.ComboBox2.Text = "" then calculate = 1 then MsgBox "Fill text box" Other count = 0 End otherwise if you end up with 'End Sub' However, I do not need to use one of the most drop buttons ComboBox1_Change () Suggest event to use. PS: The "counting" variable needs to be out of the dec...

html - Javascript- How to store string by searching for first couple letters -

I have a question about how to store a string in JavaScript, when you know only the first two letters here an example is. The HTML code is: & lt; HTML & gt; & Lt; HEAD & gt; & Lt; TITLE & gt; Your title goes here & lt; / TITLE & gt; & Lt; / HEAD> & Lt; Body BGCOLOR = "FFFFF" & gt; & Lt; Center & gt; & Lt; IMG SRC = "cloud.jpg" ALIGN = "BOTTOM" & gt; & Lt; / Center & gt; & Lt; Human Resources & gt; & Lt; A href = "http://somegreatsite.com" & gt; Link Name & lt; / A & gt; There is a link to another nifty site & lt; H1 & gt; This is a header & lt; / H1> & Lt; H2 & gt; This is a medium header & lt; / H2> Me & lt; A href = "mailto: support@yourcompany.com" & gt; Send mail to support@yourcompany.com< / A & gt; & Lt; P & gt; This is a new paragraph! & Lt; A href = "/ 003U0000015 Arm...

c# - Retrieve Name value from ColumnAttribute for Entity Framework batch deletes -

I want to execute batch delete in the unit framework (for display reasons): Context.ExecuteStoreCommand ("Remove from {0} {1} = {2}", tagname, columnname, column well); I want to know how to get the name of the column from the property. [Column ("column name")] Public Property Asset Name {get; Set; } I also use EF5 with the Oracle Provider. You use. public class's mycollege {[column ("column name")] get public property property name; Set; Pattern: Public Static String GetColumnName & lt; T & gt; (String propertyName) {string result = null}} if (string.IsNullOhWhiteSpace (propertyName)) {throw new argument (NullException); } Var table type = typef (t); Var Properties = tableType.GetProperties (BindingFlags.GetProperty | BindingFlags.Instance | BindingFlags.Public); Var property = properties. Where (P = & gt; p.Name.Equals (propertyName, StringComparison.CurrentCultureIgnoreCase)) .FirstOrDefault (); If (property...

Maven javadoc plugin: is it possible to show private selectively for certain packages -

I want to show only private members in javadoc for some packages. For all other packages, only show public and protected members in javadoc. The show is for the tag configuration, but not for the group. Thanks According to the standard doclet for indivdual packages To change the access modifier I do not know of an option in the javadoc you can write your own, of course. I can also imagine the following hacks: Creating a "main" JavaTalk with a certain access modifier and assigning the desired package Create another javaDock with a different access modifier and assign desired package Create a third ... Now share of hacker: Merge another Java docs 'Allclasses- [frame | Noframe] .html (all classes) in main allclasses- [frame | Noframe] .html Other JavaDocs' overview-framemine (package) main overview-frame Merge the third ... Merge the third ...

windows 7 - Using PowerShell, can I find when a user account was created? -

This is a simple question. I know that information is elsewhere. I'm bumping up to 3 days with PowerShell and close I am here. I'm Runnin 'Honestly Out of Time Here's the situation the person opens the account in a local machine (Windows 7) and creates the account. How do I create an account? I am looking at the NTUSER.DATE dates in the profile, but it does not work much. I get all the information in CSV and there is no easy way to make it readable. go-item-force "c: \ user \ * \ ntuser.dat" | Where {(get-date) - $ _ last light time) .days} | Out-file c: \ profiles.csv I can see the information in the security log, and I can drag all 4720 events. However, that is also incompatible, especially if some rascals (like mine) had cleared the event log a few months ago. Get-EventLog -LogName Security | Where-object {$ _. EventID -q 4720} | Export-CSV C: \ NewStaff.csv But it really is not getting me what I want I need all the username and date accou...

cakephp - Invalid username and password , Login -

I am using Cakephp version 2.5.4 The problem is I do not login Can, $ it-> at-> login () every time returns! Without a password or without the same results, what could be wrong? Spend the whole day to check the code, but there is no way .. If you have time to check the code here, I would appreciate it: Everything included Was: User.php, UsersController.php, login.ctp, register.ctp Thanks in advance ... I'm not sure, but I think $ this-> Data is not available in kcpp 2.x. You have $ this-> Data from to $ this-> Request-> The data should be changed and all fields will be available on Auth. What type of class and hash are you using in AppController? For example, app controls: public $ component = array ('orth' => array array ('form' = & gt; array ('passwordHasher' = & gt; array ('ClassName' = & gt; 'simple', 'hashtip' = & gt; 'sha256'))))); Save ($ options = array...

android - wifimanager not working on tabs? -

So I'm currently developing an app for which MAC address (for security purpose) is required, however when I have sent .apk This is the code I used to get the Mac WifiManager wimanager = (WifiManager) cont.getSystemService (Context.WIFI_SERVICE) ; String macAddress = wimanager.getConnectionInfo (). GetMacAddress ();

ruby on rails - All variants of an array -

I have an array that is structured like this: array = ["one two three four"]; How can I get all the possible types of this array, 1-4: possibly at all lengths: ar = [[ "" ["One", "three", "four"] / formerly "" ["one", "three", "two"] ["one", "three" I think 4 * 4 * 4 * 4 elements should be in the array at the end. How can I get all the possible forms of this array [...] Use: array.combination (3) .to_a Result: [["one", " ("One", "three", "four"), ["two", "three", "four"]], "three"], ["one", "two", "four"] [..] All possible lengths 1-4 Use a category, iterate with: (1..array.length) .flat_map {| lane | array (len) .to_a} Result:

asp.net - .net cassette generate AMD -

It looks like a cassette that what I already wanted and then what I want to do for some, But an additional question ... Is there a way to set up bundle dependencies? I want to use it as an AMD, even if it is pre-compiled. It is such that I can define a resource for X pages, and say that this bundle is needed, the bundles and dependencies of those bundles and it have created suitable mining bundles. I have seen a Twitter post about the needle package for needjs as well as js, but no documentation is available in addition to the requirement to be used according to requirement module manual By form and cassette service. I'm running into questions like you, and when I do not see much, I'm on Github A thread appears where there is some discussion: There is a link to a test project where it was working on the RequireJS integration: However, in that thread his last Comments indicate that the code was functional, but it was never done before the experimental phase. Y...

java - How to set the path to xstream in Ubuntu 14.04 -

मैं Ubuntu 14.04 का उपयोग कर रहा हूं, और अपने संस्करण का उपयोग jdk sudo apt- Openjdk-7-jdk को स्थापित करें अब मैंने xstream 1.4.7 को स्थापित किया है, लेकिन जब भी मैं पैकेज का उपयोग करते हुए किसी भी जावा फाइलों को संकलित करता हूं, मुझे एक त्रुटि मिलती है कि यह com.thoughtworks पैकेज नहीं मिल सकता है: $ javac app.java त्रुटि: पैकेज कॉम। Thoughtworks.xstream आयात com.thoughtworks मौजूद नहीं है xstream.XStream; मैंने चेक किया है कि यह सही ढंग से स्थापित है और मेरे पास मेरे / usr / share / java में है Googling के बाद मुझे पता चला है कि मुझे $ CLASSPATH चर सेट करना होगा, हालांकि, मेरे पास मेरे सिस्टम में ऐसा कोई चर नहीं है। न तो प्रतिध्वनि $ JAVA_HOME और $ CLASSPATH गूंज शब्द के लिए कुछ भी थूकना (मैं भी कोष्ठक के साथ की कोशिश की), हालांकि संकलन और निष्पादन दोनों किसी भी अन्य सामान्यतः इस्तेमाल किया संकुल के लिए पूरी तरह से काम कर रहे हैं। मेरा निष्कर्ष यह है कि पथ किसी अन्य स्थान पर सेट होते हैं (?)। मेरे .bashrc और .profile में भी $ PATH के लिए कोई भी ...

Assign different port than 80 for Apache -

I use OSX Mavericks which has been created in Apache. I need someone to access a local website on my machine, I have done this many times before enabling web sharing, opening the port 80 for my local IP on the router and then giving an IP, the IP website is live. On the Internet. The problem now is that I use a WiFi connection with a friend and I can not say to open 80 by router pass because I'm sure he will not understand it and maybe he will also change the WiFi pass. I checked the ports on the router and there are some open harbors, I was wondering if it is possible to change Apache's settings so that it can listen to other ports and then return the website to my IP IP? I tried nanotechnology httpd.conf and listen 80 to listen to 12345 (for example), so I thought if my IP is 55.666.45.155 and I 55.666.45.155:12345 My website will popup but it does not work. Is it possible anyway?

erp - Adding prepayment to a Sales Order -

I need to add pre-payment to a sales order. Accountant has setup Akyumetika required classes and payment methods I am able to do this through the GUI, but when I try to enter payment information on the purchase order using the web service, then you give me an error response Meets. The error response is: PX.Data.PXException: Error # 14: By putting a record 'SOAdjust' one or more errors has been raised. Error: 'Reference NBR.' Can not be empty. `SO301000 content SO301000 = reference SO301000GetSchema (); Context.SO301000Clear (); list & lt; Command & gt; Cmds = new list & lt; Command & gt; (); cmds.AddRange (New Command [] {new value {value = "C-3", LinkedCommand = SO301000.OrderSummary.OrderType}, new value {value = orderNbr, LinkedCommand = SO301000.OrderSummary.OrderNbr, commit = true}, SO301000. payments .ServiceCommands.NewRow, new value {value = "prepayment", LinkedCommand = SO301000.Payments.DocType}, new value {value = ...

javascript - How can you do grouping in dc.js datatables? -

नमूना डेटा: [{'तारीख': नई तिथि (2014,03, 12,0) .get टाइम (), 'मान': 1}, {'तिथि': नई तिथि (2014,03,12,12) .getTime (), 'मान': 2}] मैं इस प्रकार की डेटा को dc.js में लोड कर रहा हूं, और कुछ चालाक परिवर्तनों को उन आयामों को वापस करने के लिए कर रहा हूं जिनके पास दिन की शुरुआत (या महीने या वर्ष) के लिए दिनांक कुंजी सेट है , आदि।) और फिर चार्ट में, मैं कमजोर आईएनजी डेटासेट हूँ, यह एक जादू की तरह काम करता है! मैं हर दिन डेटा को कुल, या महीने या तिमाही में घटा सकता हूं। हालांकि, जब मैं डेटाटबल में कोई भी काम करने की कोशिश करता हूं, कोई पासा नहीं, क्योंकि यह वास्तविक क्रॉसफिल्टर समूह का उपयोग नहीं करता है, और यह नहीं है आंकड़ों को घटाते हुए चार्ट की तरह कमी हो सकती है क्या मुझे कुछ याद आ रही है, या क्या मैं सिर्फ कुछ करने के लिए डेटा टैब्स प्राप्त करने का प्रयास कर रहा हूं, जिसका मतलब नहीं था? मैं एक और टेबलिंग सृजन तकनीक का उपयोग कर सकता हूं, लेकिन मैंने सोचा था कि किसी ने इसे डीसी में कैसे करना है यह पता लगाया है। धन्यवाद! अगर मैं सिर्फ एक ...

excel - VBA counter based on date -

I have created a userform to track service requests and I'm having trouble with this last part. The question has 2 columns, the first "A" is the service id, the second "B" is the date. I should be "B" today's date and "A" starting from 1 and counting, when I add a new request then tomorrow I should start "A" again 1. Here is the code for column "A", when a new record is created "A" goes up, but when the date changes, it does not start back at 0. Any ideas? 'Check Id of Service ID' if 'Date' then enter '' 1 '', if tomorrow "1" is put out tomorrow then if output 1 if (Sheet 1. Seals (Rows.Count, "B"). End (XLEEP). Value = "Date" Then Servicar = "1" Elsef (Sheet 1.Calz (Rays.Count, "B"). End (XLEP ).) Date again Servicar = "1" Elsef (Sheet 1.close (rows.quote, "B"). End (XLEP) .Voluez) = Date again Se...

android - Restart adb untill success wth bash script commands -

An annoying issue with the device that it often gets: List index No permission Because of this fact, we are lacking in time, I would like to write simple dialect which adb to start again Device will not get permissions , like something: #! / Bin / bash alias_to_adb_dir / adb kill-server alias_to_adb_dir / adb start-server while [$? -A "approval no permission"]; I appreciate any solutions

python - "io.open" is improperly opening UTF-16 files -

io.open विभिन्न एन्कोडिंग में फाइल खोलते समय preambles को अलग करना माना जाता है। उदाहरण के लिए, UTF-8-SIG के साथ एन्कोडेड निम्न फ़ाइल को स्ट्रिंग में पढ़ने से पहले इसे ठीक से छीन लिया गया है: (नोट: मैं नहीं हूं इन फ़ाइलों को द्विआधारी मोड में खोलना। इन लॉग की पहली पंक्ति उन फाइलों की सामग्री प्रदर्शित करना है जो पढ़ने के बारे में हैं।) # कच्चे बाइनरी, ताकि आप देख सकें कि यह एक है उचित UTF-8-SIG एन्कोडेड फ़ाइल आयात IO; io.open (csv_file_path, 'br')। ReadLine () '\ XEF \ xbb \ "eventID", "दर", "Attribute1", "Attribute2", "xbf (\ XEF \ xbd \ XA1 \ XEF \ xbd \ Xa5 \ xcf \ x89 \ xef \ xbd \ xa5 \ xef \ xbd \ xa1) \ xef \ xbe \ x89 "\ r \ n '# निर्दिष्ट एन्कोडिंग के साथ फाइल खोलें; io.open (csv_file_path, एन्कोडिंग = 'UTF-8-SIG')। ReadLine () यू ' "eventID", "दर", "Attribute1", "Attribute2" "(\ uff61 \ uff65 \ u03c9 \ uff65 \ uff61 ) \ Uff89 "\ n ...

oauth 2.0 - Client library to be used for Oauth2 implementation in Java -

I am trying to use Google and Twitter APIs for one of my projects. Both of them can access the API using Oath 2 only. What is the Best Oath Client Library? Both APIs have been used by Othu 2 and Google to adopt Othu 1 support using the latest version It is always good to do it because it is more secure Update: Othu 2 has short round trip , so it's fast and fast.

Launching android player from kivy -

I am trying to launch a media player to play an HLS link from the Kiwi + Android environment. I am able to launch the default media player using sample code found from the Net (given below). But I have established a better media player () which I want to start with URL. Any ideas how can I move on this? Is it possible to make Kiwi intention? (Note: I am using Kiwi Launcher and I am not an APK (Builder) Time Import From Jenos Import Autoclave to Sleep # Media Player Get Java Class MediaPlayer = autoclass ('android. Media.MediaPlayer ') #Mediaplayer = AutoCLus (' veg.network.mediaplayer ') #Our PlayerMeplayer = Media Player () Create mPlayer.setDataSource (' http://www.nasa.gov/multimedia/nasatv/NTV-Public- IPS.m3u8 ') MPlayer.prepare () # Game Print' Duration: ', mPlayer.getDuration () mPlayer.start () Print' Current Status: ', mPlayer.getCurrentPosition () Sleep (50) # Then play After: mPlayer.release () thx, gl Yes, you can create...

plot - Plotting a table in R -

I is used to display the results in a confusion matrix table function KNN / SVM classification I am doing . Example: svmE1071 & lt; - Function (x, y, type) {library (e1071) (...) confTab & lt; - Table (Month = Pred, true = y [, 1]) Return (confTab)} MyKknn (y, yUnknown) unknown yWohn1 6 yFlur1 18 yBad1 12 & gt; SvmE1071 (y, yUnknown, "linear") True Future Unknown yWohn1 3 yFlur1 25 yBad1 8 & gt; SvmE1071 (y, yUnknown, "multilateral") true future unknown yWohn1 8 yFlur1 20 yBad1 8 & gt; svmE1071 (y, yUnknown, "radial") (...) I How can a barplot with many confusion matrix (classified as barplot) in such research ? Of yWohn1 xxxx KNN yFlur1 xxxxxxxxxxxxxxx yBad1 XXXXXXXX yWohn1 X SVMl yFlur1 XXXXXXXXXXXX yBad1 xxxxxxxxxxx (...) You must first assign your table to some variable: table1 Then you can combine them with cbind are: allTables & lt; - cbind (table1, table2, ...) And then use barplot: barpl...

java - Access custom XML attributes from root element -

I've enhanced ViewGroup and created a custom layout class in Android. I have defined to support a custom XML attributes that situation Sbwugh I do I need to get some custom XML attributes (custom: Wu_hait and custom: Drishy_vidth) at the root XML element (custom layout), but when I I try to access them from the Java class, typed. Array is empty, it does not seem to be able to see them. They work fine on child's thoughts, any witch How can I access custom XML properties in the form of a tar? Thanks! Look at the code: & lt ;? Xml version = "1.0" encoding = "UTF-8"? & Gt; & Lt; Package.of.my.CustomLayout xmlns: Android = "http://schemas.android.com/apk/res/android" xmlns: custom = "http://schemas.android.com/apk/res-auto" Android : Layout_height = "Match_parent" Android: Layout_width = "Match_parent" android: orientation = "vertical" android: background = "@ drawable / homecell_selector...

r - Extracting Data from a file which is on a different line from key words -

Text after " This is part of a file, Giao Chemical Preservation Tensor (PPM): Synthetic XYZ shielding (Anisotropy) 1 CX 192.9847 -0.3288 0.5647 y 0.8908 133.5254 1.9987 Z -1,5286 1,9986 131,2590 152,5897 EIGENVALS: 192,9663 130,1130 134,6898 (60,5649) OX 2 293.7037 -11.3068 19.4099 Wi -27.8836 337.6867 -38.0711 Z 47,8680 -38,0711 380,8636 337,4180 EIGENVALS: 283.3105 413.4345 315.50 9 1 (114.0247) 3 Acaks 32.4132 -2.6310 -3.6171 -0.9732 Y 26.6 9 66 2.2004 Z -1.6244 2.2423 28.7795 29.2 9 64 EIGENVALS: 34.4129 28.1896 25.2868 (7.6748) 4 Acaks 32.4132 4.4443 0.5044 y 1.8931 30.178 0.2675 9 Z 0.0452 0.2257 25.2 970 29.2 9 64 Aa EGNewes: 34.4129 28.1895 25.2867 (7.6748) 5 HX 31.3212 -2.3074 3.9610 Y-1.0235 26.9345 -1.8682 Z. 1.7569 -1.8682 29.0533 29.1030 EIGENVALS: 33.8408 27.6219 25.8462 (7.1067) 6 HX 32.4086 -3.5167 6.0369 Y-2.5502 27.9731 -8.1180 Jade 4.3777 -8.1180 37.1798 32.5205 EIGENVALS: 29.5456 44.7719 23.2441 (18.3770) ..... NMR with Shildings ..... I'm interes...

windows 7 - How do I prevent ")" adding a space? -

रेखा (for% F IN ("Q: \ प्लेलिस्ट \ ए 1 *। एम 3 यू ") डीओ @ एको"% ~ एनएफ़ ") | Sed -E "एस /.*/ एक्स एंड वाई /" का उत्पादन करता है x "ए 1 टी सॉफ्ट एफसी ला मेलोडिया डे न्यूस्टर एडियो" अपेक्षित के रूप में x "ए 1 टी सॉफ्ट एफसी ला मेलोडीया डी न्यूस्ट्रा एडियोस" y के बजाय । मैं इस जगह को कैसे रोकूं? " समस्या वह तरीका है जिस प्रकार से आप टाइप करते हैं उसे पार्स और निष्पादित किया जा रहा है। पाइप के प्रत्येक पक्ष को cmd.exe के एक अलग उदाहरण के अंदर निष्पादित किया जाता है। वे उदाहरण आपके द्वारा टाइप किए गए कोड को निष्पादित नहीं करते, जैसा कि आपने लिखा है, लेकिन थोड़ा अलग संस्करण जिसे पार्सर द्वारा पुन: परिभाषित किया गया है। इस चरण में एडिशियल स्पेस को शामिल किया गया है (आप डीबीएनहैम द्वारा गहन विश्लेषण पा सकते हैं) हम जिस तरह से पार्सर अपना काम करते हैं, उससे हम बच नहीं सकते, लेकिन हम एक कमांड बना सकते हैं जहां अतिरिक्त स्थान नहीं है आउटपुट को प्रभावित करते हैं cmd / q / c "(" Q: \ playlists \ a 1...

android - Anyone who updated to SDK 5.0 having issues with splitActionBarWhenNarrow? -

I just updated my SDK and started backing up my app (it was running just before the update) And now my different action bar is not divided. I'm not sure I'm doing something wrong, this is my setup: & Lt; / Activity & gt; I tested it on GS3 4.4 and Nexus 4, which also has 4.4. I'll test a little more equipment. Thank you. EDIT: It seems that the split action has ended, so I have to know a little more. It seems that the split action is no longer supported under L and it is recommended that you use the new

ruby on rails - How do I check CanCan abilities on an object in a `shared/partial`? -

per CanCan documentation, to check that a user can do something for any element In this scenario, you do something like this: & lt;% if it can be? : Create, @ project% & gt; & Lt;% = link_to "new project", new_project_path%> & Lt;% end% & gt; Or you can check with this type of class: & lt;% if it can be? : Creating, Project% & gt; & Lt;% = link_to "new project", new_project_path%> & Lt;% end% & gt; In my case, I have a Dashboard Controller # Index , which has this: @nodes = current_user .nodes in my view / dashboard / index.html.erb I have this: and lt;% @ Nodes.each do | Node | & Gt%; & Lt ;! - Upload video comment popup - & gt; & Lt; Div class = "box" & gt; & Lt;% = Partial render: "shared / comments", local: {node: node}%> & Lt; / Div & gt; & Lt;% end% & gt; & Lt ;! - node - & gt; Then in my shared / _comments.html...

jquery - .Hover function isn't working -

I have several images on my site, jquery sliding on the image should display an image title via toggle class + CSS , But such a fortune, I'm pretty sure the problem is in jquery, but after many attempts to tamper with $ this , .parents to .closest From to I have just decided There were some issues - jquery was not included, The class imghover was closed code , and I chose jquery $ (this) .parents ('div') is. ("H2") toggleClass ('imghover'). As I've seen that imghover ends with tr in your bedel, it does not appear that the entire CSS I had just removed this tr from the original bilal earlier in Bali and was missing the code to be copied; } was copied, so some of your CSS CSS, e.g. Transition , may disappear. Just by adding one transition - as I thought it was something to do - adjusted seconds look better i var $ this = $ (this); removed because it is no longer required.

javascript - Using extra callback parameters to Array.prototype.some -

Do you have any real-world examples of using the second and third criteria for the array of callback prototype? Com or array.prototype.ai ? : Callback is implemented with three arguments: the value element, the index of the element, and the array object being crossed. I have never used them personally. I have been working for a while, we have created the Javascript functional programming library, and we have not used the index and orrate parameters for other similar functions we started on. There are good reasons for this to tell me that here map and filters and for some functions, there is no need to go over here, The parameters are some topical utility so we provide a second function that they provide for your callback. (For example, map.idx (yourFunc, list) .) but I have never done anything like for some or Have not considered every . I have never imagined its practical use, but now one suggestion is that we are adding these functions to our list. So my q...

javascript - Override orientation shift on a mobile device -

I am sure the answer varies from platform to platform, but the ability of the phone to switch from the picture There is no way to override when you change the phone in the scenario? I've seen such apps (example Instagram), but I want to apply it to the mobile version of the website. Does anyone know one way to do this? So, with apparently it is possible. Therefore: @viewport {Orientation: Landscape; } I do not know how it is supported and nor does it seem like Mozilla if she constantly works, I will eat her cap!

converter - Convert AMR file to WAV on C# -

In my Android application, I want to record an audio file and send it to a small file with the service (ASP service) . And I found out that .amr file is one of the original record files on Android and its smallest file is. I am. How can I convert .wav to C #?

visual c++ - How to cin data to store in a struct defined in another header file? -

I am working on my homework and got trapped in this place. If someone can help me with this then this would be useful. I am using Visual C ++. This is a header file with a square. #ifndef CALLER_H #define CALLER_H #include & lt; String & gt; # Include & lt; Time.h> # Include "NodeData H" using the namespace std; Class caller {Private: int phone_number; Zero setphone number () {int min = 300000; Int max = 800000; Phone_number = minutes + rand ()% (max-min + 1); } String callers_name; String message; }; #endif I'm trying to store the name and message string in the header file above but I'm getting the error I searched on Google and it was a possible solution: " Cin >> caller.callers_name; " But the error is still happening "cin >> caller.message;" Is similar to. int _tmain (int argc, _TCHAR * argv []) {queueList L; Collar * collar = faucet; Int likes; Const int columnSize = 3; String columnname [columnSize]; ...

How to focus the autofocus element in jQuery ui dialog? -

As I want to set an element when a jQuery dialogue is open. I wrote this code like this: $ (". Selector"). Dialog ({title: "dialog", button: [[text: "yes", click: function () {}}, {text: "no", autofocus: true}]}); This is for this matter. It looks like I want IE9 + / Firefox / etc, but not in IE8. So I found the _focusTabbable function in jquery-ui. var hasFocus = this.element.find ("[autofocus]"); If (! HasFocus.length) {hasFocus = this.element.find (": tabbable"); } If (! Hypocus lamps) {hasFocus = this.uiDialogButtonPane.find (": tabbable"); } This will only find autofocus elements in UI-content, not in the Button panel. How can I come in: tab in iiDialogButtonPaneBible, but not applicable [Autofocus]? More interesting in IE11 / Firefox also, I noticed that the function centered the "yes" button at the end, but a popup with a focus on the "No" button popped up. No reason can...

javascript - jquery ajax JSON parse error firefox -

So this is a very strange one in my application, a ton of agents calls, but for some reason one of them works in Firefox does not do. It works in other browsers I checked the Network tab and the header is sent in normal form, but when I check the feedback tab, then there is no answer. Error comes from callback Error message that is: Syntax Error: JSON.parse: Unexpected end data on line 1 column 1 of JSON data. Again, it works fine in Chrome and IE and I have a bunch of other similar AJAX calls that work in Firefox. What can be the problem? Here's the code: $ Ajax ({url: 'php_helpers / pnm_profile_helper.php', type: 'post', process data (warning: function (s, error, error reporting) {warning (s + '\ n' + error + '\ n' + error Restore);}}); The response I get (and I get it in other browsers) {"gpa": "3.5 "," Credit ":" 30 "}

c++ - Detecting light color objects from same dark color background in opencv -

I have two images and I have to find the difference between the two images, so I keep one of my images which is the reference Is as good and is testing the second image. I am currently processing through the RGB color space, I am registering, looking for points of Jharkhand and the second image is distracted and then finding and comparing the Sobel edges on both images. . Sometimes if the color of the difference is the same or the light color of the background, then it is not showing as a difference, what is the suggestion on this issue? Thanks in advance JCR 13

php - Is it possible to have progress bar for file uploads when using REST API? -

I use base64 encoding for file uploads. The following is REST API for file upload: mail / user /: resource / files controlled through authentication RESOURCEID is done. And the content of the post request is file content in the base64 format. Can my progress be bar for uploading files? If not, which path should I take to handle file uploads with the progress bar? You can do something like this, request.upload .addEventListener ('Progress', function (e) {_progress.style.width = Math.ceil (e-mailed / e.total) * 100 + '%';}, false); Full Description

html - Image scaling inside div fails - background not following -

I am currently trying to fit an image in a divan container, but it does not work. On my page I have a complex div-tree, which looks like this: & Lt; / Div & gt; & Lt; / Div & gt; & Lt; / Div & gt; & Lt; / Div & gt; and the following CSS: # one {height: 300px; Background color: red; Status: Relative; Text align: center; } #b {Height: 100%; Width: 100%; Background color: blue; Status: Completed; Top: 0; Left: 0; Text align: center; Padding: 20px; } # C {width: auto; Height: auto; Display: Inline-block; Maximum-height: 100%; Background color: black; Padding: 20px; } #d {width: 400px; Background color: yellow; Maximum-height: heirs; } IMG {max-width: 100%; Opacity: 0.7; Status: Completed; Top: 0; Left: 0; Correct: 0; Bottom: 0; Height: Calc (100% -80px); Margins: Auto; } I want the image to be placed in a blue container. It should also be kept in mind about the given Divya Containers. Currently black does not fill the padding till the end of...

Mapping json data to two different entities in java using jackson -

I am using Jackson libraries in Java. I have to follow the JSON structure. "Time": "Asia / Calcutta", "Timestamp": "29 /", "By:", "By": "Manual", "Flo": 524, 09/14 15: 50: 00 "} I have two entities, Data Entity and time lapse class data entry {string divive; String bye; Int flow; } Class TimeInternet {String Time Zone; String timetamp; } How can Jason String map up to different institutions i.e. DataInteity and TimeTyT? I'm using ObjectMaper class. You have to annotate your classes with @JesenEngorProperties (undiscovered = true). After that: ObjectMapper Mapper = New ObjectMap (); DataType DataInty = Mapper Read value (json, dontty. Class); TimeAntit TimeInti = Mapper Reed Value (Jason, Time Entity Class);