Posts

Showing posts from July, 2015

asp.net - scroll go to the top page -

Use pure web methods to save data from the net when I press to save all pages Go to top I How can I save status status Post Back You can set it to the program Page.MaintainScrollPositionOnPostBack = True; In the page declaration keep the page or web.config & lt; System.web & gt; In the section. & lt; Maintaining pages ScrollPositionOnPostBack = "true" />

css - Jquery .click and .mouseover not working on css3 display:table ,row, cell worked on html table? -

I had a table that was generated from standard HTML and JQuery was used. MCOOVER event listener as well as .click listener Everything was working fine. I have taken steps to collect data from the Facebook API and then used divs and css, making notifications on the page. The breakdown of the code is as follows. This is jquery function $ (document). Mouseover (function (.ready (function () {$ ( '.fbLikeImage')) {$ likeID = this .id; document.getElementById ( 'uiFBULikeName') innerHTML = this.alt ;. document.getElementById ( 'uiFBLikeImage') innerHTML = ". & lt; img width = '70 'height =' 70 'class =' ​​fbUserImage 'src = "+ this.src +" & gt; ";}); $ ( '. fbLikeImage') function (click (.) {showDiv ( 'uiCommentTextInputWrapper'); showDiv ( 'likeButtonWrapper');}); }); Then the HTML presented here There are several more rows, but this is the basic structure. Here is the...

version control - Managing PDFs/binaries with Git or other VCS -

I am currently working on a latex project for a "thesis" type, and I thought it was a GIT Secure idea to track workflow with, because this is probably the best version-control system that I have come across now, Git source codes will handle files files in a great way, but how well the binary files handle is? I am unsure about whether to track * .tex sources along with my PDF though I can reproduce my PDF from any modification / branch, this time It can be a taker, and it usually happens to bring the relevant PDF version soon; Git handle this? Is there a way to flag the clear editions within the GIT repository, and can I set it, for example, can I compare the PDF output of today's edition with the previous week? Rolling PDFs back to a specific branch will overwrite, or at the very least, will need to recompile; I just want to be able to log in to my progress and store it efficiently, and in this process, Git may be able to return my work, but it is possible, but wh...

flash - ActionScript-3 Call Function on Every Frame Without Having to KeyFrame every Frame in between -

I want to call a frame when the frame between keyframe 1 and keyframe 60 once, but I do not want to call the function One keyframe on each one frame in the middle of an action going. Is there a simpler way like this tweing to perform this function without having to produce 60 unique keyframes on each frame? Keep a count variable and use ENTER_FRAME event something like this: / P> // Make a count anywhere in your class or whatever personal var m_currCount: int = 0; // Add an EnterFrame Event Listener to the Forum. This.stage.addEventListener (Event.ENTER_FRAME, this._onUpdate); // Our Update Function Private Function _Onupdate (E: Event): Zero {// Call Your Function Here something (); // Let us calculate this. M_currCount ++; // If it is 60, then stop (this. M_currCount> = 60) this.stage.removeEventListener (Event.ENTER_FRAME, this._onUpdate); }

cuda - CUBLAS - is matrix-element exponentiation possible? -

I am using CUBLAS (Cuda Blas libraries) for the matrix operation. Exponentiation / root mean of the CUBLAS matrix item to gain the square? I mean, having 2x2 matrix 1 4 9 16 What do I want to say to a given value above There is a function to lift 2 1 16 81 256 and calculate the class square of the root like 1 2 3 4 Is it possible Cubes? I can not find the appropriate function for this goal, but I will first ask here to start my own colonel coding. So you probably have to implement do yourself because the library For this it will not. (Perhaps this is something to implement in terms of BLS level 3 routine - certainly squaring of matrix elements - but it would include expensive and otherwise unnecessary matrix-vector multiplication and I still do not know how to ' D do workaroa operations) The reason is that these functions are not actually linear-algebraic processes; Taking the square root of each matrix element does not really match any of the origi...

android - Trying to write a query with LIKE and a variable with content -

int FROMcountryChooseId = 10; स्ट्रिंग टूकॉन्न्व = = (संपादित करें देखें) वीवबिइआईडी (आर.आईड.नंबरएडिट वीज); स्ट्रिंग क्वेरी = "चुनें देश से देश के देश में, देश के देश में, देश के सभी देशों में, देश में, देश के सभी देशों में, देश में, देश में, देश में, देश में, देश के सभी देशों के लिए। डीआरआईएन ° ऑर्डर द्वारा ड्रग एएससी लिमिटेड 1000; "; MyDataBase.rawQuery (क्वेरी, selectionArgs) नमस्कार, मुझे नहीं पता कि कैसे मेरी क्वेरी को wordToConvert को चर के रूप में पहचानना है कि सामग्री कुछ और न सिर्फ एक स्ट्रिंग। आप का उपयोग करना चाहिए उचित स्ट्रिंग प्रतिस्थापनों को करने के लिए। sqliteDatabase.rawQuery ("चुनें से अलग ट्रिम (देश.देश) देश, DCI जहां देश देश.क्षेत्र = = और देश। देश की तरह? और DCI._ID = मेडिकैमेंट्स। डीसीआईएनएसीई ऑर्डर ऑफ ड्रग एएससी लिमिट 1000 ", नया स्ट्रिंग [] {इंटीजर। टॉस्टिंग (एफ्रोक्रॉन्टरी चुन डीआईडी),"% "+ टूकॉन्वर +"% "}); बस एक ? को जगह दें, जहां आपकी लीटरल्स जाती हैं, और स्ट्रिंग सरणी में संगत मान सेट करें। एंड...

android - Can't succed to write in a database -

Hi! I am trying to create an application that receives GPS data for days and store it in SQLT database. I have created the database and I also have a geo point array list which I am putting in my geographic points. GPS data is now fake with the help of a KML file, my problem is that even though I succeeded to display the location that has been updated with the new location, when I try to read from the Sclit database And displaying on the screen, I do not get anything, no one is displayed on the screen. Here is my code: Map activity in public square screen 4 (Private Location Manager LM; Private locale location station; Private MyLocationOverlay myLocOverlay; see private map map map; Private Map controller MC; Override public zeroes on the list of & lt; GeoPoint & gt; GeoPointsArray = New ArrayList & gt; GeoPoint & gt; (); Int Latitude; Int Latitude; @Create {Bundle Saved InstantStat} {Super. Nakrat (Saved Instantstate); setContentView ( R.layout.screen4); Lm = ...

iphone - Changing UIImage when device orientation change -

How can I change the background image whenever the device orientation changes? your UIViewController's willAnimateRotationToInterfaceOrientation: Duration: Change the image in the method.

sql - what is wrong with this UNION ALL mysql query? -

SELECT 'Q' प्रकार के रूप में, q.question AS मान, q.date से प्रश्न q Where q.user_id = 39 यूनिअस सर्व का चयन 'ए' के ​​रूप में, q.question AS मान, उत्तर से a.date, प्रश्न q जहां a.question_id = q.id और जहां a.user_id = 39 आदेश 'डीएएससी' द्वारा त्रुटि: 1064 - आपके SQL सिंटैक्स में एक त्रुटि है; निकटतम 'WHERE A' का उपयोग करने के लिए सही सिंटैक्स के लिए आपके MySQL सर्वर संस्करण से संबंधित मैन्युअल की जांच करें User_id = 39 आदेश दिनांक डीईएससी दो हैं क्वेरी के निचले हिस्से में कहाँ-धाराएं आपको सचमुच सिर्फ अंतिम शब्द को निकालना होगा जहां त्रुटि विवरण आपको बस की आवश्यकता है।

create own wordpress theme (tewnty ten as base) -

I have to create a custom wordpress theme. I still do not see this, so what do I look for twenty ten theme files Can be customized detected. So I searched for the menu creation work in the header.php file and found it 'primary')); ? & Gt; But I do not know what this function does ... where it has been written that the HTML code like & lt; Ul & gt; & lt; Li & gt; and so on ... I do not want to edit HTML code! is concerned, Peter wp_nav_menu Check out for it is a menu system added to WordPress on Version 2.9 (I believe). If you navigate in presence in your dashboard - & gt; In the menu, you can customize it through an interface. In Twenty Ten, Fallback is wp_page_menu , which displays a list of your pages. Do you like to make your hands and hard work in the theme (not appropriate, but possible) just delete the relevant code and replace it with your own HTML. My advice is to look for the menu in the interface, make a menu, provide...

javascript - Select a div within a while of divs -

How to choose a div between div set is the same class? These divs are taken from a database and have been shown using a mysql_fetch_array. Cause I want to use / edit the information contained in each of these divs. Any kind of work is welcome: jquery, javascript, .. Regards! You can use the jQuery selector and / or function (and their derivatives : First / first () , : last / .last () , ...) To select from the div s index, if you are asking. Example: var thirdFooDiv = $ ("div.foo:eq (2)"); // third, first 0 is

javascript - Firefox DOMContentLoaded and load events are very slow on large content in textarea -

I am trying to load a large (multiple megs) document in textarea. The network load time in the rare firebug (which is actually minimal when I reload it because it is 304), telling me that it is about firing for DOMContentLoaded and load events Taking around 20 seconds to move around. If I change the teditarera into a diva, then it drops up to 5 seconds, even if it is given full content! There are no JavaScript libraries loaded - I first tried to unload them. I have loaded many CSS files. Any ideas about this which makes it so slow or better than that, how to move things? Material loads one part at a time? Unlike ugly but at least it allows the user to view a locked browser and potentially instead of taking "this script is too long". This is Firefox 3.6.15 on Ubuntu. & lt; Br> one per line & lt; Div & gt; There is a lot more work than a single text node of to present the child. You should try Firefox 4, which readnode directly (or instead of ...

css - JQuery Accordion 2 Columns vs 1 Column -

I have an Accordian that is trying to modify Im because Accordian is too large (too high) I have to change it from 1 column to 2 columns. It appears on one side. The reason is with the same column approach, because of many things there is a lot of height. Here JSFild is: I am trying to do this so that the column which is not selected remains intact - it is not running without it. Is anyone aware of this? dt / Code> s Instead of just entering dl s in the first column.

.net - Ninject WCF Extension ArgumentNullException using NET.TCP Binding -

I have a WCF 4 service with 2 endpoints configured to use wsHttpBinding and netTcpBinding. I am hosting the service within IIS 7.5 and using the DINIT WCF Extension in my service. My service works fine when I use the wsHttpBinding endpoint to call my service, but when I use Net TCPbunding when I look in my application event log, I get the error below. I have tried to debug the problem in VS2010, but this is not getting anywhere with the speed. I do not want to remove Ninegig from my WCF service, if possible, I think that I can only use wsHttpBinding but this is an internal service and I want to get performance benefits which provide netTcpBindings. WebHost failed to process a request. Sender information: System.ServiceModel.ServiceHostingEnvironment + HostingManager / 30,180,123 Exception: System.ServiceModel.ServiceActivationException: Service '/ProfileService.svc' can not be activated due to an exception during the compilation. The exception message is: The null paramete...

What is the correct way of representing double in c#? -

I am using the first thing and my new company is using it in another way. Double X = 1.99; Double y = 9.02 d; Which is correct and why? And if both are right, how is it used in different circumstances? From From: By default, on the right side of the assignment operator A real numeric verb is considered as a verb double though, if you want an integer number to be considered as repeating, use suffix D or D, for example: double X = 3D; double x = 1.99; and double y = 9.02D; There is no difference between

xcode - Is it possible to switch between different localizations when developing a Mac application? -

I am developing an application in Mac OS X. To make the application more accessible I'm localizing it using different XIB and string files. Since the strings in different languages ​​can vary in length and to ensure that I do not want to forget a string in which my next question is: Does anyone while developing this application Is it possible to switch to another language? I know that I can set and log out the language for the whole system, but this is a bit complicated for quick checking. Can someone set the info.plist key? There is no need to logout in the settings of the language in system preference any later Applies to started applications, so what you have to do is change the language, leave your application and open it again. You can permanently change the language used by applying the Apple Languages ​​ key to the default of an application, for an example of a given app, its value In the global domain, you can see that key, which is set to system prefere...

vb.net - SQL for oledbDataAdapter search function -

I am currently trying to create a search function on a page in VB.NET, which would allow me to search for a database Will allow customerID from a text box called txt search and then it is presented in the datagrid. So far, I can display customerID by using customers using manually where 'A%' like a customer '' but do not know how to replace A with data that will be inserted in the text box. You can use this to pass in the query using syntax: select from customers where customer ID @ search search + '%' in VB.NET dim struct "Select" in the form of a string * Ask customers, such as customer ID @ search param + '%' "SqlCommand = new SQL Commands (Structured, Connection) CMD as the CMD CommandsType = Commandat Wipe Text DMRM SQLPRMRAR = new escappamator ("@SearchParam", SKLDB Type VC, 50) PreMDER Ection = ParameterDirection.Input prm.Value = txtUser.Text cmd.Parameters.Add (prm)

java - How to identify "Alt +" keypress, properly and reliably? -

My question is actually more general, but I'm using the action of the user holding the "Alt" key, And by pressing "+" as an example, which shows the difficulties. I am working in a US English keyboard, in which "=" (lowercase) and "+" (uppercase) are on the same key, so "Alt +" (as shown in the menu entry Press), actually press "Alt Shift =" to me. In Java AWT, pressing "Alt Shift =" generates key-pressed key event with the keycode associated with the "=" key, and the key-type key event with the character "A ±". Then there is no clear, reliable way to decide "Alt" was organized when "key" was pressed. I can do some mapping internally to fix this, like "+" to mapping the mapping "an ±" "Alt +" or "Shift {keycode for =}" though There is no guarantee that it will work in different keyboard layouts; And this is definitely not a go...

python - Flask redirects on GAE -

Hello I am using a flask on Google App Engine (http://flask.pocoo.org/) I have a low code @ app.route ("/ edit.html", methods = ['GET', 'POST']) def (): If request.method == 'GET': form = ImageForm () return render_template ('edit.html', title = u'Add ', form = form) if request.method ==' POST ': image = Image () form = ImageForm (Request Form , Image) if form.validate () and request.files ['image']: form.populate_obj (image) if request.files ['image']: image.file = request.files ['image']. () Image.put () Return Redirect (url_for ("edit", id = image.key ()) Other: return render_template ('edit.html', title = u'Add ', form = form) @app ( AD): image = Image.get (id) form = ImageForm (request.form, image) route ("/ edit / & lt; id & gt; Html", methods = ['GET', 'POST'] ) Return to Reader_Template ('edit.html', title = u'Edit ...

django - Converting timezone-aware datetime to local time in Python -

How to change timely-aware data-time objects for local timezone for synchronous non-timezone-aware datetime Are you My special application uses Django (though, it is actually a normal python question in reality): import iso8601 .... date_str = "2010-10-30T17: 21: 12Z" .... D = Iso8601.parse_date (date_str) foo = app.models.FooModel (the_date = d) foo.save () Due to throwing an error, Django: Increase ValueError ("MySQL does not support backend timezone-aware database.") What do I need: D = iso8601.parse_date (Date_str) local_db = SOME_FUNCTION (d ) Foo = Apikmolskfumodel (the_date = local_d) What will be SOME_FUNCTION ? In general, an arbitrary timezone-aware date for a fair (local) date Time to change the time, I use the pytz module and osteomazone to convert to local time, and to replace replaced with datetime To create: [ex] in [76]: In imported pitts [77]: est = pytz.timezone ('US / Eastern') [78]: D. Stimmo...

c++ - Resizing a double buffered widget? -

Right now, my text widget is double buffered (when an event occurs when it draws text to a bitmap) When I change the size of the widget, it does a great job. When I change its shape, I create a new with al_destoy_bitmap and new dimensions. It is very slow. How do most Double Buffed Guis like Windows and Mac OSX avoid this problem? Thanks I recently double buffering for the purpose of collision detection Flash is There was a similar problem, bitmap data structures were relatively slow (it is very sad in itself because allotment of raw memory should be flash and your case is fast). What I did was to just support the bitmap to cache and reuse it whenever possible, so if someone would change the size of 250x250 then I could use a bitmap again 280x260 was. Whenever a widget was done with a bitmap, it will be reused to use it again, or if they shrink and can use a small one I had a cap on the total memory used It could be done and if unused bitmap is crossed then it will tamper ...

iphone - Why is the "20% battery" message box crashing my app? -

I work on an iPod app, and when I run it on a real device, my app is crashing When the msgbox 20 $% battery is left, how can I fix it? I think this messagebox stops one of my threads (timers), is it possible? What is the same if the device receives a phone call, SMS, or push notification ? If so, maybe this is something in your App Rep ?? S -Application: willResignActive: Method Please update your question to include that code, or check your code better.

Full-text search in NoSQL databases -

Is there any experience using any real experience system in which any node complete in SQL database? Was the text search? For example, how does the full-text search compare in Mongodybi, Riek and CHDB? Some of the metrics I see are deployment and maintenance and of course the ease of motion. How are they mature? Are they a replacement for the Lucene Infrastructure? Thank you. None of the existing "NoSQL" databases provide proper implementation of things called "fulltext Search "can be named, especially MongoDB is not anything yet (using regular expression is not matching full search and searching keywords using $ or $ all operators in the keyword word list a lot of" full text search " Only poor implementation) Solar, Lolastic b The use of ips or sphinx is straight forward - implementation and integration at the level of application. Your choice greatly depends on you needs and current setup.

javascript - JSLINT warning about style or errror about Conditional Expression -

I'm trying to decide that JSL is warning about two things, I do not know how Have to decide. Which line should change the code? I have pasted the code in question and warned about them very early thanks for your suggestions / answers. Jayslin says: At issue 137: A conditional expression was expected and instead an assignment was seen. while (elem = document.getElementById ("optionsDiv" + g)) at issue 140: expected '{ 'And' Return 'was seen instead. Return g; function isAnyOptionVisible () {Var g = 0; While (elem = document.getElementById ("optionsDiv" + g)) {if (elem.className === "optionsDivVisible") returns g; G ++; } Return -1; There is nothing wrong with the condition, except that elem can be a global if it has not been declared in the external area, if it has not been announced, then do this before hand: var elem, g = 0; If you want to please JSLint, you can add blank jars to clarify: whil...

security - Output buffer vulnerabilities PHP -

What is the vulnerability of the output buffer function in PHP? It is not saying that it is weaknesses, only by thinking that anyone is considered to be ugly php code? As part of separating layout output Buffering is supposed to be ugly if it is used to stumble the 'old', then the can not send the header, the production has already started ... Warning Output buffering is used for poor design. In a well-designed application, you will ensure that the titles of any reaction are sent before any reaction content, production buffering. In an application that has been made, a developer can decide to move to another headline somewhere, because the body's content has already been output. And since http headers should be sent before http body content, they use output buffering to deal with this violation of the http protocol. I have explained a few more earlier about this.

c# - How to resolve Out of memory exception in WP7 using dictionary? -

I create an application in WP7 where I have to load up to 20000 hard code data ({'a', 'XYZ'}} , {'b', 'amano'}, ....) on which I have to search. Therefore, I am trying to do this to make 'A' the key and value as "XYZ". As soon as my dictionary is filled up, this memory gives exception. How can I solve this problem by considering the WP7 application I am creating? Or is there any other way than using the dictionary? whenever you are loading so much data on Phone You are doing wrong First of all, the bandwidth issue is about to kill your app. Second, the memory issue has already killed your app. Thirdly, the CPU issue is about to kill your app. The conclusion is that your user has finished killing your app. Recommended Solutions: Find a way to classify the data so that you do not download everyone on the phone. Do your processing on the server, where it is related (not on the phone). If you insist on processing so much data ...

javascript - increase the width -

How the line width is increased when the mouse is moved where the line is drawn from the canvas and does not have an image And gradually increasing the line or slowing down with the mouse ... okay I'll explain briefly. I have created a div from the line drawn in it and once the mouse is moved to the line and move forward, then the line should proceed with the mouse pointer so that the width of the line should be gradually increased and decreased because Mouse move thx first document. GetElementById ("element" ). Style.width = w;

java - twitter4j : How to get tweet text with anchor to hash tag and urls -

I am using twitter4j to search and display tweets. Here is the code snippet query query = new query (queryString); Query result result = twitter.search (query); (For Tweet Tweet: result.getTweets ()) {System.out.pritnln (tweet.getFromUser () + ":" + + Tweet.getText ()); } Here tweet.getText () returns plain text without anchor tag (plain text not html) even though it has hashtags and URLs on some websites. To see Twitter as a Twitter search result, how can I get Twitter text with anchor tag? You use methods to get hashtags and URLs from each tweet. And there are two ways in the classes that tell you how the unit starts and ends in the text of the tweet, so when you display the tweet, you can use that information to insert link markup. The example code that removes the URLs of recent tweets: twitter Twitter = new TwitterFiner (). GetInstance (); Query query = new query ("lizards"); Query result result = twitter.search (query); (For Tweet Tweet: re...

php - Images Not Displaying -

What I need is that the images are not shown anything else. I have a my code: file); } Header ("Location:". $ _SERVER ['REQUEST_URI']); }? & Gt; & Lt ;? Php if (empty ($ files)) {? & Gt; & Lt; Form name = "form1" method = "post" & gt; & Lt ;? Php foreach (dollar files as $$ => $ file) {? & Gt; & Lt; Label = "file_ & lt ;? php echo $ key ;; & gt; & Gt; & Lt; Input type = "checkbox" name = "file []" id = "file_ & Lt; / Form & gt; & Lt ;? Php}? & Gt; The question is not clear to me, but it appears that you want to display images The form (next to each "Delete" checkbox), the user can see what they are removing? If this is the case, do you & lt; Php echo UPLOAD_DIR. .DS $ file; ? & Gt; to & lt; Img src = & lt ;? Php UCO UPLOAD_DIR.DS. $ File; ? & Gt; / & Gt;

java - How to use Apache HttpClient while the underlying connection is stateful? -

I'm doing a lot about using HTT client with multithreading. Most of them have suggested using ThreadSafeClientConnManager but my application must be entered in some host (login form page) so that HTTPPL can get an underlying statewide connection. What if ThreadSafeClientConnManager could hold the login level if multithreading? Read the following sections from this page: 3.8 HTTP State Management and Execution Reference 3.9 Per User / Thread Status Management And it may be that code you want: http client httpclient = new DefaultHttpClient (); // cookiestore cookieStore = new BasicCookieStore (); Make a local example of cookie store; // Create local HTTP references HttpContext localContext = new BasicHttpContext (); // Bind custom cookie store in local context. Local Contains. Settiet (ClientContactCOOKIE_STORE, CookieStore); HttpGet httpget = New HttpGet ("http://www.google.com/"); // Pass local reference as a parameter HttpResponse response = httpclient.exec...

C++: Do I need to use cin.get() before I use cin.ignore? -

what cin.ignore (100, '\ n') works Will the use of cin through stream? Example: cin> & Gt; Temporary; // Enter the key input if (cin.fail ()) {cin.clear (); Cin.ignore (100, '\ n'); } Or do I have to use cin.get ()? Example: temp = cin.get (); If (cin.fail ()) {cin.clear (); Cin.ignore (100, '\ n'); } Will these codes give the same results? Ah, stupid me, I made a function to make clearing calls Zero clear () {cin.clear (); Cin.ignore (100, '\ n'); } And in my program, it is called the function clear () more than once in those cases where clear () It was called twice in the row without input from the angle, it was prompted for input in a blank line. I'm guessing this,

javascript - Openlayers - Disable pan on a layer -

I am using the open layer and I am trying to create an information overlay layer. I am using my own WMS server, so for this layer, the server always sends an image with the information in it. My problem is that when I pan the map, my "information" layer also ends the pan, once the panning ends, the layer gets refreshed and the text is displayed in the correct position. This special layer (WMS), is there any way to achieve this? I tried with an external diva but did not succeed, panning was still there. Thank you! Edit: So here's what I came up with. It works perfectly, thanks for the consideration & lt; Script type = "text / javascript" & gt; ////////////////////////////////////// Use of a fidelity with the use / //////////////////////////////////////////////// //////////////////////////////////////////////// //////////////////////////////////////////////// ///// Refresh ({interval: 10000, force: true, refresh: function () {if (it.lear) {thi...

osx - I want to construct a local Git repository. I am using the config file. I got an error -

Image
मेरी कॉन्फ़िग फाइल [core] repositoryformatversion = 0 filemode = true bare = false Logallrefupdates = true ignorecase = true [remote "origin"] fetch = + refs / heads / *: refs / remotes / origin / * url = /Users/voloda2/safe/tut:tut.git [शाखा "मास्टर"] रिमोट = मुझे एक त्रुटि मिली: git push ssh: hostname / users / voloda2 / safe / tut: नया नाम और सेवा नहीं प्रदान की जा सकती है, या ज्ञात नहीं है / P> घातक: रिमोट एंड ने अप्रत्याशित रूप से टांग दिया यदि आप दस्तावेज में यूआरएल के अनुभाग को देखते हैं, तो आप देखेंगे कि यह कहता है कि : [उपयोगकर्ता @] host.xz: path / to / repo.git ... के समतुल्य है: ssh: // [user @] host.xz / ~ / path / to / repo.git चूंकि [user @] इंगित करता है कि उपयोगकर्ता @ वैकल्पिक है, यह एक scp के रूप में /Users/voloda2/safe/tut:tut.git की व्याख्या करने का प्रयास कर रहा है, एसएसएच पर एक रिपॉजिटरी के लिए शैली विनिर्देश (मेजबान को / उपयोगकर्ता / वोल्डा 2 / सुरक्षित / टट , पथ ~ / tut.git के नाम से जाना जाता है)...

java - Android read file encoding issue -

Image
I am trying to read a file from the SD card and I have been told this in Unicode format. However, when I try to read the file, I get the following: This is the file that I am using to read the file: InputStreamReader fw = New InputStreamReader (New FileInputStream (root.getAbsolutePath () + "/ Drive / SDK / Cmd.62.out"), "UTF-8"); Four [] buf = new cell [255]; Fw.read (buf); String watch string = new string (buff); Log.d ("courierread", readString); Fw.close (); If I type that output in a file, then I get it when I open it in the hex editor: text "itemprop =" text "> What's in the file? In that case Edit (from the comment) : It looks like the small-endian UTF-16 for me, try the charset "UTF-16LE".

php - Greek text writing problem -

I am working on php in my index.php page I have included the correct .php Greek text in right.php Includes index.php in html header Greek text is not displaying correctly when I open the right.php file in dreamweaver and save the page, it warns about the text. What can I do to solve it? Because right.php contains general content that is used in many pages. All of your pages' content types are most likely to save the text in Latin 1 format / Are trying to display, which does not support the characters you are trying to display. The most sensible thing is that everything is converted to UTF-8. If you are editing text manually, make sure your text editor (i.e. Dreamweaver) is set to save the file as UTF-8 and then make sure that your page has the following meta tag & lt; Meta http-equiv = "content-type" content = "text / html; charset = utf-8" />

sqlite - installing app in the Android tablet -

I have an Android app that uses sqllite, I have an APK file created in 2.2 SDK. It runs smoothly on the emulator, but when I installed it on the Samsung Galaxy Tab (Android tablet), it was installed but will not run. Please help Have you tried using DDS, this What is the error to see? It should report the line of Java, on which it crashed and gave you an indication as a problem.

actionscript 3 - Adobe Molehill draw line -

How can I pull a line with Adobe Molehill, if I was using OpenGLL, I would use GL_LEENS, But I think that Molehill can only attract the triangle. Cheers itemprop = "text"> Molehill is the only triangle, because most consumer video cards have hardware In sharpening only the triangles are possible, you can draw thin rectangular with two triangles. Not sure that it already supports lines, but it can be worth looking at.

objective c - Split NSString into components -

मेरे पास एक वस्तु है जिसमें NSString मान है। NSString * string = @ "50, 50"; मैं इस स्ट्रिंग को "," के बीच अलग करना चाहता हूं, मैं भी "50" और "50" भिन्न सबस्ट्रिंग में यह कैसे संभव है कि कोई मेरी सहायता कर सकता है। आप शायद इसका उपयोग करना चाहते हैं: घटकों से पृथकबिस्तरी:

javascript - How to convert a time format that I got from PHP to a format that jQuery countdown accepts -

I have such a time format, it is stored in my database .. and I want to convert it to a format I accept the countdown to JQuery. I think the jQuery countdown accepts this type of format Sun Jan 01 2012 00:00:00 GMT + 0800 (Malay Peninsula Standard Time) But the problem is, my time format is like this: 2011-03-29 00:01:03 In order of jQuery Hank Countdown to count, I need to convert a long format .. how to do it? Here is the jQuery website You do not need it in that long format , This is the same format that is output when you try to print javascript date objects. You must create a Javascript The basic way to do this is: var date = new date ([year], [month] , [Day]); Note: The month is zero indexed. That is January 0, is February 1, December 11. So if you spit it using php. $ date = new dateTime ('2011-03 -29 00:01:03'); Format ('n') - 1, $ date- ('y'), 'date date', 'date date', 'date date = new date (% ...

c# - Linq to SQL lambda join -

There is a problem with this, I have tried to follow several examples, but I can not find it . It uses the non-lambda path correctly, but how do I connect with the use of lambda expressions? var myCats = GetAllCats (); Var myHouses = GetAllHouses (); // pseudosql: a.id = b.id at select from an inner BO I: join var fullData = myCats (My house, one => a.id, b => gt; (a, b) => a); That's what I found by seeing other examples on the SO, but the full data type IEnumerable & lt; Cat & gt; so I can not stop any properties from the house. var full data = myCats.Join (myHouses, cat => cat.id, Home = & gt; house.id, (cat, house) => new {cat = cat, home = home}); Access complete data via first () ... cat ... or full data.First (). House ... .

php - Is there a way to print upto an even result in a for loop? -

Then I have a loop that has some output like "1,2,3, 4, 5,6 ... Does ... " Is there a way to close the loop, who says that before the loop ends, say the last number too. So we say that if its "1,2, 3, 4, 5", then 4 when the loop closes? $ M = $ n - ($ n% 2); // $ $ ($ i = 1; $ i & lt; = $ m; $ i ++) Get the largest number as well as $ n, resonate $ i; ';

jquery - How to ascertain location (co-ords) of a tweet -

I am using jQuery to retrieve and display tweets about 2 football teams in json format . I am currently printing text and user ID but I am planning to customize these Tweets to Google Maps. But first I have to catch the place of tweets. The basic code so far is below; & lt; Script type = "text / javascript" & gt; $ (Document) .ready (function () {var Team 1, Team 2; Team 1 = '& gt; Php echo $ _GET ["team1"] ;? & gt;' team2 = '& lt; php Echo $ _GET ["team2"] ;; & gt; var var ur1 = "http://search.twitter.com/search.json?q=%23" + team1 + "and callback =" Var url2 = "Http: // search .twitter.com / search.json? Q =% 23" + team2 + "& amp; callback =?"; $ .getJSON (url1, function (results) {// Tweets var res1 = results .results [0] receive text; var userid1 = results. [0] .from_user_id; $ ("# last-tweet1") .HTML (res1 + "& lt; p & gt; User id:" + U...

Specialized C++ template method never called -

and another template expertise, which I can not solve: terminallog.hh // stripped code class terminology {public: terminology (); Terminallog (int); Virtual ~ terminology (); Template & lt; Class T & gt; Terminology & amp; Operator & lt; & Lt; (Const T & V); Template & lt; Class T & gt; Terminology & amp; Operator & lt; & Lt; (Const std :: vector & lt; T & gt; & amp; v); Template & lt; Class T & gt; Terminology & amp; Operator & lt; & Lt; (Cost TV []); Terminology & amp; Operator & lt; & Lt; (Const char v []); // strip code}; terminallog.hh continued (thanks for the comment edit) // the stripped code template & lt; Class T & gt; Terminology and Terminology :: Operator & lt; & Lt; (Const T & V) {std :: cout & lt; & Lt; Std :: endl; This- & gt; letter of demand (); Std :: cout & lt; & Lt; V; Return * This; } Template & lt; Square T & gt; T...

Replacing characters in C# (ascii) -

I found a file with characters like this: Ã, è¨ ¬, ², ø - à ?? The characters that I want to do are replaced with normal characters such as: à = one, ¨ = e and so on ..... this is my code yet: StreamWriter sw = new streamer (@ "C: /JoinerOutput.csv"); String path = "C: /Joiner.csv"; String line = file. Read All Lessons (Path); If (line.Contains ( 'A')) {string asAscii = Encoding.ASCII.GetString (Encoding.Convert (Encoding.UTF8, Encoding.GetEncoding (Encoding.ASCII.EncodingName, New EncoderReplacementFallback ( "a"), new DecoderExceptionFallback ( )), Encoding. UTF8.GetBytes (line))); Console.WriteLine (asAscii); Console.ReadLine (); Sw.WriteLine (asAscii); Sw.flush (); } Actually it searches for the file for a specific character and changes it with the other. The problem I have is that if my statement does not work I How to go in This is a sample of the input file: Bring it to the ceiling on the front of the trunk, condo modis ¨ jou...

Ruby: Variable variable / method call + security concerns -

So, this is a rail app but actually more of a general ruby ​​question: I have For example a model with multiple scopes: Photo. Rent photo photographer. FEATURED My app has a "Browse photo" view where I want to be able to pass the same paragraph and the user should specify that area they want to see , That is: example.com/photos/browse?view=recent It gives me advice [: view], and let me picture it The method must be attached as a call. So my first question is how can you do this in Ruby Secondly, it can be a security risk if I can not stop the input, if I only photograph I am attached. Whatever the user type in the url then I have a risk to the hacker example.com/photos/browse?view=delete_all This is obviously a bad idea. So my second question is, how can I create a whitelist or something - or better method of any kind that can safely accept the URL from the URL and if If the user is requesting a valid nominated radius, then only the information can...

android - clearTaskOnLaunch HowTo? -

Reading here and some answers have left it unclear how clear TaskOnLaunch is to work specifically 1) How is the original activity identified? Is this just a default, with the launcher or the main intent filter? 2) Does launching from the "Home Screen" in the document mean that the OS Home screen or app list is correct? To wit. Not from within an application. 3) Whenever that activity is launched from the Home screen, or the process home screen of that activity? Because docs indicate the past, but the post here shows the latter. I think this depends on what the definition of "launch" is. Edit: 4) What does the activity stack mean "clearing", literally erasing it, or through the cycle of activities onCreate () and over ()? I have explicitly manipulated TaskOnLaunch in every conceivable form with no effect, I have kept it in my original activity in the manifest, then it is fully kept in every activity, to ensure that To completely restart your...

entity framework 4.1 - EF 4.1 Code First and Existing Database and .NET Membership -

मेरे डेवलपमेंट बॉक्स पर SQL Server 2008 R2 डेवलपर संस्करण पर चल रहे ApplicationName_Development नामक एक डेटाबेस है। मैंने कोई समस्या नहीं के साथ डेटाबेस में .NET सदस्यता तालिकाओं को जोड़ा। जब मैंने पहली बार कोड प्राप्त करने की कोशिश की तो मुझे निम्न त्रुटि संदेश मिला: सर्वर ने अनुरोध को संसाधित करने में त्रुटि का सामना किया। अपवाद संदेश "मॉडल संगतता की जांच नहीं की जा सकती क्योंकि डेटाबेस में मॉडल मेटाडेटा शामिल नहीं है। सुनिश्चित करें कि शामिल करेंमेटडाटासंपादन को डीबीएमडेलबिल्डर सम्मेलनों में जोड़ा गया है। कुछ googling के बाद, मुझे पता चला कि मुझे डेटाबेस को हटाने के लिए और ईएफ को डेटाबेस बनाते हैं। यह ठीक है, लेकिन मैंने अपनी सभी .NET सदस्यता तालिकाओं को खो दिया है। मैं वापस जाकर सदस्यता तालिकाओं को फिर से जोड़ सकता / सकती हूं, लेकिन यदि मेरा मॉडल बदलता है और ईएफ को डेटाबेस पुनः बनाने की आवश्यकता होती है तो मुझे सदस्यता तालिकाओं को दोबारा जोड़ने के लिए। मैं इसे कैसे देखूं? यहां एक आसान समाधान मिला। मुझे उम्मीद है कि यह मददगार होगा।

iphone - Mapkit lat- and longitude of current location -

I imagine this beautiful, but I do not search for it. I want to show longitude the latitude of the current user position in two text fields, one for each value. But it wont work defenatly. I thought it would be easy with one of the following values ​​... but there are many more missing lat ... mapView.userLocation.coordinate.latitude MapView.userLocation.coordinate.latitude mapView.userLocation.location.coordinate.latitude mapView.userLocation.location.coordinate.longitude Does anyone know what I need to do Is that just need to get long and non-axial value? Thank you in advance from Germany User location is not yet available in viewDidLoad If it is also where the map is being started automatically. A better place (MKUserLocation *) User Location {NSLog (@ "userLocation =% f,% F", mapView.userLocation.coordinate.latitude, mapView.userLocation.coordinate.longitude); Also make sure that: Show map view, check user location or set to yes Representa...

sorting - selection sort on singly linked list -

Image
The work of my algorithm ... almost ... for the reason the last two elements are in the wrong order after sorting. Also, the print statement is not showing me that first runs on the right. public static SLL sort (SLL list) {SLLNode first = list.first; SLLNode second; While (first! = Null) {System.out.println (first.data); // if the first goes to the other side right then = first.succ; While (second! = Null) {if (second.data.compareTo (first.data) Before sorting: FFF FAF Hi AAA by CAO After sorting: AAA by CIO FFF Hi FF output my print statement first FFF then only FF s Because the value of capitals is lower than lowercase letters.

scripting - How can I extract a substring from the results of a cut command in unix? -

I have a file that says '|' Delimited One of the fields in the field is a time stamp. The field is in the following format: MM-dd-yyyy HH: mm: ss I want to be able to print a file on unique dates. I can use the cut command ( cut -f1 -d '|' _file_name_ | sort | uniq ' ) to extract a unique date. However, with part of the time zone, I see hundreds of results. After running the cut command, I want to take the substrings of eleven characters first to display specific dates. I tried to use an awk command, such as: awk '{print substr ($ 1,1-11)}' | Cut -f1 -d '|' _file_name_ | Sort | Uniq & gt; _output_file _ I have no luck. Am I going wrong about this? Is there another easy way to remove the required data? Any help would be appreciated. It is based on the idea that the date time is in stamp field 1. EDIT: 10 from the changed field, it is also used -U option to sort with uniq instead of sep process You do not need to cut , Weird wil...

c# - LDAP subdepartments? -

Hi I am using C # and LDAP protocol. Is there any way to find a sub-department? In C #EG: Department: Finance, Subdivision: Procurement, Subdivision: Clerk I am doing it in C # The answer to this post should do the trick for you - & gt; Using the example from the link of the OU provided in your question you should follow the LDAP string LDAP: //dc1.corp.domain.com/ OU = Clerk, OU = Procurement, OU = Finance, DC = corp, DC = domain, DC = com

sql server 2008 - Performance tuning on reading huge table -

I have a large table with more than one million rows and give me a group of data to return this table In the shortest time you will have to ask. So I have created a test environment with this table definition: create table [dbo]. [Test] (NIM), [Dim1ID] [nvarchar] (20) No NULL, [Dim2ID] [nvarchar] (20) No NULL, [Dim3ID] [nvarchar] (4) No NULL, [Dim4ID] [smalldatetime] NULL, Dim5ID] [nvarchar] (20) No zero, [Dim6ID] [nvarchar] (4) No NULL, [Dim7ID] [nvarchar] (4) No NULL, [Dim8ID] [nvarchar] (4) No NULL, [Dim9ID] [Nvarchar] (4) No NULL, [Dim10ID] [nvarchar] (4) No NULL, [Dim11ID] [nvarchar] (20) No NULL, [value] [decimal] (21, 6) No NULL, obstacle [PK_Test ] Primary key cluster ([Dim1ID] ASC, [Dim2ID] ASC, [Dim3ID] ASC, [Dim4ID] ASC, [Dim5ID] ASC, [Dim6ID] ASC, [Dim7ID] ASC, [Dim8ID] ASC, [Dim9ID] ASC, [Dim10ID] with ASC, [Dim11ID] ASC (PAD_INDEX = closed, STATISTICS_NORECOMPUTE = closed, IGNORE_DUP_KEY = off, ALLOW_ROW_LO [primary]] [primary] This table is the actual table o...

winforms - How do I encrypt the connection string with EF 4.1 Code First? -

I am using RC before code to create class library and I would like to be able to encrypt the connection string I am using Class libraries can be ASP.NET or Windows Forms apps, so I need an encryption method that works with both. It appears that I can pass DbContext with a name in a connection string, but not as the value, as shown, so I do not think that before I pass the string with Dabantax Can decrypt my program manually. Could anyone point me in the right direction? You can easily encrypt any .NET configuration section - only in ASP.NET No, as many D with this topic, you & lt; Connection setting & gt; Can encrypt > Sections - and to make it still easier, you can also exclude that section from external form in a separate file. Then for your Winforms app in your app.config , you want to: & lt; ConnectionStrings configSource = "ConnectionStrings.config" /> and it will be in your web.config for your web application, and only and lt...

asp.net - Microsoft Report Viewer hiding null rows in a table -

We use clusters to display the master-detail report if any report data source has a corresponding portion of the flat table I only have tap, so how can I not show the blank record? If I understand correctly, then you want to hide the records in your report, in which the column One of the values ​​has zero values. Is this the option to update your query to exclude these lines? If this is not an option, you can add a filter to the dataset in Dataset Property Pages ... You can use this filter to remove rows from datasets that do not meet criteria You are looking for

Related terms View based on current node (Drupal) -

While navigating to the node / x, how to use the related words of the classification word of this node as arguments, and See related references after that? Say, a term is "country" in node / 123 and its word is within Canada's same vocabulary, "Canada" is the related term of "United States" and "Mexico", then I have a related See also the terms associated with that list nodes in the United States and Mexico. talking D7 .. I would suggest creating a new view with a block display, where you give classification-id as a reference-filter '); $ View-> Set_arguments (array ($ YOUR_TERM_ID)); $ View-> Set_display ('block_display_name'); Print $ view- & gt; Preview ('block_display_name'); ? & Gt; A visual-generated block does not work for me ...

apache - Virtually chroot clients using mod_rewrite? -

I am trying to set up WebDV website to upload / download various clients. However, I do not want each customer to see other client's data. Each client uses the SSL client certificate to authenticate, so I want them to get angry in their own directory tree. For example: The file system should map the location / Somewebroot / webdav / SSL_USERNAME / upload I thought I could use mod_rewrite for it but any ideas for sending me an infinite redirection loop in my rule? surname / webdav / somewebroot / webdav & lt; Directory / somewebroot / webdav & gt; RewriteEngineRewriteBase / rewriteCond% {SSL: SSL_CLIENT_S_DN_CN} Administrator # admin on webdav has not messed up RewriteRule * - [L] Rewrite %% {REQUEST_URI}! ^% {SSL: SSL_CLIENT_S_DN_CN} / (. *) Rewrite rule ^ (. *)% {SSL: SSL_CLIENT_S_DN_CN} / $ 1 [L] & lt; / Directory & gt; Once you understand that the "revertcode" supports server variables in PATTERN You have to get it in the pattern...

zend framework - Zend_Layout for modules -

How do I make each module my layout directory? Ie When I do not have any module, my layout entry in the config file looks like this: resources.layout.layoutPath = APPLICATION_PATH "/ layout" I try to enter either ; Admin Module admin.resources.layout.layoutPath = for layout directory = APPLICATION_PATH "/ module / admin / layout" where the admin module is named; But it does not work in ZF module layout / module / admin / view / script directory for some strange reasons. I also have a separate module .in config file for each module, so the layout is ignored in the form of the path. Apart from this, I am trying to follow this module but it is not working, I think the difference in ZF versions (Tutorial is rather old). So I do not know what to do Using the plugin from the tutorial you are talking about it Are: class My_Controller_Plugin_RequestedModuleLayoutLoaderZend_Controller_Plugin_Abrstract {Public Function Pre Dispatch (Zend_Controller_...

sql - finding records relative to today -

मेरे पास dbstorage नामक तालिका है, जिसमें year जैसी कॉलम्स हैं सप्ताहनो । मुझे उस वर्ष और हफ्ते का चयन करना होगा जो चालू वर्ष और वर्तमान सप्ताह से कम है। मैंने इसका इस्तेमाल किया: चयन करें * से dbstorage जहां वर्ष & lt; = 2011 और weekno & lt; = 13 लेकिन यह सही डेटा नहीं दे रहा है जैसे कि मेरे पास एक मूल्य वर्ष: 2010 और सप्ताह नोवा: 25 का अर्थ है, क्वेरी इस रिकॉर्ड का चयन नहीं कर रही है। कैसे क्या यह किया जा सकता है? आप इसे दो मामलों में विभाजित कर सकते हैं और या SELECT * / * & lt; - लेकिन का उपयोग न करें * कॉलम को स्पष्ट रूप से सूचीबद्ध करें / / से डीबीस्टोरेज कहां (वर्ष = 2011 और सप्ताह का समय & lt; = 13) या वर्ष & lt; 2011 संपादित करें लेकिन और तर्क भी अधिक कुशल हो सकता है SELECT * से dbstorage WHERE (वर्ष & lt; = 2011) और (वर्ष & lt; 2011 या सप्ताहनो & lt; = 13)

html - jquery, marquee timer stop / go -

$ ('मार्की')। मार्की ('पॉइंटर')। माउसओवर (फ़ंक्शन () {$ (यह ) .ट्रिगर ('स्टॉप');}) माउसओट (फ़ंक्शन () {$ (यह) .ट्रिगर ('प्रारंभ');})। मौसमेव (फ़ंक्शन (इवेंट) {यदि ($ (यह) .डेटा (' डॉट ') == सत्य) {this.scrollLeft = $ (this) .डेटा (' scrollX ') + ($ (this)। डेटा (' x ') - event.clientX);}})। मूसुडाउन (फ़ंक्शन ( ('' एक्स '', 'event.clientX') .डेटा ('स्क्रॉलएक्स', this.scrollLeft);})। माउसउप (फ़ंक्शन () {$ ( यह) .डेटा ('खींचें', झूठी);}); किसी भी व्यक्ति को 3 सेकंड के बाद टाइमर पर रोकना सबसे अच्छा तरीका है, 3 सेकंड के लिए पॉज़ करें और फिर जारी रखें? धन्यवाद! इसे आज़माएं: this.stop (); या This.start ()

WPF ItemsSource Binding -

text "itemprop =" text "> I have a data grid control in my WPF application and I have an ObservableCollection property in the orbit of my main window that constrain the control I'm trying to The assets I am trying to bind are defined as: Private Observable Collination & lt; RequestResult & gt; M_SentRequests = new reviewable selection & lt; Request area & gt; (); Public supervision qualification & lt; Request area & gt; SentRequests {get {return m_SentRequests; }} My datagrid is in a group by which DataContext is set to MainWindow: & Lt; / Grid & gt; & Lt; / GroupBox & gt; After selecting SentRequests as my item resources, I still can not select the "Edit property-bound columns" option, I think that in the property window The problem is happening. Let me get a single error when I select "Get the dialog before" before you execute this action "Get the dialog" and "Generate co...

winforms - How to disable tooltips for an entire .net DataGridView column -

I have a winform datagridview in which there is a column of buttons I want to disable tooltips for that column - Tooltips Should still show up for the other columns. I think tooltips come in the way of clicking on the button - when there is a click on the tooltip, the click event button does not come down. Very annoying. I've tried to handle Seltolteep contained incident and evacuated to a column or an empty string returned, but then goes back to the show button text in formal tooltip. I have a column to try to clear the Haktultip text to an empty string, and he hides the tooltip to correctly column headers, but all other lines in the tooltip are still shown. What is the best way to disable tooltip whole column? Thank you Jimmy I was looking for an answer to this question but all Forums said that it was not possible. However, I found the solution. On your Data Grid view, handle the Salemhouse Enter event. The event handler to DataGridViewCellEventArgs set a Colum...