Posts

Showing posts from September, 2011

cmake - OpenCV installation issue on mac mavericks -

Soon Clean Mimek destroyed some of Maverix's system files, I did the repair (re-installed) Mavericks and its Afterwards I got an error from XDODE "Assert.h" can not be found, so I thought I installed command line tools with "xcode-select -install", which I have no idea, if my problem is solved Has been or not, and then I found that not all OpenCiv libraries Can I find that I had uninstall OpenCV with "Brave Unicentral Open CV"? I was trying to reinstall it since then but I had no luck. Running "OpenCV Found Fluffy" tells me: ==> Making [2]: *** [module / core / CMakeFiles / opencv_core.dir / src / algorithm.cpp.o] error 1 1 generated error Making [2]: *** [module / core / CMakeFiles / opencv_core.dir / src / array.cpp.o] making error 1 [1]: *** [module / core / CMakeFiles / opencv_core.dir / all] Make Error 2: *** [All] Error 2 Unfortunately I do not know what to do with this error, I used the Semitic -J8 and I found: < / P>

doctrine2 - Symfony 2 : getReference and find -

इकाई प्रबंधक का उपयोग करना getReference () या ढूंढें () विधि डेटाबेस के कुछ अभिलेखों के लिए एक गैर प्रारंभिक ऑब्जेक्ट देता है क्या आपको पता है कि क्यों और क्या किया जाना चाहिए? getReference () करता है यदि वह अभी तक लोड नहीं हुआ है, तो ऑब्जेक्ट को लोड नहीं करेगा, यह केवल ऑब्जेक्ट पर एक प्रॉक्सी देता है ढूंढें () एक लोडेड ऑब्जेक्ट देता है सीएफएफ : // यह कॉल डीबी क्वेरी को ट्रिगर नहीं करता है, लेकिन ID $ objectA = $ this- & gt; इकाई प्रबंधक- & gt; getReference ('EntityName', 1) के साथ खाली प्रॉक्सी बनाता है ; $ This- & gt; assertInstanceOf ('सिद्धांत \ ORM \ प्रॉक्सी प्रॉक्सी', $ objectA); / / === सच // यह एक क्वेरी को ट्रिगर करेगा, जो कि स्थिति को लोड करने के लिए कॉन्फ़िगर किया गया है / लोड हो रहा है / क्योंकि यूनिटऑफ़वर्क पहले से प्रॉक्सी है, प्रॉक्सी को $ objectB = $ this- & gt; इकाई प्रबंधक- & gt; खोजें ('EntityName', 1); $ this- & gt; असाइन करें ($ objectA, $ objectB); विशेष उपयोग के मामलों के लिए मौजूद है, यदि आ

security - Using the PHP built-in server in production -

I was recently curious about PHP 5.4's built-in webserver. On the surface it seems that, however, with enough work, it may be possible to distribute PHP applications which are traditionally dependent on a different web server, such as WordPress, the form of standalone scripts In that, you can only php -S localhost: 80 ap.php (or, more likely, '. Wordpress.sh' ). They can also ship from their own PHP interpreter, which requires application for all needs, which will repeat the need to target many different versions of the language. It is searching the wheel to some extent again, but it certainly reduces the increase in portability and complexity for the end user. However, I looked at the following: This web server was designed for application development support. It can also be useful for testing purposes or for applications running in controlled displays. It is not intended to be a full-featured web server, it should not be used on any public network. This w

datetime - How to compare two times using php -

इस सवाल का पहले से ही एक उत्तर है: < / p> 11 उत्तर मुझे समय के साथ तुलना करना पड़ता है एक चर में एक समय मूल्य संग्रहीत मैंने तर्क तैयार किया है लेकिन यह समय पर विफल रहता है। निम्नलिखित तर्क है: $ diff = "22:32:53"; अगर ($ diff & gt; strtotime ("072: 00: 00")) {गूंजती "डीओ ए"; } और अगर ($ $ diff & lt; strtotime ("08:00:00")) {गूंज "DO बी"; } और अगर ($ एफ़आईएफ & gt; strtotime ("08:00:00") और amp; amp; $ amp; & lt; strtotime ("072: 00: 00")) {गूंज "DO सी"; } लेकिन यह "डीओ ए" को प्रतिध्वनित करता है, जबकि इसे "डीओ सी" प्रदर्शित करना चाहिए यदि आप समय (बिना दिनांक) की तुलना करना चाहते हैं, तो सबसे अच्छा तरीका उन्हें मैन्युअल रूप से सेकंड में रूपांतरित करना है, और सेकंड की तुलना करना है स्ट्रॉटोम काम कर सकता है, लेकिन तुलना करने से पहले आपको इसे $ diff पर चलाने की आवश्यकता होगी।

javascript - Clickable list item that select a radio -

I have this html ... when I click on the Li item, I want the radio input to toggle Know that you can wrap the whole thing in a label but I can not change the HTML (JS and CSS only). Any thoughts? & lt; Li & gt; & Lt; Input type = "radio" name = "KETELWIZARD_TYPE_WONING" data-label = "app" value = "Appartement | Appartement" & gt; Appartement & lt; Span class = "image" & gt; & Lt; Img src = "https://acceptatie.foursites.nl/feenstra-ketelkiezer/wp-content/uploads/appartement.png" height = "24" width = "23" alt = "" & gt; & Lt; / Span & gt; & Lt; / li & gt; If you want to click anywhere on the screen to check the radio : <(": Radio"). Prop ('check', true);}); If you want to toggle it (I think you might want to): $ ("li "). (Function () (var $ radio = $ (this). Find (": radio") $ radio.prop

dart - How to convert DateTime into different timezones? -

How to change datetime in different timezones? There are two ways of datetime class .toLocal () and .toUtc (). But if I want to display time in a time zone. How can I do this? Time zone information in dateTime is not therefore a < Code> DateTime , only your system's timezone and UTC is available. You can add timing information by wrapping the datetime in a custom class. Cover You need a table of offset for each timezone and then add / subtract the offset from the UTC date.

spring - Should one close Hibernate Session object every time after performing any CRUD operation? -

I am working with an enterprise application that uses Spring 3.x with Hibernate annotated programming. . Working with the hibernate session object for the DB function in my XYZDaoImpl class. And I suspect "is the correct way to shut down the hibernate session every time after any kurt operation object?" If this is correct If not, please advise me to recommend opening / closing hibernate session objects. You can post a little bit of DOIPL code ...... If you use sessionFactory.getCurrentSession () , you can get current session..in. This case framework automatically flags and closes when the transaction ends (committed or rollback). If you use sessionFactory.openSession () , you have to conduct a session and flush it and close it manually.

java - Avoid if/else in constructor - NavigableMap? -

I have the following code, depending on input to the constructor I need to start some values ​​which is a simple POJO. These values ​​are continuous, as you can see. Although I did not like / had read about Naviglame as an alternative to building and maintaining category values ​​.. how to improve / clean down or really use it? Thanks Private Calibrated Calibrated Value; Public Calibration Properties (Longtime Audnumer) {Setgellbretted Value (ONM); } Private vide sealtabilited value (long ONNumber) {if (ONNumber <762) {this cubified value = new calibrated (K, H, K, I, V, H, N, F); } And if (odNumber & lt; 866) {this. Cylibrated Values ​​= New Calibrated (K1, H1, K0_INV, H0_INV, F1); } And if (odNumber & lt; 1011) {this. Cylibrated Values ​​= New Calibrated (K2, H2, K2_INV, H2_INV, F2); } Else {this.calibratedValues ​​= new calibrated (K3, H3, K3_INV, H3_INV, F3); } // two exceptions (odNumber == 858) {this. Silified Value = New Calibrated (K2, H2, K2_INV, H2_INV,

Mapping based on the value of one field in BizTalk orchestration maps -

Image
I mapping to another in BizTalk orchestration of a message I'm overcome'm stuck in a situation Am Scenario is as follows: source schema schema several regions and destinations, including several children elements and the destination can be one to one mapping with elements of child fields source schema fields Suppose Source Schema Have eaten. Thus like: SF1 SF2 SF3 SF4 SF5 and the destination schema element is DEL1 and DEL1 The following fields include DEL1_F1, DEL1_F2, DEL1_F3, DEL1_F4, DEL1_F5 DEL2 and DEL2 fields DEL2_F1, DEL2_F2, DEL2_F3, DEL2_F4, DEL21_F5 DEL3 and DEL3 fields DEL3_F1, DEL3_F2, DEL3_F3, DEL3_F4, DEL3_F5 now price depends on SF1 I need money to map I if SF1 value of '0' I'll map with SF1, SF2, SF3, SF4 and SF5 DEL1_F1, DEL1_F2, DEL1_F3, DEL1_F4, and DEL1_F5 respectively If SF1 is '1' then I will map SF1, S F2, SF3, SF4 and DEL2_F1, DEL2_F2, DEL2_F3, DEL2_F4, value of SF5 and if SF1 with DEL21_F5 '3' is SF1, SF2, S

c - Accordance of linkage between declaration and definition -

I'm thinking that there is a snippet below, in which the definition of f fails to repeat The f is the static link, that's right: Fixed int f (int); Int f (int x) {return x; } Rubbing does not emit any warning for this. Without answering my question, I have read section 6.7.1 of the C11 standard. For example, it is possible to imagine more questions in the same vein, for example below t1.c and t2.c, and it would be nice if some of these answers are normally applied Yes, but I'm only concerned about the first example above. ~ $ cat t1.c fixed int f (int); Int f (int); Int f (int x) {return x; } ~ $ Clang -c -std = c99 -pedantic t1.c ~ $ nm t1.o WARNING: /Applications/Xcode.app/aername/bin/nm: A name list ~ $ cat t2.c int f (int) ; Fixed int F (int); Int f (int x) {return x; } ~ $ Clang -c -std = c99 -pedantic t2.c t2.c: 3: 12: Error: The steady declaration of 'F' is non-static declaration according to the constant constant f (int); ^ T2C: 1: 5: No

sbt - How to add assets from dependency to local project -

My game! -When project progress is being used as a dependency, after moving ahead from Play 2.2, libraryDependencies ++ = Seq (Java jdbc, javaebean, etc.). Cache, JavaWO, "com.company"% "project-sub-module.11"% "2.3.3" "com.company"% "project-sub-module.13"% "2.3.3" artifacts " I can see this jar in dependency but its contents appear in the public directory. And then the "run" command launches. I think I need to publish some packed articles: = {val artifacts: map [sbt.Artifact, java.io.file] = (Published articles in published). Value Property: Java.O.file = (Play packsets in the compilation). Value artifacts + (Artifact ("Project-Sub-Module 11", "Asset", "Jar" ​​ About using @mount_ash is correct "com.company"% "Project-Sub-modules_2.11"% "2.3.3" Classifier "Property" In building your property to import property in your proj

excel-vba if function message "collection is one-based" -

I got an error message "The collection is one-based" but I did not know what is wrong with my code. The following table is Detector: dp2 = ActiveDocument.DataProviders ("Test2") Quantity Switching Currency ------- - ----------------------------- 1) 150 yi EUR 2) 250,006 n 3d 3) 132,4 y ur 4) 24 y GBP5) 1 NAD Now I must send an automated email based on these data. I need a function in Excel-VBA that appears in every line for the value of the column "switchman". When the value is "N", then I have to enter the character "P" in the email. When the value is "Y", then I must give the value of the column "currency". The result of my email should look like this: 1) 150 EUR 2) 250,006 p3) 132,4 EUR 4) 24 gbp 5) 1p I tried to achieve this with the following task: Datapriver dip as a string thumb DP 1 in the form of slow stroke DP 2 = Active Documents. Data Providers ("Test 2") DIM K as the

magento - SOAP-ERROR: Parsing WSDL: Couldn't load from : failed to load external entity -

We are getting the following error SOAP-error: Parsing WSDL: can not be done Could 'load': Failed to load external entity "" What could be the reason for this SOAP error? Curlwrappers are already disabled. As suggested, I have examined this post soap api: Start tag expected, '& lt;' Not found 'I found that ini_set (' display_errors', 0); Already stopped, is still unable to recover from SOAP error. 1) Is your application directory password protected? 2) Try accessing as such 3) The php soap and xml rpc extensions are enabled or not.

android - SharedPreference Value is Not Updated -

I started an activity from the widget and a service I use a shared partnership in both the activity and service when I If I update the priority value, then this service is not being updated. Please see the code. Shared References myPref = getSharedPreferences ("mPrefValue", Context.MODE_PRIVATE); String target value = myPref.getString ("mPrefValue", "0"); System.out.println ("targetValue" + Target Value); When you use shared preferences, you can get getSharedPreferences (string Name, int mode); Just specify MODE_MULTI_PROCESS as the second parameter

javascript - jQuery UI issues in Safari when zoomed -

If some browser zooming is applied, then I have many problems with very basic jQueryUI features in Safari: A draggable element jumps because the second drag is started. With a return option, a drag jumps After dragging the elements elements to a dragable element snap incorrectly, the elements Has been pulled around. Version: jQuery: 1.11.1 Safari: 7.1 jQueryUI Chrome, Firefox and Internet Explorer 11 properly respond to browser zooming. How to get jQueryUI to respond properly with Safari's browser zoom? and it was closed as it was closed by visiting Safari 5. Unfortunately, some problems have been implemented due to zooming in webkit-based browsers, and it shows potential status errors while zooming. It is proposed to unite in a more consistent way, but it can not be guessed when its implementation can be: Meanwhile, I am afraid that the only thing you can do is: Zooming Refresh the page after correcting the position of the elements.

javascript - Rails redirect_to after jquery $.post -

Why can not my browser go to a new page when I submit it? I think there is a button that posts and functions data in my controller. My coffee script: $ Post "/ token / create", Json create tokens controller # redirect_to root_path, notice: 'parser successfully created I went.' log file looks like this works: to get started / "create / token / 2014" Make 127.0.0.1 -10-08 10:27:39 -0400 as processing by * TokenController # * ... as found in http: // localhost: 3000 / full 302 in 372 (active record: 10.0ms) "/" For 127.0.0.1 2014-10-08 10:27:40 -0400 by Visitors Controller as processing # index * / * ... In 2009 complete OK 2891ms (view: 2886.6ms | ActiveRecord: 3.0ms) but the page I'm on can not change Is obtained. On which page do I specify the page in the "redirect_to" row, how do I create it? You can do the following: def = # Do some things if request.xhr? # If the test is an AJAX call render J

android - Value injected with dagger is null -

I'm new to dagger and I'm trying to study it about making Android apps and making small Android apps I am I have an application class like this: Expands the class app application {@Override onCreate () {super.onCreate (); Object Graph objectGraph = ObjectGraph Siquette (new app module (this)); ObjectGraph.inject (this); }} and thus module: @Dagger Modules (injects = {App.class, MainActivity.class}) Public class AppModule {Private app app; Public app module (app app) {this.app = app; } Provide @Signaton app (app) {return app; }} More activity in which the app is injected: expanding the MainActivity activity of the public class {@ Inject app app; @ Override on Crate (Bundle Saved InstantState) {Super. NET (Saved Instantstate); SetContentView (R.layout.activity_main); If (app == empty) toast. Make Text (this is, "App is empty", 1000). Show (); }} My app is specified in the Manifest file and breakpoints starts int App.onCreate () . Am I missing so

storyboard - iOS: How to use a segue in a ViewController of a PageViewController -

I am a new me through a button UIViewController a PageViewController and a module Antother UIViewController to Segu I am trying to get But he is not really work when I click on the button, so I stayed UIViewController page views. I am trying this with storyboarding. Please find your code here: Can anyone help? have been removed from the model, as shown in Change storyboard to show the model of your Segu. And for some reason I could not click on the button that I removed and then added it back. Hopes

asp.net core - Kestrel hosting basics -

I am in the process of developing an asp.net website, and by using vNext to host my website Regardless of the host, when I start looking for some basic hosting features, I think they can not be developed Do anyone know that the following features are available on all platforms with Castell with vNext hosting War Going to be: SSL hosting logging HTTP requests (such as IIS) IIS module (I'm not guessing, I only need to rewrite url to redirect to HTTPS) As repo Has been stated in: Evolution for ASP.NET vNext in this repository is based on a live web server. Because it is currently in the form of a development server, some features can never be your way. For example, IIS has features to control the boundaries of IP Address Mapping, Bandwidth / Memory / CPU etc. for hostnames. A development server usually has such features. As an IIS module, I can safely say that it will definitely not support them because they are IIS-specific, and nothing to do with Castell'

symfony - Symfony2 : How to auto update associated entity field with entity listener? -

I have some entities with intangible classes: EntityDated which means that the unit has 4 commons fields Are: created , updated , created_ and updated_by when I update the unit and when I Updating the entity, I want to update 'update data' and ' update ' and ' update_by . I have been calling a service my listener: public function preUpdate (PreUpdateEventArgs $ eventArgs) {$ token = $ this- & gt; Container-> Get ('security.context') - & gt; getToken (); $ Unit = $ eventArgs-> GetEntity (); $ em = $ eventArgs- & gt; GetEntityManager (); $ Uow = $ em- & gt; GetUnitOfWork (); If (is_subclass_of ($ unit, 'kiwi \ bundle \ training bundle \ existance \' existed)) {$ entity-> Setuped (new \ Datetime ()); $ Entity-> setUpdatedBy ($ token- & gt; getUser () - & gt; getUsername ()); $ Meta = $ em- & gt; Mill class metadata (get_class ($ institution)); $ Uow- & gt; Recomputing Sensitivity Change ($ M

python - scikit-learn, linearsvc - how to get support vectors from the trained SVM? -

I am using LinearSVC from the scikit-learning library and I think that in any way it is possible to pull out the vectors which uses my model, so I wonder After trying to predict some time after the training, but without any luck. Anyone know? Unfortunately, there is no way to do this LinearSVC calls Libin () but the vector is Does not receive, only coefficients and interceptions An optional SVC will have to experiment with 'linear' kernel (libsvm instead of Libis instead of the Libnin), but poly dbf and sigmoid kernel supports this option: Scalone import SVM X = [[0, 0], [1, 1]] y = [0, 1] clf = ssm SVC (kernel = 'linear') clf.fit (x, y) print clf.support_vectors_ Output: [[0. 0.] [1. 1.]] The Libycan scales are better than a large number of samples, but otherwise they are mostly equal.

How to add a close button to action bar tabs -

I am creating an app and it has an action bar of up to four tabs. I have a web browser Like I would like to add a close button I know how to add / delete the tabs dynamically I was looking at the way to add a close button, but I could not find anything! If you know a solution or tutorial, please tell me or is it (adding a close button in the tab) is a bad practice? Thanks, My environment: Android 4.4.2 (API-level 19) I found the solution I could solve my problem using ActionBar.Tab # setCustomView method. . This is an idea that you can add to create for the Action Bar tab My code is: ActionBar ActionBar = getSupportActionBar (); actionBar.addTab (ActionBar .newTab () .setCustomView (R.layout.tab_title) .setTabListener (New MainTabListener & lt; TabFragment> (this, "myTab", TabFragment.class))); More information about adding tabs to action bar can be found here: For example, my tab_title.xml is: & lt ;? Xml version = "1.0" enc

inheritance - @Inherited annotation in Java -

हर्बर्ट शिलल्ट ने जावा पर अपनी पुस्तक में उल्लेख किया है, @Inherited एक मार्कर एनोटेशन है जिसका उपयोग केवल एक और एनोटेशन घोषणा पर किया जा सकता है इसके अलावा, यह केवल उन टिप्पणियों को प्रभावित करता है जिनका उपयोग कक्षा घोषणाओं पर किया जाएगा। @ इनहेरिटेड एक उपवर्ग द्वारा उत्तराधिकार के लिए एक सुपर क्लास के लिए एनोटेशन का कारण बनता है। इसलिए, जब एक विशिष्ट एनोटेशन के लिए अनुरोध उप-क्लास के लिए किया जाता है, तो वह एनोटेशन मौजूद नहीं है उप-कक्षा में, उसके सुपर वर्ग की जांच की जाती है अगर उस टिप्पणी को सुपर-क्लास में मौजूद है, और अगर इसे @ इनहेरिटेड के साथ एनोटेट किया गया है, तो उस एनोटेशन को वापस किया जाएगा। मुझे पता है कि एनोटेशन हैं नहीं विरासत में मिला अपवाद एक एनोटेशन हैं, जिसका घोषणा @Inherited के साथ एनोटेट किया गया है। मैंने बाकी सभी एनोटेशनों को समझ लिया है जिसमें java.lang.annotation: @Retention , @ocumented , और @Target < / code>। और अन्य तीनों ???? @ ओवरराइड , @ डीपरेटेड , और @SuppressWarnings । मैं थोड़ा उलझन में हूँ जब यह @Inherited एनोटेशन

flash - flex compiler error in IntellijIdea -

I have a strange error while trying to compile some Flash applications in IntellijIdea 13. The first time the compilation was successful but for the second time there is an error: Error: Flash Resource Builder: / Root / IdeaProject / Flarer 3DXP / Out / Production / Flare 3XXP / Etihad (is a directory) / P> I do not have any idea how Google can solve this problem with me. Can you please ensure that the IntelliJ file- & gt; Settings: compiler - & gt; Compile with Flex Compiler: The underlying compiler shell is selected?

python - Classes, Hidden Attributes and Inheritance -

I'm fairly new to OOP and Python. Many things that I know are taught themselves, so I would be grateful if you could just give me the link to read because I do not have the exact terminology, which I should seek to clarify my doubts. This is my code yet: square point (object): x = 2 y = 3 def __init __ (self, x, y): self.x_a = X self.y_b = Y class rectpoint (point): def __init __ (self, x, y): self X_1 = x self. Y_1 = y = self (x * x + y * y) ** 0.5 square circuit (point): pass a = point (3,4) b = circuit (3,4) c = racket point (3,4) print Ax # 2 Print Ai # 3 Print a.x_a # 3 Print a.y_b # 4 Print by Bx # 2 Print # 3 Print B.X_A # 3 Print B.I_B # 4 Print CX # 2 Print C # 3 Print C . X_1 # 3 Print CII # 4 print cdialist # 5.0 print cx_e # attribute er print ci_b # attribute error attributes self.x_a and self.y_b Not available for Class RectPoint but Circap is available for? Forward, why are self.x and self.y available for two sections RectPoint < <

java - Receiving/sending datagram socket data -

So I'm doing a program in Java that sends and receives data with the help of Datagram and Datagram packets. The problem is that whenever I am sending / receiving data - then different data in this program changes, I am also sending it, but only in some cases such as: < Code> Sending: 378 Receiving: 3786 Remittance: Receiving 374: 3742 Remittance: 360 Recipient: 3604 But in rare cases, such as: : Receiving 376: 376 Send: 372 Receiving: 372 Send: 344 Receiving: 344 I call it two strings Sending am, before it changed to the string: String message = integer. Toasting (Sync 1) + "+ + Integer. Tosting (Coordination 2); Then to be able to send it with a Datagram packet in a byte array: byte [] b = message.getBytes (charset forName ("UTF-8"); Datagram packet packet = new datagram packet (B, B.Length, RemoteHost, Remote Port); Try {datagramSocket.send (Packet);} hold (exception e) {e.printStackTrace ();} This is my thread that receives data:

java - What's the difference between a driver program and a unit test? -

According to many traditional principles, "driver programs" are programs that use second class (se) / module (s) / etc. Are working on However, I believe this also does what a unit test class does. Is there a technical difference between the two? My take is that a driver is used to test the unit. A wide range of available sources is agreed, for example.

linux kernel - Correct usage of sched_setaffinity with two parameters -

मैंने हाल ही में set_setaffinity विधि के लिए यह प्रोटोटाइप पाया है: extern long sched_setaffinity (pid_t) पीआईडी, कॉन्स्ट्रस्ट्रैक्ट सीपमास्क * न्यू_मास्क); मैं एक कार्य के संबंध स्थापित करने के लिए इसका उपयोग करने का प्रयास कर रहा हूं लेकिन यह काम नहीं करता। यह मेरा क्रियान्वयन है: #define _GNU_SOURCE #include & lt; linux / sched.h & gt; #include & lt; linux / cpumask.h & gt; Int set_aff (pid_t pid, int कोर) {स्थिर DECLARE_BITMAP (cpu_possible_bits, CONFIG_NR_CPUS); स्ट्रिप cpumask * const task_cpumask = to_cpumask (cpu_possible_bits); Cpumask_set_cpu (कोर, टास्क_कामामास्क); Sched_setaffinity (pid, task_cpumask); वापसी 0; } मेरे कोड को किसी भी त्रुटि के बिना संकलित किया जाता है, लेकिन जब मैं इस विधि को कॉल करने की कोशिश करता हूं, तो यह टूट जाता है। क्या किसी को पता है क्यों? क्या यह एक कर्नेल विधि के अंदर से करने का एक बेहतर तरीका है? आपको यह कोशिश करनी चाहिए: cpu_set_t cpuset; CPU_ZERO (& amp; cpuset); CPU_SET (1, और amp; cpuset); यदि (शे

javascript - Sending Google+ Hybrid server-side flow one time authorization code over HTTP Safe? -

Hello I'm switching to the hybrid server-side flow using googles using client-side flow because before customer An access_token will be sent which I had to send to the server, after which the user was being verified before logging in or creating a new account for it, but since I can not work with KOS, Can not send safely D. I looked at different ways and it seems that the hybrid server-side flow I want to do what is in any way, only one question, is it safe to send authorization once Code is on http using AJAX? I think it is only usable once and the server uses it which will be more than https using curls, now it is no longer worth any will get. AccessToton will be on the server only and will never be on the client which seems to be more secure than the old way to use the client side flow. <div class = "post-small answer is: <strong> not at all </ strong> </ p> <p> Long answer depends on the level of risk and you Want to accept the risk,

c# - HttpPostedFileBase always null when using a custom Html Helper -

I have created an HTML Assistant for the file (for file and file): Public Static IHtmlString File (This HtmlHelper HTML, String Text, String Name, IDictionary & lt; String, Object & gt; Attributes) {// Code Snap TagBolder input = New Tag Creator ("Input"); Input. Merge author ("type", "file"); Input.MergeAttribute ("name", name, true); Input.GenerateId (name); Tmedell, expression (tmp), url string text), text, tap); } Everything is not fine unless I have the following model: public class AdvertViewNewModel: ViewModel {public AdvertModel Advert {get; Set; } Public Class AdModel {Public HTTP Postfilebase Image {Receive; Set; } The name of the public string {get; Set; }}} The problem is that in this case, ASP provides the .NET input as follows: And my HTML Helper provides it in this form: UPDATE Code for my file: public static IHtml string file change metadata. Display name Metadata Property n

How to detect if user select cancel InputBox VBA Excel -

Image
इस सवाल का पहले से ही एक उत्तर है: < / p> 4 जवाब मेरे पास इनपुट बॉक्स है उपयोगकर्ता एक तिथि दर्ज करने के लिए मैं प्रोग्राम को रोकने के लिए कैसे करूं, अगर उपयोगकर्ता क्लिक करें ठीक से प्रेस के बजाय इनपुट डायलॉग को बंद या बंद करें। कुछ ऐसा अगर str = vbCancel तो उप वर्तमान में, उपयोगकर्ता ठीक या रद्द कर सकता है लेकिन यह प्रोग्राम अभी भी चल रहा है str = inputbox (शीघ्र: = "तिथि दर्ज करें एमएम / डीडी / वाई वाई वाई", _ शीर्षक: = "दिनांक पुष्टि ", डिफ़ॉल्ट: = तिथि) यदि उपयोगकर्ता क्लिक को रद्द करता है, तो शून्य-लंबाई वाली स्ट्रिंग लौटा दी जाती है। आप इसे खाली स्ट्रिंग में प्रवेश करने से अलग नहीं कर सकते। आप अपना खुद का कस्टम इनपूटबॉक्स वर्ग बना सकते हैं ... आपका उदाहरण निजी उप परीक्षण () मंद स्ट्रिंग स्ट्रिंग स्ट्र = इनपुट बॉक्स ("दिनांक प्रविष्ट करें एमएम / डीडी / YYY "," तिथि पुष्टिकरण ", अब) यदि आरआर = vbNullString तब MsgBox (" उपयोगकर्ता रद्द कर दिया! ") यदि अंत उप स्ट्रिंग या वे रद्द करें क्लिक क

asp.net - WCF Service works in VS debug mode, not when published to IIS -

Image
I have a site that includes the WCF service (AJAX enabled). Everything works when Visual Studio launches in debug mode when I publish the site on the IIS server, the WCF service is not available. I get a 404 error in trying to load the javascript file created by the web service. Back to my web service file, the beginning of my code, SqlAjax.cs: using the system; Using System.Collections.Generic; Using System.Linq; Use the system. time. Timeliness; Using System.ServiceModel; Using System.ServiceModel.Activation; Using System.ServiceModel.Web; Using System.Text; Using System.Data.SqlClient; Using System.configuration; Using System.Web.Script.Serialization; [ServiceContract (namespace = "")] [AspNetCompatibilityRequirements (RequirementsMode = AspNetCompatibilityRequirementsMode.Allowed)] Public class SqlAjax { My Web Configured: & lt;? Xml version = "1.0"? & Gt; & Lt ;! - For more information on how to configure your ASP.NET application, ple

c# - Call function inside another process which is not written in .NET -

I want to call the function inside another process and send 1 argument through createremotethread. Now, I can do this by sending inline ASM, but I do not know enough assembly to do this way. Besides, I have no access to the remote process source code. I was thinking about using: [Layout layout (layoutcind.Security, Pack = 1)] Public Structure Remothed Papers [[Marshal AS (Unmanaged Type I 4)] Public Entry Paramma 1; [Marshall AS (UnmanagedType.I4)] Public Entry Paramma 2; } But what I think, the remote process should know how to handle it. Is there an easy way to send 1 argument in a remote process that does not include any assembly? EDIT: In the same way I am trying to solve it at this time but I get a memory exception and I do not really understand what I am doing wrong. We have a PTR function in 0x64D480 in the remote process, it is assembly taken from the IDA supporter. // function passed the PTR IS 0x64D480 .text: 0064D480 sub_64D480 proc; Code XREF: sub_4

actionscript 3 - AIR AS3 Android Sound plays once but never again after fade -

I have an Android Android app that has multiple pages, each page has its own music and sound effects. Is executed from and the effect part timeline and part code is executed. All this works well on AIR simulator but as soon as I run it on a tablet with Android 4.4.2, this is the first page, but once the first page music and sound effects channels Once exited (via the volume) you do not hear a voice from the application again Android 4.2.2 though okay. I have detected the volume and the value is fine, I also separated the soundmaker volume and still do not have the sound. The code is just basic sound and soundtransform code, which is exactly the same on Adobe Live Docs. I have also left the first page and to see if the sound is working properly and they are fine, went straight on the other side. Anyone got any suggestions? The issue was: omni-4.4.2-20140128 printed version: omni-4.4.2-20140318 and All in the world is all right again!

Finding an object(s) within an array with specific letter using Ruby -

So I am trying to make a method that takes an array and a letter as a logic and A new array is included in that letter. I have this too far: DF finder (array, cheese_f_fund) find = array.keep_if {| X | X.include? (Thing_to_find) == true} Return search terminated When I run programs in Ruby, this is saying. Include? There is no valid block method. Any suggestions? You can type more simple - def finder ( Array, cheese_t_wind) array Selection {| Words | Word.include? Thing_to_find} From each attribution word to that array in each iteration block Will pass. Now word.include? (Thing_to_find) will be evaluated - if it returns true , then the word will be selected and the temporary array, otherwise Not once, all the iterations will be awarded with the array , then returning that array to all the selected elements of each block execution, which were being stored in the temporary array will be given.

Reading data from json and saving it in android app using ormlite -

I'm new to working with the Android database. My question is, I have a Jason data that I call it my Android application I want to parse in Especially I want to take that data and save it to my app database which is ORMLITE. Is anyone an example of this, please share with me any kind of video tutorial or anything useful here Thanks in advance I will use the GSON library which is useful for handling JSN < P> Then you have to create a Java class with all the data in JSN, which you want to parse. If your JSON looks like this: {"id": 4854 "name": "Charlie" "age": 35 "with eyes": "blue "} Then it is sensitized to match the data that you have. SerialJobel {PrivateId ID; to apply public class data; The name of the private string; Private Interval Age; Private string-eyed; } Public class item content serializable {} You can now create a Java object from JSON: GSON gsn = new gsan (); Data data = gso

sql - Update query based on multiple criteria -

In Access 2007, I create an update query in a table to update the area_field based on the data of city_field Seeing. I have only data in city_field, only 13 cities and 5 regions - such as Middle, West, East, North and South, increase the table, I do not overwrite the previous field entries (I think if not tap then forward with the update Grow). This works fine when I have only one entry in the update box: update tblCustomers SET tblCustomers.region = "Central" WHERE (((TBL customers.office) = " LA "or (tblCustomers .office) =" SF "or (TBC customers .office) =" SD ")); How do I add the rest of this statement and related cities? Thank you. Ideally, you should create an additional table that stores only the city and region provided by you Based on the things done, this table will currently only be 13 lines (one per office). Then, you can do something like this: Update tblCustomers SET tblCustomers.region = (NEW_TABLE from

c# - Populate array with numbers from database -

I am trying to extract the best way to populate an array with numerical values ​​extracted from the database. This is such a function that I have so far installed: protected int [] GetBoxes () {int [] box; String Query = "UIDbox = Add Product Length" Baird_Ground_Boxes_Products "to the product ID; (using SqlConnection cn = New SqlConnection (AbleConnectionStr)) {SqlCommand cmd = new SqlCommand (query, cn); Cmd.CommandType = CommandType.Text; cn.Open (); (IDTA Reader Reader = CMD.xTextReader) {if (reader.Read ()) {if (reader ["length"]. ToString ()! = "") { // Generate array with length values}}}} Return boxes;} There is never a set of values ​​that can be returned (3 may be, Can be 2 I am confused about how to populate the array, as if I am making it very difficult or something, any suggestions will be useful! At first sight, you may have multiple rows from your query. / P> Select a different length than the product Baird_Ground_Bo

maven - Artifactory not downloading some jars or POMS correctly, strange POM parsing error -

I have locally installed an artificial, which works great, and then we set up a set Tried to do I did my best to configure it locally. However, we have problems with Skinetric looking at cutting-edge things in a ReFo Cash, it says that it has downloaded a jar but the jar is actually corrupt. Apart from this, it does not put POM in the camo. Looking at the log, I get an error like this: [ERROR] (OAR.HTPRPS: 29) - Failed to download '' Jenseter: ''. Received status code 200 and caught exception: Failed to read POM for 'org / apache / maven / plugins / maven-compiler-plugin / 2.3.2 / maven-compiler-plugin-2.3.2.pom': expected original element ' Project 'but' html '(Status: START_TAG saw ... TD HTML 4.01 // n "" "& gt; \ n \ n ... @ 3: 7). I have POM continuity Trying to hold on to what I saw, checked based on it, but it does not work. < p> This is definitely a proxy miss configuration Here are two problems: Th

Android Async loading Images in Listview - images are blinking -

I am struggling to load asynchronous images in the ListView, because when they are loaded, some of them blinking (they are replaced by another loaded image again) and some of them show up in the wrong things. Go. Class to download images: class DownloadImageTask extended asyncTask; String, zero, bitmap & gt; {ImageView bmImage; Public DownloadImageTask (ImageView bmImage) {this.bmImage = bmImage; } Protected bitmap doInBackground (string ... url) {string urldisplay = urls [0]; Bitmap mIcon11 = faucet; {InputStream in = new java.net.URL (urldisplay) .openstream (); MIcon11 = BitmapfitterNetExecutestream (in); } Hold (exception e) {} return mIcon11; } Zero (bitmap result) on secure expression {bmImage.setImageBitmap (results); }} Call for each item, when I am assigning data to ListView: ImageView image = (ImageView) view.findViewById (R .id imageView); TextView Title = (TextView) view.findViewById (R.id.txtTitle); New DownloadImageTask (image). Execute (data.image); Title.

Tries in batch file not working on password entry -

To give me a password, you need 3 files and if not shut down or 60 seconds later in any way First unsuccessful attempt please is a batch file @echo off color 02 tries set / one %% == 4 set / p% password% == Mike .1587 taskkill / f / im explorer.exe closed income tax 60000 goto main-launch -s: main-launch cls if %% == 0 goto death override-off title time% username by% echo echo password Nand tries to run out ... Echo tries you try%% left / p password = if%% password% == Mike.1587 GOTO-if not correct then / p password = Mike 1587 Goto no-true: Trys% no-correct% -1 Gooch wrong password Try again ... Echo you tried%% Left Echo Press any key to try again . . Pathing Localhost -C2P 3500 & gt; Nool Goto Main-Launch: If Echo Right! Close start explorer.exe - A pathing localhost - A2P 1,000 & gt; Exit Null Exit Death Override-Off shutdown.exe / S / T00 After "div class =" text "itemprop =" text "> This is a lot of things you should do as your b

javascript - Removing a table row from a db on a button click -

मेरे पास एक टेबल है: & lt; table class = "table" id = " mytable "& gt; & LT; टीआर & gt; & Lt; td & gt; कॉलम 1 & lt; / td & gt; & Lt; td & gt; कॉलम 2 & lt; / td & gt; & lt; td & gt; & lt; बटन प्रकार = "सबमिट करें" वर्ग = "बीटीएन हटायेंबटन" & gt; निकालें & lt; / button & gt; & lt; / td & gt; & Lt; / टीआर & gt; & Lt; / तालिका & gt; 'removebutton' क्लिक पर मैं एक दी गई तालिका पंक्ति (वे गतिशील रूप से बाद में बनाए जा रहे हैं) को हटाना चाहते हैं। मैं एजेक्स के साथ इस विशेष पंक्ति से डेटा भेजना चाहता हूं ताकि मैं इसे किसी डाटाबेस से निकाल सकूं। मैं वेबसाइट से पंक्ति निष्कासन को लागू करने में कामयाब रहा, लेकिन मैं डेटाबेस से इसे हटाने के लिए अनुरोध से उचित अनुरोध भेजने और डेटा को पुनः प्राप्त करने के साथ झगड़ा कर रहा हूं। मेरा जावास्क्रिप्ट कोड: $ (document) .ready (function () {$ ('# mytable')। ('click', '.removebutton&

ios - Best way to persist an array of images? -

I'm looking for a way to continue images for an array (or similar) after the app closes Can be reached by a relaunched - it is also necessary to sort images by date. Currently I am able to store images in the NSD document directory of the app with the following code: < Pre> - (NSString *) currentDateandTime {NSDate * today = [NSDate date]; NSDateFormatter * dateFormat = [[NSDateFormatter alloc] init]; [DateFormat setDateFormat: @ "MMddyyyy_HHmmss"]; NSString * dateString = [dateFormat stringFromDate: today]; Return date string; } - (zero) Save image document {NSDTa * imageData = UIIMPNGR presentation (image); NSArray * path = NSSearchPathForDirectoriesInDomains (NSDocumentDirectory, NSUserDomainMask, yes); NSString * document directory = [path item overindexx: 0]; NSString * date = [auto current date time]; NSString * imagePath = [document directory stringbapping path comparison: [NSString stringWithFormat: @ "% @ _ image.png", date]]; } This mean

What's the correct MSDTC configuation for a clustered SQL server for BizTalk WCF SQL adapter -

I have a problem connecting to a cluster SQL Server instance using the wcf-sql adapter. SQL Cluster Infrastructure is: We have 2 servers, SVR1 and SVR2, each has a named SQL instance INST1 installed and these are 2 server clusters. In SRV1, a cluster MSDTC installed and assigned a NetBIOS name as DTCCLuster 1. SRV1 / SRV2 and DTCCLUSTER1 have their own IP address. When I try to connect to this SQL Server, I get an error from time to time and finally it shows that this is due to the MSDTC connection problem. DTCPing test failed for both SBV1 and BZTec Server and Bizzatake for SRV1. The SRV1 Hosting DTCCLuster 1 is configured to allow both inbound and outbound, for security reasons, we require "No Auth" "Mutual Auth Requirement" in MSDTC both SRV1 and BizTalk Server In the side The server-side firewall was configured to allow DCE RPC inbound and outbound; We also disabled firewall in BizLawk server side. There is no blocked port in the network side too.

javascript - Google Analytics for File Downloads not firing, placement issues? -

I'm not sure whether the placement is right or not ... and this should help me for this part .. I have a web application that will create a list of dynamically available resources, and the resolution of the file information variable works perfectly ... I am getting the anchor tag such as code It's fit with: ... Google Analytics has been followed with my standard code which is: & lt; Script & gt; Var _gaq = _gaq || []; _gaq.push (['_ setAccount', 'UA-12345678-1']); _gaq.push (['_ trackPageview']); (Function () {var ga = document.createElement ('script'); ga.type = 'text / javascript'; ga.async = true; ga.src = ('https:' == document.location.protocol? 'Http: //ssl': 'http: // www') + '.google-analytics.com / ga.js'; var s = document.getElementsByTagName ('script') [0]; s.parentNode.insertBefore (GA, S);}) (); & Lt; / Script & gt; Unfortunately, regardless of the numbe

Full Fledged Multiple Inheritance in Java 8 -

It seems that Java 8 is fully down as a simple framework, which is using fixed and default methods on the interface. It is always possible to misuse and write its stupid code, but these new features are quite a lot Easy, even if the designers of the language had to stay away from it. Is it simple implementation of multiple heritage, use of interface as base classes, or language misuse? Have the Java designers gone far enough to allow this? Package pseudo-military exercises; Import java.util.HashMap; Intangible class instenams & lt; T, T2 & gt; {Hashmap and Object, Object & gt; Example = New Hashmop & lt; Object, object & gt; (); Create Essence T2 Mom's Instance (); T2 getMembersInstance (T this object) {if (! Instances.containsKey (this object)) instances.put (thisObject, createMembersInstance ()); Return (T2) example .get (this object); }} Interface A {class member {int x; // just an example of an inheritable member) Instancemap & lt; A, A. Members

javascript - Equation for image mouseover pan? -

मेरे पास एक साधारण jq स्क्रिप्ट है: एक निर्धारित चौड़ाई / ऊंचाई कंटेनर एक परिदृश्य आईएमजी (कंटेनर से बड़ा या छोटा हो सकता है) जब छवि पर कोई प्रयोक्ता मसौदा होता है, तो यह अंत तक पहुंचने तक पैन (कोई क्लिक / ड्रैग) नहीं करता आईएमजी को बायीं ओर ले जाने के लिए समीकरण यह है: -1 (सापेक्ष माउस-स्थिति) * (आईएमजी चौड़ाई) / (कंटेनर की चौड़ाई) यह ठीक काम करता है, लेकिन इसे छोड़ देता है अंतरिक्ष एक माउस img के अंत तक पहुँच जाता है। $ ("आकृति img")। mousemove (फ़ंक्शन (e) {var a = $ (this) .clostest ("आंकड़ा"), बी = $ (यह)। वाइड (), सी = a.width (), डी = (e.clientX - a.offset ()। बाएं); $ (यह) .css {बाएं: -1 * (d * b / c)}, 100);}); क्या कोई मदद कर सकता है? मैं चाहता हूं कि आईएमजी को कंटेनर के दाहिनी ओर पूरी तरह से गठबंधन किया जाए, जब माउस अंत तक पहुंच जाएगा। सही सूत्र है: -1 * (d / c) * (b - c) या, अधिक स्पष्ट रूप से: -1 * (माउसएक्स / आकृतिविधि) * (imgWidth - figureWidth) (माउसएक्स / आकृतिविधि) उस आंकड़े की चौड़ाई के प्रतिशत को दर्शाता है ज

javascript - will also hide if the screen is xs -

I got confused about how corrupt works do, for example, say I have the following div: - & lt; B class = "hidden-sm" & gt; Your cart: & lt; / B & gt; Then this div will hide the screen is small, but also applies that the screen is extra small -xs The second question is That I have this div: - & lt; B class = "visible-sm" & gt; Cart: & lt; / B & gt; This means that when the screen is small, the device will be displayed, but when the screen is big, will it be visible? Anyone can advertise, what is this rule governing? Yes it will. Just in words, the rules are: If you call hidden - * , then it will only be hidden on that device width If you call visible - * , then it will only appear at the width of that device. If you want to apply it to multiple devices (Xs, SM, MD, LG) if you want to apply it to more than one.

Searching for two arguments Ruby on Rails -

I am working on search with two text areas. It searches two things (now location and details) and only displays entries (listings) that match them, I also want to search for other text fields for the title, so it should see the details and title. How will this work? What is it now listing.rb def self.locsearch (search_location, search_description) refund back to search_location.present until scanned? || Search_description.present? Where (['Like place and details like?', '% # {Search_location}% ","% # {search_description}% "] end home.html.erb & lt;% = form_tag findjobs_path ,: Controller = & gt; 'listing' ,: Action => 'Public Search', Method :: do% & gt; & lt; % = Text_field_tag: location, parameter [: location]%> gt; title = text_field_tag: descripiton, params [: descripiton]%> & lt;% = submit_tag "search", name: zero% & gt; listing_controller.rb def index @ listing = @ listing

javascript - Add jQuery into Adobe Brackets HTML Editor -

I recently downloaded Adobe Brackets on my computer, but soon I realized that I was not able to use jQuery in the same way. Earlier, in the program, Jacques is not working at all and is important for the method of the program. Website Developer in the browser to debug such issues You can use the tool. For example, in Chrome: Open the menu and click more tools & gt; Select. Developer Tools Select the Console tab Is there any errors listed in Red? If so, what do they say? If the error is linked to a specific line of code, you can click to go to that code, often by looking at the code and the error message simultaneously explains what is wrong. (And if not, you can post information about those two pieces in your question so that others can assist you). Select the Network tab, then reload your page to get the latest information Click on the filter icon (it looks like a funnel) and type "jquery" Is there a network request from the list given in red? If so

javascript - appendTo() & prependTo() not working in IE8 -

I am running a test with a basic slider that I'm padding some slider content Load the sliders using the Events functions. I have a problem with IE8, the functions are not working only! I've read some issues with IE8 and appendTo () / prepaid (), however, these conditions are not like me. jQuery (function ($) {$ (document) .ready (function () {var homeSlider = $ ('# js -slider '); if (homeSlider.length) {var slider = homeSlider.royalSlider ({imageScaleMode:' filling ', controlNavigation:' tab ', thumbs: {fitInViewport: false, autoCenter: false}, arrowsNavAutoHide: false, slidesSpacing: 0: Loop: true, transitionSpeed: 250, navigateByClick: true, sliderTouch: true, keyboardNavEnabled: true, addActiveClass: True, Autoplay: {Enabled: true, stopOur: wrong, delay: 6000}, block: { moveOffset: 200, speed: 600, speed effect: 'down', delay: 600}}). data ("RoyalSlider"); slider.ev.on ('rsAfterContentSet', function (e, slideObje

sql server 2008 - SQL - Empty or Null fields -

I am trying to check for zero values ​​or empty columns I My From the place where my column is tap or myColumn = ''; The thing is, I want to include some table (myTable1, myTable2, myTable3) in the same question and to avoid the need to specify a column name (myColumn) So that the query is normal, return empty or zero column names in some tables. Thanks in advance. December @col VARCHAR (255), @ table VARAR (255), @ CMD VAAR (Max) Declar Plus Cooor is selected by TN Nom, c.name by sys.tables t Joyyn Sis. Column C on T object_ID = c. Object_ID WHERE t.Name IN ('Table-1', 'Table-2') --WHERE t.Name IN (Provide your table list) Openinfo FETCH on the next meeting @ gettable, @col WHILE @@ FETCH_STATUS = 0 Start @ cmd = 'if EXISTS (SELECT top 1 * FROM' + @table + 'WHERE (' + + col + 'IS tap or' + @col + '=' '' ')) BEGIN print' 'tabname = '' '+'table +' '' + '' colu

mysql - SQL Syntax Error when Loading Database File (Possible Version Error?) -

I have burnt it on for about five hours, and have interrogated many coworkers, so I think that to ask The time may be for help. I have a modest size (~ 1GB). The SQL Dump file that I am trying to load into the database. As a result, it is difficult to check in most editors. This file was obviously generated by mysql, so I'm really surprised to find a syntax error. At the top of the file ... MySQL dump 10.13 Distrib 5.5.31, Debian-Linux-GNU (x86_64) MySQL file for me Tried to load with two different versions of the, I had a file with version (5.5.38) and version (5.5.31). The specific issue is clearly on the following line ... / *! Make 50003 / / *! 50017 DEFINER = `Route` @ 'Localhost` * / / *! 50003 trigger `` `crawler_project` for each line before being removed from the debugging session 'talk' * / ;; And typical error mentions that error 1064 (42000) on error 884: there is an error in your SQL syntax; To access the pass * * / 'on line 1, ch