\n\nA:\n\nI suggest you may need to consider people's feeling when you post such long codes with poor comments.\nYour problem is you are not awareness the coordinate system of SVG where the y points to bottom. The following is a little modification:\nsvg.selectAll(\"circle\")\n .data(inputData)\n .enter()\n .append(\"circle\")\n .attr(\"cx\", function(d){\n let thisDate = x(new Date(d.date[0], d.date[1], d.date[2]));\n return thisDate;\n })\n\n // this is the KEY part you should change:\n .attr(\"cy\", function(d, i){ return h - padding - y(d.value); })\n\n .attr(\"r\", 1)\n .attr(\"fill\", \"red\");\n\nSince you don't offer detail data, I can't check it. hope it will help!\n\n"},"meta":{"kind":"string","value":"{\n \"pile_set_name\": \"StackExchange\"\n}"}}},{"rowIdx":28616,"cells":{"text":{"kind":"string","value":"Q:\n\nSequences with PL SQL\n\nI know how to create a sequence in pl sql. However, how would I set the values to all have say 3 digits? is there another sql statement to do this when I create a sequence?\nso an example would be:\n000\n001\n012\n003\n\nThanks guys!\n\nA:\n\nFirst, just to be clear, you do not create sequences in PL/SQL. You can only create sequences in SQL.\nSecond, if you want a column to store exactly three digits, you would need the data type to be VARCHAR2 (or some other string type) rather than the more common NUMBER since a NUMBER by definition does not store leading zeroes. You can, of course, do that, but it would be unusual.\nThat said, you can use the \"fm009\" format mask to generate a string with exactly 3 characters from a numeric sequence (the \"fm\" bit is required to ensure that you don't get additional spaces-- you could TRIM the result of the TO_CHAR call as well and dispense with the \"fm\" bit of the mask).\nSQL> create table t( col1 varchar2(3) );\n\nTable created.\n\nSQL> create sequence t_seq;\n\nSequence created.\n\nSQL> ed\nWrote file afiedt.buf\n\n 1 insert into t\n 2 select to_char( t_seq.nextval, 'fm009' )\n 3 from dual\n 4* connect by level <= 10\nSQL> /\n\n10 rows created.\n\nSQL> select * from t;\n\nCOL\n---\n004\n005\n006\n007\n008\n009\n010\n011\n012\n013\n\n10 rows selected.\n\nA:\n\nhaven't used plsql in a while, but here goes:\ngiven an integer sequence myseq, \nto_char(myseq.nextval, '009')\n\n"},"meta":{"kind":"string","value":"{\n \"pile_set_name\": \"StackExchange\"\n}"}}},{"rowIdx":28617,"cells":{"text":{"kind":"string","value":"Q:\n\nGet Previous item in a list\n\nI've a previous/next setup in the works, and the next functionality is working fine (although, that was created by someone else a while back). As for the previous button, that is giving me a few problems.\nHere is the code so far:\n private Item getPrevious()\n {\n Item CurrentItem = Sitecore.Context.Item;\n var blogHomeID = \"{751B0E3D-26C2-489A-8B8C-8D40E086A970}\";\n Item BlogItem =db.Items.GetItem(blogHomeID);\n Item[] EntryList= BlogItem.Axes.SelectItems(\"descendant::*[@@templatename='BlogEntry']\");\n\n Item prevEntry = null;\n\n for (int i = 0; i < EntryList.Length; i++)\n {\n if (EntryList[i] == CurrentItem)\n {\n return prevEntry;\n }\n\n prevEntry = EntryList[i];\n }\n }\n\nI get that you need to subtract 1 from the current item in the list to get the previous, but so far, all this seems to do is display the exact same entry for the previous button. It's always the latest entry in the list, not the previous one. I feel like this shouldn't be so difficult but it could be the old code I'm trying to work with. Not sure.\n\nA:\n\nYou can use the GetPreviousSibling() and GetNextSibling() methods:\nSitecore.Context.Item.Axes.GetPreviousSibling()\n\nSitecore.Context.Item.Axes.GetNextSibling()\n\nThese will return the previous and next sibling, or null if the current item is the first/last respectively.\nIf you want to restrict by template type then you can use the preceding and following xpath queries:\nItem previous = Sitecore.Context.Item.Axes.SelectItems(\"./preceding::*[@@templateid='{template-guid}']\").LastOrDefault();\n\nItem next = Sitecore.Context.Item.Axes.SelectSingleItem(\"./following::*[@@templateid='{template-guid}']\");\n\nNote the use of SelectItems and LastOrDefault() on the first query. Both queries give you a list of Items sorted by order.\n\n"},"meta":{"kind":"string","value":"{\n \"pile_set_name\": \"StackExchange\"\n}"}}},{"rowIdx":28618,"cells":{"text":{"kind":"string","value":"Q:\n\nLet's kill all the [character]s\n\nDoes this site really need a character tag?\nNearly every question is about some character in one way or another. And character wouldn't work as the sole tag on a question, which makes it a meta tag and therefore undesirable, according to SE central policy.\nThe purpose of tags is supposed to be for experts in a given subject to find questions to answer on that subject, but there are obviously no experts on characters in general.\nI propose the burnination of the character tag.\nWho's with me?\n\nA:\n\nI think that this tag is useless. \nNo one is going to look for all of the questions about all characters in all movies or TV shows. \nMost questions with this tag are about a specific character in a specific film... Which means that the film tag should be more than sufficient. There's no need to further point out \"hey, this question is just about one character\"... and the spotty usage of it shows that it's not helpful.\nHere are a few questions that are about \"characters\", have fewer than five tags and yet, don't have the character tag.\n\nIs there any hint as to why Jerry needs the money?\nWhy was Ian's onset of Bipolar Disorder so fast?\nWhy did Major Hellstrom get suspicious?\nWhy did Apocalypse say this?\nWhy didn't Pietro Maximoff tell Magneto they were related?\nWhy was this specific character in Age Of Ultron killed off?\n\nAnd that's just from the front page and it's just the ones I absolutely know \"should\" have it.\nIf we're going to use it to classify questions but most of the questions that \"deserve\" it don't have it... then the tag is useless. Get rid of it.\n\nA:\n\nI don't think that this tag, character, is useless. \n\"Nearly every question is about some character\". It's good word choice: \"near\" ...it`s not the same than all. I've made questions about characters myself and I like them: one question with over 5 votes on Hodor, from Game of Thrones, and others less popular questions on Gilfoyle, from Silicon Valley, and even on God, in Supernatural. Maybe vote popularity has to do with show/movie popularity, so that might not be such a huge issue. Just my opinion.\nOn the other hand they're tons of tags not related to characters, just some to mention: film-techniques, production, animation, soundtrack, title, effects, props, among the most used tags on site.\nThe second point: that \"character wouldn't work as the sole tag on a question\" seems sound. However, keeping the tag even as a secondary one can help to do cross searches on a topic, such as different aspects of a movie. For example it's not the same between these two sets of tags:\n\nfight-club, props, ending, production\nfight-club, character, dialogue, analysis, plot-explanation \n\n"},"meta":{"kind":"string","value":"{\n \"pile_set_name\": \"StackExchange\"\n}"}}},{"rowIdx":28619,"cells":{"text":{"kind":"string","value":"Q:\n\nhow to get gradle embeded common value in build.gradle\n\nI am define a public dependencies in common.build like this(Gradle 6.0.1):\next {\n java = [\n compileSdkVersion: 1.8,\n minSdkVersion : 1.8,\n targetSdkVersion : 1.8,\n versionCode : 1.8,\n ]\n\n version = [\n mybatisGeneratorCoreVersion : '1.3.7',\n itfswMybatisGeneratorPluginVersion: '1.3.8'\n ]\n\n dependencies = [\n mybatisGeneratorCore : \"org.mybatis.generator:mybatis-generator-core:${version[\"mybatisGeneratorCoreVersion\"]}\",\n ]\n}\n\nand using in root project build.gradle like this:\nsubprojects {\n apply from: \"${rootProject.projectDir}/common.gradle\"\ndependencies {\n implementation rootProject.ext.dependencies.mybatisGeneratorCore\n }\n}\n\nand build the project like this:\n./gradlew clean :soa-illidan-mini:soa-illidan-mini-service:build -x test\n\nand give me this error:\n~/Library/Mobile Documents/com~apple~CloudDocs/Document/source/dabai/microservice/soa-illidan-mini on master! ⌚ 10:59:03\n$ ./gradlew clean :soa-illidan-mini:soa-illidan-mini-service:build -x test\n\nFAILURE: Build failed with an exception.\n\n* Where:\nBuild file '/Users/dolphin/Library/Mobile Documents/com~apple~CloudDocs/Document/source/dabai/microservice/build.gradle' line: 99\n\n* What went wrong:\nA problem occurred evaluating root project 'microservice'.\n> Cannot get property 'dependencies' on extra properties extension as it does not exist\n\n* Try:\nRun with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights.\n\n* Get more help at https://help.gradle.org\n\nBUILD FAILED in 12s\n\nI am followed by internet tutorals ,what should I do to fix this problem?\n\nA:\n\nmove your apply command to root of build.gradle like this:\napply from: \"${rootProject.projectDir}/common.gradle\"\n\njust put it to top level of your project config. It works!\n\n"},"meta":{"kind":"string","value":"{\n \"pile_set_name\": \"StackExchange\"\n}"}}},{"rowIdx":28620,"cells":{"text":{"kind":"string","value":"Q:\n\n\"Can't find API database; API check was not performed\" in Android App SDK with Eclipse\n\nI'm starting a new Android App using the Android SDK on Eclipse, build tools 19.0.2, on a Windows 7 PC. At some point during my work, I started receiving the error \"Can't find API database; API check was not performed\". This error is not shown in the code but instead shows a red X in the project folder and a line one error in the Problems window. There is a previous question on this topic but that did not work for me. I have already tried adjusting the target and minimum SDK versions in the manifest and re-installed the SDK multiple times. This problem also occurs with the only other project in my work space and shows the same error. Thanks in advance for any help. \n\nA:\n\nFor me, Eclipse --> Project --> Clean... is enough set everything right again:\n\nA:\n\nFollowing works for me:\n\nMake sure you installed SDKs listed in your manifest.xml, i.e. mini version and target version.\nClick the icon with red x on the right hand side tool bar, which has tip of 'Problems(...)' if you move your cursor over it.\nRight click on your error, choose quick fix.\nChoose Disable Check in This Project\n\n"},"meta":{"kind":"string","value":"{\n \"pile_set_name\": \"StackExchange\"\n}"}}},{"rowIdx":28621,"cells":{"text":{"kind":"string","value":"Q:\n\nWhen to instantiate a struct explicitly?\n\ni'm coming from Java, and there you always do something like:\nHttp http = new Http(...);\n\nhttp.ListenAndServe();\n\nSo all information are stored in the local variable \"http\".\nIt's different in go. There most of the information is stored directly \"in another package\".\nYou do:\nimport \"net/http\"\n... \nhttp.ListenAndServe(...)\n\nSo you dont have to explicitly (well you could) instantiate a server struct. Just call a function from the package and all the structs will be created from there. (So compared to Java, it acts like static functions with static member variables to store all information ?)\nSo this is how you do it (everytime) in go ?\nComing from Java, this is a little bit hard to understand.\nEspecially when to use this method, when to use a factory pattern (like: NewHttpServer(...) ) and when to explicitly create a struct from another package ( like: var http http.Server = http.Server{...} )\nEverything might be possible, but what is the idiomatic golang code ?\nIs there any good document/tutorial which explains it ?\n\nA:\n\nI'd really suggest reading the Godoc for net/http. The package is very feature-rich and lets you do what you want.\nThe behaviour of http.ListenAndServe is to implicitly use a serve multiplexer known as DefaultServeMux, on which you can register handlers with http.Handle. So you can't deal with the server or multiplexer explicitly like this.\nIt sounds like what you want (a more Java-like solution) is to instantiate a server\ns := &http.Server{\n Addr: \":8080\",\n Handler: myHandler, // takes a path and a http.HandlerFunc\n ReadTimeout: 10 * time.Second, // optional config\n WriteTimeout: 10 * time.Second, // ...\n MaxHeaderBytes: 1 << 20,\n}\n\nand call ListenAndServe on that:\nlog.Fatal(s.ListenAndServe())\n\nBoth ways are totally idiomatic, I've seen them used quite frequently.\nBut seriously, don't take my word for it. Go look at the docs, they have lots of examples :)\n\n"},"meta":{"kind":"string","value":"{\n \"pile_set_name\": \"StackExchange\"\n}"}}},{"rowIdx":28622,"cells":{"text":{"kind":"string","value":"Q:\n\nRails 5.1: refresh partial within partial with AJAX\n\nI have partial _navigation.html.erb where there is this piece of code:\n
\n\nI render User name in this _user.html.erb partial:\n<%= user.name %>\n\nWhen I login, I see my current_user name in navigation partial as expected. However when I try to Update my User name (modal window), I don't see my current_user value changes in _user.html.erb partial.\nMy users_controller.rb Update action looks like this:\n def update\n @user.update(user_params)\n respond_to do |format|\n format.json { update_flash }\n format.js { update_flash }\n end\n end\n\n private\n\n def user_params\n params.require(:user).permit(:name, :email, :password, :password_confirmation,\n :locale, :menu_role, :psw_change,\n {company_ids: []}, {user_group_ids: []})\n end\n\n def correct_user\n users = User.where(id: helpers.users_all)\n @user = User.find(params[:id])\n redirect_to(errors_path) unless users.include?(@user)\n end\n\n def update_flash\n flash[:notice] = \"#{@user.name.unicode_normalize(:nfkd)\n .encode('ASCII', replace: '')} \", t(:updated)\n end\n\nupdate.js.erb looks like this:\n$('#dialog').modal('toggle');\n$('#userprofile %>').replaceWith('<%= j render (@user) %>')\n\nI see clearly in my console Update action is done, my files are rendered, no errors:\n Rendering users/update.js.erb\n Rendered users/_user.html.erb (0.6ms)\n Rendered users/update.js.erb (8.5ms)\nCompleted 200 OK in 126ms (Views: 41.1ms | ActiveRecord: 16.0ms)\n\nWhat am I doing wrong here, please? It would be nice to be able to show updated current_user name in profile. I'll be happy for any hint, where should I be looking at. Thank you.\n\nA:\n\nIn update.js.erb, you have a typo. You should delete the %>. Try this:\n$('#userprofile').replaceWith('<%= j render (@user) %>')\n\nAlso, instead of replacing the entire #userprofile node, you may want to change the html inside of it instead:\n$('#userprofile').html('<%= j render (@user) %>')\n\n"},"meta":{"kind":"string","value":"{\n \"pile_set_name\": \"StackExchange\"\n}"}}},{"rowIdx":28623,"cells":{"text":{"kind":"string","value":"Q:\n\ngroup a list of triples into map with pair key\n\nI have a list of triples\nList> triplets; \n\nI want to group into a map like this\nMap, String> mapping;\n\nWhere value of the map is the third element of the triple. And in case of the same key it should override the remaining third value.\nFor example\ndef triples = [ {a, b, c} ; {a, d, e} ; {a, b, f } ]\n// grouping\ndef map = [ {a,b} : c ; {a, d} : e ]\n\nHow to do that using Java 8 and its grouping in streams?\n\nA:\n\nThis should do the trick:\nMap, String> result = triplets.stream()\n .collect(\n Collectors.toMap(\n t -> new Pair(t.getOne(), t.getTwo()),\n Triple::getThree,\n (v1, v2) -> v2\n )\n );\n\nExample of a partial pair class:\npublic class Pair {\n //...\n\n @Override\n public int hashCode() {\n return one.hashCode() + two.hashCode();\n }\n\n @Override\n public boolean equals(Object obj) {\n if (!(obj instanceof Pair))\n return false;\n Pair p = (Pair) obj;\n return p.one.equals(one) && p.two.equals(two);\n }\n}\n\nThe HashMap class uses equals method to identify key objects uniquely. So you first need to override equals and hashcode methods to show the logical equality of the Pair objects for the Map class.\nThen come back to the streams and lambda. For each triplet use Collectors.toMap with the Pair object as the key and the other remaining value of the Triplet as the value. Then provide a mergeFunction to handle key conflicts. In your case, you need to keep the previous value while discarding new value. That's all you need to do.\nUpdate\nI have updated the merge function as per the below comments.\n\n"},"meta":{"kind":"string","value":"{\n \"pile_set_name\": \"StackExchange\"\n}"}}},{"rowIdx":28624,"cells":{"text":{"kind":"string","value":"Q:\n\nGetting a French passport - born abroad to a French mother\n\nI was wondering if any of you have any experience with this:\nI am looking at getting a French passport. My mother is French and I was born in the UK. My birth was registered at the French Consulate in Liverpool.\nI understand that I am entitled to one. However, I am not sure which or what documents I must show them, and it isn't very clear online.\nWould I need to show them my birth certificate (which includes the names of my parents) and must it be legally translated into French?\nAnd would I also need to show a scanned copy of my mother's birth certificate, or must I provide them with the actual one?\nMoreover, do I have to show them a copy of my parent's marriage certificate?\nMany thanks in advance for any help or advice.\n\nA:\n\nWould I need to show them my birth certificate?\n\nThere is a page that discusses whether you need a birth certificate to apply for a passport. It says that one condition that relieves you of this requirement is:\n\nvous êtes né(e) à l’étranger et votre acte de naissance étranger a été transcrit dans les registres de l’état civil consulaire français.\n\nTranslation:\n\nyou were born abroad and your foreign birth certificate was transcribed in the French consular civil register.\n\nI presume that this second clause is what happened when your \"birth was registered at the French Consulate in Liverpool.\" If so, you don't need to show your birth certificate to apply for a passport. I suppose that you might in this case require a document recording or attesting to the transcription of your birth certificate, but I couldn't find anything saying that explicitly, so maybe you do not.\n\nAnd would I also need to show a scanned copy of my Mother's birth certificate, or must I provide them with the actual one?\n\nIt's not generally necessary to show your parents' birth certificates with a passport application, but if you are under 18 you'll need to show your mother's passport or identity card and livret de famille, the requirements for a first-time passport application for a minor being somewhat different from those for an adult.\nI assume here that the registration of your birth with the French consulate serves as your proof of French nationality. If it does not for some reason, you will need to have your French nationality certified as a separate step before you can apply for a passport. Doing that will of course require proving your mother's nationality, in which case her birth certificate may be of use.\n\n"},"meta":{"kind":"string","value":"{\n \"pile_set_name\": \"StackExchange\"\n}"}}},{"rowIdx":28625,"cells":{"text":{"kind":"string","value":"Q:\n\nChart legend with row style cuts off\n\nI have a Chart in ASP.NET and C#. Whenever I have the chart legend style as row, it cuts off extra labels and displays three dots \"...\"\nIs there anyway to fix this or make the legend width larger without changing the chart width?\nHere is my code for the chart:\n\n \n \n \n\n \n \n \n\n \n \n \n\n \n \n \n\n\nAnd the code behind:\ncrtMain.Series[\"Default\"].ChartType = SeriesChartType.Pie;\n\ncrtMain.Series[\"Default\"].IsValueShownAsLabel = true;\n\ncrtMain.ChartAreas[\"crtArea\"].AxisY.LabelStyle.Format = \"c\";\ncrtMain.Series[\"Default\"].LabelFormat = \"c\";\n\ncrtMain.ChartAreas[\"crtArea\"].AxisX.LabelStyle.Font = new System.Drawing.Font(\"Arial\", 15F, System.Drawing.FontStyle.Bold);\ncrtMain.ChartAreas[\"crtArea\"].AxisY.LabelStyle.Font = new System.Drawing.Font(\"Trebuchet MS\", 15F, System.Drawing.FontStyle.Bold);\ncrtMain.Series[\"Default\"].Font = new System.Drawing.Font(\"Trebuchet MS\", 15F, System.Drawing.FontStyle.Bold);\ncrtMain.Legends[\"Default\"].Font = new System.Drawing.Font(\"Trebuchet MS\", 14F, System.Drawing.FontStyle.Bold);\n\n crtMain.Legends[0].Enabled = true;\n\nAnd picture of the issue:\n\nWhich is coming from the chart here:\n\nAny ideas at all?\nThanks in advance!\n\nA:\n\nUPDATE:\nSo I figured out how to do this.\nI simply put in the code behind:\ncrtMain.Legends[\"Default\"].IsTextAutoFit = true;\ncrtMain.Legends[\"Default\"].MaximumAutoSize = 100;\n\nThis expanded all the text so I could see every label.\nHopefully this will help someone in the future.\n\n"},"meta":{"kind":"string","value":"{\n \"pile_set_name\": \"StackExchange\"\n}"}}},{"rowIdx":28626,"cells":{"text":{"kind":"string","value":"Q:\n\nExt Form with fileuploadfield (response after submit)\n\nCan`t really understand where is a mistake.. \nI have a form with fileuploadfield. Request is sended good, action on my controller gets all params, works with them, and sends response to browser. But in html page, after submiting the form, always fires FAILURE event, and never SUCCESS. \nClient Side Code\nExt.create('Ext.form.Panel', {\n renderTo: 'Container',\n bodyPadding: '10 10 0',\n items: [\n {\n xtype: 'form',\n width: 300,\n border: false,\n fileUpload: true,\n items: [\n {\n xtype: 'combobox',\n id: 'PayTypes',\n width: 215,\n store: PayTypesStore,\n valueField: 'id',\n displayField: 'Name',\n editable: false,\n name: 'id'\n }\n ,\n {\n xtype: 'filefield',\n id: 'form-file',\n name: 'file',\n buttonText: '',\n buttonConfig: {\n iconCls: 'upload-icon'\n }\n }\n ],\n buttons: [\n {\n text: 'Send',\n handler: function () {\n var form = this.up('form').getForm();\n if (form.isValid()) {\n form.submit({\n url: 'UploadFile',\n waitMsg: 'Uploading your photo...',\n success: function (fp, o) {\n console.log(\"success\");\n msg('Success', 'Processed file on the server');\n },\n failure: function (form, action) {\n console.log(action);\n Ext.Msg.alert('Failed', action.result ? action.result.message : 'No response');\n }\n });\n }\n }\n }\n ]\n }\n ]\n });\n\nServer Side Code:\npublic JsonResult UploadFile(HttpPostedFileWrapper file, int id)\n {\n var response = Json(new { success = true });\n response.ContentType = \"text/html\";\n\n return Json(response);\n }\n\nResponse, recieved on the client side:\n{\"ContentEncoding\":null,\"ContentType\":\"text/html\",\"Data\":\"success\":true},\"JsonRequestBehavior\":1,\"MaxJsonLength\":null,\"RecursionLimit\":null}\n\nWhat i need to fix in my code to get SUCCESS event after sumniting form?\n\nA:\n\nYou called Json method twice. The only thing you need is\npublic JsonResult UploadFile(HttpPostedFileWrapper file, int id)\n{\n return Json(new { success = true });\n}\n\n"},"meta":{"kind":"string","value":"{\n \"pile_set_name\": \"StackExchange\"\n}"}}},{"rowIdx":28627,"cells":{"text":{"kind":"string","value":"Q:\n\nMensa Norway Question Help Please\n\nAnyone can please help with this question? Currently stuck here.\nSource: Mensa Norway\n\nA:\n\n Add the first two columns in a row to get the third column, or the first two rows in a column to get the third row. \n\n Nothing + Square = Square\n\n Nothing + Dot = Dot\n\n Two dots added together make a square.\n\n Two squares added together make a dot.\n\n Square + Dot cancel each other\n\nAnswer:\n\n \n\n"},"meta":{"kind":"string","value":"{\n \"pile_set_name\": \"StackExchange\"\n}"}}},{"rowIdx":28628,"cells":{"text":{"kind":"string","value":"Q:\n\nMule ESB and basic authentication\n\nI wrote a flow accepting JSON, now I want to add http authentication. I want to accept HTTP basic authentication uid and pw.\nSo I am starting with a Hellow World program first, as follows:\n\n\n \n \n \n \n\n\nAnd I test with the following program:\nC:\\curl>curl -H \"Content-Type: application/json\" -u uida:pw -d {\"first\":\"Steven\"\n} http://localhost:8081\nHello World\nC:\\curl>\n\nThis works, as there is no basic auth configured within th eflow, so it ignores the \"-u uid:pw\" I sent on the curl command\nNow I change the flow as follows ( I put 'uid' in the 'Http Settings->User' field, and 'pw' in the 'Http Seetings->Password' field on the GUI\n\n\n \n \n \n \n\n\nNow when I test I get the following:\nC:\\curl>curl -H \"Content-Type: application/json\" -u uida:pw -d {\"first\":\"Steven\"\n} http://localhost:8081\nCannot bind to address \"http://127.0.0.1:8081/\" No component registered on that\nendpoint\n\nI have done this repeatedly, but I get the same response.\nIs there another field that I should have set? Any ideas on how I can resolve this?\nThanks\n\nA:\n\nThe user and password attributes are ineffective on inbound HTTP endpoints, they only work on outbound.\nMule uses Spring Security for authentication. This is detailed in the user guide: http://www.mulesoft.org/documentation/display/current/Configuring+the+Spring+Security+Manager , including an example of the http-security-filter that you need to put in the HTTP inbound endpoint.\n\n"},"meta":{"kind":"string","value":"{\n \"pile_set_name\": \"StackExchange\"\n}"}}},{"rowIdx":28629,"cells":{"text":{"kind":"string","value":"Q:\n\nHow to get system (Windows) memory in R?\n\nDoes anyone know how to get the memory (RAM) used by the system from R?\nI'm using windows. memory.size() and mem_used() functions give you the memory used by R and R objects respectively, but they doesn't consider the memory already occupied by the system and other software. \n\nA:\n\nThis is one way using shell on Windows:\nshell('systeminfo | findstr Memory')\n#Total Physical Memory: 16,271 MB\n#Available Physical Memory: 8,011 MB\n#Virtual Memory: Max Size: 32,655 MB\n#Virtual Memory: Available: 24,040 MB\n#Virtual Memory: In Use: 8,615 MB\n\nYou could use a different string instead of Memory if you want more granular results.\n\n"},"meta":{"kind":"string","value":"{\n \"pile_set_name\": \"StackExchange\"\n}"}}},{"rowIdx":28630,"cells":{"text":{"kind":"string","value":"Q:\n\nandroid gridview not showing top row\n\nI am using a gridview inside a relativelayout and im trying to make the whole grid show up on the screen. The top row is not completely showing..I am only getting the top right button to show. The grid is 4 columns and 6 rows. All of the rows show up besides the one at the top of the screen. My code is as follows:\n\n\n\n\n\nand my main.java is:\npublic class MainActivity extends Activity implements OnClickListener \n{\nprivate long startTime = 0L;\nprivate Handler customHandler = new Handler();\nprivate int game_running = 0;\nprivate int button_clicks = 0;\nprivate int previous_button_id = 0;\nprivate int current_button_id = 0;\nprivate CharSequence button_value = null;\nprivate CharSequence prevbutton_value = null;\nprivate int j = 0;\nprivate int isgameover = 0;\nboolean flag = false;\nboolean reset = false;\nlong gametime = 0;\nlong resettime = 0;\nlong timeInMilliseconds = 0L;\nlong timeSwapBuff = 0L;\nlong updatedTime = 0L;\nboolean resetbool = false;\nprivate ArrayList