Posts

Showing posts from April, 2011

java - GC_CONCURRENT running non-stop -

adb logcat मैं अपने cmd विंडो में निम्नलिखित को देखता हूं क्या यह स्मृति रिसाव का संकेत है? मेरा मानना ​​है कि जावा कूड़ा संग्रह लगातार चल रहा है, लेकिन मुझे यकीन नहीं है। किसी भी स्पष्टीकरण का स्वागत है! क्या यह स्मृति रिसाव का संकेत है? सबसे अच्छा परीक्षण यह देखना है कि जीसी के बाद कितनी मेमोरी का उपयोग किया जाता है जैसा कि आप देख सकते हैं कि यह 36% से शुरू होता है और 36% पर खत्म होता है, इसलिए यदि कोई रिसाव होता है तो यह बहुत छोटा है। अधिक होने की संभावना; बहुत तेजी से आवंटित पर्याप्त ढेर का उपयोग नहीं करना जितना आपको लगता है जितना GCing नहीं है यानी क्या आपको पता है कि यह एक समस्या है?

smalltalk - Bypassing World Menu with shortcuts -

Is it possible to open a tool in the World menu using shortcuts? I especially miss workloads, browsers (without selecting a message), Finder, Monticello, and of course all other OSX (on Windows and Linux) you can always remember CMD or ALT : CMD + O, P Workspace: CMD + O, W Browser: CMD + O, B Copy: CMD + O, T Settings: CMD + O, S Test runner: CM Mr. + o, u AFAIK there is no shortcut to the searcher, we CMD + O, F.

php - Delete Rows from MySQL Database Using Checkboxes -

I am trying to delete a row from a table that is generated from a MySQL table. I took a look at these two questions: And I think both answers, but I am running into a problem. In each question, your checkbox is set in this way: & lt; Input name = "checkbox [ and & lt; Input name = "checkbox []" type = "checkbox" value = "& lt ;? php echo $ row ['topic_id'] ;? & gt;" & gt; I am unable to use any of these in my code, because my table is generated in PHP, and using parentheses and quotations within my code (checkbox name Or value property, exact) throws a syntax error in magnificent, I am thinking that there is no alternative solution for this? Here's a part of my table: & lt; Tbody & gt; & Lt ;? Php $ query = mysqli_query ($ db, "SELECT * SOISInventoryList WHERE numInStock = 0 item by itemName"); If (! $ Query) {echo "query could not be taken."; } And {while ($ line = m...

c# - How to set properties in a custom WebViewPage? -

I have a very basic custom WebViewPage class in which I assign a value to a custom Want property Here is my code: Public abstract class WebView page: System.Web.Mvc.WebView page {public employee user principal {get; Set; } Execute public override void () {// Controller is also a custom class in which there is a property that is injected by a custom action filter attribute, I have confirmed that the property is correctly updated // property controller controller = (this Controller as controller); If (controller! = Null) {this.UserPrincipal = Controller User principal; }} & Lt; Pages PageType = "X.MVC WebViews" & gt; & Lt; -! System.Web.Mvc.WebViewPage - & gt; I can not explain the Execute method for any reason because I never hit any breakpoints I had put in it. I used to point out the web to my custom WebViewPage . Configured the configuration correctly and I can access it from within the property view, I can not set the property properly. I a...

html - Line through price 1 if price 5 is set javascript -

If I have the sale price (P5) then try to get the strike / line through the old price (P1) I think I am very close, perhaps with some other part, which is stopping it by putting the line through the old price if the sale is not worth it. & lt; Script type = "text / javascript" & gt; If (jq ('. Spn_P5')) {jq ('. Spn_P1'). Rap ("& lt; strikey & gt;"); } Else {if (jq ('. Spn_P5: empty')) {jq ('spn_P1'). Opening ("& lt; Strike";); }} & Lt; / Script & gt; As you can see, it is still implementing the line in the second and third products. Does anyone help please. Many thanks. You must check the returned length by jq (".spn_P5: blank") , this selector returns an item return even if there is no content in .spn_P5 span. If the object has length & gt; 0 This means that an item with : blank was found There is something similar with its HTML structure: & lt...

three.js - Trackball Controls taking over the screen -

I own three. I am trying to add a basic trackball control to the JS scene, however, while doing so, it can control my entire screen, I can not right click on anything on the screen or click in a text box. You have to do if you want to change that behavior, then your own changes will prevent default behavior. Are: function mouse down (event) {if (_this.enabled === incorrect) return; Event.preventDefault (); Event.stopPropagation ();

trying to call functions asynchronously in javascript (with angularjs) -

I am trying to call the function in PhoneGap (for TTS) which varies in length (I have different Reading news headlines) Immediately after each title, I have a voice recognition task, which inspires a voice command to the user. This way ... navigator.tts.speak ("If you want to go to the next article, please continue. Otherwise, read me for another section"); $ Scope.reco (); Rico () Voice recognition of the call I to end before reco ( navigator.tts.speak (* & lt; news_headline. & Gt; *) ) is said to be using angular, Trying to use the promise ($ q) (in some different ways), but I can not seem to know how to speak () before getting the reco ( ) is any suggestions? Another dimension: I am using PhoneGap (almost entirely for Android purposes), and in my short experience, it can cause many problems. Any help about this will be appreciated. I have just checked the document for both TTS plugins listed on Build. Phonegap.com and both have callba...

Python & JSON Phrasing issues -

I am trying to read the twitchAPI JSON phrase I am trying to read names The API here is part of JSON: {"_links": {"next": "Https://api.twitch.tv/kraken/channels/test_user/follows?direction=DESC&limit=25&offset=25", "self": "Https://api.twitch.tv/kraken/channels/test_user / Follows? Direction = DESC & amp; limit = 25 & amp; offset = 0 "}," _total ": 336," Low ": [{" _links ": {" self ":" https://api.twitch.tv/kraken / Users / test_follower / follows / channels / test_user "}," created_at ":" 2014-07-24 T20: 21: 10Z "," Usage Narta ": {" _id ": 00000001," _links ": {" self ":" https://api.twitch.tv/kraken/users/test_follower "}," bio ": zero," created ":" "Test_follower", "test_follower", "name": "test_follower", "type":...

Sprite kit physics gravity on object -

I am creating a simple game using the Sprite Kit and Physics. The problem is really very simple, for my knowledge, phantom kit physics allows to set gravity on the world, but I need to set up gravity on physics organizations so that a large / heavy body Affects everyone around it. From my life, I am not getting a facility to do this and before I can start custom physics programming in the game, I should know that anyone knows in a standard way to do this here. P> Looking for you. You can create different types of fields, but it seems that what you want will be a radialGravityField . You can find more information on the linked class reference.

javascript - AngularJS: pass variable from backend while loading a page -

Image
This is my first test with Kangra JS and is stuck in a very basic phase. I have an Anguljeses Front and Gray's backend. The code snippets below are as per my question. URL Mapping Entry: Like "/ Graph" (Controller: 'Graph') As class GraphController {DEF index} (render: "../graph", model: [employee id: "197040"])}} This is the AngularJS file, which is saved as graph.gsp: When I enter url I am capable of displaying the body as "Hi! Welcome", but to read that employee ID and "Hi! Welcome 197040" (i.e. variable worker sent from backend Id); Hi! does not work as expected. I am sorry that this is a very basic question, but I am not that much, see the answers anywhere. The other thing is, it is later GSP .. and your gallery variables will work normally Just like how do you define a layout. & lt; Div & gt; & Lt; H3 & gt; Oh! Welcome $ {employee ID} & lt; / H3 & gt; ...

javascript - Adding navigation button below a Slider -

is I have a very simple slider that use jQuery and I want to add navigation under the slider. It can be dot boxes, anything is fine. Please help me in it. The code below is $ (document) .ready (function () {$ ('. Sp')) first (). AddClass ('active'); $ ('Sp' $ ('active'). Show (); $ ('# button-next') Click (function () {$ ('. Active'). RemoveClass ('active'). AddClass "the oldest active '); if ($ (' oldest active '). (' last child ')) {$ (" Sp ")) before (). AddClass (" active ");} else {$ ( "KoldActive ') next (). AddClass (' active ');} $ (' Puranaaktiv '). Nikalenkls (' Puranaaktiv '); $ ('. Sp '). FadeOut (); $ (' ( '' active ''). $ ( "# button-back"). click (function () {$ ( '. Active'). RemoveClass ( "active"). AddClass ( 'Puraneaktiv'); if ($ ( 'oldest active '). (...

Javascript only works in Google Chrome in debug mode -

The code below works fine in Internet Explorer, but it works only in Chrome if you are in debug mode , So what happened? window.onresize = function (e) {if (window.outerWidth === screen.width & amp; window.outerHeight == screen.height) {if (fullscreen ) {Fullscreen = true; Onfullscreenchange (true); }} And {if (fullscreen) {fullscreen = false; Onfullscreenchange (wrong); }}}; Function Complete ScanChange (full) {Alert (full); } try it var fullscreen; Window.onresize = function (e) {if (window.outerWidth === screen.width & amp; window.outerHeight == screen.height) {console.log ('fullscreen'); If (fullscreen! == 1) {fullscreen = 1; Onfullscreenchange (true); }} And {console.log ('! Fullscreen'); If (fullscreen! == 0) {fullscreen = 0; Onfullscreenchange (wrong); }}}; Function Complete ScanChange (full) {Alert (full); }

java - Transfering values from an object in a ArrayList to an array sudoku board -

I will explain to you my problem: I will have to fill out this grid: Fixed int board [] [] = New int [] [] {{0,0,0,0,0,0,0,0,0,0,0,0}, {0,0,0,0,0,0,0,0 , 0,0,0,0,0, 0}, {0,0,0,0,0,0,0,0,0,0,0,0}, {0,0,0,0,0,0,0,0,0 , 0,0}, {0,0,0, 0,0,0,0,0,0,0,0}, {0,0,0,0,0,0,0,0,0,0,0,0,0}, {0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, {0,0,0,0,0,0,0,0,0,0,0}, {0 , 0,0,0,0,0,0,0,0,0,0,0}}}}; But I want to transfer prices within my arraylist objet (ligne, colone, valeur): case case1 = new case (ligne, Colon, valor); MonArrayCase.add (case1); I have already made a scanner and a print to ensure that my arraylist number has been added and it is working ... My main problem is that I am printing it: System.out.println (Sudoku.board [leagne -1] [colon -1] = valor); I can add numbers but I can not delete them ... Maybe I'm doing this in the array ... is there any way to print the value from my arraylist object Thanks in advance. If I understand you correctly, then you already have the set...

vim - Is there a way to tab to locations in a file to change text? -

Using snipmate I can create tab stops using $ {1} Is, $ {2} , and so on. But we say that I have a file that has many lines that I use often. When I put these into my active file and some parts of that line have to be changed, is there any way to repeat the snippet's tab stop functionality? If there is no room on which changes need to be made, then there is no way of highlighting it? So we suppose that I have the following lines: Show results: [] Items [] returned true I would like the bracket to be replaced with text. I know I can search for brackets and your way through them the next, but I was hoped for something a bit more convenient. I suggest snapmate of second Zack only to deal with the problem that happens The most convenient approach to search and replace if you want to replace your placeholder with the same text: : '{,'} s / \ [\] / Foo / g With the different text you want to replace each placeholder you can repeat the behavior of Snipmat...

mysql - de-duplicate a list of strings -

I usually go to the point: I have a list with a The CSV file is I need to remove the duplicate (or, sometimes, find duplicated values) csv this is easy Bring in Excel , but I can not find a good method to find / delete / count duplicate values ​​(or, never remember). I can export data to a database and run some simple SQL queries to do all this, but then the database goes on the way with many other tasks and I can export the data layer To achieve excellence in the work of cell level. Is not there any device that can work with Excel as easy as Excel, but could include more powerful features of a SQL query language? VBA Use PowerShow Directly , Or less efficiently code> Update: I think that it believes that your csv contains the first and final . Code> - It should be clear in the examples below where you must update it sub-better () x = shell ("PowerShell. Exe import-csv C: \ temp \ test.csv | sort first, last-annex-export-csv C: \ te...

oracle - How to specify INITRANS for a partitioned LOB index? -

I have a partition table of rows per transaction when a BLOB column is deleted by multiple users from the table , we often ORA -0060 the deadlock-S that TCC files run, which, LOB caused ITL deadlock index partition so I INITRANS greater LOB index table I want to recreate the default with 2. I Store the table for ... without any split tables ... (... lob (...) .. (... index ... (... initrans 10 .. .)) adds , but Oracle's partition table, "ORA -22879: can not use LOB index clause for the partition table." is there any other way that I have a split LOB index Can I set INITRANS? (Update: Note that I do not need to convert to existing table , I can reproduce it from scratch, it is usually easy.) The editing of the genels is as follows: Here is an example How the general method does not work: Create a test of the table (a number, b clob), division by category (A) (less than 1 (division P1 value); * Select from dba_indexes where owner = user and table_name = ...

Windows application toolkit fails to remove UAC prompt on specific program -

Image
OS: Windows 7 Professional 64 bit My Arduino IDE fails to open until I "Do not run as administrator". If I do not, it will only show the loading screen: But in reality IDE will not open. I am searching for those methods which I can bypass it for arduino.exe and have found that it is mentioned as the Windows Application Compatibility Toolkit. When I run the test run after checking the scorer here: Arduino is not a problem. But after following the rest of my subsequent steps and installing properly, my Arduino IDE program still has the same problem. If I have not run it as an administrator, it will only show the loading splash screen and not the IDE portion. Please help! Thanks! If this program does not support running standard users, then you will not be able to fix That. The application's developers need to fix it so that it can run as the standard standard user. People are confused by the UAC. Try running the same application on Windows XP. It...

persistence - Is there any persistance available to a data uri? -

I have very basic data: data: text / html, & lt ; Body satisfying style = "font: 2rem / 1.5 monospace; max-width: 60%; padding: 50px;" Onload = "document.body.focus ();" & Gt; I would like to store the text written in the body when it changes and loads when the URL is opened. I have local storage, sessionstorage and cookies but those data are not available for uri. I have not tried indexed DB because it looks like a GET on a lot more code for load and a load on the load. To answer my own question: no. This is by design so I went another way about it.

php - Laravel method chaining a query through a function -

Is it possible to chain methods as conditional in PHP / Laravel, or passed to the method chain through function for? I want to control a query in Laravel's query builder by setting a base query first, then sending it to a function to keep the other methods chained. As a quick example: $ query = model: whereFoo ('bar'); If ($ needFoo) {$ query = $ query- & gt; Is ('foo'); } $ Query = queryMethod ($ query); Function query method ($ query) {return $ query- & gt; Where ('some', ' $ query = Model: whereFoo ('bar'); and $ items = $ query- & gt; Seems to ignore everything between - What a difference does not make that $ query . Is it possible to get advice / advice? Edit: I have accepted the answer given below because it answers the questions I have asked my problem was actually unrelated if it helps someone : I was called in a rogue or where () base query, which, along with mandatory results, regardless of other c...

python - What's the best way to serialize a large scipy sparse matrix? -

I have a large SPA sparse matrix, which is taking 90% of my total system memory; I would like to save it to disk, because it takes a few hours to create the matrix ... I have tried cPickle, but it leads to a major memory explosion ... as import nppy as np scipy.sparse import lil_matrix import cPickle dim = 10 ** 8m = lil_matrix ((dim, dim), dtype = np.float) with open (file name , 'Wb') as f: cpickle. Dump (M, F) leads to a major memory explosion, is probably being copied to a lot while HDF 5 did not like datatype: TypeError: Object DTP DTEP ('O') This is not a native HDF5 equivalent actually How much data is stored in the matrix? Have you seen the matrix type change before serialization? LIL matrix is ​​not the most memory efficient sparse matrix available to you. For example: [43]: In dim = 10 ** 6 [44] For example: [49]: m = lil_matrix ((slow, slow), dtype = np.float) In [45]: For category (10000): M [np.random.uniform (0, dim), np.random.uniform...

Android. How to re-size a Bitmap to fit the screen in SurfaceView -

I would like to set the background image in my SurfaceView, but I can not get it on the scale of the screen. How do I set it? My current code: import android.content.Context; Import Android.graphics. Bitmap; Import and roid.graphics.BitmapFactory; Import Android.graphics. Canvas; Import android.graphics.Matrix; Import android.util.AttributeSet; Import android.view.SurfaceHolder; Import android.view.SurfaceView; Public Square MySpace has enhanced Surfaceview's executions: Runnabal {Surface Holder Our Holder; Thread ourThread = null; Boolean isRunning = true; Bitmap background; Bitmap claude; Public Mysore (Reference Reference) {Super (Reference); Init (reference); } Public MySpace (Reference Reference, AttributeSet attrs) {super (references, attrs); Init (reference); } Public MySpace (Reference Reference, AttributeSet attrs, int defStyle) {super (references, attrs, defStyle); Init (reference); } Private Zero init (reference reference) {// What goods that were in your origin...

javascript - Customization of css attributes -

I am trying to customize the color attribute of this element in this way: & lt; H2 style = "float: left; font-family: 'open cens', non-serif, color: #fbfbfb font-size: 40px; position: relative; margin-top: -458px; margin-left: 90px ; "Class =" main title "& gt; Test & lt; / H2 & gt; JS code (included in the top of the html page) (function () {document.getElementsByClassName ('main-title') color = ' Black';}) (); Doing this will not change the color. It is the same problem to include in the lower part of the page. In addition, I have tried to include the CSS file, in place of the JS file ( .main-title {color: black;} ), but it is still the same. How do I fix this? Any great ideas? should be there document.getElementsByClassName ('main-title ') [0] .style.color =' black '; Because getElementsByClassName does not return the archive, there is no single element and is important in the...

How does execve know how many arguments are passed in argv? -

In the C program, the main function knows how many arguments in argv are seen in ARV, it seems unclear to me how syscall Execve knows how many logic passes can help someone understand how execve handles logic? execve on my close Linux system says: argv is an array of logic strings passed in the new program. Envp string array, traditionally form key = value, which are passed as new environment in the new program. Both argv and envp should be terminated by a null pointer. The argument is called vector and the environment, whose main function is when it is defined: int main (int argc, char * argv [], char * Envp []) I bold the important part. At the end of the list, there should be an empty pointer. Colonel will count the arguments and calculate the count as argc .

Solution architecture diagram - arrow directions -

There are various types of arrows used in the software architecture diagram. What is the difference between A and B Single bi-directional arrow between A and B Two in parallel between A and B Arrow, pointing to an A and B to the other Do they mean the same? Arrow shows the flow of conversations and information: both of them Meaning, it depends on how much information you want in the picture, sometimes it is important to write on the arrow, the information is flowing, so choosing two is better. Hope it helps. Cheers !!

java - Connection pooling with hibernate 4 and struts2 -

After I have a web application using struts2 implemeted and hibernate 4.3.5 I have encountered some problems and some clarification is required on some connection pooling properties. I have used to create pooling connections with hibernate c3p0-0.9. 1.jar Below are connection pooling properties in c3p0 in hibernate.cfg.xml & Lt ;! - Connection pooling c3p0 - & gt; & Lt; Property Name = "connection.provider_class" & gt; Org.hibernate.connection.C3P0ConnectionProvider & lt; / Property & gt; & Lt; Property Name = "hibernate.c3p0.min_size" & gt; 5 & ​​lt; / Property & gt; & Lt; Property Name = "hibernate.c3p0.max_size" & gt; 10 & lt; / Property & gt; & Lt; Property Name = "hibernate.c3p0.timeout" & gt; 500 & lt; / Property & gt; & Lt; Property Name = "hibernate.c3p0.max_statements" & gt; 2 & lt; / Property & gt; // I have heard some...

java - Spring NoSuchBeanDefinitationException throw after exporting jar file -

Image
I have spring project to me and I can get Spring bean spring terms prior to export JAR file. I export the jar file and run that jar file on the CRD. I found the NoschBean Definition Exceptions . Project Spring Bean can not be found in the spring configuration file & lt; Context: component-scan & gt; I used to know what is the problem? Edit In Beam Package Com Example. User Profile; @Service ( "UserProfileManager") applies @Transactional public square UserProfileManagerImpl UserProfileManager {@Autowired private UserProfileDao userProfileDao; in the spring configuration file & lt; Reference: component-scan base-package = "com.example" /> & Lt; Tx: annotation-driven transaction-manager = "transaction manager" /> & Lt; Bean class = "org.springframework.dao.annotation.PersistenceExceptionTranslationPostProcessor" /> & Lt; Bean id = "transactionManager" class = "org.springframework....

javascript - Handling image onload function for multiple images -

फ़ंक्शन हैंडललोड (यूआरएल, कॉलबैक) {var img = new Image (); Img.onError = function () {चेतावनी ('चित्र लोड नहीं किया जा सकता है:' '+ url +' ''); }; Img.crossOrigin = ''; Img.onload = function () {callback (img); }; Img.src = url; } हैंडललोड (इमेजुरल, कॉलबैकफंक्शन); मैं कई फ़ंक्शन के लिए इस फ़ंक्शन का उपयोग कर रहा हूं? लेकिन मुझे सही नक्शा आउटपुट छवियां नहीं मिल रही हैं, जिनमें से कुछ दोहराए जाते हैं कोशिश करें imagesLoaded : उपयोग सीधा है: चित्र लोड (एएमएम, कॉलबैक);

Any concept of a global variable in streams in spring xd? -

परिदृश्य: वसंत xd में एक स्ट्रीम परिभाषा निम्न संरचना है: jms | फिल्टर | परिणत | Hdfs फिल्टर मॉड्यूल में, मैं यह सत्यापित करने के लिए एक डेटाबेस को आग्रह करता हूं कि वर्तमान संदेश आगे की प्रक्रिया के लिए लागू है या नहीं। जब स्थिति पूरी हो जाती है, संदेश ट्रांसमिशन मॉड्यूल। ट्रांसमीटर मॉड्यूल में, मैं फ़िल्टर मॉड्यूल से क्वेरी परिणामों तक पहुंचना चाहूंगा। वर्तमान में, मुझे एक बार फिर से एक क्वेरी को आग में डालना होता है एक ही परिणाम सेट तक पहुंचने के लिए ट्रांसफ़ॉर्मेशन के अंदर। क्या कोई वैश्विक वैरिएबल का कोई भी रूप है, जो अलग-अलग मॉड्यूलों में स्रोत से गुजरने वाले संदेश के जीवनकाल के दौरान आवेदन कर सकता है? इससे डेटाबेस से पढ़ने की विलंब को कम करने में मदद मिल सकती है। यदि यह संभव नहीं है, तो क्या सुझाए गए विकल्प होंगे? आप आम तौर पर इसके लिए एक ट्रांसफॉर्मर का उपयोग करेंगे, या शीर्षलेख-एनरिक, क्वेरी परिणाम के साथ एक संदेश हैडर सेट करने के लिए; फ़िल्टर में हैडर का उपयोग करें, और हेडर आपके ट्रांसफॉर्मर सहित डाउनस्ट्रीम मॉड्यूल के लिए उपलब्ध होगा। & lt; int:...

Access MySQL field's Comments with PHP -

When you are creating a field in a MySQL table, there is a 'Comments' box to fill. How can I get the data in the 'Comments' box in PHP? Press around info_schema information_schema Select table_comment from theslsechema_schema.tables WHERE table_schema = 'myschema' and table_name = 'mytable'

c# - Export to Excel the complete MVC View with Non-table Content -

I am working on an MVC application. We have a scene that has 30 different text boxes / dropdown controls and 2 tables. When the user clicks on export in Excel, I need to export all the control and table data. What is the best way to export these results in Excel? I have created a different view for Excel and have tried to export the axle to see. Public execution ExprotToExcel (int id) {var model = GetExportModel (id); HttpContext.Response.AddHeader ("content-type", "attachment; file name = XX_" + date time.Now toastring () + ".xls"); This.Response.ContentType = "app / vnd.ms-excel"; See Return (Model); } But the above code is not formatting Excel data Currency and decimal areas are not being formatted. Can we format the data in the above scenario? Please help me with the right perspective You use the NPOI or Explet Library You can make a memory excel book like this and a file can be returned as a result. Below is a simp...

passing Edit text data from android to php -

I need to read data from an external database with hundreds of items. I have done so far that I wrote php query Which returns all the items, so I php: $ db_host = "host"; $ Db_uid = "username"; $ Db_pass = "password"; $ Db_name = "person"; $ Db_con = mysql_connect ($ db_host, $ db_uid, $ db_pass) or die ('Could not connect'); Mysql_select_db ($ db_name); $ Sql ​​= "Select from the employee"; $ Result = mysql_query ($ sql); While ($ line = mysql_fetch_assoc ($ result)) $ output [] = $ line; Print (json_encode ($ production)); Mysql_close (); Android: string URL = "http: //localhost/index.php"; Public Zero OnCreate (Bundle savedInstanceState) @Override {/ * * StrictMode is used to catch the most casual disk or network * Main thread of application * / StrictMode.setThreadPolicy (New StrictMode.ThreadPolicy.Builder () .detectDiskReads ( ). DetectDiskWrites (). DetectNetwork () .penaltyLog (). Build ()); Supe...

c# 4.0 - Aspose Slides Table Cell Insert HTML content -

I'm working with Aspose to generate PPT in my application, I have a position where I need to insert In the section HTML text in the table, I have verified all the blogs, no one has given me the answer. If any body knows here, please tell me thank you in advance. After You can use the paragraph of the TextFrame paragraph associated with each cell to insert the HTML aspose For the .Slides .NET, check the following code: // represents the PPTX file using the presentation class (Presentation Pres = New Presentation ()) {// Access First slide islide sld = pres.Slides [0]; Define columns with width and rows with width [double] dblCols = {250, 250}; Double [] dblRows = {150, 130, 130}; // Add table size to slide iTable tbl = sld.Shapes.AddTable (100, 50, dblCols, dblRows); // Set the range format for each cell foreach (tl.Rows in the IRow line) foreach (the line in the ICell cell) {cell.BorderTop.FillFormat.FillType = FillType.Solid; Cell.BorderTop.FillFormat.SolidFillColor....

html - safari z-index and overflow not working -

Image
मुझे सफारी में z- इंडेक्स ब्लॉक के साथ एक समस्या है http: // rhino .shahumyanmedia.com / यह वेबसाइट अन्य ब्राउज़र में ठीक काम कर रही है, लेकिन शीर्ष 4 सर्कल ब्लॉकों को ठीक से प्रदर्शित नहीं किया जा रहा है, ब्लॉक की छवि ब्लॉक से बाहर हो रही है, हालांकि ने अतिप्रवाह दिया है: छुपी हुई है, और मुख्य ब्लॉक और छवि के लिए z-index नोट: मुझे पृष्ठभूमि के रूप में छवियां बनाना पसंद नहीं है यहां मेरी शैली है .add-border {border-radius: 300px; -मोझ-सीमा-त्रिज्या: 300px; -ओ-सीमा-त्रिज्या: 300px; -वेबकिट-सीमा-त्रिज्या: 300px; सीमा: 8 पीएक्स ठोस आरजीबीए (20, 172, 225, 0.3); चौड़ाई: 100%; ऊंचाई: 100%; स्थिति: पूर्ण; Z- इंडेक्स: 5; शीर्ष: 0 पिक्सेल; बाएं: 0 पिक्सेल; छिपा हुआ सैलाब; } .service-img img {-webkit-transition: all 0.5s ease; -ओ-संक्रमण: सभी 0.5 एस आसानी; -मोझ-संक्रमण: सभी 0.5 एस आसानी; -व्यवस्थापन: सभी 0.5 एस आसानी; Z- इंडेक्स: -1; सीमा-त्रिज्या: 300px; -मोझ-सीमा-त्रिज्या: 300px; -ओ-सीमा-त्रिज्या: 300px; -वेबकिट-सीमा-त्रिज्या: 300px; }। सेवा एक {सीमा-त्रिज्या: 300px; छिपा हु...

Send image to WCF from Android -

यह एंड्रॉइड से मेरा कोड है सार्वजनिक वर्ग UploadImage AsyncTask और lt; Uri, शून्य, स्ट्रिंग & gt; {@ ओवरराइड संरक्षित स्ट्रिंग doInBackground (उरी ... पैरामीटर) {बिटमैप बिटमैप; अगर (परामश [0]! = नल) {try {bitmap = bitmapFactory.decodeStream (getActivity () .getContentResolver ()। OpenInputStream (पैरामीटर [0])); बाइटअरेऑन आउटपुटस्ट्रीम आउट = नया बाइटअरेऑनूटस्ट्रीम (); Bitmap.compress (बिटमैप। कॉम्प्रोफ़ॉर्मेट.जेपीईजी, 10, आउट); DefaultHttpClient httpClient = नया DefaultHttpClient (); बाइट [] भेजेंडेटा = बाहर। टू बैटेअरे (); एचटीटीपी पोस्ट http पोस्ट = नया एचटीटीपीपोस्ट (यूआरएल + "/" + मेथोडिने_अपलोड); HttpPost.setHeader ("कंटेंट-प्रकार", "एप्लिकेशन / जेएसन"); बाइटअरेबॉडी बाब = नया बाइटअरेबॉडी (भेजडेटा, "मोबाइल पेज"); MultipartEntity इकाई = नया multipartEntity (HttpMultipartMode.BROWSER_COMPATIBLE); Entity.addPart ("छवि", बाब); httpPost.setEntity (इकाई); HttpResponse प्रतिक्रिया = httpClient.execute (httpPost); Println (respon...

drupal 7 - Omega 4 and 2 problems -

I am new in Omega 4 and I have problems or maybe this is a misunderstanding. How do I define 960px in omega 4? I should define this in _grid.scss : $ grid: 12px; $ Gutter: 1/3; $ Tab: 44em; $ Desk: 77em; $ Mobile: 15m 35m; If this is true, then how can I do omega3 area-like vein with 100% width? !!! Post Text "itemprop =" text "> I understand what you are requesting, you can use the following CSS in your CSS template file: .l-page {width: 960px; margin: 0 auto;} but still it will not be liable, however.

go - Database connection best practice -

I have an app using pure / http My question is how Connecting to the best praise? I register some handlers with http, which we need to bring some stuff from the database, before we can move forward to write a response. This database wants me to request a request per minute or 10 requests per second. Every time I come to a request I can connect to the database within each handler. (Will this create a connection to mysql for each request?) Package main import ("database / sql" _ "github.com/go-sql-driver/mysql" "net / Http "" fmt ") func main () {http. HandleFunc ("/", func (w http.ResponseWriter, r * http.Request) {db, err: = sql.Open ("mysql", "dsn ....") if err! = Nil {panic (err) )} Defer db.Close () Row: = db.QueryRow ("Select ...") / / line line fmt.Fprintf (w, "text from database")}) http.ListenAndServe (": 8080" Zero)} The app could initially connect to the database. ...

asp.net mvc 4 - create CheckboxFor from List in View Model -

मेरा दृश्य मॉडल वर्ग सार्वजनिक वर्ग StudentQuestions {सार्वजनिक int StudentId {get; सेट; } सार्वजनिक एट फॉर्मआईडी {प्राप्त; सेट; } सार्वजनिक आभासी आइकलिंग & lt; प्रश्न & gt; प्रश्न {प्राप्त करें; सेट; }} और प्रश्न वर्ग है सार्वजनिक आंशिक वर्ग प्रश्न {सार्वजनिक int questionID {get; सेट; } सार्वजनिक स्ट्रिंग फ़ील्ड_नाम {get; सेट; } सार्वजनिक स्ट्रिंग प्रश्न {get; सेट; } सार्वजनिक int qutyp_refID {सेट, सेट} सार्वजनिक स्ट्रिंग विवरण {get; सेट; } सार्वजनिक अंतर (प्राप्त); सेट; } सार्वजनिक बूल आईईएनएटेड {प्राप्त; सेट;} सार्वजनिक वर्चुअल आइकलेंक्शन & lt; उत्तर & gt; उत्तर {प्राप्त करें; सेट; } } मेरे विचार में @model test.ViewModels.StudentQuestions & lt; table & gt; & LT; टीआर & gt; & lt; टीडी & gt; @ Model.FormId & lt; / टीडी & gt; & lt; टीडी & gt; @ Model.StudentId & lt; / टीडी & gt; & lt; / टीआर & gt; @युरच (मॉडेल में प्रश्न। प्रश्न) {& lt; tr & gt; & LT; टीडी & gt; @ एचटीएमएल। चेकबॉक...

oop - How to think about polymorphism with subtyping -

Liskov प्रतिस्थापन सिद्धांत कहता है: सुपरटिप के इन परिवर्तकों को एक उपप्रकार में संरक्षित किया जाना चाहिए । मैं विशेष रूप से इस सिद्धांत और बहुरूपता के प्रतिच्छेदन में दिलचस्पी रहा हूँ। हालांकि, विशेष रूप से उपप्रकार- बहुरूपता में, वास्तव में, यह पैरामीट्रिक पॉलीमॉर्फिज़्म और हास्केल प्रकार वर्गों के साथ ऐसा मामला है। इसलिए, मुझे पता है कि कार्य उप-प्रकार होते हैं, जब उनके तर्क दूषित हैं और उनकी वापसी प्रकार संप्रदाय। हम यह मान सकते हैं कि विधियां केवल एक अंतर्निहित "स्वयं" तर्क के साथ कार्य हैं हालांकि, यह यह दर्शाता है कि यदि कोई उपवर्ग अभिभावक की एक विधि को ओवरराइड करता है, तो यह अब एक उपप्रकार नहीं है, क्योंकि इसमें से कोई एक तरीका अब उपप्रकार नहीं है। उदाहरण के लिए। निम्नलिखित छद्म कोड लें: वर्ग अभिभावक: गिनती: इंट इंरंसमेंट: पेरेंट - & gt; () {Count + = 1} वर्ग बाल विरासत में मिला है: वेतन वृद्धि: बाल - & gt; () {Count + = 2} तो एलएसपी वापस जा रहे हैं: क्या हम कह सकते हैं कि Parent.increment () की एक संपत्ति Child.increment () भले ही ये द...

ASP.NET MVC action does not recognise post json data -

I have this form 3 field, which I want to do in controller action: & Lt; Form role = "form" class = "form-inline" name = "frmUserData" id = "frmUserData" & gt; & Lt; Div class = "form-group" & gt; & Lt; Label = "txtlitm" & gt; Item code: & lt; / Label & gt; & Lt; Input type = "text" class = "form-control" id = "txtlitm" name = "txtlitm" & gt; & Lt; / Div & gt; & Lt; Div class = "form-group" & gt; & Lt; Label = "txtmcu" & gt; Branch Plant (filter): & lt; / Label & gt; & Lt; Input type = "text" class = "form-control" id = "txtmcu" name = "txtmcu" & gt; & Lt; / Div & gt; & Lt; Div class = "form-group" & gt; & Lt; Label = "txtlocn" for & gt; Location (filter): & lt; / Label & gt; & Lt; Input ...

c++ - Debug vs release library version has different behavior with debug/release client application -

I have a library (dynamic with built-in linking created by MSVC 10.0), which exports sections and STL containers. It was created as a release and made as debug (two versions). This is not mine, so I do not have a source code. I have a simple application, which is also created by the call method (MSVC 10.0 from this library, so I think there should be no problem if debug Link is created as a version of the debug library - everything seems to work, as it seems. The release version of the App Library built as a release link - everything works, As it seems. If the Library The app created in the form of an IBB link release version - appears to be a mistake inside the library logic, it throws the exception length_error with the text "The vector is too long Why can it be so, if it works entirely without any changes, just because the app has a separate release / debug setting? Selecting "Release" / "debug" does not change any default IDE settings....

c# - how to call a .aspx file in a .ascx file with json/ajax -

I am currently trying to create a very large website, which is ASP.N Currently I'm working on a bit where the user presses a button and some special text is shown (this explanation is described to make it relatively simple). I have to show in a small block on the site. I want to use AJAX / json to call the Axx file The .aspx file has its own method that produces output, so I need all. To call the .xx file aspx file, maybe specify that method and pass the parameter I will post my code below, can someone please take a look? Please tell me whether I forgot something important or something is not clear. Although I am not a supporter at this PollDetail.ascx & lt; Script src = "// cdn.jsdelivr.net/excanvas/r3/excanvas.js" type = "text / javascript" & gt; & Lt; / Script & gt; & Lt; Script src = "// cdn.jsdelivr.net/chart.js/0.2/Chart.js" type = "text / javascript" & gt; & Lt; / Script & gt; & Lt; Div ru...

makefile - How to have the dollar sign printed in a multi-line variable with GNU Make -

I am using the sample Makefile below to print SCRIPT_BODY based on the VAR value: define SCRIPT_BODY Foo = $ (VAR) start end endef export SCRIPT_BODY. PHONY: All: $ (Make) body VAR = '$ $ bar' PHONY: Body body: @echo "$$ SCRIPT_BODY" The problem is that I am getting the following output foo = ar end instead of $ sign Any ideas on how to be printed? post text" itemprop = "text"> There is no point in the fact that SCRIPT_BODY - The line variable is: you SCRIPT_BODY = foo = $ (VaR) . In fact, $$ bar is evaluated twice from form : once when assigning VAR and before exporting SCRIPT_BODY , the first evaluation goes to $ bar to open it, from the second to r , as b Your is not a variable of Makefile . You can prevent this second evaluation by using the create function: define SCRIPT_BODY foo = $ (value VAR) end endef

target first occurence of element css -

I can add & lt; A & gt; I want to target the first time of the element, the first child does not work because it is for all children & lt; A & gt; s selects any ideas? & lt; Li class = "cat-item cat-item-1 current-cat" & gt; & Lt; A title = "See all posts filed under the basket" href = "http://machinas.com/wip/esprit/wiki/wordpress/?cat=1" & gt; Basket & lt; / A & gt; & Lt; Ul class = "children" & gt; & Lt; Li class = "cat-item cat-item-19" & gt; & Lt; A title = "View all posts filed under Article list" href = "http://machinas.com/wip/esprit/wiki/wordpress/?cat=19" & gt; Article List & lt; / A & gt; & Lt; Ul class = "children" & gt; & Lt; Li class = "cat-item cat-item-20" & gt; & Lt; A title = "View all posts entered under mobile" href = "http://machinas.com/wip/esprit/wiki/wordpre...

api - Get Facebook friends list on login -

I need to get the list of all the friends of the logged-in user. But I'm stuck with the way to get results. $ user = $ facebook-> GetUser (); $ User_friends = $ facebook- & gt; API ('/ mi / buddy list', array ('field' =>; id, name '')); Print_r ($ user_friends); I'm getting Fatal error: Undiscovered OAuthException: unknown path components: / Throw list of friends base_facebook.php on line 1254 / me / friendlists Code> / me / friendlist . Although you will not find the user's friends, but only friends created to sort their friends. To get to friends, you'll find / me / friends , although you will only be able to find friends who are also using your app. More about the change since April 2014 See Changelog Lodge for information:

macvim - How to paste same text in Multiple Position of Multiple Line on Vim -

I recently changed my text editor from iTerm2 to simulim text from Vime I am looking for a plugin to paste text in Multiple Position of Multiple Line on VIM (I can select the cursor like the multicursor on the sublime text And use CMD + in other positions, click to select and then paste.) I have seen the plugin but only for example - the cursor is different Permission to select different places on the line as the bottom Please give it. Line 1: Go to website [cursor here] Anne Line 2: Commodo Leguella [cursor here] Egget Dollar Enan Masasa without Social Community line - Line 3: Penalties and large size monteges, [corsor]] Breeds of robbery. Line 4: Now [Coors here] VIM version VIM version Your help will be highly appreciated And thank you very much ago. VIM - V IMproved 7.4 (2013 August 10, compiled 21 April 2014 14:54:22) MacOS X (UNIX) version warning I advise Vim to try to stop its previously editable ports; Eventually, the mode-based editing...

php - How to combine array that has same key? -

I get this array, but I want to show me the key and all the subtabs of that key, I do not have it all the time To repeat the desired key, I need that the key only shows one and all other units which have the same key under this one. array (2) {[0] => Array (1) {["A"] = & gt; String (2) "Test 1"} [1] = & gt; Array (1) {["A"] = & gt; String (2) "Test 1"}} I array (2) {[0] = & gt; Array (1) {["A"] = & gt; String (2) "Test 1", string (2) "Test 2"}} use the following: $ return = array_merge_recursive ($ array, ...); In your case, : $ return = array_merge_recursive ($ array [0], $ array [1]); But I guess you need a more dynamic solution, I'll prepare it now. $ return = call_user_func_array ('array_merge_recursive' $ array);

Delete specific message in activemq queue from c# -

I am coding with C # and activemq, using NMS and Apache-active MT-5.9.1 I am I want to set a unique GUID for each message when I send it to a custom property, then I can delete a specific message with its grid (do not clear the queue, just delete a message). I got such a question, but there is no answer to this, so I ask again. There are only two things that can do with NMS API in this regard. The first question is, as the entire destination has been removed. Second, the user who is assigned a selector who will match the message you want to discard. The consumer will receive and the ACK message which will be removed from the broker. This works when the depth of the queue is not so good that the message has been stored in message message archive and it is not being adequately enlarged due to the maximum page settings in ActiveMax. The only solution is to use the REST API provided by Joelokia to reach AOTMQ MBN and try to delete the message, although you still have to issue ...

python - change string during pyparsing -

In my pyparsing code I have the following expressions: exp1 = literal ( "foo" ) + pressing (literally ( "=")) + words (alphanums + '_-') exp2 = literal ( "foo") + press (literally ( "! =")) + words (alphanums + '_-') Exp = optional (exp1) & amp; Optional (exp2) I want to change the foo from bar to exp2, so that I'm in perced data = and! Is it possible to differentiate between =? The comments of Karl Connectchtel are valid, but you do not want to change a token Pars can do this in action def changeText (s, L, T): .. Return "boo" + t [0] expr = literal ( 'A') setParseAction (changeText) + "B" print expr.parseString ( "AB"). AsList () will be printed: [ 'booA', 'b'] If you continue If you want to change the expression with the literal string, then replace : expr = literal (".") SetParseAction (replaceWith ("A to Z")) + ...

windows azure storage - CloudFileShare CreateIfNotExistsAsync().Wait method throwing The remote server returned an error: (400) Bad Request -

postprint "itemprop =" text "> I use Azure File Service Preview as a mapped drive between two of your examples of a cloud service I am trying and I came across the following blog post with some details: I have not signed up for the preview version of the storage account and created a new storage account And verified that the file has been included in the endpoint. I use the following code to try to make a part in the program: CloudStorageAccount account = CloudStorageAccount.Parse (. System.Configuration.ConfigurationManager.AppSettings ["SecondaryStorageConnectionString"] ToString ()); CloudFileClient Client = account.CreateCloudFileClient (); Share cloudfileshare = customer GateShare ("SCORM"); {Share.CreateIfNotExistsAynync () try Wait (); } Hold (collecting exception e) {var test = e.Message; Var test1 = e.InnerException.Message; } Wait on CreateIfNotExistsAsync () method I am getting a gross exception and details it just says the...

Perl array element manipulation -

I was trying and trying with this one, but it just does not seem to be the click if I have a Array, then say 6 numbers: @ a = (1,2,3,4,5,6) How do I get every other index (2, 4, 6) in this matter? How do I calculate the difference of every two elements, then the output will be here: 1 1 1 (because 2-1 = 1 and 4-3 = 1 and so on ..) $ a or $ b , they are special ( sorting using them ...) ... is usually better for giving your variable a descriptive name, letting it know as to what kind of variable it is (my $ index = 0; $ index

is vAxis: {slantedText: true} possible for Bar Chart [Google Charts]? -

Image
I am able to create hAxis: {slantedText: true} for column chart But is it applicable to vAxis for bar charts? Column chart: Bar chart: (Ignore data, this is just an example) As shown in the vAxis.slantedText: settings: true will not be enough, I'm not sure why, and my (limited) knowledge I can achieve it Do not know in any easy way. Depending on your frustration, you get your code to get a similar rotation for your VAxis label () drawChart function: // rotate vAxis label Var array = $ ('g'); (Var i = 0; i & lt; array.label; i ++) for {var logicalname = array [i] .logicalname; Var text = $ (array [i]. Child [0]); If (logical name! = Null & logical name.exx ("vAxis") == 0 & amp; amp; amp; and logic.index ("label")> {text.attr ("conversion "," Rotate (- 30 "+ $ (text [0]). At ('x') +" "+ $ (text [0]). Atter ('Y') +");); }} Hopefully someone tells an easy way...

Creating an Facebook Graph API Achievement for a game with iOS SDK -

I am currently developing a game that does not have a canvas version. It will be playable on iOS and Android platforms. I have to work with the game achievement object. I followed . Send me the meta tag & lt; Meta property = "og: url" content = "Your URL could not understand here on the object" />. I actually did what I started my own server and created an .html file with the content shown in. I've put on my own object on an object with http://192.168.2.6:8888/facebooktest/achivement.html . I used code - (IBAction) updateAchivement: (ID) sender {NSDictionary * params = [NSDictionary dictionaryWithObjectsAndKeys: @ "**** 888 **** 3612", @ "FB : "App_id", @ "game.achievement", @ "OG: Type", @ "http://192.168.2.6:8888/facebooktest/achivement.html", @ "Ogg: URL", @ "Sample Game Achievement" , @ "Og: Title", @ "https://s-static.ak.fbcdn.net/images/devsite/atta...

r - Mark start and end of groups -

एक data.table फ़ॉर्म की संरचना पर विचार करें विक्रेता खरीदार महीने 1: 50536344 61961225 1993-01-01 2: 50536344 61961225 1993-02-01 3: 50536344 61961225 1993-04-01 4: 50536344 61961225 1993-05-01 5: 50536344 61961225 1993-06-01 जहां मेरे पास (खरीदार, विक्रेता) समय के साथ जोड़े हैं मैं हर जोड़ी के लिए शुरुआत और अंत को चिह्नित करना चाहता हूं। उदाहरण के लिए, हम देखते हैं कि जनवरी से फरवरी तक एक जोड़ी थी, मार्च में कोई भी नहीं, और अप्रैल से जून तक एक था। इसलिए, निम्नलिखित अपेक्षित आउटपुट होंगे: विक्रेता खरीदार का महीना शुरू होता है 1: 50536344 61961225 1993-01-01 सही गलत 2: 50536344 61961225 1993-02-01 झूठी सच्ची 3: 50536344 61961225 1993-04-01 सही गलत 4: 50536344 61961225 1993-05-01 झूठी झूठी 5: 50536344 61961225 1993-06-01 झूठी सच्ची यह मानते हुए कि माह में दिनांक वर्ग (या POSIXt , आईडीटेटीम या diff विधि वाला अन्य वर्ग), आप diff फ़ंक्शन का उपयोग कर सकते हैं ऐसा करें # सॉर्ट डेटाटबल सेटकीव (डीटी, सी ("विक्रेता", "खरीदार", "महीने...