Posts

Showing posts from May, 2010

javascript - How to use two hashPrefix in and AngularJS application? -

I am trying to do SPO-friendly SPA and currently it has links to # / path / page and I #! / Path / page, sadly that the site is currently in production and it has already been shared on social, so I keep the old link (# / path / page) available I am trying. Is there a way to redirect this traffic or to work both the hash prefix in any workaround, #and #!? I found an easy solution, fingerprints should not include JavaScript only: & lt; Script & gt; If (window.location.hash.indexOf ("# /")! = -1 and window.location.hash.indexOf ("#! /") == -1) {window.location.hash = window. location.hash.replace ("#", "#!"); } & Lt; / Script & gt;

tsql - How to design textbox visibility expression in SSRS? -

मेरे पास एक टेबल / टेक्स्ट बॉक्स दृश्यता के साथ एक RDL है: = iif ( मैं इस पाठ बॉक्स को "वर्णनात्मक" नाम के मान को बनाने की कोशिश कर रहा हूं, यदि सिर्फ सवाल_कैप्शन रिकॉर्ड = "ऑब्जेक्टिव 1" । मैं यह कैसे कर सकता हूँ? वर्तमान में यह टेक्स्ट बॉक्स उपरोक्त तर्क के साथ कुछ नहीं दिखाता है। मेरे पास प्लेसहोल्डर में वर्णित फ़ील्ड है, अगर कोई फर्क पड़ता है। यहां आपके लिए कुछ नमूना डेटा है: तालिका बनाएं #dummy_data (question_caption varchar (max) , वर्णनात्मक varchar (अधिकतम)) #dummy_data मानों ('1 सप्ताह की तिथियां', 'सप्ताह 1'), ('2 सप्ताह की तिथियां', 'सप्ताह 2'), ('तीसरी सप्ताह की तारीख', 'सप्ताह 3') सम्मिलित करें, ('ऑब्जेक्टिव 1', 'ओजज 1'), ('5 वें सप्ताह की तिथियां', 'हफ्ते 5') #dummy_data से * चुनें * मुझे आपकी दृश्यता अभिव्यक्ति में कुछ भी गलत दिखाई नहीं देता हालांकि, आपके प्रश्न में, आप दो अलग चीजों पर एक (यानी, दृश्यता और प्लेसहोल्डर में एक मूल्य प्रदर्शित) के रूप में चर...

android - Scale images inside textview using ImageGetter -

I'm trying to scan images, but I can not see. I am using this code, but no matter, it shows the image inside the container or does not show at all. int width, height; Display Metrics Metrics = New Performance Metals (); Matrix = resource Gate system () GetDisplayMetrics (); int BasicVissole = (int) (result.getIntrinsicWidth () * metrics.density); Int basichell scale = (int) (result. Gain intermediate height) * metrics density); If (BasicWindowsCalculate> Matrix.Width Pixels) {height = result.getIntrinsicHeight () * metrics.widthPixels / result.getIntrinsicWidth (); Width = metrics.widthPixels; } And (height = originalHeightScaled; Width = originalWidthScaled;} UrlDrawable.drawable = result; urlDrawable.setBounds (0, 0, 0 + width, 0 + height); // To change the reference of the current call to copy // HTTP // reducing the image by invalidating container.invalidate from call. // for ICS container. Sathete (container.gethit (+) + result. Gate intricacyite ()); // pre ICs co...

Save table row to a cookie or html5 storage -

What I'm going to do is, there is a button on every line in that table, when that click Saves in or the HTML5 webstorage (cookies were my first thoughts, but it seems that webstorage can be a better option). To show me this table, I also want to remove it from the line that it was chosen. When I or the user end up choosing different rows, then we go to a new page that lists all the data of the cookie or webstorage in the new table. Thanks Tohaku, you're not imagining where the data comes from If you have been, will you update / update / save it? But to suggest only the following suggestions. If this database is coming from the backend server, then simply create the table and add buttons and assign an onclic event to JavaScript with AJAX so that each row can be removed from the database. How do you remove that line, just enter the class identifier on the TD column, to delete the script, JavaScript has been deleted. You do not need to save because it has already ...

Does adding the C++ prefix "const" do anything differently at a hardware level or is it just protection for the coder? -

इस सवाल का पहले से ही एक उत्तर है: 6 उत्तर क्या int x = 5; और const int cx = 5; हार्डवेयर स्तर पर कुछ अलग तरीके से करें? मैंने कभी ऐसा नहीं समझा। दूसरे शब्दों में, अगर मैंने घोषित किया है int x = 5; और फिर x का उपयोग करने के लिए कभी भी मेरे कोड में एल कहीं भी नहीं , क्या यह ठीक उसी तरह से संकलित करेगा जैसे मैंने x स्थिर की घोषणा की थी? क्या यह लापरवाह प्रोग्रामिंग के खिलाफ सिर्फ एक सुरक्षा है? यह प्रोग्रामर से सिर्फ सुरक्षा है यदि आप सही const_cast के साथ घूमते हैं, तो आप const -a ओवरराइड कर सकते हैं और const चर पर लिख सकते हैं विधानसभा कोड const चर को बदल सकता है, जैसे कुछ और हालांकि, यदि आप const का मान बदलते हैं, तो नए मान सभी संदर्भों में दिखाई नहीं दे सकते हैं, क्योंकि कंपाइलर्स आक्रामक इन-लाइन स्थिरांक।

node.js - Difficulty in Testing Response Header Fields Other Than Status Code -

I am using Express Framework (Node.js code works as shown below and I return to the title Can see your customized message) to retrieve a collection from the database and return the response header to the customer to put a customized message: if (req.accepts ('json') ) {** res.header ('warning', 'my_customized_message'); ** res.header ('content-type', 'application / json'); Res.send (res.locals.items, 200); } Now, I try to use "MOCHA" to test this line unit of newly added code using MOCHA: Requires Request = ('Request'); Should = need ('should'); Description ('received / core / dbq / 534e930204dd311822ec1c9d', function () {this.timeout (15000), this ('check header message', function (done) {request.get ('http: // localhost: 3001 / ecrud / v1 / core / dbq / 534e930204dd311822ec1c9d ', function (hey, feedback, header) {response.statusCode.should.equal (200); response.warning.should.equal...

AngularJS ui-router: force reload -

I have to use an aggregate js app and uri router starting with index.html. Based on the trigger I want to reload the entire page. I tried: $ state.go ($ state purchase, $ state mercury, {reload: truth, heirs: wrong, notify: true}); But this does not work, it does not reload my initial index.html. I can: window.location.href = "index.html"; But then I'm on my initial page, not on the current situation. With a set window.location.href the index.html query string parameter that specifies the current location? If I do this, then how can I go to this place? Current move is: $ state.go ($ state .current.name, $ state.params, {reload: true});

capistrano - Rails deploying Gemfile.lock to development and production repositories -

मेरे पास विकास के लिए एक ऐप निर्देशिका है: d: / some / dir / myapp । sample-repo नामक एक रिपॉजिटरी है, लेकिन इसकी दो शाखाएं हैं: विकास और मास्टर । मेरे ऐप के जेफफ़ाइल नमूना-रेपो रिपॉजिटरी की पर्यावरण-विशिष्ट शाखा का उपयोग करता है: रेलवे_एनएवी = ENV ['रेलसेएनएएनवी'] || 'विकास' मणि 'नमूना-रेपो', जीआईटी: "git@bitbucket.org: MyUserName / sample-repo.git", शाखा: "# {RAILS_ENV.to_sym ==: उत्पादन ?: मास्टर:: विकास}" मेरे वेब होस्ट में दो अलग-अलग निर्देशिकाएं हैं; विकास के लिए एक और उत्पादन के लिए दूसरा प्रत्येक को अपनी संबंधित शाखाओं (विकास = & gt; विकास, उत्पादन = & gt; मास्टर) से जीआईटी खींचने के माध्यम से अपडेट किया जाता है। यह एक समस्या है क्योंकि जब मैं bundle update को चलाता हूं मेरी डेवलपमेंट मशीन में, Gemfile.lock में नमूना-रेपो मणि, विकास शाखा को निर्दिष्ट करते हैं। मैं फिर gemfile.jpg मेरे रिपो (विकास और मास्टर दोनों) के लिए Gemfile.lock को दबाएं, और अब मास्टर रेपो में एक Gemfile.lock जो कि विकास शाखा को...

ruby - Mongoid: How to reference parent object attributes from a child in N-to-N relationship -

I'm totally new to the new definition of class, what is there to do with an option or something like that? Monogead in the class band :: Document Field: Name, Type: String is_and_belong_to_man: Members include the end class members of Mongaid :: Document Field: Name, Type: string__and_blog_to_mem: band and endy = Member.New (name: 'Andy Bell') Ride = Band.New (name: 'Ride') Ride. Members & lt; & Lt; Andy Oasis = Band.New (name: 'Oasis') Oasis Members & lt; & Lt; Andy Andy Band # = & gt; Returns: [] (empty array) andy.band_ids # = & gt; Returns: [BSON :: Object ID ('53586 A786D6163870C30000'), BSON :: ObjectID ('53586 A786D6163870 CT 40000')] I'm not sure, but reading again using the method of loading, does it help?: If you You are using a default scope on a model that has has_many, has_and_belongs_to_many, or embeds_many, you have to reoplied the relationship to be relocated. It is important to note th...

python - How to ignore NaN in colorbar? -

Image
मेरे पास 3 डी सतह है, एक रंग बार के साथ सर्फ = Ax.plot_surface (xv, yv, zv, ...) cb = fig.colorbar (सर्फ) जब यह काम करता है, ऐसा लगता है: समस्या यह है कि कुछ मान शायद एनएएन हो सकते हैं जिस स्थिति में रंगबार उत्पन्न करने में विफल रहता है, जैसे: सी: \ उपयोगकर्ता \ सैम \ एनाकॉन्डा \ lib \ site-packages \ matplotlib \ colorbar.py: 581: रनटाइम चेतावनी: अधिक से अधिक संख्या में अमान्य मूल्य = (टीक्स & gt; -0.001) & amp; (Ticks & lt; 1.001) सी: \ उपयोगकर्ता \ सैम \ एनाकॉन्डा \ lib \ site-packages \ matplotlib \ colorbar.py: 581: रनटाइम चेतावनी: कम अराजक = (टीक्स & gt; -0.001) में सामना करना पड़ा अमान्य मूल्य & amp; (ticks & lt; 1.001) सी: \ उपयोगकर्ता \ सैम \ एनाकॉन्डा \ lib \ site-packages \ matplotlib \ colors.py: 576: रनटाइम चेतावनी: कम cbook._putmask (xa, xa & lt; 0.0, -1) मैं 0 ( zv [isnan (zv)] = 0 के साथ zv के NaN मानों को बदलने की कोशिश कर सकता हूं, लेकिन फिर परिणामस्वरूप ग्राफ में खड़ी चट्टानें हैं , जो कुछ सुविधाओं को भ्रमित और अस...

multi gpu - Atomic Exchange Sorting Algorithm in MultiGPU -

How can the nuclear exchange sorting algorithm be implemented in multi-GPU? Is there any reference available? If you point out an algorithm that can be used, then this question will help A guideline to help answer So, I pulled an algorithm from the following: Here is the basic algorithm: int main (zero) {Int array [5] ; // an array of integers int length = 5; // The string of the array. Int i, j; Int temporary; For some input {cout & lt; //} for (i = 0; i & lt; 5; i ++) & Lt; "Enter numbers:"; Cin & gt; & Gt; Array [i]; } // algorithm for (i = 0; i You may want to see this page for some source code that can help: But if you Using OpenCL and the equation given above, you might want to do something like this: Open a connection for each card. Then, where there are external loops, send them to each, perhaps round robin for each card. You will need a final type on a GPU to finish, but you would like to use a different algorithm, bec...

objective c - Call Superclass method -

In Objective-C, how do I call the object's super class method? For example, say I have an example of an object "foo". There is a method in "foo" which is override. I do not want to call this overriden method. Instead, I want to call the original method at the foo object instance. You can not do this: [[Instance Super] super_math]; So far as I know how can I go about doing this? I know that I can add a method for foo: - (zero) calls on {{super super_method]; } and more: [foo calluper]; Any other ways? I really do not want to make any way to do this. keyword super This does it for you most commonly it is - Init is seen in the methods here. - (id) init {if (self = [super init]) {// custom initialization} auto back; } In this case, the super keyword is used to call this class which is the -init method Implementation is called. Super can be used on any method that implements your superclass.

c# - Read textbox and assign input to variable in another class -

I have tried to go through similar questions and answers about this subject, but I have a solution Or to understand). On Form 1, I have three text boxes that will get user input. In a different class I have a way of using input from those text boxes. Form1.cs only have text boxes and some buttons. The method in the other class is using system; Using System.Collections.Generic; Using System.Linq; System usage threading. Task; Using System.Windows.Forms; Name Location RealEstateApp {Public Class RealEstateApp: Form 1 {/// & lt; Summary & gt; Main entry point for the application /// & lt; / Summary & gt; [STAThread] Public static zero Main () {Application.EnableVisualStyles (); Application.SetCompatibleTextRenderingDefault (wrong); Application.Run (New Form 1 ()); Const. Double RENTAL_AMOUNT = 1000.00; Real Estate Investing Investment 1 = New Real Estate Investment (2004, 150000, "65th Street"); Invest1.MonthlyExpense = GetExpenses (); invest1.IncomeFr...

jQuery AJAX callback not executed when debugging via Firebug -

It is often observed behavior that jQuery's asynchronous AJAX call works while running without opening firebug, however, when it works Firebug is opened and I'm debugging by putting some breakpoints in some part of the code, the AJAX callback event does not fire. My assumption is this, because I already get the AJAX feedback callback event escaping in the second unrelated part of the step-step, whether this assumption is correct is? If so, how do I make sure that the callback always fire? If not, what am I doing? My assumption is this, because I'm already in the second unrelated part of the code Ajax response callback event is saved while debugging the two-stage debugging. Is this belief correct? Yes, in firebug 1.x Although he is in firebug 2.0 (while writing this answer in beta phase). Example See the following code: & lt; script type = "text / javascript" & gt; Function Mercantile () {var xhr = new XMLHttpRequest (); Xhr.open ("G...

javascript - TypeError: null reference error -

I'm learning codecademy javascript code and I do not really understand why this gives me this error: TypeError: Unable to retrieve the property 'Magazine' of the undefined or empty reference Type the add method, which has a parameter, the itemost Add itemCost to the total We wrote partial scan method for you and started a switch statement. Add the following 2 items to the switch statement: "Magazine", 4.99 "Chocolate", 0.45 Finally, use the scan method to buy 2 eggs and 3 magazines. Scan: {item} {switch} (case) {case "eggs": this. (0.98) add; break; Case "milk": this.add (1.23); break; // Add another 2 items here Case 'Magazine': this.add (4.99); break; Case 'Chocolate': this.add (0.45); break; } Back true; }}; Cash registrar ['eggs', 'eggs', 'magazine', 'magazine'] console.log ('your bill is' + cash registrar); It looks like you get too many bits, but...

ASP.net Back button from logout goes to previous page despite caching turned off -

I have an application where I click the log out and the back button of the browser, only on the cache version of the page shown Static data is redirected (dynamically incoming data is not shown). Now, I have all the code related to disabling caching. I have used the following methods in my code Response.Cache.SetCacheability (HttpCacheability.NoCache); feedback. Buffer = true; Response. Exporter's Azolitude = DateTime.Now Adue de (-1); feedback. Expere = 0; Response. Catch Control = "No-Cash"; javascript: window.history.forward (1); Page.Response.AppendHeader ("Cash-Control", "No-Store, No-Cash, Sure-Modified, Post Check = 0, Tried to disable the input cache setting in the pre-check = 0 "IIT (IOR 7.5), but to no avail. Actually, to find online in my code All steps have been tried The point of intestring is: All the above solutions work right on my dev machine when I have them in my prod server's intro (url syaing local...

ruby on rails - Capistrano Depolyment failure : /etc/init.d/unicorn: line 42: rvm-shell command not found -

I am stationed on the server using Unicorn, and Callistino in the rail .... But in the last phase of deployment, Capistrano exists with this error: INFO [47010f4f] is running / usr / bin / env service on unicorn_app restart xyzdomain.com DEBUG [47010f4f] Order: Service Unicorn_app restart DEBUG [47010f4f] Reload T, 'CD / var / www / app / current; RVM-Shell 'Default' -C 'Bundle Exec Unicon - D -c /var/www/app/shared/config/unicorn.rb-E Staging' Instead Debug [47010f4f] DEBUG [47010f4f] / ATC / Int. / Unicorn_app: Line 42: RVM-Shell: Order Not Found DEBUG [47010f4f] Cap Canceled! When I run the rvm-shell command from the terminal on the server, it runs without any errors. Note: rvm-shell is installed ~ / .rvm / bin " The solution to this problem: This was actually some permissions issue on the server. When I execute the command , which was failing directly on the server, it produced some directory permission errors I manually cr...

sql - many to many relationship mysql design -

Many users can have multiple tabs, so I designed this table UID (PK) User-Tab UID (FK) TabID (FK) Tab Tab IID (PK) But when I FK to the User-tab I got this error 1050 - table '. \ Db \ tab @ 002duser 'already exists This is your DB-design or There is no problem with existing records, but there is a naming problem. MySQL rules for naming unquoted identifiers are: use CamelCase or dash-style-writing , snake_case_writing : allowed characters (wire, not value) in uncovered identifiers: ASCII: [0- 9, as, as $ _] (original Latin letter, digits 0-9, dollar, underscore) extended: U + 0080. U + FFFF Edit Another abridgment from Docs ( Ore for reading this and me ) Naming Convention For identifiers formed by several words, separate each component with underscores rather than capitalization. Thus, use my_var instead of myvar or MyVar. Avoid capital letters except class names; Class names should begin with a capital letter. class item...

c# - Input string was not in a correct format. (Editable Gridview) -

Whenever I try to edit the information inside my gridview, it throws me this error ... . Here is my code for edit protected zero GRDTech_RowEditing (Object Sender, GridViewEditEventArgs e) {GRDTech.EditRowStyle.BackColor = System.Drawing.Color.LightYellow ; GRDtech EditIndex = E. New edits index; BindData (); } And here is my code: compared to boolResults = true; Text box txtAddFROMKMREAD = (textbox) default._def.readyTech .FooterRow.FindControl ("txtAddFROMKMREAD"); Dropdown list drpPlateNum = (dropdown list) default._def.GEtech .FooterRow.FindControl ("drpPlateNum"); String txt = txtAddFROMKMREAD.Text; Int readDepartureKM = Convert.ToInt32 (txtAddFROMKMREAD.Text); Text box txtAddTOKMREADING = (text box) Default._def .GRDTech.FooterRow.FindControl ("txtAddTOKMREADING"); Int Accessbrating = Convert. ToInt32 (txtAddTOKMREADING.Text); Compared Response = (ArrivalCamreding & lt; readDepartureKM); part int readDepartureKM is giving me a...

Android google cloud messaging -

I try to send a message from my server to Google Cloud Server, but I have a problem ... I have a server key (Key for server applications), set it to this code: $ headers = array ('authorization: key ='. My server key, 'content-type: application / Jason '); $ Ch = curl_init (); Curl_setopt ($ CH, CURLOPT_URL, $ url); Curl_setopt ($ ch, CURLOPT_POST, true); Curl_setopt ($ CH, CURLOPT_HTTPHEADER, $ headers); Curl_setopt ($ CH, CURLOPT_RETURNTRANSFER, true); Curl_setopt ($ CH, CURLOPT_SSL_VERIFYHOST, 0); Curl_setopt ($ CH, CURLOPT_SSL_VERIFYPEER, incorrect); Curl_setopt ($ ch, CURLOPT_POSTFIELDS, json_encode ($ fields)); $ Result = curl_xac ($ CH); This is the result after sending me a message: Unauthorized error 401 I use such IPs: 78.47.150.20 But when I use the test IP 0.0.0.0/0 then I have no problem .... function sending notification ($ registrar array, $ messagedata) {$ apiKey = "YOUR_API_KEY"; $ Headers = array ("Content Type:...

eclipse - Solution to NullPointerException in my TestNG test case -

I use testng from external Excel sheet using multiple sets of entry code but what I wrote throws the code in it: Failed on DataDriven.loginRetesting.f (loginRetesting.java31) on F JavaklangkNullPointerException on sun.reflect.NativeMethodAccessorImpl.invoke0 (Basic Law) sun.reflect.NativeMethodAccessorImpl.invoke (NativeMethodAccessorImpl.java:57) at sun.reflect.DellegatingMethodAccessorImpl.invoke (DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke (method.java:601) org.testng. org.testng.internal.Invoker on org.testng.internal.Invoker.invokeMethod (Invoker.java:714) on internal.MethodInvocationHelper.invokeMethod (methodInvocationHelper.java:84). org.testng.internal at org.testng.internal.TestMethodWorker.invokeTestMethods (TestMethodWorker.java:127) at invokeTestMethod (Invoker.java: 901) at org.testng.internal.Invoker.invokeTestMethods (Invoker.java:1231). on org.testng.TestRunner.privateRun (TestRunner.java:767) on TestMethodWorker.run (org.testng) o...

javascript - how to access changed attributes after fetch? backbone.js -

I am using this code to fetch models from a server: Var id = Args.model.get ('id'); Var option = {action: 'getSubscriber', address: args.model.get ('address'), silent: true}; New Subscriber ({ID: ID}, Options) .Fatch ({Success: Function (Model, Response) {console.log (feedback); console.log (model);}}); The response contains all the data I need while the model does not store the data as its direct attribute, but as That has changed the object is wrong? Normally I use model attribute with the help of the model.get ('name') call. How do I use new features in that case? Is this the model.changed.thePropertyIwantToAccess ? You might want to change it to change event this.model.on ('change', function () {var changedAttributes = this.model.changedAttributes (); // Processes on changed attributes}, this); Do this event in the start work of view )

c# - Can I select individual Items from a list? -

I have a list of strings and I have to select some parts of the list to create a different string. What do I have: name, gender, hair color, car; Or John, Men, Brown, Toyota; I also have a separate file which tells which part, and in which order the new string should be created. Example: Index = 0,3, 1 will print John, Toyota, Male or 1,2,0 Print will Male, Brown, John . I have tried and I have tried several ways to choose the index of items, but all the tasks which return the values ​​only return the contents of the list, and only one Returns which gives an integer calculation () , which can not see me as a helper. I have tried and tried, but whatever I am doing, it is confusing me as much as I am. Can someone suggest getting it? You should be able to list [i] where I have an index of essential elements here. Examples are given:

php - inner join query don't return any things -

I have a php code in it for a mysql query Uses. The tables have the correct values ​​to select users and conversations and main_profile to query after this query but nothing returns the query. $ SqlQuer = "SELECT` conversation`,` Conversation`. Text, `main_profile` .___name,` Conversation` with `user`. Id 'INNER' user '(' user ' `.User =` Conversation`. So say INNER to `main_profile '(` user `.id =` main_profile` .user_id), where' conversations'. = ''. $ "'.' 'And' conversation '.0 =' 0 '"; $ Result = mysql_query ($ sqlQuer) or die (mysql_error ()); While ($ line = mysql_fetch_array ($ result)) {echo $ line [0] "# text #" $ line [1] "# Text #" $ line [2] "# CON #"; $ Id [] = $ line ['id']; } Any Idea Resolve question with this change It was done that Inner Joyin was changed to the Left Joiner and the other was changed to join the right way. ...

paypal - Facebook payouts in not USA country -

Sorry, I know that programming is not a question, but I continue to direct the Stackworflow. One of his pages Facebook said that my country (Uruguay) is not back in the list, for account payments or paypal payouts. However, due to recent changes to Facebook in my credit / local currency system, I wanted to check and I am making an account with a testing company based in Uruguay and a Pope account from Uruguay. Facebook form has not left any warning, only hope (you should upload your document). So ..., if I upload my document, will we be able to withdraw money earned in our app? As you are seeing is a critical subject, we just open the app and validate the documents if we will not be able to finally withdraw this money. Thank you. If you are asking if Uddhar is supported by PayPal, then the answer is yes. Here is a direct link to PayPal Uruguay login page: Here you can get money from the Uruguay PayPal account and withdraw money: >

javascript - jquery keyup function: enabling/disabling a textbox using keyup() -

I am trying to disable the text box using the keypages functionality. I have a textare and a text box now I use a key up operation on the backspace key, as if the length of the content within the text is 3, it The text box should be disabled. I also have a warning message, which is the length of the content in the text area when the pop is done 3. The code has worked for pop up, but it does not work for the text box. What am I missing? Please help. Here's my code: $ ('# comment'). Key (function (if (event.which == 8) {var txt = $ ('# comment'). Val () Length; if (txt == 3) {warning ("backspace"); $ ( "# Lesson1"). Atter ("Diasbold", "Dysbald");}}}); And here's the purpose. You have some typo here it should be disabled not diagnosed {$ ("disabled", true);} other {$ ("# lesson1") = $ ('# text1') = $ (This) .val () Length; If (Lennon> = 3) {$ ("# text1"). Sahara...

java - Why should the length property at hibernate mapping file be a power of 2? -

I have read somewhere that the length of the hibernate mapping file should have the power of 2, that is, 2, 4, 8, 16, 32, ... and so on. Is it true? And if so, what is that? The length of a property in the hibernate will be mapped to the length of the database area Do you really have the power of two Should use? Go to your app's needs first if you have an employee number of 15 characters, then the field does not make power 16 by 2. If you have to choose the length of length, then it is important to save the disk nowadays, some bits of the deprecated hard disk on this type of database and area? I can not magnify all the performance details with so many databases, versions, engines or configurations. Maybe Dashmi (255) Dummy is faster in SQL 4.3.1 and Varvar (256) has been implemented as Clube. But the floral is compared to version 4.4. This is why big organizations have a database administrator. In addition to this I am not aware of any specific limit or re...

php - Get select tag's options by javascript -

नाम = "गति" शैली = "चौड़ाई: HTML code: & lt; 100px "& gt; & Lt; विकल्प मान = "1" & gt; 1 आरएमबी & lt; / विकल्प & gt; & Lt; विकल्प मान = "2" & gt; 2 आरएमबी & lt; / विकल्प & gt; & Lt; विकल्प मान = "3" & gt; 3 आरएमबी & lt; / विकल्प & gt; & Lt; विकल्प मान = "4" & gt; 4 आरएमबी & lt; / विकल्प & gt; & Lt; विकल्प मान = "5" & gt; 5 आरएमबी & lt; / विकल्प & gt; & Lt; विकल्प मान = "6" & gt; 6 आरएमबी & lt; / विकल्प & gt; & lt; विकल्प मान = "7" & gt; 7 आरएमबी & lt; / विकल्प & gt; & lt; विकल्प मान = "8" & gt; 8 आरएमबी & lt; / विकल्प & gt; & lt; विकल्प मान = "9" & gt; 9 आरएमबी & lt; / विकल्प & gt; & lt; विकल्प मान = "10" & gt; 10 आरएमबी & lt; / विकल्प & gt; & Lt; / चयन & gt; JS / jQuery कोड: $ (...

How to know an Android task's visibility change? -

Image
I have 2 activities that are using the same Android work - that is, they will use the same back stack. > Call the first activity back in the heap, and call the second activity in the B back stack. Case 1: A indicates that it goes in the background when A was in the foreground and then B comes in foreground (for any reason) because it has received an external motive). Case 2: A goes into the background when A was in the foreground but another application started in the foreground it was done. Question: How do I differentiate between those 2 cases? What is one way to know that the infection is in the A foreground - & gt; In the background does A keep the current work displayed on the screen? Actually, I have to get an event when the Android task scene or invisible. If I understand you correctly, then your activity a If the activity b does not activate after A . First of all, it is not a good idea to do something about an activity when ...

How to implement Google step by step navigation in android map -

I am using Google Maps version V2 to display maps in my app. I want to implement Google Phase in my app by Phase Nepal. Please help me by sharing some thoughts. See the link below: -

jquery - .stopPropagation() and bubbling - can someone explain it to me? -

I have a stupid question, can someone explain to me, why still on .auter begins? Even when I have set the .stopPropagation () . I think, I do not understand the issue correctly when I .inner Click on the event, then .auter Javascript: $ ('external'). ('Click', function (e) {e.stopPropagation (); $ (Toggleclass ('hidden');}) You need to use: $ ('internal'). ('Click', function (E) {e.stopPropagation ();}) preventing the event bubble since $ ('Toggleclass (' hidden ';)) Doom Tree Down Not

javascript - What is variable f supposed to contain in this example? -

I try to see what the logic behind the jQuery plugin is, and I'm stacking up with the following problem. I have the following code, and I can not determine the variable f inside variable t = function (u, a) {} (function ($) {$ .fn.pluginName = function (userOptions) {... if ((typeof userOptions) .mail ("object | undefined")) {this return .Each (function (e) {new t (this, user option)}}} t = function (u, a) {var f = this;} ...}}) (jquery) should have a reference in the function t or it should have a reference on pluginName Does anyone Help me with I'm completely confused with it. It looks like the function T is the constructor function, which means that this inside the function will refer to the example that is applied to the code by the new keyword. / P> Therefore, f will reference an example of an object whose constructor function is t .

c# - Getting phone information by NFC pairing -

I am working on an application for a kiosk where I have the NFC pair capabilities for smartphones with 'quick recognition' I want to add. This Kiosk has an NFC reader attached here What do I want to do here: As soon as the NFC-enabled smartphone is touching the NFC reader, I want to get the name. I think there is no proprietary app installed on the device, so it should be something built in. Something like that the smartphone operating system probably supports? If I can only do this for Android devices - this is good. Is there anything like this possible or is the smartphone NFC only to read information from tags? Thanks! You are trying to do this, without having the app on such phones without knowing the information . By default, the NFC protocol is designed to not reveal any identifiable information. Based on the type of NFC reader (i.e., how does it communicate), your app can do the following: Peer in peer mode Phone (and NFC Reader) in and s...

javascript - Deprecation warning: moment construction falls back to js Date -

I use the following code to convert server-side date-time to local time using Moment.js The moment (moment) (moment ('Mercury, 23 April 2014 09:54:51 +0000'). Format ('LL')) .nan () But I'm getting "Refraction Warning: The moment creation JS falls back on the date, it is frustrated and will be removed in the upcoming major release. For more information, please visit https://github.com View / moment / moment / issues / 1407 " ! It seems that I can not get rid of it !! How can I fix this ?? Thanks in advance. / div> To get rid of the warning, you either need the following: In an ISO-formatted version of your date string: moment ('2014-04-23T0 9: 54: 51'); Now you have to pass in the string, but tell the moment how the format of the string is: the moment (' Mercury, 23 April 2014 09:54:51 +0000 ',' ddd, DD MMM YYYH H: mm: SS Z '); D Convert your string to a JavaScript date object and then pass i...

plot a lat/long coordinate in the map for free or for less cost -

Is there a free or low cost service available to show a location in the map? Currently, in one of our customers' websites, the current location needs to be shown - though this location is achieved by a program of customers. However, its map is just a conspiracy to co-ordinate, the client is not ready to invest by Google or on a license provided by Bing; Because the license given by these people is for the entire API and there is no need for the entire API in this case because the length of the locations is already available / long already. And since our customer consumers do not charge for the map but charge for other tasks, so ask for the proper license. Any ideas or ideas? Thanks Map with a location if you just want to show one , Then take a look at this. Also see limitations for free usage here: And if you need more dynamic use, then the map is also available.

How can I add a contextListener in logback groovy configuration? -

I want to use LevelChangePropagator as a lockback reference, as described in Although my project is configured using log in groovy, and there is nothing in the official document about configListener in groovy configuring. The Logback Groove provides a tool in the configuration I tried to do it, but it just took away the context and took part. I have found exactly my question in logback mailing lists, but the solution is not working for me. Edit: I created a document in the lockback GIRA about the missing document: Still, maybe someone knows the answer? Add it to logback.groovy: Import ch. qos.logback.classic.jul.LevelChangePropagator def lcp = new LevelChangePropagator () lcp.context = reference lcp.resetJUL = true context.addListener (Elseepi)

jquery - Loop pause with Q -

I'm using Q for some sequence of jQuery sequential processing in the text (). Now I've added a break button to temporarily stop the processing inside the forEach loop, but if I inside an promise.delay (300) Add -loop (see partial code below) My browser is hanging var promise = new Q (); How do I apply a conditional block on a forEach loop in Boolean ispaused using Q? Promise = promise Then (function () {lines.forEach (function (item) {// start hanging in the browser if it is then imposed == true promise = promise. Then (function () {while (status) {promise = promise Delay (300);}}) None of the following work, while // (status) {// promise = promise .Delay (300); //} // following either // work If not (IsPaused) {// Q.delay (300); //} (item [0] == '%') {promise = promise. Then (function () {return addprrompt (wnd);} ) Promise = promise again (function () (addoinput (item.substr (1))}}} other {promise = wa Then (function () {addOutput (item, wnd)}}}}}});...

Range of values of C types -

सी मानक में लिखा जाता है, अर्थात्, एक int होना चाहिए: min-32767 अधिकतम 32767 लेकिन कार्यान्वयन में, यानी 16 बिट मशीन पर मान हैं: min-32768 अधिकतम 32767 नकारात्मक मूल्यों में यह अंतर क्यों है? दोनों श्रेणियां मान्य है, असामान्य क्या पहला है [-32767 ... 32767] लेकिन यह सी मानक के अनुसार बिल्कुल सही है। कई implementations में कम के लिए न्यूनतम मूल्य पूर्णांक है - (2 ^ 15 - 1) फिर -32768 । आप इसे परिभाषित करेंगे: #define SHRT_MIN 0x7FFF #define SHRT_MIN (-32767 - 1) #define SHRT_MIN (-32768) मानक यह मानता है कि यह (- 2 ^ 15 + 1) (तब -32767 ) या कम होना चाहिए (क्योंकि वास्तविक मूल्य निर्भर करता है विशिष्ट प्रणाली और पुस्तकालय कार्यान्वयन पर )। चूंकि अधिकांश कार्यान्वयन नकारात्मक अंकों का प्रतिनिधित्व करने के लिए दो पूरक का उपयोग करती है (जब शून्य पूर्णांक के लिए अहस्ताक्षरित हो जाता है ) तो न्यूनतम नकारात्मक मूल्य एक इकाई कम है। व्यवहार में इसका मतलब है कि आप यह सुनिश्चित कर सकते हैं कि जब आप अपने कार्यक्रम (कंपाइलर और प्लेटफ़ॉर्म की परवाह किए बिना...

html - all the links are changing if I click on one link -

I'm new here as well as web designing. So i know a little bit In my practice web design, I have 5 NAV Links set up and they are styled to use CSS. This is my CSS code: body {background-color: # f9f9f9; Margin: 0; Border-top: 2px solid # 020202; Color: # 1C1C1C; Font-family: "Ariel", "Hellevica", without-serif; }. Clear {clear: both; } Li {font-weight: bold; Margin-top: 15px; List-style-type: none; Swim left; Margin-left: 60px; Height: 20px; Text align: center; }. Wiper {width: 960px; Margin: 0 auto; } NAV {Width: 960px; Margin-top: 30px; float right; } IMG {margin-right: 150px; Width: 50px; float right; } A {color: black; } A: visited {color: # 15a02c; } A: Hover {color: # 97d586; } Period {font-style: Italic; Color: # 03da35; } H1 {font-size: 23px; Margin-top: 80px; Font-weight: boulder; Margin-left: 5px; } #content img {width: 400px; Swim left; Margin-top: 50px; } H2 {font-weight: normal; Font-size: 22px; Indent-top: 10px} p {font size: 13px; font-wei...

Find the score of a scrabble word in haskell -

I have a letter mapped to my respective score dict = fromList ( [("A", 1), ("B", 3), ("C", 3), ("E", 1), ("D", 2), ("G", 2) ("M", 3), ("f"), 4), ("i", 1), ("h", 4), ("k", 5) L "1"), ("O", 1), ("N", 1), ("Q", 10), ("P", 3), ("S", 1) , ("Y", 4), ("X", 8), ("U", 1), ("T", 1), ("W", 4) If a word is sent to the main function, then the function must return the score in terms of the words and words of the words. ("Jade", 10)] EX: - Main: - should return the APLE function: - 9 (A score) 1+ (p score) 3 + (p score) 3 + (L Score) 1+ (E-Score) 1 = 9 main = Print $ calWordScore "APPLE" calculator: :: string - & gt; Int calcWordScore word = sum $ map calcLetterScore word calcLetterScore :: char - & gt; Int calcLetterScore ch = Map.fro...

java - Deploy WAR file to Openshift without using GIT? -

I want to upload a war file to my opsshift account, but this is my GIT OT () Please forgive me for saying this, but it is very upset. Does anyone upload a war file directly on my application without using a third party? My application Openshift includes: Tomato 7 (JbS EWS 2.0), MySk 5.5. Highly appreciated Please follow the instructions in the following link More details: You can use it like this: Hit git and git Enter bash, and then do this: scp & lt; Your local file name & gt; & Lt; Your hash number & gt; @ & Lt; Your app name & gt; - & lt; Your Domain Name & gt; .rhcloud.com: ~ / & lt; App name & gt; / data / Example: scp hello.csv 87b95e67477f442c9356a4ae49cd7c9e@cdapp-music.rhcloud.com: ~ / cdapp / data / External source: from

objective c - IOS function handler threadsafe -

The code below is called the scrollview scroll each time and if the user scrolls it several times, the code crashes done. How can I ensure that only one code executes a time or thread? [self.cv addInfiniteScrollingWithActionHandler: ^ {[weakSelf loadNextPage]; }]; Here is an example - (zero) _start presentation {FooClass * foo = [[Foo Class Alok] init]; Dispatch_queue_t queue = dispatch_get_global_queue (DISPATCH_QUEUE_PRIORITY_DEFAULT, 0); For (int i = 0; i

Tooltipster not working in a ajax content -

while searching in stack overflow. I have an old problem that is also facing me. But no one answers it. So, just wanted to know that someone has any idea about it The following is my code $ (document). Tooltipster ({interactive: true: content: 'Loading ...', function: first: function (original, continuing teletype) {continueTooltip (); / / Next, we want to check that our data is already cached // if (original DATA ('ajax')! == 'cached') {$ .ajax ({type: 'post', url: 'Example.php', success: ph రించు (data) {// Update our tooltip content with our broken data and cache it to the original.Toltipster ('content', $ (data)). Data ('ajax', 'cached');} })}}}}});}); My problem has been solved. $ (document) .ready (function () {/ p> $ ('Test_link') Tooltipster ({interactive: true, multiple: correct, content: 'Loading ...', function: first: function (original, released tool tip) {continueToo...

jQuery AJAX html(newhtml) outputs weird HTML -

मेरे पास एक jQuery AJAX फ़ंक्शन है जो PHP स्क्रिप्ट से नया HTML प्राप्त करता है PHP स्क्रिप्ट पूरी तरह से काम करता है और सही HTML को वापस jQuery में भेजता है, फिर भी, जब मैं फ़ंक्शन का उपयोग करता हूं, तो आउटपुट HTML गलत है। मैंने HTML को एक & lt; textarea & gt; में डाल दिया है यह देखने के लिए कि क्या लौटा दिया गया कोड सही है, और यह सुनिश्चित है लेकिन जब मैं इसे एचटीएमएल में आउटपुट करने की कोशिश करता हूं, तो यह "भ्रष्ट" होता है। यहां jQuery फ़ंक्शन है: $ (function () ($ ("। Form (Searchstring! = '') {$। एएक्सएक्स ({टाइप करें: " POST ", url:" core / handle.php ", डेटा: डेटास्ट्रिंग, कैश: गलत, सफलता: फ़ंक्शन (html) {var start = '& lt; div class =" row "& gt; & lt; h2 & gt;' + searchString + '& Lt; / h2 & gt;'; var एंड = '& lt; / div & gt;'; html = start + html + end; $ ("# books-wrapper")। Html (html);}});} वापसी झूठी; });}); & lt; textarea & g...

c# - Using MVC 5 web page to get data from outlook server? -

I have taken a look around and can not find what I see (unless I do not have it No I have been working with the original CRM web based app so that it can be used on any device. I am using MVC 5 Using SQL Server to Store Tables What I Need to Know is an Out Looks to be able to sync with Exchange Server so that users can log in and list their contacts / scheduled tasks with the viewpoint information, as well as create / edit / delete etc. Contacts + Back to the scheduled work and Outlook server Without having to open a local Microsoft Outlook application. Is it possible and if anybody knows that the issue Where can I find a sufficient enough source to know this? Thanks ... The comment of Tivar is correct because it is an EWS friendly scenario (Exchange Web Services) If you are using MVC 5 to develop this application, EWS can be most useful in using managed APIs to access the Exchange Server, because it lets you access it to all Allows C #. Managed API - Working w...

audio - WAVE file format -

im Creating an Android application that generates an indication and saves it as a wave file. I looked everywhere and I came to know that I should write the file structure "manually", because Android does not support wave formats. The file is generated but its not "playable", even on Matlab i get this message: incorrect chuck size information in the WAV file here code Is, please tell me that there is nothing wrong with the structure. The public class increases the main activity activity {int period = 1; Int null pattern = 48000; Int numSample = Duration * sampleRate; Double sample [] = new double [humid sample]; Double Freak 1 = 23000; Double Freak 2 = 24000; Byte [] generated = new byte [2 * digit sample]; Handler handler = new handler (); Long mySubChunk1Size = 16; Small myBitsPerSample = 16; Int myFormat = 1; Int myChannels = 1; Long myByteRate = sampleRate * myChannels * myBitsPerSample / 8; Int myBlockAlign = (int) (myChannels * myBitsPerSample / 8); Lo...

html - Styling selected AngularUI radio button -

Do anyone know that the appropriate CSS selector ( : checked ) radio button? I tried "check", "selected", "active", but none of this works for me. I need to find a selector similar to : checked for the HTML radio button. Every useful answer / JSFiddle has been highly appreciated and evaluated. Thank you. If you are styling then limit the use to the NG-model: & lt; Input type = "checkbox" ng-model = 'content' ng-class = '{class1: stuff, square 2:! Accessories} '& gt; and add the CSS rule for class 1 and class 2

c++ - Nulling %al register before calling print -

इसे ध्यान में रखते हुए: #include & lt; cstdio & gt; int main () {printf ("null"); वापसी 0; } विधानसभा क्यों है: मुख्य: # @ मेन पुशक% राक movl $ .L.str,% edi xorb% al,% al callq printf xorl% eax,% eax popq% rdx ret L.str: .asciz "null" के लिए xorb% al,% al क्या है? मुझे पता है कि % al रजिस्टर % rax रजिस्टर का एक निम्नतम 8 बिट है। वर्ज अर्गिंग कॉलिंग कॉन्फ्रेंस के अनुसार, वर्गार्ड्स को कॉल करने से पहले अल रजिस्टर को विगेट्स पास करने के लिए इस्तेमाल किए गए वेक्टर रजिस्टरों की संख्या पर सेट किया जाना चाहिए। इस मामले में शून्य है, और एक्सओर एक रजिस्टर को शून्य करने के लिए एक आम मुहावरा है। यदि आप कॉलिंग सम्मेलन में रुचि रखते हैं, तो उपरोक्त एबीआई डॉक पढ़ें।

c++ - How to declare Qt::PenStyle in Qt5? -

I am migrating a project from QT 4.x to 5, and a class that has a feature that is : Qt :: penstyle penstyle; and its related functions: Qt :: Penstyle Paenstyle () {return penStyle;} There is a compilation error saying that error: 'QVariant :: QVariant (Qt :: PenStyle)' Private QVariant (Qt :: PenStyle) Q_DECL_EQ_DELETE; ^ .. \ marssies \ painterbar.cpp: 217: 88: Error: Style within this Reference Line - & gt; SetCurrentIndex (lineStyle -> SearchData (graphic object-> GetPenStyle ())); ^ Some research has shown me: QVariant: * Incompatible Constructor Qt :: GlobalColor and QVariant (QColor) Examples Production of removed. The code that creates such forms can be migrated by calling the QColor constructor explicitly. For example, QVariant (QColor (Qt :: red)) from "QVariant" (Qt :: red) * Similarly, the built-in QVariants of built-in QV :: BrushStyle, Qt :: PenStyle , And Qt :: CursorShape has been removed. Obviously create objects ...

javascript - conversion latitude/longitude into distance -

My problem is a bit difficult, sorry if my question is not quite clear. i Use the GoogleMap v3 API user can click on the map to make a mark, if he clicks on the mark, I give the latitude; Fans in an information (it is done and it is fine) Things to try: The user can give the dimension (km / mi) and I have to draw a rectangle of the given size (Make the mark to be the middle of the area, make the shoud). Problems coming from laslang or range are only latitude and amp; Longitude So I try to change it. Here is the main part of the code. // latitude // 1 ° lat = 111,11 km // For me: 1 km = 0.00 9 00 // Illustration // 1 ° Light = 111,11 km * Cos Latitude / For me: 1 km = ((1 / Mathematics (latitude)) /111.11) var myBounds = New Array (); var Langkam = 5; Var largkm = 2; MyBounds [0] = New google.maps.LatLngBounds (new google.maps.LatLng (positionmarqueur.lat () - (0.009 * longcam), positionmarqueur.lng () - (Math.bas (((((1 / Math.cos (Positionmarqueur.lat () - (0.009 * Longim...

shell - Renaming lines in a document using unix commands (Bash) -

I have a txt document that is a list of items. Each row has a different name / title but for this example I Must have to stay with the name. For example: font0.tff font1.tff font2.tff font3.tff font4.tff I would like and Lieutenant; Items & gt; & Lt; / Item & gt; Tags: & lt; Item & gt; Font0.ttf & lt; Keeping each row between / item & gt; change the program to the following; & Lt; Items & gt; Font1.ttf & lt; / Item & gt; & Lt; Items & gt; Font2.ttf & lt; / Item & gt; & Lt; Items & gt; Font3.ttf & lt; / Item & gt; & Lt; Items & gt; Font4.ttf & lt; / Item & gt; By using sed : sed 's # font \. (. * \) # Font \ 1.ttf - & gt; & Lt; Items & gt; Font .1 & lt; / Item & gt; # 'Infile & gt; Outfile

java - Spring Data JPA One to Many relationship not saving child table -

अभिभावक इकाई @OneToMany (fetch = FetchType.EAGER, मैप किया गया = "पैराफैफ" , कैस्केड = कैस्केड टाइप। एएलएल) सार्वजनिक सेट पेपैमलिस्ट () {यह लौटें.परमलिस्ट; } बाल अस्तित्व @ManyToOne (fetch = FetchType.EAGER) @JoinColumn (name = "param_Ref_Id", nullable = false, insertable = false, Updatable = false) सार्वजनिक ParamRef1 getParamRef () {इस वापसी। पीआरएमआरफ; } जारी रखने के लिए कोड ParamRef1 PR = नया ParamRef1 (); Pr.setName ("टेस्ट पैराम"); पैरा 1 पी 1 = नया पैरामा 1 () पी 1.सेटपरम वैल्यू ("एक") पी 1.सेटपरमफ्रफ (पीआर); पैराम 1 पी 2 = नया पैरामा 1 () पी 2 .सेटपरम वेल्यू ("दो") पी 2 .सेटपारामफ (पीआर); सेट करें paramList = new HashSet () paramList.add (p1) paramList.add (p2) pr.setParamList (paramList) pr = paramRefDao1.save (पीआर) कृपया मुझे बताएं कि क्या कदम सही हैं मुझे अपवाद का पालन हो रहा है और यह समझने में सक्षम नहीं है कि माता-पिता आईडी बच्चे के टेबल में क्यों उपलब्ध नहीं है द्वारा कारण: org.hibernate.exception...

android - Syntax Error in R.java file -

I put a text view on my page and I did not know that I was writing that ID in misspellings The meaning was txtTick but instead I did / and hit it txt / tick. I corrected this error, but it was my r The Java file was saved and I'm getting the error. Syntax error on the "/" token, expected although I can not modify this file and I do not want to touch it, something else happens. I have checked my strings. XML and this string no longer exists. I am unable to clean my project due to this error and have tried to restart it but I do not know how I can fix it. any idea? R. Java public fixed final integer txt / tick = 0x7f050089; xml Android: id = "@ + id / txtTick" Delete your 'jen' folder and recreate your project and then your workspace. Remove the metadata file and import it again and recreate your project

Search DataBase using PHP -

Image
I am trying to show the highlighted word in red to a user when a user searches for a name in the database , Here's the code: echo "& lt; table class = 'name list' & gt;"; Echo "& lt; tr & gt; & lt; h3 & gt; You searched for & lt; Span class = 'Red' & gt; $ query & lt; / span & gt; ... please find the details . & Lt; / h3 & gt; & lt; / tr & gt; "; Echo " > United Nations Full Name & lt; / tr & gt; "; $ Result = mysql_query (Select "United Nations, NAME mytable from WHERE ('%.' $ Query"% 'like' NAME ') ") or die (mysql_error ()); if (mysql_num_rows ($ result)> gt; ; 0) {While ($ result = mysql_fetch_array ($ result)) {resonant "& lt; Tr & gt; & Lt; Td> ". $ Result ['United Nations]]." & Lt; / Td> & Lt; TD & gt; & Lt "$ result ['name'] .."; / TD & gt; ...

c# - How to get http response Body when the status code is not valid? -

I am trying to get an html page content from a personal service. The page position code returns 0, which is not valid. But render the page when browsing through a browser. Try using the WebResponse.GetResponseStream ( ) when I just give it an empty stream. And when I try to use HttpClient.GetStringAsync (url) .Result, throw AggregateException as follow: System.AggregateException without HRESULT = -2146233088 Message = One or more errors occurred Source = mscorlib StackTrace: on the system. threading. Tasks. Tasks. Tasks. The trophy system (boolean included in the cancellation canceled) system. threading. Tasks. Task 1 On the system Diagnostic Infocroller.program.man (Sting [] AGR) in C: \ TFS \ MSNMetro \ Tools \ Verticals \ Sports \ DiagnosticInfoCrawler \ Program.cs: System 47 on line 47. AppDomain._nExecuteAssembly (RuntimeAssembly assembly, string [] args) on the system .AppDomain.ExecuteAssembly (String assemblyFile, Evidence AssemblySecurity, string [] args) on Micro...