Posts

Showing posts from September, 2015

javax.net.ssl.SSLException with Facebook SDK, Android -

is working fine in my device default Facebook app, but when I tried to login with Facebook and its application I give error down. javax.net.ssl.SSLException: SSL handshake is returned an invalid session. Socket State (off, connected, bound, Input_open, Autput_open, Grafkfesbuk. Com / 31.13.79.81) I do not do any work with very little to find me, but the solution to it. Any help on this is really appreciated.

Whitelist http: content for Django application running SSL? -

I have added SSL security to my DNS web application. Now I have integrated the external API in the demo application, which is http : // running on. This is the error that I get after making external API calls. [Blocked] '' Page '' was loaded over HTTPS, but '?' Unsafe content ran away: This content should also be loaded on HTTPS. Can someone take me out of here so that I'm running a whitelisting external domain and an application on the Apache server so it has to do in Apache settings or Django. Unfortunately this is doing something that is not in the browser, Can control from the web server. Here is an explanation of this behavior: Websites that ask for sensitive information, such as usernames and passwords, to transmit content from the computer you are using Often use secure connections. If you are going to a site via a secure connection, Google Chrome will verify that the contents of the webpage have been transmitted securely if it detec...

html5 - CSS Not working On Chrome -

I'm trying to create a cool looking checkbox. I have found a checkbox after a hidden input. When the checkbox is checked, then change the font size of the label. code "> lang-html prettyprint-override"> gt; top & gt; style type =" text / Css "> Input [type =" checkbox "]: check + input [type =" hidden "] + label {font-weight: bold;} & lt; / style & gt; & lt; / head & gt; Input type = "checkbox" id = "1" /> Input type = "hidden" /> gt; label = & lt; "1" & gt; My Labels But I can not work it on chrome. But if I try it on jsfiddle with chrome Anything that works? = "Text"> changed its CSS and it works fine input [type = "checkbox"]: check + input + label {font-weight: bold; }

html - Sublime text 2 auto wrapping -

I'm surprised that I have seen a tutorial in video tutor types. In Sublimetext 2, the class name and tab will be pressed as it will appear in Form.formclass [roll = "form"] and this will be How could this be possible? Can anyone help me? For what you probably saw excellent text It provides many cool features while writing HTML or CSS, you can add more information about these to the Jithub repo.

intellij idea - pycharm auto unstashing changes after rebase -

After the Rebase (git plugin) Pycharm stashed past the past. Disputed files merge. I Also do not get related settings. How can I turn it off? VCS -> Update Project in the main menu In this area, updates from When cleaning your work tree, first specify the method for saving your changes. Changes will be restored after the update is complete. Among the available options are: Using Stesh (GIT Native) and Using Shelves (Idea Native) Then to avoid problems related to staceing data using stell (I have used for my files I'm not using Stretch, so no conflicts)

android - MediaPlayer inside SurfaceView only shows a little peace in Tablet bq 10 inches -

As you can see in the next link: This was shown only part of my SurfaceView is. The next XML I have defined is SurfaceView: My Java code to make it works is:. sv.getHolder () addCallback (new callback () {@Override public void surfaceDestroyed (SurfaceHolder holder) {mediaPlayer.release ();} @Override public void surfaceCreated (SurfaceHolder holder) {mediaPlayer .setVolume (0, 0); playVideoDelay (MediaPlayer, SV, path);} @Override public void surfaceChanged (SurfaceHolder holder, brick format, brick width, brick height) {}}); // method is called: private void playVideoDelay (Last MediaPlayer videoView, last SurfaceView sv, Uri uri) {try {videoView.setDataSource, (getActivity () getApplicationContext (), uri.). Sv.getHolder () setFormat (PixelFormat.OPAQUE); VideoView.setDisplay (sv.getHolder ()); VideoView.prepare (); If (Build.VERSION.SDK_INT> = 16) videoView .setVideoScalingMode (MediaPlayer.VIDEO_SCALING_MODE_SCALE_TO_FIT_WITH_CROPPING); If (currentPositionVid>...

c# - UnhandledExceptionMode.ThrowException for AppDomain.UnhandledException -

I want to set unhandledExceptionMode.ThrowException for current AppDomain and not only for application threads. An exception from the second thread should also be handled by my current Donan_Unimated exception handler. Is it possible? Here's my code: Fixed class program {/// & lt; Summary & gt; Main entry point for the application /// & lt; / Summary & gt; [STAThread] static zero major () {applications Set unhandled exception mode (unwanted exception. Throws up); AppDomain.CurrentDomain.UnhandledException + = New UnrestrictedExceptionEndception (CurrentDomain_UnhandledException); Application.EnableVisualStyles (); Application.SetCompatibleTextRenderingDefault (wrong); Application.Run (New Form 1 ()); } Static Zero CurrentDomain_UnhandledException (Object Sender, UnhandledExceptionEventArgs E) {File.AppendAllText ("Log.txt", (Exception) e.ExceptionObject). Message + environment. Newline); }} Maybe you search for the behavior provided by Applic...

Vertically center an element on the page with CSS? -

I have to center an element of an unknown height vertically on the page. I can set it relative to the one containing division: .one {background: gray; Width: 50%; Status: Relative; Top: 50%; Conversions: Translator Y (-50%); Margins: Auto; } .cont {background: blue; Height: 300px; } Although I can not find it in vertical center on the page: .one {background: gray; Width: 50%; Status: Relative; Top: 50%; Conversions: Translator Y (-50%); Margins: Auto; } .cont {background: blue; Height: 100%; } keep this CSS :) .one {background: gray; Width: 50%; Status: Relative; Margin Top: Auto; Margin-bottom: auto; Vertical-align: medium; } .cont {display: table-cell; Background: blue; Width: 100%; }

sql - Return column name with coalesce -

I do not want to select zero value before several columns in my table. Normally I use the SELECT COALESCE (col1, col2, col3) from the table to , but this time I do not need the price , But the name of the column is an example: Table: col1 | Col2 | Call 3 tap. Empty | 3 tap 5 | 8 2 empty | 2 should come back: col3 col2 col1 to do this with a single SQL statement Any way? Note: I am using PostgreSQL. I would suggest using case statement Select when call 1 is not 'call1' when call is not 2 '2' when call 3 or else 'call 3' tap ends from table;

java - Cant mock objects on my android project -

I can not duplicate any object on my test cases. That's why I should do something wrong. I can run matters without my trial, and it works fine but as soon as I try to duplicate an object, I get the following error when I try to run the trial case. Java.lang.ExceptionInInitializerError I org.mockito.internal.creation.jmock.ClassImposterizer.createProxyClass (ClassImposterizer.java:85) > Android Studio and this is how my Gradual file appears Apply the plugin: 'android' Dependency {compile fileTree (dir: 'libs', includes:' * .jar ') Project (compilation': Google play-services_lib ') Project (compilation': Facebook-sdk_lib ') compilation' de .greenrobot: greendao: 1.3.7 'compilation' org.mockito: mockito-core: 1.9.5 "} Android { out of 'META-INF / ASL2.0' to 'meta-INF / license' outside 'meta INF / notice'} compileSdkVersion 19 buildToolsVersion "19.1.0" lintOptions {abor...

javascript - How to create one time event when the app opens? -

I'm working on an iPhone app using PhoneGap. When the user opens the app and goes to the main page, I want the database with a live call to synchronize a sync app. This function should be called only once. That is, if the user clicks on the main page again, that function should not be called because it has already been called. I want to call this function on the OnDeviceReady () function. minus on device (if (test.called) {return false;} and {test ();}} function test () {test.called = true;} I used the above concept but the function is called again when I click on a different page and then if I click on the main page, that is because this page values ​​the set value false. / P> Which event should I use to call only once in the app? I suggest that you use sessionStorage: Function on Device Repair () {if (sessionStorage.getItem (" isynync ") ===" true ") { Return false;} and {test}; SessionStorage.setItem ("isSync", "true...

haskell - defining a State' monad which counts the Gets, Puts, Bind and Returns done on it -

I am trying to define a state monad state in Haskell newtype State 's = state' {runState ':: (S, calculation) - & gt; (A, S, Count)} tracks the number of counts, gives returns and is done on it data calculation = count {Binds:: int, return :: int, gets :: int, put :: int} deriving (one, shows) installation monoid cats where mempt = count 0 0 0 mappend (count x 1 x 2 x3 x 4 ) (Calculation y1 y2 y3 y4) = calculation (x1 + y1) (x2 + y2) (x3 + y3) (x4 + y4) I have been able to define return And for this new mondo = return x = state 'f jah A. F = \ (s, count) - & gt; (X, s ', count') = runState 'st (s, count) (x, s, count & lt;> a return card ST> gt; = k = state' (\ (s, Count) in Runstrat (KX) (s, gin ' However, I am unable to get it and this state has received the' state ' And to do the same as getting it, still they need to increase the number one by one and the number one (the constant in which one gets a...

php - Ajax error when retrieving data from JSON -

I am trying to send data to my PHP file which includes values ​​in DB (this part is fine) And then send back JSON. Encoded data in a javascript file, so that I can display them, but this is not working. I do not know what's actually wrong. I'm looking at many work examples and mines are not working $ AZ ({type: "post", datatype: "jason", url: "requete.php", data: data, breakthrough: function (data) {if (data. Success == true) {warning (data. ;}}, Error: function (error thrown) {warning ('error');}}); The data is correctly sent to PHP and inserted in DB but the following JSN will not be displayed: if (isset ($ _ POST) ['Action']) & Amp; $ _POST ['action'] == 'add_attribution') {$ nom = $ _POST ['name']; $ Date = $ _POST ['date']; $ Montant = (int) $ _ POST ['montant']; $ Type = utf8_decode ($ _ POST ['type']); Enter $ Sql ​​= "BO_DEPENCE (Montant, date, place, desc...

.net - How to send SOAP request from a specific IP address with Service Reference -

Text after " Our machine has multiple IP addresses and the server only accepts requests from a specific IP address. I am looking for a way to send a SOAP request from a specific IP address. This question is for an extension, but it has been done for web context, I am using a service reference. I am using Visual Studio 2013, this proxy sections are generated from WSDL and as it uses WCF / it seems to send the request the customer's The generated proxy class looks like this:. & lt; System.Diagnostics.DebuggerStepThroughAttribute (), _ System.CodeDom.Compiler.GeneratedCodeAttribute ("System.ServiceModel", "4.0.0.0") & gt; _ Partial Public Class Implements Consoto.TestActivitySoap Public Sub New (the System.ServiceModel.ClientBase (Consoto.TestActivitySoap got TestActivitySoapClient heritage)) MyBase.New () End Sub Public Sub New (ByVal endpointConfigurationName as string) MyBase.New ( endpointConfigurationName) end sub public all new (ByVa...

tcl and gnuplot interaction -

Currently, I have to handle the data processing part. Assume that the data is stored in a TCL list variable. If I want to use Gnuplot to show data, what is the best way to do this? Based on my study, the data file provided to Gnuplot is required. So I can not pass the list variable directly to the gnuplot command I think with the string operation, create the gnu command inside TCL and then print all the commands in a file, for example, "command.dat "Give Name And call gnuplot in tcl like this: exec gnuplot" command.dat " Any other method? Or good references

c# - How to set DataContext in a Dialog Window to its parent's DataContext -

itemprop = "text"> I created a new window which I call after using the following code: NieuwSimulatie NiewSimulatieWindow = New Investigation () {Master = this}; Bool? SimulatieAangemaakt = NiewSimulatieWindow.ShowDialog (); In the window "NieuwSimulatie" I want to do the same DataContext as in my MainWindow, or I try using RelativeSource I want to DataBind directly to Geuss DataContext, Ive tried Key: & lt; Control: SplitButton X: Name = "ProjectNaam" DisplayMemberPath = "ProjectNaam" ItemsSource = "{Binding Static.Projecten, RelativeSource = {RelativeSource Mode = FindAncestor, AncestorType = Control: MetroWindow}}" /> But it does not work. Please help me fix my databanking or set the datacentax of my window in the data contact behind Meteindo. I have access to your datacentech, from which you create your own window How to: NeivaSlimatity News Simulativindo = New New Evaluation () {Owner = this, Dat...

java - How avoids SonarQube major issues, while using LinkedList method? -

I wonder how I can avoid the SonQuebeck issue: Announcements to Java The archive interface should be used as a "list" rather than special implementation classes such as "linkedlist" , so I want to use the specific method of linkedlist in this way: LinkedList & lt; String & gt; Item = new linked list & lt; String & gt; (); // add someitems string elem = items.removeFirst (); The only solution I have to get is to convert to Qi, but then I have to use the methods of the interface: qi I can remove the object before using this method. Is there any other solution? In this case, the method must be used to recommend this method, As mentioned in the javadoc of: removeFirst comes from the interface and this is the interface you should use instead of working directly with the implementation.

php - Exclude Products from loop using woocommerce -

I have to exclude some products in the category loop product page using woocommerce. Only that product will be given a specific value in the meta table. I have written the code below but it is not working for me. Please help me. add_filter ('pre_get_posts', 'custom_pre_get_posts_query'); Function custom_pre_get_posts_query ($ q) {if (! $ Q- & gt; is_main_query ()) returns; If (! $ Q- & gt; is_post_type_archive ()) returns; $ Q- & gt; Set ('meta_query', array (array (array ('key' = & gt; '_auction_closed', 'compare' = & gt; 'does not exist')))); Remove_filter ('pre_get_posts', 'custom_pre_get_posts_query'); } Try the following code: Add_filter ('Pre_get_posts', 'custom_pre_get_posts_query'); Function custom_pre_get_posts_query ($ q) {if (! $ Q- & gt; is_main_query ()) returns; If (! $ Q- & gt; is_post_type_archive ()) returns; $ Meta_query = $ q- & gt; ...

php - Using Encryption (Hash Algorithm) On Variables -

Currently, I am encrypting data in a database that uses the code found on the web and the introduction of the subject in the form of. My question arises from here, two Wiki Hoo articles (and is special for these articles): one on encryption; On the other, both articles appear quite good; However, there is a significant difference between the two: the JavaScript definition of hashing algorithms used in the former states ( $ password = hash ('sha512', $ password. $ Salt) is required for PHP itself To work. Php hash () With the addition of the method (found in both articles), the authors of the first states, which are the By reading the PHP documentation, my impression was that hash (sha512) encrypts the external form (Writer suggests Javascript). () was able to handle a series of pre-defined hashing algorithms recognized by an identifier, such as whirpool , sha512 , etc. These PHP identifiers can be caught by hash_algos () (or you can just read the document)....

ios - "Scan Response" not available in advertisementData -

I have a configuration problem with a BLE 112 module: I can not display the contents of the scan response. I am attempting to use this method through adadata dictionary: - (zero) Central Manager: (CBC Central Manager *) Central discounter Peripheral: (CBParyFerral *) Peripheral AdData: (NSDRIED *) AdData RSSI: (NSN * *) RSS {NSG (@ "AdvertisingData:% @", AdData); } I use the code given by BlueGiga as an example: Here is the URL for the zip file What do I get in the ad here? : adv: {kCBAdvDataIsConnectable = 1; KCBAdvDataManufacturerData = & lt; Ffffb1b2 b3 & gt; KCBAdvDataTxPowerLevel = 3; } But I almost do not display the contents of the scan response, i.e. the local name CBSdvertisementDataLocalName on iOS. Using sniffer, scan response is available, though ... The following scan response was used for formatting. Bgs is part of the script: # Flags for Searchable / connectable ad_data (0: 1) = $ 02 # Ad field length = 2 bytes adv_data (1: 1) = ...

colors - I need some help drawing coloured squares in a certain order with pygame for python 3.2 -

This is my first post here! I hope this question was not answered before, unfortunately I did not know who I should have searched for ... This is a university practice where I have a series of intersections To draw a user-defined column one row and color (blue) is gradually lighter, to make things even more complicated, the intersections are also deeper than the rows (in line 0 included) and others The largest class in strange people, Mr. row of each row together, should be gradually lightens the light of the previous row. I am using Python 1.9 with Python 3.2. Even I tried so far: import pygame rows = int (input ('rows?')) Cols = int (input ( 'Column?') Colourstepblue = 255 / (column * rows) # Defines how light intersections # walk on each pygame.init (screen) = pygame.display.set_mode ((640,480)) screen.fill ((255,255,255) )) In the range (0, rows) for count = 0: for a range (0, cols): if i% 2 == 0: pygame.draw. Rect (screen, (0, 0, (colourstepblue * (...

macros - Limiting Make's @echo command -

I am trying to write a Macfile macro which calls two macros after the other. The first macro echos is the second and the second macro call gcc The problem is that to expand both of these macros and the result is that the GCC command just echo and can not run. Here's an example: funca = @echo "foo $ 1" funcb = gcc --version funcc = $ (funny, call $ 1) $ ( Funkab, call $ 1) All: $ (call function, "bar") output that I get is foo bar gcc --version , But what do I need foo bar and gcc --version (preferably on a new line) Breaking the macro with a newline and a backslash does no good work, and either does not work by wrapping the gcc command in $ (shell ...) . Any thoughts on how this should be done? I'm not sure why you want to do this, but if you are the same If you want to run multiple shell commands in the recipe command line, then you have to separate them from any type of shell separator such as ; or & amp; $ (Call Func...

html - floating a div aligning next to another -

Image
I want the plus sign to be right align, though it has become slightly wet once. It is not near the actual text I have tried to do a float: correct , but it's not exactly beside the text here is a screenshot: CSS: span .title {display: inline-block; } Span.toggle {status: relative; float right; } HTML: & lt; Li class = "submenu" & gt; & Lt; I class = "lock" & gt; & Lt; / I & gt; & Lt; Span class = "title" & gt; Users & lt; / Span & gt; & Lt; Span class = "toggle" & gt; + & Lt; / Span & gt; & Lt; / Li & gt; When I span.title {padding-right: 12%} This shows: although it All of them do not align on one side. Do you people know what is it that I am doing wrong? I float wrong? I have edited your CSS as I understand you. I hope you want the same Which you want :) #side navigation li {padding: 8px 5px 5px 0; Cursor: indicator; } .lock {bac...

c++ - What is the best way to define a double constant in a namespace? -

What is the best way to define double continuous in Namespace? For example // constant.h namespace constant {constant constant double PI = 3.1415926535; } // constant.cpp is not needed Is this the best way? I will say: - c ++ 14: namespace constant {templates & lt; Typename t = double & gt; Constexpr T PI = T (3.1415926535897932385); } - In c ++ 11: namespace constant {constexpr double PI = 3.1415926535897932385; } - c ++ 03: namespace constant {static const double pi = 3.1415926535897932385; } Note that if you do not have any trivial type of continuity and you are in a shared library, then I suggest avoiding giving it internally to the global / namespace I do not know the principle about it but in practice it randomly gets messed up :)

javascript - Filtering based on properties of objects within array using $filter -

Assume the following data: var roster = [{id: 1, participાનો] True: person: {printName: 'Larry'}}, {id: 2, participated in: wrong, person: {printName: 'curly'}}, {id: 3, present: true, person: {printName : 'Moe'}}]; I am trying to find the count of objects in the array where the present is true. I have tried the following: rosters.html: {{roster | Filters: {Attendance: true}). Length}} Roster-Controller Js: Check Incount: Function () {$ Filter ('Filter') $ Scope.roster, attended.true). Length; } The HTML filter works as expected, returns 2 in this example. However, there is an error reference error in the function version: the variable can not be found: present . I think that something trivial that I missed in the ceremony, but I do not know what it is. Use an object as expression: $ Filter ('Filter') ($ scope.roster, {attend: true}). Length;

python - How to access the keys and values of dictionary passed as argument in method -

itemprop = "text"> I have AC # backgrounds and I'm trying to pass a dictionary in the law and some have to see if I Whether a particular key is present or not, if it is present in the key dictionary and then I want to do some other things. Suppose that the following dictionaries are: tel = {'jack': 4098, Sape ': 4139} And I want to check whether the 'saip' exists or not? In some way in the method, I do not know the type of argument. How can I put in the dictionary to retrieve keys and values. In the method I want to check: keys = tel.keys (); However, in the law, I do not have information about the type of argument nearby. Python has not been written like C #. The data types of parameters in the function / method signature are not included. So you do not need to put the value passed in a dictionary. Instead you believe that whatever has been passed is a dictionary and working on it. If you expect that any other thing other ...

html - UrlFetchApp.fetch() incomplete content on google.com -

I'm starting with Google Apps Script coding. So I tried this example: // The code below logs the HTML code of the Google home page. Var response = UrlFetchApp.fetch ("http://www.google.com/"); Logger.log (response.getContentText ()); I'm getting the tag from: Doctype html & gt; From & lt; Style & gt; But these tags are not: & lt; / Head>, & lt; Body & gt ;, & lt; / Body & gt; Or & lt; / Html & gt; Is this an incorrect Google Apps Script instance or is it a mistake in my part? How do I reply to the complete HTML code from google.com? Logger.log automatically shortens the shown string after a certain length Getting the page, but watching only the first part in the entrance. // The code below logs to the HTML code of the Google home page. Var response = UrlFetchApp.fetch ("http://www.google.com/"); Var content = response.getContentText (); Logger.log (content); // enter the last 1000 ch...

javascript - why is my ASP.NET button control not firing JQuery Dialog -

First of all the buttons do not fire the jquery dialog and when the page loads, I check the console for errors I and I get: which point to $ "Uncaught TypeError is not undefined" ("# dialog") dialog ({ Here are my codes under Default .aspx & lt ;! DOCTYPE html & gt; & lt; HTML xmlns = "http://www.w3.org/1999/xhtml" & gt; & lt; Top runat = "server">

adjust jssor slider in a container div -

I have 3 divs first led "DivHeader", the second "DivMenu" has a menu and leave the third material "DivContent" is where the sliders are being. How can I do I have a problem with div "divcontent" because they do not fit the size of the sliders div "DivContent"? Use the following code to your slider scale to fit the width of your 'DivContent ' var jssor_slider1 = new $ JssorSlider $ (...;. // responsive code starting // you can remove the code responsible if you do not want slider scales, while window function ScaleSlider resizes () {var parentWidth = jssor_slider1 $ Elmt.parentNode.clientWidth ;. if (parentWidth) jssor_slider1 $ scalewidth (parentWidth) ;. rest window.setTimeout (ScaleSlider, 30);} ScaleSlider () ;! if (navigator .userAgent.match (/ (IPhone | iPod | iPad | Blackberry | IEMobile) /)) {$ (window) .bind ('resizing', ScaleSlider);} // if (navigator.userAgent.match (/ (iPhone | iPod | iPad) /)) {//...

java - exporting APK with Proguard fails in real device install -

If I export it to Android studio in my app then trigger = true and install APK on the real device The app stops and says: Unfortunately [your app is closed. What is the problem? I left the proguard-rules.txt file in the default state: # Add specific Progred rules of the project here. # By default, the flags of this file # are specified by Flags / App / Android Studio.AP / SDK / Tools / Project / Programming-Android. Txt # can add # You can edit the path and order included by changing ProGuard # property in the project. Properties # # For more information, see # http://developer.android.com/guide/developing/tools/proguard.html ## Place any project specific option here: # if your project uses WebWee with JS , Then specify the full # qualified category name for the following #and Recommend JavaScript Interface # class: # -keepclassmembers class fqcn.of.javascript.interface.for.webview {# public *; #} Without Proguard my app is installed and runs perfectly. You can do this...

javascript - Dynamically add and remove attributes in angular directive template -

Hi I have a tutorial that creates a div tag used to embed the live preview of information about my webpage. In my instructions I have a template that creates this division tag. However, I only want the required properties that are selected on my webpage so that they are included in the div tag. In my instructions I have: var temp = "& lt; div data-feed class = 'feed-element' data-number-activities = {{anta Data-activity-source = '{{mySourceSelections [0]. Source ID}' data-activity-actions data-activity-action-social = {{social media embed selection}}} data-content-range = {{Content limited}} data-action-action-event data-no-activity-message = {{noActivitySelection}} id = 'feedEmbed'> "; Return {Limited: 'E', Scope: false, template: temporary}; Right now, when this div is rendered on my webpage, the specific attributes are different ng-models (such as number of activities, content limits, etc.). However, I want to add / remove ...

process - Creating, controlling, and destroying a Movie in Java -

I am trying to create a piece of software that starts the movie (.m4v) in the original movie viewer Please, let's run the movie and turn it off when I was thinking of using the process , but after a few hours and after some Google searches, I was unable to find out Here's what I have to do: Runtime Runtime = Runtime.GetRight (); Try {process process = runtime. Exec ("A: \\ test.m4v"); } Hold (IOException e) {e.printStackTrace (); } I get an error: java.io.IOException: Can not run the program "A: \ test.m4v": CreateProcess error = 193,% 1 is valid Win32 is not the application What am I doing wrong? What should I do to start this movie? What do I need to do to create a full screen of the movie? Try entering wmplayer .exe / play / close A: \\ test.m4v In your .exec method, if you know that .m4v can be viewed on Windows Media Player. Or just select a different compatible player instead of Mplayer2.exe. After the video has expired, it au...

c# - Windows.Phone.Media.Capture.PhotoCaptureDevice is obsolete ...? -

I am working on a camera app and I need advanced settings like Exposure, ISO and so on. According to (19th August 2014), or instead of the "camera" class, I have to use the "Photocaptor Devices" class. The problem is that when I got this Visual Studio Premium 2013 Update 3 with a Windows Phone 8.1 project, I got the following warming: 'windows.phone. Media. Capture.FotCaptorDevice 'is obsolete:' windows.phone Media. Capture will not be available in future versions of Windows Phone Who believes to listen to the Windows Story or MSDN manual? Use Windows Media from Windows Phone Blue. Capture 'instead of' It is very easy to use. The full example application is available here: Your mediacat is named mc , assuming Advanced settings mc.VideoDeviceController structure And you can set these settings to do something like this: / Set the brightness (0 representing the empty space and 10000 representing pure white)...

javascript - displaying angularjs model data when using jekyll and liquid? -

I am using jacqual with liquid for my website. I want to use angular jars to read json and to parse the data on the HTML page. But both of them use liquid and angioz {{}} so when I try to display angular data, this will not be because the liquid thinks that it is a variable created by jacile. How can I use both jekyll and angularjs? Or is there a better way? This question is slightly old but I found a better solution in a connected SO question with the proposed Jekyll The best way to use AngularJS is to use the raw tags: {% raw%} \\ The goodness of all fingers goes here ... { % Endraw%}

javascript - Parse json to especific format -

मैं इस json को कैसे पार्स कर सकता हूँ [["code": "1" "MONTH": "1", "TOTAL": 78}, {"CODE": "1", "MONTH": "2", "TOTAL": 122}, {"CODE": "1", "MONTH "" 3 "," TOTAL ": 102}, {" CODE ":" 1 "," MONTH ":" 4 "," TOTAL ": 65}, {" CODE ":" 1 "," MONTH ": "5", "TOTAL": 134}, {"CODE": "1", "MONTH": "6", "TOTAL": 88}, {"CODE": "1", "MONTH": "7 "," "कुल": 77}, {"CODE": "1", "MONTH": "8", "TOTAL": 58}, {"CODE": "1", "MONTH": "9" "TOTAL": 67}, {"CODE": "1", "MONTH": "10", "TOTAL": 69}, {"CODE...

Simple loop works in Java but not "Android" -

I am getting a simple loop that runs in Java and is okay to work on Android. I created a test view and just set up to run a test when I run it, then I get a number appearing in the box and that does not change at the second number. I tried to do it with loops but I never got a title bar then a black screen and an accident There are no errors in Eclipse and it is without any errors Moves and moves without If your second thinking is thinking about the loop then it looks like a break, so that you can see the numbers look slower and work in plain java. Just and FYI I am learning Java for 2 weeks after watching the videos on YouTube. I have made some Android apps that do stuffs, but the loop can not get loop well in the Android. Thanks for any help for the new boy. public class MainActivity ActionBarActivity (text view display; int counter; int min = 1; int max = 5; int counter 2; @ override protected form zero (bundle saved instenstate) {super .Net (savedinstenstate); se...

html - Div extended past container div using negative margins has x scrolling only when connected to TV via HDMI cable -

I am currently working on a company website. I have used negative margins and positive padding to make the footer, and despite filling the 100% width of the top bars page, they are contained in the other, the cover is set to about 65%. This, as far as I know, is a relatively well-known way to do this, but it causes the content to go beyond the sides of the page. However, there is an X-overflow to avoid scrolling sideways: HTML and body are hidden on both. It works when I'm on my computer, but when I was showing the website to my colleagues today, it was not working. My laptop was connected to a large TV via an HDMI cable and I was able to scroll to the edge (no scroll bar, with only three button mouse). Back to my normal setup (attached to the same laptop with a second monitor) and now I can not scroll The code is something like this: HTML & lt; Div id = "wrapper" & gt; & Lt; Div class = "expansion" & gt; It is a divas stretching bey...

VBA Excel: Delete worksheet when it has a certain name -

Text after " My workbook, when a user wants to delete the tab for a project, they can call PRJNumber in cell T14 Put . There are several other tabs with the last 6 digits of the name of that project number (e.g., A_PRJNumber, B_PRJNumber, etc.). All PRJNumbers are 6 digits long The code given below should work, two msgboxes indicate that this is reading both in cell T14 and tab name in 6 digits, but it does not remove the tab or I do not have any errors Gives the idea? Sub Delete_Project () Slightly completed worksheet dim PRJNumber PRJNumber = Sheet ("Program"). Range ("T14"). Price MsgBox (PRJNumber) as ActiveWorkbook. Worksheets in each Seven MsgBox (right (wks.Name, 6)) right (wks.Name, 6) = PRJNumber then wks.Delete end then the next sub-sub end then I suspect there are some additional places in the T14 / etc. For example: string, strings str1 form str2 dim str1 = "123456" str2 = "123456" '## In one of these two messa...

wordpress - Pinterest won't recognize verification metatag -

I am trying to verify a website on Pinterest using metatags: & lt; Meta name = "p: domain_verify" content = "xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx" /> The site is hosted on WordPress 1) I have the metatag in the header Added & lt; Head & gt; and tried to verify ---- did not work 2) Then I got it to be & lt; Footer & gt; Tried to keep the place inside - I have tried many different wordpress plugins ---- did not work I know that the plugin Has done this, when I see the source code metatag is clearly there (in the head) why is not Pinterest verifying it? Thanks Try to follow specific steps described by Pintrest Wordpress: Copy the meta tag from Pinterest Visit your Wordpress Blog Dashboard Open Tools -> Available Tool Pages and the Pinterest Site Verification Field Click Save Changes Go back to pinterest.com/website/verify and click Full Verification S

php - Undefined variable, and invalid argument -

I am trying to link my array of clients to my table to properly output them in the table. , But I'm getting these errors notice: Undefined variables: C: \ wamp \ www \ son in Line 67: Warning: Invalid argument for foreach () in line 67 on C: \ wp has been given Am I going to go about it completely wrong, it seems like a simple task, but I I was. My Koo method readCustomers is not correct Try doing something like this: class customer {public function customer ($ handle = fopen ("inputfile.txt", "r") or die ("failed to create file" ); If ($ handle) {while ($ line = fgets (handle $)) == wrong) {$ pieces_of_line = explosion (',', $ line); // whatever you like with you} } And {// open the error file} Fclose ($ handle);}} readOrders Try anything similar

Want to add additional strings to a vector of string vectors in c++ -

I have a dozen string vectors and I want to put them all in a big vector and then add a string For each of the young children again Suppose that vector 1 has "1" element as an element - vector 2 has "1" and "2" elements, vector 3 In the form of "1", "2", and "3" elements in ... ... in vector 12 as "1", "2", ... and "12" elements Vector in "large" Tier 1 to 12 (or signal for each of them, which is the easiest) I want to go through the big elements of each vector and 1 to 12 vectors are "a" and "b" "I want to add. > Is it possible, or should the part of vector 2 be overwritten by joining for vector 1? If the vector of large vector strings is a vector of pointers that is fine. Edit (some code, not all): vector & lt; Vector & lt; String & gt; * & Gt; AllTypesOfGamesDealt; Of vector & lt; String & gt; FB_BJ_BS; Of vector ...

vb.net - Setting Value and Text of ComboBox Using Property Panel -

I have a combobox in a VB.NET application that has a population using the "item" property in the properties panel. The "item" says the property "(collection)" and when it shows the selected "..." button this button spreads in a new window where you can populate the item in Cambodia. The text editor allows me to populate the list and looks like this: option 1 option 2 option etc. ... Cambodia properly Makes popups, but when the chosen text call is made to the combobox: combo box. Selected text = "option1" combo box. The selected text is always an empty string (= "") I know that I can populate the box in the code and set the members of the text and value through the code, but I I am wondering if the selected text property is essentially empty using the property sheet panel

Getting the ID of a Model that Uses Nested Routes and Permalinks in Rails -

So I had my ID set with ID like: resources: studio Doing Resources: Booking Finished This gave me the route of the index (which later I am going to use Jasonson to get the calendar for each studio. Studio_Bookings GET / Studio /. Studio_ID / Bookings (. Format: Booking # Index) This is good, but I was getting rid of the ID and wanted to use a user account instead to change it to a friendly URL. Namespace: Studio, Path = & gt; ; '/: Permalink' Resource: Complete booking: I am getting now Get Studio_bookings /: paramlink / bookings (.format) Studio / Booking # Index Great! How do I want to see my URL, though, now: Not anywhere on the id route I have found Booking can not be found without ID This is not being passed too. is there any way? To pass: IDs in the URL without actually using the URL? Otherwise, can I change the primary key from: id: permalink to fix it? I tried changing my controller from @studio = Studio.find to Params [: id]) ...

C++ reinterpret cast is inconsistent -

मैंने एक परीक्षण कार्यक्रम बनाया: #include & lt; iostream & gt; नेमस्पेस एसटीडी का उपयोग करना; क्लास बग {निजी: चार ए [25]; पूर्णांक में & amp; देखें (int i) {return * reinterpret_cast & lt; int * & gt; (& amp; a [i]);} सार्वजनिक: बग () {} शून्य से अधिलेखित () {देखें (एक [0]) = 2; Cout & lt; & lt; "[0] का मान है:" & lt; & lt; देखें (एक [0]) & lt; & lt; endl; }}; Int main () {बग बी; b.overwrite (); वापसी 0; } ... जहां मैं दृश्य फ़ंक्शन का परीक्षण कर रहा हूं। सब कुछ काम करता है जैसा मैं उम्मीद करता था; शून्य की विधि शो में प्रिंट स्टेटमेंट के रूप में a [0] पर मूल्य शुरू होता है। हालांकि, मैं प्रोग्राम को थोड़ा संशोधित करता हूं: #include & lt; iostream & gt; नेमस्पेस एसटीडी का उपयोग करना; क्लास बग {निजी: int x; चार ए [25]; पूर्णांक में & amp; देखें (int i) {return * reinterpret_cast & lt; int * & gt; (& amp; a [i]);} सार्वजनिक: बग () {} शून्य से अधिलेखित () {देखें (एक [0]) = 2; Cout & lt;...

arduino - Inconsistent sendkey with batch file -

I am trying to create a batch file that will be called from another program, but sendkey works properly Can not get to. It calls the zune and opens it but sends ctrl + p to start the play. If I have to open the zoo and the batch file starts again it will eventually start playing but I have to walk a batch 10 times in a row, not sure why it is so. idea? @echo off setlocal start zune.exe Call: SendCtrlP "Name in Window Title": SendCtrlP & lt; App & gt; Setlocal set vbs =% Temp% \ _ vbs>% vbs% echo set s = CreateObject ("wscript.Shell") & gt; & Gt;% vbs% echo s.appactivate "% ~ 1" & gt; & Gt;% vbs% Echo s.sendkeys "^ p" cscript // nologo% vbs% if present,% vbs% del / f / q% vbs% exit / b

azure web sites - IISNode running Node.js with multiple domains issue -

I do not have any basic, no-frills node NPM-Express blog site on the auction website and IIS load balancing or just iisnode That causes the issues that cause the app to run. Js. Walking out of IIS did not experience any issues. No website, just express it using vash templates. The problems I have run are: Using web deployment and some node_module, for example if npm lwip works first, then it will not be reappointed again. Sometimes other JS and Wash files are not updated either. While using the site a plain wash templates section (has to face public) and the site had a login side. Simple one-page public has to face a message 500 error will cause one of the three requests it will have to do. No logs were generated and all logging was turned on. The error was from iisnode and not only the node. Using Visual Studio 13 with all the latest updates, remote debugging was simply not working. Actually the log-in part was used in the dark using NPM-passport-local, but the domain was neve...

Setting up AngularJS with Flask -

इस सवाल का पहले से ही एक उत्तर है: 1 उत्तर यह बुनियादी होना चाहिए, लेकिन मैं फ्लास्क के साथ खेलने के लिए कोणीय नहीं मिल सकता है कोणीय और फ्लास्क में एक ही चर प्रक्षेपण सिंटैक्स {{variable}} है और एक ब्लॉग पोस्ट के अनुसार, मैं एक पाइप का उपयोग दो के बीच अंतर करने के लिए कर सकता हूँ, लेकिन नीचे एक त्रुटि उत्पन्न होती है जो कोई भी फिल्टर नामित 'कोणीय' & lt;! DOCTYPE html & gt; & Lt; html एनजी-एप & gt; & Lt; शीर्ष & gt; & Lt; मेटा वर्णसेट = "यूटीएफ -8" & gt; & Lt; script src = "https://ajax.googleapis.com/ajax/libs/angularjs/1.2.0/angular.min.js" & gt; & lt; / स्क्रिप्ट & gt; & Lt; स्क्रिप्ट प्रकार = "टेक्स्ट / जावास्क्रिप्ट" src = "http://ajax.googleapis.com/ajax/libs/jquery/1.11.0/jquery.js"></script> & Lt; / head & gt; & LT; बॉडी & gt; & Lt; लेबल & gt; {{yourName | कोणीय}} & lt; / लेबल & gt; & Lt; इनपुट प्रकार = "टेक्स...

html - My WebPage wont recognize javascript files on folders -

Help me with this people so I have 2 functions inside each of an independent .js file. Both are imported into an HTML webpage as shown below. & lt; Script type = "text / javascript" src = "DownloadTimeLine.js" & gt; & Lt; / Script & gt; & Lt; Script type = "text / javascript" src = "flipbank / flip banks. Js" & gt; & Lt; / Script & gt; Now inside this body tag I run this script. & lt; Script & gt; TestingTimeLine (); // Task FlipBank (); // do not work & lt; / Script & gt; The problem is "test flipbank ()" which is a function inside flipbank / flipbank. JS will not work, but TestTimeLine () which is inside DownloadTimeLine.js will work. "FlipBank / Flipbank .JS" function test flip bank () {what is wrong with the test inside the warning ("Flipbank .JS record confirmation navevo"); } // Inside "DownloadTimeLine.js" function TestingTimeLine () {...

flash - parallax scrolling down with ActionScript 3.0 -

I want to make the road parallax scroll down with Flash in AS3, when I run the script, go up the parallax Used to be. And this is my code package {import flash.display.MovieClip; Import flash.events.Event; Expansion of the public class kaleals movie clippings { This is the variable I am creating Public Priority Road: Road 1; Public Traffic 2: Road 1; Public Section Road Container: Movie Clip; Public Priority Road: Number; Public car car: car; Public Function Callus () { And make this car, road and container car = new car (); Road = new road 1 (); Road 2 = new road 1 (); Roadbreadth = 653.7; Car.y = 10.0; Car.x = 10; Road.y = 10.0; Road.x = 10; Road2.y = Road. Y + road breadth; Road2.x = road.x; // * Child Object Road Connector = New Movie Clip (); RoadContainer.addChild (road); RoadContainer.addChild (Road2); This.addChild (roadContainer); This.addEventListener (Event.ENTER_FRAME, onEnterFrame); Public Function Centerframe (Event: Event): Zero {car.y = car.y + ...

apache - Write pojo's to parquet file using reflection -

The HI API is looking for me to write a paravest with pojes I was able to generate the avio schema with reflection And then I could make a wooden roof schema using the Evrosomema converter. Apart from this, I could not find a way to convert GenericRecords (Avio) from Pojos and I could be able to use AvroParquetWriter to write Pojos in wooden roof files. Any suggestions? If you want to go through Avro, then you have two options: 1) Let Avio generate its poses (see tutorial). Generated Pojos enhances specific records, which can later be used with aviroparkvitator. 2) Write your own generic record from your Pozo to the conversion you can make it manually or to use more general solution reflection. However, when I tried to read the data, I faced difficulties with this approach. The supplied schema was found in the classpath on the basis of avio and tried to instantify a specific record instead of genericord. Because of this I went with option 1. The wooden ceiling now suppor...

vb.net - tOGGLE cASE For Textbox? -

I can add toggle case to boxes, for example, I click on a button to turn it on To change the text in a text box in the case (hello -> hello), basically it takes the first letter and in the short cases this and the other upper case it matters Here is a method to change the first title case using the net culture functions and then Your "Toggle case" private sub btn_ConvertTotOGGLEcASE_Click (as the object is to reverse the case for e EventArgs) handles btn_ConvertTotOGGLEcASE.Click title case convert ' find text box present value as dim MyText string = MyTextBox.Text the 'net device using "(made in as dim MyTextInfo System.Globalization.TextInfo = new System.Globalization.CultureInfo en-US", false) .TextInfo MyText = MyTextInfo.ToTitleCase (MyText) 'then all characters dim invertedText as four () = MyText.Select Case (reverse function (c) (CharkIsLetter (c), then (CharkIsUpper (c), CharkToLower (c), CharkToUpper (c)), c)). toArray () 'Fi...

How to get celery working with scrapy server on heroku and django-dynamic-scraper? -

I'm in the process of building my first project involving scary, everything on my development server (windows) Works from, but there are some problems with it, I am using django-dynamic-scraper which operates the integration work for me. I run the following commands in different command prompts in Windows: : scrap server: Python manage.py celeryd -l info: python manage.py celerybeat On the Heroes, I run the following: : Horoko Bash> Heroco run scrap server (app not found problem): Harukoc run pane manage.py Celeryd -l info -B -settings = myapp.production There is no error or problem with the actual DJGenzo app. I can use the admin website. Scrappy server runs: Scrappy Web Console available at: : http: //read0.0.0: 6800 / [console]: [Launcher] Scrapered start: max_proc = 16, runner = 'scrapyd.runner' : Starting from site 6800: Starting factory & lt; Twisted.web.server.Site example 0x7f1511f62ab8 & gt; And celery beats and workers are working: ...

TclTk object in R -

I am new to R (and programming in general), so apologies if it has been answered a bit more then find me No response was received, but any help or direction would be very good! I am trying to create a clickable interface on R, where I can click the users to find a file requirement (tcltk) Getfile & lt; - Function () {Name & Lieutenant ; -tclvalue (tkgetOpenFile (file type = "{{CSV files} {.csv}}")) if (name == "") return; Datafile & lt; - read.csv (name, header = t)} tt & lt; -tktoplevel () button.widget & lt; -tkbutton (tt, text = "select csv file for analysis", command = getfile) tkpack (button .widget) #CV variable of the CSV file is placed in 'datafile' However, when I try to execute it, and after clicking the button, click on the CSV file of interest, nothing happened. Error: object 'datafile' not found Once again, any help is greatly appreciated thanks! The top-level object contains an enviro...

methods as properties of an object in javascript -

I need to create a javascript function with a personal variable that has setter and geter methods. I tried: create a functional secreter (secret) {this._secret = secret; Var getSecret = function () {return._secret; } Var setSecret = function (secret) {this._secret = secret; }} and a variant with: this.getSecret = function () ... And this.seSecret = function () ... This code is not going to be a test suit on wars like something var obj = createSecretHolder (secret); Obj.getSecret (); Obj.setSecret (newSecret); and others who are hidden I get an error TypeError: Undefined property can not be read 'getSecret' and no other method can be set SEecret builder does not support return a value Then createSecretHolder (Incognito) returns undefined . then var obj = createSecretHolder (secret); To define obj so when you obj.getSecret () . If you try to access the error "Property can not be read, getSecret by using var a function Th...

Powershell format string -

I am trying to change the following string (this is the server's UUID) E376B527-CD96-4AC9-B6F8- 218987D196DB This format (which I can insert in the registry) 0xE3,0x76,0x6B, 0x27 This You will find hex values ​​in the form of bytes as a bit to repeat the sequence: [guid] :: parse ('E376B527-CD96-4AC9-B6F8-218987D196DB'). ToByteArray () | % {"0x {0: X2}" -f $ _}

Java regex wildcard not accepted -

स्ट्रिंग depend2 = "सफलता (जॉब 1) एण्ड एन (जॉब 2)"; Depend2 = depend2.replaceAll ("[\\ s]। (? I) [snd] [\\ s] * \\ (", ""); सिस्टम। आउट.प्रिंटलाइन (निर्भर 2); सफलता (नौकरी 1) ANDjob2) इसके बजाय यह आउटपुट करता है सफलता (जॉब 1) और एन (जॉब 2) [\\ s] (? I) [snd] यह आपके regex में यह सुनिश्चित करता है कि अंतरिक्ष के भीतर मौजूद एक अक्षर मौजूद होना चाहिए और n ( शून्य या अधिक रिक्त स्थान के साथ ( प्रतीक )। लेकिन वास्तव में एक अक्षर नहीं है। इसलिए आपका रीजेक्स विफल रहता है और कोई भी प्रतिस्थापन किए बिना मूल स्ट्रिंग देता है। स्ट्रिंग निर्भर 2 = "सफलता ( नौकरी 1) और एन (जॉब 2) "; निर्भर2 = निर्भर 2.रेलेस All (" \\ s (? I) [snd] \\ s * \\ ("," "); सिस्टम.आउट.प्रिंटलाइन (निर्भर 2); आउटपुट: सफलता (नौकरी 1) ANDjob2) स्पष्टीकरण: \ श्वेत स्थान (\ N, \ r, \ t, \ f, और "") (? I) इस ब्लॉक के लिए झंडे सेट करें (केस-असंवेदनशील) (साथ ^ और $ सामान्य रूप से मेल खाता है) (साथ में 'एस', ...

c# - How to get method definition using Roslyn? -

सदस्य घोषणा से सिंटेक्स ऑब्जेक्ट से अकेले विधि कैसे प्राप्त करें? एक विधि परिभाषा से रिक्त स्थान के साथ सिंगल लाइन और मल्टीलाइन टिप्पणियों को कैसे बदलें। क्या हम इसे सिंटैक्स टीविया लिस्ट के साथ कर सकते हैं यहां मैंने किसी ऑब्जेक्ट को सिंटैक्स ट्राइविया लिस्ट को नहीं सौंपा। क्या हमारे शरीर की परिभाषा से सामान्य ज्ञान प्राप्त करने के लिए कोई विधि है? अकेले विधि नाम कैसे प्राप्त करें। निजी स्ट्रिंग GetMethodsInSourceFile (स्ट्रिंग फ़ाइलनाम) {SyntaxTree tree = SyntaxTree.ParseFile (fileName); Var root = (CompilationUnitSyntax) पेड़। GetRoot (); IEnumerable & LT; Roslyn.Compilers.CSharp.SyntaxNode & gt; syntaxNodes; SyntaxNodes = रूट में विधि विकिपीडिया से। DescendantNodes ()। जहां (एक्स = & gt; x है MethodDeclarationSyntax || x संपदा DeclarationSyntax है) विधि का चयन करें; अगर (सिंटेक्सनोड! = नल & amp; सिंटेक्स नोड्स.काउंट () & gt; 0) {foreach (सिंटैक्स नोड्स में सदस्य डिसक्लेशेशन सिंटैक्स विधि) {if (method! = Null) {SyntaxTriviaList trivia; अगर (स...