Posts

Showing posts from August, 2011

perl - Mojo::UserAgent TLS/SSL certificate authentication -

I'm new to Mojolicious and I received a TLS certificate authorization and a both to get Mojo :: UserAgent script Trying to do the TLS certificate file but the certificate file password is protected I have the following code: #! Modern Uses / Usr / bin / env perl: Pearl; Mojo :: UserAgent; IO :: Socket :: SSL :: set_defaults (SSL_passwd_cb = & gt; sub {return "password";}); My $ UA = Mojo :: UserAgent- & gt; new; My $ base_dir = '/ path / to / certs /'; $ Ua- & gt; Ca ($ base_dir. 'Ca-cert.crt'); $ Ua- & gt; Certificate ($ base_dir. 'Clientcert.crt'); My $ tx = $ ua- & gt; Build_tx (POST = & gt; '/ POST HTTP / 1.1'); $ Tx-> Req-> Url-> Parse ('https://example.com:12345'); $ UA- & gt; Start ($ TX); If ($ my $ res = $ tx-> success) ($ res-> body; print dumper ($ tx);} and (my ($ mistake, $ code) = $ tx-> error; $ code I have verified the certificate with the following: "$ code r...

delphi - Draw polygon on Image -

I've been searching for a long time but the answer could not be found. I want to draw a polygon on an image, but I want to do this by making marks; MouseCursor With this specific point of view, and drawing a line with these points with these buttons; I found this: var poly: array of TPoint; Allocate dynamic array of start / TOPint SetLength (poly, 6); // Set array element poly [0]: = dot (10, 10); Shift [1]: = point (30, 5); Shift [2]: = point (100, 20); Shift [3]: = point (120, 100); Shift [4]: ​​= point (50, 120); Shift [5]: = point (10, 60); // Pass for regular canvas drawing. Polygon (poly); // Settleant (poly, 7) if needed; Shift [6]: = dot (1, 5); // Pass for regular canvas drawing. Polygon (poly); End; This is what I want, but the difference is given by dot [1] , dot [2] , etc. User MouseEvent . You can override a paint box on your image and use a code like this unit unit 3; Interface uses Windows, Messages, SUsUtils, Variants, Classes, Graphics, C...

c# - Enum with decimal values or some like this -

Actually I want to define a value with decimal values ​​but this is not possible. An alternative is: Public static class EstadoRestrician {public key point = 1; Mass cumulative decimal value 2 = 0.5 m; Public const decimal value 3 = 1; }; But I need to add these constants to a combing box where the option should be the name of the constant to display the option and return the value to SelectedItem (0 , 0.5M, 1) or something like these I know that this is possible, but it's ugly. With an enum I can do this easily: comboBox.DataSource = Enum.GetValues ​​(typeF (MyEnum)); can be a dictionary dictionary & lt; String, decimals & gt; Can be a good candidate - you name the values. var value = new dictionary & lt; String, decimals & gt; (); value. Add ("value1", 0m); Values. Add ("value 2", 0.5 m); Values. Add ("value 3", 1 m); It can be wrapped in a class so that you can enter the full dictionary & Ttk; TK...

ios - Compiler error with LLVM Xcode Version 4.6.1 (4H512) -

Looking at this error, when we recently upgraded the encoded to 4.6.1. Before this version was able to fully compile it. Is there any insight in this message? Sounds like 32/64 bit issue? It looks like this is an unfortunate border of the Miko format. Fatal error: error in backend: sections can not encode R_Address (0x1000005) in 24 bits of large, scattered transfer access. Any insights? To fix this, I have the llv compilation level at the fastest, smallest [-os] set on.

Xcode Linker Issue - Other LD Flags won't clear -

I'm a noob and linker is having a problem with flags. I tried to make myself ssh2 after libraries, and after that I had cloned a GIT repository with a project in libraries already created. Before I download compiled binaries, I was building with GitTit and added the other linker flag to the -lgrcrypt library. What I am using with this new library set, I no longer need gycrpt and so I removed the linker flag. Although he did not clarify the linker option. Despite clearing them in project properties, I am still getting all the old linkar flags. The error indicates that -lgrypt is still being processed as a Linker flag: -no_implicit_dylibs -mios-simulator-version-min Well, I think that you have examined the flags and removed the path of that script in your target level of that project, and by organizing the prefabrication and settling the drain, the organizer and the inside of the encoded has Mr.'ve reset your simulator, and you have removed the Lib to have also...

angularjs - How can I inherit complex properties from the parent scope into my directive's isolated scope -

AngularJS (and related) After reviewing other stack overflow questions about separate scops within documentation and instructions, I Still, I am a little confused, why can not I make a bi-directional binding between the area of ​​the parents and the different scope, where the parent's property is an object and there is no specialty? Should I just use the desired property from the area? $ Parent? Thanks in advance for your help it looks wrong. The relative is Bela. HTML: & lt; Div ng-app = "myApp" & gt; & Lt; Div ng-controller = "myCtrl" & gt; & Lt; Div my-directive & gt; {{Test.name}} & lt; / Div & gt; & Lt; / Div & gt; & Lt; / Div & gt; Javascript: var myApp = angular.module ('myApp', []); MyApp.controller ('myCtrl', function ($ scope) {$ scope.test = {name: "name", value: "value"};}); MyApp.directive ("myDirective", function () {Return: true, restric...

android - Is the Official Fragment Developer Guide Contradicting itself? -

In the section of , it says: You must assign each piece to a modular and : This is the usable activity component, because each piece defines its behavior with its own layout and its own lifecycle callback, you can include a piece in several activities, so that you should design for reuse and Straight from one piece to another Avoid tampering But in this, Title Fragment class (expanded ListFragment ) directly DetailsFragment refers to the showDetails () method in the class ( fragment ) in the findFragmentById () DescriptionFragment Description = (DescriptionFilmment) getFragmentManager (). FindFragmentById (R.id.details); and calling descriptionfamily newInstance () method of class. Description = descriptionfragment.newense index); Is this a bad coding style? Comparatively, the coding style looks better, it uses the interface for fragment-to-activity communication. Is this a bad coding style? IMHO, yes, IMHO, one piece should neither be kno...

R: spatstat: Residual analysis for Thomas cluster processes -

I want to test the eligibility of a similar Thomas cluster process, ideally diagnose it. Using residual plots like PPM and qqplot.ppm. The easiest way to fit the Thomas Cluster process, since using the KPPM, I can not use the above works, can someone suggest ways to do this? Like PPM to use PPM to fit PPM or Thomas cluster process, changing the KPPM, many thanks This old question: There is no way to do this. This is not an issue of implementation, but due to the fact that the Ppm class (which works on the diagnosis of PPM and qqplot.ppm applies) Fit represents the Gibbs Point process model, which is more basic than the FIT Thomas Cluster Process model. Class KPPM is different from the form). Generally, the fitness qualification for Thomas Process is calculated based on the summary data using something like a simulation envelope, but someone should be cautious carefully that it is available for a minimum contrast Was used to fit the model (if the fitting method was used). ...

setting up postgresql development in rails with multiple users in database.yml? -

I am in the process of migrating my SQL in Postgresql because I want to grow in the same environment of my production. I installed the PostGrace and was able to set up my database yml file such as rake db: create: all worked with no problems. However before I pushed it, I realized that the username and password of the postgresql database is only available on my computer ie I have made the login role on my computer when my friend, who is also developing on the application code, then I will not be able to create my username and password on my computer. Does she want to create the same login role? Or is there a way to leave the username / password blank so that everyone can apply, who can apply? More importantly, what is the best practice for such a situation? I am developing on windows and on Mac. My database. IML: Username and password are left. development: adapters: postgrascill encoding: unicode database: volatility_discount pool: 5 timeout: 5000 host: localhost te...

html - How do I make the text tag width same as the visual text? -

I am thinking that there is a way to make H1 tags the same width as text that you want can see . If I do not set the width of the H1 tag to me, its width becomes 100% and I can not distinguish it at its crossroads. jsfiddle: jsfiddle.net / pbwjr / The best way to do this It will: & lt; H1 & gt; & Lt; Span & gt; Your text goes here & lt; / Span & gt; & Lt; / H1> Then you can type the style h1> Span as per the requirement.

java - Is there an equivalent of x++ that can be used in an expression for incrementing by values greater than 1? -

Apologies for a slightly misleading title. It is well known that int x = 4; Println (x ++); // print 4 x = 4; Println (++ x); // print 5 using , I found that int x = 4; Println (x + = 4); // print 8 Will one increase in the above analog X but instead 4 print? Like other assignment operators, the shortcode assignment returns the final value, like . This lets you type x = y = z + = 4; There is no post-shorthand operator that gives original value.

php - Apache 406 Not Acceptable when specifying Accept: header -

I have tried to find a solution for this, but the solution to the other 406 issues has not helped me. I have enabled the PHP and Apache web server on Mac. I have found that if I accept that a request (Post or GET) accepts: Header set, then with a 406 error Fails: $ curl -X GET -H "Accept: Application / Json" http: // localhost / test / tester & lt ;; DOCTYPE HTML PUBLIC "- // IETF // DTD HTML 2.0 / N" & gt; & Lt; Html & gt; & Lt; Top & gt; & Lt; Title & gt; 406 Not Acceptable & lt; / Title & gt; & Lt; / Head & gt; & Lt; Body & gt; & Lt; H1 & gt; Not acceptable & lt; / H1> & Lt; P & gt; The proper representation of the requested resource / test / tester was not found on this server. & Lt; / P & gt; Available Versions: & lt; Ul & gt; & Lt; Li & gt; & Lt; A href = "tester.php" & gt; Tester Php & lt; / A & gt; , Type Application / X-H...

javascript - Change data format to JSON -

पूर्व> प्रगति = {'उपयोगकर्ता': '170', 'user2': '220'} स्तर = {'उपयोगकर्ता': '10', 'user2': '14'} अगर progress.has_key ('उपयोगकर्ता '): ए = प्रगति [' उपयोगकर्ता '] बी = स्तर [' उपयोगकर्ता '] c = json (' घटना ':' डेटा ',' नाम ':' उपयोगकर्ता ',' प्रगति ': ए,' स्तर ': बी ) Self.send (नेट, c) जावास्क्रिप्ट स्क्रिप्ट: var a = JSON.parse (c); Var उपयोगकर्ता = a.user; Var प्रगति = a.progress; Var स्तर = a.level; आयात करें json c = json.dumps ({'event': ' डेटा ',' प्रगति ': ए,' स्तर ': बी})

object - C++ new gdiplus::bitmap in DLL return null -

I was using the GDI object in DLL, DLL had returned to the new GDILLS :: bitmap, but the new object was successful Happened. The code I used to get started with GdiplusStartup (& gdiplusToken, gdiplusStartupInput, NULL) is: GdiplusStartup (& gdiplusToken, gdiplusStartupInput, NULL); ... gdplus :: bitmap * bmp = new gdplus :: bitmap (bmpiinfo.bimwidth, bmpiio.bhhite, pixelformat 32 bpprgb); Any GDI preliminary work or initialization is miss or other question. The solution started in the DLLMain entry in the beginning. Now I change the initialization function using the GDI object Have given.

ios - MPMoviePlayerViewController does not play MP4 stream -

I'm not sure what the problem is, but when I try to host the Mk4 video on the Aakami server, Code> MPMoviePlayerViewController fails to play it I added notifications for monitor playback status and it switches from play to quickly shut down. If I print the error, I get the following: MP4PlayerplaybackDefinish regionUserInfokki = 1; Error = "Error Domain = Media Player Errmin Code = -11850 \" Operation Stopped \ "UserInfo = 0x1e5a6750 {NSLocalypated Description = Operation has stopped}"; Above the message, it is not very helpful to understand what the real problem might be. It is important to keep in mind that I am able to play the same URL in Safari and my app is able to play YouTube videos without any problems. The issue was very trivial - I was passing in a wrong streaming URL :(. Thanks.

url - CodeIgniter Controller Method Parameters Issue -

I am using codeigniter 2.1 and I am defining a function as follows. Public function reset ($ email, $ hash) {} MVC architecture and OOPS According to the concept, the function I parameters did not pass url . But this function is executed in the codinator, so how can I remove it? Please help me find a solution. You just need to define such passive parametres: (name of the controller) public function reset ($ email = null, $ hash = null) / reset From /mail@mail.com/dsadasda to $ email = mail@mail.com & amp; $ hash = dsadasda If you want (name of the controller) / reset to $ email and $ hash will be empty. In addition to this you can declare the default parameter like this. Public function reset ($ email = mail@mail.com, $ hash = dsadasdas) {} Hope I was clear.

r - Pre- or post-process roxygen snippets -

Is there a mechanism by which I can replace the vaccine that the vaccine sees, before it becomes vaccine- & rd ; Does the conversion happen? For example, suppose I have: # 'My function does stuff with numbers #' # 'This takes input `x` and It does something with the # '@ ultimate x one number now, suppose i want to make some conversion of the comment before ringing, for example in place of all the examples in bakatix \ code {} . Ie: Preprocessing & lt; - Function (txt) {gsub ('`([^] +)`', '\\\\ code {\\ 1}', txt)} # cat (preprocess ('one input `x' 'and its Does anything with it.)) Takes the #input / code {x} and does something with it Do I feed the preprocess in any way in the vaccine Can I post (or will work in this case) before, does Roccin produce his document? I do not want to make permanent search-space in my .r files. As you can guess from my example, I am aiming towards some rudimentary MarkTown support in...

Is is necessary to map the memory allocated to the device by the OS to a virtual memory space? -

उदाहरण एक ड्राइवर लिखते समय हम निम्नलिखित करते हैं res = platform_get_resource (pdev, IORESOURCE_MEM , 0); हमें डिवाइस पर आवंटित स्मृति के बारे में जानकारी मिलती है। इसलिए यह आवश्यक है कि मैं इस मेमोरी का उपयोग वर्चुअल पता virt_base = ioremap (res- & gt; प्रारंभ, संसाधन_आकार (res)); क्या हम मेमोरी को संबोधित करने के लिए भौतिक पता का उपयोग नहीं कर सकते हैं? अगर हम कर सकते हैं, तो क्या कोई विशिष्ट लाभ हैं वर्चुअल मेमोरी का उपयोग कर या ऐसा कर्नेल कैसे करना चाहता है ... जी हां, यह बिल्कुल जरूरी है । (X 86 पर) सीपीयू में एक बार पेजिंग सक्षम होने पर, ओएस में दिखाई देने वाले सभी पते (ताकि आप, ड्राइवर डेवलपर) वर्चुअल पतों हैं दूसरे शब्दों में, आपके द्वारा पढ़ा या लिखने वाला कोई भी पता सीपीयू द्वारा एक वर्चुअल पता के रूप में व्याख्या किया जाएगा। यह तब पृष्ठ तालिका पदानुक्रम के माध्यम से जाने के लिए अंत में एक भौतिक पते पर पहुंचने के लिए बस पर आ जाएगा। आप भौतिक पते का उपयोग नहीं कर सकते हैं - वे मैप नहीं किए जाएंगे, या किसी अन्य के साथ मैप नहीं किए जाएंगे तुम्ह...

php - How to stop duplicate entries into database -

itemprop = "text"> Hi there I am trying to insert an array of information in the fields in a database through the selection of the checkbox, OK I am able to insert a duplicate when inserting which is not good I am using the following to insert the item $ list = $ _POST ['sub']; // Quote $ queryQuery = 'tbl_list INSERT (`userId`,` subId')) for each lock for each value to run user information foreach ($ value as $ value) {// $$} value in database (value) \ ''. $ Id. '\', \ '. $ Value.' \ ')'; // Query $ Objects- & gt; Run query ($ listQuery); } , sub id ): Add ALTER TABLE tbl_list unique (`userId`,` sub id`) Then, you should Use INSERT IGNORE or to change again to avoid it.

c++ - how to determine if file is contained by path with boost filesystem v3 -

How can I determine that the file is included in the path with the boost from file system v3. I saw that there is one or more operator but it seems only literally Take two complete paths of file and path file Remove the last part of and see if this is equal to path (if it does) Is there a better way to do this? The following function should be determined that a file is anywhere within the given directory, either In the form of direct child or in some subdirectories. bool path_contains_file (path directory, path file) {// if the end ends with "/" and no root directory, then the last // component will be returned by iterators. " And will intervene / in the down / down / std :: par check, so we strip it before proceeding. If (dir.filename () == ".") Dir.remove_filename (); // We are also not interested in the name of the file. Emphasis (file.has_filename ()); File.remove_filename (); // If there is more component than the DIR file, then the f...

android - Programmatically set the Typeface and set text style in xml not working -

I have a textview defined in the xml, now I'm setting the program this way: textView.setTypeface (APP_FONT_REGULAR); // which is a custom font in assests (.ttf file) I now set android: textStyle = "bold" xml But is it not enforcing bold? What is the reason for me that I should implement my own typefile and set it in bold too. I have to apply my own typeface and also set it in bold. You can set the presence when you call setTypeface () textView.setTypeface (APP_FONT_REGULAR, Typeface BBOLD); This fixes your problem. Check it out.

paypal adaptive payments in sandbox fails with error "The receiver is based in a country that isn't enabled to receive payments" -

I am using PayPal Adaptive Payments for Auto Recharge. Earlier it used to work fine in sandbox mode. My sandbox test account is in Australia, now the adaptive payment fails with the error message "The receiver is located in the country which is not able to receive payments" Is Paypal Adaptive Payment no longer supported in Australia? Thank you. Looks like they (PP) switch all sandbox accounts on the US so that you need to update. All test accounts send emails back to their country. It is from "Import your existing sandbox test accounts using the email address and password you used before the sandbox. Make sure that you import into PayPal account You want to use it for development. You can import only once. Import data In addition to this, "I am a non-US developer. Does the site again design affect me? You can use our classic API (checkout and PayPal payment standard) for new integration. If you do not have a PayPal account, you can create a new busines...

sql - How to apply pivot in below scenarios -

मेरे पास टेबल के नीचे है नाम का महीना साल का गणन -------- -------------------- xxx 12 2012 24 xxx 1 2013 42 xxx 2 2013 23 yyy 12 2012 34 yyy 1 2013 12 yyy 2 2013 54 मैं इसे नीचे प्रारूप में बदलना चाहता हूं, नाम Dec-12 Jan-13 Feb-13 --------------- P> चूंकि आप SQL सर्वर का उपयोग कर रहे हैं, इसलिए कई तरीके हैं कि आप कॉलम में पंक्तियों से डेटा को पिवट कर सकते हैं। यदि आपका मूल्य सीमित हैं या आपके पास ज्ञात संख्याएं हैं, फिर आप स्थिर धुरी वाले मानों को कठिन-कोड कर सकते हैं: नाम का चयन करें, [Dec_12], [Jan_13], [फरवरी 3] से (नाम का चयन करें, बाएं (डेटानाम (महीना, डेटएड (महीना, महीना, 0) -1), 3) + '_' + सही (डाली (वर्चार (4) के रूप में वर्ष), 2) मेरा, [your] ) मेरे लिए ([Dec_12], [Jan_13], [फरवरी 3]) पीआईवी के लिए एसआरसी धुएं (राशि (गिनती); देखें। अब, यदि आपके पास अज्ञात संख्याएं हैं, तो आपको परिणाम उत्पन्न करने के लिए गतिशील एसक्यूएल को कार्यान्वित करने की आवश्यकता होगी: DECLARE @ cols AS NVARCHAR (MAX), @ गुणवत्ता एएन एनएचएआरएआरए (मैक्स) के रूप में @...

vba command to paste special KeepSourceFormatting(K) in powerPoint -

I'm trying to extract a cell range and copy it into PowerPoint2010. Although I do not want to use embedded format, but instead of one of the KeepSourceFormatting I tried the following command: ActiveWindow.View.PasteSpecial DataType: = ppPasteOLEObject, link: = MSOflse But It still creates an object that launches Excel to edit content. Basically I want to paste the table of formatted data from Excel to Powerpoint and want to maintain its presence but still be able to edit the content in PowerPoint. Any thoughts? The following options are for DataType : ppPasteEnhancedMetafile which allows each different area of ​​the table (rather pure solution) ppPasteMetafilePicture same options PpPasteOLEObject which you I can not find any other option.

javascript - How to detect that Google Instant page has loaded completely? -

I am working on a browser extension (thinking) - I need to display some data about the search results Which have been shown. Problem: If anything is added on the results page of Google Instant, while it is still in the process of being loaded, then it will do any additional overwriting, I would like to introduce myself some really infinite set of interlabel business I was caught by writing (Waiting for the content of ol # rso , stop changing in size), I think that means that I'm not sure how strongly determined that page load Happening. I can just wait 1-2 seconds, but I want to start getting the data as much as the results are actually loaded. Edit: Keep in mind, I can not use DOMElement because IE8 does not support it. Try this: window.addEventListener ("message", Function (e) {if (e.data == 'jrc') console.log ('loaded')}, false); It should work in IE 8+ and all other browsers: If it does not work in IE 8 (just can not test on m...

use YUI grid css style for partial page -

I have a menu bar in my page and I do not apply YUI style for this, there are three document sections below. Want to use YUI style I example code: & lt ;? Includes php ("style.html"); ? & Gt; & Lt; Script src = "http://yui.yahooapis.com/3.9.0/build/yui/yui-min.js" & gt; & Lt; / Script & gt; & Lt; Link rel = "stylesheet" type = "text / css" href = "http://yui.yahooapis.com/2.9.0/build/grids/grids-min.css" & gt; & Lt; Link rel = "stylesheet" type = "text / css" href = "http://yui.yahooapis.com/2.9.0/build/reset-fonts-grids/reset-fonts-grids.css" & gt; & Lt; / Head & gt; & Lt; Body & gt; & Lt; Div & gt; & Lt; H1 & gt; HEAD & lt; / H1> & Lt; / Div & gt; & Lt; Div id = top & gt; Top menu & lt; / Div & gt; // The heading style is defined in the HTML file & lt; Div class = "yui-gb" & gt; ...

objective c - TabBar back button is not showing in ios app -

I have created a UINavigationBarButton, where I have placed a button called "update". When the update button is clicked, this second view controller. But the problem is not visible in the second view controller tabbar. What am I trying to do when I tap the back button in the second view controller, it should go back to the rootview controller. Here is the code - (zero) viewDidoadload {[Super Viewedload]; Self.navigationItem.title = @ "Google"; [Self. NavigationalTimeSatelliteFeedup Supplement Backbutton: Yes]; [Self. Navigation Controller Settlerbar: NO]; UIBarButtonItem * nextView = [[UIBarButtonItem alloc] initWithTitle: @ "Update" style: UIBarButtonSystemItemPlay Target: Self-action: @selector (updateAuthorization)]; Self.navigationItem.rightBarButtonItem = nextView; [See next release]; } - (zero) Update {Second Visual Controller * UpdateView = [[SecondView Controller Alok] initWithNibName: @ "SecondView Controller" bundle: zero]; [Self...

python - Pass parameters to a decorator for a class method is to be decorated -

I am trying to define a decorator in the flask which eventually passed the class methods to pass the parameters of that class installation Will do Here's an example that I really want to do. Rick user_mermission (myname): def decorator (f): @wraps (f) def decorate (* args, **) And my manager category is defined: if my name == 'my name': return F (* args, argzz) ** Other: return "not allowed" returning decoration class manager (flask.views.MethodView): def __init __ (auto, name): self.name = name @user_permission (self.my_name) def post (self): return "response" def (self): return "Response" What I'm trying to do Yes, "self" passes class variables from the decorator. Yes "self" is not defined at that point but "@ decorator.asser_promotion (" self.my_name ) "is what I'm actually trying because My problem has not been resolved yet. I could not find a solution. Does anyone know about these ...

asp.net web api - How to add the unhandled exceptions accross the applications in response body in WEB API -

How to add unrelated exceptions to applications in the body with feedback in the WEB API, if there is no exception, Success must be sent to the body .... It is necessary to get help in getting it. You need two things to clear exceptions, you have included an AdWords Enterprise Policy You need to set up, You can configure the error policy preferences in the IncludeErrorDetailPolicy property as part of the Configuration Object (HTTP configuration). This is just an ANIM, which gives instructions to Web ADI about how to deal with the exceptions. The potential value of this enum is, Default: This uses the configurations configuration if you use ASP.NET as a host or locale for self-host Are there. LocalOnly: Includes error details for local requests only Always: Always include error details Never: Error details are not included When an exception occurs, the value of this setting in the Web API Regarding the exception of the response message or not, for example, if enabled, t...

Android image in QEMU -

How to launch qemu with android image I made from Android Source? Qemu gives me that my image is not a bootable disk. Step: 1. I have downloaded and created qemu 2. I have downloaded and created Android Image 3 Trying to start qemu with the following command: qemu-system-i386 system.img and I get the following error: Failed to boot from hard disk booting: ad bootable disk -add option It seems that you are using the wrong architecture instead of q Try emu-system-arm.

python - django UnreadablePostError: request data read error -

I am working on the deeggo project and I have received this error email. Stack trace file "/usr/local/lib/python2.7/dist-packages/Django-1.4.3-py2 .7.egg / django / core / handlers / wsgi.py ", line 180, _get_post in the self._load_post_and_files () file" /usr/local/lib/python2.7/dist-packages/Django-1.4.3-py2 Self._post, self._files = QueryDict (self.body, encoding = self._encoding), MultiValueDict () file ".7.egg / django / http / __ init__.py", line 379, _load_post_and_files "/ usr / Local / lib / python2.7 / dist-packages / Django-1.4.3-py2.7.egg / django / http / __init__.py ", line 335, self._body = self.read () file in body" / Usr / local / lib / python2.7 / dist-packages / Django-1.4.3-py2.7.egg / django / http / __ init__.py ", line 391, self read in return _stream.read (* args, ** Kwargs) file "/usr/local/lib/python2.7/dist-packages/Django-1.4.3-py2.7.egg/django/core/handlers/wsgi.py" , Line 98, reading results...

WebView gets stuck on Read-only Empty TEXTAREA on Samsung Galaxy S3 (Android 4.1.1) -

I have noticed that when Andrew tries to focus Webview on Textea, then only he is more empty. The keyboard comes up and definitely does not input anything in TEXTAREA, but after that WebView is stuck. I can only dismiss the keyboard using the "back" key, but no other function can be executed. Nothing can be done except restarting the entire application I continue this verbose message in the LOGCAT console against the webview. Single Cursor Handler TouchWeek ~ GetEditableSupport FASLE This is only on the Samsung S3 device running Android 4.1.1 and the Samsung Nexus S (Android 4.1 . 2) works perfectly. ) And 4.1.2 Android Emulator. This standalone Webview with example increases the PublicWare TestWebViewTextStylesActivity Activity {WebView mWebView = null; Override public null on @reate (bundle saved instainstate) {super.naught (savedinstenstate); String data = "& lt; html> & lt; body & gt;" + "& Lt; TextRere lin...

sql - oracle license - find how many days left for license to expire -

I write a question to find the remaining days for the type of license and the ending license for the remote Oracle database I am trying to The researches I researched on Oracle 11GR2 were v $ licenses, dba_feature_usage_statistics and PRODUCT_COMPONENT_VERSION, although none according to the Purpose. I can not find the number of licenses for the termination of "each" product component. Any help is greatly appreciated! This information is not stored in your database. You do not need to register each database with Oracle , And I'm not even sure there is any way to do this. Oracle is a configuration manager, but that means collecting information used on my Oracle support, and I'm not sure that it also includes licensing information. The best I can find is www.oracle.com. This contract lists dates, but it is not necessarily related to a particular database. Most of your databases are probably not "licensed" anyway - you can download and run any versio...

Chrome timeline tab explanation -

दस्तावेज़ीकरण कहता है: ध्यान दें कि पहली घटना, अनुरोध भेजें (Calendar.html) एक बार के साथ दिखाया गया है जिसमें नीले रंग के तीन रंग हैं। अंधेरे का समय उस घटना के निशान होता है जो घटना खुद उठाया, अगली बार सीपीयू समय से मेल खाती है जो इस घटना को सभी नेस्टेड इवेंट्स के साथ लेती हैं (यहां, इसमें रिस्पांस प्राप्त करें, डेटा प्राप्त करें और इसी तरह) और Palest bar पहली घटना की शुरुआत और आखिरी घटना के अंत के बीच की दीवार का समय है। क्या वास्तव में प्रथम ईवेंट की शुरुआत है और आखिरी घटना के अंत में "अनुरोध भेजें (कैलेंडर। Html) " घटना है, और आप इसका अर्थ समझेंगे :-) अनुरोध भेजें ईवेंट में एसिंक्रोनस सब-इवेंट्स होंगे, जो कि आखिरी है आमतौर पर समाप्त लोड हो रहा है । इसलिए, आपके अनुरोध के दौरान कुल समय ("अनुरोध भेजें") मिला है और उसका सभी डेटा ("लोड करना समाप्त") प्राप्त हुआ है, जो "दीवार घड़ी" समय है, जो सबसे पीला बार के द्वारा दिखाया गया है। इसके विपरीत, दूसरी पीली बार सिर्फ घटनाओं और उसके सभी उप-घटनाओं का कुल समय दिखाता है (ईवेंट का ...

plsql - PLS-00103: Encountered the symbol "," -

Text after " This process is causing the following error. can be created or processed sample REPLACE start immediately execution 'as CREATE TABLE COLUMN_NAMES (Selection by LISTAGG (column,', 'GROUP (COLUMN_NAME) Order) in the form of students), (select different column from BW_COLUMN_ROW_CELL_JOIN)); '; End; / returns: PLS-00103: Icon faced "," When one of the following is expected: * & amp; = - +; & Lt; / & Gt; Returns the remaining balance, not returns & lt; An exponent (**) & gt; & Lt; & Gt; Or! = Or ~ = & gt; = & Lt; = & Lt; & Gt; And between and using like 4 likec like like2 || MultiSet bulk member submultiset Any one can say what's wrong in this? Thank you. This means that you do not need to worry about all the single quotes in the string to worry about correctly - after the text "itemprop =" There is another way (Oracle 10g and later) optional string is to use literal s...

networking - are TCP client and server in equivalent status after TCP 3_way handshake -

When a TCP client wants to set up a TCP connection to the TCP server, it only requires sending the SQL, and Then the TCP server sends SYN / ACK, so they are different But, after handshaking 3_way, this connection is symmetrical, that is, the TCP client and server in the same situation, for example, the 3-way handshake Afterwards, generally the client can send the packet first, whether TCP Can I send packets first? No, the process is not completely different, but instead of sending an SCN, one in two separate packets ACK, the server unites them by sending them through the same packet! On the other hand, always remember that the customer / server naming is relative. The server is a party that lives in listening mode, while the client is the party that starts the connection ... After the establishment of the connection, both parties are equal (similar situation you said: established). For this reason, both FIN statements can be sent to close both connections ...

iphone - Storyboard Controllers not Deallocating -

स्टोरीबोर्ड का मेरा प्रारंभिक दृश्य नियंत्रक performSegue: withIdentifier विधि का उपयोग करके एक और दृश्य नियंत्रक को लोड करता है किसी अन्य नियंत्रक को एक ही performSegue: withIdentifier विधि का उपयोग करके लोड करता है। हालांकि, आरंभिक दृश्य नियंत्रक और न ही दूसरे दृश्य नियंत्रक deallocating हैं वे दोनों के संदर्भ में 1 के संदर्भ में लिखते हैं, जैसा कि उपकरण के माध्यम से देखा जाता है। मुझे उपयोगकर्ता के पहले नियंत्रक को वापस भेजने की आवश्यकता है, जब वह आवेदन से लॉग आउट करता है। अभी तक मैंने सोचा है कि एकमात्र तरीका है performSegue: withIdentifier विधि का उपयोग करने के लिए और उपयोगकर्ता को प्रारंभिक नियंत्रक पर वापस भेजना है। हालांकि, यह मुझे चिंता करता है कि पिछले नियंत्रक नहीं होंगे इसलिए इस तरह से वितरित, एक ही दृश्य नियंत्रक पुन: निर्माण में जिसके परिणामस्वरूप। चूंकि मुझे पहले स्क्रीन पर एक उपयोगकर्ता वापस लॉगआउट करने की आवश्यकता है, मैं यह सुनिश्चित करना चाहता हूं कि सभी पिछले दृश्य नियंत्रक को deallocated किया गया है। / Div> जब आप एक पुश या मोडल सेग्यू करते...

c# - How to save .rar or .zip file in SQL Server -

मैं एक सी # विंडोज़ अनुप्रयोग बना रहा हूँ और मैं एक rar या ज़िप फ़ाइल को एसक्यूएल सर्वर पर रखता है। क्या किसी .rar या .zip फ़ाइल को SQL सर्वर में सम्मिलित करने का कोई तरीका है और इसे वापस मिल सकता है? कृपया एक कॉलम प्रकार varbinary (max) बनाएँ। सी # में आप सामग्री को बाइट [] के रूप में सम्मिलित / चयन कर सकते हैं। आप फ़ाइल संहिता को बाइट [] के रूप में प्राप्त करने के लिए File.ReadAllBytes या File.WriteAllBytes का उपयोग कर सकते हैं या इसे लिख सकते हैं। और याद रखें: आप हमेशा भी Google का उपयोग कर सकते हैं!

unit testing - UnitilsException: File cannot be found -

After this error can cause org.unitils.core.UnitilsException: inserting the error DBUnit for the org.unitils.dbunit.DbUnitModule method at the test method public void fi.utu.nettiopsu.selenium.student.function.ExamRegistrationTest.examRegistrationTest () org.unitils.dbunit.DbUnitModule.insertDataSet (DbUnitModule.java.156) Data from dataset is $ DbUnitListener.beforeTestSetUp (dbUnitModule.java t57) org.unitils.core.Unitils $ UNISTSTLISER. Predecessor ORG on Testsset (org.unitils.UnitilsJUnit4TestClassRunner $ TestListenerInvokingMethodRoadie.RunBeforesThenTestThenAfters (UnitilsJUnit4TestClassRunner.java151). Org.junit.internal.runners.MethodRoadie.run on Org.unitils.unitils.UnitilsJUnit4TestClassRunner.invokeTestMethod (Unitsjyunet 4TestClassRunner.java:95) (MethodRoadie.java:49) at junit.internal.runners.MethodRoadie.runTest (MethodRoadie.java:84) At org.junit.internal.runners.JUnit4ClassRunner.runMethods (JUnit4ClassRunner.java:61) At org.unitils.UnitilsJUnit4TestClassRunner...

html - Unordered list of hyperlinks - Match bullet color with link text color -

I created all list items as hyperlinks. What do I want here that the color of the bullet should be match according to its condition, the hyperlink color (visited or not seen) I just want to use CSS Is this possible? If I can match the colors while hovering the cursor over the link, then it would be great. try it li (color: red) a {color} : Red; (Block: green)

google apps script - CalendarApp.getAllCalendars() returns array of nulls -

I'm calling CalendarApp.getAllCalendar () on the server via call to client / * - server code - * / function getCalendar () {return CalendarApp.getAllCalendar (); } / * - * / / * - Client code - * / google.script.run.withSuccessHandler (getCalendarsHandler) .getCalendar (); GetCalendarHandler = function (cals) {console.log (JSON.stringify (cals)); }; Console show ... [empty, empty, empty, empty, null, empty, null, null, null, null, null, null, null, null, null, empty, blank] getCalendarsHandler Receives an array of (i have too many calendars) but in that array, each element is zero, can someone tell me what I am doing wrong? Thank you Later on that day ..... On the further investigation it seems that I must first construct the structure on the server I was expecting something similar to the gapi.client.calendar.calendarList.list (); But it seems that I have to build my own - like something .... function getCalendar () {var cal, i, resp; Resp = []; Calories = Calend...

java ee - Validating with LDAP -

I have a web application that runs on weblogic. In general, when a user accesses my web app using a browser, The web application shows them a login page where they are asked to enter their username and password, against them to the LDAP directory Must be certified and then it should present the requested resource. The user ID and password used here are similar to Windows NT User ID and password. I am able to connect LDAP, but valid password is not working. Please help me in this regard. Is your server checking that LDAP v3 or LDAP v2? And when you try to connect ldap, connect with the appropriate version.

c# - Strange issue involving disappearing items -

I have found a combo box which is in the form of an objectable collection as its item source. Thus, the combo box is made up of labels. I have many user controls that can be created by the user, and each of these UserControls can have many combo boxes. When user control is created, a label with the name of UserControl is added to the ObserveClub, thus each combo box whose item source is Observeable Collection, will now also include the latest label. Everything is fine, and combo boxes are populated as new use controls are produced as expected, however, a very strange case is arising. When the user opens the Combo box drop down menu of a UserControl, he can see all the labels properly. Then, when the user opens in the Combo box drop down menu of any other user control, the items are all displayed in the same way. The strange issue now is that when the user goes back to the combo box of the previous user controller, the items disappear. The labels are still there, as I have d...

android - How to get server response code for redirecting response on WebView -

itemprop = "text"> I set a WebView component, I set to a WebViewClient Have done this: webview webview = (webview) Find VVBID (RID.Mi_ViewView); WebView.setWebViewClient (New WebViewClient () {@Override Public Boolean shouldOverrideUrlLoading (WebView to see, string NEWURL) // // Here, I handle URL redirects. @ @ NEWURL is redirected url // How server response code here To reach??}}); You looked up, URL in my code shouldOverrideUrlLoading (...) handles redirect. it works fine. Occasionally, the redirect server response error message is an error code, e.g. The server logs are: & lt; 400 & lt; Content type: Text / plain bad title value: 'name' In the above case, WebView shows the page " Bad title value: 'name' ". My question is, in my Java code, how can I get the server response code (for example, in the above case 400 ) the redirected response? ==================== What I tried ================ ========== ...

ios - Is it possible to set a UIImageView as the background of a prototype UITableViewCell in Interface Builder? -

अगर मैं UIImageView को backgroundView के सेट प्रोटोटाइप सेल एक UITableView इंटरफ़ेस बिल्डर में, फिर प्रोटोटाइप का उपयोग करके एक से अधिक पंक्ति के साथ एक तालिका बनाएं, फिर केवल अंतिम निर्मित सेल को इसके backgroundView UIImageView उदाहरण के लिए सेट। मैं इसके लिए कारण मान रहा हूँ कि जब मैं backgroundView से कनेक्ट करता हूँ मेरे प्रोटोटाइप सेल की इंटरफ़ेस बिल्डर में आउटलेट UIImageView, मैं अनिवार्य रूप से इसे UIImageView के एकल उदाहरण से जोड़ रहा हूं। तो जैसे ही नई कोशिकाओं को बनाया जाता है, प्रत्येक नए सेल में बैकग्राउंड वीज सेट को UIImageView उदाहरण के लिए, पहले बनाए गए सेल से चोरी कर लेता है। क्या इंटरफ़ेस बिल्डर को कॉन्फ़िगर करने का कोई तरीका, जैसे कि प्रोटोटाइप से बनाए गए प्रत्येक नए सेल को अपना backgroundView सेट हो जाता है? यह अजीब लगता है कि आईबी ने आपको एक प्रोटोटाइप सेल के backgroundView से आउटलेट को एक UIImageView कनेक्ट करते हैं, यदि केवल एक कक्ष ही दृश्य का उपयोग कर सकता है। ऐसा करने का सबसे आसान तरीका UITableViewCell subclass होगा अपन...

c# - HtmlDecode dont work using Razor MVC inside html attribute -

मैं MVC4 / Razor को देखने के लिए HTML में MÃÃÆ'à ¢ एक, ¬ Å ¡Ãƒâ € SA, शब्द लिखने की कोशिश कर रहा हूं लेकिन परिणाम गलत तरह है: & lt; span title = "M & amp; # 225; rcia" & gt; MÃcia & lt; / span & gt; नोट: टैग SPAN प्रिंट आउट में सही ढंग से शब्द है, लेकिन मॉडल के उसी संपत्ति में शब्द (@ Model.Name ) एन्कोडेड वर्ण के साथ प्रदर्शित करें & amp; # 225; पहले से ही सभी आदेशों का प्रयास करते हैं, लेकिन HTML विशेषता के अंदर आवेदन करते समय कोई भी काम करता है: @ Html.Raw (model.Name) @ Html.Raw (HttpUtility.HtmlDecode (model.Name)) @ Html.Raw (Server.HtmlDecode (model.Name)) @ HttpUtility.HtmlDecode (model.Name) @ Server.HtmlDecode (Model.Name) एचटीएमएल डीकोड काम नहीं करते हैं, जब html एट्रिब्यूट में इस्तेमाल होता है? यह कैसे काम करने के लिए? यही मेरे लिए काम किया है यहां मेरा होम नियंत्रक कोड है: सार्वजनिक वर्ग होम नियंत्रक: नियंत्रक {सार्वजनिक कार्यप्रदर्शन सूचकांक () {var मॉडल = नया होममोडेल (); Model.Name1 = "M...

html5 - TinyMCE is not working correctly in MVC4 -

I am here in a dam I am trying to use TinyMCE as a text editor in my MVC 4 project . It is very simple yet, I should be able to show the editor correctly. I have 2 classes of importance. Controller: Public Class RapportController: Controller {ImageHandler Handler = ImageHandler.Instance; IDictionary & lt; String, System.Drawing.Image & gt; Image = ImageHandler.Instance.SharedCollection.GetCollection (); Public Performance Index () {Return View (Handler. Lion Collection. GateCollection (.) Value Ollist ()); } Public void GetImage (string name) {(MemoryStream s = Using new MemoryStream ()) {Pictures [name] .save (s, System.Drawing.Imaging.ImageFormat.Png); System.Web.Helpers.WebImage webImg = New System. Web. Assistant. Web image (s); WebImg.Write (); }} Then to see there, which is where I am trying to work TinyMCE: @model IList & LT ; System.Drawing.Image & gt; @ {ViewBag.Title = "index"; } synergy tinyMCE.init ({mode: "textareas...

iphone - How to autoshare on facebook and twitter in ios 6? -

I am using Facebook and Twitter share in my application, here I share the default link and text without showing the share window I want to do it, I tried many ways but still I could not get the solution. This is my code: NSString * str_face = [NSString stringWithFormat: @ "Another instance is now from DelNabit, now it's yours"]; SLComposeViewController * facebookPostVC = [SLComposeViewController Compose ViewControllerForServiceType: SLServiceTypeFacebook]; [FacebookPostVC addImage: [UIImage imageNamed: @ "Default.png"]]; [FacebookPastVC set fiscal text: Strauss]; [Self-present ViewController: Animated facebookPostVC: Yes Completed: Zero]; 1.For using Facebook's account framework and social framework without dialogue, click the - (zero) post {ACAccountStore * accountStore = [[ACAccountStore Alok] init]; ACAccountType * facebookAccountType = [ACCAccountTypeIdentifier: [ACAccountTypeIdentifierFacebook] with the self.accountStore account type; // Spe...

html - using xslt key for finding unique values -

& lt; रूट & gt; & Lt; ए.ए. एटट्र = "xyz1" & gt; & Lt; BB bAttr1 = "firefox" bAttr2 = "aaa" & gt; & Lt; / बी बी & gt; & Lt; BB bAttr1 = "chrome" bAttr2 = "aaa" & gt; & Lt; / बी बी & gt; & Lt; BB bAttr1 = "फ़ायरफ़ॉक्स" bAttr2 = "bbb" & gt; & Lt; / बी बी & gt; & Lt; BB bAttr1 = "chrome" bAttr2 = "bbb" & gt; & Lt; / बी बी & gt; & Lt; / एए & gt; & Lt; ए.ए. Aattr = "xyz2" & gt; & Lt; BB bAttr1 = "firefox" bAttr2 = "aaa" & gt; & Lt; / बी बी & gt; & Lt; BB bAttr1 = "chrome" bAttr2 = "ccc" & gt; & Lt; / बी बी & gt; & Lt; BB bAttr1 = "firefox" bAttr2 = "ddd" & gt; & Lt; / बी बी & gt; & Lt; / एए & gt; मैं नोड 'बी' में एटिब्यूट 'बीएटीआर 2' के अलग-अलग मानों का चयन कर...

list - Comparision of Values from XML Files in Python -

My UML diagram is like this: rootNode | Book (specialty: name). Table (specialty: name). TableEntry (attribute: field, value) When I use this code: BookNode.getBooks () book in: print Book. GetName () in the table. Table in Table for table). Table (table.getName) for table table .getTableEntrys (): Print TableEntry.getField (), TableEntry.getValue () Output like this: Document T1F1V1F2V2F3V3F4V4F5V5F6V6T2F1V1F2V2F3V 3F4V4F5V5F6V6Document T2F2V2F3V3F4V4F5V5F6V6 I have a field and value Exchange and Value V1 in the document (first), for each field and value In Tavejh (II) would like to compare F1 V1. For both of my files is the name of the same book, which is a document. I also want to meet in both missing fields or additional fields, such as my F1 and V1 are unavailable in T2. and if you If you want to compare with institutions, use it 'is' / P> for example = & gt; a = 123; B = 123; A Output: true

Powershell Script to Find SharePoint Groups with [No Access] -

Our company is upgrading with some appointments (some) with custom SharePoint groups [no access] Adding Throwing Throwing Members Access Disapproved Messages while trying to reach the site. Is a powerful script that can be searched for custom SharePoint groups with our full web application [no access]? Any help is greatly appreciated Thanks. Sorry I do not know anything about managing SharePoint with PowerShill. Head Corp IT will not enter me. Remember, do not start your question with "I need a script".

R formula of type y ~ fn(type="x")+fn(type="z"), disregard the second occurence of fn? -

I have a model building function where the formula may contain some functions, and I would like to do this so that user input Function is used many times, only for the first time with a warning, for example LM if we use the same variable twice, then the second one is released: y & lt; -1: 3 x This works because the function model.frame is used in the code> word , but in my case I am working with the work inside the formula which is not necessarily the same logic List, and I would like to extend this behavior so that the logic of these functions does not make any difference: model (y ~ x + fn ("x")) (interrupt) x Temp 1 1 1 1 2 1 2 1 3 1 3 1 model (y ~ x + fn ("x") + fn ("x") # Directional function calls (intercept) X temporary 1 1 1 1 2 1 2 1 3 1 3 1 model (y_x + fn ("x") + fn ("z")) with # different argument value error in # function atrate (all_terms, "variables") [[1 + ind_fn]]: Out of the CSS limit ...

scroll - iOS UICollectionView lags with scrolling at start -

I use a simple UICollectionView in my project in iOS. The view loads to approximately 100 cells. The problem occurs even if the rooms are empty. The view view appears after the view deedload. When I start scoring about the first three screen pages, then it is empty - even with empty cells! After this I become smooth, I can also go to the top of the page and try again. Smooth scrolling caps For two reasons that you can also face 1 Google Analytics If you set to count each cell view, it starts fast, but then slows down and lags because Google Analytics writes I / O (maybe some caching) like you Scroll fast. 2 date parsing The date format is difficult if you set up for each cell, make sure you have a singleton if possible.

c - Variables .BSS section -

The initial variable is included in the BSS section. The first question: Do they live there when they are assigned? The second question / problem: I want to load this section in an external SDRAM. Variables are located correctly in the memory map, but full of strange values, and I can not keep any other number in them. If you have an idea about the problem / * Memory Map * / memory {vectors (X): Original = 0x00000000 length = 0x00000020 FLASH0 (RX): origin = 0x00000020 length = 0x00l7FFE0 FLASHl (RX): origin = 0x00180000 length = 0x00180000 ads (RW): origin = 0x08000000 length = 0x00001500 RAM (RW): origin = 0x08001500 length = 0x0003EB00 SDRAM (RW): origin = 0x80000000 length = 0x00800000} / * ---- -------------------------------------------------- ---------------------- * / / * section configuration * / section {.instics: {} & gt; Vector Text: {} & gt; FLASH0 | FLASH1 .const: {} & gt; FLASH0 | FLASH1. Cinit: {} & gt; FLASH0 | FLASH1. PIN: {} & gt; FLASH...

f# - Event and Observable in FSharp -

Is it equivalent to doing this job On this Or with an overview on an event's property seems functionally similar, and I think the difference is 'meaning': Are we considering this as an inactive source, from which a stream has come to us Is this the right thinking? The main difference between incident and observable is how do they handle the state and the United Nations? subscription The Events function are attached to the source event and you do not give a way to unsubscribe. If you use stateless combinations (such as Event.scan ) and then attach many supervisors to the resultant event, they all will see the same status. Inspectable function creates the "specification" of the processing pipeline when you attach a handler to the IObservable value , You can get a IDisposable back which can be used to remove all the handlers, each handler connected to IObservable will receive a new state ( Because making a new processing...

c - socket accept only specific addresses? -

I am writing a small TCP server based on the example below. Add # & lt; Sys / socket.h & gt; # Include & lt; Sys / un.h & gt; # Include & lt; Stdlib.h & gt; # Include & lt; Stdio.h & gt; #include & lt; String.h & gt; # Defined MY_SOCK_PATH "/ somepath" #define LISTEN_BACKLOG 50 #define handle_error (msg) \ do {perror (msg); Exhaust (EXIT_FAILURE); } While (0) int main (int argc, char * argv []) {int sfd, cfd; Struct sockaddr_un my_addr, peer_addr; Socklen_t peer_addr_size; Sfd = Socket (AF_UNIX, SOCK_STREAM, 0); If (sfd == -1) handle_error ("socket"); Memc (& amp; my_addr, 0, size (struct sockaddr_un)); / * Clear Configuration * / my_addr.sun_family = AF_UNIX; Strncpy (my_addr.sun_path, MY_SOCK_PATH, size (my_addr.sun_path) - 1); If (Tie (SFD, (Structured Socder *) and MyEADDR, Psychophag (Structure Secunder_an)) == -1) Hand_error ("Bind"); If (listen (sfd, LISTEN_BACKLOG) == -1) handle_error ("listen...

Will sites built on Backbone.js be unusable on computers with Javascript disabled? -

I'm researching Backbone.js for a short time and wrapping my mind Trying it It seems that when backbone.js is running, you are passing all of your server interaction (or as much as you want) through the backbone.js layer. My question is: Does this not mean that if Javascript was disabled, then your application / site will no longer work? If so, is not it a big deal? What is the best practice for issuing notification to the user, which is it Javascript ? Yes, any single-page application for all effects and purposes, that is backbone or any other framework , JavaScript is required to run. It is possible to design a website which acts as a traditional, document / hyperlink based application and then with Javascript Progression of this type of design It is called volatile growth, and it is seriously discontinued with more complex applications. For the spinal cord, one, it expects that you get data from property services and display it using client side rendering. To s...

java - Overlapping regular expression -

I got a similar question though I did not find the job: I like "my_token_string" There is a string and a regex is needed to return the token "my_", "_token_", and "_string". Please note that I can not change the Java code as it is part of any other software. The only thing I can do is to capture patterns and groups: -) This is what I have done: string p = " (? = (_ [^ _] * _))? "; Int group = 1; String test = "my_token_string"; Matcher m = Pattern.compile (p). Mishor (test); While (m.find ()) {System.out.println (m.group (group)); } But of course it only gives "_token_" and "_string" token. you "(? = ((| | | _).? (_ | $) ). Try using " as the group number 1 . This will start with _ or input ( Will start the token with ^ ) and end it with _ or end up with input ( $ ) instead of [^ _] + , but I like this version.