Posts

Showing posts from April, 2013

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 =)

meteor - Using Iron Router to waitOn subscription that's dependent on data from a doc that will come from another subscription -

I'm having trouble configuring the waitOn section of a route, where in the membership parameter One is from a different membership which comes from the price determined by a doctor. In the game there are collection candidates and interviews. There will be one and only one candidate in one interview, here are some sample data: candidate = {_id: 1 firstName: 'something', last name: ' Developer '// other property}; Interview = {_id: 1, candidate ID: 1 / other property}; The route is configured as follows. this.route ('conductInterview', waiting for 'path:' / interviews /: _ id / conduct ', //: _ id At: Function () {Return [Meteor.subscribe ('allUsers'), Meteor.subscribe ('Single Interview', this.params._id), // To find out the candidate ID is not known because it is stored // Interviewed Doctor subscribe to the meteor ('Single Candidate', '' '), Meteer SubSubib (' Question '), Metir Subbob...

Density Estimation In R -

I have estimated that the use of older believers is density: library (NP) library (Dataset) data (loyal) F & LT; - Afghan (~ explosion + wait, data = loyal) How do I get the density of the point not being loyal? Thanks! ? Npudens say that the predict method in the npdensity object is: estimate (f, newdata = data.frame (explosion) = 3.5, waiting = 70)) ## [1] 0.004473444

SQLite Function that performs additional queries -

I have written a custom SQL function that changes a string because it is copied from one table to another. It's basic and its work has been good for a long time. The query looks like this: Include in Table 2 (field 1) SELECT MYTRANSFORM (field2) to Table 2; Now I need to modify the behavior of that function so that it can do a lookup on the second table and as a result, how the value can change. Is this possible? Has anyone done it successfully? This is possible; You can execute other SQL queries from within your function, as long as you do not call your function repeatedly.

Small YAML/JSON parser in C -

I'm looking for a small YAML / JSON parser, preferably a single file solution, so I can easily embed it I am looking for a small and simple solution on my application, because I want to use it on various platforms, and construction of Libyan and other solutions will be a big pain in the ass. Also, is TinyXML a good alternative? What is the fastest to parse? I was looking for something similar last year. This is where I live: This is not a single file solution, but it is not very big. I have some features like checking JSON formatting and syntax, which you can see as a feature bloat, but they do not bother me.

Running 32-bit libraries and binaries on Python on OS X -

I have a module based on PyVisa that can only run in 32-bit mode. Since Spinks has to be able to load the module to take a docstring, so this module (and others that pass by PyVisa) fails. How can I fix this problem? OS X "Universal Binaries" provides the same OS X root dragon The command can run in 32-bit and 64-bit mode. You can use the arch command to run the other software in Python and 32-bit mode. arch -i386pip install mypackage arch -i386 dragon run mysoftware . Note: This latest version has not been tested on Mavericks, though I do not know that they have changed universal binaries.

scala - Type upper bounds and inheritance -

Suppose we have a class pair and some heritage tree: Class pair [T & LT: Comparative [T]] (R: T, T: T) {Df size relabations = R. Copretto (T)} Seal class person (val significance: IT) in comparative [person] {Override DRF Comparison (o: person): int = ??? } Student student in class (10) provides class teacher (50) How to modify the uppercase to be able to create a couple [student] now? (original) (original) (new student, new student) / * Student does not correspond to comparative * / Maybe it helps: val notixed = new pair (new student, (new student) .asInstanceOf [person]) Code>

.htaccess - Forward to www in WordPress multisites -

I have WordPress multisite (using subfolders, not subdomain) format in domain. For the reasons for consistency and better SEO, I want to send it to www.domain.com. I have tried to put this code in .htaccess but the code forwarding me to revittengine on Rev.it% {HTTP_HOST} is: ^ www \ revittengen Rewartbase / rewrite array ^ index \ .php $ - [L]. RewriteRule ^ (. *) $ Http: //www.% {HTTP_HOST} / $ 1 [R = 301, L] # Add a backward slash to / wp-admin RewriteRule ^ ([_ 0- 9a-zA-Z - ] + /)? Wp-admin $ $ 1wp-admin / [R = 301, L] Rev.% {REQUEST_FILENAME} -F [OR] Rev.% {REQUEST_FILENAME} -d Records Rules ^ - [L] Remit Rules ^ ([_ 0- 9a- Za-z -] + /)? (Includes Wp- (content | admin |). *) $ 2 [L] rewritable ^ ([_ 0- 9a-zA-Z-] + /)? (. * .php) $$ 2 [L] Rewriteable Index.php [L] I'm pretty sure that my domain is set to www in WordPress settings but it does not It will not say that I now have a multisite I will try first no Using the htaccess redirect and remove www, you have...

ios - Connecting IBOutlet results in nsunknownkey exception -

Image
I know that as soon as you read the title, you should think .. well good but I believe that I'm banging my head with this for the last 2 days. I have tried every solution mentioned in the stack overflow and anywhere else I can get on the internet but nothing works. I tried to start my project again (fortunately, I got stuck in a very early stage) but it still throws the same exception. Here is a description of my problem. I have created a custom cell as a subclass of UITableViewCell (now a very common eh) Now my view controller (which has a UITWV added) registers for my customsell in Wikipedia is. And on cellForRowAtIndexPath, I just do a dequeueReusableCellWithIdentifier. So far, so good. I set this project on fire and everything is going well. I can load my custom cell in the tableview. The problem starts when I connect any control to an IBotlet from my custom cell. This rebuffs *** Android app 'NSUnknownKeyException' due to the exceptions of the exceptions,...

javascript - Wrap HTML around text -

This is not ideal, but I'm trying to wrap some HTML around that title. Initial Text: & lt; Div class = "header-intro-text" & gt; Is it possible to target header text and wrap the HTML around that text? ; & Lt; H1 & gt; New Business Conference & lt; / H1> & Lt; / Div & gt; Eliminate text with added HTML & Lt; / Div & gt; Try: $ (". -Intero-Text H1 "). Rampener ('& lt; a href = "#" & gt; & lt; / a & gt;');

javascript - Scrollbar in bootstrap application wizard -

Image
I have implemented it and it works great, but how do I get a page for each page or card in this case Can I Add Scrollbar? Here is the Mandal Card window without the overflow: Here is the CSS file I added the code for the scrollbar: / * wizard general * /. Wizard {display: none; }. Magician-dialog {} Wizard-content {} Wizard-body {padding: 0; Height: 1500px; Margin: 0; Overflow-y: scroll up; } / * Wizard header * /. Wizard-header {padding: 9px 15px; Border Bottom: 0; }. Wizard-header h3 {margin: 0; Line-height: 35 pixels; Display: Inline; Font-family: 'saved UI'; Font-family: heirs; font-weight: bold; Text-Rendering: Adaptability; Color: # 030845; }. Magician-subtitles {font-weight: bold; Color: #AFAFAF; Padding-left: 20px; } / * Wizard Navigation * /. Wizard-steps {width: 28%; Background color: # f5f5f5; Border-bottom-left-radius: 6px; Status: Relative; }. Magician-nav-container {padding-down: 30px; Overflow-y: scroll up; }. Magician-NAV-list {margin-down: 0; }. M...

Synergy v1.4.15 Failing to work on Windows 8.1 -

Can someone please advise that I'm running Synergy v1.4.15 on Windows 8.1 computer, running as a server I am, but I continue the follow-up error. I have solved any of them. I have tried to uninstall it and restore it as an administrator and have allowed synergy to create network firewall exception. Error: Configuration can not be read "C: / Users / [UserName] / AppData / Local / Temp / qt_temp.Uh7160": Read error: line 20: Alias ​​"II-PC" already Synergys.exe has been used: no configuration available error: failed to launch, error: process immediately closed I am capable of connecting Windows 7 (in the form of server) with Windows 7 (in the form of a customer), in conjunction with v1.3.1. After some problems with the previous version, 1.5, I decided to download version 1.3.1 and it's working right. Here you have the link: This is the configuration I used:

html - Extra Space after footer Please -

यह प्रश्न एक सटीक डुप्लिकेट है: 3 जवाब मैं इसे हटाने की कोशिश कर रहा हूँ मेरे सामाजिक बटन के नीचे अतिरिक्त जगह मैंने मार्जिन पर "रिश्तेदार" का उपयोग करने की कोशिश की है, लेकिन ऐसा लगता है कि अंतरिक्ष गायब हो सकता है। किसी भी तरह की सहायता का स्वागत किया जाएगा। समस्या के अब एक सार्वजनिक छवि के लिंक के साथ मेरा सीएसएस नीचे है। धन्यवाद। / * प्रारंभ करें मास्टर शैलियों * / / * .header h1 {मार्जिन-बायां: ऑटो; मार्जिन-दाएं: ऑटो; पाठ संरेखित करें: केंद्र; पैडिंग-टॉप: -200px; चौड़ाई: 100%; सही नाव; * /}। हैडर img {float: left; चौड़ाई: 100px; ऊंचाई: 100 पिक्सेल; पृष्ठभूमि: # 555; मार्जिन-नीचे: रिश्तेदार; } .header h1 {स्थिति: रिश्तेदार; शीर्ष: -950 पीएक्स; बाएं: 600 पिक्सेल; } / * सामग्री टिप्पणी प्रारंभ करें। सामग्री {text-align: center; पैडिंग-टॉप: 15 पीएक्स; चौड़ाई: 100%; } * / H1 {font-family: 'मेरिवेदर', सेरिफ़; फ़ॉन्ट-आकार: 3.625 नाम; फ़ॉन्ट वजन: 700; } शरीर {पृष्ठभूमि-छवि: url ('../ img / concrete_wall_3.png'); / * पृष्ठभूमि-छवि: url ('../...

java - MediaCodec AAC -> PCM Decoder Configuration on Android -

I'm trying to implement AAC ->; PCM Decoder by MediaCode . First of all, I have successfully updated the PCM - & gt; AAC encoder is intended as MediaCodec as below Private Boolean set encoder (enc rate) {encoder = MediaCodec.createEncoderByType (" Audio / mp4a-latm "); Media format format = new media format (); Format.setString (MediaFormat.KEY_MIME, "audio / mp4a-latm"); Format.setInteger (MediaFormat.KEY_CHANNEL_COUNT, 1); Format.setInteger (MediaFormat.KEY_SAMPLE_RATE, 44100); Format.setInteger (MediaFormat.KEY_BIT_RATE, 64 * 1024); // AAC-HE 64kbps format.setInteger (MediaFormat.KEY_AAC_PROFILE, MediaCodecInfo.CodecProfileLevel.AACObjectHE); Encoder Configure (format, empty, empty, mediacode. CONFIGURE_FLAG_ENCODE); Back true; } INPUT: PCM bitrate = 44100 (hj) x 16 (beat) x 1 (monial) = 705600 bit / s Output: AAC-O bitrate = 64 x 1024 (bit) = 65536 bit / s So, the size of the data is almost compressed x11 Audio encoder:...

javascript/jquery space elimination from input value -

इस सवाल का पहले से ही एक उत्तर है: 16 उत्तर शुभ दिन सब लोग, मेरे पास एक पाठ क्षेत्र है जो उपयोगकर्ता इनपुट (डुह!) लेता है और मैं अतिरिक्त स्थान को खत्म करना चाहता हूं। उदाहरण स्ट्रिंग: (एस) (एस) (एस) भूरे रंग (एस) (एस) (एस) (एस) jumped (एस) (एस) आलसी (एस होना चाहिए: त्वरित (ओं) भूरे रंग के लोमड़ी जंप (एस) (s) = space मैं trim () कोड> फ़ंक्शन जावास्क्रिप्ट में दोनों छोरों (शुरुआत और स्ट्रिंग के अंत) में रिक्त स्थान को खत्म करने के लिए, लेकिन मैं शब्दों के बीच और पूरी तरह से सभी स्थानों को नष्ट करने के बिना कैसे कर सकता हूं? बस उन्हें एक स्थान पर ढेर कर देना है, अगर यह समझना आसान बनाता है:) धन्यवाद अग्रिम! आप एक regex (/ + / g," ") का उपयोग कर सकते हैं : var str =" त्वरित भूरे लोमड़ी आलसी कुत्ते पर कूद गया ! "; Str = str.replace (/ + / g, ""); // परिणाम "जल्दी भूरे लोमड़ी आलसी कुत्ते पर कूद!"

vb.net - Crystal report export in excel -

There is a problem with my crystal report, exporting Axl does anyone help me to code or a suggestion code How to get caught, the file you exported already exists For example if you have exported lotinfo then next lotinfo2 will be so lotinfo3 etc., my code is always exporting a single file and a name. Click the private sub button 1_Click (System.Object, as ByVal Sender, System.EventArgs as ByVal E) button 1. Click Dim CrExportOptions as export options dim CrDiskFileDestinationOptions as new _ DiskFileDestinationOptions () Dim CrFormatTypeOptions CrDiskFileDestinationOptions.DiskFileName = as new ExcelFormatOptions _ "c: \ Lot Enterprise Information.xls "Kreksportopshans = Crypt .aksportdestinashntype = Aksportdestinashntypekdiskfile .aksportformeteepe = Aksportformeteepe.aksel Kdestinashnopshans = Krdiskfiledestinashnopshans. Finished with Formetopts = CrFormatTypeOptions crypt.Export () to MessageBox.Show ( "in Czech on C:", "drive located on Enterpris...

arrays - PHP preg_match a specific pattern in hostname -

I have given hostnames and I want to preg_match a specific pattern hostname : sub1.hostname1.com sub12.hostname2.com suboo2.hostname3.com sub2.hostname4.com after preg_match desired output : sub1.hostname1.com suboo2.hostname3.com sub2.hostname4.com This idea received the hostname In which a 1 or 2 in subdomain If you have a paper and pen, and you have been asked to write a simple algorithm that Does, how do you do it? How can I do this? You can determine where the sub-domain is, finding the first dot in the string, therefore, Find and then remove subdomain. Since we are only interested in numbers, logically, we will remove whatever we do not. Now we have only one number, and it should be very simple to evaluate whether we want to. In the code, you can do something like this: $ samples = ['sub1.hostname1.com', 'sub12. Hostname2.com ',' suboo2.hostname3.com ',' sub2.hostname4.com ',]; Get foreign currency...

html - Issues positionning svg using background method -

इस सवाल का पहले से ही एक उत्तर है: 8 जवाब मैंने एक svg फ़ाइल की स्थिति स्थापित करने की कोशिश की पृष्ठभूमि पद्धति का उपयोग करना हालांकि ऐसा लगता है कि मैं इसे सही पक्ष पर नहीं रोक सकता। क्या मुझे कुछ याद आ रहा है? मैं स्थितिवान समझने की कोशिश करता हूं लेकिन हर बार मुझे लगता है कि मैं इसे प्राप्त करता हूं, कुछ नया आया। यहां कोड है: & lt; ul id = "menu" & gt ; & Lt; li वर्ग = "आइकन-एसवीजी" & gt; & Lt; a href = "#" & gt; & lt; / a & gt; & Lt; / li & gt; & Lt; / ul & gt; शरीर {पृष्ठभूमि: # 5 ए 5 ए 5 ए; फ़ॉन्ट-परिवार: "हेल्वेस्टिका न्यू", एरियल, बिना-सेरिफ़; } उल {सूची-शैली: कोई नहीं; } एक {पाठ-सजावट: कोई नहीं; } # मेन्यू {स्थिति: रिश्तेदार; ऊंचाई: 50 पीएक्स; चौड़ाई: 50px; सही: 0; z- सूचकांक: 999; } Li.icon-svg एक {पृष्ठभूमि: url (http://dl.dropbox.com/u/12091580/rwdicon/icon-menu.svg) 0 केंद्र दोबारा नहीं; padding-left: 1.9em; text-align: केंद्र; ऊंचाई: 2em; चौड़ाई: 2em; सामग्री:...

python - How to specify a position in a list and use it? -

Is there any way that I can give a status in a list, eg 2 for the third value, and then use that position directly, like list.remove [2]? For example: Say my list, test = [0,1,2,3,2,2,3] Is there any way, if the user wants to delete the 5th value, which is between 2, then you can give only one position and use it directly. In this case, If I want to use the exam (2) It will remove the first 2 visible from the list, so one such method is that I can say the status of mid 2 and then the rest list some test.remove [ 2] would be a good idea to implement, [] value in position. You can use: & gt; & Gt; & Gt; Test = [0,1,2,3,2,2,3] & gt; & Gt; & Gt; Test.pop (5) # removes the item and returns it as 2; Gt; & Gt; & Gt; Test [0, 1, 2, 3, 2, 3] or: & gt; & Gt; & Gt; Test = [0,1,2,3,2,2,3] & gt; & Gt; & Gt; Dell Test [5] #remodes only items & gt; & Gt; & Gt; Test [0, 1, 2, 3, 2, 3]

Simple C program exits prematurely -

I'm trying to create a program (my first) which asks users for four inputs, and long It's been running from time to time that the four ASCII values ​​are not 0. However, my code never reaches the loop part and always exits after the initial printf statement. I'm sure there was no problem in the loop by adding a printf statement before the loop and it still did not execute. #include & lt; Stdio.h & gt; Int main (zero) {four c; Printf ("Welcome to ASCII Land:"); Scanf ("% c", & amp; c); While ((int) 'c'! = 0) {printf ("type in other type"); Scanf ("% c", & amp; c); } Printf ("You've done"); Return 0; } while ((int) 'c'! = 0) { should be while (c! = '0') { By default it converts 'C' to a number and compares to 0. C 'is actually 99, so you're saying while (99! = 0) . Just by removing quotation marks from 'c', how do you "enter? ASCII 0 (...

Removing "class name" from all siblings and adding it to the active element in Jquery -

I am working on a menu within which only an active a element should be active Category ( Highly Active ). When I click on any other element, I have to remove the active class from all other a brothers and add it to the clicked link. This is HTML: - & lt; Ul class = "main-links" & gt; & Lt; Li id = "ol" class = "twist" data-id-id = "oli" data-video-flv = "Europe -1. Flv" data-video-m4v = "Europe-1.m4v" & Gt; & Lt; A href = "# ol" class = "very active" & gt; & Lt; Img src = "imgs / btn1.jpg" width = "237" height = "104" style = "margin-right: 3px;" Alt = "" & gt; & Lt; / A & gt; & Lt; / Li & gt; & Lt; Li id = "fl" class = "twist" data-id-name = "fl" data-video-flv = "latam-2.flv" data-video-m4v = "latam-2.m4v" & gt; ; & Lt; A href = ...

sql - how to add a column with count values in mysql table? -

मेरे नाम के साथ एक mysql तालिका है, a और b , और फिर क्लस्टर । + -------- + ----------- + ------ ---- + --------- + | नाम | एक | बी | क्लस्टर | + -------- + ----------- + ---------- + --------- + | जॉनी | 225630096 | 447 | 3 | | जॉनी | 225630118 | 491 | 4 | | जॉनी | 225630206 | 667 | 5 | | जॉनी | 225630480 | 1215 | 6 | | जॉनी | 225630677 | 160 9 | 7 | | जॉनी | 225631010 | 2275 | 8 | | मैनी | 154247076 | 6235 | 1 | | मैनी | 154247079 | 6241 | 1 | | मैनी | 154247083 | 624 9 | 1 | | मैनी | 154247084 | 6251 | 1 | | मैनी | 154247087 | 6257 | 1 | | मैनी | 1542470 9 0 6263 | 1 | | मैनी | 1542470 9 1 | 6265 | 1 | | मैनी | 154247093 | 626 9 | 1 | | मैनी | 154247097 | 6277 | 1 | | मैनी | 1542470 9 8 6279 | 1 | | मैनी | 154247099 | 6281 | 1 | | मैनी | 154247100 | 6283 | 1 | | मैनी | 154247555 | 7193 | 2 | | मैनी | 154247629 | 7341 | 3 | | मैनी | 154247630 | 7343 | 3 | | मैनी | 154247633 | 734 9 | 3 | | मैनी | 154247634 | 7351 | 3 | | डॉगेस | 146340582 | 6811 | 1 | मैं नाम और क्लस...

git - Move issues from Bitbucket to Github -

I have just gone to Jithub and I want to take all my closed issues and open interests from Bithakket to Github. Is this possible? This script should work: However, through this code To go to the script and to confirm that you really need this before migration or script may be run on the test repo.

linux - Why mmap /dev/mem return different address? -

यहां कार्यक्रम है: #include & lt; stdio.h & gt; # शामिल करें & lt; stdint.h & gt; # शामिल करें & lt; unistd.h & gt; # शामिल करें & lt; stdlib.h & gt; # शामिल करें & lt; sys / mman.h & gt; # शामिल करें & lt; sys / types.h & gt; # शामिल करें & lt; sys / file.h & gt; # शामिल करें & lt; errno.h & gt; लंबा * नक्शामैम (ऑफसेट ऑफसेट) {int fd; लंबे समय तक; एफडी = ओपन ("/ dev / mem", O_RDWR | O_SYNC); यदि (एफडी == -1) {दर्पण ("खुली"); वापसी नल; } Printf ("ऑफसेट (पेजएड्डर) है:% ld \ n", ऑफ़सेट); Ret = mmap (0, आकार (लंबे), PROT_READ | PROT_WRITE, MAP_SHARED, fd, ऑफ़सेट); अगर (रेट == MAP_FAILED) {झूठ ("mmap"); रेट = नल; } Printf ("वापसी पता है:% p \ n", ret); यदि (बंद करें (एफडी) == -1) झपट्टा ("बंद"); रिटर्न रिट; } Int main (int argc, char * argv []) {long * mem = 0; अस्थिर लंबे * _mem = 0, डमी; लंबे समय से चक्कर आना, ऑफसेट, पेजएड्रर; चार * अंत; If (argc! = 2) {fprint...

javascript - dc js - Create Multiple Column Dimension -

I am trying to summarize the data table using dc.js and I Plugin for Dinatable paging and other options. Normally we get the complete data shown in the statistics in the dc.js data table. But I am trying to summarize the data like pivot tables and it is displayed on the web and when the selection is done then the data table needs to be changed. I did this by making the dimension and group and I passed that group with dynaTable . And it's working fine. Suppose I have 5 columns of data. I can make a dimension on any of its columns. Example: I am creating a dimension on the first column and I am creating the group at the value of the previous column, it says that it is A-20, B-42, C-50, D-20 . Example: A, AA, 20 A, AB, 10 A, AC, 30 A, AD, 80 B, BA, 30 B, BB, 40 B, BC , 50b, BD, 90C, CA, 70C, CB, 20C, CC, 10C, CD, 80D, DA, 30D, DB, 40D, DC, 60D, DD, 80 Is it possible to create one dimension on many columns? If it is so please help me. Here's the bell...

Trouble parsing API JSON output with python using 'requests' -

So I'm trying to get the date and average price of DateCoin from Wokofettochi (a cryptocurrency, for those unfamiliar people ) I get an error using COM API requests and whenever I try to run the following code import request content = requests.get ("https: // api. Vaultofsatoshi.com/public/ticker? Order_currency = DOGE and payment_currency = USD ") Print content. Here's the error: Traceback (most recent): [Jason () [{"Data": {"Date", "Avg_Price"}}] Call final): File "Filename", & lt; Module & gt; Print content Jason () [{"Data": {"Date", "Average_Price"}} Type Type: Undeclared Type: 'dict' I'm new to API and to clarify Request modules I am not very familiar with syntax, any help is appreciated. Edit: A typo is fixed with the URL and for reference, this is the word that will return it. {"Status": "Success", "Data": { "Date...

html - CSS - Connecting Two Classes -

मेरा कोड HTML - & lt; div id = "menu" & gt; & LT; ul & gt; & Lt; li & gt; & lt; a href = "#" & gt; & lt; आईएमजी src = "चित्र / चिह्न / होम पेज" / & gt; होम & lt; / a & gt; & lt; / li & gt; & Lt; li & gt; & lt; a href = "#" & gt; & lt; img src = "चित्र / चिह्न / के बारे में" /> gt; यूएस के बारे में & lt; / a & gt; & lt; / li & gt; & Lt; li & gt; & lt; a href = "#" & gt; & lt; img src = "चित्र / आइकन / मूल्य निर्धारण पेज" /> gt; PRICING & lt; / a & gt; & lt; / li & gt; & Lt; li & gt; & lt; a href = "#" & gt; & lt; img src = "चित्र / आइकन / info.png" / & gt; क्यों इंसाइन? & Lt; / a & gt; & lt; / li & gt; & Lt; / ul & gt; & Lt; / div & gt; & Lt;! - मेनू अंत - & gt; सीएसएस । कर्म्स 3 {सीमा-त्रिज्...

javascript - Returning RGBA value, instead of Hex with Minicolor JS -

I'm using the jQuery plugin, which I'm working on. The problem is, although I have the color picker set to make alpha color, it still returns only 6-digit hex code, and not 8-digit hex or rgba Here's my initialized JS $ (function () {$ ('.color'). (Function () {$ (this) .minicolors ({opacity: true,});})}} ; I have seen in my code the following: change: function (hex, opacity) {console.log (hex + '-' + opacity ); } But it does not seem to have anything for my value. As you can see, setting any input to an alpha value is still 6 digits hex. I've been stumped for a while, and official documents are not very favorable. Any ideas? hex function > In the RGB Object , pass your hex value and return RGB code. function hex 2 rgb (hex) {hex = purse (((hex inductoff ('#') & gt; -1) hex. Spring (1): hex), 16 ); Return {R: Hex & gt; & Gt; 16, G: (Hex & amp; 0x00FF00) & gt; & Gt; 8, b: (hex & amp; 0x...

google apps script - Suppressing Email Notifications when setSharing in GAS -

Then, I have the following code snippet, it is part of a large script that copies a folder to the template and Customize them for the individual user's location and data The problem with this script is that whenever I add an owner or editor to each folder and sheet, I send an email notification for each, even if the script Was authorized to run to an individual script. As a result, about 11 notification emails are being sent to the user's email. I do not like spam Is there a way to suppress email notification for each shared item and change permission, and file and folders have been copied and configured just by sending a summary email? I intend to include a link to the top level folder (destConfiguration) in the email. My original summary intent is shown below the snippet in the comment section. Trust me, I have searched this one as well as I can think of, but I start getting crossover in Gmail scripts. P> var destConfiguration = sourceConfiguration.makeCopy (targ...

c# - How to access records after using RowFilter on DataGridView? -

I have DataGridView on which I have used the RowFilter on the following: (as dgv.DataSource as DataTable). Defaultviewfourfilter = whereclose; Record 1087 in DataGridView before applying and after that, 8 . Now I want to work on those 8 records. If you ex> dgv.DataSource as DataTable then you can do dataTable dt = dgv.DataSource DataTable in the form of; Detroit [] rows = DT. Select ("Your filter goes here"); If you want you can do this by Linq. These are your rows and you can work with them. And to edit only these records: DataGridView.DataSource = rows; In addition, you can create a custom DataView , which will filter the records you want and set the data source on that view. But remember, the key here, regardless of how many ideas you have - this is the data that you are seeing dataview view = new data view (); See. Table = dt; See. Rofilter = "your filter"; See. Sir = "your way";

xml - Error: Multiple annotations found at this line -

Every now and later, I am facing the following problem while working on eclipse (Juno). Here is an error: Multiple comments found in this row: - schema_reference.4: Failed to read schema document 'http://www.springframework.org/schema/beans/spring-beans -3.2.xsd ', because 1) the document was not found; 2) The document could not be read; 3) The basic element of the document & lt; Xsd: schema & gt; is not. - CVC-Alt 1: Declaration of the element 'Beans' can not be found Here is the snippet of my XML code: Please guide me to identify the problem in the XML code, if there is one and how to solve it. Thank you.

c - Parentheses operator clarification -

int एक = 10, बी = 20; बी = ए + बी- (ए = बी); इस अभिव्यक्ति में क्यों (a = b) पहला ऑपरेशन नहीं है? यदि यह प्राथमिकता के अनुसार किया जाता है तो यह b को 20 खुद प्राप्त करना होगा लेकिन b ही 10 हो रही है, क्यों? क्या कोई भी मेरी शक स्पष्ट कर सकता है? यह अपरिभाषित व्यवहार को आह्वान करता है कुछ भी हो सकता है ध्यान दें कि यह निश्चित है कि (a = b) घटाता से पहले मूल्यांकन करता है लेकिन यह गारंटी नहीं देता कि b का मान a बस मूल्यांकन के बाद a अगले अनुक्रम बिंदु ( ; का विवरण यहाँ के बाद) संशोधित हो सकता है। मानक कहता है कि पिछले और अगले अनुक्रम बिंदु के बीच एक ऑब्जेक्ट के पास अभिव्यक्ति के मूल्यांकन से अधिक बार इसकी संग्रहीत मान होनी चाहिए। इसके अलावा, पहले मूल्य का उपयोग केवल संग्रहीत करने के मान निर्धारित करने के लिए किया जाएगा सुझाया गया रीडिंग:

html - Playframework does not show Form tag : Scala -

I am trying to follow the game structure tutorial, which can be found in 'Localhost: 9000'. As it says, I have edited and compiled the file, but it does not show the result that I expected Then I (at that place 'alpha 'Run and run the directory) Make a folder named' Model 'on' / '/ alpha / app / controllers. Edit APC Import package controller .api._ import play.api.mvc._ import play.api.data._ import play .api.data.forms._ Import Model Extension of task object application controller {val taskForm = form ("label" -> NonEmptyText) DRF index = action {// Ok (see Html.index (your new app is ready.)) // OK (" Let's play! ") Redirect (routes.Application.Task)} DRT Tasks = Action {OK (views.html.index (Task All (), TaskForm)}} newTask = Action {root request = & gt; TaskForm.bindFromRequest.fold (Errors = & gt; BadRequest (views.html.index (Tasks. All (), Errors), Label = & gt; {Redirect Create Action (Label...

sql server - Clustered INdex in SQL -

I have been asked the following questions in a recent interview. Using the package index in the table, which will be faster or slower in the middle of the insert, delete or update? The indexing effect on DML queries is mostly negative, mostly indexed numbers created on the table, slow Display, update, delete a DML query such as. In fact, it is common to bulk load or to insert large number of rows at the same time.

Updating TFS 2012 express RTM to Update 4 -

I am using Team Foundation 2012 11.0.50727.1 (RTM). I want to update it, I have got something for update 4. But this link downloads full setup of TFS 2012. So if I want to implement this update then should I install it directly, as if we update other software or have to upgrade it that wants to work on backup of my current TFS server backup after update? What steps will be taken before updating the TFS 2012 Express RTM? Please help me on this. The TFS installer is the same installer for a new install or upgrade. Backup is highly recommended before upgrading. The installer is divided into two steps: install, configure when you run it, it will first install all the bits / files on your machine (any option to choose this step No). Then it will run the Configuration Wizard, which will let you know that you are upgrading and will run through the upgrade steps.

How can I add memory to an Azure virtual machine? -

Is it possible to add "Custom" size storage to an Exposure virtual machine? For example, I'm using medium size - 2 core, 4 GB RAM, I would like to RAM 8 GB with my current settings ... otherwise the next option is available A5 2 Core 14 With GB The simplest answer is that you can not choose from any of the current VM sizes -

osx - Calculating size of Mac OS directory with resource forks without using deprecated functions -

I would like to calculate the directory size and all its contents all solution that I came to use either NSFileManager (which uses time not take resource fork) or dislikes functions calculate the file size. Now how should we get an exact folder size using coco? I solved it: - (unsigned long long ) folder SizeForURL: (NSURL *) url {NSArray * keys = @ [NSURLTotalFileSizeKey]; NSDirectoryEnumerator * enumerator = [[NSFileManager defaultManager] enumeratorAtURL: Proprtijforkijh including URL: Keys option: 0 Trutihandlr: ^ (ns URL * url, NSError * error) Gnn after placing {// error handle // Return Yes, if the error Should continue. Yes come back }]; Unsigned long long size = 0; (Url in NSRR * enumerator) {NSError * error; NSNumber * Total file size; [Url getResourceValue: & amp; Key file size: NSURLTotalFileSizeKey error: & amp; Error]; Size + = [totalFileSize longLongValue]; } The size of the return; } The result is similar to the finder.

asp.net mvc - Check registry keys of a Software that is already installed in your system For WIX setup -

I have WIX setup. I want a prompt message box for some essential things before setting up my setup. I am using code to check the registry keys for software. But this is always a message indicating weather whether any software is installed or not. & lt; Condition Message = "This Application ReportWire Required." & Gt; & Lt ;! [CDATA [ReportViewerV10 or Report Weasvers 64 V10]] & gt; & Lt; / Status & gt; & Lt; Use: registry search root = "HKLM" key = "software \ Microsoft \ ReportViewer \ v10.0" value = "install" variable = "ReportViewerV10" Win64 = "yes" /> & Lt; Use: registry search root = "HKLM" key = "software \ Wow6432Node \ Microsoft \ ReportViewer \ v10.0" value = "install" variable = "ReportViewerWow64V10" Win64 = "yes" /> Can someone guide me where I am doing wrong? What should be the registry keys for the software? Ac...

git: git log between remote branch and HEAD being in detached HEAD state -

git चेकआउट -t मूल / 5.0 * df957e8 (सिर, मूल / 5.0, 5.0) प्रतिबद्ध ए * 93f3185 प्रतिबद्ध बी * abd1176 commit C मैं कमांड के नीचे उपयोग कर Gerrit से एक बदलाव की जांच की git fetch gerit refs / changes / 36/236/1 & amp; amp; * bdd7f9c (HEAD) के भाग 3 के बजाय 3 में मास्टर कमांड के शीर्ष पर आने वाले कमेट्स के साथ अलग हेड स्टेट होने जा रहा है। 236 * fa8f60f भाग 2 236 * bddd168 भाग 1 236 * ffc7982 (मूल / मास्टर, मूल / HEAD) प्रतिबद्ध मास्टर * 415668e * 991d48d मुझे यह पसंद होना चाहिए बीडीडी 7 एफ 9 सी (HEAD) भाग 3 * / कोड> मैंने प्रतीकात्मक-रेफरी का उपयोग करके रेफिक्स / सिर / 5.0 की ओर इशारा करते हुए सिर को बदलने की कोशिश की लेकिन FETCH_HEAD को चेक करने के तुरंत बाद 5.0 की बजाय मास्टर शाखा के शीर्ष पर दिखाया जा रहा है। कमान की सूची प्राप्त करने के लिए कमांड का उपयोग करके गेरिट परिवर्तन चेकआउट से प्राप्त होने का मेरा लक्ष्य है "git log --format ="% h "मूल / 5.0..एचईएडी" लेकिन यह इस मामले में काम नहीं कर रहा है क्योंकि यह 5 की बजाय मास्...

qt4 - how to specify the labels size and position to create? -

I am preparing labels and using textile I am displaying text on the label. How to specify labels and the size of the queue to create labels in a specific area? I found it by searching on Google. Label-> Setgetometry (QRect (x, y, width, height));

android - Storing password for an offline app -

I am developing an app where users can use it in remote locations. I have asked for a startup dialog for the password I saved the password in the shared contexts . My question is, is there a good idea to do this? Or is there a better way to save passwords for offline apps? Because when I tried to clear data for your app in Settings -> Apps, reference my password saved in shared is also being removed. You can have your password hash and store it in a file Search for hash functions such as MD5 or ..

Spring Security, JSP Tag Lib Error -

I want to include the Spring Security tag in my JSP file (this means in the JSP taglib scriptlet), so I have the following The line has been added to my JSP taglib prefix = "security" ury = "http://www.springframework.org/security/tags" (script in JSP tag) but I get the following error home.jsp : Getting 2: 5: No tag library found with this URI. Potential reasons may be that the URI is incorrect, or there are errors during parsing the .tld file. & lt; Dependency & gt; & Lt; Group & gt; Org.springframework.security & lt; / Group & gt; & Lt; ArtifactId & gt; Spring-security-web & lt; / ArtifactId> & Lt; Version & gt; 3.0.5.RELEASE & lt; / Edition & gt; & Lt; / Dependencies & gt; & Lt; Dependency & gt; & Lt; Group & gt; Org.springframework.security & lt; / Group & gt; & Lt; ArtifactId & gt; Spring-safety-core & lt; / ArtifactId> & Lt; Version & gt; 3.0...

php - Error 0 couldn't connect to host in wamp windows 7 -

Image
My project has a Joomla GIT repository. We are using Vamp and Windows 7 as a development environment. This repository works fine on one machine. But when we try to clone the same repository on the other two machines, we are facing a strange error. Error: Error 0 Could not connect to host Shown in screenshot. All other repositories work fine on those two machines There are no errors under any error log file (Apache, PHP, and Micisk). I enabled Joomla error reporting thanks. When you clone your Joomla on another machine, there are many things You need to double check that: Not only files from GIT, make sure that the database is similar on the other two machines (export from first time, to import 2 second phpMyAdmin ). Make sure the configure.php file is rectified on two other machines, including: logs The path to, TMP folders; database information (host, user name, password, database name). This should work.

java - User Name in Header in Jsp -

I have an application with spring + spring protection in my application I have a header, in that header I have a user Is the name, but this username is only present in my first page, if I change the page, the username disappears. I know that I can get the name of the user with the principal, but I want to save from being the principal in every controller. Is there any other way of keeping names in the header? You are using Spring Protection JSP tags & Lt;% @ taglib prefix = "sec" yuris = "http://www.springframework.org/security/tags"% & gt; & Lt; Sec: Authentication property = "Principal username" />

jquery - 0x800a1391 - JavaScript runtime error: '$' is undefined: directlink works but solution explorer file doesn't -

I got this error because VS can not find jquery file. I have added this to the solution explorer and added the source to the head of my master page, but VS can not get it for some unknown reasons. I tried Json2 and it also does not work. Finally I tried to use the direct link on the jquery download page and it worked and the problem was resolved. But, this is not a clean fix because it will not work if jquerysite stops working then I should do better problem. Do you have any suggestions? It's easy to fix: & lt; Script src = "http://code.jquery.com/jquery-1.9.1 .min.js" & gt; & Lt; / Script & gt; I think this is a jquery conflict error, please call it "jquery-1.9" "Insert 1.min.js" top file of all jquery files

checkbox can't convert Symbol into String in ruby on rails -

I want to use the checkbox below on my Ruby on Rail App: & Lt; % = Check_box (: Monday, {: id = & gt; "Monday",: value => "Monday"})%> But this is not the text of the checkbox that only shows "Monday" then I am using the code below to display text with the checkbox & lt;% = Check_box: Monday, {: id = & gt; "Monday" ,: Price = & gt; "Monday"}, "Monday"%> But he gave me an error below: Icon can not be changed in the string then what I want to display the text with the checkbox, please wait for me to answer, thank you You are using a completely wrong way to take input on the scene. More examples here and lt;% = check_box_tag (Monday, value = "Monday", check = false, option = {: id = & gt; "Monday "})% & Gt; Read for more information

Monitor IP Addresses accessing my VM in Azure -

Is there a way to monitor IP address that uses my virtual machine hosted in ezra? I got the answer in this thread All logs are deposited here: Event Viewer \ Applications and Services Log \ Microsoft \ Windows Terminal Services - Local Session Manager Hope this thread will help others!

java - Can defensive copies by used the assist with thread-safety? -

Is there a protective copy of the fileName argument required in this example? public static reference getInstanceFromFile (named final String file) throws IOException, FileNotFoundException, ContextException {if (filename == null) {throw new NullPointerException ( "FILENAME argument is null."); } Return example.loadParametersFromFile (String.valueOf (fileName)); } In principle, the fileName can be modified before another thread is called loadParametersFromFile method. Is not this true even before String.valueOf (fileName) ? How can I ensure that the value passed in the file is still the same when loadParametersFromFile is called? In Java, strings are immutable and there is no way to thread your fileName context, (because it's local to the calling method) then a defensive copy brings absolutely no benefit here. Can general, copies defensive, modify can help to avoid such a situation at the right time, provided there is (when no other threads in this...

c# - How to move rectangle with mouse -

I want to move a rectangle on the screen. This is the code for this time: Internal category GraphicContainer: Control {// --------------------- METHODS - ------------------- Public Graphic Container (Control Control, String Text, Inte Left, Input): Base (Control, Text, Left, Top, 400, 200) Secure Override Zero OnPaint (PaintEventArgs pe) {// call the OnPaint method of base class. Base.OnPaint (PE); // Announce and open a new pen. Pen pens = new pen (color. Fuscia, 15); Solidbrish MyBrush = New System Drawing. Solidbrush (color hotpunk); // Draw an aqua rectangle in the rectangle represented by the control. //pe.Graphics.DrawRectangle (open, new rectangle (this. Location, this.Size)); Rectangle blublublu = new rectangle (this. Location, shape - new size (25, 25)); Pe.Graphics.DrawRectangle (pen, blublublu); Pe.Graphics.FillRectangle (myBrush, blublublu); Safe Override Zero OnMouseMove (MouseEventArgs E) {} Safe Override Zero OnClick (EventArgs e) {}} I have searched a lot and I d...

java - Use data retrieved from HTTPClient into JSoup -

I am using HTTPClient to connect to a website. The following snippet of code is used for this purpose: byte [] feedbackbodie = method.getResponseBody (); System.out.println (new string); The above code displays the HTML code of the website. Next I want to use only some data from code which I was able to use JSoup using the following code snippet: document doc = jsoup.connect (url) .get (); In the above code I have specified the URL directly using "url". Which means that I do not need HTTP Client if I use JSoup. There is a way I can use "feedback" to integrate into JSCL code using HTTPClient so that I do not have to use the document doc = Jsoup.connect (url) .get (); Thanks You can HTML directly Jsoup # parse : document doc = jsop.parse (new string (responsebod)); Although I have concerns about converting the byte array directly to the string, but in your case it should work fine. On the other hand, I can use the URLConnection and ...

breadcrumbs - How to Change Controller and Action Display Names in Asp.net MVC -

I'm using the controller and action name to show up in my view-breadcrumbs @viewcontext. Root data Price ["Controller"] / @ViewContax RootData. Value ["Action"] The output of this query HRmPerson certificate / create but for the controllers I want to show different names. IE: Certification / New Certificate Can I change the names and names of the controllers? Edit Actually, I had trouble with some solution for you that you said but that is, i.e. In my person model, now it has two more variables, route 1 and route 2. Route 1 = "person information", root 2 = "action name: see the person". But I'm using the same view while editing or using this model. I'm in trouble. You should not use the internal names of controllers and actions on the website. This will make things difficult to maintain and optimize the visual side of things (as you can see with this question) and mix your server side's meta-data inapp...

c - Nested structures and Typedef -

I am trying to print no_routes through the structure and typedef in the CO. But there is a mistake of the code segment below typedef structure RDI {int no_routes; } RD; Structure os-class {RD OS_RDI [10]; } * OS_CL; Zero Initiate_CL () {OS_CL- & gt; Os_rdi [0] .no_routes = 10; } Main () {Initiate_CL (); // printf ("CL% d", OS_CL-> os_rdi [0] .no_routes); } User types are typed to give a name for typed data type. For example, you can type typed with the structure to define a new data type, and then use that data type to define the structure variable directly as follows: You are using OS_CL (which is the indicator), but for this allocated memory has not been done. zero initialize_CL () {OS_CL = malloc (sizeof (Os_class)); & Lt; - Allocation of OS_CL- & gt; OS_RDI [0] .no_routes = 10; } After use to avoid memory leak, make sure you de-allocate memory with free .