Posts

Showing posts from May, 2012

html - Width property malfunctions on mobile browser -

I'm doing some hard work with cross-platform design so I made a quick prototype, but I noticed that the second area Who says that "music player" does not stretch to fit the appropriate width like the title, which is called "music, about, contact". All related source code is on, but #header is an object that fits the screen correctly, and #content is it Here are the definitions which are bad: #header, #content {margin: 10% 15% 5% 15%; #content {margin-top: 0; Background color: # 000000; Background-image: url ('/ engine / img / trans-page'); Any thoughts why not behaving like #content #header ?

Pentaho 5.0.1-stable Marketplace don't show any item -

I have installed Penthouse 5.0.1 on my server and accessing it from client through local IP address port 8080 [info] WD: When I opened the market, show an item and the javascript console log show error is not in the form of Believes. Feedback: Zero unwanted type error: Property 'map' can not be read as property of null marketplace.js: 113 impl.processPluginListResponse marketplace.js: 113 fire jquery.js: 1047 self. With fire jquery.js: 1165 done jquery.js: 7400 callback jquery js: 8181 When I press the Fresh button, it still has the same error. The Bisarar works well in my local host ... Please, Best regards, Is the server behind the firewall? If you are using a firewall, then the market is not able to work in Pentaho 5.0.1. It has been fixed at 5.2 (or 5.1, do not remember).

c# - PUSH not showing when App is open -

When the application stops, my application receives push notifications, but when the app is running, I can not find anything . This is the same code I have used in any previous application, out of any problem, it was on Windows 8 and the new apps are running on Windows Phone 8.1 devices. I used it when creating the original app. If you have an app open, I have a line that says, to get the information, add it. If 8.1 update has done something for push notifications, it would be nice to know. Anything else will be appreciated. HTTP Notification Channel Push Channel; String channel name = "pushchannel"; Push Channel = HttpNotificationChannel.Find (channelName); // push notification if (push channel == empty) {pushchannel = new HTTP notification channel (channel name); Before attempting to open a channel, register for all events before registering. Pushchannel.ChannelUriUpdated + = New Event Handler & lt; Notification Channel URIAntAgds & gt; (Pushchannel_Hanne

split - Splitting a toString from a SuperClass -

मेरे पास स्ट्रिंग के लिए एक क्लास है: @Override सार्वजनिक स्ट्रिंग toString () {StringBuilder animalString = नया स्ट्रिंगबिल्डर (); वापसी पशु स्ट्रिंग.एपेंड ("पशु [नस्ल =")। अनुलग्नक (नस्ल) .एपेंड (", किलो में वजन =")। अनुलग्नक (वजन) .append (")")। ToString (); } और उसके बाद मैं उपरोक्त स्ट्रिंग को कॉल करने वाला उपवर्ग है जिसे मैं तो विभाजित करने का प्रयास करता हूं ताकि मैं स्ट्रिंग के उप-वर्गों के लिए इसमें जानकारी जोड़ सकूं: @ ओवरराइड सार्वजनिक स्ट्रिंग टूस्ट्रिंग () {स्ट्रिंग पशु = (सुपर। टॉस्टिंग ()); स्ट्रिंग [] tempString = animal.split ("पशु ["]; स्ट्रिंग पशु स्ट्रिंग = टेम्पटस्ट्रिंग [1]; स्ट्रिंगबिलल्डर पशु एस बी = नया स्ट्रिंगबिल्डर (); वापसी पशु एसबी.एपेंड ("बिल्ली [शिकार =")। अनुलग्नक (शिकार)। एपेंड (पशु स्ट्रिंग) .स्टस्ट्रिंग (); } हालांकि इस बिंदु पर यह एक फिट को पिच करता है मैं शायद कुछ गलत कर रहा हूं, लेकिन मेरे जीवन के लिए मुझे यकीन नहीं है कि यह क्या है। मैं संभवतया इसे उलझी कर रहा हूं लेकिन कोई सुझाव स

(C++) Doubly Linked List Template - Access Problems -

I am very new to C ++ templates. I am currently working on a project where I am using a template Doubles need to implement the linked list. Currently what I still have: template & lt; Category item type & gt; Class sort list {public: sorted list (); ~ SortedList (); Enter the bowl (to type the item type); Remove boolean (to type itemtype); Zero print (); Private: Sorted list (constant sorted & amp; copyFrom); Sort list & amp; Operator = (Custed Sorted & Assignment); Structure node {node (item type type, node * p = null, node * n = null) {data = item; Prev = p; Next = n; } Item type data; Node * prev, * next; }; Node * list; }; Template & lt; Category item type & gt; Sorted list & amp; Lt; Item type & gt; :: Sort list () {list == faucet; } Template & lt; Class item type & gt; Sort list & lt; Item type & gt; :: ~ sort list () {node * curr = list; While (curr! = NULL) {node * tempNext = curr- & gt; next; Turn off; Current = te

java - Android - Fragment findViewById() always null? -

Yes, I know there are so many similar questions to this one, but unlike others, my onCreateView () the footage inflates for the fragment. When I do not use findViewById () , everything works unnecessarily and works as expected of my app (except for the functionality I want to get in findViewById () . here is my code: @Override public view onCreateView (LayoutInflater p_inflater, ViewGroup p_container, bundled p_prev_state) {return p_inflater.inflate (R.layout.fragment_main, p_container, wrong);} Whenever I want to use a ListView within my layout, I do this: private ListView getListView () {return (ListView). getView () findViewById (R.id.main_events);} But it is always null Why Me fragment_main.xml appears so:.? <> & lt East; RelativeLayout xmlns: android = "http://schemas.android.com/apk/res/ android "xmlns: device =" Http://schemaskandroidkcom/tools "Android: Layout_width =" match_parent "Android: Layout_height ="

Rebuild a jenkins job programmatically -

We have a three-layer multi-configuration, which fails for some time because some sub-tasks on some slave jobs fail It happens that we are looking for rebuilding. From the beginning, the whole work in all the slaves selected in the job of the parents, if any sub jobs fail then I have rebuilt the plug-in, but also a programmatic way of solving the problem. Seeing me Gesture will help Try the Jenkins Remote Access API It can do this

visual c++ - CStatic DrawItem method getting called too freequently after creating a child window -

I have an image viewer application window using the Layout Spatterers. I use a custom image control inside a splitter Painting bitmap on dialog class CPictureCtrl: public CStatic {public:. . Protected: Virtual Zero PreSubclassWindow (); // Control draws the Virtual Zero DryAidium (LPDRIT Mascot LPDRIT Streets); Virtual Bull OnRub Bank (CDC * PDC); Private: // Internal Image Stream Buffer ISSTIM * M_PSTREAM; // Control flag if a photo is loaded BOOL m_bIsPicLoaded; // GDI Plus Token ULONG_PTR m_gdiplusToken; }; Inside the Drytime () method, I take GDI + graphics from LDPITMstrat and paint the image. Everything works fine, but when I open a hair window for dialogue where I have this control, the image is painted on my popup window. Is there any way that I can bring a popup window in front? may be the complete source of control found on

What is the difference between openjdk-7-jre-headless VS openjdk-7-jre? -

openjdk-7-jre-headless और openjdk-7 के बीच क्या अंतर है -जरे । जब मैं टाइप करता हूँ java टर्मिनल में उबुंटू में यह सुझाव देता है कि openjdk-7-jre-headless नहीं Openjdk-7-jre दोनों के बीच का अंतर जल्दी से समझा जा सकता है निम्न जब आप ग्राफिकल यूजर इंटरफेस में कुछ भी आकर्षित करने की आवश्यकता नहीं है तो openjdk-7-jre-headless पैकेज का उपयोग किया जाता है। उदाहरण के लिए एक पृष्ठभूमि सेवा या टर्मिनल अनुप्रयोग। यह आमतौर पर सर्वर पर उपयोग किया जाता है। openjdk-7-jre पैकेज में openjdk-7-jre-headless पैकेज शामिल है क्योंकि इसमें अधिकांश जावा विशेषताएं यह डेस्कटॉप पर आमतौर पर पाया जाता है। किसी भी सर्वर पर स्थापित करने के लिए openjdk-7-jre पैकेज की अनुशंसा नहीं की जाती है क्योंकि यह अतिरिक्त सॉफ़्टवेयर स्थापित करता है जो आमतौर पर किसी पर उपयोग नहीं किया जाता है सर्वर।

visual c++ - saving data into a file c++ -

I have a hard time doing this, it's like a survey, people have 5 questions and answers If you have to answer (data) in a file.txt file, then the program has to read the data. Then, on saying that the user has responded to A. for the first question that the number of people in the survey has been answered. (20/100) This is the same with the other 5 questions but I do not like It does not know how the program counts how many people take surveys and how they store answers in a file. help please! int Question = 1; Four answers; For {int i = 0; i & lt; question; i ++} {cout & lt; & Lt; "\ T1 - What kind of phone do you prefer?" & Lt; & Lt; Endl; Cout & lt; & Lt; "\ N"; Cout & lt; & Lt; "Ta Ta) iPhone B) Android C) Windows D) Other" & lt; & Lt; Endl; Cout & lt; & Lt; "\ N"; Cout & lt; & Lt; "\ T Response:"; Cin & gt; & Gt; To answer; Cout & lt; & Lt; "

sql - Unexpected output when using a CASE statement -

When I stumbled on this scenario, I was trying to do some random things using the case statement. The first statement throws an error, but the other thing works fine how can someone help me to understand the execution of the statement. Select when 1 = 1 then 'Case 1' when 2 = 2 then select 2 or 10 when 1 = 1 then 1 when 2 = 2 then 'Case 2' or 10 A case statement can not be withdrawn More than one single type when int and paranoid If there is a mixture of type, then type it has a high priority and therefore your case statement will have the option chosen for the return type. See for a list of data types preference. If you try to return the second value ( 'case 2' ) then your second case statement will fail; For example: Select when 1 = 0 then 1 when 2 = 2 then 'Case 2' and 10'End

python - Pyodbc error: 08004 - Server rejected the connection -

I'm new to Python and SolidDB. I would like to get help about the error that I'm getting though credentials correct (I think), even then I have been rejected by the server here is the stack trace. [/ Root @ DW700 standalone] #Python Python 2.7.8 (default, 28 October 2014, 03:45:51) [GCC 3.4.6 20060404 (Red Hat 3.4.6-3) ] For more information on linux2, type "help", "copyright", "credit" or "license". & Gt; & Gt; & Gt; Import pyodbc & gt; & Gt; & Gt; Tracebacks (most recent call final): File "& lt; stdin & gt;", line 1, & lt; Module & gt; Cnxn = pyodbc.connect ('DRIVER = SolidDB; server = TCP1964; database = DBA; PWD = password' Pyodbc.Error: ('08004', '[08004] [unixODBC] server connection (14505) (SQLDriverConnect ) Your server parameter does not appear correctly Try something instead of SERVER = hostname, PORT = 1964 or hostname: 1964.

exception - java.lang.ClassCastException: android.view.ViewGroup$LayoutParams cannot be cast to android.widget.LinearLayout$LayoutParams android 4.1.2 -

I only have an exception on some devices on Android 4.1.2. So, I want to know what this problem might be. Only SDK, here is the stack trace exception SDK - a single line - my code, so no lines have been missed: java.lang.ClassCastException: android.view.ViewGroup $ LayoutParams android.widget.LinearLayout.onMeasure (LinearLayout.java:576) in android.widget.LinearLayout $ LayoutParams on android.view.View.measure (at android.widget.LinearLayout.measureHorizontal (LinearLayout.java:996) molded can not be View.java:15563) android.widget.RelativeLayout.measureChildHorizontal (RelativeLayout.java:617) android.widget.RelativeLayout.onMeasure (RelativeLayout.java:399) on android.view.View.measure (View .java: 15563) android.view.ViewGroup.measureChildWithMargins (ViewGroup.java:11111) android.widget.FrameLayout.on On Measure (FrameLayout.java:310) android.view.View.measure (.ViewGroup.measureChildWithMargins (ViewGroup.javaSTART_ITEM11) on View.java:15563) on android.view android.widge

Office 365 REST API to create and sendmail using CURL gets HTTPCode 400 Bad Request -

कर्ल -X पोस्ट-डी "{\" @ odata.type \ ": \" # Microsoft.OutlookServices । \ ", \" विषय \ ": \" क्या आपने यह नया मेल रिलीज एपीआई देखा है \ ", \" महत्व, \ "बॉडी \": {\ "कंटेंट टाइप \": \ "टेक्स्ट \", \ "सामग्री \ ": \" यह भयानक दिखता है \ "}, \" toRecipients \ ": [\" नाम \ ": \" उम्मीद की बढ़ी \ ", \" पता \ ": \" hope@contoso.com \ "}]} "Https://outlook.office365.com/api/v1.0/me/sendmail --header" सामग्री-प्रकार: एप्लिकेशन / जेसन "--अनसेक्युरे - वर्बोज - यूज़र" user@domain.com: पासवर्ड " मुझे निम्न त्रुटि मिलती है: * DNS कैश में होस्टनाम नहीं मिला था * 132.245.160.44 की कोशिश कर रहा है ... * Outlook से संपर्क करें। Office365.com (132.245.160.44) पोर्ट 443 (# 0) * सफलतापूर्वक प्रमाणपत्र सत्यापित करें स्थान: * CAfile: कोई भी CApath: / etc / ssl / certs * SSLv3, टीएलएस हैंडशेक, क्लाइंट हैलो (1): * SSLv3, टीएल

Copy data from EWS Extended property to Outlook item UserProperty -

In my plugin I use ExtendedProperty to save some metadata on it. I need to use EWS to determine the value of extended properties using EWS and I only have permission to connect with Outlook, so I think I can use MailItem's UserPropery, so I used to get old data Must have to migrate in some way. Fears coming to my mind inquire about all those who have specific extended assets that use EWS and copies the values ​​in MailItem.UserProperty. Does anyone know how to ask EWS, or maybe you have another idea for how to migrate this data? Using expanded properties with EWS creates custom MAPI properties on Outlook items, which can be accessed by the User Properties Collection Or through the Outlook Object Model. You do not need to migrate anything.

jsp - How to set values in drop down using JSTL from db -

I have already populated the ArrayList () data in the drop down using JSTL. Nominated '(a deposit db value) Trying to set price with the exception is your suggestion please thank you in advance ... !! Servlet Attribute request.setAttribute ("RESULT2", lDesignation); JSTL Tag & lt; Jsp: useBean id = "userprofile" class = "com.package.dao.UserProfile" scope = "request" /> & Lt; Jsp: setProperty name = "userprofile" property = "*" /> & Lt; Strong & gt; Designation & lt; / Strong>: & lt; Select ID = "Named" name = "Name" & gt; & Lt; Option value = "desigType" & gt; Choose the designation & lt; / Option & gt; & Lt; C: forEach var = "desig" item = "$ {RESULT2}" & gt; & Lt; Option value = "$ {desig.key}" $ {desig.key == $ {userprofile.designate? 'Selected =' selected '': &

javascript - calculating dynamic height of webpages for iframe -

यह index.html कोड है .. & lt; body & gt; & lt; iframe नाम = "नमूना" src = "first.html" width = "100%" height = "100%" फ़्रेमबॉर्मा = "0" id = "नमूना" /> gt; & lt; / body & gt; पहला कोड है ... & lt; body & gt; & Lt; div शैली = "चौड़ाई: 100%; ऊंचाई: 1 9 00 पीएक्स; पृष्ठभूमि: पीला;" & gt; & lt; / div & gt; & Lt; br & gt; & Lt; a href = "second.html" & gt; दूसरा & lt; / a & gt; & Lt; / body & gt; second.html कोड & lt; body & gt; & lt; div शैली = "चौड़ाई: 100%; ऊंचाई: 1100px; पृष्ठभूमि: नीला;" & gt; & lt; / div & gt; & Lt; br & gt; & Lt; a href = "प्रथम html" & gt; पहला & lt; / a & gt; & lt; / body & gt; अब मुझे क्या करना है, सूचकांक पृष्ठ को पूरे first.html और second.html को पूर्ण-ऊंचाई में प्रस्तुत करना है। किसी भी तरह से आइफ्रेम की ऊंच

asp.net - HOW TO CREATE URL FOR REGISTER USER LIKE GOOGLE BLOG OR freshdesk.com -

I am developing an application in MVC4. My requirement is that to create a user specific url, suppose that my website link is www.demosite.com. This site will allow the user to register. After registering this site, will create a separate link for each blog like google blog or freshdesk.com. If the user is registered as Johns then the link will be created as www.john.demosite.com then please suggest it is possible in MVC4 or asp.net application You want to do this in the IIS settings to allow the wildcard subdomain, which you can do after the details. Then it is up to you to store a valid subdomain after that.

Gulp-Shell is not executing any commands -

I am trying to execute something using gulp-shell . My gulfile.js has the following content: var gulp = require ('gulp'), shell = need ('gulp-shell'); Gulp.task ('test', function () (shell (['echo test'];}); Then I call it Gulp test I am getting this output: Using the fictionfile ~ / glyphfile.js Getting started 'test' ... 2.62 ms After the 'test' there is no output for my echo call. I am using Ubuntu 14VM which I use to use the bookty I'm connected. Did anyone know what's wrong? That's because it's not a good way to use a dull shell. Check it out, as seen var gulp = require (shell), shell = ('Gulappan-shell'); Gulp.task ('test', shell.task ([ 'Echo test']);

iphone - Bluetooth LE Device scan in background from iOS -

I am working to scan BLE in background mode. The problem is not working in a background scan, it's a great job in foreground mode. Below are some code rows. dispatch_QUUU centuQU = Dispatch_Q_Arket ("com.XXXXX.BLEACK", DISPATU_QUEUE_SERIAL); // Although you want to create your Dispatch_Guem_T Manager = [[CBCEntral Manager alloc] initWithDelegate: Auto-line: CentralQay option: zero]; - (zero) CentralManagerDidAdaptateTat: (CBCEntinalMenager *) Central {if (central .state == CBCNTRMnagerStatePoOnOn) {[StartScan]; } If (! [Self help hackware]) {@throw ([NSError errorWidman: @ "Bluetooth is not supported," code: 999 user information: zero]); }} - start.scan {NSDictionary * options = [Object with NSDictionary dictionary: Case for [NSNumber Number Vithabules: false]: CBCEntermotherSenapationAlove Duplicates]; [Manager scannerfearlersseursis: zero option: option]; } Here I am passing a zero as a service. I get the log in the Tools section

Excel VBA - Loop for populating ComboBox that doesn't add duplicates -

I am populating a combo box with user on the loop, it adds all the "names" to the first column of the table , Which is the same "type" in the second column I do not want to go into detail, but it is possible that the same "name" happens many times, I do not want to loop to add those duplicate values . I have found some solutions on other forums, but those people have seen me old and I think it should be easy solution. Can anyone help me move forward with it? This is populating loop (this "old" solution is like a 30+ sentence code, I do not think I need it) : with resources. List objects ("Table 3") for X = 2. LISTRO.Count + 1 if range (x, 2) = cType then 'cbname is combobox cbn.m.editime Try it out: Object Object Object Object Set as Ozz = Object (" Scripting .addition ") with resource socket. List objects ("Table 3") for X = 2. ListReo.Count + 1 if the range (x, 2) = cType then 'If th

javascript - Server Side Broadcast Update PHP -

I want to create an application that will automatically broadcast notification (u) to a user when data changes on the server So far, I just know one way of doing this i.e. using this function by using JQ setInterval , every client requests data via AJAX from the server, and asks Whether something has changed or not. The weakness of this method will be to send packets to every customer at all specific time intervals, so my server receives a large data packet. It is so frustrating to manage the server whether Jacob setInterval Apart from this there are no alternatives for you, an option for you, you can use an AJAX request on the server The server side goes into an eternal loop. Use the SO function to avoid memory overload, by checking each time, if something has changed. If so, break the loop and return the data. Send immediate requests to the client side. After some research it is called "Ajax Long-Polling Request". The PHP code will look something like t

javascript - Load tinymce after html changed -

I am trying to write a drag and use the HTML editor to use the tunima and start it as an inline I am doing this work properly. But in one part I have the duplicator of an element that does this: $ (obj). Parent () [0] .outerHTML + = "\ n \ n" + $ (obj)) .parent () [0] .outerHTML; After executing this part, tinimax does not work for this element and the new element. In the second part I have a html code editor, I change the duplicator in this way: $ (obj) Parent () [0] .Utter HTML + = "\ n \ n" + $ (obj). Parent () [0] .outerHTML; InitTinymce (); // This is my initilizer function but ...

c# - Windows resizing jumps instead going smoothly -

I have a problem while trying to apply a custom button for window resizing. This video shows what's going on < / P> I use the thumb element to implement a custom resize button for the window. & lt; Thumb style = "{StaticResource ThumbStyle}" dragstart = "thumb_on drag starred" DragDelta = "Thumb_OnDragDeltanDragDelta" /> and the code behind it Private Zero Thumb_OnDragDeltanDragDelta (Object Sender, DragDeltaEventArgs e) {LogWindow.Height = m_BaseSize.Y + e.VerticalChange; Logwindows With = am_seasseas.x + e Hogstall change; } Private Zero Thumb_OnDragStarted (Object Sender, DragStartedEventArgs e) {m_BaseSize.X = LogWindow. Width; M_BaseSize.Y = LogWindow.height; } How to do custom resizing more equally for the basic implementation? Edit: It seems that I understand what the problem is Thumb_OnDragDeltanDragDelta some time invalid vertical change is received < Div class = "post-text" itemprop = "te

java - JavaFX AreaChart Clear Data -

I create an object of an extended area chart. If this object is constructed then there is a datasari in this area chart, and later I will add 3 new data series to the Area Chart and the first data will be removed. How do I remove the first data? isachart.getData () .addAll (s1, s2, s3); Here you can see how to add a new series to Asarart, but first I want to delete the old people ... Thanks for your help / P> So now I know! I can use the following statement: isachart.getData.remove (....) But this opens another question! How do I get the total pair of field charts? How do I get information about the series in the field chart? I have decided with this problem myself. You can do something like this: isachart.getData (). RemoveAll (m_histogram.getData ()); This field will remove all types of data inside the chart !!

jquery - visitors per day graph with multiple array input -

I do like that here a graph need to plot But the difference is that In the given link, they have a single array as input but in my case I have more than one array in the form of input. I am facing the problem that I am not able to change my article with click here // Here is the design code & lt; Div ng-app & gt; & Lt; Div id = "matrix graph container" style = "height: 260px;" & Gt; & Lt; Div id = "matrix graph" style = "height: 260px;" & Gt; & Lt; / Div & gt; & Lt; / Div & gt; & Lt; Div ng-controller = "see fund moodle" & gt; & Lt; Div id = "chartLegend" style = "padding-top: 10px; padding-bottom: 10px" & gt; & Lt; / Div & gt; & Lt; / Div & gt; // Here is the script for depth in which input data and lieutenant; Script type = "text / javascript" & gt; The graph.data = [{"label": "complete return", "

visual studio 2010 - Source files not in project directory -

There are two projects in the specified directory below, besides I have two files - PurchaseOrder.wsdl.c And PurchaseOrder.wsdl.h I need to share between projects. C: \ Proj \ PurchaseOrderClient // project `Purchase Order Client` directory C: \ proj \ PurchaseOrderService // Project` Purchase Order Client` directory C: \ proj \ // Shared Files ` Purchase order.DDSLC and `Purchase order.verndhl` directory I have added header and source files in the appropriated filter. This title file is okay if I define the project code like #include. \. \ PurchaseOrder.wsdl.h " But how do I tell the project, where is the PurchaseOrder.wsdl.c file? I think that's the reason I have added problems.

c# - How to prevent to other checkboxes checked when one checkbox is checked in ASP.NET -

I have a project that uses two checkboxes. When a checkbox is checked then the other can not be checked. In short, I do not want to use two checkboxes at the same time. Here is the .aspx code: & lt; Td> & Lt; Asp: checkbox run = "server" id = "chocolate" text = "loci" autopostback = "true" on checked changes = "choccollectan_hecked changed" on client click = "show popup ()" /> gt; & Lt; / Td> Here is the .cs code: Protected Zero ChckLctn_CheckedChanged (Object Sender, EventArgs e) {if (ChckLctn.Checked == true & amp;; ChckBrm.Checked == Incorrect) {Locacier Dildar (); }} Protected Zero ChckBrm_CheckedChanged (Object Sender, EventArgs E) {If (ChckLctn.Checked == Incorrect & ChckBrm.Checked == true) {BirimleriDoldur (); }} How can I do this? Instead of the checkbox , this is what they design for You can use to specify which radio-buttons are simultaneously. & lt; Asp: Radi

asp.net mvc - How to attach sql database to a javascript graph -

I am creating a website using asp mvc5 and I need to show some data on a view using the graph I have implemented a graph using javascript. & lt; Head & gt; & Lt; Script src = "../../ js / jquery-1.11.1.min.js" & gt; & Lt; / Script & gt; & Lt; Script src = "../../JS/chart.cript.js" & gt; & Lt; / Script & gt; @ * & Lt; Link rel = "stylesheet" href = "../../ css / last stylesheet css" & gt; * @ & Lt; / Head & gt; & Lt; Body & gt; & Lt; Div class = "col-md-12" & gt; & Lt; Div class = "panel-panel-default" & gt; & Lt; Div class = "panel-title" & gt; Daily booking & lt; / Div & gt; @ * & Lt; Div class = "panel-body" & gt; * @ @ * & Lt; Div class = "col-lg-2" & gt; & Lt; / Div & gt; & Lt; Div class = "col-lg-8" style = "background-color: # 4876FF;" & G

c - How to detect text region in image? -

Image
Looking at an image (i.e. newspaper, scan newspaper, magazine etc.), how can I find out the area of ​​the text ? I just need to know this area and it needs to be removed, there is no need to identify the text. Objective I want to remove these text areas so that it will speed up my withdrawal process as these text areas are meaningless for my application Best! < Div class = "post-text" itemprop = "text"> You can use to highlight text areas. Using my Max implementation has been posted, you can img = imread ('http://i.stack.imgur.com/Eyepc.jpg'); [Swt swtcc] = SWT (IMG, 0, 10); Playing with image parameters in the <350> side-map extraction's internal parameters and SWT.m can tweak the mask as a result of your needs. To get this result: I get these parameters < Code> SWT.m : bordermap = single (edge ​​(IMG, 'can', [0.05 0.25]));

Delphi XE7 Application on Galaxy P5200 -

I downloaded the trial version of Delphi XE7. To successfully compile and run some demo devices, I connect a Galaxy Tab 3 P 5200 via a USB cable. When I compile and run an application, it is placed correctly on the device, but when it starts a black screen the following message: Does not support this device with "supported deployment platform" for Android There is a small box ... They say that the ARMV 7 device is required with NEON support. The Galaxy AT220 is Intel At CPU Z 2560 ... so d Lfi XE 7 just can not build applications for this device ...

php - Best way to parse bbcode -

I want to work on a BBCCC filter for a php website. (I am using the KPPP, it will be a BBCOD subsidiary) I have some requirement If the BBC can be nested, then something like this is valid. [Block] [block] [/ block] [block] [block] [/ block] [/ block] [/ block] The BBCode can have 0 or more parameters. Example: [video: url = "url", width = "500", height = "500"] title [/ video] / Code> There may be mitiple behavior in BBCOS. Say, [url] text [/ url] to [url: url = "text"] text [/ url] Or the video will be converted to BBODAd, able to choose between daily motion .... I think it covers most of my needs I did something with something again but my The biggest problem was to match the parameters. In fact, I was invited to work with BB code and BBM with 0 criteria. But when I added a regex match to the parameters, it did not match correctly with the nested BBCD. "[[tag] (=. *) \" \] (. *) \ [\ / \ 1 \] "

php - Array Diff Confusion -

On trying this code, I am confused why the value yellow was not displayed is. Can anyone expand it, please? $ array1 = array ("one" =>, "green", "red", "blue", "red"); $ Array2 = array ("b" => gt; green "," yellow "," red "); $ Result = array_diff ($ array1, $ array2); Print_r ($ result); Multiple events are treated in all ways in the $ array1 . This output will be: array ([1] => blue) P> An array that contains all entries from array 1, which are not present in any other array. According to this, due to the following blue will print it is the only element which is not present in $ array2 It will not print yellow because it checks the elements that are present in $ array1 but are not in $ array2 , no Contrast: & lt ;? Php $ array1 = array ("a" =>, "green", "red", "blue", "red"); $ Array2 = arr

java - If-condition never executes despite correct condition -

इस सवाल का पहले से ही एक उत्तर है: < / P> 23 उत्तर मेरे पास एक साधारण टुकड़ा है उपयोगकर्ता नाम और पासवर्ड को मान्य करने के लिए कोड सार्वजनिक बूलियन isValid (स्ट्रिंग यू, स्ट्रिंग पी) {if (u == "admin" & amp; amp; p == "password1") {सत्य; } और अगर (यू == "यूजर" और amp; पी == "पासवर्ड 2") {रिटर्न सच; } अन्य {वापसी झूठी; }} मैंने इसे डिबग करने की कोशिश की है, और जब यह चलता है, तो आपके पास "admin" का मान है और p में "password1" का मान है, लेकिन यह पहली स्थिति को छोड़ देता है। मुझे कुछ ग़लत किया होगा, लेकिन मुझे पता नहीं है कि क्या हुआ == स्ट्रिंग तुलना के लिए उपयोग नहीं किया जाना चाहिए इसके बजाय बराबर () का उपयोग करें।

postgresql - Add a serial column based on a sorted column -

I have a table that has a column with an undeveloped value. I want to block this column and add a column to record its order. My SQL code is: selectable * newtable from column_name desc by old locks order; Column ID serial to add table newtables; Will this apply to my goal? I know that there are no fixed orders in the PostgreSQL rows. So I'm not sure about it. Optional table (s) via SERIAL , create it on insert-time Create a new tablet table (ID serial exclusively tap, like all OLYNtableable); Select a new tablet in the next ('newtable_id_seq'), * oldtable ORDER BY column_name desc; This avoids a table rewriting, and unlike your prior approach, the right order is guaranteed. (If you want to be a PK, and there was no PK in the previous table, replace not unique empty to primary key if the first table If you had a PK, you would need to use the like do not include the constraints .

Can't select iOS simulator in XCode -

I updated the X code to version 6.1 and now I do not understand why I can not choose the simulator in the top left? In the previous version, I want to run my application like the corner. The only option that appears is a normal "iOS device". I am not so skilled with the exode. Thank you. Press "window" and then "device", check whether they appear there or not - Click on the "+" icon in the lower left

python - Problems with urls.pyc files generated in django, how to fix it? -

We have upgraded an application to Django 1.7 in Django 1.6.4, I used to serve NGNX and Goncorn I use Randomly the app returns the following error: type error / admin / ihs_booking / occupancydiscount / add / 'tuple' object is not callable Request method: Post request URL: http: // localhost / admin / ihs_booking / occupancydiscount / add / Django version 1.7 exception type: TypeError exception value: 'tuple' object is not callable exception Area: /usr/local/lib/python2.7/ Message_user in dist-packages / Django / defrub / admin / options.py, line 1016 Python executable: / usr / bin / python Python Version: 2.7.6 We tried to change Apache to try but still trouble. After the investigation, we have concluded that the problem generated by urls.pyc is solved. We remove PYC, restart the server (Apache or NGNX + ganyicor) and it works. The problem starts again after some time this is urls.py: # - * - coding = utf-8 - * material - django.conf import setti

c++ - What does sizeof(int) return in this case? -

# शामिल हैं & lt; stdio.h & gt; # से & lt में शामिल हैं, conio.h & gt; शून्य मुख्य () {if (sizeof (int) & gt; = - 2) printf ("true"); अन्य प्रिंटफ़ ("गलत"); } जब मैं टर्बो सी ++ का उपयोग करते हुए कोड के इस टुकड़े को संकलित करने का प्रयास कर रहा हूं तो यह सत्य के बजाय झूठी लौट रहा है। लेकिन जब मैंने कार्यक्रम के मूल्य को प्रिंट करने की कोशिश की तो वह 2 लौट रहा है। यह कैसे संभव हो सकता है? जबकि sizeof (int) वापस 2 और हां 2> = - 2 है। आकार (int) प्रकार std :: हस्ताक्षरित हस्ताक्षर के साथ हस्ताक्षर की तुलना अजीब परिणाम के कारण होता है क्योंकि हस्ताक्षरित अहस्ताक्षरित में पदोन्नत किया गया है। आकार_t यदि (static_cast और lt; int & gt; (sizeof (int)) gt2 = /) यदि आप यदि ((int) sizeof (int) & gt; = -2) संकलित करने पर सी संकलक पर काम कर रहा है उदाहरण के लिए, कुछ चेतावनी झंडे -Wall के साथ कोड को हस्ताक्षरित / अहस्ताक्षरित तुलना के बारे में संभवतः चेतावनी देनी चाहिए (यदि आप चेतावनियों की अनदेखी नहीं कर रहे

delphi - EPackageError caused by a unit that is implicitely imported -

Image
I am currently involved in a Delphi XE5 project and I am facing a problem that I do not solve Can I have a Delphi project group that is an indicator of EXI; This exe loads multiple Runtime BPL dynamically, these BPL are also part of the project group. However, when I run the application, I can not load the package with the 'error message' project {MyProject.exe} picked exception class EPackageError message 'PumpMethod' includes the unit 'flat', which also includes in the package Is 'extractive unit method' I have already searched on SO, and I have found the reason, especially the big help, during compilation, both of my project BPL emit the following message: as another one also: One project is DclSpark190.bpl, but it is a design time package (control is registered in it). When I shut down this project group and create a new one, I can drag / drop 'my float editor' on a form, and it's all going well. When I now open Project Gro

How to extract specific part of html page using c# code -

I have a webpage that I want to remove a specific part of the page but not the full page, for example, 4 inches From the left side, just above 4 inches, above the website page. Please guide me how to get it. Here's my code. public string GetWebSiteContents (string url) {WebRequest req = WebRequest.Create (url); // Get Stream from the Web's response back to StreamReader sr = New StreamReader (req.GetResponse (). GetResponseStream ()); System.Text.StringBuilder sb = New System Text.StringBuilder (); String stroke; // Read the line one line at a time and keep each one in stringbuilder while ((strLine = sr.ReadLine ()) = = null {// Ignore empty rows if (strLine.Length> gt; 0) sb .Append (strLine); } Sr.Close (); Textbox1.Text = sb.ToString (); Return sb.ToString (); } This code works fine, but removes the full page and takes a long time in it. An easy way to get what you are trying to do is to use a tool like selenium To automate an actual browser to use and then

maven - Exclude jar being added in eclipse .classpath on "mvn eclipse:Eclipse" command -

I'm adding a jar to Eclipse. Classpath file on running Mvn eclipse: eclipse command How do I get it? You can use the exclusions parameter described here: See also :

Calculations in python -

I find it difficult to calculate a portion of my program in Python. Random Import CharacterOne = Input ("Enter the first player name:") CharacterTwo = Input ("Enter another player name:") ch1str = int (input is a strength of the character : ")) ch1skl = int (a skill input (CharacterOne +": ":)) ch2skl = int (a skill input (CharacterTwo +": ")) ch2str = int (input (CharacterTwo + one" strength ")) strdif = int (ch1str-ch2str) If strdif & LT; 0: strdif = ch2str-ch1str strmod = strdif // 5 skldif = int (ch1skl-ch2skl) If skldif & LT; 0: skldif = ch2skl- Ch1skl sklmod = skldif // 5 number1 = random.randrange (1,6) nUM2 = random.randrange (1,6) if Number 1 & gt; nUM2: ch1str + = strmod ch1skl + = sklmod ch2str- = strmod ch2skl- = sklmod play1 = true if nUM2 & gt; No. 1: ch2str + = strmod ch2skl + = sklmod ch1str- = strmod ch1skl- = Sklmod play1 = wrong if ch1skl & lt; 0: ch1skl = 0 if ch2skl & lt; 0: ch2skl

restore - Error while installing openldap server on ubuntu 14.04 mkdir: cannot create directory `/etc/ldap/slapd.conf': File exists -

I am trying to set up the ldap server on my Ubuntu 14.04. I used the last ldap server setup centos 6 which uses that flat file configuration i.e slapd.conf method for ldap. Now I want to setup the openldap server on Ubuntu 14.04. I have kept all the content from / etc / openldap in centr in / etc / ldap on Ubuntu. When I try to install ldap using the following $ sudo apt-get Install slapd I'm getting under error: Setting Slipd (2.4.31-1ubuntu2) ... Creating the initial configuration ... Mkdir: directory can not create `/etc/ldap/slapd.conf ': file exists dpkg: error processing slapd (--configure): subprocess / usr / bin / dpkg has an error D (1) I have removed the database / var / lib / ldap / $ sudo rm -rf / var / lib / ldap / * From files, then I tried to change it from slapd.conf using slapd.d $ sudo slaptest - F slapd.conf -F slapd.d I get an error as below. Unrecognized database type (BDB) 546470b0 slapd.conf: Line 99: & lt; Database &

amazon ec2 - How to host a website in Amazone ec2 windows server 2008 r2 -

I created virtual server in amazon es2. My server is Windows Server 2008 R2. It is already installed iis. I hosted my site The problem is, I do not know what my name server is? I have the domain xyz.com. Now what name server should I put in my domain name registration website? I could not find where the name server is from please help? It sounds like you want to use Amazon, which is their DNS solution. Log in to AWS, select Router 53 from the Main menu, and within Route 53, you want to create a hosted zone for XYZ dot com, then create a record for www.xyz.com within that zone. EC2 is an alias for example. When you create hosted areas, it will list the names of the DNS servers you use.

dataframe - How to get a new column in a data frame which has only elements which appear in the set more than once in R -

डेटा: डीबी 1 & lt; - data.frame (orderItemID = c (1, 2,3,4,5,6,7,8,9,10), ऑर्डरडेट = सी ("1.1.12", "1.1.12", "1.1.12", "1.1.12", "1.1। 12 "," 1.1.12 "," 1.1.12 "," 1.1.12 "," 2.1.12 "," 2.1.12 "), मद आईडी = सी (2,3,2,5,12,4, 2,3,1,5), आकार = कारक (सी ("एल", "एस", "एक्सएल", "एक्सएस", "एम", "एस", "एल", "एम", "एक्सएक्स" "लाल", "लाल", "बैंगनी", "सफेद", "लाल", "लाल" काला ")), ग्राहकआईडी = सी (33, 15, 1, 33, 14, 55, 33, 78, 94, 23)) अपेक्षित आउटपुट: selection_order = c ("हाँ", "नहीं", "नहीं", "नहीं", "नहीं", "नहीं", "हाँ", "नहीं", "नहीं", "नहीं") डेटा सेट में मेरे पास एक ही आकार या समान रंग वाला आइटम है, एक ही मद आईडीआईडी ह

excel vba - vba legend and plot area resizing -

I have an Excel chart that changes to the selections made in the slicer I saw the plot made in the legend field The change happens based on the selection. I tried to fix the situation and size for the plot area, but it does not work unfortunately. Plot area and mythology are on resizing, from which mythology is overlapping. Which I do not want explicitly I have placed this code in the worksheet page of VBA editor. option clear Private sub Chart_Calculate () ChartObjects ("grafiek 4"). Active ActiveChart.PlotArea.Width = 637.783 ActiveChart.Legend.Left = 716.514 ActiveChart.Legend.Width = 176.735 ActiveChart.Legend.Height = 295.334 End Sub In this code, I think Automatic resizing will work, but I noticed that the legend sometimes overlaps the area still objectionable. Is there a solution that fixes this problem permanently? Edit1: Tomorrow, I have added some parameters to the conspiracy area. It seemed to work then but now I tried again, and the plot is

php - Contact form without refresh -

I am trying to create this form to display errors or confirmation messages without refreshing a page. I am trying to use jQuery but have not had any success. My jQuery code is completely incorrect and I have tried to make it so many times so far. Can someone point me in the right direction? HTML & lt; Form method = "post" action = "index.php" autocomplete = "on" & gt; & Lt; Label & gt; Name & lt; / Labels & gt; & Lt; Input name = "name" placeholder = "What is your name?" & Gt; & Lt; Label & gt; Email & lt; / Labels & gt; & Lt; Input name = "email" type = "email" placeholder = "your email please" & gt; & Lt; Label & gt; Message & lt; / Labels & gt; & Lt; Textarea rows = "10" name = "message" placeholder = "What would you say?" & Gt; & Lt; / Textarea & gt; & Lt; Label & gt

javascript - How to use the jQuery DataTables order listener -

I am using the DataTable jQuery plugin () and disable the default order of each column when you click on it Would like to do TH elements and instead specify another element to order (which will be a child of each T). I have it in JS var table = $ ('table-stored'). Datatelle ({"ordering": false}); Table.order.listener ($ ('# sort'), 1); and this is in HTML & lt; Table class = "table-table-striped" cytopath = "0" width = "100%" & gt; & Lt; Thead & gt; & Lt; TR & gt; & Lt; Th & gt; & Lt; Span id = "sort" & gt; Colonel 1 & lt; / Span & gt; & Lt; / Th & gt; & Lt; Th & gt; Colonel 2 & lt; / Th & gt; & Lt; Th & gt; Colonel 3 & lt; / Th & gt; & Lt; / TR & gt; & Lt; / Thead & gt; & Lt; Tbody & gt; & Lt; TR & gt; & Lt; TD & gt; & Lt; Period & gt; 2 & lt; / Span & gt; & L

swing - List box does not show up using java in netbeans -

I have the following code that is executed when a button is pressed. I have used the GUI builder inside NetBeans for the rest of the GTI. Private zero-populated BTN effect (Java.av.te.Event.Event EventEVT) {String Query = "Do not Access Accounts"; Try {connect.rs = connect.st.executeQuery (query); Of vector & lt; String & gt; Temp = new vector & lt; String & gt; (); While connect (rs.next ()) {temp.add (connect rs.getString ("AccNo")); } JLICL accList = new jlit; JPanel4.add (accList, BorderLayout.CENTER); } Hold (exception e) {JOptionPane.showMessageDialog (null, e); }} Why the list box does not show? What am I doing? Why not show the list box? What am i doing wrong For this reason: jlICr accList = new jlit; JPanel4.add (accList, BorderLayout.CENTER); These lines show that when you are trying to add JList by clicking on a button, then jPanel4 already Has been displayed, and thus you will have to modify the panel again

Is there a way to delete all rows matching a regex in a table in javascript? -

मान लें कि मेरे पास तालिका है: # उत्तर दक्षिण 1 17 55 2 1 9 66 3 28 77 4 26 88 5 35 99 6 32 44 7 42 33 गिनती है कि मैं '4' अंक वाली सभी पंक्तियों को हटाना चाहता हूं, वह पंक्ति 6 ​​और 7 होगी। जावास्क्रिप्ट में ऐसा करने का एक तरीका है? मुझे नीचे की तरह कुछ चाहिए: regex = '% 4%'; Var टेबल = document.getElementById ('टेबल'); के लिए (var i = 0; i & lt; table.rows.length; i ++) {if (table.rows [i] में regex है) table.row [i] हटाएं} आपकी मदद के लिए पहले से कोई भी आप var टेबल = document.getElementById ('myTable'); (Var i = table.rows.length - 1; i & gt; = 0; i -) {if (table.rows [i] .textContent.indexOf ('4')! == -1) {तालिका पंक्तियों [i] .remove (); }} & lt; तालिका id = "myTable" & gt; & LT; टीआर & gt; & LT; टीडी & gt; 123 & lt; / टीडी & gt; & lt; टीडी & gt; 456 & lt; / टीडी & gt; & Lt; / टीआर & gt; & LT; टीआर & gt; & Lt; td वर्ग = "कुछ

android - Limiting and/or automatically changing value for number input fields -

I am working on a minigolf app for Android, and I want to display 18 lines of input number field Users using knockout forehousing binary can insert the necessary number of hits for each hole. My first requirement is that I want to behave in those input fields so that when the user enters "9" then it should be automatically converted to 10 (because Minigolf's rules say that If the user uses more than 8 hits, the hole should be counted as 10). My second requirement is that it is possible to type more than 10 numbers at this time. I have to specify that you can not type more than 10 numbers in the input fields. Anyone will get any ideas to solve my needs? This is my cell phone: & lt ;! - to advance: round - & gt; & Lt; Input class = "input-block-level" name = "number" type = "number" value = "" data-bind = "value: hit, value update: 'key'" maximum length = "2" min = "1 "M

javascript - How to load a unique when.js file in html -

For now, this setup is working, but I want to improve it. apps.html: Lt ;! DOCTYPE html & gt; & Lt; Html & gt; & Lt; Top & gt; & Lt; Meta charset = "UTF-8" & gt; & Lt; Title & gt; During the experiments & lt; / Title & gt; & Lt; Script charset = "UTF-8" data-key = "./spec/js/ require-minimum" src = "./ apps / js / require-2.1.9.js" & gt; & Lt; / Script & gt; & Lt; Script src = "https://www.promisejs.org/polyfills/promise-6.0.0.min.js" & gt; & Lt; / Script & gt; & Lt; Script type = "text / javascript" src = "https://ajax.googleapis.com/ajax/libs/jquery/1.7.1/jquery.min.js" & gt; & Lt; / Script & gt; & Lt; Script type = "text / javascript" & gt; Requirement (['when'], function (when) {...}); & Lt; / Script & gt; & Lt; / Head & gt; & Lt; Body id = "body" &

haskell - Defaulting the following constraints to type 'Double' when using Scientific -

I have two scientific numbers which are essentially integers, I want to convert them down to the input. Please ignore code conventions and code idioms. & gt; Importable data V & gt; Import data. Scientific & gt; CToTy (Array V) = Case V.toList v & gt; [String nm, number p, number s] & gt; | All (== true) $ Map Integer [P, S] - We are sure that they are always integers & gt; , [PR, SC] & lt; - Map (Blaatthitoin floating arringer) [P, S] - and then eject them & gt; Balesthoint :: (Real Flat R, Integral Eye) = & gt; Either RI - & gt; Int & G; Balaitectonant (left _e) = 0 - It should not be so, so we will default it to 0 at all times. & Gt; Balaththoite (right A) = One from the intracranial However, I get this warning and I can not understand how to get rid of them. JsonUtils. LHS: 76: 26: WARNING: The details of the following obstacles to type 'double' (real float R) arising out of the use of 'boltto-int', in t