Posts

c - How to link two object files -

मेरे पास rfact.s और rfactmain.c rfact.s: .text .p2align 4 .global rfact .type rfact, @function rfact: pushl% ईबीपी movl% esp,% ईबीपी pushl% EBX subl $ 4,% esp movl 8 (% ईबीपी),% EBX movl $ 1,% eax cmpl $ 1,% EBX jle .L53 लील -1 (% EBX),% eax movl% eax, (% esp) फोन rfact imull% EBX,% eax .L53: अपर $ 4,% esp popl% EBX popl% ईबीपी सेवानिवृत्त rfactmain.c: int main () {int x = rfact (4); वापसी 0; } मैं एक 64 बिट सिस्टम पर हूं तो पहले मैं दोनों ऑब्जेक्ट फाइलें gcc -m32 -c rfact.s gcc -m32 -c rfactmain.c करके कर दूं लेकिन मुझे एक त्रुटि मिलती है जीसीसी-एम 32-ओ आरएफ आरएफएक्ट.ओ आरएफएक्टएमएएन.ओ / यूएसआर / बीन / एलडी: सीआरटी 1.ओ नहीं मिल सकता है: ऐसी कोई फ़ाइल या निर्देशिका / usr / bin / ld: crti.o नहीं मिल सकता है: ऐसी कोई फ़ाइल या निर्देशिका / usr / bin / ld: जब -lgcc_s / usr / bin / ld के लिए खोज असंगत /usr/lib/gcc/x86_64-redhat-linux/4.8.2/libgcc_s.so लंघन: -lgcc_s नहीं मिल सकता है / usr / bin / ld: असंगत /usr/lib64/libc.so लंघन जब -lc / usr / bin / ld के लिए...

asp.net - Request.URL doubles query string parameters? -

मैं इस तरह एक URL का अनुरोध करता हूं: http: // mylocalsite / virtual / page ? .aspx var1 = 1 & amp; var2 = 2 & amp; var3 = 3 मैं FormsAuthentication उपयोग कर रहा हूँ और अप्रमाणित हूँ, इसलिए मैं पुनः निर्देशित कर रहा हूँ। यह वही ब्राउज़र स्थान पट्टी से पता चलता है: http:? //mylocalsite/virtual/login.aspx ReturnUrl = / आभासी / page.aspx var1 = 1 & amp; var2 = 2 & amp; var3 = 3 login.aspx की pageload घटना मैं यूआरएल के दो तरीके का निरीक्षण करने की कोशिश में: के रूप में स्ट्रिंग = Request.Url मंद example2 के रूप में मंद example1 स्ट्रिंग = अनुरोध। यूआरएल। शैइम & amp; ": //" & amp; अनुरोध। यूआरएल। प्राधिकरण & amp; Request.RawUrl यह मैं क्या मिलता है: 'उदाहरण 1 http: //mylocalsite/virtual/login.aspx ReturnUrl = / आभासी / page.aspx var1 = 1 & amp; var2 = 2 & amp; var3 = 3 & amp; var1 = 1 & amp; var2 = 2 & amp; var3 = 3 'उदाहरण 2 - है urlencoded http:? //mylocalsite/virtual/login.aspx ReturnUrl =% 2fvi...

apache - htaccess url rewrite issue in removing wordpress year , month , day from url -

I have a client WordPress site: myexamplesite.wordpress.com which myexamplesite.com which hosts an expression engine site Has been redirected. I am working to redirect all pages from myexamplesite.wordpress.com to myexamplesite.com, but there are problems in rewriting URLs on the site received. Example URL: The same blog post in the EE site: Then I want to rewrite the URL which will be: To I have the following Using the htaccess code: & lt; IfModule mod_rewrite.c & gt; On RewriteEngine RewriteBase / RewriteRule ^ [0-9] + / [0-9] + / [0-9] + / (. *) $ Blog / $ 1 [NC] RewriteCond% {REQUEST_FILENAME}! -f RewriteCond% {REQUEST_FILENAME}! -D rearrrightium ^ (. *) $ Index.php / $ 1 [L] & lt; / IfModule & gt; I variable check on index.php page: $ _SERVER [ "PHP_SELF"] and it shows the uri: /index.php/blog/my-blog-post-1/ My-blog-post-1 The post URL fragment is repeated. And I am in a fix I do not have much experience working with .htaccess My EE...

javascript - Avoid setTimeout to overlap the function on angular $watch -

I have this verification process, in which two divisions are fading or out based on the return of the first function. After typing the input to finish SetTimeout, it looks at the keypage, the system works but the problem occurs when: You type a wrong value (# ranks displays)> you get good value When you type good value and another function triggers it is not yet completed> when good value is typed (.ok shows) after the delay of setrimeout # Wrong as well Is there any way to avoid overlapping other functions? Maybe it is to divide completely right and false actions? Validate the functionPicodode (code) {if (array.indexOf (code)> gt; -1} {true; }} $ Scope. $ Watch ('passcode', function (value) {var isValid = valid pincode (value); if (isValid) is {$ scope.loadNewChannel (); $ ('OK'). FadeIn (200); $ (' FadeOut (200);} and {setimimate (function () {$ ('. OK'). Fadeaut (200); $ ('# incorrect') Delay (200). Fadein (200); }, 2000);}})...

javascript - Image Upload JQuery form and PHP stop jumping page -

I am working on an image upload page. The upload works, but whenever I click submit, it goes to the php page, I have returned the wrong and stopping defaults. Is there a way to stop this from visiting the php page? My html code & lt; Form action = "imageupload.php" method = "post" id = "image_form" enctype = "multiparty / form-data" & gt; & Lt; Input id = "update_image" name = "file" type = "file" maxlength = "40" & gt; & Lt; Input id = "image_submit" type = "submit" name = "submit" value = "submit" & gt; & Lt; / Form & gt; & Lt; Div id = "output" & gt; & Lt; / Div & gt; My JS code var option = {target: "#output", // target element / server response can be updated with Submit first: submit first, // reset pre-callback form: Reset form after correct / successful submission;}; $ ("# ...

c# - Pass a value from login form to main form -

I have a login screen and I need to pass the username in my main form (to get permission etc.) ). Here is my code: // Login Private Zero button 1_Click (object sender, EventArgs e) {if (string.IsNullOrEmptE (txtUser.Text)) {// show warning} and if ( Using string IISNullOrEmpty (txtPass.Text)) (// Show Warning) (DataTable dt = LookupUser (txtUser.Text)) // See the username and password for the SQL data table {if (dt.ows.Count = = 0) {// show warning} other {string dbPassword = Convert.ToString (dt.Rows [0] ["pass"]); String app password = encrypt (txtPass.Text); If (string.Compare (dbPassword, appPassword) == 0) {// I need to pass my form to myForm ... DialogResult = DialogResult.OK; } Else {// Show Warning}}}} Program Program CST Static Wide Men () {Application.EnableVisualStyles (); Application.SetCompatibleTextRenderingDefault (wrong); Dialog result result; Usage (var loginForm = new login ()) Results = loginForm.ShowDialog (); If (result == DialogResult.OK) {applica...

Ruby division infinity/NaN should return 0 -

I am making an application on Ruby on Rail I In the application I will call I want to override the guardian class of the learning class . To deal with the exceptions I googled everywhere I want to override the Ruby Division method in the application. So for the results below it should be returned to zero. 0.0 / 0 = & gt; NaN 1.0 / 0 = & gt; Infinity Zero Division is divided by: 0 I can handle it by changing the code everywhere during splitting it. But I want to save myself time by overriding the method myself. very similar: class float surname: old_dive ,: / DF / (Y) Returns NAN if itself == y & amp; Amp; Y == 0.0 Return Infinity If Self == 1.0 & amp; Amp; Y == 0.0 self .old_div (y) end of end I know that the code above can not be what you really want. Feel free to customize it the way you want =)