Posts

Showing posts from June, 2014

email - Python : sending mail through gmail issue -

I'm trying to send an email (via Gmail) using a Python script that someone once Written on this site, but I am getting an error: Unicodecode error: 'utf8' can not decode byte 0xe8 in codec condition 2: invalid continuity byte script: import imported smtplib email.mime text import MIMEText # mail setup FROMMAIL = "xxx@gmail.com" LOGIN = FROMMAIL PASSWORD = "yyy" SUBJECT = "test topic" TOMAIL = "x Xx@gmail.com "msg = MIMEText ('testcontent') msg ​​[subject] '=' test 'msg [from'] = FoMMM msg ['to'] = tommail server = smartplay MTP ('smtp.gmail.com', 587) server.set_developleval (1) server.hello () server.starttls () server.login (login, password) server.sendmail (FROMMAIL, [TOMAIL], msg.as_string (): Server.quit () stacktrace: traceback (most recent call final): File "C: \ user \ Xxx \ desktop \ test.py ", line 11, server = smtplib.SMTP ('smtp.gmail.com', 587) file...

asp.net - prevent go to the top page -

संभव डुप्लिकेट: हाय सब कृपया पोस्ट वापस पृष्ठ (asp.net) पर शीर्ष पृष्ठ पर जाने से कैसे रोक सकता हूँ मान लें कि आप वेबफॉर्म के बारे में बात कर रहे हैं, आप पेज डायरेक्टिव में MaintainScrollPositionOnPostBack सेट कर सकते हैं और फ्रेमवर्क आपके लिए इसके बाद देखता है। & lt;% पृष्ठ भाषा = "सी #" बनाए रखने ScrollPositionOnPostBack = "सही"% & gt;

php - select image on drive with javascript -

Image
I have created a website, when administrator dblclick on the image so he can choose for a new one. I would complete with javascript but, I have no idea of ​​doing this, the following code is html & lt; Form action = "controller.php" Method = "post" class = "popupform" id = "form_changeillustration" encrypt = "multipart / form-data" & gt; & Lt; DL & gt; & Lt; Dt & gt; & Lt; Label = "newelustration" & gt; Choose a new photo: & lt; / Label & gt; & Lt; / Dt & gt; & Lt; Dd & gt; & Lt; Input type = "file" name = "novelty" id = "innovation" /> gt; & Lt; / Dd> & Lt; DT & gt; & Nbsp; & Lt; / Dt & gt; & Lt; Dd class = "buttonrow" & gt; & Lt; Input type = "hidden" name = "page" value = "{$ PAGE}" /> & Lt; Input type = "hidden" name = "modu...

python - wxpython, hidding and showing an object with its defined flags -

If I add an item to one thing with some flags; It works great but if I hide it and then show it again, it shows that without using the flag !!! Why? How can I fix this? ex: sizer.Add (self.listb, 1, wx.ALL | wx.EXPAND, 5) # - & gt; works great . . Self.listb.Hide () self.listb.Show () # - & gt; Brings the item back without the flag. Thanks a lot! Show / hide task instead of using control, to show / hide function of BoxSystem try. . Sizer.Add (self.listb, 1, wx.ALL | wx.EXPAND, 5) # - & gt; Great Caesar works. Show (self.listb, False) sizer.Show (self.listb, true). . You can also try adding sizer.Layout () to the end if it still does not resolve your problem and refreshes the dimension is. (If the use of self.listb as first AGL fails, try to cross the index number of your item within the box AI, can not quite remember what is correct Is;)

opengl - Optimising the model-view transformation in GLSL for 2D -

Then, the standard way to change the corner and then pass the piece shader in the GLSL is something like this: Uniform Matte 4U_ModelviewView; Attribute vec4 a_position; Zero main () {gl_Position = u_modelview * a_position; } However, I am working in 2D so there is redundancy in 4x4 matrix. Will it be more efficient for me? Uniform Mat 3 u_modelview; Attribute vec3 a_position; Zero Main () {gl_Position = vec4 (u_modelview * a_position, 1.0); } The gl_Position requires 4 component vectors, so an additional operation is required on the output. Although the matrix is ​​multiplied by 9 instead of 9 elements. Can i do better I think graphics graphics varies with 3x3 and 4x4 matrix for the same time. Do you have a proven obstacle in the process of changing the corner? Usually the recession appears in the stadium shader, not at the top

r - Graph does not show after type lattice command -

I installed the package forged , and typed xyplot () . There is no error message, but no graph shows I tried switching to plot () and it works well, why did any thoughts happen? Thanks! try it: requires (forged) Required (statistics) Depth & lt; - equal count (quakes $ depth, number = 8, overlap = .1) my_plot & lt; - xyplot (lat ~ long | depth, data = quakes) print (my_plot) Thank you for Amiramorisro and Gavin Simpson.

.net - C# detecting key event in all windows -

Hey, I have a problem with key event handler This is the source: system use; Using System.Collections.Generic; Using System.ComponentModel; Using System.Data; Using System.Drawing; Using System.Linq; Using System.Text; Using System.Windows.Forms; Using System.Diagnostics; Using System.Threading; Namespace WindowsFormsApplication3 {Public Partial Category Form 1: Form {Public Form 1 () {InitializeComponent (); } [System.Runtime.InteropServices.DllImport ("user32.dll")] Public static extern zero mouse_events (int dwFlags, int dx, int dy, int cButtons, int dwExtraInfo); Public const int MOUSEEVENTF_LEFTDOWN = 0x02; Public const int MOUSEEVENTF_LEFTUP = 0x04; Public const int MOUSEEVENTF_RIGHTDOWN = 0x08; Public const int MOUSEEVENTF_RIGHTUP = 0x10; Public Zero Form 1_KOXIDE (Object Sender, KAntAgurge E) {if (e.KeyCode == Keys.F2) {Draw Square (); }} Public Zero DrawSquare () {int line = Convert.ToInt16 (textbox1.Text); Int Time = Convert. ToInt16 (textbox2.Text); Int x = ...

macros - Is it possible in C++ to loop over all subclasses of an Abstract class? -

I have an abstract class in C ++ with many subclasses. Is it possible to do something like macros or template metaprogramming something like this: Base suburban of the base: mymap [subclass :: SOME_CONSTANT] = new subclass (); No, you can not. What you want, apparently, is a factory (or perhaps abstract factory ). In C ++, you set up a factory class and register builders. class FooFactory {public: typed characters second) (); } Private: std :: map & lt; Std :: string, builder & gt; _Map; }; In order to register derivative classes during the library load, you can create a singleton of this factory, which is easy for plug-in architecture: FooFactory & amp; GetFooFactory () {Fixed FooFactory F; Refund F; } And you can prepare an easy builder: template & lt; Typename derived & gt; Foo * Füblilder () {New result (;); } Then people are expected to register their derivative classes in the factory: Static Const. Bool registered ti...

c# - What is System.Void? -

I know that the method declared with zero does not return anything. But it seems that in C # there is more zero and there is only one keyword, but a real type. There is an alias for zero System.Void as int which is System.Int32 . Why is not there permission to use that type of thing? It does not make any sense, but it only has some ideas about the argument. Neither var nothing = new system Weed (); (which says I should use zero (not alias?)) not var nothing = new zero (); Compiles. It is not possible to do anything like this: Do not give me zero () {} give zero) {nothing to return); } Then what is the point with System.Void ? to: / Code> structure is used in the system. Reflection namespace, but rarely useful in a normal application zero structure does not have any member of all types, from the object class Receive. There is no reason to use it in the code. In addition to: var nothing = new zero (); Thi...

android - Indeterminate Number of Falling Images...Display on SurfaceView HELP! -

I think I have hit a coder block here. I am writing a game where several times the pictures from the top of the screen Will be dropped and you have to catch them on the bottom. There will be an indefinite number of images, so you do not know how much will be on start time. For my life I can not understand the way to apply it. I understand the logic, but there is a problem in trucking through the orbids of Android. I tried to make my own "blossom" object, but every time I try to write anything with a bitmap inside it, then it goes out. Maybe I'm just writing the class incorrectly, I do not know. All this is being done on a SurfaceView, is there anybody who has any idea how to complete it? So my code is so far: The public class assigns BoardView SurfaceView SurfaceHolder.Callback {Context mContext; Bitmap Box = (Bitmapfinterator.dtd Datasource (getResources (), R.drawable.box)); Bitmap flower = (bitmapfichter.decources (), RDRYable Blossom)); Private board thread thr...

login - Forgot password php prevent too many emails being sent -

Currently my users can send emails repeatedly using forgotten password links. How can I prevent it from spamming? I already have a reCAPTCHA. Two thoughts: First of all, make sure that the email address Exists in your database, which is to prevent your site from spamming people who do not have an account on your site Secondly, do not allow 1 to 2 mail per day for each email address Sent on or do not allow more than 2-3 mails to be sent to an e-mail address; And reset the counter when the password is changed by the user.

java - Is it possible to get the deleted file from Eclipse workspace? -

I have accidentally removed a Java file from my eclipse workspace. Can I fix this? It's not in the Recycle Bin. Check this page: Suppose you accidentally A file has been deleted. No need to worry. Deleted files can be restored from history. How to : Right click on the project and open the context menu. And go to the menu item "Restore from local history ..."

excel - convert negative decimal number into HEX -

I have to admit that I do not remember much about hex and that is from school (25 years ago). In any case, I have some values ​​in decimal format which I need to convert to hex. I am using excel but if necessary, I can write a function in VBA (or it can code in VB.Net). I already know how the hex-result should look (another source), but I need to use Excel to get this result properly, the source of decimal input and ( On the right side) It is important to know if the result of hex result is with Linux-system. Positive numbers begin to change in the right way, whereas negative numbers give me a headache. In this sense, the hex adds to the beat of two additional letters (two FFs) compared to its result. Example: Decimal Input: -524288 I have to get the right hex output: FFF80000 Find me using Excel in formula: FFFFF 80000 (I get 2FF Is the output of hex Another example: decimal input: -29446758 should be FE3EAD9A but in Excel I get FFFE3EAD9A It seems that I always ...

C Structs Nodes -

I was given a project to do my work in C, but my professor did not teach anything about C , So I'm just trying to learn as I go. How do I specify the value in different parts of the node? The main code that is running with me: (This was given in the assignment) Node N2, N3, N4, Times, Plus; Setnode (and n2, 2, noull, null, true); Setnode (and n3, 3, null, tap, true); Setnode (and N4, 4, Nouel, Nouel, True); Printf ("\ n"); Setnode (& amp; bar, '*', and n3, and n4, true); Setnode (& amp; plus, '+', & amp; 2; & amp; bar; true); Printf ("Tree Evaluation:% d \ n \ n", Evil (& amp; Plus)); and in the header file: type -file structure Node_t {int value; Struct Node_t * left; Struct Node_t * right; } Node, * node_p; What is setNode for now: zero setnode (node_p np, int value, node_p left, node_p right, butle display) {np - & Gt; value; } How do I fill the values ​​for left and right? And how do I access ...

architecture - Why is it better to catch exception high in the callstack rather as soon as it can be handled? -

I have read in some places that it is better to raise exceptions in the callstack, but I have been successful in doing this. Scott Hanselman : I believe an exception should be caught where it can be controlled, not high or low. . Is not that the truth? If not then why? It is possible that you can add an example with your answer. Thank you You should catch an exception to the code at that point where you Regardless of what can be done about the problem, the code generating an exception is not in a position to deal with the problem, but the method used to call that code or the method called the method that is called that code is satisfactory Can handle in a manner. Say you've got some code that tries to open a file and read some data, and if the file does not exist, it generates an exception. The code can not do much at that scope, but bail, but many frames above the call stack can call a calling method "Oh, well, an exception has been found." I would tr...

java - JSF 2.0 DataTable like component -

I need to display some table data in a JSF page. I need some kind of grid component, but it must be necessary for a pager and be able to sort the displayed data (example: depending on date, alphabetically or even ...) Most probably I Creating a custom component that fits all my needs, but I was thinking that there is a tag in JSF 2.0 or any other library that already has all this Uvidhaan involved I would not like to use an external library such as Rifafs or similar clear Jesf 2.0. But if there is a good gadget there, then I can try it. Take a look at this. There are sorting, filtering, endorsement, row selection and many more features. It's easy to get started with primers, put it in your square path and add the following namespace definition to html tag in your Facet: Xmlns: p = "http://primefaces.prime.com .r / ui"

Php's set_time_limit throws a 500 error? -

जब मैं set_time_limit का उपयोग करता हूं और स्क्रिप्ट 360 सेकंड से अधिक समय के लिए चलाता है, तो 500 त्रुटि फेंकता है। 35 9, कुछ नहीं, 360 और ऊपर, त्रुटि। मेरे पास php.ini तक पहुंच नहीं है, मैं इस बग को कैसे ठीक कर सकता हूं? स्क्रिप्ट 360 सेकंड से अधिक किसी भी समय के लिए चलाता है, यह 500 त्रुटि फेंकता है। ऐसा लगता है कि आप किसी अन्य टाइमआउट को कहीं और मार रहे हैं यदि आपका सर्वर फास्टसीजीआई का उपयोग करता है, उदाहरण के लिए, अपाचे और / या फास्टसीजीआई प्रक्रिया को केवल समय समाप्त होने से पहले छह मिनट (360 सेकंड) तक इंतजार करने के लिए कॉन्फ़िगर किया जा सकता है। यह भी हो सकता है कि आपके और अपाचे के बीच एक रिवर्स प्रॉक्सी बैठे एक ही टाइमआउट के साथ, हालांकि प्रॉक्सी टाइमआउट आमतौर पर 504 नहीं हैं, 500 नहीं। कृपया अपने सर्वर कॉन्फ़िगरेशन की जांच करें। यदि आप साझा की गई होस्टिंग पर हैं, तो अपने मेजबान को समय समाप्ति के बारे में पूछें। यदि आपकी स्क्रिप्ट को विस्तारित समय के लिए निष्पादित करने की आवश्यकता है, तो आप उसे चलाने के लिए एक और रास्ता खोजना चाहेंगे।

single sign on - NTLM V2 SSO Java Servlet Filter -

I need to use NTLM V2 SSO for a web application deployed on Tomcat 6 (Redhat Linux). I know about the jcf's library but it supports the NTLM filter is not only NTLM V1 and V2. They recommend JSPA as an option, but I also have an open source solution. I know that NTLM V1 does V2 with zero configuration, but only works on servers deployed on Windows. Do you know about an NTLM V2 SSO NTLM Filter which is for the application servers deployed on Linux? Project with a SourceForget java server servlet filter: Liferay uses a NTLMv2 extension of JCIFS from the portal project.

android - Option Menu Not Displaying Text -

मैंने इस कोड के साथ मेरा मेनू बनाया: & lt;? Xml version = "1.0 "एन्कोडिंग =" यूटीएफ -8 "? & Gt; & Lt; मेनू xmlns: एंड्रॉइड = "http://schemas.android.com/apk/res/android" & gt; & Lt; आइटम एंड्रॉइड: आईडी = "@ + आईडी / दान करें" एंड्रॉइड: आइकन = "@ रेखाचित्र / दान करें" एंड्रॉइड: शीर्षक = "दान" / & gt; & Lt; item android: title = "@ string / color_picker" एंड्रॉइड: id = "@ + id / color_picker" एंड्रॉइड: icon = "@ ड्रॉएबल / रंग पिक्चर" / & gt; & Lt; / मेनू & gt; जब मैं मेनू बटन को दबाता हूं तो छवियां दिखाई देती हैं लेकिन पाठ नहीं है I मैं पाठ को दिखाने के लिए कोशिश कर रहा हूं और जहाँ तक मैं पाठ को बता सकता हूं ... मैं कुछ गलत कर रहा हूं? अगर आप इसे अभी तक नहीं समझ चुके हैं, तो मुझे लगता है कि आपके आइकन सही आकार नहीं हैं I मेरे पास एक ही समस्या थी और इसे उचित चिह्न आकारों के साथ तय किया था। इस आलेख को देखें: असल में आपको एक ही आइकॉन के 3 सेट बनान...

java - switching columns of a 2d array -

So my problem is that I can not switch elements of a 2D array like I can do in a single variable Instead of switching array elements, they are being constantly rewritten ... for (int column = 0; column & lt; m [0]; length; column ++) {Shufcol = (int) (math.random () * 4); Temp = column; Println (shufcol); (Int line = 0; line & lt; m.length; line ++) {temp = row; Meter [row] [temporary] = meter [row] [column]; M [row] [column] = m [row] [shaffcoll]; M [row] [temp] = m [row] [shufkol]; }} Input array (3x4) {{1 2 3} {1 4 5 6} {7 8 9}} Output array {{2 3 2} {5 5 6 5} {8 8 9}} If you are curious about math.random , then it is only a random column between 0 To generate 3 again the issue to switch from 3 is that why is it just writing the elements again and not switching them? I do not fully understand what you want to achieve at the end (because you have not told ), But I think, if you read this piece of code again: temp = row; Meter [row] [temporary] = meter [...

Django modelform validation is failing -

I can not understand the bug here. I have an integerfield on my model, whose field type is overridden at the respective model format. For the form, I have made the salary a Reggae field and added custom verification to eliminate any commas. I also tried to create a CharField ModelForm field without success Class Background_Check (models.Model): user = models.ForeignKey (user, exclusive = true) salary = model.Intergramefield ( Blank = True, Maximum_Long = 10) Square Background_CheckForm (forms.ModelForm): Pay = forms.RegexField (label = _ ("salary"), max_length = 10, regex = r '^ [\ d \ s] +', #help_text = _ ("Required .30 characters or fewer., Digits and @ /. / + / - / _ only."), Error_messages = {'invalid': _ ("Please enter a valid payday") }} Square Meta: Model = Background_Che Ck exclude = ('user') def returns salary This is mine: salary = salary (self). View: @login_required def profile_settings (request): page = ...

authentication - stackoverflow's implementation of openid for PHP -

How do I apply the same login system as a stack overflow? Where does the user name / password from any of your existing Google, PayPal, Facebook, Twitter and many other web applications? You can checkout for .NET, that's what it uses to implement OpenID authentication. is. So add NuGet and And for good icon checkout. You can checkout for PHP.

tdd - testing node.js with expresso - redis session store -

I am trying to learn TDD with the node. I have hit this issue with expresso where the expresso command is hanging, I think due to redis-server, by eliminating the process with ctrl + c Finally, I'm getting the output (100% of 3 exams pass). expresso hang the command, and what can I do about it? My app looks like this: // module dependency requires var auth = ('connect-at'), RedisStore = is required ( 'Connect-radis'); Var Express = Required ('Express'); Var app = module.exports = express.createServer (); // configuration app Configuration (function () (app.cset ('visual', __dirname + '/ views'); app.set ('visual engine', 'z'); app.ewesen (express.bodyParser); ap. Express.MathOrrayide ()); App Uses (ExxcookiePaper ()); App Use (Express Season ({Store: New Radisson Store, Mystery: "Secret Goes Here"}); app .use (app.router ); Application Uses (Express. Static (__DERNAM + '/ Public'));); App.con...

ruby on rails - undefined method `output_buffer=' for content_tag with block -

में lib / my_lib.rb वर्ग MyLib में ActionView :: मददकर्ता :: टैगहेल्पर Def foo content_tag: div do "hello" end end end देता है की आवश्यकता 'lib / my_lib'; MyLib.new.foo NoMethodError: अपरिभाषित विधि # output_buffer = 'के लिए & lt; MyLib: 0x7f3209aaa450 & gt; से /var/lib/gems/1.8/gems/actionpack-3.0.5/lib/action_view/helpers/capture_helper.rb:175:in_with_output_buffer '/var/lib/gems/1.8/gems/actionpack-3.0 से। 5 / lib / action_view / सहायकों / कैप्शन_हेल्पर.आरबी: 40: `/ कैपिटल में /var/lib/gems/1.8/gems/actionpack-3.0.5/lib/action_view/helpers/tag_helper.rb:77:in` Content_tag './lib/my_lib.rb:6 से' foo 'से (irb): 1 क्या कोई विशेष कारण है कि आप इस तर्क को किसी दृश्य के अंदर नहीं डाल सकते? content_tag दृश्य वातावरण के लिए बनाया गया था, और इसे नियंत्रक या अन्य के भीतर से कॉल करने का इरादा नहीं था पुस्तकालय। आपको अपने मैलीबब वर्ग को एक दृश्य के रूप में स्थापित करने की आवश्यकता होगी। जब मैं सुझाता हूं कि आप फिर से सोचते हैं...

types - Datatype decimal(6, 2) -

If I have a decimal datatype (6, 2) then what would be sample data? I am using ASP.NET MVC, if there is a difference. Thank you. You believe that the database type is decimal (6, 2), it means that your The column is set to store 6 places (scale), exactly 2 to the decimal (exact) you should treat it as the decimal CLR type. A sample will be 1234.56 .

Changing Position of DOM Elements on jQuery.scroll() creates Choppy Scrolling -

I created a site that used some hot jarl parallax scrolling some time ago and used to be very sleek , But recently (updated browsers?) It has got choppy. I think it has to do with the firing frequency of the jQuery scroll event. Here's a small example that I'm trying to do ... $ (window) .scroll (function () {offset = window.pageYoffset; $ ('# firstImg') CSS ({"up": -750 + (offset / 1.5) + "px"})}}); Actually, this will gradually be an image parallax as I scroll down. You can see the product here: Campaign Monitor also repurposed my code for my recruiting site ... Check here:. I need to know how to stop the incredibly choppy scroll. I also created a set interval and re-removed the positioning code manually (instead of using the .ccroll () event) and it could not be smoothed (50m / s) because it is not firing enough Was it 10m / s just because it seemed bumpy?) I know that anyone can help. Thanks a lot! I used your site & amp; Camp...

cordova - Authentication with Facebook on mobile and Django -

I am developing a Facebook application for mobile platform. The mobile part is being developed with PhoneGap and the server side is Python / DzegoGO. The mobile app should be able to query the Facebook API directly from the server users should be able to inquire the Facebook API. In this way the user should be certified with both Facebook and Servers (Diesgengo), and the server must be the user's Facebook authentication token. What will be the best flow for authenticating users on both sides? Is it appropriate to authenticate on Facebook through the mobile app, then send the token to the server and create a regulation session on the server? I had a similar requirement: the jQuery mobile app with Ruby on Rail backend. In my case, I implemented Facebook authentication on the backend using omniauth, retrieves the backend facebook access token and sends it to the jQueryMobile frontend. Frontend uses JSONP to retrieve user's friend list. The advantage of this approach i...

asp.net - node.ReplaceChild() -

आप नोड का उपयोग कैसे करते हैं। ReplaceChild () & lt; / td & gt; & lt; / tr & gt; & lt; tr & gt; टैग में केवल 1 & lt है जब & lt; br / & gt; टैग के साथ & lt; tr & gt; & lt; td & gt; टैग ; टीडी & gt; टैग? एचटीएमएल दस्तावेज htmlDoc = नया एचटीएमएल दस्तावेज (); HtmlDoc.OptionFixNestedTags = सच; htmlDoc.Load (HttpContext.Current.Server.MapPath ( "~ / MyFolder / rpt.html") ToString ()।); अगर (htmlDoc.DocumentNode! = नल) {HtmlNode trNode = htmlDoc.DocumentNode.SelectSingleNode ("// tr"); If (trNode! = Null) {// 1 से अधिक के लिए चेक & lt; td & gt; वही & lt; tr & gt; Bool td = trNode.ToString ()। प्रारंभ ("& lt; / td & gt; & lt; td"); अगर (टीडी == गलत) {ट्रनोड। रीप्लिकेशंस ("& lt; / td & gt; & lt; / tr & gt; & lt; tr & gt; & lt; टीडी & gt;", "& lt; br / & gt;"); }}}} मुझे नहीं लगता कि आप ऐसा कर सकते हैं। ...

.net - WCF Error:101 Page is not available -

I have this problem on the WCF Rest service when the data is bigger than 1.2 MB then it "I" error in Chrome: 101 This webpage is not available ". Although "connection was reset" in Firefox, it will work on small data WebConfig (binding configuration): & lt; BasicHttpBinding & gt; & Lt; Binding name = "basicHttpBindingConfig" closeTimeout = "00:30:00" openTimeout = "00:30:00" receiveTimeout = "infinite" sendTimeout = "00:30:00" maxBufferPoolSize = "2147483647" maxReceivedMessageSize = "2147483647" maxBufferSize = "2147483647" & gt; & Lt; Readerkots Mksdepth = "2147483647" Mgstringkantentlength = "2147483647" Msrrylength = "2147483646" Maksbitsperread = "2147483647" Mksonmetablecrsunt = "2147483647" / & gt; & Lt; / Binding & gt; & Lt; / BasicHttpBinding & gt; & Lt; WebHttpBinding ...

jvm - Setting CLASSPATH for Clojure project -

मेरे पास एक सादा परियोजना संरचना है: बेस निर्देशिका ;; क्लोज़र फाइल लिली के ढेर ;; जार फाइलें क्लासपाथ को निर्यात करने के लिए: $ export CLASSPATH = $ CLASSPATH: src: lib / * एक क्लोजर फ़ाइल को चलाने की कोशिश कर रहा है: java -cp $ CLASSPATH - Jar lib / clojure.jar src / wizard-game.clj लेकिन मुझे मिल गया: थ्रेड में अपवाद "मुख्य" java.io.FileNotFoundException: क्लोज़र / डिस्ब्रैब / ट्रेस_ का पता नहीं लगा सका क्लासपाथ पर init.class या clojure / contrib / trace.clj: द्वारा किया गया: java.io.FileNotFoundException: क्लोज़र / डिस्बर / ट्रेस _init.class या क्लोज़र / डिस्बर / ट्रेस का पता नहीं लगा सका Classpath पर .clj: ठीक है, यह एक classpath मुद्दा है लेकिन क्या / जहां मैं गलत कर रहा हूँ? क्या इसे चलाने के लिए एक बेहतर तरीका है ? अपडेट करें: मैंने यह कमांड की कोशिश की: जावा-वर्गपाठ $ CLASSPATH क्लोज़र.मैन src / wizard-game.clj यह अभी ठीक चलता है। से -जर विकल्प के बारे में जावा मैन पेज: जब आप उपयोग करते हैं यह विकल्प, JAR फ़ाइल सभी उपयोग...

security - what is a auth_user_file.txt? -

I was reading about a security vulnerability and found that many sites are crawling this file and in the search results Are looking. It seems important, but I do not know what's in it / is included and I can not find any information in it. What is this file, what's in it, and what is its purpose? I think searching for crawler auth_user_file.txt Because its name is probably given in some tutorials for Apache modules; When an administrator makes a mistake in putting the file in the DOCROOT of the webserver, then whatever you ask for is free to download. Once downloading an attacker file, they may be brutal, strengthen password hashes, and access server resources (or, perhaps, by using broken passwords and stolen user names Based on the list of known usernames, people will be guessing passwords, people have the habit of selecting password and abc123 ...)

Flash vs Silverlight on Caching -

As I'm testing Teampulse has been developed in Silverlight, I think it looks like it is not a cache Because it reloads from scratch every time I know that it looks very slow for me compared to the flash app. So can silver light speed with caching? Why does this slow down from flash? If we develop a silver alley, how can we control caching? Is there an API for that? Yes, silver light can perform better with caching. However in most cases a Silverlight application will use the browser HTTP stack, in which most responsibilities for caching options are with browser settings and cash control headers sent by the server. Silverlight has very little control over the caching options. A poorly configured server may fail to take advantage of the cache, even if only plain HTML is being used on Silverlight, Flash or Client.

php - Is HTTP_REFERER set by client -

I've heard that HTTP_REFERER can be tricked. I have 2 sites, the first first contact is second, and the other To confirm that the request is already requested, uses the HTTP_REFERER. If I received a fake request from my first site on the second site and I know that this request was not made, what should I do? One-third of the website is http_ref spoofing for all its users, or is someone cheating on their browser settings? I want to know whether the http_ref client / browser itself has been set / spoofed by or from the website? This is information sent by the customer, it is usually set as that page, On which you clicked the link. This can also be absolutely deceived. You can do it yourself by setting the header in the PHP kernel request curl_setopt ($ ch, CURLOPT_HTTPHEADER, array ('host: www.google.com', 'referrer: http: // Google.com/ ',' Fakeheader: this isfekbootiwilbsecenavewe ')); The recipient will appear in the server header, even ...

c# - Where to locate custom membership, roles, profile providers in a 3-tier setup? -

I have a 3-level ASP.NET MVC 3 project with a data layer, service layer, then the presentation level that calls To get data, the service layer is actually using the doFactory pattern in the action solution. I want to implement a custom membership, roles, profile provider, but I am not sure where to put it, I was thinking of putting it into service level, after which to get information There is a provider call on DAO objects. Any other ideas? You are thinking very well though the UI layer interacts with the client and takes your password , Your service layer should try the process on the enter system. The services objects that are responsible for the authorization with information from the way of your proceedings are passed. Whether it is in a web application or not. The data layer is only where this information is stored, where it is not processed. You can choose to keep the user's ID in session in the UI layer. On the login, the service layer will ta...

Objective-C launch iTunes in background -

I want to launch iTunes, but I do not want to show the launch, at this time I have navigated this code to the location Assigned to iTunes and creates the iTunes key window, so I want to launch it in the background. [[NSWorkspace sharedWorkspace] launchApplication: @ "iTunes"]; Can anyone help? Thank you. Use -ApplicationAudioOther URL: Option: Configuration: Error: To launch it, and include NSWorkspaceLaunchAndHide in it Options

php - How can I tweak this so it will accept .flv files? -

I want to tweak it so that it can handle .flv files, can someone help me? 1) {resonant "code of return:" $ _FILES ["file"] ["error"]. " " Else {resonance: "upload:" "$ _FILES [" file "] [" name "]" "echo" type: "$ _FILES [" file "] [" type "]" " ; "Size:" echo ($ _FILES ["file"] ["size"] / 1024). "Kb " echo "Temp file:". $ _FILES ["file"] [ "Tmp_name"] " (File_exists ("upload /". $ _FILES ["file"] ["name"])) {echo $ _FILES ["file"] ["name"] "already exists.";} Else {move_uploaded_file () $ _ FILES ["file"] ["tmp_name"], "upload /". $ _FILES ["file"] ["name"]); echo "stored in:" "upload" $ _FILES ["file"] ["Name"];}}} and {echo ...

Transforming XSD Import for WSDL in Spring WS -

I'm trying to expand the example in Chapter 5 of the Spring WS Guide. I'm using SpringWS 1.5.9. I have added ... import namespace = "http://myco.com/schemas/promotions/ v1_2" schema location = "http: // localhost : 8080 / Order Service / Promotion_1_2.xsd "/> ... But for the harbor it does not change the location of the spring import, so on my company's website it still shows "localhost: 8080" I have a WSDL generation, such as & Lt; Property Name = "PortTipName" Value = "Order" /> & Lt; Property name = "location" value = "http: // localhost: 8080 / order service /" /> What does the CAN / Spring Framework change in some way ??? UPDATE: A few more backgrounds .... To make our feedback schema objects we use the same XSD with the Maven Jacob2 plugin. All this works very well, and we use Catalog Resolver to find assembly business domains XSDs actually in any included...

Brief description of commands in selenium testing -

Hello I am new to test Selenium now, I've worked on manual testing so far, now I'm mostly used The command is to know and their details have not been given any guidance for me in the office. selenium The document can be found @ In addition, user forums are a good point startup

osx - xcode 4 distribution build problem -

When trying to test my application (sent from a collection) created in XCode 4 on another computer , Like user guides do), I get this error in the console? 3/27/11 10:20:16 PM com.apple.launchd.peruser.501 [106] ([0x0-0x27be7bc] .xxx test [86534]) posix_spawn ("/ users / matte / Drops / test.ap / content / macos / test ", ...): Permission denied Permissions are okay at all, I can not understand it. /p> In the dropbox bundles does strange things to file permission (Mac / iOS apps are bundled). It seems that you have changed Xcode's default build folders (now called "derivative data", etc.) to indicate in this Dropbox folder. Do not do this. Ensure that the app is made different from this folder and I'm sure it will work.

c++ - Choosing between template instantiation with pointer arguments -

निम्नलिखित परीक्षण कोड देखें: टेम्पलेट & lt; class T & gt; संरचना लपेटें {}; टेम्पलेट & lt; typename T & gt; इनलाइन व्यर्थ मज़े (टी * एंड इंट) // ** पसंद 1 ** {} टेम्पलेट & lt; typename T & gt; इनलाइन शून्य मजेदार (लपेटें & lt; T & gt; * & amp; Int) // ** पसंद 2 ** {} int main () {int i = 6; मज़ा ((चार * & amp;) (i)); // ** कॉल 1 ** मज़ेदार ((लपेटें & lt; char & gt; * & amp;) (i)); // ** कॉल 2 **} जब मैं इस कोड को लिनक्स जी ++ में चलाता हूं, तो यह अपेक्षाओं के अनुसार काम करता है। जब मज़े () को चार * और कहा जाता है, तो इसे पसंद का कार्य 1 सीधे आगे होता है हालांकि, मुझे दिलचस्पी है जब हम रैप के साथ मज़ा () कॉल करते हैं; चार & gt; * & amp; और यह विकल्प कहता है 2. हालांकि चुनाव 1 और 2 दोनों दूसरे कॉल के लिए मान्य हैं, संकलक थोड़ा बेहतर दावेदार चुनने के लिए प्रबंधन करता है - & gt; पसंद 2 (क्योंकि यह मौजूद है)। प्रश्न : क्या यह गारंटी है कि, सी ++ के लिए किसी भी अन्य कंपाइलर के लिए समान व्यवहार बनाए रखा जाएगा? यदि न...

android - Looking for example where gestures are used on top of ScrollView -

Is there a work example where gestures are implemented at the top of the scrollview? My ScrollView only supports vertical scrolling (does not require horizontal scrolling). I want to add gestures to change the text (article) displayed from left to right 'scrolling'. I've added the code according to the tutorial, but it does not work. If you are using OnFling (). Try adding this method to your code @Override Public Boolean Dispatch Touch Event (Motion Event Mentor) {super.dispatchTouchEvent (mEvent); Return gesture scanner Totevivent (mewt); } Hope this works ...

javascript - Changing ClassName in jQuery -

I know that we can do many things like changing an existing style of an element, or changing its text, etc. But, for example, the following CSS file has two different styles: . RoundedCorners {spherical taxpayers for code * *} NotSoRoundedCorners {/ Code for NotSoRoundedCorners} / / More buttons look like this: & lt; Input type = "submit" class = "notarordered corners" value = "turn me on!" / & Gt; I know that we can change our style directly with a simple jQuery cutting: $ ('close'). CSS ({'visibility': 'hidden'}, 1000); // e.t.c. But, what if there are many styles to change for one element. Why are there not just 2 style definitions in the CSS file, and when we need to change the style, can the name of the element change its name to another? You should invite the jQuery method Using it, you can explicitly delete and add a class are left in the node, the other sections are insulated . $ (...

oracle - How to convert data with different charsets into other databases? -

Hello, we use database, database selection, update, or ... command, to operate our destination database Want WE8ISO8859P1 and the current database AR8MSWIN1256 is called, but when we run a command to see the data, all non-English characters appear weird, which we can not recognize the text that we see, even if we convert Do not make any changes to the function, please correct us Help to see the chromatograph with our database link does not work with Convert Function Convert (menu_name, 'US 7 SCII', 'V8 IO8859P 1 '), convert (menu_name,' r8 msuen 1256 ',' WE8ISO8859P1 '), convert ((MENU_ID = 601011; ) from "TO201.US.ORACLE.COM" to T7 R_MENU @ (menu_name , 'US7ASCII', 'WE8ISO8859P 1')), 'AR8mswin1256', 'WE8ISO8859P1' p> The result is the European Union? IE? C? ICA? OCOaI? E ? C? IC ?? ? C ?? Me? EU? IE? C? ICA? OCOaI? E ? C? IC ?? When you ask Oracle Database, do not you? C ?? I Function is required...

android - Keep AlertDialog's DialogInterface opened -

I have a custom alert dialog where the user has to set a password. There are two editorial ideas. I compare them before if they match and if they are more than 3 characters long then they do not match, I show the toast to warn the user. But the dialog stops after submitting and checking. Unless the user incorporates the right values, how can I lose it? I was doing something similar, I could not do this with the standard alert dialog. In a potential way I came to know that no button was specified in your alertdownload and instead keep a view with your own custom button check is required when rejecting the dialogue Please give it. Another option is to create your own custom communication by Dialog subclassing.

java - Debugging JConsole Connection Failed -

I have a web application deployed on a remote tar server, and it has Jmx turned on. I can telnet to the telecommunication server i.e. see the flag @: / tmp $ telnet & lt; Remote-ip & gt; 5555 & lt; Remote-IP & gt; ... & lt; Remote-IP & gt; Trying to connect. Escape character is '^]' ¿½ I¿½sr5javax.management.remote.message.HandshakeBeginMessage�, � � 6profilestLjava / lang / String; Lversionq ~ xppt1.0 ^] Telnet & gt; Q connection closed but I can not connect to it using my jaconosol $ java_home / bin / java -cp $ javo_home / lib / jconsole.jar: $ java_home / Lib / tools.jar: pm-common / lib / jmxremote_optional-1_0_1_3.jar sun.tools.jconsole.JConsole service: jmx: jmxmp: // & lt; Remote-ip> 5555 I have tried to do this with the following Java versions, but I get 'connection failure' in both instances. ## where JAVA_HOME = / opt / java / 64 / jdk1.5.0_22 Java version "Lk5k0_22" Java (TM) 2 Runtime E...

Display Message if num_rows = 0 in php from mysqli prepared-statement -

I have a problem trying to get the number of rows from a prepared statement query in php, my query looks as follows : $ DBH = getDBH (); $ Stmt = $ DBH- & gt; Ready ("list list WHERE tag =" from selection list? "); $ Stmt- & gt; Bind_param ("s", $ tag); $ Stmt- & gt; Executed (); $ Stmt- & gt; Bind_result ($ info); And I basically just want to say that no result results were shown "no results returned" Can anyone help? You must firstly $ statement-> Using store_result () will use your code: $ DBH = getDBH (); $ Stmt = $ DBH- & gt; Ready ("list list WHERE tag =" from selection list? "); $ Stmt- & gt; Bind_param ("s", $ tag); $ Stmt- & gt; Executed (); $ Stmt- & gt; Store_result (); $ Num_rows = $ stmt-> Num_rows; $ Stmt- & gt; Bind_result ($ info);

arrays - fastest way to arrange data in python numpy based on list -

I have a problem in managing data in a number of data: Numpy.array ([1,3,5,4,6]) and I have the data: numpy.array ([1, 2], 3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19]) and more I need to manage data numpy.array ([[1,9999,9999,9999,9999,9999,9999] [2,3,4,9999,9999,9999] [ 5,6,7,8,9,99,99] [10,11,12,13,99,99 99] [14,15,16,17,18,19]]) I thought it is the same with diagonal / diagonal / trace functionality. I have usually worked using basic repetition ... Is this functionality in MMPI so that it can perform faster? Here are some ways to organize the data: Numpy import arange, array, rank (j, n): a = randint (1, n, m) b, c = array (aima), ones (m, n), dtype = Int) * 999 return A, B, CDEF Basic (A, B, C) Basic number: # Some basic repetition is assumed on the basis of n = 0 for the xrange (lane (a)): m = A [C] of [K, M:], N = B [N: N + m], n + m def advanced_1 (a, b, c): # Svens based on answers cum_a = r_ [0, a cumsum ()] I = arange (len (a)) Repeat (a) j = Ara...

search - searching in a part of word with Sphinx -

I need to configure the Sphinx to find parts of words, not whole. It has been written on, that I should use the instructions 'min_infix_len', 'min_prefix_len' and 'enable_star'. Actually, all config files are registered in. But the search in the word section does not work. * is not helping at the beginning or end of a word. source src1 {type = mysql sql_host = localhost sql_user = root sql_pass = sql_db = ajax sql_port = 3306 Sql_query = \ SELECT id, author author sql_query_info = SELECT * WHERE writers id = $ id } index 1 {source = src1 path = / var / data / src1 morphology = stem_en min_word_len = 1 charset_type = sbcs enable_star = 1 min_infix_len = 3 Min_prefix_len = 3} searchd {listen = 9312 log = /var/log/searchd.log query_log = /war/log/kweriklog Peed_fail = /war/log/searchdkpeed} you can only apply to one of them min_infix_len = 3 min_prefix_len = 3

How to give css class to the OK button of dialog in JQuery? -

I am new to jazzery I have a code for communication $ (this .choosePadsContainer) .dialog ({title: 'select pad locations', auto-open: wrong, model: true, button: {"OK": function () {// Remove all checked pad locations. Var checkpad ; Checked Straps = New Array (); $ (SelfPod LessonForActivity + "Input: Checked"). Each (function (index, value) {checkedPads.push ($ (value) .val ());} ); // Selected pad text set Renkcynit Pedtekst Set (Self. Selected Peedselbiaiaf format $ (Self Haidekt Aktivitiarekod) Kvl (), Cheked straps); $ (this) Kdiaieloji ( "off");}}}); I want to give the CSS class on the OK button. How will this be done? AFAIK This is not directly supported, but it should do something: $ (".ui-dialog-buttonset .ui-button", this.choosePadsContainer) .addClass ("foo");

aix - Error while buliding PHP on AIX5.2 -

मुझे PHP पर AIX5.2 बुलिंग करते समय निम्न त्रुटि संदेश मिलता है >: "चेक करें कि क्या libxml बिल्ड काम करता है ... नहीं", और वास्तव में मैंने libxml2 और libxml2-devel , समस्या क्या हो सकती है? धन्यवाद! (मैं config.log को जांचता हूं, और संदेश का अंतिम भाग कहता है: कॉन्फ़िगर करें: 21603: जांचना है कि क्या libxml बिल्ड कॉन्फ़िगर करता है: 21630: जीसीसी -ओ कॉन्फ़ॉटेस्ट-ओ-एक्सएस-एक्सस्ट्रानस्ट -ज़्लैज़-लोड / एलएपी / फ्रीवेयर / लिब-एल / ऑप्ट / फ्रीवेयर / लिब कोंफ़्स्टेस्ट सी -lxml2 -lz -liconv -lm 1 & gt; और 5 जीसीसी: अपरिचित विकल्प '-zlazyload' जीसीसी: भाषा स्ट्रैंकस्ट जीसीसी मान्यता प्राप्त नहीं है: भाषा स्ट्रैंकस्ट मान्यता प्राप्त नहीं है ld: 0711-715 त्रुटि: फाइल कोफ़्टेस्ट सी को संसाधित नहीं किया जा सकता है। फ़ाइल एक ऑब्जेक्ट फ़ाइल, आयात फ़ाइल या एक संग्रह होना चाहिए। कॉन्फ़िगर: असफल प्रोग्राम था: पंक्ति 21619 "कॉन्फ़िगर करें" "confdefs.h" में शामिल करें char xmlInitParser (); Int main () {xmlInitParser (); ...

django - How do I share a python script's imports with another script? -

Assume that I have script1.py with import. How can I import script 1.py with Script2.py? Without copying and pasting Your application contains several modules that are logical independently, making it easy to read your program , Debug, etc. As the standard library of Python is divided into several modules (as you said - you have to import many things from them). The more modules you have, each of them needs less import. This is because every separate part of your program requires import only. From this perspective you and other programmers can easily understand the code. Another way to deal with it (not really recommended): importports.py: (In this example I think you can test.py in that same directory) > Import Import from Import Import Do # import your import today = date.today () # Do you import into importports.py print (today) This could be a dangerous reason possibly one Name Imported Be Careful!

objective c - How to maintain Session for iphone -

In my iPhone app, after logging in user login user with user name and password, through that API Each feature can use features. But I want to maintain a session. That is, if the user is not doing anything in the app, after receiving 30 minutes, the session should end and the user should be asked to login with his username and password. I am currently working on the same. I do the following scenarios for the validity of the session: If the session token appears invalid after the first incoming request Given then I will try to quietly generate the session key again in the background. If method # 1 does not work for some reason as if the user has changed his password from somewhere, then I redirect the user to the login page and like I That "Your session key has expired, please log in again". To get more into this, I [[NSUser Defaults Standard User Defaults] by saving NSUserDefaults : Set Value: @ "ABCDEFGHIK" for KA: @ "Session"]; //...

c# - Interview question on Class design -

Recently I participated in an interview asked this question. This is the scenario. We have two types of employees. Regular and contract employee regular employees will be paid on a fixed basis at the end of the month. The employees of the contract will be paid weekly on the basis of hours of work hours. Managers will be assigned to these employees for supervision. A manager may have regular and contracted employees. This application will calculate payroll for these employees. They asked me to come up with class design for this situation. What is the interviewer expecting me? Indicators in this direction will be highly appreciated. One of the following designs can be Design 1. Public class employees {Public Bull's Contract Workers (Receive; Set;} Public Abstract Float CalCulatePayroll ();} Public Square Fulltime: Employee {Public Override Float Calculate Parole ()} {} } Public Category Contract Emp: Employee {Public at NOF HR {Received; Set;} Public Override F...

sql server 2005 - Error 104: Connection reset by peer with ASP.NET MVC app -

I'm having a problem with an MVC (1.0) app that I can not understand at all. Two versions of the site hosted on the same server (Live and UAT) are for each version of the site, the same code is shared by multiple organizations, each with its own database (MSSQL2005) and IIS (7.5) A different web site (pointing to the same code). The UAT site has an update of code and database that is waiting to be posted on the live site. One of the customers ("Customer A") is getting an error "104: Reset Connection by Peer" When they try to log into UAT site they can see the login page, But when they submit their login details, the connection timed out (look like ~ 130 to complete the request). Customers can log in to a Live site properly Other customers do not have problems signing in to UAT site or Live site. If I try to log in as Customer A, using their login details, it works well from within our network and outside of our network. Customer A starts to use squid...

c# - How to generate XML on MonoTouch? -

Do I need to create an XML on the monococh app? How do I create it, & lt ;? Xml version = "1.0" encoding = "UTF-8" standalone = "no"? & Gt; & Lt; Root & gt; ... & lt; / Root & gt; I need to post the XML service as a string format I and then I want to parse the response data. The response data is also XML format string. I did it in J2ME applications but I do not know how to do it on Monochoch? Anybody tell me how to do this? My favorite APIs are System.Xml.Linq API these days, see the documentation and samples here: Console.light line ("xml is: {0}", stratostring ());

iphone - AppStore: upload app itself -

I must upload app to appstore I uploaded icons and screen shots, but there is no alternative to uploading the app. . how to do this? thank you in advanced. You need to use Apple's "App Loader" utility. Also keep in mind that it is now built in the latest version of Xcode.

python - wxPython panel redraw in windows -

I am trying to create several different pages where I need to show different texts and buttons. What did I do, I made a panel, and then several sizers on it, and then in the next page, I deleted the panel and made the panel again with different material / shadows. It worked well in Linux, but when I tried the same source in windows, the first page was fine, but in the second page, it seems that the sayers were not implemented. . I made many efforts. Updates () and. Refresh (), but nothing seems to work. It seems that when I maximize the window, the shaft is applied and the layout becomes normal (again, after the panel.) Dastari () and a new panel generation, the layout is again messy .) How do I get two different "pages" (I click on a button and how it goes II page) with different content and sizers in Windows? Calling layout on the widget's parents is the best way to do this so that you are adding or deleting widgets. Sometimes you need to call refresh () to ...

Hibernate Issuing select statement even if FetchMode = Join -

I have a user account unit that maps to the country unit. Country mapping in the UserAccount class is like this @ManyToOne (fetch = FetchType.EAGER) @ ft (FetchMode.JOIN) @JoinColumn (name = "f_country_id", nullable = true, insertable = false, updateable = false) Private country country; Even fetchmode has been defined, join, hibernate, selects a different SQL to bring the countries. Please help. remove fetch = fetchType.EAGER. Cascading triggers the selected details for curious induction.

iphone - Is there a open source rich text editor for iOS? -

I'm looking for an open source rich text editor on which I Can I integrate with iPad , what is such a thing available ?? Thanax You can also use UIWebView You can, if you do not support the editing of the text (for the purpose of reading only)

c - Read structure contents using read() system call -

#include "common.h" #include & lt; string.h & gt; संरचना बफर {int no; चार नाम [20]; }; Int main () {struct बफर बफ़; संरचना बफर read_buf; इंट एफडी; अगर ((एफडी = खुला ("read_write.txt", O_CREAT | O_RDWR, S_IRUSR | S_IWUSR)) & lt; 0) {PRINT_ERROR (errorbuf); } Buf.no = 10; strcpy (buf.name, "नितिन"); अगर (लिखिए (एफडी, और बफ़, आकार (ढांचा बफर)) & lt; 0) {PRINT_ERROR (त्रुटिबुफ); } Printf ("लिखित सफलतापूर्वक \ n"); / * संरचना की सामग्री को 'read_buf' * / exit (0) में पढ़ने के लिए यहां कोड जोड़ें; } सामान्य.h #include & lt; stdio.h & gt; # शामिल करें & lt; unistd.h & gt; # शामिल करें & lt; stdlib.h & gt; # शामिल करें & lt; sys / stat.h & gt; # शामिल करें & lt; sys / types.h & gt; # शामिल करें & lt; fcntl.h & gt; चार त्रुटिबुफ [20]; # परिभाषित PRINT_ERROR \\ \ {\ sprintf (errorbuf, "% s:% d", __ फाइल __, __ LINE__); \ दर्पण (त्रुटिबुफ); \ Exit (-1); \} जबकि (0);...

SVN checkout the contents of a folder, not the folder itself -

I do not want to see my WebRoot folder contents in the WebRoot folder itself. I have two contents in my content There are two folders in / tmp / easton src and WebRoot svn import -m 'import source files' / tmp / easton Svn: //209.235.175.18/easton/ I try svn checkout svn: //209.235.175.18/easton/WebRoot but this Creating the WebRoot folder in my Exoncutive Directory. I do not want to add the contents of the webroot folder to your own folder webroot. You do not intend. Due to the SVN need a separate directory where at checkout I recommend it to checkout like the following: svn checkout svn: //209.235.175.18/easton/checkout-folder This checkout folder with the content of the Easton folder from its repository.

zend framework - Uncaught exception 'Zend_Config_Exception' with message 'Comments starting with '#' are deprecated -

I have developed a web application and posted it under php version 5.2.13, but when I use the same server But the PHP version 5.3.6 started to give me an error Remarks starting with 'Zend_Config_Exception' with the 'unwanted exception' message has been deprecated in '#'. .. Please suggest any workaround to run it without downgrading the php version. Clue Error You can no longer comment out lines in an ini file using a hash, instead use a semi-colon if you forget it in any file, then you should complain about this error . Edit: Because an error is coming from Zend_Config I assume that this is an ini file that is complaining about if it is a PHP script, instead of excluding the line / / .

c++ - Segmentation fault in small text processing program -

To read some input files and write values ​​of an array, I have the C ++ function read_inputdata . I But I get a split mistake, is there any idea that I have done wrong? #define defined MAX 140160 zero_input.dta (double input [max], four files [40]); Four input file 1 [40] = "Input / Hasei 04 / FR_His_DropTT"; Std :: cout & lt; & Lt; "Announce array" & lt; & Lt; Std :: endl; Double input 1 [max]; Std :: cout & lt; & Lt; "Calling function watch_input.data" & lt; & Lt; Std :: endl; Read_inputdata (Input 1, Input File 1); When I compile and run it, I get: declare the ARA function read_inputdata segmentation error That's why he currently calls the function read_inputdata something goes wrong, because it's std :: cout & lt; & Lt; "Function watch_input.data" & lt; & Lt; Std :: endl; . Function: zero read_inputdata (double input [max], four files [40]) {std :: cout & lt...

python - how to switch into a single database among multiple databases at run time in django? -

How to switch between multiple databases in runtime in a single database on the runtime? Which version of Genzo are you using? 1.2 Supports multiple databases. You can go for more information You can go for your question For example. Author.obages ("Db_name"). All ()

utf 8 - Does the HTML 'ID' tag allow UTF-8 encoded characters? -

मेरा क्या मतलब है, क्या यह html टैग को मान्य है & lt; Div id = "t_Ñ ?? Ðμкл Ð ° Ð ¼ ° "& gt; कुछ पाठ & lt; / div & gt; और दूसरा प्रश्न, यदि यह कानूनी नहीं है, तो क्या urlencoded संस्करण (जैसे प्रतिशत-एन्कोडेड) मान की अनुमति होगी? इसके अलावा, जावास्क्रिप्ट में समस्या पार्सिंग होगी Utf-8 आईडी का मान? मुझे नहीं लगता है कि यह अनुमति है: आईडी और NAME टोकन एक पत्र ([A-Za-z]) के साथ शुरू होना चाहिए और इसके बाद किसी भी संख्या में अक्षरों, अंकों ([0- 9]), हाइफ़न ("-"), अंडरस्कोर ("_"), कॉलोन (":"), और अवधि ("।")।

dump - riak backup solution for a single bucket -

What are your recommendations for solutions that support single or double rackets or snapshots in a file? Backup of just one bucket is going to be a tough operation in Riaq. All solutions will be boiled in the following two steps: List all the objects in the bucket, this is a difficult part, since the "manifest" anywhere in the cluster There is no list of contents of any bucket. Get them all a number of objects from the list above, and write it in a backup file This part is usually easy, however, to ensure you get maximum performance Want to get those GET parallel, in a multi-level fashion, and using some kind of connection pooling. As far as listing all objects, you have one of three options on a bucket via HTTP (eg The keys to running a streaming list on the / buckets / bucket / keys? Keys = stream ) or protocol buffer - see and for details. Under no circumstances should you key operation of a non-streaming routine list. (This will hang your entire...